{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usagemax-com/json-schema/usagemax-com-snapshot-operation-schema.json",
  "title": "SnapshotOperation",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usagemax-com-openapi.json#/components/schemas/SnapshotOperation",
  "type": "object",
  "required": [
    "operation",
    "runId"
  ],
  "properties": {
    "operation": {
      "type": "string",
      "enum": [
        "begin",
        "sessions",
        "partitions",
        "complete",
        "fail"
      ]
    },
    "runId": {
      "type": "string",
      "maxLength": 80
    },
    "mode": {
      "type": "string",
      "enum": [
        "incremental",
        "full",
        "archives"
      ]
    },
    "sourceCount": {
      "type": "integer",
      "minimum": 0
    },
    "partitionCount": {
      "type": "integer",
      "minimum": 0
    },
    "inventoryComplete": {
      "type": "boolean",
      "description": "Confirms local file inventory traversal only; it does not certify parser coverage."
    },
    "inventoryErrors": {
      "type": "integer",
      "minimum": 0
    },
    "inventoryTruncated": {
      "type": "boolean"
    },
    "parserCoverageCertified": {
      "type": "boolean",
      "description": "True only when a parser manifest proves complete source/day coverage. Defaults to false."
    },
    "coverageStartDay": {
      "type": "string",
      "format": "date"
    },
    "coverageEndDay": {
      "type": "string",
      "format": "date"
    },
    "sessions": {
      "type": "array",
      "maxItems": 250
    },
    "partitions": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20
    }
  }
}