{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/krimskrams-xyz/json-schema/krimskrams-xyz-report-response-schema.json",
  "title": "ReportResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/payment-recon_krimskrams_xyz_openapi.json#/components/schemas/ReportResponse",
  "properties": {
    "chain": {
      "type": "string",
      "enum": [
        "tempo",
        "base"
      ],
      "title": "Chain"
    },
    "address": {
      "type": "string",
      "title": "Address"
    },
    "window": {
      "additionalProperties": {
        "type": "string",
        "format": "date-time"
      },
      "type": "object",
      "title": "Window"
    },
    "transfer_count": {
      "type": "integer",
      "title": "Transfer Count"
    },
    "total_usd": {
      "type": "string",
      "title": "Total Usd"
    },
    "classes": {
      "additionalProperties": {
        "$ref": "#/$defs/ClassSummary"
      },
      "type": "object",
      "title": "Classes"
    },
    "reconciles": {
      "type": "boolean",
      "title": "Reconciles"
    },
    "transfers": {
      "items": {
        "$ref": "#/$defs/TransferRow"
      },
      "type": "array",
      "title": "Transfers"
    },
    "truncated": {
      "type": "boolean",
      "title": "Truncated"
    },
    "note": {
      "type": "string",
      "title": "Note"
    }
  },
  "type": "object",
  "required": [
    "chain",
    "address",
    "window",
    "transfer_count",
    "total_usd",
    "classes",
    "reconciles",
    "transfers",
    "truncated",
    "note"
  ],
  "$defs": {
    "ClassSummary": {
      "properties": {
        "count": {
          "type": "integer",
          "title": "Count"
        },
        "total_usd": {
          "type": "string",
          "title": "Total Usd"
        }
      },
      "type": "object",
      "required": [
        "count",
        "total_usd"
      ],
      "title": "ClassSummary"
    },
    "TransferRow": {
      "properties": {
        "tx_hash": {
          "type": "string",
          "title": "Tx Hash"
        },
        "block": {
          "type": "integer",
          "title": "Block"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "title": "Timestamp"
        },
        "from": {
          "type": "string",
          "title": "From"
        },
        "amount_usd": {
          "type": "string",
          "title": "Amount Usd"
        },
        "class": {
          "type": "string",
          "enum": [
            "product",
            "protocol_fee",
            "unknown"
          ],
          "title": "Class"
        }
      },
      "type": "object",
      "required": [
        "tx_hash",
        "block",
        "timestamp",
        "from",
        "amount_usd",
        "class"
      ],
      "title": "TransferRow"
    }
  }
}