{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/callidus-legal-ai/json-schema/callidus-legal-ai-inconsistency-run-status-response-schema.json",
  "title": "InconsistencyRunStatusResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/callidus-legal-ai-depositions-api-openapi.yml#/components/schemas/InconsistencyRunStatusResponse",
  "properties": {
    "run_id": {
      "type": "integer",
      "title": "Run Id"
    },
    "deposition_id": {
      "type": "string",
      "title": "Deposition Id"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "workflow_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Workflow Id"
    },
    "started_at": {
      "type": "string",
      "format": "date-time",
      "title": "Started At"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At"
    },
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Message"
    },
    "cross_witness_count": {
      "type": "integer",
      "title": "Cross Witness Count",
      "default": 0
    },
    "intra_witness_count": {
      "type": "integer",
      "title": "Intra Witness Count",
      "default": 0
    },
    "unclustered_review_count": {
      "type": "integer",
      "title": "Unclustered Review Count",
      "default": 0
    },
    "matter_context_count": {
      "type": "integer",
      "title": "Matter Context Count",
      "default": 0
    },
    "file_progress": {
      "items": {
        "$ref": "#/$defs/InconsistencyFileProgress"
      },
      "type": "array",
      "title": "File Progress"
    }
  },
  "type": "object",
  "required": [
    "run_id",
    "deposition_id",
    "status",
    "workflow_id",
    "started_at",
    "completed_at",
    "error_message"
  ],
  "$defs": {
    "InconsistencyFileProgress": {
      "properties": {
        "file_id": {
          "type": "string",
          "title": "File Id"
        },
        "deponent_name": {
          "type": "string",
          "title": "Deponent Name"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "fact_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fact Count"
        },
        "error_message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Message"
        }
      },
      "type": "object",
      "required": [
        "file_id",
        "deponent_name",
        "status"
      ],
      "title": "InconsistencyFileProgress"
    }
  }
}