porting all github actions from bluesky-social/indigo to tangled CI
at main 1.2 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package atproto 4 5// schema: com.atproto.server.getAccountInviteCodes 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// ServerGetAccountInviteCodes_Output is the output of a com.atproto.server.getAccountInviteCodes call. 14type ServerGetAccountInviteCodes_Output struct { 15 Codes []*ServerDefs_InviteCode `json:"codes" cborgen:"codes"` 16} 17 18// ServerGetAccountInviteCodes calls the XRPC method "com.atproto.server.getAccountInviteCodes". 19// 20// createAvailable: Controls whether any new 'earned' but not 'created' invites should be created. 21func ServerGetAccountInviteCodes(ctx context.Context, c util.LexClient, createAvailable bool, includeUsed bool) (*ServerGetAccountInviteCodes_Output, error) { 22 var out ServerGetAccountInviteCodes_Output 23 24 params := map[string]interface{}{} 25 if createAvailable { 26 params["createAvailable"] = createAvailable 27 } 28 if includeUsed { 29 params["includeUsed"] = includeUsed 30 } 31 if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.getAccountInviteCodes", params, nil, &out); err != nil { 32 return nil, err 33 } 34 35 return &out, nil 36}