{
  "$defs": {
    "action": {
      "properties": {
        "assessment": {
          "description": "Assessment id, for submit-results",
          "type": "string"
        },
        "at": {
          "description": "Seconds, for seek-media",
          "type": "number"
        },
        "code": {
          "description": "JavaScript, for execute-js (non-portable)",
          "type": "string"
        },
        "operation": {
          "enum": [
            "set",
            "add",
            "toggle"
          ]
        },
        "page": {
          "description": "Page id, for jump/lightbox",
          "type": "string"
        },
        "section": {
          "description": "Section id, for jump",
          "type": "string"
        },
        "state": {
          "description": "For change-state",
          "type": "string"
        },
        "target": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "object"
            }
          ],
          "description": "Target id or structured target, e.g. {\"page\": \"pg-2\"}"
        },
        "transition": {
          "type": "string"
        },
        "type": {
          "enum": [
            "show",
            "hide",
            "toggle",
            "jump",
            "lightbox",
            "close-lightbox",
            "open-popup",
            "close-popup",
            "set-variable",
            "play-media",
            "pause-media",
            "seek-media",
            "toggle-captions",
            "change-state",
            "open-url",
            "submit-results",
            "send-xapi",
            "restart-timeline",
            "exit-course",
            "execute-js"
          ]
        },
        "url": {
          "type": "string"
        },
        "urlTarget": {
          "enum": [
            "_blank",
            "_self"
          ]
        },
        "value": {},
        "variable": {
          "type": "string"
        },
        "verb": {
          "description": "xAPI verb IRI, for send-xapi",
          "type": "string"
        },
        "xapiBuilder": {
          "description": "No-code xAPI statement builder (rev 22), for send-xapi",
          "type": "object",
          "properties": {
            "verb": {
              "description": "xAPI verb IRI (validated as an absolute IRI)",
              "type": "string"
            },
            "verbDisplay": {
              "description": "Human-readable verb label, e.g. \"completed\"",
              "type": "string"
            },
            "objectKind": {
              "description": "What the statement is about",
              "enum": [
                "course",
                "current-page",
                "page",
                "question",
                "object",
                "custom"
              ]
            },
            "objectRef": {
              "description": "Page/object id when objectKind is page, question, or object",
              "type": "string"
            },
            "objectName": {
              "description": "Display name for the activity (en-US)",
              "type": "string"
            },
            "objectId": {
              "description": "Full activity IRI when objectKind is custom",
              "type": "string"
            },
            "success": {
              "description": "How result.success is set: none, from-answer (last submitted question), correct, incorrect",
              "enum": [
                "none",
                "from-answer",
                "correct",
                "incorrect"
              ]
            },
            "score": {
              "description": "Fixed score to report on the statement result",
              "type": "object",
              "properties": {
                "raw": {
                  "type": "number"
                },
                "max": {
                  "type": "number"
                }
              }
            },
            "includeResponse": {
              "description": "Include the learner's last response string on result.response",
              "type": "boolean"
            },
            "extensions": {
              "description": "Extra result extensions: IRI -> string value",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  }
                },
                "required": [
                  "key",
                  "value"
                ]
              }
            }
          }
        },
        "xapiObject": {
          "description": "xAPI object, for send-xapi",
          "type": "object"
        },
        "xapiResult": {
          "description": "xAPI result, for send-xapi",
          "type": "object"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "assessment": {
      "properties": {
        "attempts": {
          "type": "integer"
        },
        "banks": {
          "items": {
            "properties": {
              "draw": {
                "minimum": 1,
                "type": "integer"
              },
              "id": {
                "type": "string"
              },
              "randomize": {
                "default": true,
                "type": "boolean"
              },
              "topic": {
                "type": "string"
              }
            },
            "required": [
              "id"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "extensions": {
          "$ref": "#/$defs/extensions"
        },
        "id": {
          "type": "string"
        },
        "pages": {
          "description": "Question page ids",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "passScore": {
          "description": "Percent required to pass",
          "type": "number"
        },
        "results": {
          "properties": {
            "failurePage": {
              "type": "string"
            },
            "remediation": {
              "properties": {
                "page": {
                  "type": "string"
                },
                "when": {
                  "description": "Condition expression, e.g. 'score < 50'",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "successPage": {
              "type": "string"
            },
            "pathRules": {
              "description": "R9 (rev 26): adaptive path rules, evaluated in order; first match routes the learner",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "when": {
                    "description": "Score condition, e.g. 'score < 50'",
                    "type": "string"
                  },
                  "page": {
                    "description": "Page id to route to",
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "when",
                  "page"
                ]
              }
            },
            "isDiagnostic": {
              "description": "R9 (rev 26): marks this assessment as a diagnostic pre-test",
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "shuffleQuestions": {
          "type": "boolean"
        },
        "timeLimit": {
          "description": "Seconds",
          "type": "number"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "title"
      ],
      "type": "object"
    },
    "color": {
      "pattern": "^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$",
      "type": "string"
    },
    "condition": {
      "oneOf": [
        {
          "properties": {
            "op": {
              "enum": [
                "==",
                "!=",
                ">",
                ">=",
                "<",
                "<=",
                "contains",
                "is-empty"
              ]
            },
            "value": {},
            "variable": {
              "type": "string"
            }
          },
          "required": [
            "variable",
            "op"
          ],
          "if": {
            "properties": {
              "op": {
                "const": "is-empty"
              }
            }
          },
          "then": true,
          "else": {
            "required": [
              "value"
            ]
          }
        },
        {
          "properties": {
            "object": {
              "type": "string"
            },
            "state": {
              "type": "string"
            }
          },
          "required": [
            "object",
            "state"
          ]
        }
      ],
      "type": "object"
    },
    "courseObject": {
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "question"
              }
            }
          },
          "then": {
            "required": [
              "interactionType",
              "prompt"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "text"
              }
            }
          },
          "then": {
            "required": [
              "content"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "group"
              }
            }
          },
          "then": {
            "required": [
              "objects"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "popup"
              }
            }
          },
          "then": {
            "required": [
              "objects"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "simulation"
              }
            }
          },
          "then": {
            "required": [
              "simulation"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "process"
              }
            }
          },
          "then": {
            "required": [
              "process"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "slider"
              }
            }
          },
          "then": {
            "required": [
              "slider"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "dial"
              }
            }
          },
          "then": {
            "required": [
              "dial"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "custom-block"
              }
            }
          },
          "then": {
            "required": [
              "customBlock"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "roleplay"
              }
            }
          },
          "then": {
            "required": [
              "title",
              "scenario"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "scene-3d"
              }
            }
          },
          "then": {
            "required": [
              "scene"
            ]
          }
        }
      ],
      "properties": {
        "styleVariant": {
          "description": "Component skin variant id (SPEC rev 95): meaningful on accordion, process, tabs, flipcards, collage, question, and group objects; resolved by the reader against the theme componentSkins. Absent = the default skin.",
          "type": "string"
        },
        "blockSurface": {
          "description": "Per-block surface override (SPEC section 14, rev 96): flat removes the block default surface on a carded system; carded gives the block a surface on a flat system. Absent = the theme/system default. An explicit background spec always paints regardless.",
          "enum": [
            "flat",
            "carded"
          ]
        },
        "bandSurface": {
          "description": "Group band surface treatment (SPEC rev 95), for group objects rendering as bands. Absent = the reader default. Rev 100 adds glassImmersive: the immersive hero treatment, the theme ambient mesh animating very slowly behind the glass pane, stored on the band so the page's chosen moment survives export; readers that cannot animate paint it as static glass.",
          "enum": [
            "canvas",
            "surfaceAlt",
            "inverted",
            "accentTint",
            "glassPane",
            "mediaBackdrop",
            "glassImmersive"
          ]
        },
        "bandWidth": {
          "description": "Group band width treatment (SPEC rev 95). Absent = standard.",
          "enum": [
            "full-bleed",
            "standard",
            "inset-rounded"
          ]
        },
        "bandHeight": {
          "description": "Group band height treatment (SPEC rev 95). Absent = auto.",
          "enum": [
            "auto",
            "tall",
            "fullscreen"
          ]
        },
        "bandPaddingY": {
          "description": "Group band vertical padding treatment (SPEC rev 95). Absent = standard.",
          "enum": [
            "none",
            "compact",
            "standard",
            "spacious"
          ]
        },
        "bandDividerBottom": {
          "description": "Group band bottom divider treatment (SPEC rev 95). Absent = none.",
          "enum": [
            "none",
            "hairline",
            "faded-hairline",
            "accent-line"
          ]
        },
        "dividerGrid": {
          "description": "Hairline divider grid over a group band (SPEC rev 95). Absent = none.",
          "enum": [
            "none",
            "hairline-2col",
            "hairline-3col",
            "hairline-4col"
          ]
        },
        "stickyLayout": {
          "description": "Sticky column layout for a group (SPEC rev 95): the named column stays sticky while the rest scrolls. Absent = none.",
          "enum": [
            "none",
            "left-4-sticky",
            "left-5-sticky",
            "right-4-sticky"
          ]
        },
        "layoutVariant": {
          "description": "Group layout variant (SPEC rev 95). Absent = default.",
          "enum": [
            "default",
            "bento"
          ]
        },
        "bentoPreset": {
          "description": "Bento grid preset for a group with layoutVariant bento (SPEC rev 95). Absent = the reader default arrangement.",
          "enum": [
            "2-wide-1-tall",
            "hero-left-4-right",
            "stat-row-4"
          ]
        },
        "backdropMedia": {
          "additionalProperties": false,
          "description": "Backdrop media behind a group band (SPEC rev 95). Absent = no backdrop media.",
          "properties": {
            "resourceId": {
              "type": "string"
            },
            "opacity": {
              "type": "number"
            },
            "scrim": {
              "enum": [
                "none",
                "top-to-bottom-dark",
                "bottom-left-radial",
                "dark-full",
                "light-frost"
              ]
            },
            "blurPx": {
              "type": "number"
            },
            "parallax": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "staggerChildrenMs": {
          "description": "Entrance stagger step in ms applied to a group children (SPEC rev 95). Absent = the theme motion stagger.",
          "type": "number"
        },
        "sectionColumns": {
          "additionalProperties": false,
          "description": "Section column layout for a group band (SPEC rev 104): the group's blocks lay out in count equal columns on flow pages, distributing in author order across each row. Absent = the historical single-column stack.",
          "properties": {
            "align": {
              "description": "Per-column vertical alignment of each column's content, index 0 = the first column. Absent entries mean top.",
              "items": {
                "enum": [
                  "top",
                  "center",
                  "bottom"
                ]
              },
              "type": "array"
            },
            "count": {
              "description": "Column count, 1 to 4.",
              "maximum": 4,
              "minimum": 1,
              "type": "integer"
            },
            "gap": {
              "description": "Column gap in px, the RowSpec gap convention. Absent = the reader default (24).",
              "minimum": 0,
              "type": "number"
            }
          },
          "required": [
            "count"
          ],
          "type": "object"
        },
        "kicker": {
          "description": "Kicker (eyebrow label) text for a text object (SPEC rev 95), rendered above the content in the theme kickerStyle. Absent = no kicker.",
          "type": "string"
        },
        "authorTitle": {
          "description": "Author title / role line for a text object (SPEC rev 95), used by quote and byline treatments next to the attribution. Absent = no title line.",
          "type": "string"
        },
        "aspectRatio": {
          "description": "Aspect ratio for an image object (SPEC rev 95). Absent = auto, the historical render from the natural media size.",
          "enum": [
            "auto",
            "16:9",
            "4:3",
            "4:5",
            "1:1",
            "21:9"
          ]
        },
        "alt": {
          "type": "string"
        },
        "animations": {
          "type": "object",
          "properties": {
            "entrance": {
              "enum": [
                "none",
                "fade",
                "fly-in-left",
                "fly-in-right",
                "fly-in-top",
                "fly-in-bottom",
                "zoom",
                "scale-up"
              ],
              "description": "Entrance animation played when the page is entered (SPEC rev 19). Unset or \"none\" = no animation."
            },
            "exit": {
              "enum": [
                "none",
                "fade",
                "fly-out-left",
                "fly-out-right",
                "fly-out-top",
                "fly-out-bottom",
                "zoom-out"
              ],
              "description": "Exit animation. When the learner navigates back to a previously-viewed page, players play this (or the reversed entrance when unset) (SPEC rev 19)."
            },
            "kineticReveal": {
              "type": "object",
              "required": ["preset"],
              "properties": {
                "preset": {
                  "enum": ["typewriterReveal", "wordReveal", "lineReveal"]
                },
                "start": {
                  "type": "number",
                  "minimum": 0,
                  "description": "Start time in ms from scene start. Defaults to 0."
                },
                "duration": {
                  "type": "number",
                  "minimum": 1,
                  "description": "Duration in ms. Defaults to 1200."
                }
              },
              "additionalProperties": false
            },
            "entranceDelayMs": {
              "type": "number",
              "minimum": 0,
              "description": "Entrance delay in ms (SPEC rev 87). Absent = 0."
            },
            "entranceDurationMs": {
              "type": "number",
              "minimum": 0,
              "description": "Entrance duration in ms (SPEC rev 87). Absent = the player's historical 450ms."
            },
            "exitDelayMs": {
              "type": "number",
              "minimum": 0,
              "description": "Exit delay in ms (SPEC rev 87). Absent = 0."
            },
            "exitDurationMs": {
              "type": "number",
              "minimum": 0,
              "description": "Exit duration in ms (SPEC rev 87). Absent = the player's historical 450ms."
            },
            "timeline": {
              "type": "array",
              "description": "Keyframe-lite timeline animation tracks (SPEC \u00a77.7, rev 24). x/y are pixel offsets from the authored position; scale is a multiplier; rotation is degrees; opacity is 0-1.",
              "items": {
                "type": "object",
                "required": [
                  "property",
                  "from",
                  "to"
                ],
                "properties": {
                  "property": {
                    "enum": [
                      "x",
                      "y",
                      "opacity",
                      "scale",
                      "rotation",
                      "wipeLeft",
                      "wipeRight",
                      "wipeUp",
                      "wipeDown",
                      "baselineReveal",
                      "blockReveal"
                    ]
                  },
                  "from": {
                    "type": "number"
                  },
                  "to": {
                    "type": "number"
                  },
                  "start": {
                    "type": "number",
                    "minimum": 0,
                    "description": "Start time in ms from scene start. Defaults to 0."
                  },
                  "duration": {
                    "type": "number",
                    "minimum": 1,
                    "description": "Duration in ms. Defaults to 600."
                  },
                  "easing": {
                    "enum": [
                      "linear",
                      "easeIn",
                      "easeOut",
                      "easeInOut",
                      "bounce",
                      "pulse",
                      "shake"
                    ],
                    "description": "Defaults to easeOut."
                  },
                  "loop": {
                    "type": "boolean",
                    "description": "Repeat the track for the rest of the scene. Defaults to false."
                  },
                  "alternate": {
                    "type": "boolean",
                    "description": "For a looping track, return to its starting value during each cycle. Defaults to false."
                  }
                },
                "additionalProperties": false
              }
            },
            "motionPath": {
              "type": "object",
              "description": "Motion path (SPEC \u00a77.7, rev 71): the object travels a curve over a window on the scene clock. Points are px offsets from the authored position; the start is always the authored position (0,0 offset).",
              "required": [
                "kind",
                "points"
              ],
              "properties": {
                "kind": {
                  "enum": [
                    "line",
                    "arc",
                    "polyline"
                  ]
                },
                "points": {
                  "type": "array",
                  "minItems": 1,
                  "description": "line: [end]. arc: [control, end] (quadratic Bezier). polyline: [p1..pn], travelled in order.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "x": {
                        "type": "number"
                      },
                      "y": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "x",
                      "y"
                    ],
                    "additionalProperties": false
                  }
                },
                "start": {
                  "type": "number",
                  "minimum": 0,
                  "description": "Start time in ms from scene start. Defaults to 0."
                },
                "duration": {
                  "type": "number",
                  "minimum": 0,
                  "description": "Duration in ms to travel the whole path. Defaults to 1000."
                },
                "easing": {
                  "enum": [
                    "linear",
                    "easeIn",
                    "easeOut",
                    "easeInOut",
                    "bounce"
                  ],
                  "description": "Defaults to easeOut."
                },
                "orientToPath": {
                  "type": "boolean",
                  "description": "Rotate the object to the path tangent while travelling. Defaults to false."
                },
                "smooth": {
                  "type": "boolean",
                  "description": "Polyline only: round the corners with a Catmull-Rom spline. Defaults to false."
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "characterId": {
          "description": "For type=character: which character design (SPEC \u00a77.8, rev 25).",
          "enum": [
            "businessman",
            "businesswoman",
            "casualMan",
            "casualWoman",
            "student",
            "professor"
          ]
        },
        "characterAnimation": {
          "description": "For type=character: active limb animation (SPEC \u00a77.8, rev 25). Defaults to idle.",
          "enum": [
            "idle",
            "walk",
            "talk",
            "wave",
            "point",
            "nod",
            "shake",
            "sit",
            "stand"
          ]
        },
        "facing": {
          "description": "For type=character: facing direction (SPEC \u00a77.8, rev 25). Auto-set from path direction while moving.",
          "enum": [
            "left",
            "right"
          ]
        },
        "colors": {
          "description": "For type=character: customizable colors (SPEC \u00a77.8, rev 25).",
          "type": "object",
          "properties": {
            "skin": {
              "$ref": "#/$defs/color"
            },
            "hair": {
              "$ref": "#/$defs/color"
            },
            "shirt": {
              "$ref": "#/$defs/color"
            },
            "pants": {
              "$ref": "#/$defs/color"
            }
          },
          "additionalProperties": false
        },
        "path": {
          "description": "For type=character: movement waypoints; x/y are pixel offsets from authored position, t is ms from scene start (SPEC \u00a77.8, rev 25).",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "t": {
                "type": "number",
                "minimum": 0
              },
              "curve": {
                "enum": [
                  "linear",
                  "smooth"
                ],
                "description": "Segment curve from this waypoint (SPEC \u00a77.8, rev 25)."
              },
              "speed": {
                "type": "number",
                "exclusiveMinimum": 0,
                "description": "Per-segment speed multiplier for the segment starting here (SPEC \u00a77.8, rev 25)."
              }
            },
            "required": [
              "x",
              "y",
              "t"
            ],
            "additionalProperties": false
          }
        },
        "speech": {
          "description": "For type=character: dialogue speech bubbles (SPEC \u00a77.8, rev 25).",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/id"
              },
              "text": {
                "type": "string"
              },
              "start": {
                "type": "number",
                "minimum": 0
              },
              "duration": {
                "type": "number",
                "minimum": 0
              }
            },
            "required": [
              "id",
              "text",
              "start",
              "duration"
            ],
            "additionalProperties": false
          }
        },
        "videoProject": {
          "description": "For type=video-scene: embedded multi-scene video project (SPEC \u00a77.9, rev 25).",
          "type": "object",
          "properties": {
            "id": {
              "$ref": "#/$defs/id"
            },
            "name": {
              "type": "string"
            },
            "scenes": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "$ref": "#/$defs/id"
                  },
                  "name": {
                    "type": "string"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "transition": {
                    "enum": [
                      "cut",
                      "fade"
                    ]
                  },
                  "transitionMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "background": {
                    "$ref": "#/$defs/color"
                  },
                  "objects": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/courseObject"
                    }
                  }
                },
                "required": [
                  "id",
                  "name",
                  "durationMs",
                  "objects"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "id",
            "name",
            "scenes"
          ],
          "additionalProperties": false
        },
        "autoplay": {
          "type": "boolean"
        },
        "background": {
          "$ref": "#/$defs/backgroundSpec"
        },
        "bank": {
          "description": "Question-bank id",
          "type": "string"
        },
        "blanks": {
          "items": {
            "properties": {
              "answers": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "id": {
                "type": "string"
              },
              "options": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "id",
              "answers"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "branchingPreset": {
          "description": "Scenario branching preset on button objects (SPEC \u00a77.1, rev 85): the branching shape the button's preset-managed click trigger carries. Absent = no preset; the button's triggers are entirely hand-authored",
          "enum": [
            "jump",
            "linear",
            "open-popup",
            "record-jump"
          ],
          "type": "string"
        },
        "choiceType": {
          "enum": [
            "single",
            "multiple"
          ]
        },
        "choices": {
          "items": {
            "properties": {
              "feedback": {
                "$ref": "#/$defs/richText"
              },
              "id": {
                "type": "string"
              },
              "image": {
                "type": "string"
              },
              "label": {
                "$ref": "#/$defs/richText"
              },
              "profileScores": {
                "type": "object",
                "additionalProperties": {
                  "type": "number"
                }
              }
            },
            "required": [
              "id"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "content": {
          "$ref": "#/$defs/richText",
          "description": "For type=text"
        },
        "controls": {
          "description": "For type=video",
          "type": "boolean"
        },
        "correctResponses": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "dragDrop": {
          "properties": {
            "draggables": {
              "items": {
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "label": {
                    "$ref": "#/$defs/richText"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "dropZones": {
              "items": {
                "properties": {
                  "accepts": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "h": {
                    "description": "Positioned zone height, percent of the media image box (rev 63, drag-label only). All of x/y/w/h present = positioned; absent = list-zone degrade.",
                    "type": "number"
                  },
                  "id": {
                    "type": "string"
                  },
                  "label": {
                    "$ref": "#/$defs/richText"
                  },
                  "w": {
                    "description": "Positioned zone width, percent of the media image box (rev 63, drag-label only).",
                    "type": "number"
                  },
                  "x": {
                    "description": "Positioned zone left edge, percent of the media image box (rev 63, drag-label only).",
                    "type": "number"
                  },
                  "y": {
                    "description": "Positioned zone top edge, percent of the media image box (rev 63, drag-label only).",
                    "type": "number"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "extensions": {
          "$ref": "#/$defs/extensions"
        },
        "feedback": {
          "properties": {
            "correct": {
              "$ref": "#/$defs/richText"
            },
            "incorrect": {
              "$ref": "#/$defs/richText"
            },
            "tryAgain": {
              "$ref": "#/$defs/richText"
            }
          },
          "type": "object"
        },
        "feedbackTiming": {
          "description": "For type=question (rev 86): when the learner sees the question's feedback. \"immediate\" shows the verdict and authored feedback as soon as a complete answer is entered, before submit (display-only: no attempt consumed, nothing earned, never locks). Absent = \"on-submit\", the historical behavior.",
          "enum": [
            "immediate",
            "on-submit"
          ],
          "type": "string"
        },
        "fill": {
          "$ref": "#/$defs/color"
        },
        "fit": {
          "description": "For type=image",
          "enum": [
            "contain",
            "cover",
            "fill"
          ]
        },
        "displayWidth": {
          "description": "For type=image on flow pages: display width as a percentage of the content column for a standalone flow image, centered in the column (SPEC \u00a77.13, rev 37). Absent = 100 (full column). Ignored on fixed pages and inside rows, groups, panels, and custom blocks.",
          "type": "number",
          "minimum": 1,
          "maximum": 100
        },
        "imageDisplay": {
          "description": "For type=image on flow pages: display intent (SPEC \u00a77.14, rev 39; 'band' added rev 44; 'tall' added rev 45). 'centered' = natural width up to the content column, centered; 'full' = fills its container (the default render); a standalone 'full' image on a flow page also leaves the content column for the full width of the page surface at its natural aspect (rev 50); 'banner' = cropped to a fixed wide strip (7:2) with cover fit; 'band' = full-bleed band that leaves the content column for the full width of the slide surface, cropped to a wide band (16:7) with cover fit, any textOverlay headline anchored at the bottom-left over the resolved scrim; 'tall' = full-bleed tall band (about three-quarters of the viewport tall) carrying overlay copy plus markers popups in readers that support them. Absent = the historical render. displayWidth, when present, wins over 'centered'.",
          "enum": [
            "centered",
            "full",
            "banner",
            "band",
            "tall"
          ]
        },
        "fullBleed": {
          "description": "For type=image with imageDisplay 'band' or 'tall' on flow pages (SPEC \u00a77.14, rev 48): the full-width banner treatment. The photo spans the full width of the page surface (edge-to-edge in 'full' width mode; the surface card's edges in contained mode) even when the image is the sole child of a stacked (non-row) group, while its textOverlay content and caption stay inside the content column under the rev-46 layout rules. Absent/false = the historical render for the block's shape. Ignored on fixed pages and inside rows, panels, and custom blocks.",
          "type": "boolean"
        },
        "zoom": {
          "description": "For type=image: click-to-zoom in readers (SPEC \u00a77.14, rev 39). The image opens in a zoom dialog from the image itself or its Zoom control. Absent/false = no zoom affordance.",
          "type": "boolean"
        },
        "textOverlay": {
          "description": "For type=image: text painted over the image (SPEC \u00a77.14, rev 39; rich band fields added rev 45), rendered in white over a scrim so it keeps WCAG AA contrast over any photo. Readers resolve the effective scrim with an opacity floor of 0.55 (see imageOverlayScrim). The rev-45 fields (body, buttonLabel/buttonHref, links) make the overlay a rich band: headline + supporting paragraph + optional button + an optional bottom link row of jump links, all bound to the image.",
          "type": "object",
          "additionalProperties": false,
          "required": [
            "text"
          ],
          "properties": {
            "text": {
              "$ref": "#/$defs/richText"
            },
            "scrimColor": {
              "$ref": "#/$defs/color"
            },
            "scrimOpacity": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "body": {
              "$ref": "#/$defs/richText",
              "description": "Supporting paragraph under the headline (rev 45)."
            },
            "buttonLabel": {
              "type": "string",
              "description": "Button label in the rich band overlay (rev 45). Absent = no button."
            },
            "buttonHref": {
              "type": "string",
              "description": "Button target: a URL or in-page anchor (rev 45). Absent = '#'."
            },
            "links": {
              "type": "array",
              "description": "Bottom link row of jump links (rev 45).",
              "items": {
                "$ref": "#/$defs/overlayLink"
              }
            },
            "buttonTarget": {
              "$ref": "#/$defs/linkTarget",
              "description": "Typed button target (rev 46); when present it wins over buttonHref at read time."
            },
            "vAlign": {
              "enum": [
                "top",
                "middle",
                "bottom"
              ],
              "description": "Vertical placement of the overlay content (rev 46). Absent = the historical placement for the display mode."
            },
            "hAlign": {
              "enum": [
                "left",
                "center",
                "right"
              ],
              "description": "Horizontal placement / text alignment of the overlay content (rev 46). Absent = the historical alignment for the display mode."
            },
            "span": {
              "type": "number",
              "minimum": 1,
              "maximum": 12,
              "description": "Width of the single overlay content stack as a span of the 12-column grid (rev 46; clamped 3-12 at read time). Absent = the historical width."
            },
            "columns": {
              "type": "array",
              "maxItems": 3,
              "items": {
                "$ref": "#/$defs/overlayColumn"
              },
              "description": "Side-by-side overlay content columns (rev 46, max 3). When present and non-empty, readers render the columns instead of the root stack."
            }
          }
        },
        "graded": {
          "default": true,
          "type": "boolean"
        },
        "hotspots": {
          "items": {
            "properties": {
              "correct": {
                "type": "boolean"
              },
              "h": {
                "type": "number"
              },
              "w": {
                "type": "number"
              },
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y",
              "w",
              "h",
              "correct"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "html": {
          "description": "Inline HTML, for type=webview",
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "interactionType": {
          "description": "For type=question \u2014 xAPI interaction vocabulary",
          "enum": [
            "choice",
            "true-false",
            "fill-in",
            "long-fill-in",
            "matching",
            "performance",
            "sequencing",
            "likert",
            "numeric",
            "other",
            "dictation",
            "audio-response",
            "mark-words",
            "memory",
            "word-search",
            "crossword"
          ]
        },
        "label": {
          "$ref": "#/$defs/richText",
          "description": "For type=button"
        },
        "likert": {
          "description": "For type=question with interactionType=likert (SPEC §10, rev 49): the scale's endpoint captions — startLabel words the lowest point, endLabel the highest (e.g. \"Not helpful\" / \"Very helpful\"). The choices carry the scale points only; readers render the captions at the two ends of the scale. Either label may be absent independently; the whole key absent = no captions, the historical render.",
          "properties": {
            "endLabel": {
              "$ref": "#/$defs/richText"
            },
            "startLabel": {
              "$ref": "#/$defs/richText"
            }
          },
          "type": "object"
        },
        "locked": {
          "default": false,
          "type": "boolean"
        },
        "loop": {
          "type": "boolean"
        },
        "matching": {
          "properties": {
            "source": {
              "items": {
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "label": {
                    "$ref": "#/$defs/richText"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "target": {
              "items": {
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "label": {
                    "$ref": "#/$defs/richText"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "media": {
          "description": "Resource id for prompt media",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "objects": {
          "description": "For type=group, popup",
          "items": {
            "$ref": "#/$defs/courseObject"
          },
          "type": "array"
        },
        "objectiveIds": {
          "description": "For type=question: linked learning-objective ids (assessment alignment)",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "opacity": {
          "description": "For type=shape: opacity from 0 (fully transparent) to 1 (fully opaque), rendered as CSS opacity (SPEC §7.1, rev 47). Absent = 1.",
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "overlay": {
          "description": "For type=popup: show a dimming backdrop behind the dialog (default true)",
          "type": "boolean"
        },
        "position": {
          "$ref": "#/$defs/position"
        },
        "poster": {
          "description": "Resource id, for type=video",
          "type": "string"
        },
        "playbackRate": {
          "description": "For type=audio and type=video: the playback rate multiplier readers apply to the media element (SPEC rev 83). One of 0.75, 1, 1.25, 1.5, or 2. Absent = 1 (normal speed), the historical playback.",
          "type": "number",
          "enum": [0.75, 1, 1.25, 1.5, 2]
        },
        "numeric": {
          "description": "For type=question with interactionType=numeric (SPEC \u00a710, rev 58): the slider presentation's scale and grading band \u2014 min/max bound the scale, step is the grid the learner's value snaps to, tolerance is the \u00b1 band around the correct value (the first finite correctResponses entry) that still earns full credit. Every field is optional: readers render a decayed scale as 0\u2013100 in steps of 1, and an absent tolerance means 0 (an exact hit). The whole key absent = a plain numeric question.",
          "properties": {
            "max": {
              "type": "number"
            },
            "min": {
              "type": "number"
            },
            "step": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "tolerance": {
              "type": "number",
              "minimum": 0
            }
          },
          "type": "object"
        },
        "presentation": {
          "description": "For type=question (SPEC \u00a710): which presentation renders the question's data. The field is shared across the dual-mode kinds and each kind reads only its own values; absent always means the kind's default interface. interactionType=matching (rev 35): \"matching\" (default; select-based pairs, or drag-and-drop when dragDrop is defined), \"sorting\" (one statement at a time placed into category bins), \"tap-match\" (rev 54; tap-to-pair: two button columns, tap a source then tap its target; full keyboard path via Enter/Space, no drag), or \"categorize\" (rev 57; all items at once in an unsorted pool beside the category buckets; tap an item to pick it up, tap a category to place it; full keyboard path via Enter/Space, no drag); absent means \"matching\". interactionType=sequencing (rev 55): \"token-bank\" (the learner assembles the ordered answer by tapping tokens from the choices bank into an answer zone; correctResponses carries the ordered answer token ids and any choice absent from it is a distractor); absent means the plain sequencing list. interactionType=numeric (rev 58): \"slider\" (a native range control over the numeric payload \u2014 native keyboard operation, linked numeric entry, no drag-only path); absent means the plain number-entry field. Rev 60 adds two POINTER-ONLY presentations, labeled not accessible wherever they are authored: \"drag-rank\" (interactionType=sequencing; choices reordered by pointer drag, order response and grading unchanged) and \"drag-label\" (interactionType=matching; label chips dragged onto dragDrop.dropZones positioned over the question media image, matching response and grading unchanged).",
          "enum": [
            "matching",
            "sorting",
            "tap-match",
            "token-bank",
            "categorize",
            "slider",
            "drag-rank",
            "drag-label"          ],
          "type": "string"
        },
        "prompt": {
          "$ref": "#/$defs/richText"
        },
        "process": {
          "type": "object",
          "description": "Process card slideshow (SPEC \u00a77.11, rev 34): an optional intro card, one card per step, and an optional conclusion card, stepped through with previous/next controls. Non-graded \u2014 no score, no statements beyond the page's.",
          "properties": {
            "intro": {
              "$ref": "#/$defs/processCard"
            },
            "steps": {
              "type": "array",
              "minItems": 1,
              "items": {
                "$ref": "#/$defs/processStep"
              }
            },
            "conclusion": {
              "$ref": "#/$defs/processCard"
            },
            "animate": {
              "type": "boolean",
              "description": "Card-to-card slide animation in readers. Defaults to true when absent; prefers-reduced-motion always overrides to instant."
            }
          },
          "required": [
            "steps"
          ]
        },
        "customBlock": {
          "description": "For type=custom-block: the composition payload (SPEC \u00a77.12, rev 36)",
          "$ref": "#/$defs/customBlock"
        },
        "decorative": {
          "description": "Decorative marker (rev 36): when true, readers leave the object out of the accessibility tree entirely (no tab stop, no announcement). Absent/false = the object is content. For images, the alt:\"\" convention remains an equivalent signal.",
          "type": "boolean"
        },
        "description": {
          "description": "For type=attachment: plain-text note shown under the card title (SPEC \u00a77.15, rev 43)",
          "type": "string"
        },
        "required": {
          "description": "For type=question (rev 86): when true, the question blocks page completion until answered (submitted). Absent = optional, which never blocks; on a page with required questions, completion requires every required question submitted. A different axis from graded (scoring).",
          "type": "boolean"
        },
        "resource": {
          "description": "Resource id, for image/audio/video",
          "type": "string"
        },
        "resourceId": {
          "description": "For type=attachment: course resource id of the downloadable file (a resource of kind \"document\") (SPEC \u00a77.15, rev 43)",
          "type": "string"
        },
        "rotation": {
          "description": "Rotation in degrees about the object's centre (SPEC §7.1, rev 97). Absent = 0.",
          "type": "number"
        },
        "row": {
          "description": "Present on a group: renders as a 12-column grid row on flow-layout pages. Ignored on fixed pages.",
          "type": "object",
          "properties": {
            "gap": {
              "description": "Grid gap in px; always applied",
              "type": "number",
              "minimum": 0,
              "default": 16
            },
            "align": {
              "description": "Cross-axis alignment of cells",
              "enum": [
                "start",
                "center",
                "end",
                "stretch"
              ],
              "default": "stretch"
            },
            "width": {
              "description": "Row width on flow pages (§6.1, rev 66). 'standard' (default when absent): cells held to the course content column on every surface. 'wide': content spans the full width of the page surface inside its gutters (contained mode: out through the surface padding to the card edges). Ignored on fixed pages and for nested rows.",
              "enum": [
                "standard",
                "wide"
              ],
              "default": "standard"
            }
          },
          "additionalProperties": false
        },
        "scoring": {
          "properties": {
            "attempts": {
              "type": "number"
            },
            "penalty": {
              "type": "number"
            },
            "points": {
              "type": "number"
            },
            "mode": {
              "enum": [
                "points",
                "profile"
              ]
            },
            "profiles": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "$ref": "#/$defs/richText"
                  }
                },
                "required": [
                  "id",
                  "title"
                ]
              }
            }
          },
          "type": "object"
        },
        "shape": {
          "enum": [
            "rect",
            "ellipse",
            "line",
            "polygon",
            "triangle",
            "arrow"
          ]
        },
        "showSize": {
          "description": "For type=attachment: show the file size on the download card. Absent = true (SPEC \u00a77.15, rev 43)",
          "type": "boolean"
        },
        "shuffleChoices": {
          "type": "boolean"
        },
        "span": {
          "description": "Grid ticks (of 12) this object spans as a top-level Flow block or direct child of an authored row group. Default 12; eligible consecutive top-level blocks auto-flow into rows.",
          "type": "integer",
          "minimum": 1,
          "maximum": 12
        },
        "spanBreakpoints": {
          "description": "Width overrides (in grid ticks) at wider viewports; unset inherits the base span",
          "type": "object",
          "properties": {
            "tablet": {
              "description": "Applies at >= 640px",
              "type": "integer",
              "minimum": 1,
              "maximum": 12
            },
            "desktop": {
              "description": "Applies at >= 1024px",
              "type": "integer",
              "minimum": 1,
              "maximum": 12
            }
          },
          "additionalProperties": false
        },
        "width": {
          "description": "Block width on flow pages (SPEC \u00a76.1, rev 67) — the single-block sibling of the row width (rev 66). 'standard' (the default when absent) holds a top-level flow block to the course content column on every surface; 'full' breaks the block out of the column to span the full width of the page surface (inside the shared 24px page gutter in 'full' width mode; out through the surface padding to the card edges in 'contained' mode). Meaningful only for a top-level object on a flow page; ignored on fixed pages, on row groups (which read row.width), and for objects nested inside cells, panels, or custom blocks. Absent = 'standard' = the historical rendering.",
          "type": "string",
          "enum": [
            "standard",
            "full"
          ]
        },
        "states": {
          "additionalProperties": {
            "$ref": "#/$defs/objectStateOverride"
          },
          "description": "State name -> property overrides (SPEC \u00a77.4, rev 14). Reserved engine-driven names: hover, down, disabled, visited; any other string is a custom state. `normal` (the base object) and `hidden` (an engine visibility alias) are implicit and must not be used as keys.",
          "propertyNames": {
            "not": {
              "enum": [
                "normal",
                "hidden",
                "Normal",
                "Hidden"
              ]
            }
          },
          "type": "object"
        },
        "stroke": {
          "properties": {
            "color": {
              "$ref": "#/$defs/color"
            },
            "width": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "timing": {
          "properties": {
            "duration": {
              "type": "number"
            },
            "start": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "captions": {
          "description": "For type=video|interactive-video: caption tracks stored on the object itself, in the same shape as resource captions. Used when the video source is a plain URL with no library resource entry to carry the tracks; players render the union of resource and object tracks.",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "enum": [
                  "captions",
                  "subtitles"
                ]
              },
              "lang": {
                "type": "string"
              },
              "src": {
                "type": "string"
              }
            },
            "required": [
              "src",
              "lang"
            ]
          }
        },
        "cuePoints": {
          "description": "For type=video|audio|interactive-video: named cue points on the media timeline (SPEC rev 23 \u2014 cues may carry an interactive-video action)",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "at": {
                "type": "number",
                "minimum": 0
              },
              "action": {
                "$ref": "#/$defs/cueAction"
              }
            },
            "required": [
              "id",
              "at"
            ]
          }
        },
        "triggers": {
          "items": {
            "$ref": "#/$defs/trigger"
          },
          "type": "array"
        },
        "title": {
          "description": "For type=popup: dialog title shown in the dialog header",
          "type": "string"
        },
        "type": {
          "enum": [
            "text",
            "image",
            "audio",
            "video",
            "shape",
            "button",
            "hotspot",
            "webview",
            "question",
            "group",
            "popup",
            "accordion",
            "tabs",
            "timeline",
            "slideshow",
            "flipcards",
            "image-compare",
            "interactive-video",
            "chart",
            "collage",
            "process",
            "simulation",
            "slider",
            "dial",
            "character",
            "video-scene",
            "custom-block",
            "attachment",
            "roleplay",
            "table",
            "scene-3d"
          ]
        },
        "url": {
          "description": "For type=webview",
          "type": "string"
        },
        "visible": {
          "default": true,
          "type": "boolean"
        },
        "volume": {
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "padding": {
          "description": "Per-object vertical padding in px (SPEC section 6.2, rev 80): space inside the object's top-level flow wrapper, above and below its content. Meaningful only for a top-level object on a flow page; 0 is a real value (flush against the neighbouring block); absent = the reader's historical spacing, so no existing document changes rendering.",
          "properties": {
            "bottom": {
              "minimum": 0,
              "type": "number"
            },
            "top": {
              "minimum": 0,
              "type": "number"
            }
          },
          "type": "object"
        },
        "panels": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "$ref": "#/$defs/richText"
              },
              "content": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/courseObject"
                }
              }
            },
            "required": [
              "title",
              "content"
            ]
          }
        },
        "tabs": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "$ref": "#/$defs/richText"
              },
              "content": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/courseObject"
                }
              }
            },
            "required": [
              "title",
              "content"
            ]
          }
        },
        "table": {
          "description": "For type=table: the data-table payload (SPEC §7.17, rev 69). rows is the grid of plain-text cells; when headerRow is not false, the first row is the header row. columns carries optional per-column alignment, index-aligned with the grid columns.",
          "type": "object",
          "properties": {
            "caption": {
              "type": "string"
            },
            "headerRow": {
              "type": "boolean"
            },
            "columns": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "align": {
                    "enum": [
                      "left",
                      "center",
                      "right"
                    ]
                  }
                }
              }
            },
            "rows": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "required": [
            "rows"
          ]
        },
        "scene": {
          "$ref": "#/$defs/scene3DScene"
        },
        "timelineEvents": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "dateLabel": {
                "type": "string"
              },
              "title": {
                "$ref": "#/$defs/richText"
              },
              "body": {
                "$ref": "#/$defs/richText"
              },
              "media": {
                "type": "string"
              }
            },
            "required": [
              "title"
            ]
          }
        },
        "slideshow": {
          "type": "object",
          "properties": {
            "slides": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "resource": {
                    "type": "string"
                  },
                  "caption": {
                    "$ref": "#/$defs/richText"
                  }
                },
                "required": [
                  "resource"
                ]
              }
            },
            "autoplay": {
              "type": "boolean"
            },
            "loop": {
              "type": "boolean"
            },
            "transition": {
              "type": "string"
            }
          }
        },
        "flipCards": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "front": {
                "$ref": "#/$defs/richText"
              },
              "back": {
                "$ref": "#/$defs/richText"
              },
              "image": {
                "type": "string"
              }
            },
            "required": [
              "front",
              "back"
            ]
          }
        },
        "compare": {
          "type": "object",
          "properties": {
            "before": {
              "type": "string"
            },
            "after": {
              "type": "string"
            },
            "orientation": {
              "enum": [
                "horizontal",
                "vertical"
              ]
            },
            "startPosition": {
              "type": "number"
            }
          },
          "required": [
            "before",
            "after"
          ]
        },
        "interactiveVideo": {
          "type": "object",
          "properties": {
            "video": {
              "type": "string"
            },
            "interactions": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "at": {
                    "type": "number"
                  },
                  "pause": {
                    "type": "boolean"
                  },
                  "object": {
                    "$ref": "#/$defs/courseObject"
                  }
                },
                "required": [
                  "at",
                  "object"
                ]
              }
            }
          },
          "required": [
            "video"
          ]
        },
        "chart": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string"
            },
            "chartType": {
              "enum": [
                "bar",
                "line",
                "pie"
              ]
            },
            "labels": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "datasets": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "values": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  }
                },
                "required": [
                  "values"
                ]
              }
            }
          },
          "required": [
            "chartType"
          ]
        },
        "collage": {
          "type": "object",
          "properties": {
            "images": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "layout": {
              "description": "Collage arrangement (SPEC \u00a77.3; 'tiles' added rev 44): 'grid' = uniform cells with captions below; 'masonry' = varied heights; 'tiles' = editorial tile grid \u2014 the first image is the large feature tile, the rest fill a uniform grid, captions ride over the bottom of each tile. Absent = 'grid'.",
              "enum": [
                "grid",
                "masonry",
                "tiles"
              ]
            },
            "captions": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/richText"
              }
            },
            "links": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Optional per-tile link targets (SPEC \u00a77.3, rev 45), index-aligned with images/captions; a URL or in-page anchor, '' or absent = no link. On the 'tiles' layout a linked tile's caption bar renders as a real anchor."
            },
            "linkTargets": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/linkTarget"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "description": "Typed per-tile link targets (SPEC \u00a77.3, rev 46), index-aligned with images/captions/links; an entry wins over the bare string in links at the same index; null = no typed target for that tile."
            }
          }
        },
        "pairs": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "a": {
                "$ref": "#/$defs/richText"
              },
              "b": {
                "$ref": "#/$defs/richText"
              }
            },
            "required": [
              "id"
            ]
          }
        },
        "wordList": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "crosswordEntries": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "word": {
                "type": "string"
              },
              "clue": {
                "type": "string"
              }
            },
            "required": [
              "word",
              "clue"
            ]
          }
        },
        "markTargets": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "word": {
                "type": "string"
              },
              "correct": {
                "type": "boolean"
              }
            },
            "required": [
              "word",
              "correct"
            ]
          }
        },
        "maxDuration": {
          "type": "number",
          "description": "Seconds, for audio-response"
        },
        "wordBank": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Drag-the-words source list"
        },
        "slider": {
          "$ref": "#/$defs/sliderConfig",
          "description": "Slider configuration (SPEC \u00a77.3, rev 18); required when type is slider."
        },
        "dial": {
          "$ref": "#/$defs/sliderConfig",
          "description": "Dial configuration (SPEC \u00a77.3, rev 18); required when type is dial."
        },
        "markers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/marker"
          },
          "description": "Numbered marker pins on an image (SPEC \u00a77.1, rev 18). Meaningful only on image objects."
        },
        "cropShape": {
          "type": "string",
          "enum": [
            "none",
            "rounded",
            "circle",
            "arch",
            "pill",
            "squircle",
            "diagonal-slash"
          ],
          "description": "For type=image (SPEC \u00a77.14, rev 45): 'circle' renders the image round-cropped (1:1, cover fit) \u2014 the circular image-with-text treatment. Absent = the historical rectangular render."
        },
        "cropFocus": {
          "type": "object",
          "description": "For type=image (SPEC \u00a77.14, rev 67): the focal point a cover-fit crop centers on, as fractions of the image's own width/height (0..1 per axis; 0.5/0.5 = center). Readers render it as the img element's CSS object-position. Meaningful only when the render crops (fit cover/fill or a cropping display intent); the stored photo is never modified. Absent = centered crop, the historical render.",
          "properties": {
            "x": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "y": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            }
          },
          "required": [
            "x",
            "y"
          ],
          "additionalProperties": false
        },
        "caption": {
          "$ref": "#/$defs/richText",
          "description": "For type=image (SPEC \u00a77.14, rev 45): caption / credit line rendered under the image. Absent = no caption."
        },
        "simulation": {
          "type": "object",
          "description": "Recorded simulation (SPEC \u00a77.3, rev 17; capture-era fields rev 68; block modes, recording video fallback, and step text alternatives rev 91): screenshots + step sequence. Internals are editable only for first-party captures, gated on source provenance (rev 68); imported simulations stay locked.",
          "properties": {
            "title": {
              "type": "string"
            },
            "mode": {
              "enum": [
                "view",
                "try",
                "test"
              ],
              "description": "The block mode the simulation is published in (SPEC \u00a77.3, rev 91): \"view\" is a guided demo (Watch presentation, Read fallback; plays the recording video when one is carried), \"try\" is guided practice (Guide presentation), \"test\" is scored assessment (Test presentation). One object, one step list, three modes \u2014 never three object types. When present, mode fixes the run mode and wins over defaultMode; the rev 68 conformance floor still applies (a reader that cannot score presents a test block as try and must not claim a score). Absent = the rev 68 placement behavior (defaultMode / allowedModes)"
            },
            "video": {
              "type": "string",
              "description": "Resource id of the full recording video (SPEC \u00a77.3, rev 91): the unsegmented capture the steps were derived from, kept as the View-mode fallback asset so nothing is lost if segmentation is wrong. A course video resource referenced by id like a step's screenshot, embedded on export like all media. Absent = the block carries steps only"
            },
            "missesBeforeHint": {
              "type": "integer",
              "minimum": 1,
              "description": "Wrong attempts before the step hint is shown; defaults to 2"
            },
            "defaultMode": {
              "enum": [
                "read",
                "watch",
                "guide",
                "test"
              ],
              "description": "The presentation mode a reader opens in (SPEC \u00a77.3, rev 68); absent = \"guide\", the rev 17 behavior"
            },
            "allowedModes": {
              "type": "array",
              "items": {
                "enum": [
                  "read",
                  "watch",
                  "guide",
                  "test"
                ]
              },
              "description": "The modes a reader may offer for this simulation (SPEC \u00a77.3, rev 68); absent = every mode the reader supports"
            },
            "scoring": {
              "type": "object",
              "description": "Test-mode scoring (SPEC \u00a77.3, rev 68), echoing the question scoring idioms. Absent = unscored in every mode; a run of an unscored simulation must never claim a score",
              "properties": {
                "pointsPerStep": {
                  "type": "number",
                  "minimum": 0,
                  "description": "Points each step is worth in Test mode; defaults to 1"
                },
                "maxMissesPerStep": {
                  "type": "integer",
                  "minimum": 0,
                  "description": "Wrong attempts allowed per step in Test mode before the step settles as failed; absent = no per-step cap beyond the mode's own feedback policy"
                },
                "passThreshold": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100,
                  "description": "Percent of the run's total points required to pass the Test run; defaults to 70 (the rev 62 default pass threshold)"
                },
                "masteryScore": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100,
                  "description": "The Test-mode mastery score for this block (SPEC \u00a77.3, rev 91), mirroring publish.lms.masteryScore in name and shape: the percent of the run's total points the learner must reach for the block to count as passed. When present it wins over passThreshold; absent, passThreshold rules and itself defaults to 70"
                }
              }
            },
            "steps": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/simulationStep"
              }
            },
            "source": {
              "type": "object",
              "description": "Provenance: which recorder produced this simulation. tool is an OPEN value space, never enumerated by validation (SPEC \u00a77.3, rev 68): importing tools write their own names (\"storyline\", \"dominknow\"); first-party capture values are \"finchlearn-capture\" (browser extension) and the reserved \"finchlearn-capture-desktop\" (desktop agent, future). New capture sources register by documentation in the SPEC, never by a schema change, so adding one cannot invalidate existing documents. Authoring tools gate step editing on this value; an unrecognized or absent tool means foreign provenance (locked)",
              "properties": {
                "tool": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                },
                "capturedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the capture was recorded (rev 68)"
                },
                "captureVersion": {
                  "type": "string",
                  "description": "Version of the capturing tool that produced this object (rev 68)"
                }
              }
            }
          },
          "required": [
            "steps"
          ]
        },
        "wrap": {
          "enum": [
            "none",
            "square",
            "tight"
          ],
          "description": "Text wrap around this object (SPEC rev 19). Meaningful on type=text: on flow pages the object floats and following content flows around it; on fixed pages, overlapping text reflows around its bounding box. Unset = \"none\"."
        },
        "statementStyle": {
          "enum": [
            "a",
            "b",
            "c",
            "d",
            "note",
            "hairline-banner",
            "soft-pill",
            "frosted-pane",
            "inverted-strip",
            "lifestyle-serif"
          ],
          "description": "For type=text: statement treatment (SPEC \u00a77.10, rev 32) \u2014 a: tinted box with info icon; b: accent rule, bold, larger; c: light, larger; d: accent rule, light, larger, centered; note: centered between hairline rules. Absent = ordinary text; inline-styled statements keep rendering as authored."
        },
        "quoteStyle": {
          "enum": [
            "a",
            "b",
            "c",
            "d",
            "background",
            "carousel",
            "minimal-avatar",
            "editorial-serif",
            "glass-card"
          ],
          "description": "For type=text: quote treatment (SPEC \u00a77.10, rev 32) \u2014 a\u2013d parallel the statement treatments (quote text in content as a blockquote plus an attribution paragraph); background paints the quote over the object's background image; carousel steps through the object's quotes set."
        },
        "quoteAvatar": {
          "description": "For type=text with a quote treatment: portrait of the quoted person (resource id).",
          "type": "string"
        },
        "quotes": {
          "description": "For type=text with quoteStyle \"carousel\": the quote set the reader steps through (SPEC \u00a77.10, rev 32). content mirrors the first item.",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "text": {
                "$ref": "#/$defs/richText"
              },
              "attribution": {
                "$ref": "#/$defs/richText"
              },
              "avatar": {
                "description": "Portrait of the quoted person (resource id).",
                "type": "string"
              },
              "backgroundImage": {
                "description": "Background image (resource id) for treatments that paint one.",
                "type": "string"
              }
            },
            "required": [
              "text"
            ]
          }
        },
        "columns": {
          "description": "For type=text on flow pages: multi-column layout, rendered as a CSS column count with a standard gap (SPEC \u00a77.10, rev 32). Absent or 1 = single column. Ignored on fixed pages.",
          "type": "integer",
          "minimum": 1,
          "maximum": 4
        },
        "lineHeight": {
          "description": "For type=text: per-block line-height override as a unitless multiplier (SPEC \u00a77.10, rev 76). Absent = the theme body line height (Theme.lineHeight).",
          "type": "number",
          "exclusiveMinimum": 0
        },
        "textBorder": {
          "description": "For type=text: quote/callout border override (SPEC \u00a77.10, rev 82). Absent = the treatment's own rendering (statement A box border, statement Note hairlines, B/D accent rules, and the stock blockquote rule show; other treatments show none). true forces the border/rule on; false forces it off.",
          "type": "boolean"
        },
        "codeLanguage": {
          "description": "For type=text whose content is a code block (a pre/code snippet): the syntax-highlighting language readers apply at render time (SPEC \u00a77.10, rev 82). The stored content stays plain escaped code text; highlighting never rewrites the document. Absent = the historical unstyled render; \"plain\" renders line structure with no token colors.",
          "type": "string",
          "enum": [
            "plain",
            "javascript",
            "typescript",
            "python",
            "html",
            "css",
            "json",
            "bash"
          ]
        },
        "codeLineNumbers": {
          "description": "For type=text whose content is a code block: when true, readers render a line-number gutter beside the code lines (SPEC \u00a77.10, rev 82). Absent/false = no gutter, the historical render.",
          "type": "boolean"
        },
        "scenario": {
          "$ref": "#/$defs/roleplayScenario"
        },
        "pin": {
          "type": "object",
          "description": "Behaviour pin (SPEC \u00a77.16, rev 64): the model + prompt-template version this block runs once published. Absent = unpinned draft; stamped at publish/export.",
          "required": [
            "model",
            "promptVersion"
          ],
          "properties": {
            "model": {
              "type": "string",
              "minLength": 1
            },
            "promptVersion": {
              "type": "integer",
              "minimum": 1
            }
          }
        }
      },
      "required": [
        "id",
        "type"
      ],
      "type": "object"
    },
    "cueAction": {
      "description": "R8 interactive-video cue action (SPEC rev 23): branching, in-video question checkpoints, timeline hotspots",
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "const": "branch"
            },
            "choices": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "jumpTo": {
                    "type": "number",
                    "minimum": 0
                  },
                  "video": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "label"
                ]
              }
            }
          },
          "required": [
            "kind",
            "choices"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "const": "question"
            },
            "question": {
              "$ref": "#/$defs/courseObject"
            },
            "requireCorrect": {
              "type": "boolean"
            }
          },
          "required": [
            "kind",
            "question"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "const": "hotspot"
            },
            "until": {
              "type": "number",
              "minimum": 0
            },
            "regions": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "x": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "y": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "w": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "h": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "action": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "const": "jump"
                          },
                          "at": {
                            "type": "number",
                            "minimum": 0
                          }
                        },
                        "required": [
                          "kind",
                          "at"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "const": "popup"
                          },
                          "popupId": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "kind",
                          "popupId"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "const": "event"
                          }
                        },
                        "required": [
                          "kind"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "x",
                  "y",
                  "w",
                  "h",
                  "action"
                ]
              }
            }
          },
          "required": [
            "kind",
            "regions"
          ]
        }
      ]
    },
    "customBlock": {
      "type": "object",
      "description": "Custom block composition (SPEC \u00a77.12, rev 36): a bounded freeform canvas of ordinary objects, inserted into flow slides as one unit. Children are positioned in composition coordinates (px from the canvas top-left); array order is layer order (first = bottom).",
      "additionalProperties": false,
      "properties": {
        "width": {
          "description": "Canvas width in design px",
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "description": "Canvas height in design px",
          "type": "number",
          "exclusiveMinimum": 0
        },
        "background": {
          "$ref": "#/$defs/customBlockBackground"
        },
        "layout": {
          "description": "How the composition renders at widths other than its designed width: \"responsive\" (the default \u2014 scale to the legibility floor, then stack the objects in focus order) or \"fixed\" (render exactly as designed, scaling proportionally at every width)",
          "enum": [
            "responsive",
            "fixed"
          ],
          "type": "string"
        },
        "objects": {
          "description": "The composed objects, in layer order (first = bottom). Restricted to the flow-safe presentation subset \u2014 text, image, audio, video, shape, button \u2014 by the allOf below: a composition is presentation, not assessment (no questions, no nested containers, no nested custom blocks).",
          "type": "array",
          "items": {
            "allOf": [
              {
                "$ref": "#/$defs/courseObject"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "enum": [
                      "text",
                      "image",
                      "audio",
                      "video",
                      "shape",
                      "button"
                    ]
                  }
                },
                "required": [
                  "type"
                ]
              }
            ]
          }
        },
        "focusOrder": {
          "description": "Reading/focus order: object ids in the order a keyboard or screen-reader user meets them, and the order the responsive stacked arrangement lays them out in. Absent = array order. Unknown ids are ignored; unlisted objects follow in array order.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "width",
        "height",
        "objects"
      ]
    },
    "customBlockBackground": {
      "type": "object",
      "description": "A custom block's canvas background (SPEC \u00a77.12, rev 36): a theme token reference (live across theme swaps) or a literal hex (fixed across themes); token wins when both are present. Neither field (or no background at all) = transparent.",
      "additionalProperties": false,
      "properties": {
        "token": {
          "description": "Semantic theme token the background color follows (live across theme swaps)",
          "enum": [
            "accent",
            "background",
            "danger",
            "deep",
            "ink",
            "primary",
            "secondary",
            "success",
            "surface"
          ],
          "type": "string"
        },
        "hex": {
          "$ref": "#/$defs/color",
          "description": "Literal color (the color-wheel escape hatch) \u2014 fixed across themes"
        }
      }
    },
    "extensions": {
      "description": "Namespaced tool-specific extras, e.g. {\"x-articulate\": {...}}. Readers ignore unknown namespaces.",
      "type": "object"
    },
    "id": {
      "minLength": 1,
      "type": "string"
    },
    "layer": {
      "properties": {
        "blockBase": {
          "default": false,
          "type": "boolean"
        },
        "extensions": {
          "$ref": "#/$defs/extensions"
        },
        "hideOthers": {
          "default": false,
          "type": "boolean"
        },
        "id": {
          "type": "string"
        },
        "locked": {
          "default": false,
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "objects": {
          "items": {
            "$ref": "#/$defs/courseObject"
          },
          "type": "array"
        },
        "pauseBase": {
          "default": false,
          "type": "boolean"
        },
        "visible": {
          "default": true,
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "objects"
      ],
      "type": "object"
    },
    "meta": {
      "properties": {
        "authors": {
          "items": {
            "properties": {
              "name": {
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "cover": {
          "description": "Optional cover (hero) image for dashboard / LMS presentation. `src` is a media reference in the shared reference space: a course resource id, an assets/... relative path, an http(s) URL, or a data URL.",
          "properties": {
            "alt": {
              "description": "Alt text describing the cover image",
              "type": "string"
            },
            "src": {
              "type": "string"
            }
          },
          "required": [
            "src"
          ],
          "type": "object"
        },
        "created": {
          "format": "date-time",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "language": {
          "description": "BCP-47 language tag",
          "type": "string"
        },
        "modified": {
          "format": "date-time",
          "type": "string"
        },
        "sourceTool": {
          "properties": {
            "name": {
              "type": "string"
            },
            "version": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "title"
      ],
      "type": "object"
    },
    "objective": {
      "properties": {
        "competencyRef": {
          "description": "A pinned competency URI (rev 41, SPEC \u00a75): the objective's identity in an external competency framework or registry. A consuming system (e.g. an LMS competency registry) adopts it as the competency's identity instead of minting a local one. Absent = the consuming system mints a local identity.",
          "format": "uri",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "title"
      ],
      "type": "object"
    },
    "objectStateOverride": {
      "additionalProperties": true,
      "description": "Per-state visual property overrides (SPEC \u00a77.4, rev 14). Only presentation properties may be overridden: identity (id, type), structure (states \u2014 no nested states), behavior (triggers, timing) and layout (position \u2014 shared across states, Storyline-style) are rejected. Additional forward-compatible visual keys are permitted and merged generically.",
      "not": {
        "anyOf": [
          {
            "required": [
              "id"
            ]
          },
          {
            "required": [
              "type"
            ]
          },
          {
            "required": [
              "states"
            ]
          },
          {
            "required": [
              "triggers"
            ]
          },
          {
            "required": [
              "timing"
            ]
          },
          {
            "required": [
              "position"
            ]
          }
        ]
      },
      "properties": {
        "alt": {
          "type": "string"
        },
        "content": {
          "$ref": "#/$defs/richText"
        },
        "fill": {
          "$ref": "#/$defs/color"
        },
        "label": {
          "$ref": "#/$defs/richText"
        },
        "poster": {
          "type": "string"
        },
        "resource": {
          "type": "string"
        },
        "stroke": {
          "properties": {
            "color": {
              "$ref": "#/$defs/color"
            },
            "width": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "visible": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "page": {
      "properties": {
        "background": {
          "$ref": "#/$defs/pageBackgroundSpec"
        },
        "extensions": {
          "$ref": "#/$defs/extensions"
        },
        "id": {
          "type": "string"
        },
        "layers": {
          "items": {
            "$ref": "#/$defs/layer"
          },
          "minItems": 1,
          "type": "array"
        },
        "layout": {
          "enum": [
            "fixed",
            "flow",
            "steps"
          ]
        },
        "masterId": {
          "type": "string",
          "description": "Slide master reference (SPEC §5.4, rev 71): the id of a course.masters entry this page inherits live (never a copy). Wins over the section's masterId. A dangling id is ignored by readers. Absent = the section's master, else none."
        },
        "stepRole": {
          "enum": [
            "core",
            "support",
            "stretch"
          ],
          "description": "Steps adaptivity (SPEC rev 53): this step's role in an adaptive section. Absent = \"core\" (for every learner; the only scored/certified set). \"support\" = extra help surfaced when its paired Core question is missed; \"stretch\" = enrichment unlocked when the section estimate reaches the target. Inert unless the section carries adaptiveTarget."
        },
        "supportsPageId": {
          "type": "string",
          "description": "Steps adaptivity (SPEC rev 53): on a \"support\" step, the id of the Core step whose missed question surfaces this step. Absent = pairs to the nearest preceding Core step with a question in the same section."
        },
        "stepsWrongAnswer": {
          "enum": [
            "retry-loop",
            "reveal"
          ],
          "description": "Steps wrong-answer rule override for this step (SPEC rev 62): wins over the course settings.stepsWrongAnswer for questions on this page. Absent = the course setting (which itself defaults to \"retry-loop\"). Only meaningful on steps pages."
        },
        "notes": {
          "description": "Presenter/author notes",
          "type": "string"
        },
        "scenarioPoints": {
          "type": "number",
          "minimum": 0,
          "description": "Scenario (decision-quality) points added to the learner's scenario score on first entry to this page per attempt (SPEC rev 21). Separate from game/assessment points; reported alongside the main score on results."
        },
        "objectiveIds": {
          "description": "Linked learning-objective ids; overrides the section's",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "size": {
          "properties": {
            "h": {
              "type": "number"
            },
            "w": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "theme": {
          "$ref": "#/$defs/theme",
          "description": "Section/page theme override"
        },
        "title": {
          "type": "string"
        },
        "triggers": {
          "items": {
            "$ref": "#/$defs/trigger"
          },
          "type": "array"
        },
        "durationMs": {
          "type": "number",
          "minimum": 0,
          "description": "Scene duration in ms for timeline animation and video export (SPEC \u00a77.7, rev 24)."
        },
        "cuePoints": {
          "description": "Named cue points on the page scene clock, in seconds (SPEC \u00a79, rev 71). When playback crosses one (forward crossings only), the player fires a cue-point trigger event naming it, with the page as the source. Ids are unique across the page cues and the page media objects cues.",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "at": {
                "type": "number",
                "minimum": 0
              },
              "action": {
                "$ref": "#/$defs/cueAction"
              }
            },
            "required": [
              "id",
              "at"
            ]
          }
        },
        "hideNav": {
          "description": "Hide the learner Previous/Next navigation pair on this page only (SPEC section 5, rev 75). Absent or false = the pair shows. Hides chrome only: trigger-driven navigation is unaffected.",
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "layers"
      ],
      "type": "object"
    },
    "position": {
      "properties": {
        "h": {
          "type": "number"
        },
        "unit": {
          "default": "px",
          "enum": [
            "px",
            "%"
          ]
        },
        "w": {
          "type": "number"
        },
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "publish": {
      "properties": {
        "lms": {
          "properties": {
            "identifier": {
              "type": "string"
            },
            "launchSize": {
              "properties": {
                "h": {
                  "type": "number"
                },
                "w": {
                  "type": "number"
                }
              },
              "type": "object"
            },
            "masteryScore": {
              "type": "number"
            },
            "standard": {
              "enum": [
                "scorm-1.2",
                "scorm-2004",
                "xapi",
                "cmi5",
                "none"
              ]
            }
          },
          "type": "object"
        },
        "objectives": {
          "items": {
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "title"
            ],
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "resource": {
      "properties": {
        "alt": {
          "type": "string"
        },
        "captions": {
          "items": {
            "properties": {
              "kind": {
                "enum": [
                  "captions",
                  "subtitles"
                ]
              },
              "lang": {
                "type": "string"
              },
              "src": {
                "type": "string"
              }
            },
            "required": [
              "src",
              "lang"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "duration": {
          "description": "Seconds, for audio/video",
          "type": "number"
        },
        "extensions": {
          "$ref": "#/$defs/extensions"
        },
        "id": {
          "type": "string"
        },
        "kind": {
          "enum": [
            "image",
            "audio",
            "video",
            "document",
            "font",
            "other"
          ]
        },
        "mime": {
          "type": "string"
        },
        "poster": {
          "description": "Resource id of poster image",
          "type": "string"
        },
        "src": {
          "description": "Relative path from course.json",
          "type": "string"
        },
        "size": {
          "description": "File size in bytes, when known. Importers may record it at conversion time; the tech-large-media Course Health check uses it to flag oversized assets.",
          "type": "integer",
          "minimum": 0
        },
        "title": {
          "type": "string"
        },
        "transcript": {
          "$ref": "#/$defs/richText",
          "description": "Text transcript for audio/video content (sanitized HTML fragment)"
        }
      },
      "required": [
        "id",
        "kind",
        "src"
      ],
      "type": "object"
    },
    "richText": {
      "type": "string",
      "description": "Sanitized HTML fragment. Allowlist tags: p,h1-h6,ul,ol,li,blockquote,pre,code,strong,b,em,i,u,s,del,a,br,hr,table,thead,tbody,tfoot,tr,th,td,sub,sup,span,div,img,figure,figcaption. Allowlist attributes: href,title,alt,src,colspan,rowspan,start,type,class. Forbidden: script,style,iframe,object,embed,form,inputs,on* handlers, style attribute, javascript: URLs."
    },
    "section": {
      "properties": {
        "extensions": {
          "$ref": "#/$defs/extensions"
        },
        "id": {
          "type": "string"
        },
        "layout": {
          "enum": [
            "fixed",
            "flow",
            "steps"
          ]
        },
        "adaptiveTarget": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "description": "Steps adaptivity (SPEC rev 53): the section's understanding target, a percent. Present = adaptivity on for this section (paired Support steps surface on a missed Core question; Stretch steps unlock when the Steps understanding estimate reaches the target; score/completion pools are the Core set). Absent = the section plays linearly."
        },
        "objectiveIds": {
          "description": "Linked learning-objective ids for this group of pages",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "pages": {
          "items": {
            "$ref": "#/$defs/page"
          },
          "minItems": 1,
          "type": "array"
        },
        "theme": {
          "$ref": "#/$defs/theme"
        },
        "title": {
          "type": "string"
        },
        "backgroundAudio": {
          "$ref": "#/$defs/backgroundAudio"
        },
        "masterId": {
          "type": "string",
          "description": "Default slide master for this section's pages (SPEC §5.4, rev 71): the id of a course.masters entry. A page's own masterId wins. A dangling id is ignored by readers. Absent = no master unless a page sets its own."
        }
      },
      "required": [
        "id",
        "pages"
      ],
      "type": "object"
    },
    "theme": {
      "properties": {
        "designSystemId": {
          "description": "Design system this theme belongs to (SPEC section 14, rev 95, Flow Design System 2.0). Absent = classic, so all 33 pre-rev-95 premade themes and existing courses are unchanged.",
          "enum": [
            "classic",
            "frosted-glass",
            "editorial-noir",
            "clinical-clarity",
            "sunlit-atelier",
            "precision-dark",
            "studio-kinetic",
            "vice-sunset"
          ]
        },
        "blockSurface": {
          "description": "Default block surface treatment (SPEC section 14, rev 96): flat means top-level flow blocks sit directly on the page background with no per-block surface by default; carded means they carry the carded surface. Absent = the reader design-system default; Classic and pre-rev-96 themes keep the historical rendering. A per-block blockSurface or an explicit per-block background spec wins over this default.",
          "enum": [
            "flat",
            "carded"
          ]
        },
        "surfaceEffects": {
          "additionalProperties": false,
          "description": "Free-string surface effect values (SPEC section 14, rev 95): rgba, gradient, and other non-hex paint values live ONLY here, never in palette (palette stays hex-only). Absent keys = the reader default for the theme design system.",
          "properties": {
            "borderSubtle": {
              "type": "string"
            },
            "borderOnInverted": {
              "type": "string"
            },
            "glassFill": {
              "type": "string"
            },
            "glassFillStrong": {
              "type": "string"
            },
            "glassFallbackBg": {
              "type": "string"
            },
            "glassBorder": {
              "type": "string"
            },
            "glassHighlight": {
              "type": "string"
            },
            "ambientMesh": {
              "type": "string"
            },
            "gradientSignature": {
              "type": "string"
            },
            "progressGradient": {
              "type": "string"
            },
            "focusRing": {
              "type": "string"
            },
            "glassBlurPx": {
              "type": "number"
            },
            "glassSaturate": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "displayWeight": {
          "description": "Display heading weight (SPEC section 14, rev 95). Absent = the reader default.",
          "type": "number"
        },
        "headingWeight": {
          "description": "Heading weight (SPEC section 14, rev 95). Absent = the reader default (700 historically).",
          "type": "number"
        },
        "displayTracking": {
          "description": "Display heading letter-spacing (SPEC section 14, rev 95), as a CSS letter-spacing value. Absent = normal spacing.",
          "type": "string"
        },
        "kickerStyle": {
          "description": "Kicker (eyebrow label) treatment for text objects carrying a kicker (SPEC section 14, rev 95). Absent = the reader default.",
          "enum": [
            "mono-caps",
            "pill-outline",
            "pill-glass",
            "plain-caps",
            "slash-index"
          ]
        },
        "sectionPaddingY": {
          "description": "Section vertical padding in px (SPEC section 14, rev 95). Absent = the reader default.",
          "type": "number"
        },
        "gridGap": {
          "description": "Grid gap in px (SPEC section 14, rev 95). Absent = the reader default.",
          "type": "number"
        },
        "cardPadding": {
          "description": "Card padding in px (SPEC section 14, rev 95). Absent = the reader default.",
          "type": "number"
        },
        "cardRadius": {
          "description": "Card corner radius in px (SPEC section 14, rev 95). Absent = the reader default.",
          "type": "number"
        },
        "mediaRadius": {
          "description": "Media corner radius in px (SPEC section 14, rev 95). Absent = the reader default.",
          "type": "number"
        },
        "cardElevation": {
          "description": "Card elevation treatment (SPEC section 14, rev 95). Absent = the reader default.",
          "enum": [
            "none",
            "hairline",
            "soft-shadow",
            "frosted-glass"
          ]
        },
        "defaultDivider": {
          "description": "Default divider between sections (SPEC section 14, rev 95). Absent = the reader default.",
          "enum": [
            "none",
            "hairline",
            "faded-hairline",
            "spacing-only"
          ]
        },
        "surfaceTexture": {
          "description": "Surface texture treatment (SPEC section 14, rev 95). Absent = none.",
          "enum": [
            "none",
            "subtle-grain",
            "dot-grid",
            "ambient-mesh"
          ]
        },
        "navMode": {
          "description": "Player navigation chrome mode (SPEC section 14, rev 95). Absent = classic-sidebar, the historical chrome.",
          "enum": [
            "classic-sidebar",
            "floating-glass-pill",
            "minimal-top-bar",
            "chapter-rail"
          ]
        },
        "progressStyle": {
          "description": "Progress indicator style (SPEC section 14, rev 95). Absent = the reader default.",
          "enum": [
            "sidebar-percent",
            "top-hairline-bar",
            "floating-pill-fraction"
          ]
        },
        "headerBlur": {
          "description": "Whether the player header uses a backdrop blur (SPEC section 14, rev 95). Absent = the reader default.",
          "type": "boolean"
        },
        "motionPreset": {
          "description": "Motion preset (SPEC section 14, rev 95). Absent = classic-subtle behavior, the historical render. prefers-reduced-motion always wins.",
          "enum": [
            "none",
            "classic-subtle",
            "liquid-float",
            "editorial-veil",
            "clinical-crisp",
            "atmospheric-parallax",
            "kinetic-stagger",
            "cinematic-dusk"
          ]
        },
        "motionProfile": {
          "description": "Motion profile (SPEC section 14, rev 95): the parameterized motion profile name; motionPreset is the author-facing preset alias. Absent = the reader default.",
          "enum": [
            "none",
            "classic-subtle",
            "liquid-float",
            "editorial-veil",
            "clinical-crisp",
            "atmospheric-parallax",
            "kinetic-stagger",
            "cinematic-dusk"
          ]
        },
        "motionDurationMs": {
          "description": "Base motion duration in ms (SPEC section 14, rev 95). Absent = the preset default.",
          "type": "number"
        },
        "motionStaggerMs": {
          "description": "Motion stagger step in ms (SPEC section 14, rev 95). Absent = the preset default.",
          "type": "number"
        },
        "defaultParallaxStrength": {
          "description": "Default parallax strength for parallax media (SPEC section 14, rev 95). Absent = the reader default.",
          "type": "number"
        },
        "glassBlurPx": {
          "description": "Glass backdrop blur radius in px at theme level (SPEC section 14, rev 95). Absent = the design system default.",
          "type": "number"
        },
        "glassSaturate": {
          "description": "Glass backdrop saturation multiplier at theme level (SPEC section 14, rev 95). Absent = the design system default.",
          "type": "number"
        },
        "componentSkins": {
          "additionalProperties": false,
          "description": "Per-component skin ids (SPEC section 14, rev 95): free-string skin names resolved by the reader for each component family. Absent keys = the design system default skin.",
          "properties": {
            "accordion": {
              "type": "string"
            },
            "process": {
              "type": "string"
            },
            "tabs": {
              "type": "string"
            },
            "quote": {
              "type": "string"
            },
            "callout": {
              "type": "string"
            },
            "cards": {
              "type": "string"
            },
            "quiz": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "blockEntranceAnimations": {
          "description": "Block entrance animations (scroll reveal) in players. Absent = ON (Rise's default, and the format's process.animate convention). prefers-reduced-motion always overrides to static regardless of this flag.",
          "type": "boolean"
        },
        "blockPadding": {
          "description": "Course-level default block padding in px (SPEC section 14, rev 80): the vertical padding a top-level flow block carries when it does not stamp its own (courseObject padding). Absent = the reader's historical block spacing, so themes stamped before this rev render exactly as before.",
          "properties": {
            "bottom": {
              "minimum": 0,
              "type": "number"
            },
            "top": {
              "minimum": 0,
              "type": "number"
            }
          },
          "type": "object"
        },
        "buttonStyle": {
          "description": "Button treatment (SPEC section 14, rev 80), decoupled from corners (which shapes blocks/cards): the scheme buttons render in and their own corner shape. Absent = the reader's historical button treatment, so existing themes are unchanged.",
          "properties": {
            "corners": {
              "enum": [
                "sharp",
                "rounded",
                "pill"
              ]
            },
            "scheme": {
              "enum": [
                "light",
                "dark",
                "accent"
              ]
            }
          },
          "type": "object"
        },
        "captionTone": {
          "description": "Caption / small-print color treatment (SPEC section 14, rev 77): \"strong\" points caption-step reading text at the reader's stronger secondary text color instead of its faintest step; \"quiet\" and absent keep the historical faint treatment, so pre-rev documents render unchanged. The built-in standard themes carry \"strong\"; the Rise theme carries neither value.",
          "enum": [
            "strong",
            "quiet"
          ]
        },
        "chrome": {
          "description": "Player header/footer variant id (e.g. minimal, branded, classroom); unknown values fall back to the reader default",
          "type": "string"
        },
        "colorScheme": {
          "description": "Author-chosen player color scheme; the learner-facing default (learners may override with a toggle). Defaults to light when absent.",
          "enum": [
            "light",
            "dark"
          ]
        },
        "corners": {
          "enum": [
            "sharp",
            "rounded",
            "pill"
          ]
        },
        "fonts": {
          "properties": {
            "display": {
              "type": "string"
            },
            "body": {
              "type": "string"
            },
            "heading": {
              "type": "string"
            },
            "mono": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "headingLineHeight": {
          "description": "Heading line heights per level, unitless (SPEC section 14, rev 77). Absent levels (and an absent object) render the historical flat 1.25 at every level, so pre-rev documents render unchanged. The built-in standard themes carry the guidance gradient (h1 1.1, h2 1.15, h3 1.2, h4 1.25); the Rise theme carries the flat 1.25 at every level.",
          "properties": {
            "h1": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "h2": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "h3": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "h4": {
              "exclusiveMinimum": 0,
              "type": "number"
            }
          },
          "type": "object"
        },
        "headingTracking": {
          "description": "Heading letter-spacing (tracking) for the large levels, in em (SPEC section 14, rev 77). Absent = normal spacing, the pre-rev rendering. The built-in standard themes carry -0.01 on h1/h2; the Rise theme carries 0. A run-level authored letter-spacing replaces the role value for that run.",
          "properties": {
            "h1": {
              "type": "number"
            },
            "h2": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "id": {
          "description": "Named theme reference (premade library or user-saved set); inline palette/fonts/corners override it",
          "type": "string"
        },
        "iconSet": {
          "description": "Icon set the theme draws its content icons from (SPEC §14, rev 65): a bundled set id, stored by reference — glyph data is never embedded in the document. Render sites ask for one of the 15 semantic slots (info, check, x, warning, partial, chevron-right, chevron-down, and the eight badge names star, trophy, medal, flame, target, crown, ribbon, gem) and the reader resolves (set, slot) to that set's glyph. Absent = the legacy rendering — exactly the marks readers drew before rev 65 — so pre-rev-65 documents render unchanged. Any value outside this enum fails validation.",
          "enum": [
            "lucide",
            "tabler",
            "heroicons-outline",
            "heroicons-solid"
          ]
        },
        "logo": {
          "description": "Resource id of a logo image shown in the player chrome",
          "type": "string"
        },
        "name": {
          "description": "Display name for a user-defined theme",
          "type": "string"
        },
        "palette": {
          "properties": {
            "surfaceAlt": {
              "$ref": "#/$defs/color"
            },
            "surfaceInverted": {
              "$ref": "#/$defs/color"
            },
            "textMuted": {
              "$ref": "#/$defs/color"
            },
            "textOnInverted": {
              "$ref": "#/$defs/color"
            },
            "textMutedOnInverted": {
              "$ref": "#/$defs/color"
            },
            "accent": {
              "$ref": "#/$defs/color"
            },
            "accents": {
              "description": "The full six-accent scheme of an imported or ported theme, in scheme order (OOXML accent1-accent6). primary is the named view of accents[0] and accent of accents[1]; question types, charts, and callouts draw the wider set from here. Absent = the theme carries only its named roles.",
              "items": {
                "$ref": "#/$defs/color"
              },
              "maxItems": 6,
              "minItems": 6,
              "type": "array"
            },
            "background": {
              "$ref": "#/$defs/color"
            },
            "danger": {
              "$ref": "#/$defs/color"
            },
            "link": {
              "$ref": "#/$defs/color"
            },
            "primary": {
              "$ref": "#/$defs/color"
            },
            "secondary": {
              "$ref": "#/$defs/color"
            },
            "success": {
              "$ref": "#/$defs/color"
            },
            "surface": {
              "$ref": "#/$defs/color"
            },
            "text": {
              "$ref": "#/$defs/color"
            }
          },
          "type": "object"
        },
        "typeScale": {
          "description": "Type scale in px (Element Wave C). One coherent scale shared by the editor canvas, the player, and the SCORM runtime; readers map each present step onto their --ocf-type-* variable. Absent steps fall back to the built-in defaults (h1 40, h2 32, h3 22, h4 18, lead 20, label 15, body 17, small 14, caption 13, quote 24, statement 24 \u2014 the Rise-measured scale adopted 2026-10-25, rev 40, with h1/h2 re-based 2026-11-14, rev 70). Per-object authored font-size overrides still win.",
          "properties": {
            "display": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "displayPeak": {
              "description": "Peak display step in px (#1811): the display size for cover bands and Statement bands only. Absent = the display step.",
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "body": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "caption": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "h1": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "h2": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "h3": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "h4": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "label": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "lead": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "quote": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "small": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "statement": {
              "exclusiveMinimum": 0,
              "type": "number"
            }
          },
          "type": "object"
        },
        "locked": {
          "description": "Locked theme paths (rev 26, enterprise governance). Dot-notation paths authors cannot change, e.g. [\"palette.primary\", \"fonts\"]. A parent path locks all children.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "lineHeight": {
          "description": "Body-text line height (unitless multiplier) for course prose (rev 40). Absent = the reader's historical default (1.6 in the reference editor), so pre-rev-40 documents render unchanged; the built-in standard themes carry 1.6 and the Rise theme carries 1.9.",
          "exclusiveMinimum": 0,
          "type": "number"
        },
        "paraGap": {
          "description": "Paragraph gap in px (rev 40): space after paragraphs and list blocks in course prose. Absent = the reader's historical default (1em at the body size in the reference editor), so pre-rev-40 documents render unchanged; the built-in standard themes carry 17 and the Rise theme carries 34.",
          "exclusiveMinimum": 0,
          "type": "number"
        },
        "proseMeasure": {
          "description": "Prose measure cap in ch (SPEC section 14, rev 77): the widest a text block may run on flow pages. Media, rows, and interactive blocks keep the full content column; fixed/stage pages ignore it; an author's explicit full-width block opt-out wins. Absent = no cap (the pre-rev rendering). The built-in standard themes carry 75; the Rise theme carries none.",
          "exclusiveMinimum": 0,
          "type": "number"
        },
        "textWrap": {
          "description": "Line-break quality for course prose (SPEC section 14, rev 77): \"pretty\" applies text-wrap pretty to prose paragraphs and balance to headings (progressive enhancement; unsupported engines ignore both). \"off\" and absent render exactly as before this field existed. The built-in standard themes carry \"pretty\"; the Rise theme carries neither value.",
          "enum": [
            "pretty",
            "off"
          ]
        }
      },
      "type": "object"
    },
    "trigger": {
      "properties": {
        "actions": {
          "items": {
            "$ref": "#/$defs/action"
          },
          "minItems": 1,
          "type": "array"
        },
        "conditionMode": {
          "description": "How the trigger's conditions combine (rev 71): \"all\" = every condition must be true; \"any\" = at least one must be true. Absent = \"all\", the pre-rev-71 behavior; with no conditions the trigger fires under either mode.",
          "enum": [
            "all",
            "any"
          ],
          "type": "string"
        },
        "conditions": {
          "items": {
            "$ref": "#/$defs/condition"
          },
          "type": "array"
        },
        "elseActions": {
          "description": "Fallback actions (rev 71): when the event fires but the conditions do not pass, the player runs these instead of actions. Absent or empty = nothing runs on a failed condition check, the pre-rev-71 behavior.",
          "items": {
            "$ref": "#/$defs/action"
          },
          "type": "array"
        },
        "event": {
          "$ref": "#/$defs/triggerEvent"
        },
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "event",
        "actions"
      ],
      "type": "object"
    },
    "triggerEvent": {
      "properties": {
        "at": {
          "description": "Seconds, for cue-point",
          "type": "number"
        },
        "cuePoint": {
          "description": "Cue point id, for cue-point (SPEC rev 16)",
          "type": "string"
        },
        "key": {
          "description": "For key-press",
          "type": "string"
        },
        "target": {
          "description": "Object id, for drop-on",
          "type": "string"
        },
        "type": {
          "enum": [
            "click",
            "double-click",
            "hover",
            "hover-out",
            "timeline-start",
            "timeline-end",
            "cue-point",
            "media-complete",
            "variable-change",
            "key-press",
            "page-enter",
            "page-exit",
            "drop-on",
            "simulation-complete",
            "simulation-passed",
            "slider-change",
            "hotspot-click",
            "course-start",
            "object-state-change"
          ],
          "description": ""
        },
        "variable": {
          "description": "Variable id, for variable-change",
          "type": "string"
        },
        "hotspot": {
          "description": "Hotspot region id, for hotspot-click (SPEC rev 23)",
          "type": "string"
        },
        "object": {
          "description": "Object id, for object-state-change (SPEC rev 81). Absent = any object.",
          "type": "string"
        },
        "state": {
          "description": "State name the object changed to, for object-state-change (SPEC rev 81), matched case-insensitively. Absent = any state.",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "variable": {
      "properties": {
        "id": {
          "type": "string"
        },
        "initial": {},
        "name": {
          "type": "string"
        },
        "type": {
          "enum": [
            "text",
            "number",
            "boolean"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "type"
      ],
      "type": "object"
    },
    "simulationStep": {
      "type": "object",
      "description": "One recorded step of a simulation (SPEC \u00a77.3, rev 17; capture-era fields rev 68; description and correctAction rev 91).",
      "properties": {
        "id": {
          "type": "string"
        },
        "screen": {
          "type": "string",
          "description": "Resource id of the step's screenshot"
        },
        "caption": {
          "$ref": "#/$defs/richText",
          "description": "Sanitized HTML instruction shown to the learner"
        },
        "description": {
          "type": "string",
          "description": "Plain-text step description: the step's text alternative (SPEC \u00a77.3, rev 91). Screen readers read it, the keyboard path names the step by it, and static exports print it as the walkthrough text. Plain text, never HTML"
        },
        "correctAction": {
          "type": "string",
          "description": "Plain-text description of the correct action for this step (SPEC \u00a77.3, rev 91), e.g. \"Click the Reports menu\" or \"Press Enter\": names the target on the keyboard path, carries the step's feedback wording, and stands as the text alternative when no caption is authored. Plain text, never HTML"
        },
        "target": {
          "type": "object",
          "description": "Click region as fractions (0\u20131) of the screenshot",
          "properties": {
            "x": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "y": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "w": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "h": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            }
          },
          "required": [
            "x",
            "y",
            "w",
            "h"
          ]
        },
        "expectedKey": {
          "type": "string",
          "description": "Keypress step: the recorded key the learner must press (e.g. \"Enter\")"
        },
        "hint": {
          "$ref": "#/$defs/richText",
          "description": "Sanitized HTML hint shown after missesBeforeHint misses"
        },
        "showMe": {
          "type": "boolean",
          "description": "Offer a 'show me' highlight for this step; defaults to true"
        },
        "narration": {
          "type": "object",
          "description": "Per-step narration audio (SPEC \u00a77.3, rev 68): generated (TTS) or author-recorded after capture, stored as a course audio resource and carried by exports like any other media",
          "properties": {
            "audio": {
              "type": "string",
              "description": "Resource id of the step's narration audio"
            },
            "kind": {
              "enum": [
                "tts",
                "recorded"
              ],
              "description": "How the clip was produced"
            },
            "voice": {
              "type": "string",
              "description": "Voice id/name for generated narration (kind \"tts\")"
            }
          },
          "required": [
            "audio"
          ]
        },
        "expectedText": {
          "type": "object",
          "description": "Typed-text step (SPEC \u00a77.3, rev 68): the text the learner must enter. A step carries at most one expectation: target, expectedKey, or expectedText",
          "properties": {
            "value": {
              "type": "string",
              "description": "The expected text"
            },
            "match": {
              "enum": [
                "exact",
                "contains"
              ],
              "description": "How the learner's entry is compared; defaults to \"exact\""
            },
            "caseSensitive": {
              "type": "boolean",
              "description": "Compare case-sensitively; defaults to false"
            }
          },
          "required": [
            "value"
          ]
        },
        "redactions": {
          "type": "array",
          "description": "Author-drawn privacy masks over the screenshot (SPEC \u00a77.3, rev 68), as fractions (0\u20131) of the screenshot like target. Exporters MUST bake these masks into the exported image bytes \u2014 a package never ships the unmasked original; a renderer that receives a step whose screenshot still carries unapplied redaction rects renders the rects as opaque masks itself",
          "items": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "y": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "w": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "h": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            },
            "required": [
              "x",
              "y",
              "w",
              "h"
            ]
          }
        }
      },
      "required": [
        "id",
        "screen"
      ]
    },
    "processCard": {
      "type": "object",
      "description": "One intro/conclusion card of a process slideshow (SPEC \u00a77.11, rev 34).",
      "properties": {
        "title": {
          "$ref": "#/$defs/richText"
        },
        "body": {
          "$ref": "#/$defs/richText"
        }
      },
      "required": [
        "title"
      ]
    },
    "processStep": {
      "type": "object",
      "description": "One step card of a process slideshow (SPEC \u00a77.11, rev 34). The Step N badge is positional \u2014 rendered from the step's index, never stored.",
      "properties": {
        "title": {
          "$ref": "#/$defs/richText"
        },
        "body": {
          "$ref": "#/$defs/richText"
        },
        "media": {
          "type": "string",
          "description": "Resource id of the step's optional media"
        }
      },
      "required": [
        "title"
      ]
    },
    "sliderConfig": {
      "type": "object",
      "description": "Slider/dial configuration (SPEC \u00a77.3, rev 18): numeric input bound to a variable.",
      "properties": {
        "min": {
          "type": "number",
          "description": "Minimum value; defaults to 0"
        },
        "max": {
          "type": "number",
          "description": "Maximum value; defaults to 100"
        },
        "step": {
          "type": "number",
          "exclusiveMinimum": 0,
          "description": "Step increment; defaults to 1"
        },
        "value": {
          "type": "number",
          "description": "Initial value shown; defaults to min"
        },
        "variable": {
          "type": "string",
          "description": "Course variable id (or name) the current value is written to as the learner drags"
        },
        "orientation": {
          "type": "string",
          "enum": [
            "horizontal",
            "vertical"
          ],
          "description": "Slider track orientation; ignored by dial; defaults to horizontal"
        }
      }
    },
    "marker": {
      "type": "object",
      "description": "Numbered marker pin on an image (SPEC \u00a77.1, rev 18): x/y are fractions (0\u20131) of the image size.",
      "properties": {
        "id": {
          "type": "string"
        },
        "x": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "y": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "title": {
          "type": "string",
          "description": "Marker title shown in the popup"
        },
        "description": {
          "$ref": "#/$defs/richText",
          "description": "Sanitized HTML body shown in the marker popup"
        }
      },
      "required": [
        "id",
        "x",
        "y",
        "title"
      ]
    },
    "overlayLink": {
      "type": "object",
      "description": "One link in a rich band overlay's bottom link row (SPEC \u00a77.14, rev 45; typed target added rev 46): a label plus an href (URL or in-page anchor), with an optional typed target (another lesson, or a pop-up in the same course).",
      "properties": {
        "label": {
          "type": "string"
        },
        "href": {
          "type": "string"
        },
        "target": {
          "$ref": "#/$defs/linkTarget",
          "description": "Typed link target (rev 46); when present it wins over href at read time. href stays as the stored fallback."
        }
      },
      "required": [
        "label",
        "href"
      ],
      "additionalProperties": false
    },
    "linkTarget": {
      "type": "object",
      "description": "A typed link target (SPEC \u00a77.14, rev 46): 'url' follows the href; 'page' navigates the reader to another lesson in the same course; 'popup' opens a pop-up object in the same course as a modal dialog. A target whose id no longer exists degrades to inert text in readers.",
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "enum": [
                "url"
              ]
            },
            "href": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "href"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "enum": [
                "page"
              ]
            },
            "pageId": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "kind",
            "pageId"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "enum": [
                "popup"
              ]
            },
            "popupId": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "kind",
            "popupId"
          ],
          "additionalProperties": false
        }
      ]
    },
    "overlayColumn": {
      "type": "object",
      "description": "One side-by-side content column inside an image overlay (SPEC \u00a77.14, rev 46): the same content shape as the single overlay stack, plus its own width as a span of the 12-column grid.",
      "properties": {
        "text": {
          "$ref": "#/$defs/richText"
        },
        "body": {
          "$ref": "#/$defs/richText",
          "description": "Supporting paragraph under the headline."
        },
        "buttonLabel": {
          "type": "string"
        },
        "buttonHref": {
          "type": "string"
        },
        "buttonTarget": {
          "$ref": "#/$defs/linkTarget"
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/overlayLink"
          }
        },
        "span": {
          "type": "number",
          "minimum": 1,
          "maximum": 12,
          "description": "Column width as a 12-grid span; spans across the columns present are clamped at read time so the row never exceeds 12."
        }
      },
      "required": [
        "text"
      ],
      "additionalProperties": false
    },
    "backgroundAudio": {
      "type": "object",
      "properties": {
        "resource": {
          "type": "string",
          "description": "Resource id or URL of the audio file."
        },
        "loop": {
          "type": "boolean",
          "description": "Repeat the track. Defaults to true when omitted."
        },
        "volume": {
          "type": "number",
          "minimum": 0,
          "maximum": 1,
          "description": "Playback volume 0-1. Defaults to 1."
        },
        "startPage": {
          "type": "string",
          "description": "Page id where the track starts. Unset = first page of the scope."
        },
        "endPage": {
          "type": "string",
          "description": "Page id where the track stops (inclusive). Unset = last page of the scope."
        }
      },
      "required": [
        "resource"
      ],
      "additionalProperties": false,
      "description": "Background audio track (SPEC rev 19)."
    },
    "certificate": {
      "type": "object",
      "properties": {
        "layout": {
          "type": "string",
          "enum": [
            "classic",
            "modern",
            "minimal"
          ],
          "description": "Certificate visual layout. Defaults to \"classic\" when omitted."
        },
        "background": {
          "$ref": "#/$defs/color",
          "description": "Certificate background color. Defaults to \"#ffffff\"."
        },
        "logoResourceId": {
          "type": "string",
          "description": "Resource id of the logo image shown on the certificate."
        },
        "title": {
          "type": "string",
          "description": "Certificate title text; supports {{placeholders}}. Defaults to \"Certificate of Completion\"."
        },
        "body": {
          "type": "string",
          "description": "Body sentence; supports {{placeholders}}. Defaults to a sentence naming the learner and course."
        },
        "issuer": {
          "type": "string",
          "description": "Issuing organization name ({{issuer}})."
        },
        "signatureName": {
          "type": "string",
          "description": "Name printed on the signature line."
        },
        "fields": {
          "type": "object",
          "properties": {
            "learnerName": {
              "type": "boolean"
            },
            "courseTitle": {
              "type": "boolean"
            },
            "completionDate": {
              "type": "boolean"
            },
            "certificateId": {
              "type": "boolean"
            },
            "issuer": {
              "type": "boolean"
            },
            "signature": {
              "type": "boolean"
            }
          },
          "description": "Which certificate fields render. Each defaults to true when omitted."
        }
      },
      "additionalProperties": false,
      "description": "Course completion certificate template (SPEC rev 20)."
    },
    "certification": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Master switch for expiry/recertification on this course."
        },
        "validForMonths": {
          "type": "integer",
          "minimum": 1,
          "description": "How many calendar months a completion stays valid."
        },
        "expiryReminderDays": {
          "type": "integer",
          "minimum": 0,
          "description": "Days before expiry the player starts showing the recertification nudge. 0 disables the nudge."
        }
      },
      "required": [
        "validForMonths"
      ],
      "additionalProperties": false,
      "description": "Certification expiry / recertification rules (SPEC rev 20)."
    },
    "guardrails": {
      "type": "object",
      "additionalProperties": false,
      "description": "Design guardrails block (issue #1808): per-course Auto / Ask / Off mode and remembered per-guardrail Ask answers. Absent = Auto.",
      "properties": {
        "mode": {
          "type": "string",
          "enum": ["auto", "ask", "off"]
        },
        "preferences": {
          "type": "object",
          "additionalProperties": {
            "type": "string",
            "enum": ["apply", "keep"]
          }
        }
      }
    },
    "gamification": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Master switch for the gamification layer (points, badges, streaks, scenario scoring, leaderboards). Defaults to false."
        },
        "streakBonus": {
          "type": "object",
          "properties": {
            "every": {
              "type": "integer",
              "minimum": 2,
              "description": "Award the bonus every N consecutive correct answers."
            },
            "points": {
              "type": "number",
              "minimum": 0,
              "description": "Bonus game points awarded each time the streak hits a multiple of `every`."
            }
          },
          "required": [
            "every",
            "points"
          ],
          "additionalProperties": false,
          "description": "Author-configurable streak bonus (SPEC rev 21). Omitted = no streak bonus."
        },
        "badges": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/badge"
          },
          "description": "Author-defined badges, earned by rule templates evaluated in the player (SPEC rev 21)."
        },
        "leaderboard": {
          "type": "string",
          "enum": [
            "off",
            "personal",
            "class"
          ],
          "default": "off",
          "description": "Leaderboard mode: \"off\" (default), \"personal\" (personal bests across attempts, stored with completion records), or \"class\" (class leaderboard aggregated from the LRS via xAPI when an endpoint is configured; honest empty state otherwise)."
        }
      },
      "additionalProperties": false,
      "description": "Course-level gamification layer: points, badges, streaks, leaderboards, scenario scoring (SPEC rev 21)."
    },
    "pageBackgroundSpec": {
      "type": "object",
      "additionalProperties": false,
      "description": "Decorative per-page backdrop (SPEC §5, rev 105), defined for flow pages only.",
      "properties": {
        "token": {
          "type": "string",
          "enum": ["accent", "background", "danger", "deep", "ink", "primary", "secondary", "success", "surface"]
        },
        "hex": { "$ref": "#/$defs/color" },
        "shade": { "$ref": "#/$defs/backgroundSpec/properties/shade" },
        "alpha": { "type": "number", "minimum": 0, "maximum": 1 },
        "gradient": {
          "$ref": "#/$defs/backgroundSpec/properties/gradient",
          "description": "Gradient layer above the image; solid shade and alpha do not apply."
        },
        "image": { "type": "string", "description": "Stable resource id, assets path, HTTP(S) URL or data URL, not a resolved session or signed URL." },
        "imageFit": { "type": "string", "enum": ["cover", "contain", "auto"] },
        "imagePosition": {
          "type": "string",
          "enum": ["top-left", "top-center", "top-right", "center-left", "center", "center-right", "bottom-left", "bottom-center", "bottom-right"]
        },
        "imageWidth": { "type": "number", "minimum": 10, "maximum": 200 },
        "imageRepeat": { "type": "boolean" },
        "imageOpacity": { "type": "number", "minimum": 0, "maximum": 1 },
        "overlay": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "token": {
              "type": "string",
              "enum": ["accent", "background", "danger", "deep", "ink", "primary", "secondary", "success", "surface"]
            },
            "hex": { "$ref": "#/$defs/color" },
            "alpha": { "type": "number", "minimum": 0, "maximum": 1 }
          }
        }
      }
    },
    "backgroundSpec": {
      "additionalProperties": false,
      "description": "Themed background for an object (SPEC \u00a76.2, rev 30; per-block carriage rev 33; treatments rev 38). Carried on containers and on any top-level flow block. The color is a theme token reference (live across theme swaps) or a literal hex (fixed across themes); token wins when both are present. The foreground is never stored \u2014 readers derive a WCAG AA foreground from the effective background.",
      "properties": {
        "alignCenter": {
          "description": "Deprecated: centers band content when contentAlign is absent.",
          "type": "boolean"
        },
        "alpha": {
          "description": "Opacity of the color layer over what sits beneath, 0\u20131",
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "contentAlign": {
          "description": "Vertical alignment of band content; defaults to top and overrides alignCenter.",
          "enum": [
            "top",
            "center",
            "bottom"
          ],
          "type": "string"
        },
        "border": {
          "additionalProperties": false,
          "description": "Border around the painted surface (rev 38): a theme-token color or a literal hex (token wins); with neither, the border takes the spec's own base color",
          "properties": {
            "hex": {
              "$ref": "#/$defs/color",
              "description": "Literal border color \u2014 fixed across themes"
            },
            "style": {
              "description": "Border line style (SPEC \u00a76.2, rev 84). Absent = \"solid\" \u2014 every pre-rev-81 border renders solid. There is no \"hidden\" value: a hidden border is the absence of the border field itself",
              "enum": [
                "dashed",
                "solid"
              ],
              "type": "string"
            },
            "token": {
              "description": "Semantic theme token the border color follows (live across theme swaps)",
              "enum": [
                "accent",
                "background",
                "danger",
                "deep",
                "ink",
                "primary",
                "secondary",
                "success",
                "surface"
              ],
              "type": "string"
            },
            "width": {
              "description": "Border width in px",
              "minimum": 0,
              "type": "number"
            }
          },
          "type": "object"
        },
        "foreground": {
          "description": "Author-pinned foreground (text) choice; absent = automatic, derived for WCAG AA",
          "enum": [
            "dark",
            "light"
          ],
          "type": "string"
        },
        "gradient": {
          "additionalProperties": false,
          "description": "Background gradient (rev 103): the fill the background paints instead of its flat color when present, above any background image and below any pattern. Each stop carries a theme token (live across theme swaps) or a literal hex, and the token wins when both are present. The spec shade does not apply to the stops; the spec alpha composes over the whole gradient. The foreground derivation evaluates every stop, so text stays WCAG AA over any part of the gradient.",
          "properties": {
            "angle": {
              "description": "Custom linear angle in degrees (the CSS gradient angle: 0 = to top, 90 = to right, 180 = to bottom); wins over the direction preset when present; ignored for radial gradients",
              "maximum": 360,
              "minimum": 0,
              "type": "number"
            },
            "direction": {
              "description": "Linear direction preset; absent = \"to-bottom\"; ignored for radial gradients",
              "enum": [
                "diagonal",
                "to-bottom",
                "to-right"
              ],
              "type": "string"
            },
            "kind": {
              "description": "Gradient kind; absent = \"linear\"",
              "enum": [
                "linear",
                "radial"
              ],
              "type": "string"
            },
            "stops": {
              "description": "Color stops in order: two or three, each carrying a token or a hex",
              "items": {
                "additionalProperties": false,
                "properties": {
                  "hex": {
                    "$ref": "#/$defs/color",
                    "description": "Literal stop color, fixed across themes"
                  },
                  "position": {
                    "description": "Stop position on the gradient axis, 0 to 100 (percent); absent = evenly spaced",
                    "maximum": 100,
                    "minimum": 0,
                    "type": "number"
                  },
                  "token": {
                    "description": "Semantic theme token the stop color follows (live across theme swaps)",
                    "enum": [
                      "accent",
                      "background",
                      "danger",
                      "deep",
                      "ink",
                      "primary",
                      "secondary",
                      "success",
                      "surface"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "maxItems": 3,
              "minItems": 2,
              "type": "array"
            }
          },
          "required": [
            "stops"
          ],
          "type": "object"
        },
        "height": {
          "description": "Band height as a percentage of the frame height (5 to 200); absent = fit content (auto)",
          "type": "number",
          "minimum": 5,
          "maximum": 200
        },
        "hex": {
          "$ref": "#/$defs/color",
          "description": "Literal color (the color-wheel escape hatch) \u2014 fixed across themes"
        },
        "image": {
          "description": "Background image (resource id or URL) painted beneath the color tint",
          "type": "string"
        },
        "padding": {
          "default": "cozy",
          "description": "Vertical padding preset",
          "enum": [
            "compact",
            "cozy",
            "roomy"
          ],
          "type": "string"
        },
        "pattern": {
          "description": "Decorative pattern painted over the color layer (rev 38), generated as CSS from the spec's base color \u2014 never an image, never rasterized; decoration only, kept out of the accessibility tree",
          "enum": [
            "diagonal",
            "dots",
            "grid"
          ],
          "type": "string"
        },
        "patternShade": {
          "default": "soft",
          "description": "Shade step for the pattern marks: mixes the base color toward the page surface (strong also deepens toward black)",
          "enum": [
            "base",
            "faint",
            "soft",
            "strong"
          ],
          "type": "string"
        },
        "radius": {
          "description": "Corner radius preset for the painted surface (rev 38); absent = square corners",
          "enum": [
            "large",
            "medium",
            "small"
          ],
          "type": "string"
        },
        "shade": {
          "default": "base",
          "description": "Shade step: mixes the base color toward the page surface (strong also deepens toward black)",
          "enum": [
            "base",
            "faint",
            "soft",
            "strong"
          ],
          "type": "string"
        },
        "shape": {
          "default": "straight",
          "description": "Edge shape cut into the band on flow pages",
          "enum": [
            "angle",
            "curve",
            "peak",
            "straight",
            "wave"
          ],
          "type": "string"
        },
        "shapeEdge": {
          "default": "bottom",
          "description": "Which edge(s) the shape cuts",
          "enum": [
            "both",
            "bottom",
            "top"
          ],
          "type": "string"
        },
        "shapeSize": {
          "default": "subtle",
          "description": "Shape height",
          "enum": [
            "bold",
            "subtle"
          ],
          "type": "string"
        },
        "token": {
          "description": "Semantic theme token the background color follows (live across theme swaps)",
          "enum": [
            "accent",
            "background",
            "danger",
            "deep",
            "ink",
            "primary",
            "secondary",
            "success",
            "surface"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "badge": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Badge display name."
        },
        "description": {
          "type": "string",
          "description": "What the badge is for (shown on the Achievements view)."
        },
        "icon": {
          "$ref": "#/$defs/badgeIcon",
          "description": "Icon from the built-in set. Defaults to \"star\"."
        },
        "rule": {
          "$ref": "#/$defs/badgeRule"
        }
      },
      "required": [
        "id",
        "name",
        "rule"
      ],
      "additionalProperties": false,
      "description": "An author-defined badge (SPEC rev 21). Rules are templates \u2014 no expression language."
    },
    "badgeIcon": {
      "type": "string",
      "enum": [
        "star",
        "trophy",
        "medal",
        "flame",
        "target",
        "crown",
        "ribbon",
        "gem"
      ],
      "description": "Built-in badge icon set (SPEC rev 21)."
    },
    "badgeRule": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "score",
            "section",
            "streak"
          ],
          "description": "Rule template: \"score\" = earn when game score >= points; \"section\" = earn when the learner completes sectionId; \"streak\" = earn when the best streak reaches count consecutive correct answers."
        },
        "points": {
          "type": "number",
          "minimum": 0,
          "description": "\"score\" rules: the game-score threshold."
        },
        "sectionId": {
          "type": "string",
          "description": "\"section\" rules: the section whose completion earns the badge (all its pages visited)."
        },
        "count": {
          "type": "integer",
          "minimum": 2,
          "description": "\"streak\" rules: the consecutive-correct count that earns the badge."
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": false,
      "description": "Badge earn rule \u2014 a template, not an expression (SPEC rev 21)."
    },
    "governance": {
      "description": "Enterprise design-system governance (rev 26): brand locks, asset policy, publish gates, roles.",
      "type": "object",
      "properties": {
        "brandKitId": {
          "description": "Brand kit id this course is governed by.",
          "type": "string"
        },
        "assetPolicy": {
          "description": "Asset policy: open (default) or approved-only.",
          "enum": [
            "open",
            "approved-only"
          ]
        },
        "approvedAssets": {
          "description": "Resource IDs from the approved asset library (when assetPolicy is approved-only).",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "publishGate": {
          "type": "object",
          "properties": {
            "required": {
              "type": "boolean"
            },
            "approvedBy": {
              "type": "string"
            },
            "approvedAt": {
              "type": "string"
            },
            "requestedBy": {
              "type": "string"
            },
            "requestedAt": {
              "type": "string"
            }
          }
        },
        "roles": {
          "description": "Per-user roles (user id -> admin | author | reviewer).",
          "type": "object",
          "additionalProperties": {
            "enum": [
              "admin",
              "author",
              "reviewer"
            ]
          }
        }
      }
    },
    "brandKit": {
      "description": "Enterprise brand kit (rev 26): named theme with locks + approved assets.",
      "type": "object",
      "required": [
        "id",
        "name",
        "theme"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "theme": {
          "$ref": "#/$defs/theme"
        },
        "approvedAssets": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "name",
              "kind"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "src": {
                "description": "The asset's bytes as a data URL (BK-2). Absent = metadata-only approved-by-id entry.",
                "type": "string"
              },
              "mime": {
                "type": "string"
              },
              "size": {
                "type": "number"
              }
            }
          }
        },
        "requireLogo": {
          "type": "boolean"
        }
      }
    },
    "courseSettings": {
      "description": "Course-level player settings (rev 29; assistant added rev 31). All fields optional; absent settings mean the defaults (free navigation, revisiting allowed, all-pages completion, ask-to-resume, progress shown, course assistant off).",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "navigation": {
          "description": "free (default): learners can jump to any page. restricted: a page unlocks only when every page before it in course order is complete.",
          "enum": [
            "free",
            "restricted"
          ],
          "type": "string"
        },
        "allowRevisit": {
          "description": "Only meaningful when navigation is restricted. Defaults to true; when false, completed pages lock again (forward lock-step, no revisiting).",
          "type": "boolean"
        },
        "completionRule": {
          "description": "What counts as course completion: all-pages (default) = every page complete; assessment = the required assessment passed; both = both conditions.",
          "enum": [
            "all-pages",
            "assessment",
            "both"
          ],
          "type": "string"
        },
        "resume": {
          "description": "Resume behavior when a learner returns: ask (default) prompts, always resumes silently, never restarts.",
          "enum": [
            "ask",
            "always",
            "never"
          ],
          "type": "string"
        },
        "showProgress": {
          "description": "Show progress chrome in the player. Defaults to true.",
          "type": "boolean"
        },
        "stepsCelebration": {
          "description": "Steps celebration character (rev 52). Only meaningful for Steps courses (layout \"steps\", rev 51). When a character is chosen, the Steps player's answer and course-completion moments play that character's Lottie animation in place of the built-in CSS celebration bursts; the celebration sounds are unchanged. Absent (or \"none\") is the previous behavior: CSS bursts only. prefers-reduced-motion always wins in the player: the animation is shown as its still final frame, never in motion. The animation is decorative; the moment reads fully without it.",
          "enum": [
            "none",
            "checkmark",
            "star",
            "blob",
            "finch"
          ],
          "type": "string"
        },
        "stepsWrongAnswer": {
          "description": "Steps wrong-answer rule (rev 62). Only meaningful for Steps courses (layout \"steps\", rev 51). \"retry-loop\" (the default when absent) runs the Brilliant loop on a wrong answer: the next authored hint level opens (when the step carries hints), the learner must retry (the effective attempts allowance is at least 2), and the explanation shows only once the allowance is spent. \"reveal\" restores the pre-rev-62 behavior: the authored attempts allowance stands and a wrong answer at the allowance reveals the explanation. A step (page) may override the course choice with its own stepsWrongAnswer.",
          "enum": [
            "retry-loop",
            "reveal"
          ],
          "type": "string"
        },
        "welcome": {
          "description": "Show a welcome slide (cover image, title, table of contents) before the first content slide on a fresh start. Defaults to false. Player chrome only: never part of completion, scoring, or resume position.",
          "type": "boolean"
        },
        "assistant": {
          "description": "Learner-facing Course Assistant opt-in (rev 31). Object form so author guidance can join it later without a shape change. When enabled, players may offer learners an assistant that answers questions grounded in this course's objectives and the current slide's content. Absent (or enabled: false) means no assistant. The setting records author intent only \u2014 whether the assistant actually appears is a host/runtime decision (plan entitlement and usage caps live outside the format), so the course plays identically where the assistant is unavailable.",
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "enabled": {
              "description": "Offer the Course Assistant to learners. Defaults to false.",
              "type": "boolean"
            }
          },
          "required": [
            "enabled"
          ]
        }
      }
    },
    "roleplayBehaviour": {
      "type": "object",
      "description": "One observable behaviour in a roleplay debrief rubric (SPEC \u00a77.16, rev 64).",
      "required": [
        "id",
        "label",
        "good"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/id"
        },
        "label": {
          "type": "string"
        },
        "good": {
          "type": "string"
        },
        "watchFor": {
          "type": "string"
        }
      }
    },
    "roleplayScenario": {
      "type": "object",
      "description": "The authored scenario a roleplay block runs (SPEC \u00a77.16, rev 64). personaAgenda is server-side prompt material only \u2014 readers never render it to the learner.",
      "required": [
        "personaName",
        "personaRole",
        "brief",
        "learnerGoal",
        "personaAgenda",
        "openingLine",
        "maxTurns",
        "behaviours"
      ],
      "properties": {
        "personaName": {
          "type": "string"
        },
        "personaRole": {
          "type": "string"
        },
        "personaNotes": {
          "type": "string"
        },
        "brief": {
          "$ref": "#/$defs/richText"
        },
        "learnerGoal": {
          "type": "string"
        },
        "personaAgenda": {
          "type": "string"
        },
        "openingLine": {
          "type": "string"
        },
        "hint": {
          "type": "string"
        },
        "maxTurns": {
          "type": "integer",
          "minimum": 4,
          "maximum": 12
        },
        "behaviours": {
          "type": "array",
          "minItems": 1,
          "maxItems": 6,
          "items": {
            "$ref": "#/$defs/roleplayBehaviour"
          }
        },
        "voice": {
          "type": "object",
          "required": [
            "googleVoice",
            "languageCode"
          ],
          "properties": {
            "googleVoice": {
              "type": "string"
            },
            "languageCode": {
              "type": "string"
            }
          }
        }
      }
    },
    "scene3DVec3": {
      "type": "object",
      "description": "A 3D vector in scene units (SPEC section 7.18, rev 106).",
      "properties": {
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        },
        "z": {
          "type": "number"
        }
      },
      "required": [
        "x",
        "y",
        "z"
      ]
    },
    "scene3DTransform": {
      "type": "object",
      "description": "A transform snapshot (SPEC section 7.18, rev 106): position and scale in scene units, rotation in radians per axis.",
      "properties": {
        "position": {
          "$ref": "#/$defs/scene3DVec3"
        },
        "rotation": {
          "$ref": "#/$defs/scene3DVec3"
        },
        "scale": {
          "$ref": "#/$defs/scene3DVec3"
        }
      },
      "required": [
        "position",
        "rotation",
        "scale"
      ]
    },
    "scene3DEasing": {
      "type": "object",
      "description": "Cubic bezier easing control points (SPEC section 7.18, rev 106), CSS cubic-bezier semantics with implicit endpoints (0,0) and (1,1).",
      "properties": {
        "p1x": {
          "type": "number"
        },
        "p1y": {
          "type": "number"
        },
        "p2x": {
          "type": "number"
        },
        "p2y": {
          "type": "number"
        }
      },
      "required": [
        "p1x",
        "p1y",
        "p2x",
        "p2y"
      ]
    },
    "scene3DCamera": {
      "type": "object",
      "description": "A camera stored as data (SPEC section 7.18, rev 106): a named view with a focal length in millimetres (35mm full frame equivalent), a position, a rotation, and the point it looks at.",
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "focalLength": {
          "type": "number"
        },
        "position": {
          "$ref": "#/$defs/scene3DVec3"
        },
        "rotation": {
          "$ref": "#/$defs/scene3DVec3"
        },
        "lookAt": {
          "$ref": "#/$defs/scene3DVec3"
        }
      },
      "required": [
        "id",
        "label",
        "focalLength",
        "position",
        "rotation",
        "lookAt"
      ]
    },
    "scene3DPlacedObject": {
      "type": "object",
      "description": "One object placed in the scene (SPEC section 7.18, rev 106), stored in the scene's uuid-keyed objects record. assetRef is a course resource id, never embedded binary data and never a hosted token from another system.",
      "properties": {
        "uuid": {
          "type": "string"
        },
        "assetRef": {
          "type": "string"
        },
        "transform": {
          "$ref": "#/$defs/scene3DTransform"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "uuid",
        "transform"
      ]
    },
    "scene3DCharacterPlacement": {
      "type": "object",
      "description": "A character placed in the scene (SPEC section 7.18, rev 106). assetRef is the course resource id of the character GLB.",
      "properties": {
        "id": {
          "type": "string"
        },
        "assetRef": {
          "type": "string"
        },
        "transform": {
          "$ref": "#/$defs/scene3DTransform"
        },
        "initialClip": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "assetRef",
        "transform"
      ]
    },
    "scene3DHotspot": {
      "type": "object",
      "description": "A learner hotspot in the scene (SPEC section 7.18, rev 106): an anchor point, or an anchor riding on a scene object via objectUuid. The interaction payload is authored by later revisions.",
      "properties": {
        "id": {
          "type": "string"
        },
        "position": {
          "$ref": "#/$defs/scene3DVec3"
        },
        "objectUuid": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "position"
      ]
    },
    "scene3DStation": {
      "type": "object",
      "description": "A named station in the scene (SPEC section 7.18, rev 106): a place the learner travels to, optionally framed by the camera named in cameraId.",
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "position": {
          "$ref": "#/$defs/scene3DVec3"
        },
        "cameraId": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "label",
        "position"
      ]
    },
    "scene3DWalkPath": {
      "type": "object",
      "description": "A walk path (SPEC section 7.18, rev 106): ordered waypoints the character named by characterId follows. At playback the path compiles into a transform track sampled by the timeline core.",
      "properties": {
        "id": {
          "type": "string"
        },
        "characterId": {
          "type": "string"
        },
        "waypoints": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "position": {
                "$ref": "#/$defs/scene3DVec3"
              },
              "at": {
                "type": "number"
              }
            },
            "required": [
              "position"
            ]
          }
        },
        "loop": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "characterId",
        "waypoints"
      ]
    },
    "scene3DTimeline": {
      "type": "object",
      "description": "The scene's embedded timeline (SPEC section 7.18, rev 106): transform tracks plus clip lanes, stored inside the scene data.",
      "properties": {
        "duration": {
          "type": "number"
        },
        "fps": {
          "type": "number"
        },
        "tracks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "objectUuid": {
                "type": "string"
              },
              "keyframes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "time": {
                      "type": "number"
                    },
                    "transform": {
                      "$ref": "#/$defs/scene3DTransform"
                    },
                    "easing": {
                      "$ref": "#/$defs/scene3DEasing"
                    }
                  },
                  "required": [
                    "id",
                    "time",
                    "transform",
                    "easing"
                  ]
                }
              }
            },
            "required": [
              "objectUuid",
              "keyframes"
            ]
          }
        },
        "clipLanes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "characterId": {
                "type": "string"
              },
              "strip": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "sourceAssetRef": {
                    "type": "string"
                  },
                  "bakedClipIndex": {
                    "type": "number"
                  },
                  "name": {
                    "type": "string"
                  },
                  "startTime": {
                    "type": "number"
                  },
                  "duration": {
                    "type": "number"
                  },
                  "loop": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "sourceAssetRef",
                  "name",
                  "startTime",
                  "duration",
                  "loop"
                ]
              }
            },
            "required": [
              "id",
              "characterId",
              "strip"
            ]
          }
        }
      },
      "required": [
        "duration",
        "fps",
        "tracks",
        "clipLanes"
      ]
    },
    "scene3DScene": {
      "type": "object",
      "description": "The full data of one Scene3D scene (SPEC section 7.18, rev 106). environmentRef is the course resource id of the environment GLB; absent means no environment chosen yet. objects is a record keyed by uuid.",
      "properties": {
        "environmentRef": {
          "type": "string"
        },
        "objects": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/scene3DPlacedObject"
          }
        },
        "cameras": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/scene3DCamera"
          }
        },
        "defaultCameraId": {
          "type": "string"
        },
        "characters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/scene3DCharacterPlacement"
          }
        },
        "hotspots": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/scene3DHotspot"
          }
        },
        "stations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/scene3DStation"
          }
        },
        "walkPaths": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/scene3DWalkPath"
          }
        },
        "timeline": {
          "$ref": "#/$defs/scene3DTimeline"
        },
        "fallbackText": {
          "type": "string"
        }
      }
    },
    "localization": {
      "description": "Course localization block (SPEC §20, rev 56): per-locale string overlays over the language-neutral source document. Strict object at every level (the course.settings convention). Absent = the historical behaviour, byte for byte. The block is data only — the surfaces that read it are feature-flagged off by default, and writers round-trip it verbatim while the flag is off.",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "sourceLocale": {
          "description": "BCP-47 tag of the authoritative source language. Writers keep meta.language equal to this value. The block's source is fixed at creation.",
          "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
          "type": "string"
        },
        "locales": {
          "description": "Per-locale overlays keyed by BCP-47 tag (writers normalize to the tag's canonical casing). An empty object is valid and behaves exactly like a course with no block.",
          "type": "object",
          "propertyNames": {
            "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$"
          },
          "additionalProperties": {
            "$ref": "#/$defs/localeOverlay"
          }
        }
      },
      "required": [
        "sourceLocale",
        "locales"
      ]
    },
    "localeOverlay": {
      "description": "One locale's overlay (SPEC §20, rev 56). Strict object.",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "status": {
          "description": "Review state for the whole locale: draft from creation and while AI output is unexamined; in-review while a human pass is under way; reviewed only when a human with the language has completed the pass. A locale cannot be reviewed while any never-auto segment in it lacks a human pass.",
          "enum": [
            "draft",
            "in-review",
            "reviewed"
          ],
          "type": "string"
        },
        "segments": {
          "description": "Segment ID -> stored translation. Segment IDs are stable addresses derived from the document's own stable ids (SPEC §20.2), never from outline position or content. An ID that no longer resolves is an orphan: writers prune orphans on save, readers ignore them.",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/localizedSegment"
          }
        },
        "media": {
          "description": "Reserved for Phase 3 per-locale media overrides: resource id -> localized resource id. In the rev-56 schema so Phase 3 needs no second format rev; rev-56 readers ignore it and rev-56 writers never emit it.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "updatedAt": {
          "description": "ISO timestamp of the last write to this overlay.",
          "type": "string"
        }
      },
      "required": [
        "status",
        "segments"
      ]
    },
    "localizedSegment": {
      "description": "One stored translation (SPEC §20, rev 56): exactly the translated string, the hash of the source string it was made from, and the provenance of the current text. There is no per-segment status field — review state lives at the locale level plus this provenance.",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "t": {
          "description": "The translated string (sanitized HTML where the source field is sanitized HTML).",
          "type": "string"
        },
        "src": {
          "description": "SHA-256 hex of the exact stored source string (post-sanitization, UTF-8) this translation was made from. A segment is stale when this no longer equals the hash of today's source string for its ID; stale segments still render — staleness is an authoring-side signal only.",
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "by": {
          "description": "Provenance of the CURRENT text: ai = machine-drafted; human = human-written or human-edited (a human edit flips ai to human); xliff = imported from an XLIFF round-trip.",
          "enum": [
            "ai",
            "human",
            "xliff"
          ],
          "type": "string"
        }
      },
      "required": [
        "t",
        "src",
        "by"
      ]
    },
    "masterPage": {
      "description": "A slide master (SPEC §5.4, rev 71): a reusable page backdrop referenced LIVE by pages (page.masterId, falling back to section.masterId). Not part of the outline; its layers render beneath the referencing page's own layers, and its page-scope triggers evaluate before the page's own.",
      "properties": {
        "extensions": {
          "$ref": "#/$defs/extensions"
        },
        "id": {
          "type": "string"
        },
        "layers": {
          "items": {
            "$ref": "#/$defs/layer"
          },
          "minItems": 1,
          "type": "array"
        },
        "name": {
          "type": "string"
        },
        "size": {
          "properties": {
            "h": {
              "type": "number"
            },
            "w": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "theme": {
          "$ref": "#/$defs/theme"
        },
        "triggers": {
          "items": {
            "$ref": "#/$defs/trigger"
          },
          "type": "array"
        }
      },
      "required": [
        "id",
        "name",
        "layers"
      ],
      "type": "object"
    }
  },
  "$id": "https://finchlearn.com/spec/open-course-format.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Draft interchange format for e-learning course authoring. See SPEC.md.",
  "properties": {
    "assessments": {
      "items": {
        "$ref": "#/$defs/assessment"
      },
      "type": "array"
    },
    "dictionary": {
      "description": "Per-course spelling whitelist; travels with the .ocf file",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "display": {
      "description": "Course-level display settings (rev 11, rev 13)",
      "properties": {
        "contentWidth": {
          "description": "Content column width for flow pages (Rise-style): a max width in px (320\u20132400; defaults to 1024 when absent, suggested range 640\u20131600), or \"full\" (rev 99): the column spans 100% of the page width inside the standard 24px gutters, in both width modes.",
          "anyOf": [
            {
              "maximum": 2400,
              "minimum": 320,
              "type": "number"
            },
            {
              "enum": [
                "full"
              ],
              "type": "string"
            }
          ]
        },
        "widthMode": {
          "description": "Flow-page width mode: \"contained\" constrains all flow content to contentWidth px, centered (default); \"full\" runs the page canvas edge-to-edge \u2014 block units (rows: banners, full-width image rows) stretch full-bleed while text content stays constrained to contentWidth px and centered. Defaults to \"contained\" when absent.",
          "enum": [
            "contained",
            "full"
          ],
          "default": "contained",
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "extensions": {
      "$ref": "#/$defs/extensions"
    },
    "format": {
      "const": "open-course-format"
    },
    "glossary": {
      "items": {
        "properties": {
          "definition": {
            "type": "string"
          },
          "term": {
            "type": "string"
          }
        },
        "required": [
          "term"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "meta": {
      "$ref": "#/$defs/meta"
    },
    "objectives": {
      "description": "Learning objectives; linked from sections/pages/questions via objectiveIds",
      "items": {
        "$ref": "#/$defs/objective"
      },
      "type": "array"
    },
    "outline": {
      "items": {
        "$ref": "#/$defs/section"
      },
      "minItems": 1,
      "type": "array"
    },
    "publish": {
      "$ref": "#/$defs/publish"
    },
    "governance": {
      "$ref": "#/$defs/governance"
    },
    "resources": {
      "items": {
        "$ref": "#/$defs/resource"
      },
      "type": "array"
    },
    "theme": {
      "$ref": "#/$defs/theme"
    },
    "variables": {
      "items": {
        "$ref": "#/$defs/variable"
      },
      "type": "array"
    },
    "version": {
      "pattern": "^\\d+\\.\\d+\\.\\d+$",
      "type": "string"
    },
    "backgroundAudio": {
      "$ref": "#/$defs/backgroundAudio"
    },
    "certificate": {
      "$ref": "#/$defs/certificate"
    },
    "certification": {
      "$ref": "#/$defs/certification"
    },
    "gamification": {
      "$ref": "#/$defs/gamification"
    },
    "guardrails": {
      "$ref": "#/$defs/guardrails"
    },
    "settings": {
      "$ref": "#/$defs/courseSettings"
    },
    "localization": {
      "$ref": "#/$defs/localization"
    },
    "masters": {
      "description": "Slide masters (SPEC §5.4, rev 71): reusable page backdrops referenced live by pages and sections via masterId. Not part of the outline.",
      "items": {
        "$ref": "#/$defs/masterPage"
      },
      "type": "array"
    },
    "triggers": {
      "description": "Course-wide triggers (SPEC §5.5, rev 81): the page Trigger shape seated on the course. Evaluated on every page between the effective master's triggers and the page's own triggers, each list in authored order. The subset whose event is a global event (course-start, page-enter, variable-change, object-state-change) are the course's global listeners.",
      "items": {
        "$ref": "#/$defs/trigger"
      },
      "type": "array"
    }
  },
  "required": [
    "format",
    "version",
    "meta",
    "outline"
  ],
  "title": "Open Course Format (OCF) v0.1.0",
  "type": "object"
}
