this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

run lexgen against atproto repo main

+389 -19
+33
api/atproto/admincreateCommunicationTemplate.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.admin.createCommunicationTemplate 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // AdminCreateCommunicationTemplate_Input is the input argument to a com.atproto.admin.createCommunicationTemplate call. 14 + type AdminCreateCommunicationTemplate_Input struct { 15 + // contentMarkdown: Content of the template, markdown supported, can contain variable placeholders. 16 + ContentMarkdown string `json:"contentMarkdown" cborgen:"contentMarkdown"` 17 + // createdBy: DID of the user who is creating the template. 18 + CreatedBy *string `json:"createdBy,omitempty" cborgen:"createdBy,omitempty"` 19 + // name: Name of the template. 20 + Name string `json:"name" cborgen:"name"` 21 + // subject: Subject of the message, used in emails. 22 + Subject string `json:"subject" cborgen:"subject"` 23 + } 24 + 25 + // AdminCreateCommunicationTemplate calls the XRPC method "com.atproto.admin.createCommunicationTemplate". 26 + func AdminCreateCommunicationTemplate(ctx context.Context, c *xrpc.Client, input *AdminCreateCommunicationTemplate_Input) (*AdminDefs_CommunicationTemplateView, error) { 27 + var out AdminDefs_CommunicationTemplateView 28 + if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.createCommunicationTemplate", nil, input, &out); err != nil { 29 + return nil, err 30 + } 31 + 32 + return &out, nil 33 + }
+26 -9
api/atproto/admindefs.go
··· 13 13 14 14 // AdminDefs_AccountView is a "accountView" in the com.atproto.admin.defs schema. 15 15 type AdminDefs_AccountView struct { 16 - Did string `json:"did" cborgen:"did"` 17 - Email *string `json:"email,omitempty" cborgen:"email,omitempty"` 18 - EmailConfirmedAt *string `json:"emailConfirmedAt,omitempty" cborgen:"emailConfirmedAt,omitempty"` 19 - Handle string `json:"handle" cborgen:"handle"` 20 - IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 21 - InviteNote *string `json:"inviteNote,omitempty" cborgen:"inviteNote,omitempty"` 22 - InvitedBy *ServerDefs_InviteCode `json:"invitedBy,omitempty" cborgen:"invitedBy,omitempty"` 23 - Invites []*ServerDefs_InviteCode `json:"invites,omitempty" cborgen:"invites,omitempty"` 24 - InvitesDisabled *bool `json:"invitesDisabled,omitempty" cborgen:"invitesDisabled,omitempty"` 16 + Did string `json:"did" cborgen:"did"` 17 + Email *string `json:"email,omitempty" cborgen:"email,omitempty"` 18 + EmailConfirmedAt *string `json:"emailConfirmedAt,omitempty" cborgen:"emailConfirmedAt,omitempty"` 19 + Handle string `json:"handle" cborgen:"handle"` 20 + IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 21 + InviteNote *string `json:"inviteNote,omitempty" cborgen:"inviteNote,omitempty"` 22 + InvitedBy *ServerDefs_InviteCode `json:"invitedBy,omitempty" cborgen:"invitedBy,omitempty"` 23 + Invites []*ServerDefs_InviteCode `json:"invites,omitempty" cborgen:"invites,omitempty"` 24 + InvitesDisabled *bool `json:"invitesDisabled,omitempty" cborgen:"invitesDisabled,omitempty"` 25 + RelatedRecords []*util.LexiconTypeDecoder `json:"relatedRecords,omitempty" cborgen:"relatedRecords,omitempty"` 25 26 } 26 27 27 28 // AdminDefs_BlobView is a "blobView" in the com.atproto.admin.defs schema. ··· 67 68 default: 68 69 return nil 69 70 } 71 + } 72 + 73 + // AdminDefs_CommunicationTemplateView is a "communicationTemplateView" in the com.atproto.admin.defs schema. 74 + type AdminDefs_CommunicationTemplateView struct { 75 + // contentMarkdown: Subject of the message, used in emails. 76 + ContentMarkdown string `json:"contentMarkdown" cborgen:"contentMarkdown"` 77 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 78 + Disabled bool `json:"disabled" cborgen:"disabled"` 79 + Id string `json:"id" cborgen:"id"` 80 + // lastUpdatedBy: DID of the user who last updated the template. 81 + LastUpdatedBy string `json:"lastUpdatedBy" cborgen:"lastUpdatedBy"` 82 + // name: Name of the template. 83 + Name string `json:"name" cborgen:"name"` 84 + // subject: Content of the template, can contain markdown and variable placeholders. 85 + Subject *string `json:"subject,omitempty" cborgen:"subject,omitempty"` 86 + UpdatedAt string `json:"updatedAt" cborgen:"updatedAt"` 70 87 } 71 88 72 89 // AdminDefs_ImageDetails is a "imageDetails" in the com.atproto.admin.defs schema.
+25
api/atproto/admindeleteCommunicationTemplate.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.admin.deleteCommunicationTemplate 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // AdminDeleteCommunicationTemplate_Input is the input argument to a com.atproto.admin.deleteCommunicationTemplate call. 14 + type AdminDeleteCommunicationTemplate_Input struct { 15 + Id string `json:"id" cborgen:"id"` 16 + } 17 + 18 + // AdminDeleteCommunicationTemplate calls the XRPC method "com.atproto.admin.deleteCommunicationTemplate". 19 + func AdminDeleteCommunicationTemplate(ctx context.Context, c *xrpc.Client, input *AdminDeleteCommunicationTemplate_Input) error { 20 + if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.deleteCommunicationTemplate", nil, input, nil); err != nil { 21 + return err 22 + } 23 + 24 + return nil 25 + }
+30
api/atproto/admingetAccountInfos.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.admin.getAccountInfos 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // AdminGetAccountInfos_Output is the output of a com.atproto.admin.getAccountInfos call. 14 + type AdminGetAccountInfos_Output struct { 15 + Infos []*AdminDefs_AccountView `json:"infos" cborgen:"infos"` 16 + } 17 + 18 + // AdminGetAccountInfos calls the XRPC method "com.atproto.admin.getAccountInfos". 19 + func AdminGetAccountInfos(ctx context.Context, c *xrpc.Client, dids []string) (*AdminGetAccountInfos_Output, error) { 20 + var out AdminGetAccountInfos_Output 21 + 22 + params := map[string]interface{}{ 23 + "dids": dids, 24 + } 25 + if err := c.Do(ctx, xrpc.Query, "", "com.atproto.admin.getAccountInfos", params, nil, &out); err != nil { 26 + return nil, err 27 + } 28 + 29 + return &out, nil 30 + }
+26
api/atproto/adminlistCommunicationTemplates.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.admin.listCommunicationTemplates 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // AdminListCommunicationTemplates_Output is the output of a com.atproto.admin.listCommunicationTemplates call. 14 + type AdminListCommunicationTemplates_Output struct { 15 + CommunicationTemplates []*AdminDefs_CommunicationTemplateView `json:"communicationTemplates" cborgen:"communicationTemplates"` 16 + } 17 + 18 + // AdminListCommunicationTemplates calls the XRPC method "com.atproto.admin.listCommunicationTemplates". 19 + func AdminListCommunicationTemplates(ctx context.Context, c *xrpc.Client) (*AdminListCommunicationTemplates_Output, error) { 20 + var out AdminListCommunicationTemplates_Output 21 + if err := c.Do(ctx, xrpc.Query, "", "com.atproto.admin.listCommunicationTemplates", nil, nil, &out); err != nil { 22 + return nil, err 23 + } 24 + 25 + return &out, nil 26 + }
+36
api/atproto/adminupdateCommunicationTemplate.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.admin.updateCommunicationTemplate 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // AdminUpdateCommunicationTemplate_Input is the input argument to a com.atproto.admin.updateCommunicationTemplate call. 14 + type AdminUpdateCommunicationTemplate_Input struct { 15 + // contentMarkdown: Content of the template, markdown supported, can contain variable placeholders. 16 + ContentMarkdown *string `json:"contentMarkdown,omitempty" cborgen:"contentMarkdown,omitempty"` 17 + Disabled *bool `json:"disabled,omitempty" cborgen:"disabled,omitempty"` 18 + // id: ID of the template to be updated. 19 + Id string `json:"id" cborgen:"id"` 20 + // name: Name of the template. 21 + Name *string `json:"name,omitempty" cborgen:"name,omitempty"` 22 + // subject: Subject of the message, used in emails. 23 + Subject *string `json:"subject,omitempty" cborgen:"subject,omitempty"` 24 + // updatedBy: DID of the user who is updating the template. 25 + UpdatedBy *string `json:"updatedBy,omitempty" cborgen:"updatedBy,omitempty"` 26 + } 27 + 28 + // AdminUpdateCommunicationTemplate calls the XRPC method "com.atproto.admin.updateCommunicationTemplate". 29 + func AdminUpdateCommunicationTemplate(ctx context.Context, c *xrpc.Client, input *AdminUpdateCommunicationTemplate_Input) (*AdminDefs_CommunicationTemplateView, error) { 30 + var out AdminDefs_CommunicationTemplateView 31 + if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateCommunicationTemplate", nil, input, &out); err != nil { 32 + return nil, err 33 + } 34 + 35 + return &out, nil 36 + }
+9 -7
api/atproto/servercreateAccount.go
··· 12 12 13 13 // ServerCreateAccount_Input is the input argument to a com.atproto.server.createAccount call. 14 14 type ServerCreateAccount_Input struct { 15 - Did *string `json:"did,omitempty" cborgen:"did,omitempty"` 16 - Email *string `json:"email,omitempty" cborgen:"email,omitempty"` 17 - Handle string `json:"handle" cborgen:"handle"` 18 - InviteCode *string `json:"inviteCode,omitempty" cborgen:"inviteCode,omitempty"` 19 - Password *string `json:"password,omitempty" cborgen:"password,omitempty"` 20 - PlcOp *interface{} `json:"plcOp,omitempty" cborgen:"plcOp,omitempty"` 21 - RecoveryKey *string `json:"recoveryKey,omitempty" cborgen:"recoveryKey,omitempty"` 15 + Did *string `json:"did,omitempty" cborgen:"did,omitempty"` 16 + Email *string `json:"email,omitempty" cborgen:"email,omitempty"` 17 + Handle string `json:"handle" cborgen:"handle"` 18 + InviteCode *string `json:"inviteCode,omitempty" cborgen:"inviteCode,omitempty"` 19 + Password *string `json:"password,omitempty" cborgen:"password,omitempty"` 20 + PlcOp *interface{} `json:"plcOp,omitempty" cborgen:"plcOp,omitempty"` 21 + RecoveryKey *string `json:"recoveryKey,omitempty" cborgen:"recoveryKey,omitempty"` 22 + VerificationCode *string `json:"verificationCode,omitempty" cborgen:"verificationCode,omitempty"` 23 + VerificationPhone *string `json:"verificationPhone,omitempty" cborgen:"verificationPhone,omitempty"` 22 24 } 23 25 24 26 // ServerCreateAccount_Output is the output of a com.atproto.server.createAccount call.
+4 -3
api/atproto/serverdescribeServer.go
··· 18 18 19 19 // ServerDescribeServer_Output is the output of a com.atproto.server.describeServer call. 20 20 type ServerDescribeServer_Output struct { 21 - AvailableUserDomains []string `json:"availableUserDomains" cborgen:"availableUserDomains"` 22 - InviteCodeRequired *bool `json:"inviteCodeRequired,omitempty" cborgen:"inviteCodeRequired,omitempty"` 23 - Links *ServerDescribeServer_Links `json:"links,omitempty" cborgen:"links,omitempty"` 21 + AvailableUserDomains []string `json:"availableUserDomains" cborgen:"availableUserDomains"` 22 + InviteCodeRequired *bool `json:"inviteCodeRequired,omitempty" cborgen:"inviteCodeRequired,omitempty"` 23 + Links *ServerDescribeServer_Links `json:"links,omitempty" cborgen:"links,omitempty"` 24 + PhoneVerificationRequired *bool `json:"phoneVerificationRequired,omitempty" cborgen:"phoneVerificationRequired,omitempty"` 24 25 } 25 26 26 27 // ServerDescribeServer calls the XRPC method "com.atproto.server.describeServer".
+28
api/atproto/tempcheckSignupQueue.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.temp.checkSignupQueue 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // TempCheckSignupQueue_Output is the output of a com.atproto.temp.checkSignupQueue call. 14 + type TempCheckSignupQueue_Output struct { 15 + Activated bool `json:"activated" cborgen:"activated"` 16 + EstimatedTimeMs *int64 `json:"estimatedTimeMs,omitempty" cborgen:"estimatedTimeMs,omitempty"` 17 + PlaceInQueue *int64 `json:"placeInQueue,omitempty" cborgen:"placeInQueue,omitempty"` 18 + } 19 + 20 + // TempCheckSignupQueue calls the XRPC method "com.atproto.temp.checkSignupQueue". 21 + func TempCheckSignupQueue(ctx context.Context, c *xrpc.Client) (*TempCheckSignupQueue_Output, error) { 22 + var out TempCheckSignupQueue_Output 23 + if err := c.Do(ctx, xrpc.Query, "", "com.atproto.temp.checkSignupQueue", nil, nil, &out); err != nil { 24 + return nil, err 25 + } 26 + 27 + return &out, nil 28 + }
+25
api/atproto/temprequestPhoneVerification.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.temp.requestPhoneVerification 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // TempRequestPhoneVerification_Input is the input argument to a com.atproto.temp.requestPhoneVerification call. 14 + type TempRequestPhoneVerification_Input struct { 15 + PhoneNumber string `json:"phoneNumber" cborgen:"phoneNumber"` 16 + } 17 + 18 + // TempRequestPhoneVerification calls the XRPC method "com.atproto.temp.requestPhoneVerification". 19 + func TempRequestPhoneVerification(ctx context.Context, c *xrpc.Client, input *TempRequestPhoneVerification_Input) error { 20 + if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.temp.requestPhoneVerification", nil, input, nil); err != nil { 21 + return err 22 + } 23 + 24 + return nil 25 + }
+17
api/bsky/actordefs.go
··· 48 48 HideReposts *bool `json:"hideReposts,omitempty" cborgen:"hideReposts,omitempty"` 49 49 } 50 50 51 + // ActorDefs_InterestsPref is a "interestsPref" in the app.bsky.actor.defs schema. 52 + // 53 + // RECORDTYPE: ActorDefs_InterestsPref 54 + type ActorDefs_InterestsPref struct { 55 + LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#interestsPref" cborgen:"$type,const=app.bsky.actor.defs#interestsPref"` 56 + // tags: A list of tags which describe the account owner's interests gathered during onboarding. 57 + Tags []string `json:"tags" cborgen:"tags"` 58 + } 59 + 51 60 // ActorDefs_PersonalDetailsPref is a "personalDetailsPref" in the app.bsky.actor.defs schema. 52 61 // 53 62 // RECORDTYPE: ActorDefs_PersonalDetailsPref ··· 64 73 ActorDefs_PersonalDetailsPref *ActorDefs_PersonalDetailsPref 65 74 ActorDefs_FeedViewPref *ActorDefs_FeedViewPref 66 75 ActorDefs_ThreadViewPref *ActorDefs_ThreadViewPref 76 + ActorDefs_InterestsPref *ActorDefs_InterestsPref 67 77 } 68 78 69 79 func (t *ActorDefs_Preferences_Elem) MarshalJSON() ([]byte, error) { ··· 91 101 t.ActorDefs_ThreadViewPref.LexiconTypeID = "app.bsky.actor.defs#threadViewPref" 92 102 return json.Marshal(t.ActorDefs_ThreadViewPref) 93 103 } 104 + if t.ActorDefs_InterestsPref != nil { 105 + t.ActorDefs_InterestsPref.LexiconTypeID = "app.bsky.actor.defs#interestsPref" 106 + return json.Marshal(t.ActorDefs_InterestsPref) 107 + } 94 108 return nil, fmt.Errorf("cannot marshal empty enum") 95 109 } 96 110 func (t *ActorDefs_Preferences_Elem) UnmarshalJSON(b []byte) error { ··· 118 132 case "app.bsky.actor.defs#threadViewPref": 119 133 t.ActorDefs_ThreadViewPref = new(ActorDefs_ThreadViewPref) 120 134 return json.Unmarshal(b, t.ActorDefs_ThreadViewPref) 135 + case "app.bsky.actor.defs#interestsPref": 136 + t.ActorDefs_InterestsPref = new(ActorDefs_InterestsPref) 137 + return json.Unmarshal(b, t.ActorDefs_InterestsPref) 121 138 122 139 default: 123 140 return nil
+25
api/bsky/graphdefs.go
··· 43 43 Blocked *string `json:"blocked,omitempty" cborgen:"blocked,omitempty"` 44 44 Muted *bool `json:"muted,omitempty" cborgen:"muted,omitempty"` 45 45 } 46 + 47 + // GraphDefs_NotFoundActor is a "notFoundActor" in the app.bsky.graph.defs schema. 48 + // 49 + // indicates that a handle or DID could not be resolved 50 + // 51 + // RECORDTYPE: GraphDefs_NotFoundActor 52 + type GraphDefs_NotFoundActor struct { 53 + LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#notFoundActor" cborgen:"$type,const=app.bsky.graph.defs#notFoundActor"` 54 + Actor string `json:"actor" cborgen:"actor"` 55 + NotFound bool `json:"notFound" cborgen:"notFound"` 56 + } 57 + 58 + // GraphDefs_Relationship is a "relationship" in the app.bsky.graph.defs schema. 59 + // 60 + // lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object) 61 + // 62 + // RECORDTYPE: GraphDefs_Relationship 63 + type GraphDefs_Relationship struct { 64 + LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#relationship" cborgen:"$type,const=app.bsky.graph.defs#relationship"` 65 + Did string `json:"did" cborgen:"did"` 66 + // followedBy: if the actor is followed by this DID, contains the AT-URI of the follow record 67 + FollowedBy *string `json:"followedBy,omitempty" cborgen:"followedBy,omitempty"` 68 + // following: if the actor follows this DID, this is the AT-URI of the follow record 69 + Following *string `json:"following,omitempty" cborgen:"following,omitempty"` 70 + }
+70
api/bsky/graphgetRelationships.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.graph.getRelationships 6 + 7 + import ( 8 + "context" 9 + "encoding/json" 10 + "fmt" 11 + 12 + "github.com/bluesky-social/indigo/lex/util" 13 + "github.com/bluesky-social/indigo/xrpc" 14 + ) 15 + 16 + // GraphGetRelationships_Output is the output of a app.bsky.graph.getRelationships call. 17 + type GraphGetRelationships_Output struct { 18 + Actor *string `json:"actor,omitempty" cborgen:"actor,omitempty"` 19 + Relationships []*GraphGetRelationships_Output_Relationships_Elem `json:"relationships" cborgen:"relationships"` 20 + } 21 + 22 + type GraphGetRelationships_Output_Relationships_Elem struct { 23 + GraphDefs_Relationship *GraphDefs_Relationship 24 + GraphDefs_NotFoundActor *GraphDefs_NotFoundActor 25 + } 26 + 27 + func (t *GraphGetRelationships_Output_Relationships_Elem) MarshalJSON() ([]byte, error) { 28 + if t.GraphDefs_Relationship != nil { 29 + t.GraphDefs_Relationship.LexiconTypeID = "app.bsky.graph.defs#relationship" 30 + return json.Marshal(t.GraphDefs_Relationship) 31 + } 32 + if t.GraphDefs_NotFoundActor != nil { 33 + t.GraphDefs_NotFoundActor.LexiconTypeID = "app.bsky.graph.defs#notFoundActor" 34 + return json.Marshal(t.GraphDefs_NotFoundActor) 35 + } 36 + return nil, fmt.Errorf("cannot marshal empty enum") 37 + } 38 + func (t *GraphGetRelationships_Output_Relationships_Elem) UnmarshalJSON(b []byte) error { 39 + typ, err := util.TypeExtract(b) 40 + if err != nil { 41 + return err 42 + } 43 + 44 + switch typ { 45 + case "app.bsky.graph.defs#relationship": 46 + t.GraphDefs_Relationship = new(GraphDefs_Relationship) 47 + return json.Unmarshal(b, t.GraphDefs_Relationship) 48 + case "app.bsky.graph.defs#notFoundActor": 49 + t.GraphDefs_NotFoundActor = new(GraphDefs_NotFoundActor) 50 + return json.Unmarshal(b, t.GraphDefs_NotFoundActor) 51 + 52 + default: 53 + return nil 54 + } 55 + } 56 + 57 + // GraphGetRelationships calls the XRPC method "app.bsky.graph.getRelationships". 58 + func GraphGetRelationships(ctx context.Context, c *xrpc.Client, actor string, others []string) (*GraphGetRelationships_Output, error) { 59 + var out GraphGetRelationships_Output 60 + 61 + params := map[string]interface{}{ 62 + "actor": actor, 63 + "others": others, 64 + } 65 + if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getRelationships", params, nil, &out); err != nil { 66 + return nil, err 67 + } 68 + 69 + return &out, nil 70 + }
+35
api/bsky/unspeccedgetTaggedSuggestions.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.unspecced.getTaggedSuggestions 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // UnspeccedGetTaggedSuggestions_Output is the output of a app.bsky.unspecced.getTaggedSuggestions call. 14 + type UnspeccedGetTaggedSuggestions_Output struct { 15 + Suggestions []*UnspeccedGetTaggedSuggestions_Suggestion `json:"suggestions" cborgen:"suggestions"` 16 + } 17 + 18 + // UnspeccedGetTaggedSuggestions_Suggestion is a "suggestion" in the app.bsky.unspecced.getTaggedSuggestions schema. 19 + type UnspeccedGetTaggedSuggestions_Suggestion struct { 20 + Subject string `json:"subject" cborgen:"subject"` 21 + SubjectType string `json:"subjectType" cborgen:"subjectType"` 22 + Tag string `json:"tag" cborgen:"tag"` 23 + } 24 + 25 + // UnspeccedGetTaggedSuggestions calls the XRPC method "app.bsky.unspecced.getTaggedSuggestions". 26 + func UnspeccedGetTaggedSuggestions(ctx context.Context, c *xrpc.Client) (*UnspeccedGetTaggedSuggestions_Output, error) { 27 + var out UnspeccedGetTaggedSuggestions_Output 28 + 29 + params := map[string]interface{}{} 30 + if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTaggedSuggestions", params, nil, &out); err != nil { 31 + return nil, err 32 + } 33 + 34 + return &out, nil 35 + }