{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/softsync-ai/json-schema/softsync-ai-run-public-workflow-response-dto-schema.json",
  "title": "RunPublicWorkflowResponseDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/softsync-ai-public-api-openapi.yml#/components/schemas/RunPublicWorkflowResponseDto",
  "type": "object",
  "properties": {
    "runId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "description": "Run status. `completed`/`failed`/`cancelled` are terminal; anything else means the run is still executing (poll the status endpoint)."
    },
    "output": {
      "type": "object",
      "description": "Workflow output (present when completed in sync mode)",
      "additionalProperties": true
    },
    "error": {
      "type": "string",
      "description": "Error message for failed runs"
    },
    "pollUrl": {
      "type": "string",
      "description": "Poll URL for async runs"
    }
  },
  "required": [
    "runId",
    "status"
  ]
}