A fork of https://github.com/teal-fm/piper
at main 26 lines 918 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package atproto 4 5// schema: com.atproto.server.deactivateAccount 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// ServerDeactivateAccount_Input is the input argument to a com.atproto.server.deactivateAccount call. 14type ServerDeactivateAccount_Input struct { 15 // deleteAfter: A recommendation to server as to how long they should hold onto the deactivated account before deleting. 16 DeleteAfter *string `json:"deleteAfter,omitempty" cborgen:"deleteAfter,omitempty"` 17} 18 19// ServerDeactivateAccount calls the XRPC method "com.atproto.server.deactivateAccount". 20func ServerDeactivateAccount(ctx context.Context, c *xrpc.Client, input *ServerDeactivateAccount_Input) error { 21 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.deactivateAccount", nil, input, nil); err != nil { 22 return err 23 } 24 25 return nil 26}