app.bsky.draft.defs

Details · defs
Kinddefs
Authoritydraft.bsky.app
Indexed

#draft

object

A draft containing an array of draft posts.

Properties

deviceId

string

UUIDv4 identifier of the device that created this draft.

  • maxLength: 100

The device and/or platform on which the draft was created.

  • maxLength: 100

langs

array

Indicates human language of posts primary text content.

  • maxLength: 3
itemsstring · language

Embedding rules for the postgates to be created when this draft is published.

  • maxLength: 5

posts

requiredarray

Array of draft posts that compose this draft.

  • minLength: 1
  • maxLength: 100
itemsref
Reference

Allow-rules for the threadgate to be created when this draft is published.

  • maxLength: 5

#draftEmbedCaption

object

Properties

content

requiredstring
  • maxLength: 10000

lang

requiredstring · language

#draftEmbedExternal

object

Properties

uri

requiredstring · uri

#draftEmbedGallery

object

Properties

items

requiredref

#draftEmbedGalleryItems

array

The schema-level maxLength of 20 is a future-proof ceiling. Clients should currently enforce a soft limit of 10 items in authoring UIs.

  • maxLength: 20

Items

itemsunion

#draftEmbedImage

object

Properties

alt

string
  • maxGraphemes: 2000

localRef

requiredref

#draftEmbedLocalRef

object

Properties

path

requiredstring

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

  • minLength: 1
  • maxLength: 1024

#draftEmbedRecord

object

Properties

record

requiredref

#draftEmbedVideo

object

Properties

alt

string
  • maxGraphemes: 2000
  • maxLength: 20
itemsref
Reference

localRef

requiredref

#draftPost

object

One of the posts that compose a draft.

Properties

  • maxLength: 1
itemsref
  • maxLength: 4
itemsref
Reference
  • maxLength: 1
itemsref
Reference
  • maxLength: 1
itemsref
Reference

labels

union

Self-label values for this post. Effectively content warnings.

text

requiredstring

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.

  • maxLength: 10000
  • maxGraphemes: 1000

#draftView

object

View to present drafts data to users.

Properties

createdAt

requiredstring · datetime

The time the draft was created.

draft

requiredref
Reference

id

requiredstring · tid

A TID to be used as a draft identifier.

updatedAt

requiredstring · datetime

The time the draft was last updated.

#draftWithId

object

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

Properties

draft

requiredref
Reference

id

requiredstring · tid

A TID to be used as a draft identifier.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A draft containing an array of draft posts.

  • Record containing a draft post that can be edited and later published as app.bsky.feed.post

  • social.agent.draft.post

    record not from the namespace authority

    Draft post created under a delegation. Lives on the agent's PDS. Accumulating record keyed by TID.

  • An unfinished post, event, listing or review, kept in the member's personal space until they post it (D43). The drafted record is carried as written so far and is validated only when it is posted.

  • A skiddle.id post that isn't published yet, kept apart from site.standard.document so readers don't list it. Anyone can read it on the PDS. Publishing turns it into a site.standard.document and deletes the draft.