{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:pinban:agent:apply:v1",
  "title": "Tenloom Agent API v1 apply/validate request",
  "description": "Static request shape. Runtime validation additionally enforces editor state, revisions, locks, CSS allowlists, ranges, tree integrity and binding integrity.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "documentId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,40}$"
    },
    "expectedRevision": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,119}$"
    },
    "label": {
      "type": "string",
      "maxLength": 160
    },
    "operations": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "items": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "const": "create"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,40}$"
              },
              "nodeType": {
                "enum": [
                  "frame",
                  "heading",
                  "text",
                  "button",
                  "image",
                  "video",
                  "badge",
                  "input",
                  "divider",
                  "widget"
                ]
              },
              "widgetType": {
                "type": "string",
                "maxLength": 40
              },
              "parentId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,40}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2000
              },
              "props": {
                "$ref": "#/$defs/props"
              },
              "style": {
                "$ref": "#/$defs/style"
              },
              "responsive": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "tablet": {
                    "$ref": "#/$defs/style"
                  },
                  "mobile": {
                    "$ref": "#/$defs/style"
                  }
                },
                "required": []
              }
            },
            "required": [
              "type",
              "id",
              "nodeType"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "const": "setStyle"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,40}$"
              },
              "style": {
                "$ref": "#/$defs/style"
              },
              "breakpoint": {
                "enum": [
                  "desktop",
                  "tablet",
                  "mobile"
                ]
              }
            },
            "required": [
              "type",
              "id",
              "style"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "const": "setLayout"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,40}$"
              },
              "layout": {
                "$ref": "#/$defs/layout"
              },
              "breakpoint": {
                "enum": [
                  "desktop",
                  "tablet",
                  "mobile"
                ]
              }
            },
            "required": [
              "type",
              "id",
              "layout"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "const": "setNode"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,40}$"
              },
              "props": {
                "$ref": "#/$defs/props"
              }
            },
            "required": [
              "type",
              "id",
              "props"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "const": "move"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,40}$"
              },
              "dx": {
                "type": "number",
                "minimum": -4000,
                "maximum": 4000
              },
              "dy": {
                "type": "number",
                "minimum": -4000,
                "maximum": 4000
              },
              "breakpoint": {
                "enum": [
                  "desktop",
                  "tablet",
                  "mobile"
                ]
              }
            },
            "required": [
              "type",
              "id",
              "dx",
              "dy"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "const": "reparent"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,40}$"
              },
              "parentId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,40}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2000
              }
            },
            "required": [
              "type",
              "id",
              "parentId"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "const": "duplicate"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,40}$"
              },
              "newId": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,40}$"
              },
              "parentId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,40}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2000
              }
            },
            "required": [
              "type",
              "id",
              "newId"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "const": "delete"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,40}$"
              }
            },
            "required": [
              "type",
              "id"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "const": "setData"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,40}$"
              },
              "binding": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "fields": {
                    "type": "array",
                    "maxItems": 50,
                    "items": {
                      "type": "string",
                      "maxLength": 300
                    }
                  },
                  "xField": {
                    "type": "string",
                    "maxLength": 300
                  },
                  "agg": {
                    "type": "string",
                    "maxLength": 20
                  },
                  "dataPath": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 300
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 300
                  }
                },
                "required": []
              }
            },
            "required": [
              "type",
              "id",
              "binding"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "const": "setPage"
              },
              "props": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "title": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "width": {
                    "type": "integer",
                    "minimum": 320,
                    "maximum": 2560
                  },
                  "background": {
                    "type": "string",
                    "maxLength": 4000
                  },
                  "height": {
                    "oneOf": [
                      {
                        "type": "integer",
                        "minimum": 320,
                        "maximum": 20000
                      },
                      {
                        "const": "auto"
                      }
                    ],
                    "description": "Page minimum height in CSS pixels; auto uses the default minimum. The page grows if content is taller."
                  },
                  "smooth": {
                    "type": "boolean",
                    "description": "Mouse-wheel scrolling glides smoothly on the preview and published page."
                  }
                },
                "required": []
              }
            },
            "required": [
              "type",
              "props"
            ]
          }
        ]
      }
    },
    "allowDelete": {
      "type": "boolean"
    },
    "selectionAfter": {
      "type": "array",
      "maxItems": 500,
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_-]{1,40}$"
      }
    }
  },
  "required": [
    "documentId",
    "expectedRevision",
    "requestId",
    "operations"
  ],
  "$defs": {
    "style": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "width": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4000
                },
                {
                  "type": "string",
                  "maxLength": 100
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "height": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4000
                },
                {
                  "type": "string",
                  "maxLength": 100
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "minWidth": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4000
                },
                {
                  "type": "string",
                  "maxLength": 100
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "maxWidth": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4000
                },
                {
                  "type": "string",
                  "maxLength": 100
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "minHeight": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4000
                },
                {
                  "type": "string",
                  "maxLength": 100
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "maxHeight": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4000
                },
                {
                  "type": "string",
                  "maxLength": 100
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "borderRadius": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "borderTopLeftRadius": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "borderTopRightRadius": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "borderBottomRightRadius": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "borderBottomLeftRadius": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "paddingTop": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "paddingRight": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "paddingBottom": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "paddingLeft": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "gap": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 200
            },
            {
              "type": "null"
            }
          ]
        },
        "flexGrow": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 12
            },
            {
              "type": "null"
            }
          ]
        },
        "flexShrink": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 12
            },
            {
              "type": "null"
            }
          ]
        },
        "zIndex": {
          "anyOf": [
            {
              "type": "number",
              "minimum": -10,
              "maximum": 100
            },
            {
              "type": "null"
            }
          ]
        },
        "borderWidth": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 30
            },
            {
              "type": "null"
            }
          ]
        },
        "opacity": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "blur": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 60
            },
            {
              "type": "null"
            }
          ]
        },
        "backdropBlur": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 60
            },
            {
              "type": "null"
            }
          ]
        },
        "rotation": {
          "anyOf": [
            {
              "type": "number",
              "minimum": -360,
              "maximum": 360
            },
            {
              "type": "null"
            }
          ]
        },
        "fontSize": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 8,
              "maximum": 140
            },
            {
              "type": "null"
            }
          ]
        },
        "letterSpacing": {
          "anyOf": [
            {
              "type": "number",
              "minimum": -5,
              "maximum": 30
            },
            {
              "type": "null"
            }
          ]
        },
        "marginTop": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": -200,
                  "maximum": 400
                },
                {
                  "const": "auto"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "marginRight": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": -200,
                  "maximum": 400
                },
                {
                  "const": "auto"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "marginBottom": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": -200,
                  "maximum": 400
                },
                {
                  "const": "auto"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "marginLeft": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": -200,
                  "maximum": 400
                },
                {
                  "const": "auto"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "left": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": -2000,
                  "maximum": 4000
                },
                {
                  "const": "auto"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "top": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": -2000,
                  "maximum": 4000
                },
                {
                  "const": "auto"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "right": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": -2000,
                  "maximum": 4000
                },
                {
                  "const": "auto"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "bottom": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": -2000,
                  "maximum": 4000
                },
                {
                  "const": "auto"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "lineHeight": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0.8,
                  "maximum": 3.5
                },
                {
                  "const": "normal"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "display": {
          "anyOf": [
            {
              "enum": [
                "flex",
                "grid",
                "block",
                "inline-flex",
                "inline-block",
                "none"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "flexDirection": {
          "anyOf": [
            {
              "enum": [
                "row",
                "column",
                "row-reverse",
                "column-reverse"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "flexWrap": {
          "anyOf": [
            {
              "enum": [
                "nowrap",
                "wrap",
                "wrap-reverse"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "position": {
          "anyOf": [
            {
              "enum": [
                "static",
                "relative",
                "absolute"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "overflow": {
          "anyOf": [
            {
              "enum": [
                "visible",
                "hidden",
                "clip",
                "auto"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "objectFit": {
          "anyOf": [
            {
              "enum": [
                "cover",
                "contain",
                "fill",
                "none",
                "scale-down"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "aspectRatio": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 24,
              "pattern": "^(?:auto|\\d{1,4}(?:\\.\\d{1,3})?\\s*/\\s*\\d{1,4}(?:\\.\\d{1,3})?)$"
            },
            {
              "type": "null"
            }
          ]
        },
        "objectPosition": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 40,
              "pattern": "^(?:left|center|right|top|bottom|\\d{1,3}%)(?:\\s+(?:left|center|right|top|bottom|\\d{1,3}%))?$"
            },
            {
              "type": "null"
            }
          ]
        },
        "borderStyle": {
          "anyOf": [
            {
              "enum": [
                "none",
                "solid",
                "dashed",
                "dotted",
                "double"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "fontFamily": {
          "anyOf": [
            {
              "enum": [
                "sans",
                "display",
                "serif",
                "mono",
                "system"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "textAlign": {
          "anyOf": [
            {
              "enum": [
                "left",
                "center",
                "right",
                "justify"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "textDecoration": {
          "anyOf": [
            {
              "enum": [
                "none",
                "underline",
                "line-through"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "textTransform": {
          "anyOf": [
            {
              "enum": [
                "none",
                "uppercase",
                "lowercase",
                "capitalize"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "alignItems": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "justifyContent": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "gridTemplateColumns": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "gridAutoRows": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "gridColumn": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "gridRow": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "backgroundColor": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "backgroundImage": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "color": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "borderColor": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "boxShadow": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "fontWeight": {
          "anyOf": [
            {
              "enum": [
                "300",
                "400",
                "500",
                "600",
                "700",
                "800",
                "900",
                300,
                400,
                500,
                600,
                700,
                800,
                900
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": []
    },
    "layout": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "width": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4000
                },
                {
                  "type": "string",
                  "maxLength": 100
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "height": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4000
                },
                {
                  "type": "string",
                  "maxLength": 100
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "minWidth": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4000
                },
                {
                  "type": "string",
                  "maxLength": 100
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "maxWidth": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4000
                },
                {
                  "type": "string",
                  "maxLength": 100
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "minHeight": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4000
                },
                {
                  "type": "string",
                  "maxLength": 100
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "maxHeight": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4000
                },
                {
                  "type": "string",
                  "maxLength": 100
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "display": {
          "anyOf": [
            {
              "enum": [
                "flex",
                "grid",
                "block",
                "inline-flex",
                "inline-block",
                "none"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "flexDirection": {
          "anyOf": [
            {
              "enum": [
                "row",
                "column",
                "row-reverse",
                "column-reverse"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "flexWrap": {
          "anyOf": [
            {
              "enum": [
                "nowrap",
                "wrap",
                "wrap-reverse"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "alignItems": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "justifyContent": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "gap": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 200
            },
            {
              "type": "null"
            }
          ]
        },
        "gridTemplateColumns": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "gridAutoRows": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ]
        },
        "paddingTop": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "paddingRight": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "paddingBottom": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "paddingLeft": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 300
            },
            {
              "type": "null"
            }
          ]
        },
        "overflow": {
          "anyOf": [
            {
              "enum": [
                "visible",
                "hidden",
                "clip",
                "auto"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": []
    },
    "props": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 120
        },
        "text": {
          "type": "string",
          "maxLength": 50000
        },
        "href": {
          "type": "string",
          "maxLength": 2000
        },
        "src": {
          "type": "string",
          "maxLength": 450000
        },
        "alt": {
          "type": "string",
          "maxLength": 200
        },
        "placeholder": {
          "type": "string",
          "maxLength": 200
        },
        "inputType": {
          "enum": [
            "text",
            "email",
            "number",
            "tel",
            "password"
          ]
        },
        "hidden": {
          "type": "boolean"
        },
        "poster": {
          "type": "string",
          "maxLength": 450000,
          "description": "Cover image of a video (https URL or base64 PNG/JPEG/WebP/GIF data URI)."
        },
        "controls": {
          "type": "boolean",
          "description": "Video shows its own player controls; otherwise it loops silently while on screen."
        },
        "motion": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "enter": {
                  "enum": [
                    "fade",
                    "fade-up",
                    "fade-down",
                    "fade-left",
                    "fade-right",
                    "zoom-in",
                    "zoom-out",
                    "blur-in",
                    "words"
                  ]
                },
                "delay": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 5000
                },
                "duration": {
                  "type": "number",
                  "minimum": 150,
                  "maximum": 4000
                },
                "stagger": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1500,
                  "description": "On a frame: its children enter one after another, this many ms apart, using enter."
                },
                "hover": {
                  "enum": [
                    "lift",
                    "grow",
                    "glow",
                    "dim"
                  ]
                },
                "countUp": {
                  "const": true
                },
                "parallax": {
                  "type": "number",
                  "minimum": -50,
                  "maximum": 50,
                  "description": "Drift against the scroll: positive is slower (background), negative faster (foreground)."
                }
              }
            }
          ],
          "description": "Entrance when scrolled into view, pointer effect and counting numbers; null removes it."
        },
        "effect": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "enum": [
                    "ring",
                    "carousel",
                    "marquee",
                    "steps",
                    "stack",
                    "hscroll",
                    "slider"
                  ]
                },
                "speed": {
                  "type": "number",
                  "minimum": 4,
                  "maximum": 300,
                  "description": "Seconds per turn (ring, carousel) or per pass (marquee)."
                },
                "reverse": {
                  "type": "boolean"
                },
                "pause": {
                  "type": "boolean",
                  "description": "Pause under the pointer (default true)."
                },
                "offset": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 400,
                  "description": "steps and stack: how far below the top of the screen the sticky part stops (default 96)."
                },
                "show": {
                  "type": "number",
                  "minimum": 1,
                  "maximum": 6,
                  "description": "slider: cards across the content width (default 3; at most 2 on tablets, about 1 on phones)."
                },
                "arrows": {
                  "type": "boolean",
                  "description": "slider: previous / next arrows on wider screens (default true)."
                },
                "bleed": {
                  "type": "boolean",
                  "description": "slider: the row runs on to the page's right edge so the next card peeks in (default true)."
                }
              }
            }
          ],
          "description": "On a frame: ring (3D wall seen from inside), carousel (3D merry-go-round) or marquee (endless strip) move on their own; steps (first child stays in view, the second child's children are steps that switch the first child's pictures), stack (children pile up like cards) and hscroll (children slide sideways as the page scrolls down) follow the scroll; null removes it. slider: a row of cards visitors swipe, drag or step through with arrows; show cards fill the content width and the next one peeks in at the page edge."
        }
      },
      "required": []
    }
  }
}
