// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.

package bsky

// schema: app.bsky.notification.registerPush

import (
	"context"

	"github.com/bluesky-social/indigo/lex/util"
)

// NotificationRegisterPush_Input is the input argument to a app.bsky.notification.registerPush call.
type NotificationRegisterPush_Input struct {
	// ageRestricted: Set to true when the actor is age restricted
	AgeRestricted *bool  `json:"ageRestricted,omitempty" cborgen:"ageRestricted,omitempty"`
	AppId         string `json:"appId" cborgen:"appId"`
	Platform      string `json:"platform" cborgen:"platform"`
	ServiceDid    string `json:"serviceDid" cborgen:"serviceDid"`
	Token         string `json:"token" cborgen:"token"`
}

// NotificationRegisterPush calls the XRPC method "app.bsky.notification.registerPush".
func NotificationRegisterPush(ctx context.Context, c util.LexClient, input *NotificationRegisterPush_Input) error {
	if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.notification.registerPush", nil, input, nil); err != nil {
		return err
	}

	return nil
}
