{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cotal-ai/json-schema/cotal-ai-dashboard-meta-schema.json",
  "title": "DashboardMeta",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cotal-ai-dashboard-openapi.yml#/components/schemas/DashboardMeta",
  "type": "object",
  "properties": {
    "space": {
      "type": "string"
    },
    "pid": {
      "type": "integer"
    },
    "channelDeleteSupported": {
      "type": "boolean"
    },
    "post": {
      "description": "Whether this dashboard can post as the operator. `participant` posts as one operator for the life of the process; `off` says why posting is unavailable.",
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "participant"
              ]
            }
          },
          "required": [
            "mode"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "off"
              ]
            },
            "reason": {
              "type": "string"
            }
          },
          "required": [
            "mode",
            "reason"
          ],
          "additionalProperties": false
        }
      ]
    },
    "operatorId": {
      "type": "string",
      "description": "The operator's own roster id once the dashboard has posted, so the browser can tell its own messages apart."
    }
  },
  "required": [
    "space",
    "pid",
    "channelDeleteSupported",
    "post"
  ],
  "additionalProperties": false
}