{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://finance.entelekron.org/schemas/publication-manifest.schema.json",
  "title": "TVKUSD transparency publication manifest",
  "type": "object",
  "additionalProperties": false,
  "required": ["$schema", "schemaVersion", "controlPlaneId", "canonicalAssetId", "publicationId", "sequence", "publicationState", "publishedAt", "freshUntil", "previousManifestSha256", "evidenceIndex", "publicationControlProfile", "aggregate", "signatureStatus", "signatures", "transparencyLogEntries", "productionAuthorization", "notice"],
  "properties": {
    "$schema": {"const": "https://finance.entelekron.org/schemas/publication-manifest.schema.json"},
    "schemaVersion": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
    "controlPlaneId": {"const": "tvk-group:entelekron-financial-infrastructure"},
    "canonicalAssetId": {"const": "tvk-group:tvkusd"},
    "publicationId": {"type": "string", "minLength": 1},
    "sequence": {"type": "integer", "minimum": 1},
    "publicationState": {"enum": ["unsigned-prelaunch-only", "signed-prelaunch-only", "signed-production"]},
    "publishedAt": {"type": "string", "format": "date-time"},
    "freshUntil": {"type": "string", "format": "date-time"},
    "previousManifestSha256": {"anyOf": [{"type": "null"}, {"type": "string", "pattern": "^[a-f0-9]{64}$"}]},
    "evidenceIndex": {
      "type": "object",
      "additionalProperties": false,
      "required": ["path", "sha256", "documentCount"],
      "properties": {
        "path": {"const": "/transparency/evidence-index.json"},
        "sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
        "documentCount": {"type": "integer", "minimum": 1}
      }
    },
    "publicationControlProfile": {
      "type": "object",
      "additionalProperties": false,
      "required": ["path", "sha256"],
      "properties": {
        "path": {"const": "/transparency/publication-control-profile.json"},
        "sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
      }
    },
    "aggregate": {
      "type": "object",
      "additionalProperties": false,
      "required": ["algorithm", "framing", "sha256"],
      "properties": {
        "algorithm": {"const": "sha256"},
        "framing": {"const": "tvkusd-publication-root-v1-lf"},
        "sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
      }
    },
    "signatureStatus": {"enum": ["not-configured", "configured"]},
    "signatures": {"type": "array"},
    "transparencyLogEntries": {"type": "array"},
    "productionAuthorization": {"type": "boolean"},
    "notice": {"type": "string", "minLength": 1}
  }
}
