···2525 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
2626}
27272828+// RepoApplyWrites_CreateResult is a "createResult" in the com.atproto.repo.applyWrites schema.
2929+//
3030+// RECORDTYPE: RepoApplyWrites_CreateResult
3131+type RepoApplyWrites_CreateResult struct {
3232+ LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#createResult" cborgen:"$type,const=com.atproto.repo.applyWrites#createResult"`
3333+ Cid string `json:"cid" cborgen:"cid"`
3434+ Uri string `json:"uri" cborgen:"uri"`
3535+ ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"`
3636+}
3737+2838// RepoApplyWrites_Delete is a "delete" in the com.atproto.repo.applyWrites schema.
2939//
3040// Operation which deletes an existing record.
···3646 Rkey string `json:"rkey" cborgen:"rkey"`
3747}
38484949+// RepoApplyWrites_DeleteResult is a "deleteResult" in the com.atproto.repo.applyWrites schema.
5050+//
5151+// RECORDTYPE: RepoApplyWrites_DeleteResult
5252+type RepoApplyWrites_DeleteResult struct {
5353+ LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#deleteResult" cborgen:"$type,const=com.atproto.repo.applyWrites#deleteResult"`
5454+}
5555+3956// RepoApplyWrites_Input is the input argument to a com.atproto.repo.applyWrites call.
4057type RepoApplyWrites_Input struct {
4158 // repo: The handle or DID of the repo (aka, current account).
4259 Repo string `json:"repo" cborgen:"repo"`
4360 // swapCommit: If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.
4461 SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
4545- // validate: Can be set to 'false' to skip Lexicon schema validation of record data, for all operations.
6262+ // validate: Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons.
4663 Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
4764 Writes []*RepoApplyWrites_Input_Writes_Elem `json:"writes" cborgen:"writes"`
4865}
···90107 }
91108}
92109110110+// RepoApplyWrites_Output is the output of a com.atproto.repo.applyWrites call.
111111+type RepoApplyWrites_Output struct {
112112+ Commit *RepoDefs_CommitMeta `json:"commit,omitempty" cborgen:"commit,omitempty"`
113113+ Results []*RepoApplyWrites_Output_Results_Elem `json:"results,omitempty" cborgen:"results,omitempty"`
114114+}
115115+116116+type RepoApplyWrites_Output_Results_Elem struct {
117117+ RepoApplyWrites_CreateResult *RepoApplyWrites_CreateResult
118118+ RepoApplyWrites_UpdateResult *RepoApplyWrites_UpdateResult
119119+ RepoApplyWrites_DeleteResult *RepoApplyWrites_DeleteResult
120120+}
121121+122122+func (t *RepoApplyWrites_Output_Results_Elem) MarshalJSON() ([]byte, error) {
123123+ if t.RepoApplyWrites_CreateResult != nil {
124124+ t.RepoApplyWrites_CreateResult.LexiconTypeID = "com.atproto.repo.applyWrites#createResult"
125125+ return json.Marshal(t.RepoApplyWrites_CreateResult)
126126+ }
127127+ if t.RepoApplyWrites_UpdateResult != nil {
128128+ t.RepoApplyWrites_UpdateResult.LexiconTypeID = "com.atproto.repo.applyWrites#updateResult"
129129+ return json.Marshal(t.RepoApplyWrites_UpdateResult)
130130+ }
131131+ if t.RepoApplyWrites_DeleteResult != nil {
132132+ t.RepoApplyWrites_DeleteResult.LexiconTypeID = "com.atproto.repo.applyWrites#deleteResult"
133133+ return json.Marshal(t.RepoApplyWrites_DeleteResult)
134134+ }
135135+ return nil, fmt.Errorf("cannot marshal empty enum")
136136+}
137137+func (t *RepoApplyWrites_Output_Results_Elem) UnmarshalJSON(b []byte) error {
138138+ typ, err := util.TypeExtract(b)
139139+ if err != nil {
140140+ return err
141141+ }
142142+143143+ switch typ {
144144+ case "com.atproto.repo.applyWrites#createResult":
145145+ t.RepoApplyWrites_CreateResult = new(RepoApplyWrites_CreateResult)
146146+ return json.Unmarshal(b, t.RepoApplyWrites_CreateResult)
147147+ case "com.atproto.repo.applyWrites#updateResult":
148148+ t.RepoApplyWrites_UpdateResult = new(RepoApplyWrites_UpdateResult)
149149+ return json.Unmarshal(b, t.RepoApplyWrites_UpdateResult)
150150+ case "com.atproto.repo.applyWrites#deleteResult":
151151+ t.RepoApplyWrites_DeleteResult = new(RepoApplyWrites_DeleteResult)
152152+ return json.Unmarshal(b, t.RepoApplyWrites_DeleteResult)
153153+154154+ default:
155155+ return fmt.Errorf("closed enums must have a matching value")
156156+ }
157157+}
158158+93159// RepoApplyWrites_Update is a "update" in the com.atproto.repo.applyWrites schema.
94160//
95161// Operation which updates an existing record.
···102168 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
103169}
104170171171+// RepoApplyWrites_UpdateResult is a "updateResult" in the com.atproto.repo.applyWrites schema.
172172+//
173173+// RECORDTYPE: RepoApplyWrites_UpdateResult
174174+type RepoApplyWrites_UpdateResult struct {
175175+ LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#updateResult" cborgen:"$type,const=com.atproto.repo.applyWrites#updateResult"`
176176+ Cid string `json:"cid" cborgen:"cid"`
177177+ Uri string `json:"uri" cborgen:"uri"`
178178+ ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"`
179179+}
180180+105181// RepoApplyWrites calls the XRPC method "com.atproto.repo.applyWrites".
106106-func RepoApplyWrites(ctx context.Context, c *xrpc.Client, input *RepoApplyWrites_Input) error {
107107- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, nil); err != nil {
108108- return err
182182+func RepoApplyWrites(ctx context.Context, c *xrpc.Client, input *RepoApplyWrites_Input) (*RepoApplyWrites_Output, error) {
183183+ var out RepoApplyWrites_Output
184184+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, &out); err != nil {
185185+ return nil, err
109186 }
110187111111- return nil
188188+ return &out, nil
112189}
+5-3
api/atproto/repocreateRecord.go
···2323 Rkey *string `json:"rkey,omitempty" cborgen:"rkey,omitempty"`
2424 // swapCommit: Compare and swap with the previous commit by CID.
2525 SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
2626- // validate: Can be set to 'false' to skip Lexicon schema validation of record data.
2626+ // validate: Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons.
2727 Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
2828}
29293030// RepoCreateRecord_Output is the output of a com.atproto.repo.createRecord call.
3131type RepoCreateRecord_Output struct {
3232- Cid string `json:"cid" cborgen:"cid"`
3333- Uri string `json:"uri" cborgen:"uri"`
3232+ Cid string `json:"cid" cborgen:"cid"`
3333+ Commit *RepoDefs_CommitMeta `json:"commit,omitempty" cborgen:"commit,omitempty"`
3434+ Uri string `json:"uri" cborgen:"uri"`
3535+ ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"`
3436}
35373638// RepoCreateRecord calls the XRPC method "com.atproto.repo.createRecord".
+11
api/atproto/repodefs.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.repo.defs
66+77+// RepoDefs_CommitMeta is a "commitMeta" in the com.atproto.repo.defs schema.
88+type RepoDefs_CommitMeta struct {
99+ Cid string `json:"cid" cborgen:"cid"`
1010+ Rev string `json:"rev" cborgen:"rev"`
1111+}
+10-4
api/atproto/repodeleteRecord.go
···2424 SwapRecord *string `json:"swapRecord,omitempty" cborgen:"swapRecord,omitempty"`
2525}
26262727+// RepoDeleteRecord_Output is the output of a com.atproto.repo.deleteRecord call.
2828+type RepoDeleteRecord_Output struct {
2929+ Commit *RepoDefs_CommitMeta `json:"commit,omitempty" cborgen:"commit,omitempty"`
3030+}
3131+2732// RepoDeleteRecord calls the XRPC method "com.atproto.repo.deleteRecord".
2828-func RepoDeleteRecord(ctx context.Context, c *xrpc.Client, input *RepoDeleteRecord_Input) error {
2929- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.deleteRecord", nil, input, nil); err != nil {
3030- return err
3333+func RepoDeleteRecord(ctx context.Context, c *xrpc.Client, input *RepoDeleteRecord_Input) (*RepoDeleteRecord_Output, error) {
3434+ var out RepoDeleteRecord_Output
3535+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.deleteRecord", nil, input, &out); err != nil {
3636+ return nil, err
3137 }
32383333- return nil
3939+ return &out, nil
3440}
+5-3
api/atproto/repoputRecord.go
···2525 SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
2626 // swapRecord: Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation
2727 SwapRecord *string `json:"swapRecord" cborgen:"swapRecord"`
2828- // validate: Can be set to 'false' to skip Lexicon schema validation of record data.
2828+ // validate: Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons.
2929 Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
3030}
31313232// RepoPutRecord_Output is the output of a com.atproto.repo.putRecord call.
3333type RepoPutRecord_Output struct {
3434- Cid string `json:"cid" cborgen:"cid"`
3535- Uri string `json:"uri" cborgen:"uri"`
3434+ Cid string `json:"cid" cborgen:"cid"`
3535+ Commit *RepoDefs_CommitMeta `json:"commit,omitempty" cborgen:"commit,omitempty"`
3636+ Uri string `json:"uri" cborgen:"uri"`
3737+ ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"`
3638}
37393840// RepoPutRecord calls the XRPC method "com.atproto.repo.putRecord".
+15
api/bsky/actordefs.go
···3535type ActorDefs_BskyAppStatePref struct {
3636 LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#bskyAppStatePref" cborgen:"$type,const=app.bsky.actor.defs#bskyAppStatePref"`
3737 ActiveProgressGuide *ActorDefs_BskyAppProgressGuide `json:"activeProgressGuide,omitempty" cborgen:"activeProgressGuide,omitempty"`
3838+ // nuxs: Storage for NUXs the user has encountered.
3939+ Nuxs []*ActorDefs_Nux `json:"nuxs,omitempty" cborgen:"nuxs,omitempty"`
3840 // queuedNudges: An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user.
3941 QueuedNudges []string `json:"queuedNudges,omitempty" cborgen:"queuedNudges,omitempty"`
4042}
···130132 LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#mutedWordsPref" cborgen:"$type,const=app.bsky.actor.defs#mutedWordsPref"`
131133 // items: A list of words the account owner has muted.
132134 Items []*ActorDefs_MutedWord `json:"items" cborgen:"items"`
135135+}
136136+137137+// ActorDefs_Nux is a "nux" in the app.bsky.actor.defs schema.
138138+//
139139+// A new user experiences (NUX) storage object
140140+type ActorDefs_Nux struct {
141141+ Completed bool `json:"completed" cborgen:"completed"`
142142+ // data: Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters.
143143+ Data *string `json:"data,omitempty" cborgen:"data,omitempty"`
144144+ // expiresAt: The date and time at which the NUX will expire and should be considered completed.
145145+ ExpiresAt *string `json:"expiresAt,omitempty" cborgen:"expiresAt,omitempty"`
146146+ Id string `json:"id" cborgen:"id"`
133147}
134148135149// ActorDefs_PersonalDetailsPref is a "personalDetailsPref" in the app.bsky.actor.defs schema.
···311325 IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"`
312326 JoinedViaStarterPack *GraphDefs_StarterPackViewBasic `json:"joinedViaStarterPack,omitempty" cborgen:"joinedViaStarterPack,omitempty"`
313327 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
328328+ PinnedPost *comatprototypes.RepoStrongRef `json:"pinnedPost,omitempty" cborgen:"pinnedPost,omitempty"`
314329 PostsCount *int64 `json:"postsCount,omitempty" cborgen:"postsCount,omitempty"`
315330 Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
316331}
+2-1
api/bsky/actorprofile.go
···3131 DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"`
3232 JoinedViaStarterPack *comatprototypes.RepoStrongRef `json:"joinedViaStarterPack,omitempty" cborgen:"joinedViaStarterPack,omitempty"`
3333 // labels: Self-label values, specific to the Bluesky application, on the overall account.
3434- Labels *ActorProfile_Labels `json:"labels,omitempty" cborgen:"labels,omitempty"`
3434+ Labels *ActorProfile_Labels `json:"labels,omitempty" cborgen:"labels,omitempty"`
3535+ PinnedPost *comatprototypes.RepoStrongRef `json:"pinnedPost,omitempty" cborgen:"pinnedPost,omitempty"`
3536}
36373738// Self-label values, specific to the Bluesky application, on the overall account.
···1919// FeedGetAuthorFeed calls the XRPC method "app.bsky.feed.getAuthorFeed".
2020//
2121// filter: Combinations of post/repost types to include in response.
2222-func FeedGetAuthorFeed(ctx context.Context, c *xrpc.Client, actor string, cursor string, filter string, limit int64) (*FeedGetAuthorFeed_Output, error) {
2222+func FeedGetAuthorFeed(ctx context.Context, c *xrpc.Client, actor string, cursor string, filter string, includePins bool, limit int64) (*FeedGetAuthorFeed_Output, error) {
2323 var out FeedGetAuthorFeed_Output
24242525 params := map[string]interface{}{
2626- "actor": actor,
2727- "cursor": cursor,
2828- "filter": filter,
2929- "limit": limit,
2626+ "actor": actor,
2727+ "cursor": cursor,
2828+ "filter": filter,
2929+ "includePins": includePins,
3030+ "limit": limit,
3031 }
3132 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getAuthorFeed", params, nil, &out); err != nil {
3233 return nil, err
+2-1
api/bsky/feedgetPostThread.go
···15151616// FeedGetPostThread_Output is the output of a app.bsky.feed.getPostThread call.
1717type FeedGetPostThread_Output struct {
1818- Thread *FeedGetPostThread_Output_Thread `json:"thread" cborgen:"thread"`
1818+ Thread *FeedGetPostThread_Output_Thread `json:"thread" cborgen:"thread"`
1919+ Threadgate *FeedDefs_ThreadgateView `json:"threadgate,omitempty" cborgen:"threadgate,omitempty"`
1920}
20212122type FeedGetPostThread_Output_Thread struct {
+39
api/bsky/feedgetQuotes.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.feed.getQuotes
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// FeedGetQuotes_Output is the output of a app.bsky.feed.getQuotes call.
1414+type FeedGetQuotes_Output struct {
1515+ Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
1616+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1717+ Posts []*FeedDefs_PostView `json:"posts" cborgen:"posts"`
1818+ Uri string `json:"uri" cborgen:"uri"`
1919+}
2020+2121+// FeedGetQuotes calls the XRPC method "app.bsky.feed.getQuotes".
2222+//
2323+// cid: If supplied, filters to quotes of specific version (by CID) of the post record.
2424+// uri: Reference (AT-URI) of post record
2525+func FeedGetQuotes(ctx context.Context, c *xrpc.Client, cid string, cursor string, limit int64, uri string) (*FeedGetQuotes_Output, error) {
2626+ var out FeedGetQuotes_Output
2727+2828+ params := map[string]interface{}{
2929+ "cid": cid,
3030+ "cursor": cursor,
3131+ "limit": limit,
3232+ "uri": uri,
3333+ }
3434+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getQuotes", params, nil, &out); err != nil {
3535+ return nil, err
3636+ }
3737+3838+ return &out, nil
3939+}
+2
api/bsky/graphgetSuggestedFollowsByActor.go
···12121313// GraphGetSuggestedFollowsByActor_Output is the output of a app.bsky.graph.getSuggestedFollowsByActor call.
1414type GraphGetSuggestedFollowsByActor_Output struct {
1515+ // isFallback: If true, response has fallen-back to generic results, and is not scoped using relativeToDid
1616+ IsFallback *bool `json:"isFallback,omitempty" cborgen:"isFallback,omitempty"`
1517 Suggestions []*ActorDefs_ProfileView `json:"suggestions" cborgen:"suggestions"`
1618}
1719
+2
api/bsky/unspeccedgetSuggestionsSkeleton.go
···1414type UnspeccedGetSuggestionsSkeleton_Output struct {
1515 Actors []*UnspeccedDefs_SkeletonSearchActor `json:"actors" cborgen:"actors"`
1616 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1717+ // relativeToDid: DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer.
1818+ RelativeToDid *string `json:"relativeToDid,omitempty" cborgen:"relativeToDid,omitempty"`
1719}
18201921// UnspeccedGetSuggestionsSkeleton calls the XRPC method "app.bsky.unspecced.getSuggestionsSkeleton".
+2
api/ozone/communicationcreateTemplate.go
···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+ // lang: Message language.
2020+ Lang *string `json:"lang,omitempty" cborgen:"lang,omitempty"`
1921 // name: Name of the template.
2022 Name string `json:"name" cborgen:"name"`
2123 // subject: Subject of the message, used in emails.
+2
api/ozone/communicationdefs.go
···1111 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
1212 Disabled bool `json:"disabled" cborgen:"disabled"`
1313 Id string `json:"id" cborgen:"id"`
1414+ // lang: Message language.
1515+ Lang *string `json:"lang,omitempty" cborgen:"lang,omitempty"`
1416 // lastUpdatedBy: DID of the user who last updated the template.
1517 LastUpdatedBy string `json:"lastUpdatedBy" cborgen:"lastUpdatedBy"`
1618 // name: Name of the template.
+2
api/ozone/communicationupdateTemplate.go
···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+ // lang: Message language.
2121+ Lang *string `json:"lang,omitempty" cborgen:"lang,omitempty"`
2022 // name: Name of the template.
2123 Name *string `json:"name,omitempty" cborgen:"name,omitempty"`
2224 // subject: Subject of the message, used in emails.
+18-10
api/ozone/moderationdefs.go
···212212//
213213// RECORDTYPE: ModerationDefs_ModEventTakedown
214214type ModerationDefs_ModEventTakedown struct {
215215- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventTakedown" cborgen:"$type,const=tools.ozone.moderation.defs#modEventTakedown"`
216216- Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
215215+ LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventTakedown" cborgen:"$type,const=tools.ozone.moderation.defs#modEventTakedown"`
216216+ // acknowledgeAccountSubjects: If true, all other reports on content authored by this account will be resolved (acknowledged).
217217+ AcknowledgeAccountSubjects *bool `json:"acknowledgeAccountSubjects,omitempty" cborgen:"acknowledgeAccountSubjects,omitempty"`
218218+ Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
217219 // durationInHours: Indicates how long the takedown should be in effect before automatically expiring.
218220 DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"`
219221}
···659661}
660662661663// ModerationDefs_RecordViewDetail is a "recordViewDetail" in the tools.ozone.moderation.defs schema.
664664+//
665665+// RECORDTYPE: ModerationDefs_RecordViewDetail
662666type ModerationDefs_RecordViewDetail struct {
663663- Blobs []*ModerationDefs_BlobView `json:"blobs" cborgen:"blobs"`
664664- Cid string `json:"cid" cborgen:"cid"`
665665- IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
666666- Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
667667- Moderation *ModerationDefs_ModerationDetail `json:"moderation" cborgen:"moderation"`
668668- Repo *ModerationDefs_RepoView `json:"repo" cborgen:"repo"`
669669- Uri string `json:"uri" cborgen:"uri"`
670670- Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
667667+ LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#recordViewDetail" cborgen:"$type,const=tools.ozone.moderation.defs#recordViewDetail"`
668668+ Blobs []*ModerationDefs_BlobView `json:"blobs" cborgen:"blobs"`
669669+ Cid string `json:"cid" cborgen:"cid"`
670670+ IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
671671+ Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
672672+ Moderation *ModerationDefs_ModerationDetail `json:"moderation" cborgen:"moderation"`
673673+ Repo *ModerationDefs_RepoView `json:"repo" cborgen:"repo"`
674674+ Uri string `json:"uri" cborgen:"uri"`
675675+ Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
671676}
672677673678// ModerationDefs_RecordViewNotFound is a "recordViewNotFound" in the tools.ozone.moderation.defs schema.
···696701}
697702698703// ModerationDefs_RepoViewDetail is a "repoViewDetail" in the tools.ozone.moderation.defs schema.
704704+//
705705+// RECORDTYPE: ModerationDefs_RepoViewDetail
699706type ModerationDefs_RepoViewDetail struct {
707707+ LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#repoViewDetail" cborgen:"$type,const=tools.ozone.moderation.defs#repoViewDetail"`
700708 DeactivatedAt *string `json:"deactivatedAt,omitempty" cborgen:"deactivatedAt,omitempty"`
701709 Did string `json:"did" cborgen:"did"`
702710 Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
···2020//
2121// appealed: Get subjects in unresolved appealed status
2222// comment: Search subjects by keyword from comments
2323+// includeAllUserRecords: All subjects belonging to the account specified in the 'subject' param will be returned.
2324// includeMuted: By default, we don't include muted subjects in the results. Set this to true to include them.
2425// lastReviewedBy: Get all subject statuses that were reviewed by a specific moderator
2526// onlyMuted: When set to true, only muted subjects and reporters will be returned.
···2829// reviewState: Specify when fetching subjects in a certain state
2930// reviewedAfter: Search subjects reviewed after a given timestamp
3031// reviewedBefore: Search subjects reviewed before a given timestamp
3232+// subject: The subject to get the status for.
3133// takendown: Get subjects that were taken down
3232-func ModerationQueryStatuses(ctx context.Context, c *xrpc.Client, appealed bool, comment string, cursor string, excludeTags []string, ignoreSubjects []string, includeMuted bool, lastReviewedBy string, limit int64, onlyMuted bool, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) {
3434+func ModerationQueryStatuses(ctx context.Context, c *xrpc.Client, appealed bool, comment string, cursor string, excludeTags []string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, onlyMuted bool, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) {
3335 var out ModerationQueryStatuses_Output
34363537 params := map[string]interface{}{
3636- "appealed": appealed,
3737- "comment": comment,
3838- "cursor": cursor,
3939- "excludeTags": excludeTags,
4040- "ignoreSubjects": ignoreSubjects,
4141- "includeMuted": includeMuted,
4242- "lastReviewedBy": lastReviewedBy,
4343- "limit": limit,
4444- "onlyMuted": onlyMuted,
4545- "reportedAfter": reportedAfter,
4646- "reportedBefore": reportedBefore,
4747- "reviewState": reviewState,
4848- "reviewedAfter": reviewedAfter,
4949- "reviewedBefore": reviewedBefore,
5050- "sortDirection": sortDirection,
5151- "sortField": sortField,
5252- "subject": subject,
5353- "tags": tags,
5454- "takendown": takendown,
3838+ "appealed": appealed,
3939+ "comment": comment,
4040+ "cursor": cursor,
4141+ "excludeTags": excludeTags,
4242+ "ignoreSubjects": ignoreSubjects,
4343+ "includeAllUserRecords": includeAllUserRecords,
4444+ "includeMuted": includeMuted,
4545+ "lastReviewedBy": lastReviewedBy,
4646+ "limit": limit,
4747+ "onlyMuted": onlyMuted,
4848+ "reportedAfter": reportedAfter,
4949+ "reportedBefore": reportedBefore,
5050+ "reviewState": reviewState,
5151+ "reviewedAfter": reviewedAfter,
5252+ "reviewedBefore": reviewedBefore,
5353+ "sortDirection": sortDirection,
5454+ "sortField": sortField,
5555+ "subject": subject,
5656+ "tags": tags,
5757+ "takendown": takendown,
5558 }
5659 if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.queryStatuses", params, nil, &out); err != nil {
5760 return nil, err
+11
api/ozone/signaturedefs.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.signature.defs
66+77+// SignatureDefs_SigDetail is a "sigDetail" in the tools.ozone.signature.defs schema.
88+type SignatureDefs_SigDetail struct {
99+ Property string `json:"property" cborgen:"property"`
1010+ Value string `json:"value" cborgen:"value"`
1111+}
+30
api/ozone/signaturefindCorrelation.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.signature.findCorrelation
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// SignatureFindCorrelation_Output is the output of a tools.ozone.signature.findCorrelation call.
1414+type SignatureFindCorrelation_Output struct {
1515+ Details []*SignatureDefs_SigDetail `json:"details" cborgen:"details"`
1616+}
1717+1818+// SignatureFindCorrelation calls the XRPC method "tools.ozone.signature.findCorrelation".
1919+func SignatureFindCorrelation(ctx context.Context, c *xrpc.Client, dids []string) (*SignatureFindCorrelation_Output, error) {
2020+ var out SignatureFindCorrelation_Output
2121+2222+ params := map[string]interface{}{
2323+ "dids": dids,
2424+ }
2525+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.signature.findCorrelation", params, nil, &out); err != nil {
2626+ return nil, err
2727+ }
2828+2929+ return &out, nil
3030+}
+40
api/ozone/signaturefindRelatedAccounts.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.signature.findRelatedAccounts
66+77+import (
88+ "context"
99+1010+ comatprototypes "github.com/bluesky-social/indigo/api/atproto"
1111+ "github.com/bluesky-social/indigo/xrpc"
1212+)
1313+1414+// SignatureFindRelatedAccounts_Output is the output of a tools.ozone.signature.findRelatedAccounts call.
1515+type SignatureFindRelatedAccounts_Output struct {
1616+ Accounts []*SignatureFindRelatedAccounts_RelatedAccount `json:"accounts" cborgen:"accounts"`
1717+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1818+}
1919+2020+// SignatureFindRelatedAccounts_RelatedAccount is a "relatedAccount" in the tools.ozone.signature.findRelatedAccounts schema.
2121+type SignatureFindRelatedAccounts_RelatedAccount struct {
2222+ Account *comatprototypes.AdminDefs_AccountView `json:"account" cborgen:"account"`
2323+ Similarities []*SignatureDefs_SigDetail `json:"similarities,omitempty" cborgen:"similarities,omitempty"`
2424+}
2525+2626+// SignatureFindRelatedAccounts calls the XRPC method "tools.ozone.signature.findRelatedAccounts".
2727+func SignatureFindRelatedAccounts(ctx context.Context, c *xrpc.Client, cursor string, did string, limit int64) (*SignatureFindRelatedAccounts_Output, error) {
2828+ var out SignatureFindRelatedAccounts_Output
2929+3030+ params := map[string]interface{}{
3131+ "cursor": cursor,
3232+ "did": did,
3333+ "limit": limit,
3434+ }
3535+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.signature.findRelatedAccounts", params, nil, &out); err != nil {
3636+ return nil, err
3737+ }
3838+3939+ return &out, nil
4040+}
+34
api/ozone/signaturesearchAccounts.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.signature.searchAccounts
66+77+import (
88+ "context"
99+1010+ comatprototypes "github.com/bluesky-social/indigo/api/atproto"
1111+ "github.com/bluesky-social/indigo/xrpc"
1212+)
1313+1414+// SignatureSearchAccounts_Output is the output of a tools.ozone.signature.searchAccounts call.
1515+type SignatureSearchAccounts_Output struct {
1616+ Accounts []*comatprototypes.AdminDefs_AccountView `json:"accounts" cborgen:"accounts"`
1717+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1818+}
1919+2020+// SignatureSearchAccounts calls the XRPC method "tools.ozone.signature.searchAccounts".
2121+func SignatureSearchAccounts(ctx context.Context, c *xrpc.Client, cursor string, limit int64, values []string) (*SignatureSearchAccounts_Output, error) {
2222+ var out SignatureSearchAccounts_Output
2323+2424+ params := map[string]interface{}{
2525+ "cursor": cursor,
2626+ "limit": limit,
2727+ "values": values,
2828+ }
2929+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.signature.searchAccounts", params, nil, &out); err != nil {
3030+ return nil, err
3131+ }
3232+3333+ return &out, nil
3434+}
+2-2
cmd/athome/handlers.go
···8585 did := pv.Did
8686 data["did"] = did
87878888- af, err := appbsky.FeedGetAuthorFeed(ctx, srv.xrpcc, handle.String(), "", "posts_no_replies", 100)
8888+ af, err := appbsky.FeedGetAuthorFeed(ctx, srv.xrpcc, handle.String(), "", "posts_no_replies", false, 100)
8989 if err != nil {
9090 slog.Warn("failed to fetch author feed", "handle", handle, "err", err)
9191 // TODO: show some error?
···126126 //return err
127127 }
128128129129- af, err := appbsky.FeedGetAuthorFeed(ctx, srv.xrpcc, handle.String(), "", "posts_no_replies", 30)
129129+ af, err := appbsky.FeedGetAuthorFeed(ctx, srv.xrpcc, handle.String(), "", "posts_no_replies", false, 30)
130130 if err != nil {
131131 slog.Warn("failed to fetch author feed", "handle", handle, "err", err)
132132 return err