{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gbg/json-schema/gbg-journey-start-response-schema.json",
  "title": "JourneyStartResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gbg-journey-api-openapi.yml#/components/schemas/JourneyStartResponse",
  "type": "object",
  "properties": {
    "instanceId": {
      "type": "string"
    },
    "instanceUrl": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "started",
        "completed",
        "failed",
        "awaiting-input",
        "pending"
      ]
    },
    "message": {
      "type": "string"
    },
    "state": {
      "$ref": "#/$defs/StateFetchResponse"
    }
  },
  "required": [
    "instanceId",
    "status"
  ],
  "$defs": {
    "StateFetchResponse": {
      "type": "object",
      "properties": {
        "instanceId": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "context": {
          "type": "object",
          "additionalProperties": {}
        },
        "result": {
          "type": "object",
          "additionalProperties": {}
        }
      },
      "required": [
        "instanceId",
        "status"
      ]
    }
  }
}