{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/llmsmap-me/json-schema/llmsmap-me-catalog-response-schema.json",
  "title": "CatalogResponse",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/llmsmap-me-openapi.json#/components/schemas/CatalogResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "items",
    "pagination",
    "filters",
    "counts"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CatalogItem"
      }
    },
    "pagination": {
      "$ref": "#/$defs/Pagination"
    },
    "filters": {
      "$ref": "#/$defs/AppliedFilters"
    },
    "counts": {
      "$ref": "#/$defs/CatalogCounts"
    }
  },
  "$defs": {
    "AppliedFilters": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "active_segment",
        "active_sort",
        "search"
      ],
      "properties": {
        "active_segment": {
          "type": "string",
          "enum": [
            "russian",
            "international",
            "local",
            "global",
            "all"
          ]
        },
        "active_sort": {
          "type": "string",
          "enum": [
            "recommended",
            "newest",
            "ai_ready",
            "alphabetical"
          ]
        },
        "search": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "CatalogCounts": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "russian",
        "international",
        "local",
        "global",
        "all",
        "with_llms_full_txt",
        "ai_ready",
        "total_tokens"
      ],
      "properties": {
        "russian": {
          "type": "integer",
          "minimum": 0
        },
        "international": {
          "type": "integer",
          "minimum": 0
        },
        "local": {
          "type": "integer",
          "minimum": 0
        },
        "global": {
          "type": "integer",
          "minimum": 0
        },
        "all": {
          "type": "integer",
          "minimum": 0
        },
        "with_llms_full_txt": {
          "type": "integer",
          "minimum": 0
        },
        "ai_ready": {
          "type": "integer",
          "minimum": 0
        },
        "total_tokens": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "CatalogItem": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "product_name",
        "website_url",
        "llms_txt_url",
        "llms_full_txt_url",
        "llms_txt_tokens",
        "llms_full_txt_tokens",
        "domain",
        "slug",
        "listing_score",
        "ai_readiness_score",
        "published_at",
        "is_featured"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "minimum": 1
        },
        "product_name": {
          "type": "string"
        },
        "website_url": {
          "type": "string",
          "format": "uri"
        },
        "llms_txt_url": {
          "type": "string",
          "format": "uri"
        },
        "llms_full_txt_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "llms_txt_tokens": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "llms_full_txt_tokens": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "domain": {
          "type": [
            "string",
            "null"
          ]
        },
        "slug": {
          "type": [
            "string",
            "null"
          ]
        },
        "listing_score": {
          "type": [
            "integer",
            "null"
          ]
        },
        "ai_readiness_score": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 100
        },
        "published_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "is_featured": {
          "type": "boolean"
        }
      }
    },
    "Pagination": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "page",
        "limit",
        "total",
        "total_pages",
        "has_next",
        "has_previous"
      ],
      "properties": {
        "page": {
          "type": "integer",
          "minimum": 1
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "total": {
          "type": "integer",
          "minimum": 0
        },
        "total_pages": {
          "type": "integer",
          "minimum": 1
        },
        "has_next": {
          "type": "boolean"
        },
        "has_previous": {
          "type": "boolean"
        }
      }
    }
  }
}