···2233package atproto
4455+// schema: com.atproto.admin.getInviteCodes
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.admin.getInviteCodes
1212-1313+// AdminGetInviteCodes_Output is the output of a com.atproto.admin.getInviteCodes call.
1314type AdminGetInviteCodes_Output struct {
1415 Codes []*ServerDefs_InviteCode `json:"codes" cborgen:"codes"`
1516 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1617}
17181919+// AdminGetInviteCodes calls the XRPC method "com.atproto.admin.getInviteCodes".
1820func AdminGetInviteCodes(ctx context.Context, c *xrpc.Client, cursor string, limit int64, sort string) (*AdminGetInviteCodes_Output, error) {
1921 var out AdminGetInviteCodes_Output
2022
+3-2
api/atproto/admingetModerationAction.go
···2233package atproto
4455+// schema: com.atproto.admin.getModerationAction
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.admin.getModerationAction
1212-1313+// AdminGetModerationAction calls the XRPC method "com.atproto.admin.getModerationAction".
1314func AdminGetModerationAction(ctx context.Context, c *xrpc.Client, id int64) (*AdminDefs_ActionViewDetail, error) {
1415 var out AdminDefs_ActionViewDetail
1516
+4-2
api/atproto/admingetModerationActions.go
···2233package atproto
4455+// schema: com.atproto.admin.getModerationActions
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.admin.getModerationActions
1212-1313+// AdminGetModerationActions_Output is the output of a com.atproto.admin.getModerationActions call.
1314type AdminGetModerationActions_Output struct {
1415 Actions []*AdminDefs_ActionView `json:"actions" cborgen:"actions"`
1516 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1617}
17181919+// AdminGetModerationActions calls the XRPC method "com.atproto.admin.getModerationActions".
1820func AdminGetModerationActions(ctx context.Context, c *xrpc.Client, cursor string, limit int64, subject string) (*AdminGetModerationActions_Output, error) {
1921 var out AdminGetModerationActions_Output
2022
+3-2
api/atproto/admingetModerationReport.go
···2233package atproto
4455+// schema: com.atproto.admin.getModerationReport
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.admin.getModerationReport
1212-1313+// AdminGetModerationReport calls the XRPC method "com.atproto.admin.getModerationReport".
1314func AdminGetModerationReport(ctx context.Context, c *xrpc.Client, id int64) (*AdminDefs_ReportViewDetail, error) {
1415 var out AdminDefs_ReportViewDetail
1516
+4-2
api/atproto/admingetModerationReports.go
···2233package atproto
4455+// schema: com.atproto.admin.getModerationReports
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.admin.getModerationReports
1212-1313+// AdminGetModerationReports_Output is the output of a com.atproto.admin.getModerationReports call.
1314type AdminGetModerationReports_Output struct {
1415 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1516 Reports []*AdminDefs_ReportView `json:"reports" cborgen:"reports"`
1617}
17181919+// AdminGetModerationReports calls the XRPC method "com.atproto.admin.getModerationReports".
1820func AdminGetModerationReports(ctx context.Context, c *xrpc.Client, cursor string, limit int64, resolved bool, subject string) (*AdminGetModerationReports_Output, error) {
1921 var out AdminGetModerationReports_Output
2022
+3-2
api/atproto/admingetRecord.go
···2233package atproto
4455+// schema: com.atproto.admin.getRecord
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.admin.getRecord
1212-1313+// AdminGetRecord calls the XRPC method "com.atproto.admin.getRecord".
1314func AdminGetRecord(ctx context.Context, c *xrpc.Client, cid string, uri string) (*AdminDefs_RecordViewDetail, error) {
1415 var out AdminDefs_RecordViewDetail
1516
+3-2
api/atproto/admingetRepo.go
···2233package atproto
4455+// schema: com.atproto.admin.getRepo
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.admin.getRepo
1212-1313+// AdminGetRepo calls the XRPC method "com.atproto.admin.getRepo".
1314func AdminGetRepo(ctx context.Context, c *xrpc.Client, did string) (*AdminDefs_RepoViewDetail, error) {
1415 var out AdminDefs_RepoViewDetail
1516
+4-2
api/atproto/adminresolveModerationReports.go
···2233package atproto
4455+// schema: com.atproto.admin.resolveModerationReports
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.admin.resolveModerationReports
1212-1313+// AdminResolveModerationReports_Input is the input argument to a com.atproto.admin.resolveModerationReports call.
1314type AdminResolveModerationReports_Input struct {
1415 ActionId int64 `json:"actionId" cborgen:"actionId"`
1516 CreatedBy string `json:"createdBy" cborgen:"createdBy"`
1617 ReportIds []int64 `json:"reportIds" cborgen:"reportIds"`
1718}
18192020+// AdminResolveModerationReports calls the XRPC method "com.atproto.admin.resolveModerationReports".
1921func AdminResolveModerationReports(ctx context.Context, c *xrpc.Client, input *AdminResolveModerationReports_Input) (*AdminDefs_ActionView, error) {
2022 var out AdminDefs_ActionView
2123 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.resolveModerationReports", nil, input, &out); err != nil {
+4-2
api/atproto/adminreverseModerationAction.go
···2233package atproto
4455+// schema: com.atproto.admin.reverseModerationAction
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.admin.reverseModerationAction
1212-1313+// AdminReverseModerationAction_Input is the input argument to a com.atproto.admin.reverseModerationAction call.
1314type AdminReverseModerationAction_Input struct {
1415 CreatedBy string `json:"createdBy" cborgen:"createdBy"`
1516 Id int64 `json:"id" cborgen:"id"`
1617 Reason string `json:"reason" cborgen:"reason"`
1718}
18192020+// AdminReverseModerationAction calls the XRPC method "com.atproto.admin.reverseModerationAction".
1921func AdminReverseModerationAction(ctx context.Context, c *xrpc.Client, input *AdminReverseModerationAction_Input) (*AdminDefs_ActionView, error) {
2022 var out AdminDefs_ActionView
2123 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.reverseModerationAction", nil, input, &out); err != nil {
+4-2
api/atproto/adminsearchRepos.go
···2233package atproto
4455+// schema: com.atproto.admin.searchRepos
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.admin.searchRepos
1212-1313+// AdminSearchRepos_Output is the output of a com.atproto.admin.searchRepos call.
1314type AdminSearchRepos_Output struct {
1415 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1516 Repos []*AdminDefs_RepoView `json:"repos" cborgen:"repos"`
1617}
17181919+// AdminSearchRepos calls the XRPC method "com.atproto.admin.searchRepos".
1820func AdminSearchRepos(ctx context.Context, c *xrpc.Client, cursor string, invitedBy string, limit int64, term string) (*AdminSearchRepos_Output, error) {
1921 var out AdminSearchRepos_Output
2022
+4-2
api/atproto/admintakeModerationAction.go
···2233package atproto
4455+// schema: com.atproto.admin.takeModerationAction
66+57import (
68 "context"
79 "encoding/json"
···1113 "github.com/bluesky-social/indigo/xrpc"
1214)
13151414-// schema: com.atproto.admin.takeModerationAction
1515-1616+// AdminTakeModerationAction_Input is the input argument to a com.atproto.admin.takeModerationAction call.
1617type AdminTakeModerationAction_Input struct {
1718 Action string `json:"action" cborgen:"action"`
1819 CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"`
···5859 }
5960}
60616262+// AdminTakeModerationAction calls the XRPC method "com.atproto.admin.takeModerationAction".
6163func AdminTakeModerationAction(ctx context.Context, c *xrpc.Client, input *AdminTakeModerationAction_Input) (*AdminDefs_ActionView, error) {
6264 var out AdminDefs_ActionView
6365 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.takeModerationAction", nil, input, &out); err != nil {
+5-2
api/atproto/adminupdateAccountEmail.go
···2233package atproto
4455+// schema: com.atproto.admin.updateAccountEmail
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.admin.updateAccountEmail
1212-1313+// AdminUpdateAccountEmail_Input is the input argument to a com.atproto.admin.updateAccountEmail call.
1314type AdminUpdateAccountEmail_Input struct {
1515+ // account: The handle or DID of the repo.
1416 Account string `json:"account" cborgen:"account"`
1517 Email string `json:"email" cborgen:"email"`
1618}
17192020+// AdminUpdateAccountEmail calls the XRPC method "com.atproto.admin.updateAccountEmail".
1821func AdminUpdateAccountEmail(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountEmail_Input) error {
1922 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateAccountEmail", nil, input, nil); err != nil {
2023 return err
+4-2
api/atproto/adminupdateAccountHandle.go
···2233package atproto
4455+// schema: com.atproto.admin.updateAccountHandle
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.admin.updateAccountHandle
1212-1313+// AdminUpdateAccountHandle_Input is the input argument to a com.atproto.admin.updateAccountHandle call.
1314type AdminUpdateAccountHandle_Input struct {
1415 Did string `json:"did" cborgen:"did"`
1516 Handle string `json:"handle" cborgen:"handle"`
1617}
17181919+// AdminUpdateAccountHandle calls the XRPC method "com.atproto.admin.updateAccountHandle".
1820func AdminUpdateAccountHandle(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountHandle_Input) error {
1921 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateAccountHandle", nil, input, nil); err != nil {
2022 return err
+6-2
api/atproto/identityresolveHandle.go
···2233package atproto
4455+// schema: com.atproto.identity.resolveHandle
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.identity.resolveHandle
1212-1313+// IdentityResolveHandle_Output is the output of a com.atproto.identity.resolveHandle call.
1314type IdentityResolveHandle_Output struct {
1415 Did string `json:"did" cborgen:"did"`
1516}
16171818+// IdentityResolveHandle calls the XRPC method "com.atproto.identity.resolveHandle".
1919+//
2020+// handle: The handle to resolve. If not supplied, will resolve the host's own handle.
1721func IdentityResolveHandle(ctx context.Context, c *xrpc.Client, handle string) (*IdentityResolveHandle_Output, error) {
1822 var out IdentityResolveHandle_Output
1923
+4-2
api/atproto/identityupdateHandle.go
···2233package atproto
4455+// schema: com.atproto.identity.updateHandle
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.identity.updateHandle
1212-1313+// IdentityUpdateHandle_Input is the input argument to a com.atproto.identity.updateHandle call.
1314type IdentityUpdateHandle_Input struct {
1415 Handle string `json:"handle" cborgen:"handle"`
1516}
16171818+// IdentityUpdateHandle calls the XRPC method "com.atproto.identity.updateHandle".
1719func IdentityUpdateHandle(ctx context.Context, c *xrpc.Client, input *IdentityUpdateHandle_Input) error {
1820 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.updateHandle", nil, input, nil); err != nil {
1921 return err
+14-5
api/atproto/labeldefs.go
···4455// schema: com.atproto.label.defs
6677+// LabelDefs_Label is a "label" in the com.atproto.label.defs schema.
88+//
99+// Metadata tag on an atproto resource (eg, repo or record)
710type LabelDefs_Label struct {
1111+ // cid: optionally, CID specifying the specific version of 'uri' resource this label applies to
812 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
99- Cts string `json:"cts" cborgen:"cts"`
1010- Neg *bool `json:"neg,omitempty" cborgen:"neg,omitempty"`
1111- Src string `json:"src" cborgen:"src"`
1212- Uri string `json:"uri" cborgen:"uri"`
1313- Val string `json:"val" cborgen:"val"`
1313+ // cts: timestamp when this label was created
1414+ Cts string `json:"cts" cborgen:"cts"`
1515+ // neg: if true, this is a negation label, overwriting a previous label
1616+ Neg *bool `json:"neg,omitempty" cborgen:"neg,omitempty"`
1717+ // src: DID of the actor who created this label
1818+ Src string `json:"src" cborgen:"src"`
1919+ // uri: AT URI of the record, repository (account), or other resource which this label applies to
2020+ Uri string `json:"uri" cborgen:"uri"`
2121+ // val: the short string name of the value or type of this label
2222+ Val string `json:"val" cborgen:"val"`
1423}
+7-2
api/atproto/labelqueryLabels.go
···2233package atproto
4455+// schema: com.atproto.label.queryLabels
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.label.queryLabels
1212-1313+// LabelQueryLabels_Output is the output of a com.atproto.label.queryLabels call.
1314type LabelQueryLabels_Output struct {
1415 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1516 Labels []*LabelDefs_Label `json:"labels" cborgen:"labels"`
1617}
17181919+// LabelQueryLabels calls the XRPC method "com.atproto.label.queryLabels".
2020+//
2121+// sources: Optional list of label sources (DIDs) to filter on
2222+// uriPatterns: List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI
1823func LabelQueryLabels(ctx context.Context, c *xrpc.Client, cursor string, limit int64, sources []string, uriPatterns []string) (*LabelQueryLabels_Output, error) {
1924 var out LabelQueryLabels_Output
2025
+2
api/atproto/labelsubscribeLabels.go
···4455// schema: com.atproto.label.subscribeLabels
6677+// LabelSubscribeLabels_Info is a "info" in the com.atproto.label.subscribeLabels schema.
78type LabelSubscribeLabels_Info struct {
89 Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
910 Name string `json:"name" cborgen:"name"`
1011}
11121313+// LabelSubscribeLabels_Labels is a "labels" in the com.atproto.label.subscribeLabels schema.
1214type LabelSubscribeLabels_Labels struct {
1315 Labels []*LabelDefs_Label `json:"labels" cborgen:"labels"`
1416 Seq int64 `json:"seq" cborgen:"seq"`
+5-2
api/atproto/moderationcreateReport.go
···2233package atproto
4455+// schema: com.atproto.moderation.createReport
66+57import (
68 "context"
79 "encoding/json"
···1113 "github.com/bluesky-social/indigo/xrpc"
1214)
13151414-// schema: com.atproto.moderation.createReport
1515-1616+// ModerationCreateReport_Input is the input argument to a com.atproto.moderation.createReport call.
1617type ModerationCreateReport_Input struct {
1718 Reason *string `json:"reason,omitempty" cborgen:"reason,omitempty"`
1819 ReasonType *string `json:"reasonType" cborgen:"reasonType"`
···5455 }
5556}
56575858+// ModerationCreateReport_Output is the output of a com.atproto.moderation.createReport call.
5759type ModerationCreateReport_Output struct {
5860 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
5961 Id int64 `json:"id" cborgen:"id"`
···98100 }
99101}
100102103103+// ModerationCreateReport calls the XRPC method "com.atproto.moderation.createReport".
101104func ModerationCreateReport(ctx context.Context, c *xrpc.Client, input *ModerationCreateReport_Input) (*ModerationCreateReport_Output, error) {
102105 var out ModerationCreateReport_Output
103106 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.moderation.createReport", nil, input, &out); err != nil {
+22-6
api/atproto/repoapplyWrites.go
···2233package atproto
4455+// schema: com.atproto.repo.applyWrites
66+57import (
68 "context"
79 "encoding/json"
···1113 "github.com/bluesky-social/indigo/xrpc"
1214)
13151414-// schema: com.atproto.repo.applyWrites
1515-1616+// RepoApplyWrites_Create is a "create" in the com.atproto.repo.applyWrites schema.
1717+//
1818+// Create a new record.
1919+//
1620// RECORDTYPE: RepoApplyWrites_Create
1721type RepoApplyWrites_Create struct {
1822 LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites" cborgen:"$type,const=com.atproto.repo.applyWrites"`
···2125 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
2226}
23272828+// RepoApplyWrites_Delete is a "delete" in the com.atproto.repo.applyWrites schema.
2929+//
3030+// Delete an existing record.
3131+//
2432// RECORDTYPE: RepoApplyWrites_Delete
2533type RepoApplyWrites_Delete struct {
2634 LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites" cborgen:"$type,const=com.atproto.repo.applyWrites"`
···2836 Rkey string `json:"rkey" cborgen:"rkey"`
2937}
30383939+// RepoApplyWrites_Input is the input argument to a com.atproto.repo.applyWrites call.
3140type RepoApplyWrites_Input struct {
3232- Repo string `json:"repo" cborgen:"repo"`
3333- SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
3434- Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
3535- Writes []*RepoApplyWrites_Input_Writes_Elem `json:"writes" cborgen:"writes"`
4141+ // repo: The handle or DID of the repo.
4242+ Repo string `json:"repo" cborgen:"repo"`
4343+ SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
4444+ // validate: Validate the records?
4545+ Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
4646+ Writes []*RepoApplyWrites_Input_Writes_Elem `json:"writes" cborgen:"writes"`
3647}
37483849type RepoApplyWrites_Input_Writes_Elem struct {
···7889 }
7990}
80919292+// RepoApplyWrites_Update is a "update" in the com.atproto.repo.applyWrites schema.
9393+//
9494+// Update an existing record.
9595+//
8196// RECORDTYPE: RepoApplyWrites_Update
8297type RepoApplyWrites_Update struct {
8398 LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites" cborgen:"$type,const=com.atproto.repo.applyWrites"`
···86101 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
87102}
88103104104+// RepoApplyWrites calls the XRPC method "com.atproto.repo.applyWrites".
89105func RepoApplyWrites(ctx context.Context, c *xrpc.Client, input *RepoApplyWrites_Input) error {
90106 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, nil); err != nil {
91107 return err
+17-8
api/atproto/repocreateRecord.go
···2233package atproto
4455+// schema: com.atproto.repo.createRecord
66+57import (
68 "context"
79···911 "github.com/bluesky-social/indigo/xrpc"
1012)
11131212-// schema: com.atproto.repo.createRecord
1313-1414+// RepoCreateRecord_Input is the input argument to a com.atproto.repo.createRecord call.
1415type RepoCreateRecord_Input struct {
1515- Collection string `json:"collection" cborgen:"collection"`
1616- Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
1717- Repo string `json:"repo" cborgen:"repo"`
1818- Rkey *string `json:"rkey,omitempty" cborgen:"rkey,omitempty"`
1919- SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
2020- Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
1616+ // collection: The NSID of the record collection.
1717+ Collection string `json:"collection" cborgen:"collection"`
1818+ // record: The record to create.
1919+ Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
2020+ // repo: The handle or DID of the repo.
2121+ Repo string `json:"repo" cborgen:"repo"`
2222+ // rkey: The key of the record.
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: Validate the record?
2727+ Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
2128}
22293030+// RepoCreateRecord_Output is the output of a com.atproto.repo.createRecord call.
2331type RepoCreateRecord_Output struct {
2432 Cid string `json:"cid" cborgen:"cid"`
2533 Uri string `json:"uri" cborgen:"uri"`
2634}
27353636+// RepoCreateRecord calls the XRPC method "com.atproto.repo.createRecord".
2837func RepoCreateRecord(ctx context.Context, c *xrpc.Client, input *RepoCreateRecord_Input) (*RepoCreateRecord_Output, error) {
2938 var out RepoCreateRecord_Output
3039 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.createRecord", nil, input, &out); err != nil {
+12-5
api/atproto/repodeleteRecord.go
···2233package atproto
4455+// schema: com.atproto.repo.deleteRecord
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.repo.deleteRecord
1212-1313+// RepoDeleteRecord_Input is the input argument to a com.atproto.repo.deleteRecord call.
1314type RepoDeleteRecord_Input struct {
1414- Collection string `json:"collection" cborgen:"collection"`
1515- Repo string `json:"repo" cborgen:"repo"`
1616- Rkey string `json:"rkey" cborgen:"rkey"`
1515+ // collection: The NSID of the record collection.
1616+ Collection string `json:"collection" cborgen:"collection"`
1717+ // repo: The handle or DID of the repo.
1818+ Repo string `json:"repo" cborgen:"repo"`
1919+ // rkey: The key of the record.
2020+ Rkey string `json:"rkey" cborgen:"rkey"`
2121+ // swapCommit: Compare and swap with the previous commit by cid.
1722 SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
2323+ // swapRecord: Compare and swap with the previous record by cid.
1824 SwapRecord *string `json:"swapRecord,omitempty" cborgen:"swapRecord,omitempty"`
1925}
20262727+// RepoDeleteRecord calls the XRPC method "com.atproto.repo.deleteRecord".
2128func RepoDeleteRecord(ctx context.Context, c *xrpc.Client, input *RepoDeleteRecord_Input) error {
2229 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.deleteRecord", nil, input, nil); err != nil {
2330 return err
+6-2
api/atproto/repodescribeRepo.go
···2233package atproto
4455+// schema: com.atproto.repo.describeRepo
66+57import (
68 "context"
79···911 "github.com/bluesky-social/indigo/xrpc"
1012)
11131212-// schema: com.atproto.repo.describeRepo
1313-1414+// RepoDescribeRepo_Output is the output of a com.atproto.repo.describeRepo call.
1415type RepoDescribeRepo_Output struct {
1516 Collections []string `json:"collections" cborgen:"collections"`
1617 Did string `json:"did" cborgen:"did"`
···1920 HandleIsCorrect bool `json:"handleIsCorrect" cborgen:"handleIsCorrect"`
2021}
21222323+// RepoDescribeRepo calls the XRPC method "com.atproto.repo.describeRepo".
2424+//
2525+// repo: The handle or DID of the repo.
2226func RepoDescribeRepo(ctx context.Context, c *xrpc.Client, repo string) (*RepoDescribeRepo_Output, error) {
2327 var out RepoDescribeRepo_Output
2428
+9-2
api/atproto/repogetRecord.go
···2233package atproto
4455+// schema: com.atproto.repo.getRecord
66+57import (
68 "context"
79···911 "github.com/bluesky-social/indigo/xrpc"
1012)
11131212-// schema: com.atproto.repo.getRecord
1313-1414+// RepoGetRecord_Output is the output of a com.atproto.repo.getRecord call.
1415type RepoGetRecord_Output struct {
1516 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
1617 Uri string `json:"uri" cborgen:"uri"`
1718 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
1819}
19202121+// RepoGetRecord calls the XRPC method "com.atproto.repo.getRecord".
2222+//
2323+// cid: The CID of the version of the record. If not specified, then return the most recent version.
2424+// collection: The NSID of the record collection.
2525+// repo: The handle or DID of the repo.
2626+// rkey: The key of the record.
2027func RepoGetRecord(ctx context.Context, c *xrpc.Client, cid string, collection string, repo string, rkey string) (*RepoGetRecord_Output, error) {
2128 var out RepoGetRecord_Output
2229
+12-2
api/atproto/repolistRecords.go
···2233package atproto
4455+// schema: com.atproto.repo.listRecords
66+57import (
68 "context"
79···911 "github.com/bluesky-social/indigo/xrpc"
1012)
11131212-// schema: com.atproto.repo.listRecords
1313-1414+// RepoListRecords_Output is the output of a com.atproto.repo.listRecords call.
1415type RepoListRecords_Output struct {
1516 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1617 Records []*RepoListRecords_Record `json:"records" cborgen:"records"`
1718}
18192020+// RepoListRecords_Record is a "record" in the com.atproto.repo.listRecords schema.
1921type RepoListRecords_Record struct {
2022 Cid string `json:"cid" cborgen:"cid"`
2123 Uri string `json:"uri" cborgen:"uri"`
2224 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
2325}
24262727+// RepoListRecords calls the XRPC method "com.atproto.repo.listRecords".
2828+//
2929+// collection: The NSID of the record type.
3030+// limit: The number of records to return.
3131+// repo: The handle or DID of the repo.
3232+// reverse: Reverse the order of the returned records?
3333+// rkeyEnd: DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)
3434+// rkeyStart: DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)
2535func RepoListRecords(ctx context.Context, c *xrpc.Client, collection string, cursor string, limit int64, repo string, reverse bool, rkeyEnd string, rkeyStart string) (*RepoListRecords_Output, error) {
2636 var out RepoListRecords_Output
2737
+19-9
api/atproto/repoputRecord.go
···2233package atproto
4455+// schema: com.atproto.repo.putRecord
66+57import (
68 "context"
79···911 "github.com/bluesky-social/indigo/xrpc"
1012)
11131212-// schema: com.atproto.repo.putRecord
1313-1414+// RepoPutRecord_Input is the input argument to a com.atproto.repo.putRecord call.
1415type RepoPutRecord_Input struct {
1515- Collection string `json:"collection" cborgen:"collection"`
1616- Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
1717- Repo string `json:"repo" cborgen:"repo"`
1818- Rkey string `json:"rkey" cborgen:"rkey"`
1919- SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
2020- SwapRecord *string `json:"swapRecord" cborgen:"swapRecord"`
2121- Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
1616+ // collection: The NSID of the record collection.
1717+ Collection string `json:"collection" cborgen:"collection"`
1818+ // record: The record to write.
1919+ Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
2020+ // repo: The handle or DID of the repo.
2121+ Repo string `json:"repo" cborgen:"repo"`
2222+ // rkey: The key of the record.
2323+ Rkey string `json:"rkey" cborgen:"rkey"`
2424+ // swapCommit: Compare and swap with the previous commit by cid.
2525+ SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
2626+ // swapRecord: Compare and swap with the previous record by cid.
2727+ SwapRecord *string `json:"swapRecord" cborgen:"swapRecord"`
2828+ // validate: Validate the record?
2929+ Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
2230}
23313232+// RepoPutRecord_Output is the output of a com.atproto.repo.putRecord call.
2433type RepoPutRecord_Output struct {
2534 Cid string `json:"cid" cborgen:"cid"`
2635 Uri string `json:"uri" cborgen:"uri"`
2736}
28373838+// RepoPutRecord calls the XRPC method "com.atproto.repo.putRecord".
2939func RepoPutRecord(ctx context.Context, c *xrpc.Client, input *RepoPutRecord_Input) (*RepoPutRecord_Output, error) {
3040 var out RepoPutRecord_Output
3141 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.putRecord", nil, input, &out); err != nil {
···2233package atproto
4455+// schema: com.atproto.server.revokeAppPassword
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.server.revokeAppPassword
1212-1313+// ServerRevokeAppPassword_Input is the input argument to a com.atproto.server.revokeAppPassword call.
1314type ServerRevokeAppPassword_Input struct {
1415 Name string `json:"name" cborgen:"name"`
1516}
16171818+// ServerRevokeAppPassword calls the XRPC method "com.atproto.server.revokeAppPassword".
1719func ServerRevokeAppPassword(ctx context.Context, c *xrpc.Client, input *ServerRevokeAppPassword_Input) error {
1820 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.revokeAppPassword", nil, input, nil); err != nil {
1921 return err
+6-2
api/atproto/syncgetBlob.go
···2233package atproto
4455+// schema: com.atproto.sync.getBlob
66+57import (
68 "bytes"
79 "context"
···911 "github.com/bluesky-social/indigo/xrpc"
1012)
11131212-// schema: com.atproto.sync.getBlob
1313-1414+// SyncGetBlob calls the XRPC method "com.atproto.sync.getBlob".
1515+//
1616+// cid: The CID of the blob to fetch
1717+// did: The DID of the repo.
1418func SyncGetBlob(ctx context.Context, c *xrpc.Client, cid string, did string) ([]byte, error) {
1519 buf := new(bytes.Buffer)
1620
+5-2
api/atproto/syncgetBlocks.go
···2233package atproto
4455+// schema: com.atproto.sync.getBlocks
66+57import (
68 "bytes"
79 "context"
···911 "github.com/bluesky-social/indigo/xrpc"
1012)
11131212-// schema: com.atproto.sync.getBlocks
1313-1414+// SyncGetBlocks calls the XRPC method "com.atproto.sync.getBlocks".
1515+//
1616+// did: The DID of the repo.
1417func SyncGetBlocks(ctx context.Context, c *xrpc.Client, cids []string, did string) ([]byte, error) {
1518 buf := new(bytes.Buffer)
1619
+6-2
api/atproto/syncgetCheckout.go
···2233package atproto
4455+// schema: com.atproto.sync.getCheckout
66+57import (
68 "bytes"
79 "context"
···911 "github.com/bluesky-social/indigo/xrpc"
1012)
11131212-// schema: com.atproto.sync.getCheckout
1313-1414+// SyncGetCheckout calls the XRPC method "com.atproto.sync.getCheckout".
1515+//
1616+// commit: The commit to get the checkout from. Defaults to current HEAD.
1717+// did: The DID of the repo.
1418func SyncGetCheckout(ctx context.Context, c *xrpc.Client, commit string, did string) ([]byte, error) {
1519 buf := new(bytes.Buffer)
1620
+8-2
api/atproto/syncgetCommitPath.go
···2233package atproto
4455+// schema: com.atproto.sync.getCommitPath
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.sync.getCommitPath
1212-1313+// SyncGetCommitPath_Output is the output of a com.atproto.sync.getCommitPath call.
1314type SyncGetCommitPath_Output struct {
1415 Commits []string `json:"commits" cborgen:"commits"`
1516}
16171818+// SyncGetCommitPath calls the XRPC method "com.atproto.sync.getCommitPath".
1919+//
2020+// did: The DID of the repo.
2121+// earliest: The earliest commit to start from
2222+// latest: The most recent commit
1723func SyncGetCommitPath(ctx context.Context, c *xrpc.Client, did string, earliest string, latest string) (*SyncGetCommitPath_Output, error) {
1824 var out SyncGetCommitPath_Output
1925
+6-2
api/atproto/syncgetHead.go
···2233package atproto
4455+// schema: com.atproto.sync.getHead
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.sync.getHead
1212-1313+// SyncGetHead_Output is the output of a com.atproto.sync.getHead call.
1314type SyncGetHead_Output struct {
1415 Root string `json:"root" cborgen:"root"`
1516}
16171818+// SyncGetHead calls the XRPC method "com.atproto.sync.getHead".
1919+//
2020+// did: The DID of the repo.
1721func SyncGetHead(ctx context.Context, c *xrpc.Client, did string) (*SyncGetHead_Output, error) {
1822 var out SyncGetHead_Output
1923
+6-2
api/atproto/syncgetRecord.go
···2233package atproto
4455+// schema: com.atproto.sync.getRecord
66+57import (
68 "bytes"
79 "context"
···911 "github.com/bluesky-social/indigo/xrpc"
1012)
11131212-// schema: com.atproto.sync.getRecord
1313-1414+// SyncGetRecord calls the XRPC method "com.atproto.sync.getRecord".
1515+//
1616+// commit: An optional past commit CID.
1717+// did: The DID of the repo.
1418func SyncGetRecord(ctx context.Context, c *xrpc.Client, collection string, commit string, did string, rkey string) ([]byte, error) {
1519 buf := new(bytes.Buffer)
1620
+7-2
api/atproto/syncgetRepo.go
···2233package atproto
4455+// schema: com.atproto.sync.getRepo
66+57import (
68 "bytes"
79 "context"
···911 "github.com/bluesky-social/indigo/xrpc"
1012)
11131212-// schema: com.atproto.sync.getRepo
1313-1414+// SyncGetRepo calls the XRPC method "com.atproto.sync.getRepo".
1515+//
1616+// did: The DID of the repo.
1717+// earliest: The earliest commit in the commit range (not inclusive)
1818+// latest: The latest commit in the commit range (inclusive)
1419func SyncGetRepo(ctx context.Context, c *xrpc.Client, did string, earliest string, latest string) ([]byte, error) {
1520 buf := new(bytes.Buffer)
1621
+8-2
api/atproto/synclistBlobs.go
···2233package atproto
4455+// schema: com.atproto.sync.listBlobs
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.sync.listBlobs
1212-1313+// SyncListBlobs_Output is the output of a com.atproto.sync.listBlobs call.
1314type SyncListBlobs_Output struct {
1415 Cids []string `json:"cids" cborgen:"cids"`
1516}
16171818+// SyncListBlobs calls the XRPC method "com.atproto.sync.listBlobs".
1919+//
2020+// did: The DID of the repo.
2121+// earliest: The earliest commit to start from
2222+// latest: The most recent commit
1723func SyncListBlobs(ctx context.Context, c *xrpc.Client, did string, earliest string, latest string) (*SyncListBlobs_Output, error) {
1824 var out SyncListBlobs_Output
1925
+5-2
api/atproto/synclistRepos.go
···2233package atproto
4455+// schema: com.atproto.sync.listRepos
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.sync.listRepos
1212-1313+// SyncListRepos_Output is the output of a com.atproto.sync.listRepos call.
1314type SyncListRepos_Output struct {
1415 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1516 Repos []*SyncListRepos_Repo `json:"repos" cborgen:"repos"`
1617}
17181919+// SyncListRepos_Repo is a "repo" in the com.atproto.sync.listRepos schema.
1820type SyncListRepos_Repo struct {
1921 Did string `json:"did" cborgen:"did"`
2022 Head string `json:"head" cborgen:"head"`
2123}
22242525+// SyncListRepos calls the XRPC method "com.atproto.sync.listRepos".
2326func SyncListRepos(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*SyncListRepos_Output, error) {
2427 var out SyncListRepos_Output
2528
+5-2
api/atproto/syncnotifyOfUpdate.go
···2233package atproto
4455+// schema: com.atproto.sync.notifyOfUpdate
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.sync.notifyOfUpdate
1212-1313+// SyncNotifyOfUpdate calls the XRPC method "com.atproto.sync.notifyOfUpdate".
1414+//
1515+// hostname: Hostname of the service that is notifying of update.
1316func SyncNotifyOfUpdate(ctx context.Context, c *xrpc.Client, hostname string) error {
14171518 params := map[string]interface{}{
+5-2
api/atproto/syncrequestCrawl.go
···2233package atproto
4455+// schema: com.atproto.sync.requestCrawl
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: com.atproto.sync.requestCrawl
1212-1313+// SyncRequestCrawl calls the XRPC method "com.atproto.sync.requestCrawl".
1414+//
1515+// hostname: Hostname of the service that is requesting to be crawled.
1316func SyncRequestCrawl(ctx context.Context, c *xrpc.Client, hostname string) error {
14171518 params := map[string]interface{}{
+10-3
api/atproto/syncsubscribeRepos.go
···2233package atproto
4455+// schema: com.atproto.sync.subscribeRepos
66+57import (
68 "github.com/bluesky-social/indigo/lex/util"
79)
81099-// schema: com.atproto.sync.subscribeRepos
1010-1111+// SyncSubscribeRepos_Commit is a "commit" in the com.atproto.sync.subscribeRepos schema.
1112type SyncSubscribeRepos_Commit struct {
1212- Blobs []util.LexLink `json:"blobs" cborgen:"blobs"`
1313+ Blobs []util.LexLink `json:"blobs" cborgen:"blobs"`
1414+ // blocks: CAR file containing relevant blocks
1315 Blocks util.LexBytes `json:"blocks,omitempty" cborgen:"blocks"`
1416 Commit util.LexLink `json:"commit" cborgen:"commit"`
1517 Ops []*SyncSubscribeRepos_RepoOp `json:"ops" cborgen:"ops"`
···2123 TooBig bool `json:"tooBig" cborgen:"tooBig"`
2224}
23252626+// SyncSubscribeRepos_Handle is a "handle" in the com.atproto.sync.subscribeRepos schema.
2427type SyncSubscribeRepos_Handle struct {
2528 Did string `json:"did" cborgen:"did"`
2629 Handle string `json:"handle" cborgen:"handle"`
···2831 Time string `json:"time" cborgen:"time"`
2932}
30333434+// SyncSubscribeRepos_Info is a "info" in the com.atproto.sync.subscribeRepos schema.
3135type SyncSubscribeRepos_Info struct {
3236 Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
3337 Name string `json:"name" cborgen:"name"`
3438}
35394040+// SyncSubscribeRepos_Migrate is a "migrate" in the com.atproto.sync.subscribeRepos schema.
3641type SyncSubscribeRepos_Migrate struct {
3742 Did string `json:"did" cborgen:"did"`
3843 MigrateTo *string `json:"migrateTo" cborgen:"migrateTo"`
···4045 Time string `json:"time" cborgen:"time"`
4146}
42474848+// SyncSubscribeRepos_RepoOp is a "repoOp" in the com.atproto.sync.subscribeRepos schema.
4349type SyncSubscribeRepos_RepoOp struct {
4450 Action string `json:"action" cborgen:"action"`
4551 Cid *util.LexLink `json:"cid" cborgen:"cid"`
4652 Path string `json:"path" cborgen:"path"`
4753}
48545555+// SyncSubscribeRepos_Tombstone is a "tombstone" in the com.atproto.sync.subscribeRepos schema.
4956type SyncSubscribeRepos_Tombstone struct {
5057 Did string `json:"did" cborgen:"did"`
5158 Seq int64 `json:"seq" cborgen:"seq"`
+6-2
api/bsky/actordefs.go
···2233package bsky
4455+// schema: app.bsky.actor.defs
66+57import (
68 comatprototypes "github.com/bluesky-social/indigo/api/atproto"
79)
81099-// schema: app.bsky.actor.defs
1010-1111+// ActorDefs_ProfileView is a "profileView" in the app.bsky.actor.defs schema.
1112type ActorDefs_ProfileView struct {
1213 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
1314 Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
···1920 Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
2021}
21222323+// ActorDefs_ProfileViewBasic is a "profileViewBasic" in the app.bsky.actor.defs schema.
2224type ActorDefs_ProfileViewBasic struct {
2325 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
2426 Did string `json:"did" cborgen:"did"`
···2830 Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
2931}
30323333+// ActorDefs_ProfileViewDetailed is a "profileViewDetailed" in the app.bsky.actor.defs schema.
3134type ActorDefs_ProfileViewDetailed struct {
3235 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
3336 Banner *string `json:"banner,omitempty" cborgen:"banner,omitempty"`
···4346 Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
4447}
45484949+// ActorDefs_ViewerState is a "viewerState" in the app.bsky.actor.defs schema.
4650type ActorDefs_ViewerState struct {
4751 FollowedBy *string `json:"followedBy,omitempty" cborgen:"followedBy,omitempty"`
4852 Following *string `json:"following,omitempty" cborgen:"following,omitempty"`
+3-2
api/bsky/actorgetProfile.go
···2233package bsky
4455+// schema: app.bsky.actor.getProfile
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: app.bsky.actor.getProfile
1212-1313+// ActorGetProfile calls the XRPC method "app.bsky.actor.getProfile".
1314func ActorGetProfile(ctx context.Context, c *xrpc.Client, actor string) (*ActorDefs_ProfileViewDetailed, error) {
1415 var out ActorDefs_ProfileViewDetailed
1516
+4-2
api/bsky/actorgetProfiles.go
···2233package bsky
4455+// schema: app.bsky.actor.getProfiles
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: app.bsky.actor.getProfiles
1212-1313+// ActorGetProfiles_Output is the output of a app.bsky.actor.getProfiles call.
1314type ActorGetProfiles_Output struct {
1415 Profiles []*ActorDefs_ProfileViewDetailed `json:"profiles" cborgen:"profiles"`
1516}
16171818+// ActorGetProfiles calls the XRPC method "app.bsky.actor.getProfiles".
1719func ActorGetProfiles(ctx context.Context, c *xrpc.Client, actors []string) (*ActorGetProfiles_Output, error) {
1820 var out ActorGetProfiles_Output
1921
+4-2
api/bsky/actorgetSuggestions.go
···2233package bsky
4455+// schema: app.bsky.actor.getSuggestions
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: app.bsky.actor.getSuggestions
1212-1313+// ActorGetSuggestions_Output is the output of a app.bsky.actor.getSuggestions call.
1314type ActorGetSuggestions_Output struct {
1415 Actors []*ActorDefs_ProfileView `json:"actors" cborgen:"actors"`
1516 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1617}
17181919+// ActorGetSuggestions calls the XRPC method "app.bsky.actor.getSuggestions".
1820func ActorGetSuggestions(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*ActorGetSuggestions_Output, error) {
1921 var out ActorGetSuggestions_Output
2022
···2233package bsky
4455+// schema: app.bsky.notification.updateSeen
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: app.bsky.notification.updateSeen
1212-1313+// NotificationUpdateSeen_Input is the input argument to a app.bsky.notification.updateSeen call.
1314type NotificationUpdateSeen_Input struct {
1415 SeenAt string `json:"seenAt" cborgen:"seenAt"`
1516}
16171818+// NotificationUpdateSeen calls the XRPC method "app.bsky.notification.updateSeen".
1719func NotificationUpdateSeen(ctx context.Context, c *xrpc.Client, input *NotificationUpdateSeen_Input) error {
1820 if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.notification.updateSeen", nil, input, nil); err != nil {
1921 return err
+14-2
api/bsky/richtextfacet.go
···2233package bsky
4455+// schema: app.bsky.richtext.facet
66+57import (
68 "bytes"
79 "encoding/json"
···1214 cbg "github.com/whyrusleeping/cbor-gen"
1315)
14161515-// schema: app.bsky.richtext.facet
1616-1717+// RichtextFacet is a "main" in the app.bsky.richtext.facet schema.
1718type RichtextFacet struct {
1819 Features []*RichtextFacet_Features_Elem `json:"features" cborgen:"features"`
1920 Index *RichtextFacet_ByteSlice `json:"index" cborgen:"index"`
2021}
21222323+// RichtextFacet_ByteSlice is a "byteSlice" in the app.bsky.richtext.facet schema.
2424+//
2525+// A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings.
2226type RichtextFacet_ByteSlice struct {
2327 ByteEnd int64 `json:"byteEnd" cborgen:"byteEnd"`
2428 ByteStart int64 `json:"byteStart" cborgen:"byteStart"`
···9296 }
9397}
94989999+// RichtextFacet_Link is a "link" in the app.bsky.richtext.facet schema.
100100+//
101101+// A facet feature for links.
102102+//
95103// RECORDTYPE: RichtextFacet_Link
96104type RichtextFacet_Link struct {
97105 LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet" cborgen:"$type,const=app.bsky.richtext.facet"`
98106 Uri string `json:"uri" cborgen:"uri"`
99107}
100108109109+// RichtextFacet_Mention is a "mention" in the app.bsky.richtext.facet schema.
110110+//
111111+// A facet feature for actor mentions.
112112+//
101113// RECORDTYPE: RichtextFacet_Mention
102114type RichtextFacet_Mention struct {
103115 LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet" cborgen:"$type,const=app.bsky.richtext.facet"`
+4-2
api/bsky/unspeccedgetPopular.go
···2233package bsky
4455+// schema: app.bsky.unspecced.getPopular
66+57import (
68 "context"
79810 "github.com/bluesky-social/indigo/xrpc"
911)
10121111-// schema: app.bsky.unspecced.getPopular
1212-1313+// UnspeccedGetPopular_Output is the output of a app.bsky.unspecced.getPopular call.
1314type UnspeccedGetPopular_Output struct {
1415 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1516 Feed []*FeedDefs_FeedViewPost `json:"feed" cborgen:"feed"`
1617}
17181919+// UnspeccedGetPopular calls the XRPC method "app.bsky.unspecced.getPopular".
1820func UnspeccedGetPopular(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*UnspeccedGetPopular_Output, error) {
1921 var out UnspeccedGetPopular_Output
2022
+36-7
lex/gen.go
···88888989type outputType struct {
9090 Name string
9191- DefName string
9291 Type *TypeSchema
9392 NeedsCbor bool
9493 NeedsType bool
···310309 pf("// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.\n\n")
311310312311 pf("package %s\n\n", pkg)
312312+313313+ pf("// schema: %s\n\n", s.ID)
314314+313315 pf("import (\n")
314316 pf("\t\"context\"\n")
315317 pf("\t\"fmt\"\n")
···323325 }
324326 }
325327 pf(")\n\n")
326326- pf("// schema: %s\n\n", s.ID)
327328328329 tps := s.AllTypes(prefix, defmap)
329330···471472 }
472473473474 if s.Parameters != nil {
474474- if err := orderedMapIter[*TypeSchema](s.Parameters.Properties, func(name string, t *TypeSchema) error {
475475+ if err := orderedMapIter(s.Parameters.Properties, func(name string, t *TypeSchema) error {
475476 tn, err := s.typeNameForField(name, "", *t)
476477 if err != nil {
477478 return err
···502503 }
503504 }
504505506506+ pf("// %s calls the XRPC method %q.\n", fname, s.id)
507507+ if s.Parameters != nil && len(s.Parameters.Properties) > 0 {
508508+ pf("//\n")
509509+ if err := orderedMapIter(s.Parameters.Properties, func(name string, t *TypeSchema) error {
510510+ if t.Description != "" {
511511+ pf("// %s: %s\n", name, t.Description)
512512+ }
513513+ return nil
514514+ }); err != nil {
515515+ return err
516516+ }
517517+ }
505518 pf("func %s(%s) %s {\n", fname, params, out)
506519507520 outvar := "nil"
···534547 pf(`
535548 params := map[string]interface{}{
536549`)
537537- if err := orderedMapIter[*TypeSchema](s.Parameters.Properties, func(name string, t *TypeSchema) error {
550550+ if err := orderedMapIter(s.Parameters.Properties, func(name string, t *TypeSchema) error {
538551 pf(`"%s": %s,
539552`, name, name)
540553 return nil
···836849 required[k] = true
837850 }
838851 }
839839- if err := orderedMapIter[*TypeSchema](s.Parameters.Properties, func(k string, t *TypeSchema) error {
852852+ if err := orderedMapIter(s.Parameters.Properties, func(k string, t *TypeSchema) error {
840853 switch t.Type {
841854 case "string":
842855 params = append(params, k)
···1129114211301143func (ts *TypeSchema) writeTypeDefinition(name string, w io.Writer) error {
11311144 pf := printerf(w)
11451145+11461146+ switch {
11471147+ case strings.HasSuffix(name, "_Output"):
11481148+ pf("// %s is the output of a %s call.\n", name, ts.id)
11491149+ case strings.HasSuffix(name, "Input"):
11501150+ pf("// %s is the input argument to a %s call.\n", name, ts.id)
11511151+ case ts.defName != "":
11521152+ pf("// %s is a %q in the %s schema.\n", name, ts.defName, ts.id)
11531153+ }
11541154+ if ts.Description != "" {
11551155+ pf("//\n// %s\n", ts.Description)
11561156+ }
11571157+11321158 switch ts.Type {
11331159 case "string":
11341160 // TODO: deal with max length
···11461172 }
1147117311481174 if ts.needsType {
11491149- pf("// RECORDTYPE: %s\n", name)
11751175+ pf("//\n// RECORDTYPE: %s\n", name)
11501176 }
1151117711521178 pf("type %s struct {\n", name)
···11711197 nullable[req] = true
11721198 }
1173119911741174- if err := orderedMapIter[*TypeSchema](ts.Properties, func(k string, v *TypeSchema) error {
12001200+ if err := orderedMapIter(ts.Properties, func(k string, v *TypeSchema) error {
11751201 goname := strings.Title(k)
1176120211771203 tname, err := ts.typeNameForField(name, k, *v)
···12021228 jsonOmit = ",omitempty"
12031229 }
1204123012311231+ if v.Description != "" {
12321232+ pf("\t// %s: %s\n", k, v.Description)
12331233+ }
12051234 pf("\t%s %s%s `json:\"%s%s\" cborgen:\"%s%s\"`\n", goname, ptr, tname, k, jsonOmit, k, cborOmit)
12061235 return nil
12071236 }); err != nil {