{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cadencz-com/json-schema/cadencz-com-onboarding-run-read-schema.json",
  "title": "OnboardingRunRead",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cadencz-com-onboarding-api-openapi.yml#/components/schemas/OnboardingRunRead",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "source_kind": {
      "type": "string",
      "title": "Source Kind",
      "default": "url"
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Url"
    },
    "company_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Name"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "current_step": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Current Step"
    },
    "steps": {
      "items": {
        "$ref": "#/$defs/OnboardingStepRead"
      },
      "type": "array",
      "title": "Steps"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error"
    },
    "brain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brain Id"
    },
    "content_plan_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content Plan Id"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "finished_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Finished At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "status",
    "created_at"
  ],
  "$defs": {
    "OnboardingStepRead": {
      "properties": {
        "key": {
          "type": "string",
          "title": "Key"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "detail": {
          "type": "string",
          "title": "Detail",
          "default": ""
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Started At"
        },
        "finished_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Finished At"
        }
      },
      "type": "object",
      "required": [
        "key",
        "label",
        "status"
      ],
      "title": "OnboardingStepRead"
    }
  }
}