{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/utmkit-co/json-schema/utmkit-co-report-schema.json",
  "title": "Report",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/utmkit-co-openapi.yml#/components/schemas/Report",
  "properties": {
    "capped": {
      "type": "boolean"
    },
    "comparison": {
      "description": "Present only when compare=true: the previous period, or {unavailable: sentence}",
      "properties": {
        "change": {
          "properties": {
            "clicks": {
              "type": [
                "integer",
                "null"
              ]
            },
            "conversions": {
              "type": [
                "integer",
                "null"
              ]
            },
            "scans": {
              "type": [
                "integer",
                "null"
              ]
            },
            "uniques": {
              "type": [
                "integer",
                "null"
              ]
            }
          },
          "type": "object"
        },
        "from": {
          "format": "date",
          "type": "string"
        },
        "to": {
          "format": "date",
          "type": "string"
        },
        "totals": {
          "properties": {
            "clicks": {
              "type": "integer"
            },
            "conversions": {
              "type": "integer"
            },
            "scans": {
              "type": "integer"
            },
            "uniques": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "unavailable": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "from": {
      "format": "date",
      "type": "string"
    },
    "group_by": {
      "type": "string"
    },
    "rows": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array"
    },
    "to": {
      "format": "date",
      "type": "string"
    },
    "totals": {
      "properties": {
        "clicks": {
          "type": "integer"
        },
        "conversions": {
          "type": "integer"
        },
        "scans": {
          "type": "integer"
        },
        "uniques": {
          "type": "integer"
        },
        "value": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "currency → decimal string, summed per currency; null when no conversion in the period carried a value. Never summed across currencies (spec 046)",
          "type": [
            "object",
            "null"
          ]
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}