At
view release on metacpan or search on metacpan
share/lexicons/app/bsky/draft/defs.json view on Meta::CPAN
{
"lexicon": 1,
"id": "app.bsky.draft.defs",
"defs": {
"draftWithId": {
"description": "A draft with an identifier, used to store drafts in private storage (stash).",
"type": "object",
"required": ["id", "draft"],
"properties": {
"id": {
"description": "A TID to be used as a draft identifier.",
"type": "string",
"format": "tid"
},
"draft": {
"type": "ref",
"ref": "#draft"
}
}
},
"draft": {
"description": "A draft containing an array of draft posts.",
"type": "object",
"required": ["posts"],
"properties": {
"deviceId": {
"type": "string",
"description": "UUIDv4 identifier of the device that created this draft.",
"maxLength": 100
},
"deviceName": {
"type": "string",
"description": "The device and/or platform on which the draft was created.",
"maxLength": 100
},
"posts": {
"description": "Array of draft posts that compose this draft.",
"type": "array",
"minLength": 1,
"maxLength": 100,
"items": {
"type": "ref",
"ref": "#draftPost"
}
},
"langs": {
"type": "array",
"description": "Indicates human language of posts primary text content.",
"maxLength": 3,
"items": { "type": "string", "format": "language" }
},
"postgateEmbeddingRules": {
"description": "Embedding rules for the postgates to be created when this draft is published.",
"type": "array",
"maxLength": 5,
"items": {
"type": "union",
"refs": ["app.bsky.feed.postgate#disableRule"]
}
},
"threadgateAllow": {
"description": "Allow-rules for the threadgate to be created when this draft is published.",
"type": "array",
"maxLength": 5,
"items": {
"type": "union",
"refs": [
"app.bsky.feed.threadgate#mentionRule",
"app.bsky.feed.threadgate#followerRule",
"app.bsky.feed.threadgate#followingRule",
"app.bsky.feed.threadgate#listRule"
]
}
}
}
},
"draftPost": {
"description": "One of the posts that compose a draft.",
"type": "object",
"required": ["text"],
"properties": {
"text": {
"type": "string",
"maxLength": 10000,
"maxGraphemes": 1000,
"description": "The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts."
},
"labels": {
"type": "union",
"description": "Self-label values for this post. Effectively content warnings.",
"refs": ["com.atproto.label.defs#selfLabels"]
},
"embedImages": {
"type": "array",
"items": { "type": "ref", "ref": "#draftEmbedImage" },
"maxLength": 4
},
"embedVideos": {
"type": "array",
"items": { "type": "ref", "ref": "#draftEmbedVideo" },
"maxLength": 1
},
"embedExternals": {
"type": "array",
"items": { "type": "ref", "ref": "#draftEmbedExternal" },
"maxLength": 1
},
"embedRecords": {
"type": "array",
"items": { "type": "ref", "ref": "#draftEmbedRecord" },
"maxLength": 1
}
}
},
"draftView": {
"description": "View to present drafts data to users.",
"type": "object",
"required": ["id", "draft", "createdAt", "updatedAt"],
"properties": {
"id": {
"description": "A TID to be used as a draft identifier.",
"type": "string",
"format": "tid"
},
"draft": {
"type": "ref",
"ref": "#draft"
},
"createdAt": {
"description": "The time the draft was created.",
( run in 0.987 second using v1.01-cache-2.11-cpan-437f7b0c052 )