{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brixsignage-com/json-schema/brixsignage-com-override-schema.json",
  "title": "Override",
  "description": "A cast or an emergency override.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brixsignage-com-casts-api-openapi.yml#/components/schemas/Override",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Override (cast_… or emg_…) id."
    },
    "spaceId": {
      "type": "string",
      "description": "Workspace id."
    },
    "kind": {
      "type": "string",
      "enum": [
        "emergency",
        "cast"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "cleared",
        "expired"
      ]
    },
    "severity": {
      "type": "string",
      "enum": [
        "info",
        "warning",
        "critical"
      ],
      "description": "Always `info` for a cast."
    },
    "headline": {
      "type": "string",
      "description": "An emergency's message; for a cast, the content's name (or \"Cast\")."
    },
    "body": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "contentKind": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "media",
            "creative",
            "playlist",
            "app",
            "schedule"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "contentId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "contentName": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Name of the content on air: for a cast, the label it was started with, else the content's current name; null when there is no content or it no longer exists."
    },
    "scopeKind": {
      "type": "string",
      "enum": [
        "all",
        "node",
        "screens"
      ]
    },
    "scopeNodeId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The location, when `scopeKind` is `node`."
    },
    "nodeId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Location the override is attributed to (null = workspace root)."
    },
    "screenCount": {
      "type": "integer",
      "description": "Screens targeted, snapshotted when it started."
    },
    "triggeredBy": {
      "type": "string",
      "description": "User id, or `system`."
    },
    "triggeredAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    },
    "expiresAt": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO-8601 timestamp (UTC)."
        },
        {
          "type": "null"
        }
      ],
      "description": "Auto-clear time; null = until cleared."
    },
    "clearedBy": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "clearedAt": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO-8601 timestamp (UTC)."
        },
        {
          "type": "null"
        }
      ]
    },
    "triggeredByName": {
      "type": "string",
      "description": "Display name of `triggeredBy`."
    },
    "clearedByName": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "scopeName": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Location name, `All screens`, or null for a screen list."
    },
    "confirmedCount": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Active emergencies only: screens confirmed showing it now. Null otherwise."
    }
  },
  "required": [
    "id",
    "spaceId",
    "kind",
    "status",
    "severity",
    "headline",
    "body",
    "contentKind",
    "contentId",
    "contentName",
    "scopeKind",
    "scopeNodeId",
    "nodeId",
    "screenCount",
    "triggeredBy",
    "triggeredAt",
    "expiresAt",
    "clearedBy",
    "clearedAt",
    "triggeredByName",
    "clearedByName",
    "scopeName",
    "confirmedCount"
  ]
}