{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trueproxies/json-schema/trueproxies-catalog-schema.json",
  "title": "Catalog",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trueproxies-catalog-api-openapi.yml#/components/schemas/Catalog",
  "properties": {
    "cities": {
      "items": {
        "$ref": "#/$defs/City"
      },
      "type": "array"
    },
    "hosts": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "public proxy hostnames per product",
      "type": "object"
    },
    "offers": {
      "items": {
        "$ref": "#/$defs/Offer"
      },
      "type": "array"
    },
    "payment_providers": {
      "description": "Available payment providers in the dashboard.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "trial_available": {
      "description": "the operator trial switch; false means the trial offer is listed but cannot be claimed",
      "type": "boolean"
    }
  },
  "required": [
    "offers",
    "cities",
    "hosts"
  ],
  "type": "object",
  "$defs": {
    "City": {
      "properties": {
        "available": {
          "description": "mapped to a verified /36 with free /48s",
          "type": "boolean"
        },
        "code": {
          "type": "string"
        },
        "country_code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "country_code",
        "name",
        "available"
      ],
      "type": "object"
    },
    "Offer": {
      "properties": {
        "allowance_bytes": {
          "format": "int64",
          "type": "integer"
        },
        "capabilities": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "currency": {
          "enum": [
            "USD"
          ],
          "type": "string"
        },
        "display_name": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "floor_price_cents": {
          "description": "Always 0 here. The floor is the reseller wholesale limit, an internal pricing control that the public catalog does not disclose. Staff read the real value from the admin catalog.",
          "minimum": 0,
          "type": "integer"
        },
        "offer_key": {
          "type": "string"
        },
        "price_cents": {
          "type": "integer"
        },
        "product": {
          "$ref": "#/$defs/Product"
        },
        "speed_bps": {
          "description": "0 for paid residential_ipv4_gb means no additional TrueProxies speed cap. residential_ipv4_unlimited retains its positive plan speed. Upstream capacity and availability still apply. Trials and datacenter plans retain their speed limits.",
          "format": "int64",
          "minimum": 0,
          "type": "integer"
        },
        "term": {
          "$ref": "#/$defs/Term"
        }
      },
      "required": [
        "offer_key",
        "display_name",
        "product",
        "price_cents",
        "currency",
        "enabled",
        "capabilities"
      ],
      "type": "object"
    },
    "Product": {
      "enum": [
        "residential_ipv4_gb",
        "residential_ipv4_unlimited",
        "datacenter_ipv6",
        "trial"
      ],
      "type": "string"
    },
    "Term": {
      "enum": [
        "hour",
        "day",
        "week",
        "month"
      ],
      "type": "string"
    }
  }
}