Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
// Lexicon schema: com.atproto.server.createInviteCodes
package atproto
import ( "context"
lexutil "github.com/bluesky-social/indigo/lex/util")
// ServerCreateInviteCodes_AccountCodes is a "accountCodes" in the com.atproto.server.createInviteCodes schema.type ServerCreateInviteCodes_AccountCodes struct { Account string `json:"account" cborgen:"account"` Codes []string `json:"codes" cborgen:"codes"`}
// ServerCreateInviteCodes_Input is the input argument to a com.atproto.server.createInviteCodes call.type ServerCreateInviteCodes_Input struct { CodeCount int64 `json:"codeCount" cborgen:"codeCount"` ForAccounts []string `json:"forAccounts,omitempty" cborgen:"forAccounts,omitempty"` UseCount int64 `json:"useCount" cborgen:"useCount"`}
// ServerCreateInviteCodes_Output is the output of a com.atproto.server.createInviteCodes call.type ServerCreateInviteCodes_Output struct { Codes []*ServerCreateInviteCodes_AccountCodes `json:"codes" cborgen:"codes"`}
// ServerCreateInviteCodes calls the XRPC method "com.atproto.server.createInviteCodes".func ServerCreateInviteCodes(ctx context.Context, c lexutil.LexClient, input *ServerCreateInviteCodes_Input) (*ServerCreateInviteCodes_Output, error) { var out ServerCreateInviteCodes_Output if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "com.atproto.server.createInviteCodes", nil, input, &out); err != nil { return nil, err }
return &out, nil}