···20202121// AdminDefs_ActionView is a "actionView" in the com.atproto.admin.defs schema.
2222type AdminDefs_ActionView struct {
2323- Action *string `json:"action" cborgen:"action"`
2424- CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"`
2525- CreatedAt string `json:"createdAt" cborgen:"createdAt"`
2626- CreatedBy string `json:"createdBy" cborgen:"createdBy"`
2323+ Action *string `json:"action" cborgen:"action"`
2424+ CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"`
2525+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
2626+ CreatedBy string `json:"createdBy" cborgen:"createdBy"`
2727+ // durationInHours: Indicates how long this action was meant to be in effect before automatically expiring.
2828+ DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"`
2729 Id int64 `json:"id" cborgen:"id"`
2830 NegateLabelVals []string `json:"negateLabelVals,omitempty" cborgen:"negateLabelVals,omitempty"`
2931 Reason string `json:"reason" cborgen:"reason"`
···3638// AdminDefs_ActionViewCurrent is a "actionViewCurrent" in the com.atproto.admin.defs schema.
3739type AdminDefs_ActionViewCurrent struct {
3840 Action *string `json:"action" cborgen:"action"`
3939- Id int64 `json:"id" cborgen:"id"`
4141+ // durationInHours: Indicates how long this action was meant to be in effect before automatically expiring.
4242+ DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"`
4343+ Id int64 `json:"id" cborgen:"id"`
4044}
41454246// AdminDefs_ActionViewDetail is a "actionViewDetail" in the com.atproto.admin.defs schema.
4347type AdminDefs_ActionViewDetail struct {
4444- Action *string `json:"action" cborgen:"action"`
4545- CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"`
4646- CreatedAt string `json:"createdAt" cborgen:"createdAt"`
4747- CreatedBy string `json:"createdBy" cborgen:"createdBy"`
4848+ Action *string `json:"action" cborgen:"action"`
4949+ CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"`
5050+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
5151+ CreatedBy string `json:"createdBy" cborgen:"createdBy"`
5252+ // durationInHours: Indicates how long this action was meant to be in effect before automatically expiring.
5353+ DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"`
4854 Id int64 `json:"id" cborgen:"id"`
4955 NegateLabelVals []string `json:"negateLabelVals,omitempty" cborgen:"negateLabelVals,omitempty"`
5056 Reason string `json:"reason" cborgen:"reason"`
+5-3
api/atproto/admintakeModerationAction.go
···15151616// AdminTakeModerationAction_Input is the input argument to a com.atproto.admin.takeModerationAction call.
1717type AdminTakeModerationAction_Input struct {
1818- Action string `json:"action" cborgen:"action"`
1919- CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"`
2020- CreatedBy string `json:"createdBy" cborgen:"createdBy"`
1818+ Action string `json:"action" cborgen:"action"`
1919+ CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"`
2020+ CreatedBy string `json:"createdBy" cborgen:"createdBy"`
2121+ // durationInHours: Indicates how long this action was meant to be in effect before automatically expiring.
2222+ DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"`
2123 NegateLabelVals []string `json:"negateLabelVals,omitempty" cborgen:"negateLabelVals,omitempty"`
2224 Reason string `json:"reason" cborgen:"reason"`
2325 Subject *AdminTakeModerationAction_Input_Subject `json:"subject" cborgen:"subject"`
+2-4
api/atproto/syncgetCheckout.go
···13131414// SyncGetCheckout calls the XRPC method "com.atproto.sync.getCheckout".
1515//
1616-// commit: The commit to get the checkout from. Defaults to current HEAD.
1716// did: The DID of the repo.
1818-func SyncGetCheckout(ctx context.Context, c *xrpc.Client, commit string, did string) ([]byte, error) {
1717+func SyncGetCheckout(ctx context.Context, c *xrpc.Client, did string) ([]byte, error) {
1918 buf := new(bytes.Buffer)
20192120 params := map[string]interface{}{
2222- "commit": commit,
2323- "did": did,
2121+ "did": did,
2422 }
2523 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getCheckout", params, nil, buf); err != nil {
2624 return nil, err
+33
api/atproto/syncgetLatestCommit.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.sync.getLatestCommit
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// SyncGetLatestCommit_Output is the output of a com.atproto.sync.getLatestCommit call.
1414+type SyncGetLatestCommit_Output struct {
1515+ Cid string `json:"cid" cborgen:"cid"`
1616+ Rev string `json:"rev" cborgen:"rev"`
1717+}
1818+1919+// SyncGetLatestCommit calls the XRPC method "com.atproto.sync.getLatestCommit".
2020+//
2121+// did: The DID of the repo.
2222+func SyncGetLatestCommit(ctx context.Context, c *xrpc.Client, did string) (*SyncGetLatestCommit_Output, error) {
2323+ var out SyncGetLatestCommit_Output
2424+2525+ params := map[string]interface{}{
2626+ "did": did,
2727+ }
2828+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getLatestCommit", params, nil, &out); err != nil {
2929+ return nil, err
3030+ }
3131+3232+ return &out, nil
3333+}
+4-6
api/atproto/syncgetRepo.go
···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)
1919-func SyncGetRepo(ctx context.Context, c *xrpc.Client, did string, earliest string, latest string) ([]byte, error) {
1717+// since: The revision of the repo to catch up from.
1818+func SyncGetRepo(ctx context.Context, c *xrpc.Client, did string, since string) ([]byte, error) {
2019 buf := new(bytes.Buffer)
21202221 params := map[string]interface{}{
2323- "did": did,
2424- "earliest": earliest,
2525- "latest": latest,
2222+ "did": did,
2323+ "since": since,
2624 }
2725 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRepo", params, nil, buf); err != nil {
2826 return nil, err
+8-7
api/atproto/synclistBlobs.go
···12121313// SyncListBlobs_Output is the output of a com.atproto.sync.listBlobs call.
1414type SyncListBlobs_Output struct {
1515- Cids []string `json:"cids" cborgen:"cids"`
1515+ Cids []string `json:"cids" cborgen:"cids"`
1616+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1617}
17181819// SyncListBlobs calls the XRPC method "com.atproto.sync.listBlobs".
1920//
2021// did: The DID of the repo.
2121-// earliest: The earliest commit to start from
2222-// latest: The most recent commit
2323-func SyncListBlobs(ctx context.Context, c *xrpc.Client, did string, earliest string, latest string) (*SyncListBlobs_Output, error) {
2222+// since: Optional revision of the repo to list blobs since
2323+func SyncListBlobs(ctx context.Context, c *xrpc.Client, cursor string, did string, limit int64, since string) (*SyncListBlobs_Output, error) {
2424 var out SyncListBlobs_Output
25252626 params := map[string]interface{}{
2727- "did": did,
2828- "earliest": earliest,
2929- "latest": latest,
2727+ "cursor": cursor,
2828+ "did": did,
2929+ "limit": limit,
3030+ "since": since,
3031 }
3132 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listBlobs", params, nil, &out); err != nil {
3233 return nil, err
+9-3
api/atproto/syncsubscribeRepos.go
···1818 Prev *util.LexLink `json:"prev" cborgen:"prev"`
1919 Rebase bool `json:"rebase" cborgen:"rebase"`
2020 Repo string `json:"repo" cborgen:"repo"`
2121- Seq int64 `json:"seq" cborgen:"seq"`
2222- Time string `json:"time" cborgen:"time"`
2323- TooBig bool `json:"tooBig" cborgen:"tooBig"`
2121+ // rev: The rev of the emitted commit
2222+ Rev string `json:"rev" cborgen:"rev"`
2323+ Seq int64 `json:"seq" cborgen:"seq"`
2424+ // since: The rev of the last emitted commit from this repo
2525+ Since *string `json:"since" cborgen:"since"`
2626+ Time string `json:"time" cborgen:"time"`
2727+ TooBig bool `json:"tooBig" cborgen:"tooBig"`
2428}
25292630// SyncSubscribeRepos_Handle is a "handle" in the com.atproto.sync.subscribeRepos schema.
···4650}
47514852// SyncSubscribeRepos_RepoOp is a "repoOp" in the com.atproto.sync.subscribeRepos schema.
5353+//
5454+// A repo operation, ie a write of a single record. For creates and updates, cid is the record's CID as of this operation. For deletes, it's null.
4955type SyncSubscribeRepos_RepoOp struct {
5056 Action string `json:"action" cborgen:"action"`
5157 Cid *util.LexLink `json:"cid" cborgen:"cid"`
+25
api/atproto/tempupgradeRepoVersion.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.temp.upgradeRepoVersion
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// TempUpgradeRepoVersion_Input is the input argument to a com.atproto.temp.upgradeRepoVersion call.
1414+type TempUpgradeRepoVersion_Input struct {
1515+ Did string `json:"did" cborgen:"did"`
1616+}
1717+1818+// TempUpgradeRepoVersion calls the XRPC method "com.atproto.temp.upgradeRepoVersion".
1919+func TempUpgradeRepoVersion(ctx context.Context, c *xrpc.Client, input *TempUpgradeRepoVersion_Input) error {
2020+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.temp.upgradeRepoVersion", nil, input, nil); err != nil {
2121+ return err
2222+ }
2323+2424+ return nil
2525+}
+33
api/bsky/feedgetActorLikes.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.feed.getActorLikes
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// FeedGetActorLikes_Output is the output of a app.bsky.feed.getActorLikes call.
1414+type FeedGetActorLikes_Output struct {
1515+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1616+ Feed []*FeedDefs_FeedViewPost `json:"feed" cborgen:"feed"`
1717+}
1818+1919+// FeedGetActorLikes calls the XRPC method "app.bsky.feed.getActorLikes".
2020+func FeedGetActorLikes(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*FeedGetActorLikes_Output, error) {
2121+ var out FeedGetActorLikes_Output
2222+2323+ params := map[string]interface{}{
2424+ "actor": actor,
2525+ "cursor": cursor,
2626+ "limit": limit,
2727+ }
2828+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getActorLikes", params, nil, &out); err != nil {
2929+ return nil, err
3030+ }
3131+3232+ return &out, nil
3333+}
+28
api/bsky/notificationregisterPush.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.notification.registerPush
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// NotificationRegisterPush_Input is the input argument to a app.bsky.notification.registerPush call.
1414+type NotificationRegisterPush_Input struct {
1515+ AppId string `json:"appId" cborgen:"appId"`
1616+ Platform string `json:"platform" cborgen:"platform"`
1717+ ServiceDid string `json:"serviceDid" cborgen:"serviceDid"`
1818+ Token string `json:"token" cborgen:"token"`
1919+}
2020+2121+// NotificationRegisterPush calls the XRPC method "app.bsky.notification.registerPush".
2222+func NotificationRegisterPush(ctx context.Context, c *xrpc.Client, input *NotificationRegisterPush_Input) error {
2323+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.notification.registerPush", nil, input, nil); err != nil {
2424+ return err
2525+ }
2626+2727+ return nil
2828+}