{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brixsignage-com/json-schema/brixsignage-com-actor-schema.json",
  "title": "Actor",
  "description": "The credential making the call: an API key, a user session, or Brix support.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brixsignage-com-me-api-openapi.yml#/components/schemas/Actor",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "key"
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "API key id."
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The key's name."
        },
        "nodeId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The location the key is pinned to; null = workspace-wide. A pinned key cannot see or create outside that subtree."
        }
      },
      "required": [
        "kind",
        "id",
        "name",
        "nodeId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "user"
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "nodeId": {
          "type": "null"
        }
      },
      "required": [
        "kind",
        "id",
        "name",
        "email",
        "nodeId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "staff"
        },
        "id": {
          "type": "string",
          "description": "`staff:<email>` — Brix support opened the workspace as the customer."
        },
        "name": {
          "type": "string",
          "const": "Brix staff"
        },
        "email": {
          "type": "string"
        },
        "nodeId": {
          "type": "null"
        }
      },
      "required": [
        "kind",
        "id",
        "name",
        "email",
        "nodeId"
      ]
    }
  ]
}