Skip to main content

app.bsky.draft.defs

#draftWithId

A draft with an identifier, used to store drafts in private storage (stash).

PropertyTypeKnown ValuesRequiredDescription
idstring (tid)-A TID to be used as a draft identifier.
draft#draft--

#draft

A draft containing an array of draft posts.

PropertyTypeKnown ValuesRequiredDescription
postsarray of #draftPost-Array of draft posts that compose this draft.
langsarray of string-Indicates human language of posts primary text content.
postgateEmbeddingRulesarray of union
app.bsky.feed.postgate#disableRule
-Embedding rules for the postgates to be created when this draft is published.
threadgateAllowarray of union
app.bsky.feed.threadgate#mentionRule
app.bsky.feed.threadgate#followerRule
app.bsky.feed.threadgate#followingRule
app.bsky.feed.threadgate#listRule
-Allow-rules for the threadgate to be created when this draft is published.

#draftPost

One of the posts that compose a draft.

PropertyTypeKnown ValuesRequiredDescription
textstring-The primary post content.
labelsunion of
com.atproto.label.defs#selfLabels
--
embedImagesarray of #draftEmbedImage--
embedVideosarray of #draftEmbedVideo--
embedExternalsarray of #draftEmbedExternal--
embedRecordsarray of #draftEmbedRecord--

#draftView

View to present drafts data to users.

PropertyTypeKnown ValuesRequiredDescription
idstring (tid)-A TID to be used as a draft identifier.
draft#draft--
createdAtstring (datetime)-The time the draft was created.
updatedAtstring (datetime)-The time the draft was last updated.

#draftEmbedLocalRef

PropertyTypeKnown ValuesRequiredDescription
pathstring-Local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts.

#draftEmbedCaption

PropertyTypeKnown ValuesRequiredDescription
langstring (language)--
contentstring--

#draftEmbedImage

PropertyTypeKnown ValuesRequiredDescription
localRef#draftEmbedLocalRef--
altstring--

#draftEmbedVideo

PropertyTypeKnown ValuesRequiredDescription
localRef#draftEmbedLocalRef--
altstring--
captionsarray of #draftEmbedCaption--

#draftEmbedExternal

PropertyTypeKnown ValuesRequiredDescription
uristring (uri)--

#draftEmbedRecord

PropertyTypeKnown ValuesRequiredDescription
recordcom.atproto.repo.strongRef--