{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://sitelensapi.com/schemas/report-bundle-manifest-v1.json",
  "title": "ReportBundleManifestV1",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "schemaVersion",
    "product",
    "reportSchemaVersion",
    "createdAt",
    "reportId",
    "profile",
    "formats",
    "files",
    "sensitivity",
    "generator"
  ],
  "properties": {
    "schemaVersion": { "const": 1 },
    "product": { "const": "SiteLens Reports" },
    "reportSchemaVersion": { "const": 1 },
    "bundleVersion": { "const": 1 },
    "createdAt": { "type": "string" },
    "reportId": { "type": "string" },
    "profile": {
      "type": "string",
      "enum": ["summary", "investigation", "full"]
    },
    "formats": {
      "type": "array",
      "items": { "type": "string", "enum": ["json", "markdown", "html"] }
    },
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["path", "role", "mimeType"],
        "additionalProperties": true,
        "properties": {
          "path": { "type": "string" },
          "role": {
            "type": "string",
            "enum": ["report", "manifest", "asset", "evidence", "other"]
          },
          "mimeType": { "type": "string" },
          "sha256": { "type": "string" }
        }
      }
    },
    "sensitivity": { "type": "object", "additionalProperties": true },
    "generator": { "type": "object", "additionalProperties": true }
  }
}
