{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/morvs-ai/json-schema/morvs-ai-equitable-sharing-envelope-schema.json",
  "title": "EquitableSharingEnvelope",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/morvs-ai-openapi.json#/components/schemas/EquitableSharingEnvelope",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "dataset",
    "snapshot",
    "caveats",
    "query",
    "data"
  ],
  "properties": {
    "schema_version": {
      "const": "doj-equitable-sharing-api.v1"
    },
    "dataset": {
      "const": "DOJ Equitable Sharing Agreement and Certification (ESAC)"
    },
    "snapshot": {
      "type": "object",
      "required": [
        "snapshot_id",
        "manifest_sha256",
        "source_data_as_of",
        "source_age_days",
        "freshness_status"
      ],
      "properties": {
        "snapshot_id": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}-[0-9a-f]{16}$"
        },
        "manifest_sha256": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "source_data_as_of": {
          "type": "string",
          "format": "date"
        },
        "source_age_days": {
          "type": "integer",
          "minimum": 0
        },
        "freshness_status": {
          "const": "stale_source_snapshot"
        }
      }
    },
    "caveats": {
      "type": "object",
      "minProperties": 6
    },
    "query": {
      "type": "object"
    },
    "data": {},
    "page": {
      "type": "object"
    }
  }
}