1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.notification.registerPush
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// NotificationRegisterPush_Input is the input argument to a app.bsky.notification.registerPush call.
14type NotificationRegisterPush_Input struct {
15 // ageRestricted: Set to true when the actor is age restricted
16 AgeRestricted *bool `json:"ageRestricted,omitempty" cborgen:"ageRestricted,omitempty"`
17 AppId string `json:"appId" cborgen:"appId"`
18 Platform string `json:"platform" cborgen:"platform"`
19 ServiceDid string `json:"serviceDid" cborgen:"serviceDid"`
20 Token string `json:"token" cborgen:"token"`
21}
22
23// NotificationRegisterPush calls the XRPC method "app.bsky.notification.registerPush".
24func NotificationRegisterPush(ctx context.Context, c util.LexClient, input *NotificationRegisterPush_Input) error {
25 if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.notification.registerPush", nil, input, nil); err != nil {
26 return err
27 }
28
29 return nil
30}