porting all github actions from bluesky-social/indigo to tangled CI
at main 2.2 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package atproto 4 5// schema: com.atproto.server.describeServer 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// ServerDescribeServer_Contact is a "contact" in the com.atproto.server.describeServer schema. 14type ServerDescribeServer_Contact struct { 15 Email *string `json:"email,omitempty" cborgen:"email,omitempty"` 16} 17 18// ServerDescribeServer_Links is a "links" in the com.atproto.server.describeServer schema. 19type ServerDescribeServer_Links struct { 20 PrivacyPolicy *string `json:"privacyPolicy,omitempty" cborgen:"privacyPolicy,omitempty"` 21 TermsOfService *string `json:"termsOfService,omitempty" cborgen:"termsOfService,omitempty"` 22} 23 24// ServerDescribeServer_Output is the output of a com.atproto.server.describeServer call. 25type ServerDescribeServer_Output struct { 26 // availableUserDomains: List of domain suffixes that can be used in account handles. 27 AvailableUserDomains []string `json:"availableUserDomains" cborgen:"availableUserDomains"` 28 // contact: Contact information 29 Contact *ServerDescribeServer_Contact `json:"contact,omitempty" cborgen:"contact,omitempty"` 30 Did string `json:"did" cborgen:"did"` 31 // inviteCodeRequired: If true, an invite code must be supplied to create an account on this instance. 32 InviteCodeRequired *bool `json:"inviteCodeRequired,omitempty" cborgen:"inviteCodeRequired,omitempty"` 33 // links: URLs of service policy documents. 34 Links *ServerDescribeServer_Links `json:"links,omitempty" cborgen:"links,omitempty"` 35 // phoneVerificationRequired: If true, a phone verification token must be supplied to create an account on this instance. 36 PhoneVerificationRequired *bool `json:"phoneVerificationRequired,omitempty" cborgen:"phoneVerificationRequired,omitempty"` 37} 38 39// ServerDescribeServer calls the XRPC method "com.atproto.server.describeServer". 40func ServerDescribeServer(ctx context.Context, c util.LexClient) (*ServerDescribeServer_Output, error) { 41 var out ServerDescribeServer_Output 42 if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.describeServer", nil, nil, &out); err != nil { 43 return nil, err 44 } 45 46 return &out, nil 47}