this repo has no description
0
fork

Configure Feed

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

update lexicons

+162 -32
+15 -9
api/atproto/admindefs.go
··· 20 20 21 21 // AdminDefs_ActionView is a "actionView" in the com.atproto.admin.defs schema. 22 22 type AdminDefs_ActionView struct { 23 - Action *string `json:"action" cborgen:"action"` 24 - CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"` 25 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 26 - CreatedBy string `json:"createdBy" cborgen:"createdBy"` 23 + Action *string `json:"action" cborgen:"action"` 24 + CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"` 25 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 26 + CreatedBy string `json:"createdBy" cborgen:"createdBy"` 27 + // durationInHours: Indicates how long this action was meant to be in effect before automatically expiring. 28 + DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"` 27 29 Id int64 `json:"id" cborgen:"id"` 28 30 NegateLabelVals []string `json:"negateLabelVals,omitempty" cborgen:"negateLabelVals,omitempty"` 29 31 Reason string `json:"reason" cborgen:"reason"` ··· 36 38 // AdminDefs_ActionViewCurrent is a "actionViewCurrent" in the com.atproto.admin.defs schema. 37 39 type AdminDefs_ActionViewCurrent struct { 38 40 Action *string `json:"action" cborgen:"action"` 39 - Id int64 `json:"id" cborgen:"id"` 41 + // durationInHours: Indicates how long this action was meant to be in effect before automatically expiring. 42 + DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"` 43 + Id int64 `json:"id" cborgen:"id"` 40 44 } 41 45 42 46 // AdminDefs_ActionViewDetail is a "actionViewDetail" in the com.atproto.admin.defs schema. 43 47 type AdminDefs_ActionViewDetail struct { 44 - Action *string `json:"action" cborgen:"action"` 45 - CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"` 46 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 47 - CreatedBy string `json:"createdBy" cborgen:"createdBy"` 48 + Action *string `json:"action" cborgen:"action"` 49 + CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"` 50 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 51 + CreatedBy string `json:"createdBy" cborgen:"createdBy"` 52 + // durationInHours: Indicates how long this action was meant to be in effect before automatically expiring. 53 + DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"` 48 54 Id int64 `json:"id" cborgen:"id"` 49 55 NegateLabelVals []string `json:"negateLabelVals,omitempty" cborgen:"negateLabelVals,omitempty"` 50 56 Reason string `json:"reason" cborgen:"reason"`
+5 -3
api/atproto/admintakeModerationAction.go
··· 15 15 16 16 // AdminTakeModerationAction_Input is the input argument to a com.atproto.admin.takeModerationAction call. 17 17 type AdminTakeModerationAction_Input struct { 18 - Action string `json:"action" cborgen:"action"` 19 - CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"` 20 - CreatedBy string `json:"createdBy" cborgen:"createdBy"` 18 + Action string `json:"action" cborgen:"action"` 19 + CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"` 20 + CreatedBy string `json:"createdBy" cborgen:"createdBy"` 21 + // durationInHours: Indicates how long this action was meant to be in effect before automatically expiring. 22 + DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"` 21 23 NegateLabelVals []string `json:"negateLabelVals,omitempty" cborgen:"negateLabelVals,omitempty"` 22 24 Reason string `json:"reason" cborgen:"reason"` 23 25 Subject *AdminTakeModerationAction_Input_Subject `json:"subject" cborgen:"subject"`
+2 -4
api/atproto/syncgetCheckout.go
··· 13 13 14 14 // SyncGetCheckout calls the XRPC method "com.atproto.sync.getCheckout". 15 15 // 16 - // commit: The commit to get the checkout from. Defaults to current HEAD. 17 16 // did: The DID of the repo. 18 - func SyncGetCheckout(ctx context.Context, c *xrpc.Client, commit string, did string) ([]byte, error) { 17 + func SyncGetCheckout(ctx context.Context, c *xrpc.Client, did string) ([]byte, error) { 19 18 buf := new(bytes.Buffer) 20 19 21 20 params := map[string]interface{}{ 22 - "commit": commit, 23 - "did": did, 21 + "did": did, 24 22 } 25 23 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getCheckout", params, nil, buf); err != nil { 26 24 return nil, err
+33
api/atproto/syncgetLatestCommit.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.sync.getLatestCommit 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // SyncGetLatestCommit_Output is the output of a com.atproto.sync.getLatestCommit call. 14 + type SyncGetLatestCommit_Output struct { 15 + Cid string `json:"cid" cborgen:"cid"` 16 + Rev string `json:"rev" cborgen:"rev"` 17 + } 18 + 19 + // SyncGetLatestCommit calls the XRPC method "com.atproto.sync.getLatestCommit". 20 + // 21 + // did: The DID of the repo. 22 + func SyncGetLatestCommit(ctx context.Context, c *xrpc.Client, did string) (*SyncGetLatestCommit_Output, error) { 23 + var out SyncGetLatestCommit_Output 24 + 25 + params := map[string]interface{}{ 26 + "did": did, 27 + } 28 + if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getLatestCommit", params, nil, &out); err != nil { 29 + return nil, err 30 + } 31 + 32 + return &out, nil 33 + }
+4 -6
api/atproto/syncgetRepo.go
··· 14 14 // SyncGetRepo calls the XRPC method "com.atproto.sync.getRepo". 15 15 // 16 16 // did: The DID of the repo. 17 - // earliest: The earliest commit in the commit range (not inclusive) 18 - // latest: The latest commit in the commit range (inclusive) 19 - func SyncGetRepo(ctx context.Context, c *xrpc.Client, did string, earliest string, latest string) ([]byte, error) { 17 + // since: The revision of the repo to catch up from. 18 + func SyncGetRepo(ctx context.Context, c *xrpc.Client, did string, since string) ([]byte, error) { 20 19 buf := new(bytes.Buffer) 21 20 22 21 params := map[string]interface{}{ 23 - "did": did, 24 - "earliest": earliest, 25 - "latest": latest, 22 + "did": did, 23 + "since": since, 26 24 } 27 25 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRepo", params, nil, buf); err != nil { 28 26 return nil, err
+8 -7
api/atproto/synclistBlobs.go
··· 12 12 13 13 // SyncListBlobs_Output is the output of a com.atproto.sync.listBlobs call. 14 14 type SyncListBlobs_Output struct { 15 - Cids []string `json:"cids" cborgen:"cids"` 15 + Cids []string `json:"cids" cborgen:"cids"` 16 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 17 } 17 18 18 19 // SyncListBlobs calls the XRPC method "com.atproto.sync.listBlobs". 19 20 // 20 21 // did: The DID of the repo. 21 - // earliest: The earliest commit to start from 22 - // latest: The most recent commit 23 - func SyncListBlobs(ctx context.Context, c *xrpc.Client, did string, earliest string, latest string) (*SyncListBlobs_Output, error) { 22 + // since: Optional revision of the repo to list blobs since 23 + func SyncListBlobs(ctx context.Context, c *xrpc.Client, cursor string, did string, limit int64, since string) (*SyncListBlobs_Output, error) { 24 24 var out SyncListBlobs_Output 25 25 26 26 params := map[string]interface{}{ 27 - "did": did, 28 - "earliest": earliest, 29 - "latest": latest, 27 + "cursor": cursor, 28 + "did": did, 29 + "limit": limit, 30 + "since": since, 30 31 } 31 32 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listBlobs", params, nil, &out); err != nil { 32 33 return nil, err
+9 -3
api/atproto/syncsubscribeRepos.go
··· 18 18 Prev *util.LexLink `json:"prev" cborgen:"prev"` 19 19 Rebase bool `json:"rebase" cborgen:"rebase"` 20 20 Repo string `json:"repo" cborgen:"repo"` 21 - Seq int64 `json:"seq" cborgen:"seq"` 22 - Time string `json:"time" cborgen:"time"` 23 - TooBig bool `json:"tooBig" cborgen:"tooBig"` 21 + // rev: The rev of the emitted commit 22 + Rev string `json:"rev" cborgen:"rev"` 23 + Seq int64 `json:"seq" cborgen:"seq"` 24 + // since: The rev of the last emitted commit from this repo 25 + Since *string `json:"since" cborgen:"since"` 26 + Time string `json:"time" cborgen:"time"` 27 + TooBig bool `json:"tooBig" cborgen:"tooBig"` 24 28 } 25 29 26 30 // SyncSubscribeRepos_Handle is a "handle" in the com.atproto.sync.subscribeRepos schema. ··· 46 50 } 47 51 48 52 // SyncSubscribeRepos_RepoOp is a "repoOp" in the com.atproto.sync.subscribeRepos schema. 53 + // 54 + // 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. 49 55 type SyncSubscribeRepos_RepoOp struct { 50 56 Action string `json:"action" cborgen:"action"` 51 57 Cid *util.LexLink `json:"cid" cborgen:"cid"`
+25
api/atproto/tempupgradeRepoVersion.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.temp.upgradeRepoVersion 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // TempUpgradeRepoVersion_Input is the input argument to a com.atproto.temp.upgradeRepoVersion call. 14 + type TempUpgradeRepoVersion_Input struct { 15 + Did string `json:"did" cborgen:"did"` 16 + } 17 + 18 + // TempUpgradeRepoVersion calls the XRPC method "com.atproto.temp.upgradeRepoVersion". 19 + func TempUpgradeRepoVersion(ctx context.Context, c *xrpc.Client, input *TempUpgradeRepoVersion_Input) error { 20 + if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.temp.upgradeRepoVersion", nil, input, nil); err != nil { 21 + return err 22 + } 23 + 24 + return nil 25 + }
+33
api/bsky/feedgetActorLikes.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.feed.getActorLikes 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // FeedGetActorLikes_Output is the output of a app.bsky.feed.getActorLikes call. 14 + type FeedGetActorLikes_Output struct { 15 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 + Feed []*FeedDefs_FeedViewPost `json:"feed" cborgen:"feed"` 17 + } 18 + 19 + // FeedGetActorLikes calls the XRPC method "app.bsky.feed.getActorLikes". 20 + func FeedGetActorLikes(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*FeedGetActorLikes_Output, error) { 21 + var out FeedGetActorLikes_Output 22 + 23 + params := map[string]interface{}{ 24 + "actor": actor, 25 + "cursor": cursor, 26 + "limit": limit, 27 + } 28 + if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getActorLikes", params, nil, &out); err != nil { 29 + return nil, err 30 + } 31 + 32 + return &out, nil 33 + }
+28
api/bsky/notificationregisterPush.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.notification.registerPush 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // NotificationRegisterPush_Input is the input argument to a app.bsky.notification.registerPush call. 14 + type NotificationRegisterPush_Input struct { 15 + AppId string `json:"appId" cborgen:"appId"` 16 + Platform string `json:"platform" cborgen:"platform"` 17 + ServiceDid string `json:"serviceDid" cborgen:"serviceDid"` 18 + Token string `json:"token" cborgen:"token"` 19 + } 20 + 21 + // NotificationRegisterPush calls the XRPC method "app.bsky.notification.registerPush". 22 + func NotificationRegisterPush(ctx context.Context, c *xrpc.Client, input *NotificationRegisterPush_Input) error { 23 + if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.notification.registerPush", nil, input, nil); err != nil { 24 + return err 25 + } 26 + 27 + return nil 28 + }