[WIP] music platform user data scraper
teal-fm atproto
at main 1.1 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.createInviteCode 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// ServerCreateInviteCode_Input is the input argument to a com.atproto.server.createInviteCode call. 14type ServerCreateInviteCode_Input struct { 15 ForAccount *string `json:"forAccount,omitempty" cborgen:"forAccount,omitempty"` 16 UseCount int64 `json:"useCount" cborgen:"useCount"` 17} 18 19// ServerCreateInviteCode_Output is the output of a com.atproto.server.createInviteCode call. 20type ServerCreateInviteCode_Output struct { 21 Code string `json:"code" cborgen:"code"` 22} 23 24// ServerCreateInviteCode calls the XRPC method "com.atproto.server.createInviteCode". 25func ServerCreateInviteCode(ctx context.Context, c *xrpc.Client, input *ServerCreateInviteCode_Input) (*ServerCreateInviteCode_Output, error) { 26 var out ServerCreateInviteCode_Output 27 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createInviteCode", nil, input, &out); err != nil { 28 return nil, err 29 } 30 31 return &out, nil 32}