At

 view release on metacpan or  search on metacpan

share/lexicons/app/bsky/draft/defs.json  view on Meta::CPAN

          }
        },
        "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.",
          "type": "string",
          "format": "datetime"
        },
        "updatedAt": {
          "description": "The time the draft was last updated.",
          "type": "string",
          "format": "datetime"
        }
      }
    },

    "draftEmbedLocalRef": {
      "type": "object",
      "required": ["path"],
      "properties": {
        "path": {
          "type": "string",
          "description": "Local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts.",
          "minLength": 1,
          "maxLength": 1024
        }
      }
    },
    "draftEmbedCaption": {
      "type": "object",
      "required": ["lang", "content"],
      "properties": {
        "lang": {
          "type": "string",
          "format": "language"
        },
        "content": {
          "type": "string",
          "maxLength": 10000
        }
      }
    },

    "draftEmbedImage": {
      "type": "object",
      "required": ["localRef"],
      "properties": {
        "localRef": {
          "type": "ref",
          "ref": "#draftEmbedLocalRef"
        },
        "alt": {
          "type": "string",
          "maxGraphemes": 2000
        }
      }
    },
    "draftEmbedVideo": {
      "type": "object",
      "required": ["localRef"],
      "properties": {
        "localRef": {
          "type": "ref",
          "ref": "#draftEmbedLocalRef"
        },
        "alt": {
          "type": "string",
          "maxGraphemes": 2000
        },
        "captions": {



( run in 0.505 second using v1.01-cache-2.11-cpan-39bf76dae61 )