{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dibatto-com/json-schema/dibatto-com-rundown-response-schema.json",
  "title": "RundownResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dibatto-com-openapi.yml#/components/schemas/RundownResponse",
  "type": "object",
  "properties": {
    "rundown": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "show_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "date": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "pack_version": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "angle": {
                    "type": "string"
                  },
                  "your_take": {
                    "type": "string"
                  },
                  "cohost_take": {
                    "type": "string"
                  },
                  "citations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "quote": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url",
                        "quote"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "fight": {
                    "type": "string"
                  },
                  "talking_points": {
                    "type": "object",
                    "properties": {
                      "primer": {
                        "type": "string"
                      },
                      "key_facts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fact": {
                              "type": "string"
                            },
                            "citation": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "fact",
                            "citation"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "sides": {
                        "type": "object",
                        "properties": {
                          "for": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "against": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "for",
                          "against"
                        ],
                        "additionalProperties": false
                      },
                      "questions": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "host_line": {
                        "type": "string"
                      },
                      "jargon": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "term": {
                              "type": "string"
                            },
                            "definition": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "term",
                            "definition"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "primer",
                      "key_facts",
                      "sides",
                      "questions",
                      "host_line",
                      "jargon"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "title",
                  "angle",
                  "your_take",
                  "cohost_take",
                  "citations",
                  "fight"
                ],
                "additionalProperties": false
              }
            },
            "cold_open": {
              "type": [
                "string",
                "null"
              ]
            },
            "cost_cents": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "status": {
              "type": "string",
              "enum": [
                "queued",
                "generating",
                "ready",
                "failed"
              ]
            },
            "created_at": {
              "type": "string"
            },
            "fights": {
              "default": [],
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "why": {
                    "type": "string"
                  },
                  "host_side": {
                    "type": "string"
                  },
                  "cohost_side": {
                    "type": "string"
                  }
                },
                "required": [
                  "title",
                  "why",
                  "host_side",
                  "cohost_side"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "id",
            "show_id",
            "date",
            "pack_version",
            "items",
            "cold_open",
            "cost_cents",
            "status",
            "created_at",
            "fights"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "rundown"
  ],
  "additionalProperties": false
}