appBskyEmbedRecord top-level constant
app.bsky.embed.record
Implementation
const appBskyEmbedRecord = <String, dynamic>{
"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",
"app.bsky.feed.defs#generatorView",
"app.bsky.graph.defs#listView",
"app.bsky.labeler.defs#labelerView"
]
}
}
},
"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"},
"embeds": {
"type": "array",
"items": {
"type": "union",
"refs": [
"app.bsky.embed.images#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"}
}
}
}
};