{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codai-ro/json-schema/codai-ro-session-dispatch-response-schema.json",
  "title": "SessionDispatchResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codai-ro-sessions-api-openapi.yml#/components/schemas/SessionDispatchResponse",
  "type": "object",
  "required": [
    "control_id",
    "seq",
    "target_device_id",
    "mode",
    "queued",
    "pushed",
    "duplicate"
  ],
  "properties": {
    "control_id": {
      "type": "string"
    },
    "seq": {
      "type": [
        "integer",
        "null"
      ]
    },
    "target_device_id": {
      "type": "string",
      "format": "uuid"
    },
    "mode": {
      "type": "string",
      "enum": [
        "send",
        "open"
      ],
      "description": "The effective dispatch mode (`send` when the request omitted it)."
    },
    "queued": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "pushed": {
      "type": "boolean",
      "description": "`true` only when FCM accepted the wake message."
    },
    "duplicate": {
      "type": "boolean"
    },
    "push_reason": {
      "type": "string",
      "description": "Why no push was delivered — `no_push_token`, `no_token`, `auth_failed`, `network_error`, `unregistered` (token cleared) or `http_<status>`. Absent on success."
    }
  }
}