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/lex/util"
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 util.LexClient, input *ServerCreateInviteCode_Input) (*ServerCreateInviteCode_Output, error) {
26 var out ServerCreateInviteCode_Output
27 if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.createInviteCode", nil, input, &out); err != nil {
28 return nil, err
29 }
30
31 return &out, nil
32}