{
  "type": "object",
  "properties": {
    "scenes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "scene_index": {"type": "integer"},
          "scene_heading": {"type": "string"},
          "beats": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "beat_index": {"type": "integer"},
                "change_type": {
                  "type": "string",
                  "enum": ["action", "reaction", "emotion", "information", "decision", "relationship", "situation"]
                },
                "before_state": {"type": "string"},
                "after_state": {"type": "string"},
                "description": {"type": "string"}
              },
              "required": ["beat_index", "change_type", "before_state", "after_state", "description"],
              "additionalProperties": false
            }
          }
        },
        "required": ["scene_index", "scene_heading", "beats"],
        "additionalProperties": false
      }
    }
  },
  "required": ["scenes"],
  "additionalProperties": false
}