1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package atproto
4
5// schema: com.atproto.admin.enableAccountInvites
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// AdminEnableAccountInvites_Input is the input argument to a com.atproto.admin.enableAccountInvites call.
14type AdminEnableAccountInvites_Input struct {
15 Account string `json:"account" cborgen:"account"`
16 // note: Optional reason for enabled invites.
17 Note *string `json:"note,omitempty" cborgen:"note,omitempty"`
18}
19
20// AdminEnableAccountInvites calls the XRPC method "com.atproto.admin.enableAccountInvites".
21func AdminEnableAccountInvites(ctx context.Context, c util.LexClient, input *AdminEnableAccountInvites_Input) error {
22 if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.admin.enableAccountInvites", nil, input, nil); err != nil {
23 return err
24 }
25
26 return nil
27}