{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blinkpdf-io/json-schema/blinkpdf-io-compose-body-sections-item-ops-item-schema.json",
  "title": "Compose.Body.sections.item.ops.item",
  "description": "One absolute page op: a leaf draw or a clip/rotation scope of leaf ops",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blinkpdf-io-stamp-api-openapi.yml#/components/schemas/Compose.Body.sections.item.ops.item",
  "anyOf": [
    {
      "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0"
    },
    {
      "additionalProperties": false,
      "title": "Clip to a rectangle",
      "description": "Scoped clip: leaf ops painted only inside the axis-aligned rectangle",
      "x-diagnostics": [],
      "type": "object",
      "required": [
        "kind",
        "rect",
        "ops"
      ],
      "properties": {
        "kind": {
          "const": "clip",
          "type": "string"
        },
        "rect": {
          "additionalProperties": false,
          "description": "Axis-aligned clip rectangle in page points",
          "type": "object",
          "required": [
            "x",
            "y",
            "width",
            "height"
          ],
          "properties": {
            "x": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "y": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "width": {
              "minimum": 1,
              "maximum": 14400,
              "description": "Width or height in PDF points",
              "type": "number"
            },
            "height": {
              "minimum": 1,
              "maximum": 14400,
              "description": "Width or height in PDF points",
              "type": "number"
            }
          }
        },
        "ops": {
          "minItems": 1,
          "maxItems": 32,
          "description": "Leaf ops painted inside the clip rectangle",
          "type": "array",
          "items": {
            "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0"
          }
        }
      }
    },
    {
      "additionalProperties": false,
      "title": "Rotate ops",
      "description": "Scoped rotation: leaf ops painted rotated around the center point",
      "x-diagnostics": [],
      "type": "object",
      "required": [
        "kind",
        "degrees",
        "ops"
      ],
      "properties": {
        "kind": {
          "const": "rotation",
          "type": "string"
        },
        "degrees": {
          "minimum": -360,
          "maximum": 360,
          "description": "Clockwise rotation in degrees applied to the scope",
          "type": "number"
        },
        "centerX": {
          "minimum": -14400,
          "maximum": 14400,
          "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
          "type": "number"
        },
        "centerY": {
          "minimum": -14400,
          "maximum": 14400,
          "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
          "type": "number"
        },
        "ops": {
          "minItems": 1,
          "maxItems": 32,
          "description": "Leaf ops painted under the rotation",
          "type": "array",
          "items": {
            "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0"
          }
        }
      }
    }
  ],
  "$defs": {
    "Compose.Body.footnotes.item.content": {
      "description": "Text as a plain string or as an ordered stream of text spans, chips, inline images, inline formulas, and footnote markers. Text in a script that needs shaping or right-to-left ordering (Arabic, Hebrew, Syriac, Thaana, N'Ko, Mongolian, and Devanagari, Bengali, Tamil, and the other Indic and Brahmic scripts) paints unshaped: letters unjoined, left to right in the order typed, vowel signs and conjuncts not reordered. Each text that holds it, in a header, footer, SVG, or image overlay too, is reported as `script-not-shaped` at `warn` (impact `content`), in validate and render alike; Latin, Greek, Cyrillic, CJK, Thai, and emoji are not.",
      "anyOf": [
        {
          "minLength": 0,
          "maxLength": 8192,
          "description": "Text content for a composed text run; empty strings paint nothing",
          "type": "string"
        },
        {
          "minItems": 1,
          "maxItems": 64,
          "description": "Styled spans, chips, inline images, inline formulas, and footnote markers rendered in order",
          "type": "array",
          "items": {
            "description": "One fragment in a rich stream: a text span, a color chip, an inline image, an inline formula, or a footnote marker",
            "anyOf": [
              {
                "additionalProperties": false,
                "description": "One styled span: literal text plus either a `font` role.variant key or CSS `weight`/`italic`/`family`, never both: `font` with `weight` or `italic` is refused with a 400 at the span, and `font` with `family` with a 400 at `family`",
                "type": "object",
                "required": [
                  "text"
                ],
                "properties": {
                  "text": {
                    "minLength": 0,
                    "maxLength": 8192,
                    "description": "Text content for a composed text run; empty strings paint nothing",
                    "type": "string"
                  },
                  "font": {
                    "pattern": "^\\S(.*\\S)?$",
                    "description": "Font slot as `<role>.<variant>` — role is `body`, `heading`, or a custom `typography.named` role; variant is one of regular, italic, bold, boldItalic (see `enums.fontVariant`; e.g. `heading.bold`). The shape is checked semantically at validate, not by this pattern: a misspelled variant, an undeclared role, a missing `.variant`, or a value that reads like a family name is rejected with a `didYouMean` pointing at the fix (use `set.family` for a typeface).",
                    "type": "string"
                  },
                  "family": {
                    "$ref": "#/$defs/Compose.Body.footnotes.item.content.anyOf1.item.anyOf0.family"
                  },
                  "weight": {
                    "minimum": 100,
                    "maximum": 900,
                    "multipleOf": 100,
                    "description": "Font weight on the CSS scale in steps of 100: one of 100, 200, 300, 400, 500, 600, 700, 800, 900 (intermediate values like 450 are not valid weights)",
                    "type": "integer"
                  },
                  "italic": {
                    "description": "Italic face of the resolved family; XOR with `font` (a role.variant key)",
                    "type": "boolean"
                  },
                  "size": {
                    "minimum": 1,
                    "maximum": 999,
                    "description": "Font size in points",
                    "type": "number"
                  },
                  "color": {
                    "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
                    "description": "Color as `#RGB` or `#RRGGBB`",
                    "type": "string"
                  },
                  "link": {
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^(https?://|mailto:|#)",
                    "description": "Link target: `https://` or `http://` URL, `mailto:` address, or `#anchor` internal reference to an `anchor` the body declares; an `#anchor` that names no declared anchor is refused with a 400 at this field. Non-ASCII characters are percent-encoded into the PDF link, as a Markdown link is; a lone surrogate, which has no UTF-8 form, is refused with a 400 at this field",
                    "type": "string"
                  }
                }
              },
              {
                "additionalProperties": false,
                "description": "Rich fragment that paints a color chip, never mixed with text",
                "type": "object",
                "required": [
                  "chip"
                ],
                "properties": {
                  "chip": {
                    "additionalProperties": false,
                    "description": "Inline color chip painted in the text stream",
                    "type": "object",
                    "required": [
                      "color"
                    ],
                    "properties": {
                      "color": {
                        "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
                        "description": "Color as `#RGB` or `#RRGGBB`",
                        "type": "string"
                      },
                      "size": {
                        "minimum": 1,
                        "maximum": 999,
                        "description": "Painted box height in points, and the square edge when `width` is omitted; defaults to the surrounding font size",
                        "type": "number"
                      },
                      "width": {
                        "minimum": 1,
                        "maximum": 999,
                        "description": "Painted box width in points; omit to keep a square whose edge is `size`",
                        "type": "number"
                      },
                      "radius": {
                        "minimum": 0,
                        "maximum": 14400,
                        "description": "Corner radius in points; omit for a square chip",
                        "type": "number"
                      },
                      "stroke": {
                        "additionalProperties": false,
                        "description": "Optional perimeter stroke around the chip",
                        "type": "object",
                        "required": [
                          "color",
                          "width"
                        ],
                        "properties": {
                          "color": {
                            "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
                            "description": "Color as `#RGB` or `#RRGGBB`",
                            "type": "string"
                          },
                          "width": {
                            "minimum": 0,
                            "maximum": 14400,
                            "description": "Stroke width in points",
                            "type": "number"
                          }
                        }
                      },
                      "alt": {
                        "minLength": 1,
                        "maxLength": 1024,
                        "description": "Accessible description; omit for a decorative Artifact chip",
                        "type": "string"
                      },
                      "gapAfter": {
                        "minimum": 0,
                        "maximum": 14400,
                        "description": "Extra advance after the painted box in points; does not change the painted size",
                        "type": "number"
                      },
                      "label": {
                        "additionalProperties": false,
                        "description": "Centered label inside the chip; unlabeled chips paint as Artifact",
                        "type": "object",
                        "required": [
                          "text"
                        ],
                        "properties": {
                          "text": {
                            "minLength": 1,
                            "maxLength": 8,
                            "description": "Literal glyph painted centered in the chip (no auto-counter)",
                            "type": "string"
                          },
                          "color": {
                            "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
                            "description": "Color as `#RGB` or `#RRGGBB`",
                            "type": "string"
                          },
                          "font": {
                            "pattern": "^\\S(.*\\S)?$",
                            "description": "Font slot as `<role>.<variant>` — role is `body`, `heading`, or a custom `typography.named` role; variant is one of regular, italic, bold, boldItalic (see `enums.fontVariant`; e.g. `heading.bold`). The shape is checked semantically at validate, not by this pattern: a misspelled variant, an undeclared role, a missing `.variant`, or a value that reads like a family name is rejected with a `didYouMean` pointing at the fix (use `set.family` for a typeface).",
                            "type": "string"
                          },
                          "size": {
                            "minimum": 1,
                            "maximum": 999,
                            "description": "Label size in points; defaults to a fraction of the chip edge",
                            "type": "number"
                          }
                        }
                      }
                    }
                  }
                }
              },
              {
                "additionalProperties": false,
                "description": "Rich fragment that paints an inline image, never mixed with text",
                "type": "object",
                "required": [
                  "image"
                ],
                "properties": {
                  "image": {
                    "additionalProperties": false,
                    "title": "Inline image",
                    "description": "Inline image drawn in the same stream as surrounding text. Without `width` it paints one line tall (a raster no taller than its intrinsic size). `width` sets the painted width in points and the height follows the proportion; `height` requires `width` and forms a contain box preserving the proportion. A box taller than the line grows the line. A box wider than the text block, or taller than the page body (in a table cell, the height its row holds on a fresh page, less the cell padding), scales down uniformly, proportion kept, to fit, reported as `inline-image-oversized-scaled` (raster) or `inline-svg-oversized-scaled` (vector) at `warn` with impact `appearance` and in validate `layout.diagnostics`",
                    "x-diagnostics": [
                      "inline-image-oversized-scaled",
                      "inline-svg-oversized-scaled"
                    ],
                    "type": "object",
                    "required": [
                      "src"
                    ],
                    "properties": {
                      "src": {
                        "minLength": 1,
                        "maxLength": 1048576,
                        "pattern": "^(https://|data:image/|[Bb][Ll][Ii][Nn][Kk]://[Aa][Ss][Ss][Ee][Tt]/)",
                        "title": "Image source",
                        "description": "Image source: `https://` remote URL fetched under the fixed image policy, `data:image/...` inline base64, or staged `blink://asset/<sha256>` handle; a `blink://asset/` source that names no 43-character asset id is refused with a 400 at this field. Its bytes are read as a Markdown image of the same bytes is: the same formats paint (PNG, JPEG, GIF, TIFF, WebP, SVG) and a source that does not paint reports the same code. A source that cannot be fetched (`image-fetch-failed`), whose fetch times out (`image-fetch-timeout`) or is over the per-image size (`image-fetch-too-large`), whose type is not an image (`image-unsupported-mime`), whose `data:` URL is malformed or whose staged bytes are empty or an SVG that is not text (`image-data-malformed`), whose bytes do not decode (truncated sample data included, a JPEG that is arithmetic-coded, lossless, hierarchical or not 8-bit, or a JPEG whose header PDFium refuses before it reads its data: a quantization or Huffman table it uses and never defines, a malformed DQT or DHT, a Huffman table that takes the all-ones code, a component count other than 1, 3, or 4, fractional sampling, an interleaved MCU of more than 10 blocks, a progressive `Al` over 13, or a side over 65500 pixels; the message naming which), whose SVG source is over 500000 bytes, or whose SVG expands past what its size allows (`image-decode-failed`, its message says which), or whose format has no decoder, such as AVIF (`image-codec-unavailable`), paints nothing in its place, reported at `error` with impact `content`; an SVG painted with unsupported features dropped is reported at `warn` with impact `content` (`image-svg-partial`); a raster over the plan decode limits fails the item with `image_too_large` before any image is decoded",
                        "x-diagnostics": [
                          "image-fetch-failed",
                          "image-fetch-timeout",
                          "image-fetch-too-large",
                          "image-unsupported-mime",
                          "image-data-malformed",
                          "image-decode-failed",
                          "image-codec-unavailable",
                          "image-svg-partial",
                          "image_too_large"
                        ],
                        "type": "string"
                      },
                      "width": {
                        "minimum": 1,
                        "maximum": 14400,
                        "description": "Width or height in PDF points",
                        "type": "number"
                      },
                      "height": {
                        "minimum": 1,
                        "maximum": 14400,
                        "description": "Width or height in PDF points",
                        "type": "number"
                      },
                      "alt": {
                        "minLength": 1,
                        "maxLength": 1024,
                        "description": "Accessible description for the inline figure; omit for decorative images",
                        "type": "string"
                      }
                    }
                  }
                }
              },
              {
                "additionalProperties": false,
                "description": "Rich fragment that paints an inline formula, never mixed with text",
                "type": "object",
                "required": [
                  "math"
                ],
                "properties": {
                  "math": {
                    "additionalProperties": false,
                    "title": "Inline formula",
                    "description": "Inline formula typeset in text style (TeX appendix G with the OpenType MATH font) and painted as vector glyphs and rules on the text baseline, at the size and color of the text around it; its height and depth grow the line. A formula longer than its line breaks, as TeX does, after a relation or a binary operator of its own (never inside a group, a fraction, a script, or a `\\left…\\right`), each line painting its part. It is tagged one `Formula` with `alt` (else its TeX source) as `/Alt`, whatever lines it spans. A formula whose widest unbreakable part is wider than the text block, or whose line is taller than the page body (in a table cell, the height its row holds on a fresh page, less the cell padding), is set at a uniformly smaller size to fit, reported as `inline-math-oversized-scaled` at `warn` with impact `content` and in validate `layout.diagnostics`. A formula that parses but would grow a delimiter or radical sign taller than 40 em, stretch a delimiter, wide accent, or brace past the largest size the math font draws it (`\\widehat` or `\\widetilde` over a base wider than their largest variant, `\\langle`, `\\rangle`, `/`, or `\\backslash` around content taller than theirs), or paint more than 2 glyphs per character of its TeX source (nested growing delimiters and radicals, or a brace or arrow stretched across a wide body), paints its TeX source as text and is reported as `math-unsupported` at `error` at the pointer of its node (for an inline formula, the node that holds it), by validate and render alike",
                    "x-diagnostics": [
                      "inline-math-oversized-scaled",
                      "math-unsupported"
                    ],
                    "type": "object",
                    "required": [
                      "tex"
                    ],
                    "properties": {
                      "tex": {
                        "minLength": 1,
                        "maxLength": 4096,
                        "pattern": "\\S",
                        "description": "TeX math source in the supported subset: letters (italic) and digits, `^` and `_` scripts and primes, braces, `\\frac`/`\\dfrac`/`\\tfrac`/`\\binom`, `\\sqrt` with an optional `[degree]`, Greek letters (`\\alpha`, `\\Gamma`), operators and relations (`\\pm`, `\\leq`, `\\to`, `\\in`), large operators with limits (`\\sum`, `\\prod`, `\\int`, `\\limits`/`\\nolimits`), operator names (`\\sin`, `\\lim`, `\\operatorname`), `\\left`/`\\right` and `\\big`…`\\Bigg` delimiters, spaces (`\\,` `\\;` `\\quad`), style switches (`\\displaystyle`), `\\text`, the `\\mathrm`/`\\mathit`/`\\mathbf`/`\\mathbb`/`\\mathcal` alphabets, accents (`\\hat`, `\\bar`, `\\vec`, `\\widehat`, `\\overrightarrow`), `\\overline`/`\\underline`, `\\overbrace`/`\\underbrace` (scripts above and below), the `matrix`, `pmatrix`, `bmatrix`, `cases`, and `aligned` environments (`\\begin{pmatrix} a & b \\\\ c & d \\end{pmatrix}`: cells at `&`, rows at `\\\\`), and, in a flow `math` node only, one `\\tag{…}` (or `\\tag*{…}`, without parentheses) that numbers the equation at the right edge of its line, one `\\notag` that takes away the number `math.numbering: \"all\"` gives it, one `\\label{…}` that names its number, and one `\\leqno`, last, that sets its numbers at the left edge; when an `aligned` is the whole formula, a `\\tag`, `\\label`, or `\\notag` in one of its rows numbers each row on its own. One `\\ref{…}` or `\\eqref{…}` (in a flow node or an inline span) sets the number of the equation with that label where it stands and links to it: the whole formula when it is only the reference, else only the glyphs of the reference. These commands stand at the top of the formula (a `\\ref` or `\\eqref` not in a row), a formula that is only a `\\ref` or `\\eqref` takes no other of them, and a `\\notag` beside a `\\tag`, `\\label`, or `\\leqno`, a `\\label` or `\\leqno` on an equation with no number, a `\\ref` or `\\eqref` to a label no flow `math` node sets, and a label two equations set are refused with a 400 at `tex`. Any other environment, `&` or `\\\\` outside one, row spacing `\\\\[…]`, and any other command are refused with a 400 at `tex` naming the construct and its character; so are a source nested deeper than 32 levels and malformed TeX.",
                        "type": "string"
                      },
                      "alt": {
                        "minLength": 1,
                        "maxLength": 1024,
                        "pattern": "\\S",
                        "description": "Accessible description emitted as the `Formula` `/Alt`; defaults to the TeX source",
                        "type": "string"
                      }
                    }
                  }
                }
              },
              {
                "additionalProperties": false,
                "description": "Rich fragment that paints a footnote marker for `footnote`, never mixed with text",
                "type": "object",
                "required": [
                  "footnote"
                ],
                "properties": {
                  "footnote": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[^\\s\\[\\]\\^]+$",
                    "description": "Footnote id: one or more characters other than whitespace, ^, [, or ]",
                    "type": "string"
                  }
                }
              }
            ]
          }
        }
      ]
    },
    "Compose.Body.footnotes.item.content.anyOf1.item.anyOf0.family": {
      "title": "Compose text family",
      "description": "The family a compose text paints in: a role (`body`, `heading`, `code`, or a `typography.named` role), a hosted weighted key, or the display name of a Google Fonts family declared by `googleFontsUrls`. Any other value is refused with a 400 at this field",
      "anyOf": [
        {
          "const": "body",
          "type": "string"
        },
        {
          "const": "heading",
          "type": "string"
        },
        {
          "const": "code",
          "type": "string"
        },
        {
          "const": "inter",
          "type": "string"
        },
        {
          "const": "lora",
          "type": "string"
        },
        {
          "const": "source-serif-4",
          "type": "string"
        },
        {
          "pattern": "^[A-Za-z][A-Za-z0-9 ]{0,63}$",
          "description": "Google Fonts display name from the declared pool (e.g. `Playfair Display`)",
          "type": "string"
        },
        {
          "pattern": "^[a-z][a-z0-9-]{0,15}$",
          "description": "Reference to a custom role declared in `typography.named` (e.g. `display`)",
          "type": "string"
        }
      ]
    },
    "Compose.Body.sections.item.ops.item.anyOf0": {
      "description": "One absolute leaf op: text, text row, image, rectangle, circle, line, custom vector, chart, QR, or barcode",
      "anyOf": [
        {
          "additionalProperties": false,
          "title": "Text block",
          "description": "Absolute text block: `content` as string or styled spans, positioned at `x`/`y` with optional width, face (`font` or `family`, not both: an op with both is refused with a 400 at `family`), and rotation. A line it wraps onto that paints over another op of its canvas is reported as `canvas-text-wrap-overlap` at this op. A color you set on its text or a span (or a chip label, white unless set, on its chip) that has, at full opacity, less than 3:1 contrast (the WCAG 2.2 SC 1.4.3 large-text floor) against the solid color painted behind it is reported as `text-low-contrast` at the pointer of the node, list item, or row slot that paints it, with impact `content`; text over an image, a gradient, or a fill it only partly lies on is not judged, and an `opacity` below 1 fades a readable color without being reported",
          "x-diagnostics": [
            "canvas-text-wrap-overlap",
            "text-low-contrast"
          ],
          "type": "object",
          "required": [
            "kind",
            "content"
          ],
          "properties": {
            "kind": {
              "const": "text",
              "type": "string"
            },
            "content": {
              "$ref": "#/$defs/Compose.Body.footnotes.item.content"
            },
            "x": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "y": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "maxWidth": {
              "minimum": 1,
              "maximum": 14400,
              "description": "Width or height in PDF points",
              "type": "number"
            },
            "font": {
              "pattern": "^\\S(.*\\S)?$",
              "description": "Font slot as `<role>.<variant>` — role is `body`, `heading`, or a custom `typography.named` role; variant is one of regular, italic, bold, boldItalic (see `enums.fontVariant`; e.g. `heading.bold`). The shape is checked semantically at validate, not by this pattern: a misspelled variant, an undeclared role, a missing `.variant`, or a value that reads like a family name is rejected with a `didYouMean` pointing at the fix (use `set.family` for a typeface).",
              "type": "string"
            },
            "family": {
              "$ref": "#/$defs/Compose.Body.footnotes.item.content.anyOf1.item.anyOf0.family"
            },
            "size": {
              "minimum": 1,
              "maximum": 999,
              "description": "Font size in points",
              "type": "number"
            },
            "color": {
              "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
              "description": "Color as `#RGB` or `#RRGGBB`",
              "type": "string"
            },
            "align": {
              "description": "Horizontal text alignment",
              "type": "string",
              "enum": [
                "left",
                "right",
                "center",
                "justify"
              ]
            },
            "lineHeight": {
              "minimum": 0.8,
              "maximum": 10,
              "description": "Line height as a multiple of the font size",
              "type": "number"
            },
            "letterSpacing": {
              "minimum": -100,
              "maximum": 100,
              "description": "Extra spacing between characters in points; negative values tighten",
              "type": "number"
            },
            "opacity": {
              "minimum": 0,
              "maximum": 1,
              "description": "Opacity from 0 (transparent) to 1 (opaque)",
              "type": "number"
            },
            "rotation": {
              "additionalProperties": false,
              "description": "Inline rotation for a composed text op",
              "type": "object",
              "required": [
                "degrees"
              ],
              "properties": {
                "degrees": {
                  "minimum": -360,
                  "maximum": 360,
                  "description": "Clockwise rotation in degrees applied to the text block",
                  "type": "number"
                }
              }
            },
            "anchor": {
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^(?!h-(?:0|[1-9][0-9]*)$)[A-Za-z][A-Za-z0-9_-]*$",
              "description": "Stable anchor id for outline entries and `#anchor` links: a letter, then letters, digits, `_`, or `-`. A name `h-` plus a number (`h-0`, `h-1`, `h-10`) is reserved for a heading that sets no anchor and is refused",
              "type": "string"
            }
          }
        },
        {
          "additionalProperties": false,
          "title": "Left/right row",
          "description": "Two-column signature-style row: left and right slots on one baseline, used for sign-off lines and paired labels. A slot whose content is empty is omitted and the other slot takes the row: an empty `right` lets `left` wrap across the whole content width, an empty `left` leaves `right` at the trailing edge with no gap beside it. A right slot wider than the content band beside it fails the item with `text_row_overflow`. A color you set on its text or a span (or a chip label, white unless set, on its chip) that has, at full opacity, less than 3:1 contrast (the WCAG 2.2 SC 1.4.3 large-text floor) against the solid color painted behind it is reported as `text-low-contrast` at the pointer of the node, list item, or row slot that paints it, with impact `content`; text over an image, a gradient, or a fill it only partly lies on is not judged, and an `opacity` below 1 fades a readable color without being reported",
          "x-diagnostics": [
            "text_row_overflow",
            "text-low-contrast"
          ],
          "type": "object",
          "required": [
            "kind",
            "left",
            "right"
          ],
          "properties": {
            "kind": {
              "const": "textRow",
              "type": "string"
            },
            "y": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "left": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.textRow.left"
            },
            "right": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.textRow.left"
            },
            "gap": {
              "minimum": 0,
              "maximum": 14400,
              "description": "Gap in points between the left and right slots",
              "type": "number"
            }
          }
        },
        {
          "additionalProperties": false,
          "title": "Image",
          "description": "Absolute image, raster or SVG: staged, remote, or inline source painted at `x`/`y` with optional sizing, border, clip, shadow, and link, tagged as a flow image is: a `Figure` with `alt` as `/Alt`, or without `alt` a decorative artifact. A `link` wraps that `Figure` in a `Link` whose label (`/Contents`) is `alt`, so a `link` without `alt` is refused with a 400 at `alt`; inside a `clip` or `rotation` scope too. A raster source paints `border`, `borderRadius`, `clipShape`, `clipPath`, and `shadow`; an SVG source paints as vectors and reports `image-svg-style-not-applied` at the pointer of each of those fields it carries (impact `content`), the same on validate and on render",
          "x-diagnostics": [
            "image-svg-style-not-applied"
          ],
          "type": "object",
          "required": [
            "kind",
            "src",
            "x",
            "y"
          ],
          "properties": {
            "kind": {
              "const": "image",
              "type": "string"
            },
            "src": {
              "minLength": 1,
              "maxLength": 1048576,
              "pattern": "^(https://|data:image/|[Bb][Ll][Ii][Nn][Kk]://[Aa][Ss][Ss][Ee][Tt]/)",
              "title": "Image source",
              "description": "Image source: `https://` remote URL fetched under the fixed image policy, `data:image/...` inline base64, or staged `blink://asset/<sha256>` handle; a `blink://asset/` source that names no 43-character asset id is refused with a 400 at this field. Its bytes are read as a Markdown image of the same bytes is: the same formats paint (PNG, JPEG, GIF, TIFF, WebP, SVG) and a source that does not paint reports the same code. A source that cannot be fetched (`image-fetch-failed`), whose fetch times out (`image-fetch-timeout`) or is over the per-image size (`image-fetch-too-large`), whose type is not an image (`image-unsupported-mime`), whose `data:` URL is malformed or whose staged bytes are empty or an SVG that is not text (`image-data-malformed`), whose bytes do not decode (truncated sample data included, a JPEG that is arithmetic-coded, lossless, hierarchical or not 8-bit, or a JPEG whose header PDFium refuses before it reads its data: a quantization or Huffman table it uses and never defines, a malformed DQT or DHT, a Huffman table that takes the all-ones code, a component count other than 1, 3, or 4, fractional sampling, an interleaved MCU of more than 10 blocks, a progressive `Al` over 13, or a side over 65500 pixels; the message naming which), whose SVG source is over 500000 bytes, or whose SVG expands past what its size allows (`image-decode-failed`, its message says which), or whose format has no decoder, such as AVIF (`image-codec-unavailable`), paints nothing in its place, reported at `error` with impact `content`; an SVG painted with unsupported features dropped is reported at `warn` with impact `content` (`image-svg-partial`); a raster over the plan decode limits fails the item with `image_too_large` before any image is decoded",
              "x-diagnostics": [
                "image-fetch-failed",
                "image-fetch-timeout",
                "image-fetch-too-large",
                "image-unsupported-mime",
                "image-data-malformed",
                "image-decode-failed",
                "image-codec-unavailable",
                "image-svg-partial",
                "image_too_large"
              ],
              "type": "string"
            },
            "x": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "y": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "width": {
              "minimum": 1,
              "maximum": 14400,
              "description": "Width or height in PDF points",
              "type": "number"
            },
            "height": {
              "minimum": 1,
              "maximum": 14400,
              "description": "Width or height in PDF points",
              "type": "number"
            },
            "opacity": {
              "minimum": 0,
              "maximum": 1,
              "description": "Opacity from 0 (transparent) to 1 (opaque)",
              "type": "number"
            },
            "border": {
              "additionalProperties": false,
              "description": "Stroke drawn around a composed image rectangle",
              "type": "object",
              "required": [
                "width",
                "color"
              ],
              "properties": {
                "width": {
                  "minimum": 0.1,
                  "maximum": 50,
                  "description": "Border stroke width in points",
                  "type": "number"
                },
                "color": {
                  "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
                  "description": "Color as `#RGB` or `#RRGGBB`",
                  "type": "string"
                },
                "opacity": {
                  "minimum": 0,
                  "maximum": 1,
                  "description": "Opacity from 0 (transparent) to 1 (opaque)",
                  "type": "number"
                }
              }
            },
            "borderRadius": {
              "minimum": 0,
              "maximum": 14400,
              "description": "Corner radius in points applied to the image box",
              "type": "number"
            },
            "clipShape": {
              "description": "Shape clip applied to the image box",
              "type": "string",
              "enum": [
                "circle",
                "ellipse"
              ]
            },
            "clipPath": {
              "minLength": 1,
              "maxLength": 4096,
              "description": "SVG path `d` mask in normalized 0..1 coordinates applied to the image, admitted by the same rule as a render image mask `path`: a blank or unparseable path is refused with a 400 at `clipPath`, as is one beside `clipShape`, of which only one clip paints",
              "type": "string"
            },
            "shadow": {
              "additionalProperties": false,
              "description": "Drop shadow cast by a composed image rectangle",
              "type": "object",
              "required": [
                "offsetX",
                "offsetY",
                "blur"
              ],
              "properties": {
                "offsetX": {
                  "minimum": -200,
                  "maximum": 200,
                  "description": "Horizontal shadow displacement in points (positive is right)",
                  "type": "number"
                },
                "offsetY": {
                  "minimum": -200,
                  "maximum": 200,
                  "description": "Vertical shadow displacement in points (positive is down)",
                  "type": "number"
                },
                "blur": {
                  "minimum": 0,
                  "maximum": 100,
                  "description": "Gaussian blur radius in points",
                  "type": "number"
                },
                "color": {
                  "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
                  "description": "Color as `#RGB` or `#RRGGBB`",
                  "type": "string"
                },
                "opacity": {
                  "minimum": 0,
                  "maximum": 1,
                  "description": "Opacity from 0 (transparent) to 1 (opaque)",
                  "type": "number"
                }
              }
            },
            "alt": {
              "minLength": 1,
              "maxLength": 1024,
              "description": "Accessible description emitted as the image `Figure` `/Alt`; omit for a decorative image, painted as an artifact a reader skips",
              "type": "string"
            },
            "link": {
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^(https?://|mailto:|#)",
              "description": "Link target: `https://` or `http://` URL, `mailto:` address, or `#anchor` internal reference to an `anchor` the body declares; an `#anchor` that names no declared anchor is refused with a 400 at this field. Non-ASCII characters are percent-encoded into the PDF link, as a Markdown link is; a lone surrogate, which has no UTF-8 form, is refused with a 400 at this field",
              "type": "string"
            }
          }
        },
        {
          "additionalProperties": false,
          "title": "Band, card, or border",
          "description": "Absolute rectangle: band, card, border, or CTA background with optional fill, stroke, and corner radius",
          "x-diagnostics": [],
          "type": "object",
          "required": [
            "kind",
            "x",
            "y",
            "width",
            "height"
          ],
          "properties": {
            "kind": {
              "const": "rect",
              "type": "string"
            },
            "x": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "y": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "width": {
              "minimum": 1,
              "maximum": 14400,
              "description": "Width or height in PDF points",
              "type": "number"
            },
            "height": {
              "minimum": 1,
              "maximum": 14400,
              "description": "Width or height in PDF points",
              "type": "number"
            },
            "fill": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.rect.fill"
            },
            "stroke": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.rect.stroke"
            },
            "borderRadius": {
              "minimum": 0,
              "maximum": 14400,
              "description": "Corner radius in points applied to the rectangle",
              "type": "number"
            },
            "opacity": {
              "minimum": 0,
              "maximum": 1,
              "description": "Fill opacity from 0 (transparent) to 1 (opaque); the stroke paints at its own `stroke.opacity`",
              "type": "number"
            }
          }
        },
        {
          "additionalProperties": false,
          "title": "Badge, halo, or bullet",
          "description": "Absolute circle: badge, halo, or bullet marker with optional fill and stroke",
          "x-diagnostics": [],
          "type": "object",
          "required": [
            "kind",
            "cx",
            "cy",
            "radius"
          ],
          "properties": {
            "kind": {
              "const": "circle",
              "type": "string"
            },
            "cx": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "cy": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "radius": {
              "minimum": 0.1,
              "maximum": 14400,
              "description": "Circle radius in points",
              "type": "number"
            },
            "fill": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.rect.fill"
            },
            "stroke": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.rect.stroke"
            },
            "opacity": {
              "minimum": 0,
              "maximum": 1,
              "description": "Fill opacity from 0 (transparent) to 1 (opaque); the stroke paints at its own `stroke.opacity`",
              "type": "number"
            }
          }
        },
        {
          "additionalProperties": false,
          "title": "Straight line",
          "description": "Absolute straight line segment between two page points",
          "x-diagnostics": [],
          "type": "object",
          "required": [
            "kind",
            "x1",
            "y1",
            "x2",
            "y2"
          ],
          "properties": {
            "kind": {
              "const": "line",
              "type": "string"
            },
            "x1": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "y1": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "x2": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "y2": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "color": {
              "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
              "description": "Color as `#RGB` or `#RRGGBB`",
              "type": "string"
            },
            "width": {
              "minimum": 0.1,
              "maximum": 50,
              "description": "Line width in points",
              "type": "number"
            },
            "cap": {
              "description": "How line ends are drawn",
              "type": "string",
              "enum": [
                "butt",
                "round",
                "projecting"
              ]
            },
            "dash": {
              "$ref": "#/$defs/Render.Body.furniture.decorations.item.rule.style.dash"
            },
            "opacity": {
              "minimum": 0,
              "maximum": 1,
              "description": "Opacity from 0 (transparent) to 1 (opaque)",
              "type": "number"
            }
          }
        },
        {
          "additionalProperties": false,
          "title": "Vector path",
          "description": "Custom vector shape: named path of move/line/close commands with optional fill and stroke",
          "x-diagnostics": [],
          "type": "object",
          "required": [
            "kind",
            "name",
            "commands"
          ],
          "properties": {
            "kind": {
              "const": "generic",
              "type": "string"
            },
            "name": {
              "minLength": 1,
              "maxLength": 64,
              "pattern": "\\S",
              "description": "Caller-chosen construct name recorded on the vector op, with at least one non-whitespace character",
              "type": "string"
            },
            "commands": {
              "minItems": 1,
              "maxItems": 256,
              "description": "Ordered vector path commands forming one shape",
              "type": "array",
              "items": {
                "description": "One vector path command: move to, line to, or close path",
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "op",
                      "x",
                      "y"
                    ],
                    "properties": {
                      "op": {
                        "const": "move",
                        "type": "string"
                      },
                      "x": {
                        "minimum": -14400,
                        "maximum": 14400,
                        "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
                        "type": "number"
                      },
                      "y": {
                        "minimum": -14400,
                        "maximum": 14400,
                        "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
                        "type": "number"
                      }
                    }
                  },
                  {
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "op",
                      "x",
                      "y"
                    ],
                    "properties": {
                      "op": {
                        "const": "line",
                        "type": "string"
                      },
                      "x": {
                        "minimum": -14400,
                        "maximum": 14400,
                        "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
                        "type": "number"
                      },
                      "y": {
                        "minimum": -14400,
                        "maximum": 14400,
                        "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
                        "type": "number"
                      }
                    }
                  },
                  {
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "op"
                    ],
                    "properties": {
                      "op": {
                        "const": "close",
                        "type": "string"
                      }
                    }
                  }
                ]
              }
            },
            "fill": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.rect.fill.anyOf0"
            },
            "stroke": {
              "additionalProperties": false,
              "description": "Path outline: a color and width in points",
              "type": "object",
              "required": [
                "color",
                "width"
              ],
              "properties": {
                "color": {
                  "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
                  "description": "Color as `#RGB` or `#RRGGBB`",
                  "type": "string"
                },
                "width": {
                  "minimum": 0.1,
                  "maximum": 50,
                  "description": "Stroke width in points",
                  "type": "number"
                }
              }
            },
            "opacity": {
              "minimum": 0,
              "maximum": 1,
              "description": "Opacity of the whole path, fill and stroke, from 0 (transparent) to 1 (opaque)",
              "type": "number"
            }
          }
        },
        {
          "additionalProperties": false,
          "title": "Data chart of points and lines over numeric x values (xy), bars, lines, or marks over named categories (bar), or pie or donut (pie)",
          "description": "Data chart in its box, by `plot.kind` (its title names what each draws), with a legend when its entries carry labels, painted as vector marks and text tagged as one Figure whose alt text is `alt`, with an optional frame stroke on the plot rectangle painted as an artifact; inside a `clip` or `rotation` scope too. The plot is admitted as the flow chart's is. Chart text (category names, value scales, value labels, axis titles, legend entries, pie shares inside their slices) is set at 8 pt in the body face and takes room from the plot: a legend at most 40% of the box across its edge, the names or value scale beside the plot at most that share of the box width, and each axis title one line at its edge. A value scale paints whole or not at all, reported at `/plot/axisLabels` for a bar (its secondary scale at the `axis` of the first series on it) and at its domain for an xy plot. When the labels would leave the marks no room, the axis titles give theirs back first, then the other labels, so the data always paints. A label that does not fit its place on one line (wider than its category slot or bar, an axis title longer than its axis, past the rows its band holds, a stacked segment too small for its value, a value of a line vertex or mark that would meet a bar or a label painted before it, or a pie slice too thin, empty, or small for its share) is not painted, reported as `chart-label-omitted` at `warn` (impact `content`) at the chart pointer, naming each such label by its field pointer relative to the chart",
          "x-diagnostics": [
            "chart-label-omitted"
          ],
          "type": "object",
          "required": [
            "kind",
            "alt",
            "x",
            "y",
            "width",
            "height",
            "plot"
          ],
          "properties": {
            "kind": {
              "const": "chart",
              "type": "string"
            },
            "alt": {
              "minLength": 1,
              "maxLength": 1024,
              "pattern": "\\S",
              "description": "Required accessible description emitted as the Figure alt text; a chart is data, never decorative",
              "type": "string"
            },
            "x": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "y": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "width": {
              "minimum": 1,
              "maximum": 14400,
              "description": "Width or height in PDF points",
              "type": "number"
            },
            "height": {
              "minimum": 1,
              "maximum": 14400,
              "description": "Width or height in PDF points",
              "type": "number"
            },
            "plot": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.chart.plot"
            },
            "legend": {
              "description": "Edge of the chart box the legend is painted at, `bottom` when omitted. A chart paints a legend when its entries carry labels: every pie, and an `xy` or `bar` chart whose series have labels; set on a chart whose series have none, it is refused, since no legend paints",
              "type": "string",
              "enum": [
                "top",
                "right",
                "bottom"
              ]
            },
            "frame": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.rect.stroke"
            }
          }
        },
        {
          "additionalProperties": false,
          "title": "QR code",
          "description": "QR symbol: the payload is encoded as vector modules in a square whose edge includes the quiet zone. The painted square must stay whole (no clip, rotation, or page edge cuts it) and nothing painted after it on that page may overlap it with positive area — later ops, flow, furniture, and host overlays such as the free-plan mark painted in the bottom margin band of every page. Contact is not overlap, and a document whose paint after its QR symbols is too heavy to check is refused. A refused leaf fails the item with `qr_not_scannable`, whose detail names the leaf pointer and the reason",
          "x-diagnostics": [
            "qr_not_scannable"
          ],
          "type": "object",
          "required": [
            "kind",
            "payload",
            "x",
            "y",
            "size"
          ],
          "properties": {
            "kind": {
              "const": "qr",
              "type": "string"
            },
            "payload": {
              "minLength": 1,
              "maxLength": 3108,
              "description": "Text, or the base64 of bytes with `payloadEncoding` `base64`: at most 2331 bytes, the byte mode of a version 40 symbol (2330 for text with a character past ASCII, which is written behind ECI 26 so a reader reads it as UTF-8 text; ASCII text and bytes carry no ECI). Text is UTF-8 and needs a character that is not whitespace (an unpaired surrogate is rejected). A payload the symbol cannot carry, or malformed base64, is rejected at this field. Figure alt text is this string; there is no separate alt field",
              "type": "string"
            },
            "payloadEncoding": {
              "description": "How `payload` is read: `utf8` (the default) is the text itself, `base64` the bytes it names (RFC 4648 §4: A-Z, a-z, 0-9, +, / in groups of four, with = padding and no whitespace), for the symbologies that carry bytes. A symbology that carries only text rejects `base64` at this field. Figure alt text is `payload` as authored in either reading",
              "type": "string",
              "enum": [
                "utf8",
                "base64"
              ]
            },
            "x": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "y": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "size": {
              "minimum": 1,
              "maximum": 14400,
              "description": "Edge of the painted square in points, including the 4-module quiet zone. At least 27.84 pt for a version-1 payload and 177.6 pt for version 40, so each module is 0.96 pt (4 pixels at 300 dpi). A size below the edge the payload's version needs is rejected at this field, naming that edge",
              "type": "number"
            }
          }
        },
        {
          "additionalProperties": false,
          "title": "Barcode",
          "description": "Barcode: the payload is encoded as vector bars or modules on a white plate whose width includes the quiet zones, with the digits of an EAN-13 or UPC-A painted under its bars inside the plate. The painted plate must stay whole (no clip, rotation, or page edge cuts it) and nothing painted after it on that page may overlap it with positive area, its quiet zones included — later ops, flow, furniture, and host overlays such as the free-plan mark painted in the bottom margin band of every page. Contact is not overlap, and a document whose paint after its symbols is too heavy to check is refused. A refused leaf fails the item with `barcode_not_scannable`, whose detail names the leaf pointer and the reason",
          "x-diagnostics": [
            "barcode_not_scannable"
          ],
          "type": "object",
          "required": [
            "kind",
            "symbology",
            "payload",
            "x",
            "y",
            "width",
            "height"
          ],
          "properties": {
            "kind": {
              "const": "barcode",
              "type": "string"
            },
            "symbology": {
              "description": "Symbology the payload is encoded in, and what it carries. `code128` is Code 128 (ISO/IEC 15417): text of ISO/IEC 8859-1 characters (one past U+00FF is rejected at `payload`) or bytes, switching among code sets A, B, and C and writing characters from 128 up behind FNC4 for the narrowest symbol, with a 10-module quiet zone on each side. `ean13` is EAN-13 and `upca` is UPC-A (GS1 General Specifications): the payload is the digits, text only (`payloadEncoding` `base64` is rejected at its field), a check digit is computed when it is missing and verified when present, and the digits are painted under the bars. `datamatrix` is Data Matrix (ECC 200, ISO/IEC 16022): any text as UTF-8 or bytes, in whichever of ASCII, C40, Text, X12, EDIFACT, and Base 256 encodation takes the fewest codewords for each stretch, as a square symbol or one of its 6 rectangular ones, with a 1-module quiet zone. `pdf417` is PDF417 (ISO/IEC 15438): any text as UTF-8 or bytes, in whichever of text, numeric, and byte compaction is shortest, laid out across the fewest columns the width and height allow, with a 2-module quiet zone. Text past ASCII in `datamatrix` and `pdf417` is declared UTF-8 by ECI 26, so a reader reads text, not bytes",
              "type": "string",
              "enum": [
                "code128",
                "ean13",
                "upca",
                "datamatrix",
                "pdf417"
              ]
            },
            "payload": {
              "minLength": 1,
              "maxLength": 4156,
              "description": "Text, or the base64 of bytes with `payloadEncoding` `base64`. Text is UTF-8 and needs a character that is not whitespace (an unpaired surrogate is rejected); `code128` also rejects a character past U+00FF. `ean13` takes 12 digits (the check digit is computed) or 13 (it is verified), `upca` 11 or 12, and a non-digit or a wrong check digit is rejected at this field, naming the digit it must be. The most any leaf carries, for the densest content (digits, two to a symbol character or codeword), is 2716 bytes for `code128`, 3116 for `datamatrix`, 2525 for `pdf417`; other content carries fewer, and a payload its symbol cannot carry, or malformed base64, is rejected at this field, naming the codewords it takes. Figure alt text is what a scanner reads back as authored (the digits with their check digit for `ean13` and `upca`); there is no separate alt field",
              "type": "string"
            },
            "payloadEncoding": {
              "description": "How `payload` is read: `utf8` (the default) is the text itself, `base64` the bytes it names (RFC 4648 §4: A-Z, a-z, 0-9, +, / in groups of four, with = padding and no whitespace), for the symbologies that carry bytes. A symbology that carries only text rejects `base64` at this field. Figure alt text is `payload` as authored in either reading",
              "type": "string",
              "enum": [
                "utf8",
                "base64"
              ]
            },
            "x": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "y": {
              "minimum": -14400,
              "maximum": 14400,
              "description": "Position in PDF points from the top-left page origin; negative values paint off-page and clip to the page",
              "type": "number"
            },
            "width": {
              "minimum": 1,
              "maximum": 14400,
              "description": "Width of the painted symbol in points, quiet zones included, so each module is at least 0.96 pt (4 pixels at 300 dpi). `code128`: at least 63.36 pt for a one-character payload, plus up to 10.56 pt per further printable ASCII character (half that per digit in a run of digit pairs, more for a character that needs a code-set switch or FNC4). `ean13`: at least 112.32 pt. `upca`: at least 108.48 pt. `datamatrix`: at least 11.52 pt, more as the payload needs a larger symbol (a rectangular symbol is no narrower than the square one of its size). `pdf417`: at least 86.40 pt for a one-character payload, over the fewest columns that keep its rows 3 modules tall at the height given, each further column adding 16.32 pt. A width below the one the payload needs is rejected at this field, naming that width",
              "type": "number"
            },
            "height": {
              "minimum": 18,
              "maximum": 14400,
              "description": "Height of the painted plate in points, at least 18 pt. `code128` bars fill it. `ean13` and `upca` keep their bars at least 18 pt tall above the band of 10 modules their digits take at the bottom. `datamatrix`: the plate follows the symbol, whose modules are square: a height equal to the width paints a square symbol, and a height of the width times 1/2 (8×18 or 12×26 modules), 5/17 (8×32 modules), 7/19 (12×36 modules), 9/19 (16×36 modules), or 9/25 (16×48 modules) paints the rectangular symbol of that shape, the smallest that carries the payload; any other height is rejected at this field, naming the heights that carry the payload. `pdf417` stacks its rows to fill it, each at least 3 modules tall at the module the width gives. A height the symbology cannot paint is rejected at this field, naming the figure it must reach",
              "type": "number"
            }
          }
        }
      ]
    },
    "Compose.Body.sections.item.ops.item.anyOf0.chart.plot": {
      "description": "What the chart plots, by `kind`: points and lines over numeric x values (xy), bars, lines, or marks over named categories (bar), or pie or donut (pie)",
      "anyOf": [
        {
          "additionalProperties": false,
          "title": "Points and lines over numeric x values",
          "description": "Domain-mapped series: each sample is a mark (or a vertex of a `line` series, which may fill the area under it) at its `t` along `xDomain` and its `v` along `yDomain` (its end on the stack for a `stack` area). Each domain needs a finite `max - min` and `min < max`, every sample lies inside both domains, and a `line` series has at least 2 samples",
          "type": "object",
          "required": [
            "kind",
            "xDomain",
            "yDomain",
            "series"
          ],
          "properties": {
            "kind": {
              "const": "xy",
              "type": "string"
            },
            "xDomain": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.chart.plot.xy.xDomain"
            },
            "yDomain": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.chart.plot.xy.xDomain"
            },
            "series": {
              "minItems": 1,
              "maxItems": 8,
              "description": "Series rendered as vector marks inside the plot",
              "type": "array",
              "items": {
                "additionalProperties": false,
                "description": "One xy series: label, symbol, color (the chart palette, `chartPalette` else that of the theme, by series index when omitted), the area its line fills, and ordered samples",
                "type": "object",
                "required": [
                  "samples"
                ],
                "properties": {
                  "label": {
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$",
                    "description": "Legend entry naming the series. When one series of the chart has a label, every series needs one and the chart paints a legend; one line of up to 64 characters with visible text and no control character",
                    "type": "string"
                  },
                  "symbol": {
                    "description": "Mark symbol drawn per sample",
                    "type": "string",
                    "enum": [
                      "circle",
                      "square",
                      "diamond",
                      "line"
                    ]
                  },
                  "color": {
                    "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
                    "description": "Color as `#RGB` or `#RRGGBB`",
                    "type": "string"
                  },
                  "fill": {
                    "description": "Area under a `line` series, filled in its color at 50% opacity under its line, in the chart `Figure`: `zero` from each sample to the value 0 (to the edge of `yDomain` nearest 0 when 0 lies outside it); `stack` on top of the `stack` series before it, sample by sample as stacked bars stack, a value of 0 or more on the ones of 0 or more and a negative one under the negative ones, the first from 0, its line tracing where each value ends. Every `stack` series of a plot gives the same `t` in the same order, and each stacked end lies inside `yDomain`, or the plot is refused at that series' `samples`. Omitted fills none; set on a series whose `symbol` is not `line`, it is refused at this field",
                    "type": "string",
                    "enum": [
                      "zero",
                      "stack"
                    ]
                  },
                  "samples": {
                    "minItems": 1,
                    "maxItems": 256,
                    "description": "Ordered samples rendered as vector marks",
                    "type": "array",
                    "items": {
                      "additionalProperties": false,
                      "description": "One chart data sample as domain coordinates",
                      "type": "object",
                      "required": [
                        "t",
                        "v"
                      ],
                      "properties": {
                        "t": {
                          "description": "Sample position along the x domain",
                          "type": "number"
                        },
                        "v": {
                          "description": "Sample value along the y domain",
                          "type": "number"
                        }
                      }
                    }
                  }
                }
              }
            },
            "axisLabels": {
              "description": "Paints a value scale along both axes (round ticks inside each domain, labeled in its `valueFormat`, with gridlines); true when omitted. False paints neither, and the plot takes the whole box",
              "type": "boolean"
            }
          }
        },
        {
          "additionalProperties": false,
          "title": "Bars, lines, or marks over named categories",
          "description": "Bar chart: categories along one axis, one bar per `bar` series in each category, lengths proportional to the values from the zero baseline (always on the value axis), and each other series a line or marks through the category centres (a line chart of named categories when no series is `bar`). The stacked totals and the span of each value axis must be finite numbers, or the plot is refused at `series`",
          "type": "object",
          "required": [
            "kind",
            "categories",
            "series"
          ],
          "properties": {
            "kind": {
              "const": "bar",
              "type": "string"
            },
            "categories": {
              "minItems": 1,
              "maxItems": 256,
              "description": "Category names in axis order (left to right, or top to bottom for horizontal bars); each category is one slot of the category axis",
              "type": "array",
              "items": {
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$",
                "description": "Category name; one line of up to 64 characters with visible text and no control character",
                "type": "string"
              }
            },
            "series": {
              "minItems": 1,
              "maxItems": 8,
              "description": "Series of the plot, one value per category each, each drawn as its `symbol` says",
              "type": "array",
              "items": {
                "additionalProperties": false,
                "description": "One bar plot series: label, color (the chart palette, `chartPalette` else that of the theme, by series index when omitted), how it draws, the value axis it reads against, and one value per category",
                "type": "object",
                "required": [
                  "values"
                ],
                "properties": {
                  "label": {
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$",
                    "description": "Legend entry naming the series. When one series of the chart has a label, every series needs one and the chart paints a legend; one line of up to 64 characters with visible text and no control character",
                    "type": "string"
                  },
                  "color": {
                    "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
                    "description": "Color as `#RGB` or `#RRGGBB`",
                    "type": "string"
                  },
                  "symbol": {
                    "description": "How the series draws its values: `bar` (default) bars from the zero baseline; `line` a polyline through the centre of each category slot, one vertex per value, at least 2 categories; or a mark there. Every series that is not `bar` paints over the bars, never stacks (in a `stacked` plot it passes through its own value), and with `valueLabels` writes each value past its vertex or mark",
                    "type": "string",
                    "enum": [
                      "bar",
                      "line",
                      "circle",
                      "square",
                      "diamond"
                    ]
                  },
                  "axis": {
                    "description": "Value axis the series reads against: `value` (default), or `secondary`, a second value scale across the plot from the value axis (right of vertical bars, above horizontal ones) that spans the values of its series and 0, with its own round ticks and no gridlines, written in `secondaryValueFormat`. Only a series whose `symbol` is not `bar` reads against `secondary`, and at least one series stays on `value`; otherwise it is refused at this field",
                    "type": "string",
                    "enum": [
                      "value",
                      "secondary"
                    ]
                  },
                  "values": {
                    "minItems": 1,
                    "maxItems": 256,
                    "description": "One value per category, in category order; a bar runs from the zero baseline (or the end of the segment below it in a stack) by its value, negative values below or left of the baseline. A series with a different count of values than `categories` is refused at this field",
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  }
                }
              }
            },
            "layout": {
              "description": "How the `bar` series of one category share its slot: `grouped` (default) side by side in series order, or `stacked` end to end from the zero baseline in series order, positive values above (right of) it and negative ones below (left of) it. Set on a plot with no `bar` series, it is refused at this field",
              "type": "string",
              "enum": [
                "grouped",
                "stacked"
              ]
            },
            "orientation": {
              "description": "`vertical` (default) columns over a horizontal category axis, or `horizontal` bars beside a vertical one, which gives long category names room",
              "type": "string",
              "enum": [
                "vertical",
                "horizontal"
              ]
            },
            "maxBarThickness": {
              "minimum": 1,
              "maximum": 14400,
              "description": "Thickest a bar is across its category slot, in points (its width when vertical, its height when horizontal), 1 to 14400. Every bar is this thick when its slot has room for it and for `categoryGap`; in a slot that does not, the bars thin to keep the gap. The bars of a category stay centered in its slot. Omitted is 40, raised to the widest value label a vertical bar holds across its width (inside a stacked segment, or past one bar of several in a group), so few categories paint as bars instead of filling the plot. Set it above the slot to let the bars fill the slot up to the gap. Set on a plot with no `bar` series, it is refused at this field",
              "type": "number"
            },
            "categoryGap": {
              "minimum": 0,
              "maximum": 0.9,
              "description": "Least share of each category slot left empty between the bars of neighboring categories, half on each side, 0 to 0.9; 0.2 when omitted. 0 lets bars of neighboring categories touch. Bars at `maxBarThickness` leave a wider gap. Set on a plot with no `bar` series, it is refused at this field",
              "type": "number"
            },
            "axisLabels": {
              "description": "Paints the category names along the category axis and a value scale (round ticks with gridlines) along the value axis, and the secondary scale when a series reads against it; true when omitted. False paints none: each value axis then spans exactly its values and zero",
              "type": "boolean"
            },
            "valueLabels": {
              "description": "Paints each value as authored (or in `valueFormat`, `secondaryValueFormat` on the secondary axis): past its bar end when grouped, inside its segment when stacked, past its vertex or mark for a series that is not `bar`; false when omitted",
              "type": "boolean"
            },
            "categoryTitle": {
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$",
              "description": "Title of the category axis, centered along it: below vertical bars, or beside horizontal ones turned to read upward. Omitted paints none; one line of up to 64 characters with visible text and no control character",
              "type": "string"
            },
            "valueTitle": {
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$",
              "description": "Title of the value axis, centered along it: beside vertical bars turned to read upward, or below horizontal ones. Omitted paints none; one line of up to 64 characters with visible text and no control character",
              "type": "string"
            },
            "valueFormat": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.chart.plot.xy.xDomain.valueFormat"
            },
            "secondaryTitle": {
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$",
              "description": "Title of the secondary value axis, centered along it: beside vertical bars at the right turned to read downward, or above horizontal ones. Omitted paints none; set with no series on `secondary`, it is refused at this field; one line of up to 64 characters with visible text and no control character",
              "type": "string"
            },
            "secondaryValueFormat": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.chart.plot.xy.xDomain.valueFormat"
            }
          }
        },
        {
          "additionalProperties": false,
          "title": "Pie or donut",
          "description": "Pie chart: each slice an angle proportional to its value, with a legend naming every slice and its percentage of the total (and its value, in `valueFormat`), and optionally each share inside its slice",
          "type": "object",
          "required": [
            "kind",
            "slices"
          ],
          "properties": {
            "kind": {
              "const": "pie",
              "type": "string"
            },
            "slices": {
              "minItems": 1,
              "maxItems": 256,
              "description": "Slices clockwise from twelve o'clock, each an angle of the full turn proportional to its value; the total and every share are computed from the values. Values summing to 0, or to a sum that is not a finite number, are refused at this field",
              "type": "array",
              "items": {
                "additionalProperties": false,
                "description": "One pie slice: label, non-negative value, and fill (the chart palette, `chartPalette` else that of the theme, by slice index when omitted)",
                "type": "object",
                "required": [
                  "label",
                  "value"
                ],
                "properties": {
                  "label": {
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$",
                    "description": "Slice name, painted in the legend followed by its value (when the plot has a `valueFormat`) and its share of the total; one line of up to 64 characters with visible text and no control character",
                    "type": "string"
                  },
                  "value": {
                    "minimum": 0,
                    "description": "Slice value, at least 0; its share of the slices sum sets its angle and the percentage its legend entry prints",
                    "type": "number"
                  },
                  "color": {
                    "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
                    "description": "Color as `#RGB` or `#RRGGBB`",
                    "type": "string"
                  }
                }
              }
            },
            "hole": {
              "minimum": 0,
              "maximum": 0.9,
              "description": "Radius of a center hole as a fraction of the pie radius, 0 to 0.9: omitted or 0 paints a pie, above 0 a donut",
              "type": "number"
            },
            "shareLabels": {
              "description": "Paints each slice's share of the whole (`25%`) inside its slice, centered on the slice and in the text color that contrasts with its fill, when the whole line fits; a share that does not (a thin or empty slice) is not painted and is reported as `chart-label-omitted` at `/plot/slices/{i}/value`. False when omitted: the shares are named in the legend only",
              "type": "boolean"
            },
            "valueFormat": {
              "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.chart.plot.xy.xDomain.valueFormat"
            }
          }
        }
      ]
    },
    "Compose.Body.sections.item.ops.item.anyOf0.chart.plot.xy.xDomain": {
      "additionalProperties": false,
      "description": "Data domain mapped exactly onto one chart axis, end to end; with `axisLabels`, its value scale labels the round multiples of a step inside it in `valueFormat`",
      "type": "object",
      "required": [
        "min",
        "max"
      ],
      "properties": {
        "min": {
          "description": "Domain minimum data value, at the left (x) or bottom (y) end of the axis",
          "type": "number"
        },
        "max": {
          "description": "Domain maximum data value, at the right (x) or top (y) end of the axis",
          "type": "number"
        },
        "title": {
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[^\\u0000-\\u001f\\u007f]*[^\\s\\u0000-\\u001f\\u007f][^\\u0000-\\u001f\\u007f]*$",
          "description": "Axis title, centered along the axis: below the x scale, or beside the y scale turned to read upward. Omitted paints none; one line of up to 64 characters with visible text and no control character",
          "type": "string"
        },
        "valueFormat": {
          "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.chart.plot.xy.xDomain.valueFormat"
        }
      }
    },
    "Compose.Body.sections.item.ops.item.anyOf0.chart.plot.xy.xDomain.valueFormat": {
      "additionalProperties": false,
      "title": "Chart value format",
      "description": "How a chart writes the numbers it prints from a value: the value labels and the value scale of a `bar` plot (its `secondaryValueFormat`: the secondary scale and the value labels of the series on it), the value scale of an `xy` domain, and the legend entries of a `pie`, which then name each slice's value before its share (`Direct $1,234.50 25%`). Authored once, it reads the same in every place the chart prints a value. A number is at most 53 characters; one past 1e21 (or under 1e-6 without `decimals`) is written in exponent form, ungrouped, with its affixes. A format that changes nothing (no field) or names no number the chart prints (a `bar` with neither `valueLabels` nor `axisLabels`, a `secondaryValueFormat` with no series on `secondary`, an `xy` domain whose plot sets `axisLabels` false), or whose group separator is its decimal separator, is refused at this field",
      "type": "object",
      "properties": {
        "decimals": {
          "minimum": 0,
          "maximum": 8,
          "description": "Fraction digits every number is rounded to and written with, 0 to 8. Omitted writes each value as authored (its shortest round-trip form). A value scale takes no step finer than these digits write (0 ticks whole numbers only: years, quarters, counts) and never prints fewer digits than its step needs, so its ticks stay exact",
          "type": "integer"
        },
        "thousands": {
          "description": "Separator written between groups of three integer digits: `,` `.` a space or `'`. Omitted writes no separator. It must differ from the decimal separator",
          "type": "string",
          "enum": [
            ",",
            ".",
            " ",
            "'"
          ]
        },
        "decimal": {
          "description": "Separator written before the fraction digits, `.` when omitted",
          "type": "string",
          "enum": [
            ".",
            ","
          ]
        },
        "prefix": {
          "minLength": 1,
          "maxLength": 8,
          "pattern": "^[^\\u0000-\\u001f\\u007f]+$",
          "description": "Text written before the number and after its sign, such as a currency symbol: `-$1,234.50`; up to 8 characters, no control character",
          "type": "string"
        },
        "suffix": {
          "minLength": 1,
          "maxLength": 8,
          "pattern": "^[^\\u0000-\\u001f\\u007f]+$",
          "description": "Text written after the number, such as `%` or a unit; up to 8 characters, no control character",
          "type": "string"
        }
      }
    },
    "Compose.Body.sections.item.ops.item.anyOf0.rect.fill": {
      "description": "Shape fill: solid color or linear gradient",
      "anyOf": [
        {
          "$ref": "#/$defs/Compose.Body.sections.item.ops.item.anyOf0.rect.fill.anyOf0"
        },
        {
          "additionalProperties": false,
          "description": "Linear gradient fill along an angle",
          "type": "object",
          "required": [
            "angle",
            "stops"
          ],
          "properties": {
            "angle": {
              "description": "Gradient angle in degrees, CSS convention: 0 points up, 90 points right",
              "type": "number"
            },
            "stops": {
              "minItems": 2,
              "description": "Color stops along the axis, at least 2, in order as CSS lays them out: an offset below an earlier stop moves up to it, and stops at one offset make a hard stop",
              "type": "array",
              "items": {
                "additionalProperties": false,
                "description": "One color stop along the gradient axis",
                "type": "object",
                "required": [
                  "offset",
                  "color"
                ],
                "properties": {
                  "offset": {
                    "minimum": 0,
                    "maximum": 1,
                    "description": "Position along the gradient axis from 0 to 1",
                    "type": "number"
                  },
                  "color": {
                    "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
                    "description": "Color as `#RGB` or `#RRGGBB`",
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      ]
    },
    "Compose.Body.sections.item.ops.item.anyOf0.rect.fill.anyOf0": {
      "additionalProperties": false,
      "description": "Solid shape fill color; the op's `opacity` sets how opaque it paints",
      "type": "object",
      "required": [
        "color"
      ],
      "properties": {
        "color": {
          "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
          "description": "Color as `#RGB` or `#RRGGBB`",
          "type": "string"
        }
      }
    },
    "Compose.Body.sections.item.ops.item.anyOf0.rect.stroke": {
      "additionalProperties": false,
      "description": "Vector stroke: color, width, and optional dash pattern",
      "type": "object",
      "required": [
        "color",
        "width"
      ],
      "properties": {
        "color": {
          "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
          "description": "Color as `#RGB` or `#RRGGBB`",
          "type": "string"
        },
        "width": {
          "minimum": 0.1,
          "maximum": 50,
          "description": "Stroke width in points",
          "type": "number"
        },
        "opacity": {
          "minimum": 0,
          "maximum": 1,
          "description": "Opacity from 0 (transparent) to 1 (opaque)",
          "type": "number"
        },
        "dash": {
          "$ref": "#/$defs/Render.Body.furniture.decorations.item.rule.style.dash"
        }
      }
    },
    "Compose.Body.sections.item.ops.item.anyOf0.textRow.left": {
      "additionalProperties": false,
      "description": "One side of a text row: plain-text content with slot-level style (use a text op for styled spans)",
      "type": "object",
      "required": [
        "content"
      ],
      "properties": {
        "content": {
          "minLength": 0,
          "maxLength": 8192,
          "description": "Text content for a composed text run; empty strings paint nothing",
          "type": "string"
        },
        "color": {
          "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
          "description": "Color as `#RGB` or `#RRGGBB`",
          "type": "string"
        },
        "size": {
          "minimum": 1,
          "maximum": 999,
          "description": "Font size in points",
          "type": "number"
        }
      }
    },
    "Render.Body.furniture.decorations.item.rule.style.dash": {
      "description": "Dash pattern as `[dash, gap]` lengths in points",
      "type": "array",
      "items": {
        "minimum": 0,
        "maximum": 1000,
        "type": "number"
      },
      "minItems": 2,
      "maxItems": 2
    }
  }
}