{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/klarefi-com/json-schema/klarefi-com-get-api-v1-cases-caseid-package-response-schema.json",
  "title": "GetApiV1CasesCaseidPackageResponse",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/klarefi-com-openapi-generated.yml#/components/schemas/GetApiV1CasesCaseidPackageResponse",
  "type": "object",
  "properties": {
    "schema_version": {
      "type": "string"
    },
    "generated_at": {
      "type": "string",
      "description": "ISO‑8601 timestamp"
    },
    "case": {
      "type": "object",
      "description": "Basic case metadata"
    },
    "decisions": {
      "type": "array",
      "description": "List of decision objects (may be empty)"
    },
    "items": {
      "type": "array",
      "description": "List of item objects (may be empty)"
    },
    "facts": {
      "type": "array",
      "description": "Facts associated with the case"
    },
    "documents": {
      "type": "array",
      "description": "Documents attached to the case"
    },
    "calculated_facts": {
      "type": "array",
      "description": "Facts calculated by the workflow"
    },
    "decision": {
      "type": "object",
      "description": "Decision details (offer or decline)"
    },
    "summary": {
      "type": "object",
      "description": "Counts of resolved, needs_input, failed, and document facts"
    },
    "case_file_url": {
      "type": "string",
      "description": "URL to the signed case file (may be null)"
    }
  }
}