{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brixsignage-com/json-schema/brixsignage-com-emergency-template-schema.json",
  "title": "EmergencyTemplate",
  "description": "A pre-armed emergency recipe.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brixsignage-com-emergency-templates-api-openapi.yml#/components/schemas/EmergencyTemplate",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Emergency template id."
    },
    "spaceId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "severity": {
      "type": "string",
      "enum": [
        "info",
        "warning",
        "critical"
      ]
    },
    "headline": {
      "type": "string"
    },
    "body": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "contentKind": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "media",
            "creative",
            "playlist",
            "app"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "contentId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "scopeKind": {
      "type": "string",
      "enum": [
        "all",
        "node",
        "screens"
      ]
    },
    "scopeNodeId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "nodeId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Home location (null = workspace root); permissions are checked here."
    },
    "prestage": {
      "type": "boolean",
      "description": "Content is cached on every in-scope screen before any trigger."
    },
    "createdAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    },
    "updatedAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    },
    "deletedAt": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO-8601 timestamp (UTC)."
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "spaceId",
    "name",
    "severity",
    "headline",
    "body",
    "contentKind",
    "contentId",
    "scopeKind",
    "scopeNodeId",
    "nodeId",
    "prestage",
    "createdAt",
    "updatedAt",
    "deletedAt"
  ]
}