{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/defianceinternational-io/json-schema/defianceinternational-io-get-content-snapshot-200-schema.json",
  "title": "getContentSnapshot.200",
  "description": "Runtime content-plane snapshot.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/defianceinternational-io-content-api-openapi.yml#/components/schemas/getContentSnapshot.200",
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "string",
      "const": "content-snapshot/v1"
    },
    "generationId": {
      "type": "string",
      "pattern": "^[0-9a-f]{16}$",
      "description": "The first 16 hex characters of slotSetDigest."
    },
    "slotSetDigest": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$",
      "description": "SHA-256 digest, 64 lower-case hex characters."
    },
    "forceFallback": {
      "type": "boolean",
      "description": "True while every slot is forced to its fallback."
    },
    "capturedAtMs": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "slots": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "active",
              "fallback",
              "absent"
            ],
            "description": "Which source serves the slot now."
          },
          "revisionId": {
            "description": "The active revision; present only when the source is active.",
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "mediaSetDigest": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "description": "SHA-256 digest, 64 lower-case hex characters."
              },
              {
                "type": "null"
              }
            ],
            "description": "The media set digest of the active revision; null otherwise."
          },
          "variants": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "starts_with",
                  "pattern": "^\\/media\\/.*",
                  "description": "Same-origin URL of the media object."
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$",
                  "description": "SHA-256 digest, 64 lower-case hex characters."
                },
                "mediaType": {
                  "type": "string"
                },
                "width": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "height": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "url",
                "sha256",
                "mediaType",
                "width",
                "height"
              ],
              "additionalProperties": false,
              "description": "One media variant of an active slot."
            }
          },
          "payload": {
            "description": "The payload of the active revision; absent otherwise.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "required": [
          "source",
          "mediaSetDigest",
          "variants"
        ],
        "additionalProperties": false,
        "description": "One content slot."
      }
    },
    "announcements": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "targetAudience": {
            "type": "string"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "body",
          "priority",
          "targetAudience",
          "expiresAt",
          "createdAt"
        ],
        "additionalProperties": false,
        "description": "Active site banner."
      }
    },
    "researchUseOnly": {
      "type": "string",
      "description": "The boundary statement that the public sender adds, stated once at the top level."
    }
  },
  "required": [
    "schemaVersion",
    "generationId",
    "slotSetDigest",
    "forceFallback",
    "capturedAtMs",
    "slots",
    "announcements",
    "researchUseOnly"
  ],
  "additionalProperties": false
}