-
Notifications
You must be signed in to change notification settings - Fork 89
/
servercreateInviteCode.go
32 lines (24 loc) · 1.08 KB
/
servercreateInviteCode.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package atproto
// schema: com.atproto.server.createInviteCode
import (
"context"
"github.com/bluesky-social/indigo/xrpc"
)
// ServerCreateInviteCode_Input is the input argument to a com.atproto.server.createInviteCode call.
type ServerCreateInviteCode_Input struct {
ForAccount *string `json:"forAccount,omitempty" cborgen:"forAccount,omitempty"`
UseCount int64 `json:"useCount" cborgen:"useCount"`
}
// ServerCreateInviteCode_Output is the output of a com.atproto.server.createInviteCode call.
type ServerCreateInviteCode_Output struct {
Code string `json:"code" cborgen:"code"`
}
// ServerCreateInviteCode calls the XRPC method "com.atproto.server.createInviteCode".
func ServerCreateInviteCode(ctx context.Context, c *xrpc.Client, input *ServerCreateInviteCode_Input) (*ServerCreateInviteCode_Output, error) {
var out ServerCreateInviteCode_Output
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createInviteCode", nil, input, &out); err != nil {
return nil, err
}
return &out, nil
}