{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cueframe-ai/json-schema/cueframe-ai-compose-create-response-schema.json",
  "title": "ComposeCreateResponse",
  "description": "POST /projects/:id/compose response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cueframe-ai-compose-api-openapi.yml#/components/schemas/ComposeCreateResponse",
  "type": "object",
  "properties": {
    "composeJobId": {
      "type": "string",
      "description": "Opaque compose job id; pass to the SSE stream URL."
    },
    "projectId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "failed"
      ],
      "description": "queued = normal; failed = startup failed and the job is already terminal (the SSE stream will emit a single `job_failed` frame and close)."
    },
    "reconciliationRequired": {
      "type": "boolean"
    },
    "streamUrl": {
      "description": "Relative SSE endpoint to stream this job's events (per compose-api-contract.md).",
      "type": "string"
    }
  },
  "required": [
    "composeJobId",
    "projectId",
    "status"
  ],
  "additionalProperties": false
}