{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chikocorp-com/json-schema/chikocorp-com-report-search-response-schema.json",
  "title": "ReportSearchResponse",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chikocorp-com-tron-usdt-risk-openapi.yml#/components/schemas/ReportSearchResponse",
  "type": "object",
  "required": [
    "reports",
    "pagination"
  ],
  "properties": {
    "reports": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SavedReportSummary"
      }
    },
    "pagination": {
      "type": "object",
      "required": [
        "page",
        "pageSize",
        "total",
        "totalAll",
        "totalPages"
      ],
      "properties": {
        "page": {
          "type": "integer",
          "minimum": 1
        },
        "pageSize": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "total": {
          "type": "integer",
          "minimum": 0,
          "description": "Matching reports."
        },
        "totalAll": {
          "type": "integer",
          "minimum": 0,
          "description": "All saved reports belonging to the current user, including those outside filters."
        },
        "totalPages": {
          "type": "integer",
          "minimum": 1
        }
      }
    }
  },
  "$defs": {
    "SavedReportSummary": {
      "type": "object",
      "required": [
        "id",
        "address",
        "riskScore",
        "riskTier",
        "confidence",
        "chain",
        "scoringVersion",
        "window",
        "createdAt"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "address": {
          "type": "string"
        },
        "label": {
          "type": [
            "string",
            "null"
          ],
          "description": "Latest non-null label from the current user's watchlist for this address."
        },
        "riskScore": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "riskTier": {
          "type": "string"
        },
        "confidence": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "chain": {
          "type": "string"
        },
        "scoringVersion": {
          "type": "string"
        },
        "window": {},
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}