{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brixsignage-com/json-schema/brixsignage-com-creative-schema.json",
  "title": "Creative",
  "description": "A canvas design (data-bound boxes on a stage).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brixsignage-com-creatives-api-openapi.yml#/components/schemas/Creative",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Creative id."
    },
    "spaceId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "backgroundUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "boxes": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      },
      "description": "The design's boxes (text, image, data-bound fields…), in paint order."
    },
    "dataSourceId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The data source the boxes bind to, if any."
    },
    "stage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Stage preset name."
    },
    "stageWidth": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "stageHeight": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "scenes": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      },
      "description": "Scenes, for a multi-scene design; often empty."
    },
    "touchEnabled": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "pauseWhileUsed": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Hold the playlist while something a tap opened is up. Null = true."
    },
    "nodeId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "approvalState": {
      "type": "string",
      "enum": [
        "draft",
        "pending",
        "approved",
        "rejected"
      ],
      "description": "Review state. Editing an approved row returns it to `draft`."
    },
    "approvedSnapshot": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "JSON TEXT of the last approved version (not parsed)."
    },
    "sourceSignage": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "description": "The template it was made from (JSON), if any."
    },
    "look": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "description": "Accent / Brand Kit / light-dark settings (JSON), if set."
    },
    "masterId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The master template id, for a design made from one."
    },
    "shareLockDefault": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "description": "Which boxes recipients may edit when shared (JSON), if set."
    },
    "shareEditsSkipApproval": {
      "type": "boolean"
    },
    "templateSource": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "description": "The fill-in form behind a design made from a new template (JSON), if any."
    },
    "recalledAt": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO-8601 timestamp (UTC)."
        },
        {
          "type": "null"
        }
      ]
    },
    "recalledBy": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "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"
        }
      ],
      "description": "Always null on these reads: deleted rows are not listed."
    }
  },
  "required": [
    "id",
    "spaceId",
    "name",
    "backgroundUrl",
    "boxes",
    "dataSourceId",
    "stage",
    "stageWidth",
    "stageHeight",
    "scenes",
    "touchEnabled",
    "pauseWhileUsed",
    "nodeId",
    "approvalState",
    "approvedSnapshot",
    "sourceSignage",
    "look",
    "masterId",
    "shareLockDefault",
    "shareEditsSkipApproval",
    "templateSource",
    "recalledAt",
    "recalledBy",
    "createdAt",
    "updatedAt",
    "deletedAt"
  ]
}