add @bsky.app/sdk + @atproto/lex, vendor lexicons, codegen via lex cli
This commit is contained in:
@@ -0,0 +1,486 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.defs",
|
||||
"defs": {
|
||||
"postView": {
|
||||
"type": "object",
|
||||
"required": ["uri", "cid", "author", "record", "indexedAt"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"cid": {
|
||||
"type": "string",
|
||||
"format": "cid"
|
||||
},
|
||||
"author": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileViewBasic"
|
||||
},
|
||||
"record": {
|
||||
"type": "unknown"
|
||||
},
|
||||
"embed": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"app.bsky.embed.images#view",
|
||||
"app.bsky.embed.video#view",
|
||||
"app.bsky.embed.gallery#view",
|
||||
"app.bsky.embed.external#view",
|
||||
"app.bsky.embed.record#view",
|
||||
"app.bsky.embed.recordWithMedia#view"
|
||||
]
|
||||
},
|
||||
"bookmarkCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"replyCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"repostCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"likeCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"quoteCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"indexedAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"viewer": {
|
||||
"type": "ref",
|
||||
"ref": "#viewerState"
|
||||
},
|
||||
"labels": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.label.defs#label"
|
||||
}
|
||||
},
|
||||
"threadgate": {
|
||||
"type": "ref",
|
||||
"ref": "#threadgateView"
|
||||
},
|
||||
"debug": {
|
||||
"type": "unknown",
|
||||
"description": "Debug information for internal development"
|
||||
}
|
||||
}
|
||||
},
|
||||
"viewerState": {
|
||||
"type": "object",
|
||||
"description": "Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests.",
|
||||
"properties": {
|
||||
"repost": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"like": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"bookmarked": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"threadMuted": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"replyDisabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"embeddingDisabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"pinned": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"threadContext": {
|
||||
"type": "object",
|
||||
"description": "Metadata about this post within the context of the thread it is in.",
|
||||
"properties": {
|
||||
"rootAuthorLike": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
}
|
||||
}
|
||||
},
|
||||
"feedViewPost": {
|
||||
"type": "object",
|
||||
"required": ["post"],
|
||||
"properties": {
|
||||
"post": {
|
||||
"type": "ref",
|
||||
"ref": "#postView"
|
||||
},
|
||||
"reply": {
|
||||
"type": "ref",
|
||||
"ref": "#replyRef"
|
||||
},
|
||||
"reason": {
|
||||
"type": "union",
|
||||
"refs": ["#reasonRepost", "#reasonPin"]
|
||||
},
|
||||
"feedContext": {
|
||||
"type": "string",
|
||||
"description": "Context provided by feed generator that may be passed back alongside interactions.",
|
||||
"maxLength": 2000
|
||||
},
|
||||
"reqId": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier per request that may be passed back alongside interactions.",
|
||||
"maxLength": 100
|
||||
}
|
||||
}
|
||||
},
|
||||
"replyRef": {
|
||||
"type": "object",
|
||||
"required": ["root", "parent"],
|
||||
"properties": {
|
||||
"root": {
|
||||
"type": "union",
|
||||
"refs": ["#postView", "#notFoundPost", "#blockedPost"]
|
||||
},
|
||||
"parent": {
|
||||
"type": "union",
|
||||
"refs": ["#postView", "#notFoundPost", "#blockedPost"]
|
||||
},
|
||||
"grandparentAuthor": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileViewBasic",
|
||||
"description": "When parent is a reply to another post, this is the author of that post."
|
||||
}
|
||||
}
|
||||
},
|
||||
"reasonRepost": {
|
||||
"type": "object",
|
||||
"required": ["by", "indexedAt"],
|
||||
"properties": {
|
||||
"by": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileViewBasic"
|
||||
},
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"cid": {
|
||||
"type": "string",
|
||||
"format": "cid"
|
||||
},
|
||||
"indexedAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
}
|
||||
}
|
||||
},
|
||||
"reasonPin": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"threadViewPost": {
|
||||
"type": "object",
|
||||
"required": ["post"],
|
||||
"properties": {
|
||||
"post": {
|
||||
"type": "ref",
|
||||
"ref": "#postView"
|
||||
},
|
||||
"parent": {
|
||||
"type": "union",
|
||||
"refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]
|
||||
},
|
||||
"replies": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "union",
|
||||
"refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]
|
||||
}
|
||||
},
|
||||
"threadContext": {
|
||||
"type": "ref",
|
||||
"ref": "#threadContext"
|
||||
}
|
||||
}
|
||||
},
|
||||
"notFoundPost": {
|
||||
"type": "object",
|
||||
"required": ["uri", "notFound"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"notFound": {
|
||||
"type": "boolean",
|
||||
"const": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"blockedPost": {
|
||||
"type": "object",
|
||||
"required": ["uri", "blocked", "author"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "boolean",
|
||||
"const": true
|
||||
},
|
||||
"author": {
|
||||
"type": "ref",
|
||||
"ref": "#blockedAuthor"
|
||||
}
|
||||
}
|
||||
},
|
||||
"blockedAuthor": {
|
||||
"type": "object",
|
||||
"required": ["did"],
|
||||
"properties": {
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
},
|
||||
"viewer": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#viewerState"
|
||||
}
|
||||
}
|
||||
},
|
||||
"generatorView": {
|
||||
"type": "object",
|
||||
"required": ["uri", "cid", "did", "creator", "displayName", "indexedAt"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"cid": {
|
||||
"type": "string",
|
||||
"format": "cid"
|
||||
},
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
},
|
||||
"creator": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxGraphemes": 300,
|
||||
"maxLength": 3000
|
||||
},
|
||||
"descriptionFacets": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.richtext.facet"
|
||||
}
|
||||
},
|
||||
"avatar": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"likeCount": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"acceptsInteractions": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"labels": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.label.defs#label"
|
||||
}
|
||||
},
|
||||
"viewer": {
|
||||
"type": "ref",
|
||||
"ref": "#generatorViewerState"
|
||||
},
|
||||
"contentMode": {
|
||||
"type": "string",
|
||||
"knownValues": [
|
||||
"app.bsky.feed.defs#contentModeUnspecified",
|
||||
"app.bsky.feed.defs#contentModeVideo"
|
||||
]
|
||||
},
|
||||
"indexedAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
}
|
||||
}
|
||||
},
|
||||
"generatorViewerState": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"like": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
}
|
||||
}
|
||||
},
|
||||
"skeletonFeedPost": {
|
||||
"type": "object",
|
||||
"required": ["post"],
|
||||
"properties": {
|
||||
"post": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"reason": {
|
||||
"type": "union",
|
||||
"refs": ["#skeletonReasonRepost", "#skeletonReasonPin"]
|
||||
},
|
||||
"feedContext": {
|
||||
"type": "string",
|
||||
"description": "Context that will be passed through to client and may be passed to feed generator back alongside interactions.",
|
||||
"maxLength": 2000
|
||||
}
|
||||
}
|
||||
},
|
||||
"skeletonReasonRepost": {
|
||||
"type": "object",
|
||||
"required": ["repost"],
|
||||
"properties": {
|
||||
"repost": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
}
|
||||
}
|
||||
},
|
||||
"skeletonReasonPin": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"threadgateView": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"cid": {
|
||||
"type": "string",
|
||||
"format": "cid"
|
||||
},
|
||||
"record": {
|
||||
"type": "unknown"
|
||||
},
|
||||
"lists": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.graph.defs#listViewBasic"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"interaction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"item": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"event": {
|
||||
"type": "string",
|
||||
"knownValues": [
|
||||
"app.bsky.feed.defs#requestLess",
|
||||
"app.bsky.feed.defs#requestMore",
|
||||
"app.bsky.feed.defs#clickthroughItem",
|
||||
"app.bsky.feed.defs#clickthroughAuthor",
|
||||
"app.bsky.feed.defs#clickthroughReposter",
|
||||
"app.bsky.feed.defs#clickthroughEmbed",
|
||||
"app.bsky.feed.defs#interactionSeen",
|
||||
"app.bsky.feed.defs#interactionLike",
|
||||
"app.bsky.feed.defs#interactionRepost",
|
||||
"app.bsky.feed.defs#interactionReply",
|
||||
"app.bsky.feed.defs#interactionQuote",
|
||||
"app.bsky.feed.defs#interactionShare"
|
||||
]
|
||||
},
|
||||
"feedContext": {
|
||||
"type": "string",
|
||||
"description": "Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.",
|
||||
"maxLength": 2000
|
||||
},
|
||||
"reqId": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier per request that may be passed back alongside interactions.",
|
||||
"maxLength": 100
|
||||
}
|
||||
}
|
||||
},
|
||||
"requestLess": {
|
||||
"type": "token",
|
||||
"description": "Request that less content like the given feed item be shown in the feed"
|
||||
},
|
||||
"requestMore": {
|
||||
"type": "token",
|
||||
"description": "Request that more content like the given feed item be shown in the feed"
|
||||
},
|
||||
"clickthroughItem": {
|
||||
"type": "token",
|
||||
"description": "User clicked through to the feed item"
|
||||
},
|
||||
"clickthroughAuthor": {
|
||||
"type": "token",
|
||||
"description": "User clicked through to the author of the feed item"
|
||||
},
|
||||
"clickthroughReposter": {
|
||||
"type": "token",
|
||||
"description": "User clicked through to the reposter of the feed item"
|
||||
},
|
||||
"clickthroughEmbed": {
|
||||
"type": "token",
|
||||
"description": "User clicked through to the embedded content of the feed item"
|
||||
},
|
||||
"contentModeUnspecified": {
|
||||
"type": "token",
|
||||
"description": "Declares the feed generator returns any types of posts."
|
||||
},
|
||||
"contentModeVideo": {
|
||||
"type": "token",
|
||||
"description": "Declares the feed generator returns posts containing app.bsky.embed.video embeds."
|
||||
},
|
||||
"interactionSeen": {
|
||||
"type": "token",
|
||||
"description": "Feed item was seen by user"
|
||||
},
|
||||
"interactionLike": {
|
||||
"type": "token",
|
||||
"description": "User liked the feed item"
|
||||
},
|
||||
"interactionRepost": {
|
||||
"type": "token",
|
||||
"description": "User reposted the feed item"
|
||||
},
|
||||
"interactionReply": {
|
||||
"type": "token",
|
||||
"description": "User replied to the feed item"
|
||||
},
|
||||
"interactionQuote": {
|
||||
"type": "token",
|
||||
"description": "User quoted the feed item"
|
||||
},
|
||||
"interactionShare": {
|
||||
"type": "token",
|
||||
"description": "User shared the feed item"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.describeFeedGenerator",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get information about a feed generator, including policies and offered feed URIs. Does not require auth; implemented by Feed Generator services (not App View).",
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["did", "feeds"],
|
||||
"properties": {
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
},
|
||||
"feeds": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "#feed"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"type": "ref",
|
||||
"ref": "#links"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"feed": {
|
||||
"type": "object",
|
||||
"required": ["uri"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
}
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"privacyPolicy": {
|
||||
"type": "string"
|
||||
},
|
||||
"termsOfService": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.generator",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "record",
|
||||
"description": "Record declaring of the existence of a feed generator, and containing metadata about it. The record can exist in any repository.",
|
||||
"key": "any",
|
||||
"record": {
|
||||
"type": "object",
|
||||
"required": ["did", "displayName", "createdAt"],
|
||||
"properties": {
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"maxGraphemes": 24,
|
||||
"maxLength": 240
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxGraphemes": 300,
|
||||
"maxLength": 3000
|
||||
},
|
||||
"descriptionFacets": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.richtext.facet"
|
||||
}
|
||||
},
|
||||
"avatar": {
|
||||
"type": "blob",
|
||||
"accept": ["image/png", "image/jpeg"],
|
||||
"maxSize": 1000000
|
||||
},
|
||||
"acceptsInteractions": {
|
||||
"type": "boolean",
|
||||
"description": "Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions"
|
||||
},
|
||||
"labels": {
|
||||
"type": "union",
|
||||
"description": "Self-label values",
|
||||
"refs": ["com.atproto.label.defs#selfLabels"]
|
||||
},
|
||||
"contentMode": {
|
||||
"type": "string",
|
||||
"knownValues": [
|
||||
"app.bsky.feed.defs#contentModeUnspecified",
|
||||
"app.bsky.feed.defs#contentModeVideo"
|
||||
]
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getActorFeeds",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get a list of feeds (feed generator records) created by the actor (in the actor's repo).",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["actor"],
|
||||
"properties": {
|
||||
"actor": {
|
||||
"type": "string",
|
||||
"format": "at-identifier"
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["feeds"],
|
||||
"properties": {
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"feeds": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#generatorView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getActorLikes",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get a list of posts liked by an actor. Requires auth, actor must be the requesting account.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["actor"],
|
||||
"properties": {
|
||||
"actor": {
|
||||
"type": "string",
|
||||
"format": "at-identifier"
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["feed"],
|
||||
"properties": {
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "BlockedActor"
|
||||
},
|
||||
{
|
||||
"name": "BlockedByActor"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getAuthorFeed",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get a view of an actor's 'author feed' (post and reposts by the author). Does not require auth.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["actor"],
|
||||
"properties": {
|
||||
"actor": {
|
||||
"type": "string",
|
||||
"format": "at-identifier"
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"filter": {
|
||||
"type": "string",
|
||||
"description": "Combinations of post/repost types to include in response.",
|
||||
"knownValues": [
|
||||
"posts_with_replies",
|
||||
"posts_no_replies",
|
||||
"posts_with_media",
|
||||
"posts_and_author_threads",
|
||||
"posts_with_video"
|
||||
],
|
||||
"default": "posts_with_replies"
|
||||
},
|
||||
"includePins": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["feed"],
|
||||
"properties": {
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "BlockedActor"
|
||||
},
|
||||
{
|
||||
"name": "BlockedByActor"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getFeed",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get a hydrated feed from an actor's selected feed generator. Implemented by App View.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["feed"],
|
||||
"properties": {
|
||||
"feed": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["feed"],
|
||||
"properties": {
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "UnknownFeed"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getFeedGenerator",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get information about a feed generator. Implemented by AppView.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["feed"],
|
||||
"properties": {
|
||||
"feed": {
|
||||
"type": "string",
|
||||
"format": "at-uri",
|
||||
"description": "AT-URI of the feed generator record."
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["view", "isOnline", "isValid"],
|
||||
"properties": {
|
||||
"view": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#generatorView"
|
||||
},
|
||||
"isOnline": {
|
||||
"type": "boolean",
|
||||
"description": "Indicates whether the feed generator service has been online recently, or else seems to be inactive."
|
||||
},
|
||||
"isValid": {
|
||||
"type": "boolean",
|
||||
"description": "Indicates whether the feed generator service is compatible with the record declaration."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getFeedGenerators",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get information about a list of feed generators.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["feeds"],
|
||||
"properties": {
|
||||
"feeds": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["feeds"],
|
||||
"properties": {
|
||||
"feeds": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#generatorView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getFeedSkeleton",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get a skeleton of a feed provided by a feed generator. Auth is optional, depending on provider requirements, and provides the DID of the requester. Implemented by Feed Generator Service.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["feed"],
|
||||
"properties": {
|
||||
"feed": {
|
||||
"type": "string",
|
||||
"format": "at-uri",
|
||||
"description": "Reference to feed generator record describing the specific feed being requested."
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["feed"],
|
||||
"properties": {
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#skeletonFeedPost"
|
||||
}
|
||||
},
|
||||
"reqId": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier per request that may be passed back alongside interactions.",
|
||||
"maxLength": 100
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "UnknownFeed"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getLikes",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get like records which reference a subject (by AT-URI and CID).",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["uri"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri",
|
||||
"description": "AT-URI of the subject (eg, a post record)."
|
||||
},
|
||||
"cid": {
|
||||
"type": "string",
|
||||
"format": "cid",
|
||||
"description": "CID of the subject record (aka, specific version of record), to filter likes."
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["uri", "likes"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"cid": {
|
||||
"type": "string",
|
||||
"format": "cid"
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"likes": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "#like"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"like": {
|
||||
"type": "object",
|
||||
"required": ["indexedAt", "createdAt", "actor"],
|
||||
"properties": {
|
||||
"indexedAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"actor": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getListFeed",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get a feed of recent posts from a list (posts and reposts from any actors on the list). Does not require auth.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["list"],
|
||||
"properties": {
|
||||
"list": {
|
||||
"type": "string",
|
||||
"format": "at-uri",
|
||||
"description": "Reference (AT-URI) to the list record."
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["feed"],
|
||||
"properties": {
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "UnknownList"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getPostThread",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["uri"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri",
|
||||
"description": "Reference (AT-URI) to post record."
|
||||
},
|
||||
"depth": {
|
||||
"type": "integer",
|
||||
"description": "How many levels of reply depth should be included in response.",
|
||||
"default": 6,
|
||||
"minimum": 0,
|
||||
"maximum": 1000
|
||||
},
|
||||
"parentHeight": {
|
||||
"type": "integer",
|
||||
"description": "How many levels of parent (and grandparent, etc) post to include.",
|
||||
"default": 80,
|
||||
"minimum": 0,
|
||||
"maximum": 1000
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["thread"],
|
||||
"properties": {
|
||||
"thread": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"app.bsky.feed.defs#threadViewPost",
|
||||
"app.bsky.feed.defs#notFoundPost",
|
||||
"app.bsky.feed.defs#blockedPost"
|
||||
]
|
||||
},
|
||||
"threadgate": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#threadgateView"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "NotFound"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getPosts",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["uris"],
|
||||
"properties": {
|
||||
"uris": {
|
||||
"type": "array",
|
||||
"description": "List of post AT-URIs to return hydrated views for.",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"maxLength": 25
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["posts"],
|
||||
"properties": {
|
||||
"posts": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#postView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getQuotes",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get a list of quotes for a given post.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["uri"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri",
|
||||
"description": "Reference (AT-URI) of post record"
|
||||
},
|
||||
"cid": {
|
||||
"type": "string",
|
||||
"format": "cid",
|
||||
"description": "If supplied, filters to quotes of specific version (by CID) of the post record."
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["uri", "posts"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"cid": {
|
||||
"type": "string",
|
||||
"format": "cid"
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"posts": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#postView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getRepostedBy",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get a list of reposts for a given post.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["uri"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri",
|
||||
"description": "Reference (AT-URI) of post record"
|
||||
},
|
||||
"cid": {
|
||||
"type": "string",
|
||||
"format": "cid",
|
||||
"description": "If supplied, filters to reposts of specific version (by CID) of the post record."
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["uri", "repostedBy"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"cid": {
|
||||
"type": "string",
|
||||
"format": "cid"
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"repostedBy": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getSuggestedFeeds",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get a list of suggested feeds (feed generators) for the requesting account.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["feeds"],
|
||||
"properties": {
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"feeds": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#generatorView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.getTimeline",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get a view of the requesting account's home timeline. This is expected to be some form of reverse-chronological feed.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"algorithm": {
|
||||
"type": "string",
|
||||
"description": "Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism."
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["feed"],
|
||||
"properties": {
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.like",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "record",
|
||||
"description": "Record declaring a 'like' of a piece of subject content.",
|
||||
"key": "tid",
|
||||
"record": {
|
||||
"type": "object",
|
||||
"required": ["subject", "createdAt"],
|
||||
"properties": {
|
||||
"subject": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.repo.strongRef"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"via": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.repo.strongRef"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.post",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "record",
|
||||
"description": "Record containing a Bluesky post.",
|
||||
"key": "tid",
|
||||
"record": {
|
||||
"type": "object",
|
||||
"required": ["text", "createdAt"],
|
||||
"properties": {
|
||||
"text": {
|
||||
"type": "string",
|
||||
"maxLength": 3000,
|
||||
"maxGraphemes": 300,
|
||||
"description": "The primary post content. May be an empty string, if there are embeds."
|
||||
},
|
||||
"entities": {
|
||||
"type": "array",
|
||||
"description": "DEPRECATED: replaced by app.bsky.richtext.facet.",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "#entity"
|
||||
}
|
||||
},
|
||||
"facets": {
|
||||
"type": "array",
|
||||
"description": "Annotations of text (mentions, URLs, hashtags, etc)",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.richtext.facet"
|
||||
}
|
||||
},
|
||||
"reply": {
|
||||
"type": "ref",
|
||||
"ref": "#replyRef"
|
||||
},
|
||||
"embed": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"app.bsky.embed.images",
|
||||
"app.bsky.embed.video",
|
||||
"app.bsky.embed.gallery",
|
||||
"app.bsky.embed.external",
|
||||
"app.bsky.embed.record",
|
||||
"app.bsky.embed.recordWithMedia"
|
||||
]
|
||||
},
|
||||
"langs": {
|
||||
"type": "array",
|
||||
"description": "Indicates human language of post primary text content.",
|
||||
"maxLength": 3,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "language"
|
||||
}
|
||||
},
|
||||
"labels": {
|
||||
"type": "union",
|
||||
"description": "Self-label values for this post. Effectively content warnings.",
|
||||
"refs": ["com.atproto.label.defs#selfLabels"]
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"description": "Additional hashtags, in addition to any included in post text and facets.",
|
||||
"maxLength": 8,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"maxLength": 640,
|
||||
"maxGraphemes": 64
|
||||
}
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime",
|
||||
"description": "Client-declared timestamp when this post was originally created."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"replyRef": {
|
||||
"type": "object",
|
||||
"required": ["root", "parent"],
|
||||
"properties": {
|
||||
"root": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.repo.strongRef"
|
||||
},
|
||||
"parent": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.repo.strongRef"
|
||||
}
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"type": "object",
|
||||
"description": "Deprecated: use facets instead.",
|
||||
"required": ["index", "type", "value"],
|
||||
"properties": {
|
||||
"index": {
|
||||
"type": "ref",
|
||||
"ref": "#textSlice"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Expected values are 'mention' and 'link'."
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"textSlice": {
|
||||
"type": "object",
|
||||
"description": "Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.",
|
||||
"required": ["start", "end"],
|
||||
"properties": {
|
||||
"start": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"end": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.postgate",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "record",
|
||||
"key": "tid",
|
||||
"description": "Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.",
|
||||
"record": {
|
||||
"type": "object",
|
||||
"required": ["post", "createdAt"],
|
||||
"properties": {
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"post": {
|
||||
"type": "string",
|
||||
"format": "at-uri",
|
||||
"description": "Reference (AT-URI) to the post record."
|
||||
},
|
||||
"detachedEmbeddingUris": {
|
||||
"type": "array",
|
||||
"maxLength": 50,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"description": "List of AT-URIs embedding this post that the author has detached from."
|
||||
},
|
||||
"embeddingRules": {
|
||||
"description": "List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed.",
|
||||
"type": "array",
|
||||
"maxLength": 5,
|
||||
"items": {
|
||||
"type": "union",
|
||||
"refs": ["#disableRule"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"disableRule": {
|
||||
"type": "object",
|
||||
"description": "Disables embedding of this post.",
|
||||
"properties": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.repost",
|
||||
"defs": {
|
||||
"main": {
|
||||
"description": "Record representing a 'repost' of an existing Bluesky post.",
|
||||
"type": "record",
|
||||
"key": "tid",
|
||||
"record": {
|
||||
"type": "object",
|
||||
"required": ["subject", "createdAt"],
|
||||
"properties": {
|
||||
"subject": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.repo.strongRef"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"via": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.repo.strongRef"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.searchPosts",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Find posts matching search criteria, returning views of those posts. Note that this API endpoint may require authentication (eg, not public) for some service providers and implementations.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["q"],
|
||||
"properties": {
|
||||
"q": {
|
||||
"type": "string",
|
||||
"description": "Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended."
|
||||
},
|
||||
"sort": {
|
||||
"type": "string",
|
||||
"knownValues": ["top", "latest"],
|
||||
"default": "latest",
|
||||
"description": "Specifies the ranking order of results."
|
||||
},
|
||||
"since": {
|
||||
"type": "string",
|
||||
"description": "Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD)."
|
||||
},
|
||||
"until": {
|
||||
"type": "string",
|
||||
"description": "Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD)."
|
||||
},
|
||||
"mentions": {
|
||||
"type": "string",
|
||||
"format": "at-identifier",
|
||||
"description": "Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions."
|
||||
},
|
||||
"author": {
|
||||
"type": "string",
|
||||
"format": "at-identifier",
|
||||
"description": "Filter to posts by the given account. Handles are resolved to DID before query-time."
|
||||
},
|
||||
"lang": {
|
||||
"type": "string",
|
||||
"format": "language",
|
||||
"description": "Filter to posts in the given language. Expected to be based on post language field, though server may override language detection."
|
||||
},
|
||||
"domain": {
|
||||
"type": "string",
|
||||
"description": "Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization."
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"format": "uri",
|
||||
"description": "Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching."
|
||||
},
|
||||
"tag": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"maxLength": 640,
|
||||
"maxGraphemes": 64
|
||||
},
|
||||
"description": "Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching."
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 25
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string",
|
||||
"description": "Optional pagination mechanism; may not necessarily allow scrolling through entire result set."
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["posts"],
|
||||
"properties": {
|
||||
"cursor": {
|
||||
"type": "string"
|
||||
},
|
||||
"hitsTotal": {
|
||||
"type": "integer",
|
||||
"description": "Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits."
|
||||
},
|
||||
"posts": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#postView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "BadQueryString"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,233 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.searchPostsV2",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Find posts matching a search query or filters, returning search hits for matching post records.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": [],
|
||||
"properties": {
|
||||
"cursor": {
|
||||
"type": "string",
|
||||
"description": "Optional pagination cursor."
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 25,
|
||||
"description": "Maximum number of results to return."
|
||||
},
|
||||
"query": {
|
||||
"type": "string",
|
||||
"description": "Search query string. A query or at least one filter is required."
|
||||
},
|
||||
"sort": {
|
||||
"type": "string",
|
||||
"knownValues": ["recent", "top"],
|
||||
"description": "Ranking order for results. 'recent' sorts by recency; 'top' uses search ranking."
|
||||
},
|
||||
"authors": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "at-identifier"
|
||||
},
|
||||
"description": "Include posts by any of these authors. Handles are resolved to DIDs before searching."
|
||||
},
|
||||
"mentions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "at-identifier"
|
||||
},
|
||||
"description": "Include posts that mention any of these accounts. Handles are resolved to DIDs before searching."
|
||||
},
|
||||
"domains": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Include posts that link to any of these domains."
|
||||
},
|
||||
"urls": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"description": "Include posts that link to any of these URLs."
|
||||
},
|
||||
"embeddedAtUris": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"description": "Include posts that embed any of these AT URIs."
|
||||
},
|
||||
"hashtags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"maxLength": 640,
|
||||
"maxGraphemes": 64
|
||||
},
|
||||
"description": "Include posts tagged with any of these hashtags. Do not include the hash (#) prefix."
|
||||
},
|
||||
"excludeAuthors": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "at-identifier"
|
||||
},
|
||||
"description": "Exclude posts by any of these authors. Handles are resolved to DIDs before searching."
|
||||
},
|
||||
"excludeMentions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "at-identifier"
|
||||
},
|
||||
"description": "Exclude posts that mention any of these accounts. Handles are resolved to DIDs before searching."
|
||||
},
|
||||
"excludeDomains": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Exclude posts that link to any of these domains."
|
||||
},
|
||||
"excludeUrls": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"description": "Exclude posts that link to any of these URLs."
|
||||
},
|
||||
"excludeEmbeddedAtUris": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"description": "Exclude posts that embed any of these AT URIs."
|
||||
},
|
||||
"excludeHashtags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"maxLength": 640,
|
||||
"maxGraphemes": 64
|
||||
},
|
||||
"description": "Exclude posts tagged with any of these hashtags. Do not include the hash (#) prefix."
|
||||
},
|
||||
"since": {
|
||||
"type": "string",
|
||||
"description": "Include posts indexed at or after this timestamp. Can be a datetime, or just an ISO date (YYYY-MM-DD)."
|
||||
},
|
||||
"until": {
|
||||
"type": "string",
|
||||
"description": "Include posts indexed before this timestamp. Defaults to the current time. Can be a datetime, or just an ISO date (YYYY-MM-DD)."
|
||||
},
|
||||
"allTime": {
|
||||
"type": "boolean",
|
||||
"description": "Search the full index instead of the recent-post window."
|
||||
},
|
||||
"languages": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "language"
|
||||
},
|
||||
"description": "Include posts whose language matches any of these language codes."
|
||||
},
|
||||
"excludeLanguages": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "language"
|
||||
},
|
||||
"description": "Exclude posts whose language matches any of these language codes."
|
||||
},
|
||||
"hasMedia": {
|
||||
"type": "boolean",
|
||||
"description": "Include only posts with media."
|
||||
},
|
||||
"hasVideo": {
|
||||
"type": "boolean",
|
||||
"description": "Include only posts with video."
|
||||
},
|
||||
"replyParentUri": {
|
||||
"type": "string",
|
||||
"format": "at-uri",
|
||||
"description": "Include only direct replies to this parent post URI."
|
||||
},
|
||||
"threadRootUri": {
|
||||
"type": "string",
|
||||
"format": "at-uri",
|
||||
"description": "Include only posts in the thread rooted at this post URI."
|
||||
},
|
||||
"excludeReplies": {
|
||||
"type": "boolean",
|
||||
"description": "Exclude replies from results. Mutually exclusive with repliesOnly."
|
||||
},
|
||||
"repliesOnly": {
|
||||
"type": "boolean",
|
||||
"description": "Include only replies. Mutually exclusive with excludeReplies."
|
||||
},
|
||||
"following": {
|
||||
"type": "boolean",
|
||||
"description": "Include only posts from accounts followed by the viewer."
|
||||
},
|
||||
"queryLanguage": {
|
||||
"type": "string",
|
||||
"knownValues": ["ja", "zh", "ko", "th", "ar"],
|
||||
"description": "Language analyzer hint for the query text. If unset, the server auto-detects when possible."
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["posts"],
|
||||
"properties": {
|
||||
"cursor": {
|
||||
"type": "string",
|
||||
"description": "Cursor for the next page of results."
|
||||
},
|
||||
"hitsTotal": {
|
||||
"type": "integer",
|
||||
"description": "Estimated total number of matching hits. May be rounded or truncated."
|
||||
},
|
||||
"posts": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#postView"
|
||||
},
|
||||
"description": "Hydrated views of matching posts."
|
||||
},
|
||||
"detectedQueryLanguages": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"knownValues": ["ja", "zh", "ko", "th", "ar"]
|
||||
},
|
||||
"description": "Query languages detected for CJK, Thai, or Arabic text. Empty or omitted for other scripts."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "BadQueryString"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.sendInteractions",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"description": "Send information about interactions with feed items back to the feed generator that served them.",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["interactions"],
|
||||
"properties": {
|
||||
"feed": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"interactions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#interaction"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.feed.threadgate",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "record",
|
||||
"key": "tid",
|
||||
"description": "Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread's root post, and that record must be in the same repository.",
|
||||
"record": {
|
||||
"type": "object",
|
||||
"required": ["post", "createdAt"],
|
||||
"properties": {
|
||||
"post": {
|
||||
"type": "string",
|
||||
"format": "at-uri",
|
||||
"description": "Reference (AT-URI) to the post record."
|
||||
},
|
||||
"allow": {
|
||||
"description": "List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply.",
|
||||
"type": "array",
|
||||
"maxLength": 5,
|
||||
"items": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"#mentionRule",
|
||||
"#followerRule",
|
||||
"#followingRule",
|
||||
"#listRule"
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"hiddenReplies": {
|
||||
"type": "array",
|
||||
"maxLength": 300,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"description": "List of hidden reply URIs."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"mentionRule": {
|
||||
"type": "object",
|
||||
"description": "Allow replies from actors mentioned in your post.",
|
||||
"properties": {}
|
||||
},
|
||||
"followerRule": {
|
||||
"type": "object",
|
||||
"description": "Allow replies from actors who follow you.",
|
||||
"properties": {}
|
||||
},
|
||||
"followingRule": {
|
||||
"type": "object",
|
||||
"description": "Allow replies from actors you follow.",
|
||||
"properties": {}
|
||||
},
|
||||
"listRule": {
|
||||
"type": "object",
|
||||
"description": "Allow replies from actors on a list.",
|
||||
"required": ["list"],
|
||||
"properties": {
|
||||
"list": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user