1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package atproto
4
5// schema: com.atproto.server.createInviteCodes
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// ServerCreateInviteCodes_AccountCodes is a "accountCodes" in the com.atproto.server.createInviteCodes schema.
14type ServerCreateInviteCodes_AccountCodes struct {
15 Account string `json:"account" cborgen:"account"`
16 Codes []string `json:"codes" cborgen:"codes"`
17}
18
19// ServerCreateInviteCodes_Input is the input argument to a com.atproto.server.createInviteCodes call.
20type ServerCreateInviteCodes_Input struct {
21 CodeCount int64 `json:"codeCount" cborgen:"codeCount"`
22 ForAccounts []string `json:"forAccounts,omitempty" cborgen:"forAccounts,omitempty"`
23 UseCount int64 `json:"useCount" cborgen:"useCount"`
24}
25
26// ServerCreateInviteCodes_Output is the output of a com.atproto.server.createInviteCodes call.
27type ServerCreateInviteCodes_Output struct {
28 Codes []*ServerCreateInviteCodes_AccountCodes `json:"codes" cborgen:"codes"`
29}
30
31// ServerCreateInviteCodes calls the XRPC method "com.atproto.server.createInviteCodes".
32func ServerCreateInviteCodes(ctx context.Context, c util.LexClient, input *ServerCreateInviteCodes_Input) (*ServerCreateInviteCodes_Output, error) {
33 var out ServerCreateInviteCodes_Output
34 if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.createInviteCodes", nil, input, &out); err != nil {
35 return nil, err
36 }
37
38 return &out, nil
39}