Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
// Lexicon schema: com.atproto.server.createAppPassword
package atproto
import ( "context"
lexutil "github.com/bluesky-social/indigo/lex/util")
// ServerCreateAppPassword_AppPassword is a "appPassword" in the com.atproto.server.createAppPassword schema.type ServerCreateAppPassword_AppPassword struct { CreatedAt string `json:"createdAt" cborgen:"createdAt"` Name string `json:"name" cborgen:"name"` Password string `json:"password" cborgen:"password"` Privileged *bool `json:"privileged,omitempty" cborgen:"privileged,omitempty"`}
// ServerCreateAppPassword_Input is the input argument to a com.atproto.server.createAppPassword call.type ServerCreateAppPassword_Input struct { // name: A short name for the App Password, to help distinguish them. Name string `json:"name" cborgen:"name"` // privileged: If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients. Privileged *bool `json:"privileged,omitempty" cborgen:"privileged,omitempty"`}
// ServerCreateAppPassword calls the XRPC method "com.atproto.server.createAppPassword".func ServerCreateAppPassword(ctx context.Context, c lexutil.LexClient, input *ServerCreateAppPassword_Input) (*ServerCreateAppPassword_AppPassword, error) { var out ServerCreateAppPassword_AppPassword if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "com.atproto.server.createAppPassword", nil, input, &out); err != nil { return nil, err }
return &out, nil}