···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.admin.createCommunicationTemplate
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// AdminCreateCommunicationTemplate_Input is the input argument to a com.atproto.admin.createCommunicationTemplate call.
1414+type AdminCreateCommunicationTemplate_Input struct {
1515+ // contentMarkdown: Content of the template, markdown supported, can contain variable placeholders.
1616+ ContentMarkdown string `json:"contentMarkdown" cborgen:"contentMarkdown"`
1717+ // createdBy: DID of the user who is creating the template.
1818+ CreatedBy *string `json:"createdBy,omitempty" cborgen:"createdBy,omitempty"`
1919+ // name: Name of the template.
2020+ Name string `json:"name" cborgen:"name"`
2121+ // subject: Subject of the message, used in emails.
2222+ Subject string `json:"subject" cborgen:"subject"`
2323+}
2424+2525+// AdminCreateCommunicationTemplate calls the XRPC method "com.atproto.admin.createCommunicationTemplate".
2626+func AdminCreateCommunicationTemplate(ctx context.Context, c *xrpc.Client, input *AdminCreateCommunicationTemplate_Input) (*AdminDefs_CommunicationTemplateView, error) {
2727+ var out AdminDefs_CommunicationTemplateView
2828+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.createCommunicationTemplate", nil, input, &out); err != nil {
2929+ return nil, err
3030+ }
3131+3232+ return &out, nil
3333+}
+26-9
api/atproto/admindefs.go
···13131414// AdminDefs_AccountView is a "accountView" in the com.atproto.admin.defs schema.
1515type AdminDefs_AccountView struct {
1616- Did string `json:"did" cborgen:"did"`
1717- Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
1818- EmailConfirmedAt *string `json:"emailConfirmedAt,omitempty" cborgen:"emailConfirmedAt,omitempty"`
1919- Handle string `json:"handle" cborgen:"handle"`
2020- IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
2121- InviteNote *string `json:"inviteNote,omitempty" cborgen:"inviteNote,omitempty"`
2222- InvitedBy *ServerDefs_InviteCode `json:"invitedBy,omitempty" cborgen:"invitedBy,omitempty"`
2323- Invites []*ServerDefs_InviteCode `json:"invites,omitempty" cborgen:"invites,omitempty"`
2424- InvitesDisabled *bool `json:"invitesDisabled,omitempty" cborgen:"invitesDisabled,omitempty"`
1616+ Did string `json:"did" cborgen:"did"`
1717+ Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
1818+ EmailConfirmedAt *string `json:"emailConfirmedAt,omitempty" cborgen:"emailConfirmedAt,omitempty"`
1919+ Handle string `json:"handle" cborgen:"handle"`
2020+ IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
2121+ InviteNote *string `json:"inviteNote,omitempty" cborgen:"inviteNote,omitempty"`
2222+ InvitedBy *ServerDefs_InviteCode `json:"invitedBy,omitempty" cborgen:"invitedBy,omitempty"`
2323+ Invites []*ServerDefs_InviteCode `json:"invites,omitempty" cborgen:"invites,omitempty"`
2424+ InvitesDisabled *bool `json:"invitesDisabled,omitempty" cborgen:"invitesDisabled,omitempty"`
2525+ RelatedRecords []*util.LexiconTypeDecoder `json:"relatedRecords,omitempty" cborgen:"relatedRecords,omitempty"`
2526}
26272728// AdminDefs_BlobView is a "blobView" in the com.atproto.admin.defs schema.
···6768 default:
6869 return nil
6970 }
7171+}
7272+7373+// AdminDefs_CommunicationTemplateView is a "communicationTemplateView" in the com.atproto.admin.defs schema.
7474+type AdminDefs_CommunicationTemplateView struct {
7575+ // contentMarkdown: Subject of the message, used in emails.
7676+ ContentMarkdown string `json:"contentMarkdown" cborgen:"contentMarkdown"`
7777+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
7878+ Disabled bool `json:"disabled" cborgen:"disabled"`
7979+ Id string `json:"id" cborgen:"id"`
8080+ // lastUpdatedBy: DID of the user who last updated the template.
8181+ LastUpdatedBy string `json:"lastUpdatedBy" cborgen:"lastUpdatedBy"`
8282+ // name: Name of the template.
8383+ Name string `json:"name" cborgen:"name"`
8484+ // subject: Content of the template, can contain markdown and variable placeholders.
8585+ Subject *string `json:"subject,omitempty" cborgen:"subject,omitempty"`
8686+ UpdatedAt string `json:"updatedAt" cborgen:"updatedAt"`
7087}
71887289// AdminDefs_ImageDetails is a "imageDetails" in the com.atproto.admin.defs schema.
+25
api/atproto/admindeleteCommunicationTemplate.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.admin.deleteCommunicationTemplate
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// AdminDeleteCommunicationTemplate_Input is the input argument to a com.atproto.admin.deleteCommunicationTemplate call.
1414+type AdminDeleteCommunicationTemplate_Input struct {
1515+ Id string `json:"id" cborgen:"id"`
1616+}
1717+1818+// AdminDeleteCommunicationTemplate calls the XRPC method "com.atproto.admin.deleteCommunicationTemplate".
1919+func AdminDeleteCommunicationTemplate(ctx context.Context, c *xrpc.Client, input *AdminDeleteCommunicationTemplate_Input) error {
2020+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.deleteCommunicationTemplate", nil, input, nil); err != nil {
2121+ return err
2222+ }
2323+2424+ return nil
2525+}
+30
api/atproto/admingetAccountInfos.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.admin.getAccountInfos
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// AdminGetAccountInfos_Output is the output of a com.atproto.admin.getAccountInfos call.
1414+type AdminGetAccountInfos_Output struct {
1515+ Infos []*AdminDefs_AccountView `json:"infos" cborgen:"infos"`
1616+}
1717+1818+// AdminGetAccountInfos calls the XRPC method "com.atproto.admin.getAccountInfos".
1919+func AdminGetAccountInfos(ctx context.Context, c *xrpc.Client, dids []string) (*AdminGetAccountInfos_Output, error) {
2020+ var out AdminGetAccountInfos_Output
2121+2222+ params := map[string]interface{}{
2323+ "dids": dids,
2424+ }
2525+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.admin.getAccountInfos", params, nil, &out); err != nil {
2626+ return nil, err
2727+ }
2828+2929+ return &out, nil
3030+}
+26
api/atproto/adminlistCommunicationTemplates.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.admin.listCommunicationTemplates
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// AdminListCommunicationTemplates_Output is the output of a com.atproto.admin.listCommunicationTemplates call.
1414+type AdminListCommunicationTemplates_Output struct {
1515+ CommunicationTemplates []*AdminDefs_CommunicationTemplateView `json:"communicationTemplates" cborgen:"communicationTemplates"`
1616+}
1717+1818+// AdminListCommunicationTemplates calls the XRPC method "com.atproto.admin.listCommunicationTemplates".
1919+func AdminListCommunicationTemplates(ctx context.Context, c *xrpc.Client) (*AdminListCommunicationTemplates_Output, error) {
2020+ var out AdminListCommunicationTemplates_Output
2121+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.admin.listCommunicationTemplates", nil, nil, &out); err != nil {
2222+ return nil, err
2323+ }
2424+2525+ return &out, nil
2626+}
+36
api/atproto/adminupdateCommunicationTemplate.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.admin.updateCommunicationTemplate
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// AdminUpdateCommunicationTemplate_Input is the input argument to a com.atproto.admin.updateCommunicationTemplate call.
1414+type AdminUpdateCommunicationTemplate_Input struct {
1515+ // contentMarkdown: Content of the template, markdown supported, can contain variable placeholders.
1616+ ContentMarkdown *string `json:"contentMarkdown,omitempty" cborgen:"contentMarkdown,omitempty"`
1717+ Disabled *bool `json:"disabled,omitempty" cborgen:"disabled,omitempty"`
1818+ // id: ID of the template to be updated.
1919+ Id string `json:"id" cborgen:"id"`
2020+ // name: Name of the template.
2121+ Name *string `json:"name,omitempty" cborgen:"name,omitempty"`
2222+ // subject: Subject of the message, used in emails.
2323+ Subject *string `json:"subject,omitempty" cborgen:"subject,omitempty"`
2424+ // updatedBy: DID of the user who is updating the template.
2525+ UpdatedBy *string `json:"updatedBy,omitempty" cborgen:"updatedBy,omitempty"`
2626+}
2727+2828+// AdminUpdateCommunicationTemplate calls the XRPC method "com.atproto.admin.updateCommunicationTemplate".
2929+func AdminUpdateCommunicationTemplate(ctx context.Context, c *xrpc.Client, input *AdminUpdateCommunicationTemplate_Input) (*AdminDefs_CommunicationTemplateView, error) {
3030+ var out AdminDefs_CommunicationTemplateView
3131+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateCommunicationTemplate", nil, input, &out); err != nil {
3232+ return nil, err
3333+ }
3434+3535+ return &out, nil
3636+}
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.temp.checkSignupQueue
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// TempCheckSignupQueue_Output is the output of a com.atproto.temp.checkSignupQueue call.
1414+type TempCheckSignupQueue_Output struct {
1515+ Activated bool `json:"activated" cborgen:"activated"`
1616+ EstimatedTimeMs *int64 `json:"estimatedTimeMs,omitempty" cborgen:"estimatedTimeMs,omitempty"`
1717+ PlaceInQueue *int64 `json:"placeInQueue,omitempty" cborgen:"placeInQueue,omitempty"`
1818+}
1919+2020+// TempCheckSignupQueue calls the XRPC method "com.atproto.temp.checkSignupQueue".
2121+func TempCheckSignupQueue(ctx context.Context, c *xrpc.Client) (*TempCheckSignupQueue_Output, error) {
2222+ var out TempCheckSignupQueue_Output
2323+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.temp.checkSignupQueue", nil, nil, &out); err != nil {
2424+ return nil, err
2525+ }
2626+2727+ return &out, nil
2828+}
+25
api/atproto/temprequestPhoneVerification.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.temp.requestPhoneVerification
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// TempRequestPhoneVerification_Input is the input argument to a com.atproto.temp.requestPhoneVerification call.
1414+type TempRequestPhoneVerification_Input struct {
1515+ PhoneNumber string `json:"phoneNumber" cborgen:"phoneNumber"`
1616+}
1717+1818+// TempRequestPhoneVerification calls the XRPC method "com.atproto.temp.requestPhoneVerification".
1919+func TempRequestPhoneVerification(ctx context.Context, c *xrpc.Client, input *TempRequestPhoneVerification_Input) error {
2020+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.temp.requestPhoneVerification", nil, input, nil); err != nil {
2121+ return err
2222+ }
2323+2424+ return nil
2525+}
+17
api/bsky/actordefs.go
···4848 HideReposts *bool `json:"hideReposts,omitempty" cborgen:"hideReposts,omitempty"`
4949}
50505151+// ActorDefs_InterestsPref is a "interestsPref" in the app.bsky.actor.defs schema.
5252+//
5353+// RECORDTYPE: ActorDefs_InterestsPref
5454+type ActorDefs_InterestsPref struct {
5555+ LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#interestsPref" cborgen:"$type,const=app.bsky.actor.defs#interestsPref"`
5656+ // tags: A list of tags which describe the account owner's interests gathered during onboarding.
5757+ Tags []string `json:"tags" cborgen:"tags"`
5858+}
5959+5160// ActorDefs_PersonalDetailsPref is a "personalDetailsPref" in the app.bsky.actor.defs schema.
5261//
5362// RECORDTYPE: ActorDefs_PersonalDetailsPref
···6473 ActorDefs_PersonalDetailsPref *ActorDefs_PersonalDetailsPref
6574 ActorDefs_FeedViewPref *ActorDefs_FeedViewPref
6675 ActorDefs_ThreadViewPref *ActorDefs_ThreadViewPref
7676+ ActorDefs_InterestsPref *ActorDefs_InterestsPref
6777}
68786979func (t *ActorDefs_Preferences_Elem) MarshalJSON() ([]byte, error) {
···91101 t.ActorDefs_ThreadViewPref.LexiconTypeID = "app.bsky.actor.defs#threadViewPref"
92102 return json.Marshal(t.ActorDefs_ThreadViewPref)
93103 }
104104+ if t.ActorDefs_InterestsPref != nil {
105105+ t.ActorDefs_InterestsPref.LexiconTypeID = "app.bsky.actor.defs#interestsPref"
106106+ return json.Marshal(t.ActorDefs_InterestsPref)
107107+ }
94108 return nil, fmt.Errorf("cannot marshal empty enum")
95109}
96110func (t *ActorDefs_Preferences_Elem) UnmarshalJSON(b []byte) error {
···118132 case "app.bsky.actor.defs#threadViewPref":
119133 t.ActorDefs_ThreadViewPref = new(ActorDefs_ThreadViewPref)
120134 return json.Unmarshal(b, t.ActorDefs_ThreadViewPref)
135135+ case "app.bsky.actor.defs#interestsPref":
136136+ t.ActorDefs_InterestsPref = new(ActorDefs_InterestsPref)
137137+ return json.Unmarshal(b, t.ActorDefs_InterestsPref)
121138122139 default:
123140 return nil
+25
api/bsky/graphdefs.go
···4343 Blocked *string `json:"blocked,omitempty" cborgen:"blocked,omitempty"`
4444 Muted *bool `json:"muted,omitempty" cborgen:"muted,omitempty"`
4545}
4646+4747+// GraphDefs_NotFoundActor is a "notFoundActor" in the app.bsky.graph.defs schema.
4848+//
4949+// indicates that a handle or DID could not be resolved
5050+//
5151+// RECORDTYPE: GraphDefs_NotFoundActor
5252+type GraphDefs_NotFoundActor struct {
5353+ LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#notFoundActor" cborgen:"$type,const=app.bsky.graph.defs#notFoundActor"`
5454+ Actor string `json:"actor" cborgen:"actor"`
5555+ NotFound bool `json:"notFound" cborgen:"notFound"`
5656+}
5757+5858+// GraphDefs_Relationship is a "relationship" in the app.bsky.graph.defs schema.
5959+//
6060+// lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)
6161+//
6262+// RECORDTYPE: GraphDefs_Relationship
6363+type GraphDefs_Relationship struct {
6464+ LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#relationship" cborgen:"$type,const=app.bsky.graph.defs#relationship"`
6565+ Did string `json:"did" cborgen:"did"`
6666+ // followedBy: if the actor is followed by this DID, contains the AT-URI of the follow record
6767+ FollowedBy *string `json:"followedBy,omitempty" cborgen:"followedBy,omitempty"`
6868+ // following: if the actor follows this DID, this is the AT-URI of the follow record
6969+ Following *string `json:"following,omitempty" cborgen:"following,omitempty"`
7070+}