{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bewary/json-schema/bewary-dataset-list-schema.json",
  "title": "DatasetList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bewary-datasets-api-openapi.yml#/components/schemas/DatasetList",
  "properties": {
    "schema_version": {
      "type": "string",
      "title": "Schema Version"
    },
    "datasets": {
      "items": {
        "$ref": "#/$defs/DatasetInfo"
      },
      "type": "array",
      "title": "Datasets"
    }
  },
  "type": "object",
  "required": [
    "schema_version",
    "datasets"
  ],
  "$defs": {
    "DatasetInfo": {
      "properties": {
        "id": {
          "type": "string",
          "enum": [
            "registration",
            "dns",
            "certificates",
            "web_archive",
            "threat_feeds",
            "threat_aggregates",
            "brand_registry",
            "web_pages",
            "ip_network",
            "phone_numbering",
            "us_numbering",
            "phone_complaints",
            "honeypot_lines",
            "phone_reports_de",
            "shortcodes",
            "email_providers",
            "breaches",
            "wallet_reports",
            "sanctions",
            "issuer_freezes",
            "community_reports",
            "campaigns",
            "text_model",
            "platform_pages",
            "iban_registry",
            "bank_codes",
            "app_stores",
            "short_links",
            "payment_profiles"
          ],
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "coverage": {
          "type": "string",
          "pattern": "^(WW|[A-Z]{2})$",
          "title": "Coverage",
          "description": "WW: worldwide. A country code (US, DE): that country's data only."
        },
        "kind": {
          "type": "string",
          "enum": [
            "scam_list",
            "reference",
            "own_traffic",
            "model"
          ],
          "title": "Kind"
        },
        "entity_types": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Entity Types"
        },
        "active_entries": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Active Entries",
          "description": "Active entries now, for scam lists; null otherwise."
        },
        "refreshed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Refreshed At",
          "description": "RFC 3339 UTC of the last refresh, where tracked."
        },
        "target_countries": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "integer"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Target Countries",
          "description": "Active entries aimed at each country (ISO 3166-1 alpha-2), from the national lists that name them; entries no national list names are not counted here. Null when none."
        },
        "entity_countries": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "integer"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entity Countries",
          "description": "Phone datasets: entries by the number's own country (phone_complaints: the 13-month directory, 1.9.0). bank_codes: the bank codes held per country (an IBAN from another country is outside it). Null otherwise."
        },
        "checked_entries": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Checked Entries",
          "description": "Domain datasets: active entries the hourly re-check has read so far (a full pass takes about a week). email_providers: throwaway-mail domains the re-check has read (a full pass takes about two days)."
        },
        "live_entries": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Live Entries",
          "description": "Of checked_entries, those that still resolve (live or parked); for email_providers, the throwaway domains that still receive mail. The rest are kept as history."
        },
        "quarantined_entries": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Quarantined Entries",
          "description": "Scam lists: entries held back from every answer because the list had a bad day (far more new entries than usual, or many top sites and shorteners among them). Kept, not served, until the list's next clean day or a person lifts the hold. Null when none."
        },
        "held_entries": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Held Entries",
          "description": "Entries a lookup answers from now (1.9.0): a scam list's active entries; phone_complaints: the US numbers with complaints in the last 13 months (a superset of the listed repeat offenders); email_providers: throwaway-mail domains; dns: domains with recorded DNS state and change history; us_numbering: US number blocks with their original carrier; shortcodes, brand_registry, iban_registry, bank_codes: the codes, brands, countries and banks held. Null where a source is read at lookup time and holds no list."
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "coverage",
        "kind",
        "entity_types"
      ],
      "title": "DatasetInfo"
    }
  }
}