A fork of https://github.com/teal-fm/piper
at fly 27 lines 891 B view raw
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/xrpc" 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 *xrpc.Client, input *AdminEnableAccountInvites_Input) error { 22 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.enableAccountInvites", nil, input, nil); err != nil { 23 return err 24 } 25 26 return nil 27}