{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/almanac-ar/json-schema/almanac-ar-snapshot-response-schema.json",
  "title": "SnapshotResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/almanac-ar-v1-openapi.json#/components/schemas/SnapshotResponse",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "URL firmada R2, válida por expires_in_seconds."
    },
    "expires_in_seconds": {
      "type": "integer",
      "minimum": 0,
      "exclusiveMinimum": true
    },
    "dataset_id": {
      "type": "string"
    },
    "format": {
      "type": "string",
      "enum": [
        "parquet",
        "csv"
      ]
    },
    "snapshot": {
      "type": "object",
      "properties": {
        "snapshot_at": {
          "type": "string"
        },
        "rows_count": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "file_size_bytes": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        }
      },
      "required": [
        "snapshot_at",
        "rows_count",
        "file_size_bytes"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "url",
    "expires_in_seconds",
    "dataset_id",
    "format",
    "snapshot"
  ],
  "additionalProperties": false
}