this repo has no description
0
fork

Configure Feed

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

lexgen: general updates, including feed interactions

+117 -49
+4
api/atproto/labeldefs.go
··· 36 36 // 37 37 // Declares a label value and its expected interpertations and behaviors. 38 38 type LabelDefs_LabelValueDefinition struct { 39 + // adultOnly: Does the user need to have adult content enabled in order to configure this label? 40 + AdultOnly *bool `json:"adultOnly,omitempty" cborgen:"adultOnly,omitempty"` 39 41 // blurs: What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. 40 42 Blurs string `json:"blurs" cborgen:"blurs"` 43 + // defaultSetting: The default setting for this label. 44 + DefaultSetting *string `json:"defaultSetting,omitempty" cborgen:"defaultSetting,omitempty"` 41 45 // identifier: The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). 42 46 Identifier string `json:"identifier" cborgen:"identifier"` 43 47 Locales []*LabelDefs_LabelValueDefinitionStrings `json:"locales" cborgen:"locales"`
+8 -1
api/atproto/serverdescribeServer.go
··· 10 10 "github.com/bluesky-social/indigo/xrpc" 11 11 ) 12 12 13 + // ServerDescribeServer_Contact is a "contact" in the com.atproto.server.describeServer schema. 14 + type ServerDescribeServer_Contact struct { 15 + Email *string `json:"email,omitempty" cborgen:"email,omitempty"` 16 + } 17 + 13 18 // ServerDescribeServer_Links is a "links" in the com.atproto.server.describeServer schema. 14 19 type ServerDescribeServer_Links struct { 15 20 PrivacyPolicy *string `json:"privacyPolicy,omitempty" cborgen:"privacyPolicy,omitempty"` ··· 20 25 type ServerDescribeServer_Output struct { 21 26 // availableUserDomains: List of domain suffixes that can be used in account handles. 22 27 AvailableUserDomains []string `json:"availableUserDomains" cborgen:"availableUserDomains"` 23 - Did string `json:"did" cborgen:"did"` 28 + // contact: Contact information 29 + Contact *ServerDescribeServer_Contact `json:"contact,omitempty" cborgen:"contact,omitempty"` 30 + Did string `json:"did" cborgen:"did"` 24 31 // inviteCodeRequired: If true, an invite code must be supplied to create an account on this instance. 25 32 InviteCodeRequired *bool `json:"inviteCodeRequired,omitempty" cborgen:"inviteCodeRequired,omitempty"` 26 33 // links: URLs of service policy documents.
+1 -1
api/atproto/syncgetRecord.go
··· 13 13 14 14 // SyncGetRecord calls the XRPC method "com.atproto.sync.getRecord". 15 15 // 16 - // commit: An optional past commit CID. 16 + // commit: DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit 17 17 // did: The DID of the repo. 18 18 // rkey: Record Key 19 19 func SyncGetRecord(ctx context.Context, c *xrpc.Client, collection string, commit string, did string, rkey string) ([]byte, error) {
+7 -5
api/bsky/actordefs.go
··· 68 68 Tags []string `json:"tags" cborgen:"tags"` 69 69 } 70 70 71 - // ActorDefs_ModPrefItem is a "modPrefItem" in the app.bsky.actor.defs schema. 72 - type ActorDefs_ModPrefItem struct { 71 + // ActorDefs_LabelerPrefItem is a "labelerPrefItem" in the app.bsky.actor.defs schema. 72 + type ActorDefs_LabelerPrefItem struct { 73 73 Did string `json:"did" cborgen:"did"` 74 74 } 75 75 76 - // ActorDefs_ModsPref is a "modsPref" in the app.bsky.actor.defs schema. 77 - type ActorDefs_ModsPref struct { 78 - Mods []*ActorDefs_ModPrefItem `json:"mods" cborgen:"mods"` 76 + // ActorDefs_LabelersPref is a "labelersPref" in the app.bsky.actor.defs schema. 77 + type ActorDefs_LabelersPref struct { 78 + Labelers []*ActorDefs_LabelerPrefItem `json:"labelers" cborgen:"labelers"` 79 79 } 80 80 81 81 // ActorDefs_MutedWord is a "mutedWord" in the app.bsky.actor.defs schema. ··· 206 206 207 207 // ActorDefs_ProfileView is a "profileView" in the app.bsky.actor.defs schema. 208 208 type ActorDefs_ProfileView struct { 209 + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 209 210 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 210 211 Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 211 212 Did string `json:"did" cborgen:"did"` ··· 218 219 219 220 // ActorDefs_ProfileViewBasic is a "profileViewBasic" in the app.bsky.actor.defs schema. 220 221 type ActorDefs_ProfileViewBasic struct { 222 + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 221 223 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 222 224 Did string `json:"did" cborgen:"did"` 223 225 DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"`
+3
api/bsky/embedrecord.go
··· 58 58 Embeds []*EmbedRecord_ViewRecord_Embeds_Elem `json:"embeds,omitempty" cborgen:"embeds,omitempty"` 59 59 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 60 60 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 61 + LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"` 62 + ReplyCount *int64 `json:"replyCount,omitempty" cborgen:"replyCount,omitempty"` 63 + RepostCount *int64 `json:"repostCount,omitempty" cborgen:"repostCount,omitempty"` 61 64 Uri string `json:"uri" cborgen:"uri"` 62 65 // value: The record data itself. 63 66 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
+31 -17
api/bsky/feeddefs.go
··· 30 30 31 31 // FeedDefs_FeedViewPost is a "feedViewPost" in the app.bsky.feed.defs schema. 32 32 type FeedDefs_FeedViewPost struct { 33 - Post *FeedDefs_PostView `json:"post" cborgen:"post"` 34 - Reason *FeedDefs_FeedViewPost_Reason `json:"reason,omitempty" cborgen:"reason,omitempty"` 35 - Reply *FeedDefs_ReplyRef `json:"reply,omitempty" cborgen:"reply,omitempty"` 33 + // feedContext: Context provided by feed generator that may be passed back alongside interactions. 34 + FeedContext *string `json:"feedContext,omitempty" cborgen:"feedContext,omitempty"` 35 + Post *FeedDefs_PostView `json:"post" cborgen:"post"` 36 + Reason *FeedDefs_FeedViewPost_Reason `json:"reason,omitempty" cborgen:"reason,omitempty"` 37 + Reply *FeedDefs_ReplyRef `json:"reply,omitempty" cborgen:"reply,omitempty"` 36 38 } 37 39 38 40 type FeedDefs_FeedViewPost_Reason struct { ··· 66 68 // 67 69 // RECORDTYPE: FeedDefs_GeneratorView 68 70 type FeedDefs_GeneratorView struct { 69 - LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#generatorView" cborgen:"$type,const=app.bsky.feed.defs#generatorView"` 70 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 71 - Cid string `json:"cid" cborgen:"cid"` 72 - Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"` 73 - Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 74 - DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` 75 - Did string `json:"did" cborgen:"did"` 76 - DisplayName string `json:"displayName" cborgen:"displayName"` 77 - IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 78 - LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"` 79 - Uri string `json:"uri" cborgen:"uri"` 80 - Viewer *FeedDefs_GeneratorViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 71 + LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#generatorView" cborgen:"$type,const=app.bsky.feed.defs#generatorView"` 72 + AcceptsInteractions *bool `json:"acceptsInteractions,omitempty" cborgen:"acceptsInteractions,omitempty"` 73 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 74 + Cid string `json:"cid" cborgen:"cid"` 75 + Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"` 76 + Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 77 + DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` 78 + Did string `json:"did" cborgen:"did"` 79 + DisplayName string `json:"displayName" cborgen:"displayName"` 80 + IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 81 + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 82 + LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"` 83 + Uri string `json:"uri" cborgen:"uri"` 84 + Viewer *FeedDefs_GeneratorViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 81 85 } 82 86 83 87 // FeedDefs_GeneratorViewerState is a "generatorViewerState" in the app.bsky.feed.defs schema. 84 88 type FeedDefs_GeneratorViewerState struct { 85 89 Like *string `json:"like,omitempty" cborgen:"like,omitempty"` 90 + } 91 + 92 + // FeedDefs_Interaction is a "interaction" in the app.bsky.feed.defs schema. 93 + type FeedDefs_Interaction struct { 94 + Event *string `json:"event,omitempty" cborgen:"event,omitempty"` 95 + // feedContext: Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton. 96 + FeedContext *string `json:"feedContext,omitempty" cborgen:"feedContext,omitempty"` 97 + Item *string `json:"item,omitempty" cborgen:"item,omitempty"` 86 98 } 87 99 88 100 // FeedDefs_NotFoundPost is a "notFoundPost" in the app.bsky.feed.defs schema. ··· 267 279 268 280 // FeedDefs_SkeletonFeedPost is a "skeletonFeedPost" in the app.bsky.feed.defs schema. 269 281 type FeedDefs_SkeletonFeedPost struct { 270 - Post string `json:"post" cborgen:"post"` 271 - Reason *FeedDefs_SkeletonFeedPost_Reason `json:"reason,omitempty" cborgen:"reason,omitempty"` 282 + // feedContext: Context that will be passed through to client and may be passed to feed generator back alongside interactions. 283 + FeedContext *string `json:"feedContext,omitempty" cborgen:"feedContext,omitempty"` 284 + Post string `json:"post" cborgen:"post"` 285 + Reason *FeedDefs_SkeletonFeedPost_Reason `json:"reason,omitempty" cborgen:"reason,omitempty"` 272 286 } 273 287 274 288 type FeedDefs_SkeletonFeedPost_Reason struct {
+9 -7
api/bsky/feedgenerator.go
··· 20 20 } // 21 21 // RECORDTYPE: FeedGenerator 22 22 type FeedGenerator struct { 23 - LexiconTypeID string `json:"$type,const=app.bsky.feed.generator" cborgen:"$type,const=app.bsky.feed.generator"` 24 - Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 25 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 26 - Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 27 - DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` 28 - Did string `json:"did" cborgen:"did"` 29 - DisplayName string `json:"displayName" cborgen:"displayName"` 23 + LexiconTypeID string `json:"$type,const=app.bsky.feed.generator" cborgen:"$type,const=app.bsky.feed.generator"` 24 + // acceptsInteractions: Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions 25 + AcceptsInteractions *bool `json:"acceptsInteractions,omitempty" cborgen:"acceptsInteractions,omitempty"` 26 + Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 27 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 28 + Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 29 + DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` 30 + Did string `json:"did" cborgen:"did"` 31 + DisplayName string `json:"displayName" cborgen:"displayName"` 30 32 // labels: Self-label values 31 33 Labels *FeedGenerator_Labels `json:"labels,omitempty" cborgen:"labels,omitempty"` 32 34 }
+30
api/bsky/feedsendInteractions.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.feed.sendInteractions 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // FeedSendInteractions_Input is the input argument to a app.bsky.feed.sendInteractions call. 14 + type FeedSendInteractions_Input struct { 15 + Interactions []*FeedDefs_Interaction `json:"interactions" cborgen:"interactions"` 16 + } 17 + 18 + // FeedSendInteractions_Output is the output of a app.bsky.feed.sendInteractions call. 19 + type FeedSendInteractions_Output struct { 20 + } 21 + 22 + // FeedSendInteractions calls the XRPC method "app.bsky.feed.sendInteractions". 23 + func FeedSendInteractions(ctx context.Context, c *xrpc.Client, input *FeedSendInteractions_Input) (*FeedSendInteractions_Output, error) { 24 + var out FeedSendInteractions_Output 25 + if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.feed.sendInteractions", nil, input, &out); err != nil { 26 + return nil, err 27 + } 28 + 29 + return &out, nil 30 + }
+24 -18
api/bsky/graphdefs.go
··· 4 4 5 5 // schema: app.bsky.graph.defs 6 6 7 + import ( 8 + comatprototypes "github.com/bluesky-social/indigo/api/atproto" 9 + ) 10 + 7 11 // GraphDefs_ListItemView is a "listItemView" in the app.bsky.graph.defs schema. 8 12 type GraphDefs_ListItemView struct { 9 13 Subject *ActorDefs_ProfileView `json:"subject" cborgen:"subject"` ··· 14 18 // 15 19 // RECORDTYPE: GraphDefs_ListView 16 20 type GraphDefs_ListView struct { 17 - LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#listView" cborgen:"$type,const=app.bsky.graph.defs#listView"` 18 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 19 - Cid string `json:"cid" cborgen:"cid"` 20 - Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"` 21 - Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 22 - DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` 23 - IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 24 - Name string `json:"name" cborgen:"name"` 25 - Purpose *string `json:"purpose" cborgen:"purpose"` 26 - Uri string `json:"uri" cborgen:"uri"` 27 - Viewer *GraphDefs_ListViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 21 + LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#listView" cborgen:"$type,const=app.bsky.graph.defs#listView"` 22 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 23 + Cid string `json:"cid" cborgen:"cid"` 24 + Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"` 25 + Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 26 + DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` 27 + IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 28 + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 29 + Name string `json:"name" cborgen:"name"` 30 + Purpose *string `json:"purpose" cborgen:"purpose"` 31 + Uri string `json:"uri" cborgen:"uri"` 32 + Viewer *GraphDefs_ListViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 28 33 } 29 34 30 35 // GraphDefs_ListViewBasic is a "listViewBasic" in the app.bsky.graph.defs schema. 31 36 type GraphDefs_ListViewBasic struct { 32 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 33 - Cid string `json:"cid" cborgen:"cid"` 34 - IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"` 35 - Name string `json:"name" cborgen:"name"` 36 - Purpose *string `json:"purpose" cborgen:"purpose"` 37 - Uri string `json:"uri" cborgen:"uri"` 38 - Viewer *GraphDefs_ListViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 37 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 38 + Cid string `json:"cid" cborgen:"cid"` 39 + IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"` 40 + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 41 + Name string `json:"name" cborgen:"name"` 42 + Purpose *string `json:"purpose" cborgen:"purpose"` 43 + Uri string `json:"uri" cborgen:"uri"` 44 + Viewer *GraphDefs_ListViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 39 45 } 40 46 41 47 // GraphDefs_ListViewerState is a "listViewerState" in the app.bsky.graph.defs schema.