{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aivikings-ai/json-schema/aivikings-ai-catalog-response-schema.json",
  "title": "CatalogResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aivikings-ai-openapi.json#/components/schemas/CatalogResponse",
  "properties": {
    "count": {
      "type": "integer",
      "title": "Count"
    },
    "prices": {
      "items": {
        "$ref": "#/$defs/CatalogPrice"
      },
      "type": "array",
      "title": "Prices"
    },
    "source": {
      "type": "string",
      "title": "Source"
    },
    "stale": {
      "type": "boolean",
      "title": "Stale",
      "default": false
    },
    "cached_at": {
      "type": "string",
      "format": "date-time",
      "title": "Cached At"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At"
    }
  },
  "type": "object",
  "required": [
    "count",
    "prices",
    "source",
    "cached_at",
    "expires_at"
  ],
  "$defs": {
    "CatalogPrice": {
      "properties": {
        "tld": {
          "type": "string",
          "title": "Tld"
        },
        "currency": {
          "type": "string",
          "title": "Currency"
        },
        "first_year_price": {
          "type": "string",
          "title": "First Year Price"
        },
        "standard_registration_price": {
          "type": "string",
          "title": "Standard Registration Price"
        },
        "promo_registration_price": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Promo Registration Price"
        },
        "transfer_price": {
          "type": "string",
          "title": "Transfer Price"
        },
        "renewal_price": {
          "type": "string",
          "title": "Renewal Price"
        },
        "promo_active": {
          "type": "boolean",
          "title": "Promo Active",
          "default": false
        },
        "pricing_rule": {
          "type": "string",
          "title": "Pricing Rule",
          "default": "standard"
        },
        "minimum_registration_years": {
          "type": "integer",
          "maximum": 10.0,
          "minimum": 1.0,
          "title": "Minimum Registration Years",
          "default": 1
        },
        "maximum_registration_years": {
          "type": "integer",
          "maximum": 10.0,
          "minimum": 1.0,
          "title": "Maximum Registration Years",
          "default": 10
        }
      },
      "type": "object",
      "required": [
        "tld",
        "currency",
        "first_year_price",
        "standard_registration_price",
        "transfer_price",
        "renewal_price"
      ],
      "title": "CatalogPrice"
    }
  }
}