{
  "type": "object",
  "properties": {
    "archiveId": {
      "type": "string"
    },
    "profileId": {
      "type": "string"
    },
    "policyId": {
      "type": "string"
    },
    "custody": {
      "type": "string"
    },
    "mimeType": {
      "type": "string"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "state": {
      "type": "string",
      "enum": [
        "RECEIVED",
        "VALIDATING",
        "ACCEPTED",
        "EVIDENCE_PENDING",
        "EVIDENCE_READY",
        "REJECTED",
        "EVIDENCE_FAILED"
      ]
    },
    "evidenceVersion": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "archiveId",
    "state"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "archiveId": "arc-test-001",
      "profileId": "profile-test-01",
      "policyId": "policy-test-v1",
      "custody": "CUSTOMER_MANAGED",
      "mimeType": "text/plain",
      "metadata": {
        "title": "LTANS-SYN-001 / r1"
      },
      "state": "EVIDENCE_READY",
      "evidenceVersion": 1
    }
  ]
}
