Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
// Lexicon schema: com.atproto.server.updateEmail
package atproto
import ( "context"
lexutil "github.com/bluesky-social/indigo/lex/util")
// ServerUpdateEmail_Input is the input argument to a com.atproto.server.updateEmail call.type ServerUpdateEmail_Input struct { Email string `json:"email" cborgen:"email"` EmailAuthFactor *bool `json:"emailAuthFactor,omitempty" cborgen:"emailAuthFactor,omitempty"` // token: Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed. Token *string `json:"token,omitempty" cborgen:"token,omitempty"`}
// ServerUpdateEmail calls the XRPC method "com.atproto.server.updateEmail".func ServerUpdateEmail(ctx context.Context, c lexutil.LexClient, input *ServerUpdateEmail_Input) error { if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "com.atproto.server.updateEmail", nil, input, nil); err != nil { return err }
return nil}