this repo has no description
0
fork

Configure Feed

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

Latest Lexgen (#1088)

This is to pull in the latest requirement changes via
https://github.com/bluesky-social/atproto/pull/3882, specifically the
"via repost" changes.

After running `make lexgen`, there were several other changes that were
deprecated, so I did not commit those. Happy to add them back if that's
the preferred way of doing things, but doing so led to some lexgen
weirdness, so I decided to leave them off for now to continue making
progress.

authored by

Jim Calabro and committed by
GitHub
afec7231 236dd575

+11 -1
+6
api/bsky/feeddefs.go
··· 35 35 Post *FeedDefs_PostView `json:"post" cborgen:"post"` 36 36 Reason *FeedDefs_FeedViewPost_Reason `json:"reason,omitempty" cborgen:"reason,omitempty"` 37 37 Reply *FeedDefs_ReplyRef `json:"reply,omitempty" cborgen:"reply,omitempty"` 38 + // reqId: Unique identifier per request that may be passed back alongside interactions. 39 + ReqId *string `json:"reqId,omitempty" cborgen:"reqId,omitempty"` 38 40 } 39 41 40 42 type FeedDefs_FeedViewPost_Reason struct { ··· 104 106 // feedContext: Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton. 105 107 FeedContext *string `json:"feedContext,omitempty" cborgen:"feedContext,omitempty"` 106 108 Item *string `json:"item,omitempty" cborgen:"item,omitempty"` 109 + // reqId: Unique identifier per request that may be passed back alongside interactions. 110 + ReqId *string `json:"reqId,omitempty" cborgen:"reqId,omitempty"` 107 111 } 108 112 109 113 // FeedDefs_NotFoundPost is a "notFoundPost" in the app.bsky.feed.defs schema. ··· 207 211 type FeedDefs_ReasonRepost struct { 208 212 LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#reasonRepost" cborgen:"$type,const=app.bsky.feed.defs#reasonRepost"` 209 213 By *ActorDefs_ProfileViewBasic `json:"by" cborgen:"by"` 214 + Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 210 215 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 216 + Uri *string `json:"uri,omitempty" cborgen:"uri,omitempty"` 211 217 } 212 218 213 219 // FeedDefs_ReplyRef is a "replyRef" in the app.bsky.feed.defs schema.
+2
api/bsky/feedgetFeedSkeleton.go
··· 14 14 type FeedGetFeedSkeleton_Output struct { 15 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 16 Feed []*FeedDefs_SkeletonFeedPost `json:"feed" cborgen:"feed"` 17 + // reqId: Unique identifier per request that may be passed back alongside interactions. 18 + ReqId *string `json:"reqId,omitempty" cborgen:"reqId,omitempty"` 17 19 } 18 20 19 21 // FeedGetFeedSkeleton calls the XRPC method "app.bsky.feed.getFeedSkeleton".
+1
api/bsky/feedlike.go
··· 17 17 LexiconTypeID string `json:"$type,const=app.bsky.feed.like" cborgen:"$type,const=app.bsky.feed.like"` 18 18 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 19 19 Subject *comatprototypes.RepoStrongRef `json:"subject" cborgen:"subject"` 20 + Via *comatprototypes.RepoStrongRef `json:"via,omitempty" cborgen:"via,omitempty"` 20 21 }
+1
api/bsky/feedrepost.go
··· 17 17 LexiconTypeID string `json:"$type,const=app.bsky.feed.repost" cborgen:"$type,const=app.bsky.feed.repost"` 18 18 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 19 19 Subject *comatprototypes.RepoStrongRef `json:"subject" cborgen:"subject"` 20 + Via *comatprototypes.RepoStrongRef `json:"via,omitempty" cborgen:"via,omitempty"` 20 21 }
+1 -1
api/bsky/notificationlistNotifications.go
··· 19 19 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 20 20 IsRead bool `json:"isRead" cborgen:"isRead"` 21 21 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 22 - // reason: Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote', 'starterpack-joined', 'verified', and 'unverified'. 22 + // reason: The reason why this notification was delivered - e.g. your post was liked, or you received a new follower. 23 23 Reason string `json:"reason" cborgen:"reason"` 24 24 ReasonSubject *string `json:"reasonSubject,omitempty" cborgen:"reasonSubject,omitempty"` 25 25 Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`