social.coves.feed.defs
Details · defs
| Kind | defs |
|---|---|
| Authority | feed.coves.social |
| Commit rev | 3n2v225fk4c26 |
| Indexed |
Showing version bafyreifdhyjmousteve3lpyjfcan2p65pks3zanhaw7d7q6wryxtx7aypu. Show the latest
Checks
Validunlimited-stringdefs.generatorView.properties.descriptionNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.generatorView.properties.displayNameNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.generatorView.properties.kindNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"clickthroughAuthor": {
"description": "User opened the item's author",
"type": "token"
},
"clickthroughEmbed": {
"description": "User opened the item's embed",
"type": "token"
},
"clickthroughItem": {
"description": "User opened the item",
"type": "token"
},
"clickthroughReposter": {
"description": "User opened the account that reposted the item",
"type": "token"
},
"feedViewPost": {
"description": "A post with optional context about why it appears in a feed",
"properties": {
"feedContext": {
"description": "Opaque context from the feed generator for this item. Clients pass it back unchanged with interactions.",
"maxLength": 2000,
"type": "string"
},
"post": {
"ref": "social.coves.community.post.defs#postView",
"type": "ref"
},
"reason": {
"description": "Additional context for why this post is in the feed",
"refs": [
"#reasonRepost",
"#reasonPin"
],
"type": "union"
},
"reply": {
"ref": "#replyRef",
"type": "ref"
}
},
"required": [
"post"
],
"type": "object"
},
"generatorView": {
"description": "A feed generator as shown in feed pickers",
"properties": {
"acceptsInteractions": {
"description": "Whether the generator accepts interaction events through social.coves.feed.sendInteractions",
"type": "boolean"
},
"avatar": {
"description": "URL of the feed's avatar image",
"format": "uri",
"type": "string"
},
"cid": {
"description": "CID of the generator record",
"format": "cid",
"type": "string"
},
"description": {
"description": "What the feed shows",
"type": "string"
},
"did": {
"description": "DID of the service that serves the feed",
"format": "did",
"type": "string"
},
"displayName": {
"description": "Name shown in feed pickers",
"type": "string"
},
"indexedAt": {
"description": "When the AppView indexed the generator record",
"format": "datetime",
"type": "string"
},
"kind": {
"description": "Whether the generator orders posts or comments",
"knownValues": [
"posts",
"comments"
],
"type": "string"
},
"scopes": {
"description": "Where the feed can be used",
"items": {
"ref": "#scope",
"type": "ref"
},
"type": "array"
},
"uri": {
"description": "AT-URI of the social.coves.feed.generator record",
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri",
"did",
"displayName",
"kind",
"scopes"
],
"type": "object"
},
"interaction": {
"description": "One interaction event a client reports to a feed generator",
"properties": {
"event": {
"description": "The kind of interaction",
"knownValues": [
"social.coves.feed.defs#requestLess",
"social.coves.feed.defs#requestMore",
"social.coves.feed.defs#clickthroughItem",
"social.coves.feed.defs#clickthroughAuthor",
"social.coves.feed.defs#clickthroughReposter",
"social.coves.feed.defs#clickthroughEmbed",
"social.coves.feed.defs#interactionSeen",
"social.coves.feed.defs#interactionLike",
"social.coves.feed.defs#interactionRepost",
"social.coves.feed.defs#interactionReply",
"social.coves.feed.defs#interactionQuote",
"social.coves.feed.defs#interactionShare"
],
"maxLength": 128,
"type": "string"
},
"feedContext": {
"description": "The feedContext the generator attached to the item, passed back unchanged",
"maxLength": 2000,
"type": "string"
},
"item": {
"description": "AT-URI of the post or comment the event is about",
"format": "at-uri",
"type": "string"
},
"reqId": {
"description": "The reqId of the feed response the item came from",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
},
"interactionLike": {
"description": "User upvoted the item",
"type": "token"
},
"interactionQuote": {
"description": "User quoted the item",
"type": "token"
},
"interactionReply": {
"description": "User replied to the item",
"type": "token"
},
"interactionRepost": {
"description": "User reposted the item",
"type": "token"
},
"interactionSeen": {
"description": "The item was shown to the user",
"type": "token"
},
"interactionShare": {
"description": "User shared the item",
"type": "token"
},
"postRef": {
"description": "Minimal reference to a post",
"properties": {
"cid": {
"format": "cid",
"type": "string"
},
"uri": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri",
"cid"
],
"type": "object"
},
"reasonPin": {
"description": "Indicates this post is pinned in a community",
"properties": {
"community": {
"ref": "social.coves.community.post.defs#communityRef",
"type": "ref"
}
},
"required": [
"community"
],
"type": "object"
},
"reasonRepost": {
"description": "Indicates this post was reposted",
"properties": {
"by": {
"ref": "social.coves.community.post.defs#authorView",
"type": "ref"
},
"indexedAt": {
"format": "datetime",
"type": "string"
}
},
"required": [
"by",
"indexedAt"
],
"type": "object"
},
"replyRef": {
"description": "Reference to parent and root posts in a reply thread",
"properties": {
"parent": {
"ref": "#postRef",
"type": "ref"
},
"root": {
"ref": "#postRef",
"type": "ref"
}
},
"required": [
"root",
"parent"
],
"type": "object"
},
"requestLess": {
"description": "User asked to see fewer items like this one",
"type": "token"
},
"requestMore": {
"description": "User asked to see more items like this one",
"type": "token"
},
"scope": {
"description": "Where a feed generator can be used: the all-communities feed, the home feed, a community feed, or a comment thread.",
"knownValues": [
"all",
"home",
"community",
"thread"
],
"maxLength": 64,
"type": "string"
},
"skeletonComment": {
"description": "One comment in a comment skeleton returned by a feed generator",
"properties": {
"comment": {
"description": "AT-URI of the comment",
"format": "at-uri",
"type": "string"
},
"feedContext": {
"description": "Opaque context the generator attaches to this item.",
"maxLength": 2000,
"type": "string"
}
},
"required": [
"comment"
],
"type": "object"
},
"skeletonFeedPost": {
"description": "One post in a feed skeleton returned by a feed generator",
"properties": {
"feedContext": {
"description": "Opaque context the generator attaches to this item; the AppView passes it through to the client unchanged.",
"maxLength": 2000,
"type": "string"
},
"post": {
"description": "AT-URI of the post",
"format": "at-uri",
"type": "string"
}
},
"required": [
"post"
],
"type": "object"
},
"skeletonReplies": {
"description": "The ordered direct replies a feed generator returns for one parent post or comment",
"properties": {
"comments": {
"description": "Direct replies to the parent, in the generator's order",
"items": {
"ref": "#skeletonComment",
"type": "ref"
},
"type": "array"
},
"cursor": {
"description": "Cursor for the next page of replies to this parent",
"maxLength": 500,
"type": "string"
},
"parent": {
"description": "AT-URI of the parent post or comment",
"format": "at-uri",
"type": "string"
}
},
"required": [
"parent",
"comments"
],
"type": "object"
}
},
"id": "social.coves.feed.defs",
"lexicon": 1
}