{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexusai-run/json-schema/nexusai-run-deploy-response-schema.json",
  "title": "DeployResponse",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexusai-run-openapi.yaml#/components/schemas/DeployResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique deployment ID"
    },
    "status": {
      "$ref": "#/$defs/DeploymentStatus"
    },
    "name": {
      "type": "string",
      "description": "Deployment name"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Public URL (available when running)"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the deployment was created"
    },
    "requestId": {
      "type": "string",
      "description": "Echo of the requestId if provided"
    }
  },
  "$defs": {
    "DeploymentStatus": {
      "type": "string",
      "enum": [
        "queued",
        "deploying",
        "running",
        "failed",
        "terminated"
      ],
      "description": "Current deployment status:\n- queued: Waiting to be processed\n- deploying: Container is being built/started\n- running: Container is running and accessible\n- failed: Deployment failed (check error field)\n- terminated: Container was stopped or destroyed\n"
    }
  }
}