{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peoplescourt-ai/json-schema/peoplescourt-ai-canonical-hosted-record-bundle-manifest-schema.json",
  "title": "CanonicalHostedRecordBundleManifest",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peoplescourt-ai-case-record-api-openapi.yml#/components/schemas/CanonicalHostedRecordBundleManifest",
  "type": "object",
  "properties": {
    "schemaVersion": {
      "const": "case-record-bundle-v1"
    },
    "recipe": {
      "const": "sha256-canonical-json-v1"
    },
    "sourceGraphVersion": {
      "type": "string",
      "description": "Version of the exported record graph used for verification.",
      "enum": [
        "case-record-source-graph-v1",
        "case-record-source-graph-v2"
      ]
    },
    "recordSchema": {
      "type": "string",
      "description": "Schema of record/case.json. Present on graph v2 bundles.",
      "enum": [
        "party-case-record-v1",
        "court-case-record-v1",
        "case-record-v1"
      ]
    },
    "metadataSheets": {
      "type": "string",
      "description": "Whether exhibit metadata sheets are in the bundle (graph v2). Presence depends on the recipient’s authorized view.",
      "enum": [
        "withheld",
        "included"
      ]
    },
    "disputeId": {
      "type": "string"
    },
    "dispositionId": {
      "type": "string"
    },
    "caseRevision": {
      "type": "integer"
    },
    "awardRevision": {
      "type": "integer"
    },
    "profile": {
      "type": "string",
      "enum": [
        "party",
        "reviewer",
        "court"
      ]
    },
    "partySide": {
      "type": "string",
      "enum": [
        "claimant",
        "respondent"
      ]
    },
    "sourceSnapshotHash": {
      "type": "string"
    },
    "rules": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string"
        },
        "sha256": {
          "type": "string"
        }
      }
    },
    "snapshotAt": {
      "type": "string"
    },
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "mediaType": {
            "type": "string"
          },
          "byteLength": {
            "type": "integer"
          },
          "sha256": {
            "type": "string"
          },
          "sourceSha256": {
            "type": "string"
          },
          "sourceId": {
            "type": "string"
          },
          "category": {
            "type": "string"
          }
        }
      }
    },
    "exclusions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "sourceId": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        }
      }
    },
    "bundleId": {
      "type": "string"
    },
    "bundleHash": {
      "type": "string"
    }
  }
}