{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uphealth-us/json-schema/uphealth-us-stream-exhausted-schema.json",
  "title": "StreamExhausted",
  "description": "The `200` body from `POST /streams/{id}/cue` when the sandbox corpus is exhausted.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uphealth-us-openapi.json#/components/schemas/StreamExhausted",
  "type": "object",
  "required": [
    "stream_id",
    "state",
    "sandbox_exhausted",
    "message",
    "_meta"
  ],
  "properties": {
    "stream_id": {
      "type": "integer"
    },
    "state": {
      "type": "string",
      "enum": [
        "ended"
      ]
    },
    "sandbox_exhausted": {
      "type": "boolean"
    },
    "message": {
      "type": "string"
    },
    "_meta": {
      "$ref": "#/$defs/MetaBlock"
    }
  },
  "$defs": {
    "MetaBlock": {
      "type": "object",
      "description": "Legal/disclosure block returned on every `200`/`201`. Buyer-facing\nsurfaces — do not strip. The per-cue `receptivity` score + `safety`\nverdict are NOT here — they live ON the cue object (see CueObject).\n",
      "required": [
        "api_version",
        "no_medical_advice",
        "not_samd",
        "license_attribution",
        "delivery_mode",
        "sequencing_ip_notice"
      ],
      "properties": {
        "api_version": {
          "type": "string",
          "description": "The API version that produced this response."
        },
        "no_medical_advice": {
          "type": "boolean",
          "description": "Always `true`. The content is informational, not medical advice."
        },
        "not_samd": {
          "type": "boolean",
          "description": "Always `true`. Not Software as a Medical Device."
        },
        "license_attribution": {
          "type": "string",
          "description": "Content licensing attribution."
        },
        "delivery_mode": {
          "type": "string",
          "enum": [
            "display",
            "deliver"
          ],
          "description": "The stream's delivery mode."
        },
        "sequencing_ip_notice": {
          "type": "string",
          "description": "IP notice covering the proprietary cueing decision."
        }
      }
    }
  }
}