add @bsky.app/sdk + @atproto/lex, vendor lexicons, codegen via lex cli
This commit is contained in:
@@ -0,0 +1,141 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "app.bsky.embed.record",
|
||||
"description": "A representation of a record embedded in a Bluesky record (eg, a post). For example, a quote-post, or sharing a feed generator record.",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "object",
|
||||
"required": ["record"],
|
||||
"properties": {
|
||||
"record": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.repo.strongRef"
|
||||
}
|
||||
}
|
||||
},
|
||||
"view": {
|
||||
"type": "object",
|
||||
"required": ["record"],
|
||||
"properties": {
|
||||
"record": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"#viewRecord",
|
||||
"#viewNotFound",
|
||||
"#viewBlocked",
|
||||
"#viewDetached",
|
||||
"app.bsky.feed.defs#generatorView",
|
||||
"app.bsky.graph.defs#listView",
|
||||
"app.bsky.labeler.defs#labelerView",
|
||||
"app.bsky.graph.defs#starterPackViewBasic"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"viewRecord": {
|
||||
"type": "object",
|
||||
"required": ["uri", "cid", "author", "value", "indexedAt"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"cid": {
|
||||
"type": "string",
|
||||
"format": "cid"
|
||||
},
|
||||
"author": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileViewBasic"
|
||||
},
|
||||
"value": {
|
||||
"type": "unknown",
|
||||
"description": "The record data itself."
|
||||
},
|
||||
"labels": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.label.defs#label"
|
||||
}
|
||||
},
|
||||
"replyCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"repostCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"likeCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"quoteCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"embeds": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"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"
|
||||
]
|
||||
}
|
||||
},
|
||||
"indexedAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
}
|
||||
}
|
||||
},
|
||||
"viewNotFound": {
|
||||
"type": "object",
|
||||
"required": ["uri", "notFound"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"notFound": {
|
||||
"type": "boolean",
|
||||
"const": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"viewBlocked": {
|
||||
"type": "object",
|
||||
"required": ["uri", "blocked", "author"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "boolean",
|
||||
"const": true
|
||||
},
|
||||
"author": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#blockedAuthor"
|
||||
}
|
||||
}
|
||||
},
|
||||
"viewDetached": {
|
||||
"type": "object",
|
||||
"required": ["uri", "detached"],
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"format": "at-uri"
|
||||
},
|
||||
"detached": {
|
||||
"type": "boolean",
|
||||
"const": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user