{
  "openapi": "3.1.0",
  "info": {
    "title": "LUXSKI Snow Concierge API",
    "description": "API for accessing real-time ski resort snow conditions, SnowSure™ ratings, and luxury hotel information from LUXSKI.",
    "version": "1.0.0",
    "contact": {
      "name": "LUXSKI",
      "email": "hello@luxski.com",
      "url": "https://www.lux.ski"
    }
  },
  "servers": [
    {
      "url": "https://www.lux.ski/api/gpt",
      "description": "LUXSKI Catalog API"
    },
    {
      "url": "https://www.lux.ski/api/book",
      "description": "LUXSKI Agent Booking API"
    },
    {
      "url": "https://www.lux.ski/api",
      "description": "LUXSKI Pricing & Deals API"
    }
  ],
  "paths": {
    "/destinations": {
      "get": {
        "operationId": "getDestinations",
        "summary": "Get all ski destinations with SnowSure™ scores",
        "description": "Returns a list of ski resorts with current snow conditions, SnowSure™ ratings, and forecasts. Use this to find resorts with the best conditions.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results to return",
            "schema": {
              "type": "integer",
              "default": 20,
              "maximum": 100
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "Filter by country name (e.g., 'Switzerland', 'France', 'USA')",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "region",
            "in": "query",
            "description": "Filter by region (e.g., 'Alps', 'Rocky Mountains')",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "minScore",
            "in": "query",
            "description": "Minimum SnowSure™ score (0-100). Use 60 for 'Superb' or better, 80 for 'Outstanding'",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sort order for results",
            "schema": {
              "type": "string",
              "enum": [
                "score",
                "snow24h",
                "forecast",
                "name"
              ],
              "default": "score"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of ski destinations with snow data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DestinationsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/destination/{slug}": {
      "get": {
        "operationId": "getDestination",
        "summary": "Get detailed information about a specific ski resort",
        "description": "Returns comprehensive data about a ski resort including current conditions, forecast, historical comparison, and associated luxury hotels.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The resort slug (e.g., 'verbier', 'zermatt', 'aspen-mountain')",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Detailed destination data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DestinationDetail"
                }
              }
            }
          },
          "404": {
            "description": "Destination not found"
          }
        }
      }
    },
    "/recommendations": {
      "get": {
        "operationId": "getRecommendations",
        "summary": "Get AI-curated ski resort recommendations",
        "description": "Returns top recommended ski resorts based on current conditions, recent snowfall, and forecasts, ranked by SnowSure™. Ratings follow SnowSure's live bands (Outstanding 80+, Superb 60–79).",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Type of recommendation",
            "schema": {
              "type": "string",
              "enum": [
                "snowsure",
                "powder",
                "forecast"
              ],
              "default": "snowsure"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of recommendations to return",
            "schema": {
              "type": "integer",
              "default": 5,
              "maximum": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Resort recommendations",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/hotels": {
      "get": {
        "operationId": "getHotels",
        "summary": "Get luxury ski hotels",
        "description": "Returns a list of curated luxury ski hotels with ratings, amenities, and location information.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results",
            "schema": {
              "type": "integer",
              "default": 20,
              "maximum": 100
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "Filter by country",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resort",
            "in": "query",
            "description": "Filter by ski resort name",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "minStars",
            "in": "query",
            "description": "Minimum star rating (1-5)",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            }
          },
          {
            "name": "designHotels",
            "in": "query",
            "description": "Show only Design Hotels",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "michelinKeys",
            "in": "query",
            "description": "Show only hotels with Michelin Keys",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "skiInSkiOut",
            "in": "query",
            "description": "Show only ski-in/ski-out hotels",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of hotels",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HotelsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/search": {
      "get": {
        "operationId": "search",
        "summary": "Search destinations and hotels",
        "description": "Search across all ski destinations and luxury hotels by name, location, country, or description.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Search query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Filter results by type",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "destinations",
                "hotels"
              ],
              "default": "all"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Search results",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          }
        }
      }
    },
    "/last-minute-deals": {
      "get": {
        "operationId": "getLastMinuteDeals",
        "summary": "Last-minute luxury ski hotel deals",
        "description": "Live short lead-in (1–14 day) total prices across the curated catalog.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 8,
              "minimum": 3,
              "maximum": 24
            }
          },
          {
            "name": "nights",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 3
            }
          },
          {
            "name": "leadMinDays",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 2
            }
          },
          {
            "name": "leadMaxDays",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 14
            }
          },
          {
            "name": "regionSlug",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resortSlug",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "price",
                "smart"
              ],
              "default": "smart"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Last-minute deals payload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LastMinuteDealsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/best-deals": {
      "get": {
        "operationId": "getBestDeals",
        "summary": "Best-priced luxury ski hotels",
        "description": "Best-priced curated hotels for a configurable stay window.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 8
            }
          },
          {
            "name": "checkIn",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "checkOut",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "rooms",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "guests",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 2
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Best deals payload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BestDealsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/hotel/{id}/price": {
      "get": {
        "operationId": "getHotelPrice",
        "summary": "Live price for a single hotel",
        "description": "Returns live total and per-night price by hotel slug or RateHawk ID.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "checkIn",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "checkOut",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "rooms",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "guests",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 2
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Hotel price response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HotelPriceResponse"
                }
              }
            }
          }
        }
      }
    },
    "/sessions": {
      "get": {
        "operationId": "getHotelRates",
        "summary": "Get live hotel rates (quote)",
        "description": "Returns structured rates with rateId for each room. Use before creating a booking session.",
        "parameters": [
          {
            "name": "hotelName",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "checkIn",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "checkOut",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "adults",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 2
            }
          },
          {
            "name": "rooms",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "residency",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "us"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Structured rate quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetRatesResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createBookingSession",
        "summary": "Prebook rate and create checkout session",
        "description": "Prebooks a rate and returns a checkout URL valid for 30 minutes.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBookingSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Booking session created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingSessionResponse"
                }
              }
            }
          }
        }
      }
    },
    "/sessions/{token}": {
      "get": {
        "operationId": "getBookingSession",
        "summary": "Get booking session status",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Session details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingSessionResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/resorts/{slug}/hotels": {
      "get": {
        "operationId": "searchResortHotels",
        "summary": "All bookable hotels at a SnowSure resort (broader inventory)",
        "description": "Ski Lodge: a CURATED set of bookable hotels at any of SnowSure's 500+ ski resorts with live total prices — broader than the curated lux.ski luxury collection but not exhaustive. By default returns ONE representative hotel per category (lux, hip, family, budget) — up to 4 per resort — each tagged with a tier (handpicked-luxury vs snowsure). Use perCategory for N per category, or category + limit/offset for a paginated 'load more' list of one category (content sourced from RateHawk; see data.pagination). Mirrors the search_resort_hotels MCP tool.",
        "servers": [
          {
            "url": "https://www.lux.ski/api"
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "SnowSure resort slug, e.g. zermatt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "description": "Filter to one category: lux (handpicked luxury), hip (handpicked design/boutique), family (fits 3-5 people, at least 2-star), budget (by cost, at least 2-star)",
            "schema": {
              "type": "string",
              "enum": [
                "lux",
                "hip",
                "family",
                "budget"
              ]
            }
          },
          {
            "name": "checkIn",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "checkOut",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "adults",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 2
            }
          },
          {
            "name": "rooms",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "residency",
            "in": "query",
            "description": "ISO 3166-1 alpha-2 country (default us)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "radiusKm",
            "in": "query",
            "description": "Search radius around the resort in km (default 30)",
            "schema": {
              "type": "integer",
              "default": 30
            }
          },
          {
            "name": "lat",
            "in": "query",
            "description": "Search latitude — overrides the slug's coordinates (avoids resort-name drift)",
            "schema": { "type": "number" }
          },
          {
            "name": "lon",
            "in": "query",
            "description": "Search longitude (use with lat)",
            "schema": { "type": "number" }
          },
          {
            "name": "perCategory",
            "in": "query",
            "description": "Overview view: hotels to return per category (default 1, max 10)",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Page size for a single-category list (use with category; default 10, max 25)",
            "schema": {
              "type": "integer",
              "default": 10
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Offset into a single-category list for 'load more' (use with category; default 0)",
            "schema": {
              "type": "integer",
              "default": 0
            }
          },
          {
            "name": "rankBy",
            "in": "query",
            "description": "Ranking strategy: 'value' (default) or 'powder' (availability → proximity → refundable → price)",
            "schema": { "type": "string", "enum": ["value", "powder"] }
          },
          {
            "name": "powderEventId",
            "in": "query",
            "description": "Opaque powder-event id, echoed back on the response for attribution",
            "schema": { "type": "string" }
          },
          {
            "name": "curatedOnly",
            "in": "query",
            "description": "Only return curated handpicked-luxury hotels (mirrors lux.ski)",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Resort hotels response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResortHotelsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Resort not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DestinationsResponse": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "updated": {
            "type": "string",
            "format": "date-time"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DestinationSummary"
            }
          }
        }
      },
      "DestinationSummary": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "snowSure": {
            "type": "object",
            "properties": {
              "score": {
                "type": "integer",
                "description": "SnowSure™ score from 0-100"
              },
              "rating": {
                "type": "string",
                "description": "SnowSure™ rating. Outstanding 80+, Superb 60–79, Excellent 50–59, Good 40–49, Solid 30–39, Fair 20–29, Limited <20.",
                "enum": [
                  "Outstanding",
                  "Superb",
                  "Excellent",
                  "Good",
                  "Solid",
                  "Fair",
                  "Limited"
                ]
              },
              "trend": {
                "type": "string",
                "description": "SnowSure™ trend, served verbatim.",
                "enum": [
                  "improving",
                  "stable",
                  "declining"
                ]
              }
            }
          },
          "currentConditions": {
            "type": "object",
            "properties": {
              "temperatureC": {
                "type": "number"
              },
              "snowDepthBaseCm": {
                "type": "number"
              },
              "freshSnow24hCm": {
                "type": "number"
              },
              "seasonTotalCm": {
                "type": "number"
              }
            }
          },
          "forecast": {
            "type": "object",
            "properties": {
              "next14DaysCm": {
                "type": "number"
              }
            }
          }
        },
        "example": {
          "name": "Zermatt",
          "slug": "zermatt",
          "url": "https://www.lux.ski/destinations/zermatt",
          "country": "Switzerland",
          "snowSure": {
            "score": 78,
            "rating": "Superb",
            "trend": "improving"
          },
          "currentConditions": {
            "temperatureC": -8,
            "snowDepthBaseCm": 145,
            "freshSnow24hCm": 15,
            "seasonTotalCm": 420
          },
          "forecast": {
            "next14DaysCm": 65
          }
        }
      },
      "DestinationDetail": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "snowSure": {
            "type": "object",
            "properties": {
              "score": {
                "type": "integer",
                "description": "SnowSure™ score 0-100"
              },
              "rating": {
                "type": "string",
                "description": "SnowSure™ rating. Outstanding 80+, Superb 60–79, Excellent 50–59, Good 40–49, Solid 30–39, Fair 20–29, Limited <20.",
                "enum": [
                  "Outstanding",
                  "Superb",
                  "Excellent",
                  "Good",
                  "Solid",
                  "Fair",
                  "Limited"
                ]
              },
              "trend": {
                "type": "string",
                "description": "SnowSure™ trend, served verbatim.",
                "enum": [
                  "improving",
                  "stable",
                  "declining"
                ]
              },
              "analysis": {
                "type": "string",
                "description": "AI-generated conditions analysis"
              }
            }
          },
          "currentConditions": {
            "type": "object",
            "properties": {
              "temperatureC": {
                "type": "number"
              },
              "snowDepthCm": {
                "type": "number"
              },
              "freshSnow24hCm": {
                "type": "number"
              },
              "freshSnow7DaysCm": {
                "type": "number"
              },
              "seasonTotalCm": {
                "type": "number"
              },
              "windSpeedKmh": {
                "type": "number"
              }
            }
          },
          "forecast": {
            "type": "object",
            "properties": {
              "next14DaysCm": {
                "type": "number"
              },
              "dailyForecast": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date"
                    },
                    "tempHighC": {
                      "type": "number"
                    },
                    "tempLowC": {
                      "type": "number"
                    },
                    "snowCm": {
                      "type": "number"
                    },
                    "condition": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "resortInfo": {
            "type": "object",
            "properties": {
              "totalRuns": {
                "type": "integer"
              },
              "totalLifts": {
                "type": "integer"
              },
              "skiableAcres": {
                "type": "number"
              },
              "baseElevationM": {
                "type": "number"
              },
              "summitElevationM": {
                "type": "number"
              },
              "verticalDropM": {
                "type": "number"
              },
              "annualSnowfallCm": {
                "type": "number"
              }
            }
          },
          "luxuryHotels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HotelSummary"
            }
          }
        },
        "example": {
          "name": "Zermatt",
          "slug": "zermatt",
          "url": "https://www.lux.ski/destinations/zermatt",
          "country": "Switzerland",
          "snowSure": {
            "score": 78,
            "rating": "Superb",
            "trend": "improving",
            "analysis": "Outstanding conditions with deep base and consistent snowfall."
          },
          "currentConditions": {
            "temperatureC": -8,
            "snowDepthCm": 145,
            "freshSnow24hCm": 15,
            "freshSnow7DaysCm": 48,
            "seasonTotalCm": 420,
            "windSpeedKmh": 12
          },
          "forecast": {
            "next14DaysCm": 65
          },
          "resortInfo": {
            "totalRuns": 200,
            "totalLifts": 52,
            "skiableAcres": 890,
            "baseElevationM": 1620,
            "summitElevationM": 3883,
            "verticalDropM": 2263
          }
        }
      },
      "RecommendationItem": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "snowSureScore": {
            "type": "integer"
          },
          "snowSureRating": {
            "type": "string",
            "description": "SnowSure™ rating. Outstanding 80+, Superb 60–79, Excellent 50–59, Good 40–49, Solid 30–39, Fair 20–29, Limited <20.",
            "enum": [
              "Outstanding",
              "Superb",
              "Excellent",
              "Good",
              "Solid",
              "Fair",
              "Limited"
            ]
          },
          "whyRecommended": {
            "type": "string"
          },
          "freshSnow24hCm": {
            "type": "number"
          },
          "forecastCm": {
            "type": "number"
          }
        },
        "example": {
          "rank": 1,
          "name": "Jackson Hole",
          "slug": "jackson-hole-mountain-resort",
          "url": "https://www.lux.ski/destinations/jackson-hole-mountain-resort",
          "country": "USA",
          "snowSureScore": 82,
          "snowSureRating": "Outstanding",
          "whyRecommended": "30cm of fresh powder in 24h with another 45cm forecast",
          "freshSnow24hCm": 30,
          "forecastCm": 45
        }
      },
      "RecommendationsResponse": {
        "type": "object",
        "properties": {
          "recommendationType": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "recommendations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecommendationItem"
            }
          }
        }
      },
      "HotelSummary": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "nearestSkiResort": {
            "type": "string"
          },
          "starRating": {
            "type": "integer"
          },
          "numberOfRooms": {
            "type": "integer"
          },
          "distanceToLifts": {
            "type": "string"
          },
          "tripAdvisorScore": {
            "type": "number"
          },
          "michelinKeys": {
            "type": "integer"
          },
          "isDesignHotel": {
            "type": "boolean"
          }
        },
        "example": {
          "name": "Cheval Blanc Courchevel",
          "url": "https://www.lux.ski/hotels/europe/courchevel-1850/cheval-blanc-courchevel",
          "location": "Courchevel 1850, France",
          "country": "France",
          "nearestSkiResort": "Courchevel 1850",
          "starRating": 5,
          "numberOfRooms": 36,
          "distanceToLifts": "Ski-in/Ski-out",
          "tripAdvisorScore": 4.9,
          "michelinKeys": 3,
          "isDesignHotel": false
        }
      },
      "HotelsResponse": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "hotels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HotelSummary"
            }
          }
        }
      },
      "SearchResponse": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "totalResults": {
            "type": "integer"
          },
          "results": {
            "type": "object",
            "properties": {
              "destinations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "country": {
                      "type": "string"
                    },
                    "snowSureScore": {
                      "type": "integer"
                    },
                    "matchedOn": {
                      "type": "string"
                    }
                  }
                }
              },
              "hotels": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "location": {
                      "type": "string"
                    },
                    "nearestSkiResort": {
                      "type": "string"
                    },
                    "starRating": {
                      "type": "integer"
                    },
                    "matchedOn": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "example": {
          "query": "zermatt",
          "totalResults": 5,
          "results": {
            "destinations": [
              {
                "name": "Zermatt",
                "slug": "zermatt",
                "url": "https://www.lux.ski/destinations/zermatt",
                "country": "Switzerland",
                "snowSureScore": 78,
                "matchedOn": "name"
              }
            ],
            "hotels": [
              {
                "name": "The Omnia",
                "url": "https://www.lux.ski/hotels/europe/zermatt/the-omnia",
                "location": "Zermatt, Switzerland",
                "nearestSkiResort": "Zermatt",
                "starRating": 5,
                "matchedOn": "resort"
              }
            ]
          }
        }
      },
      "GetRatesResponse": {
        "type": "object",
        "properties": {
          "hotel": {
            "type": "object"
          },
          "dates": {
            "type": "object"
          },
          "guests": {
            "type": "object"
          },
          "rates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rateId": {
                  "type": "string"
                },
                "roomName": {
                  "type": "string"
                },
                "totalPrice": {
                  "type": "number"
                },
                "currency": {
                  "type": "string"
                },
                "mealPlan": {
                  "type": "string"
                },
                "refundable": {
                  "type": "boolean"
                }
              }
            }
          },
          "bookingUrl": {
            "type": "string"
          },
          "disclaimer": {
            "type": "string"
          }
        }
      },
      "CreateBookingSessionRequest": {
        "type": "object",
        "required": [
          "rateId",
          "hotelName",
          "checkIn",
          "checkOut"
        ],
        "properties": {
          "rateId": {
            "type": "string"
          },
          "hotelName": {
            "type": "string"
          },
          "checkIn": {
            "type": "string",
            "format": "date"
          },
          "checkOut": {
            "type": "string",
            "format": "date"
          },
          "adults": {
            "type": "integer"
          },
          "rooms": {
            "type": "integer"
          },
          "residency": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "enum": [
              "api",
              "mcp",
              "web"
            ]
          }
        }
      },
      "BookingSessionResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "sessionToken": {
            "type": "string"
          },
          "checkoutUrl": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "quotedTotal": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        }
      },
      "LastMinuteDealsResponse": {
        "type": "object",
        "properties": {
          "deals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DealHotel"
            }
          },
          "checkIn": {
            "type": "string",
            "format": "date"
          },
          "checkOut": {
            "type": "string",
            "format": "date"
          },
          "nights": {
            "type": "integer"
          },
          "windowLabel": {
            "type": "string"
          }
        }
      },
      "BestDealsResponse": {
        "type": "object",
        "properties": {
          "deals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DealHotel"
            }
          },
          "checkIn": {
            "type": "string",
            "format": "date"
          },
          "checkOut": {
            "type": "string",
            "format": "date"
          },
          "nights": {
            "type": "integer"
          }
        }
      },
      "DealHotel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "totalFrom": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "hotelUrl": {
            "type": "string"
          },
          "nights": {
            "type": "integer"
          },
          "starRating": {
            "type": "integer"
          }
        }
      },
      "HotelPriceResponse": {
        "type": "object",
        "properties": {
          "available": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "pricePerNight": {
            "type": "number"
          },
          "totalPrice": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "nights": {
            "type": "integer"
          },
          "checkIn": {
            "type": "string",
            "format": "date"
          },
          "checkOut": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "ResortHotelsResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "object",
            "properties": {
              "resort": {
                "type": "object"
              },
              "checkIn": {
                "type": "string",
                "format": "date"
              },
              "checkOut": {
                "type": "string",
                "format": "date"
              },
              "nights": {
                "type": "integer"
              },
              "total": {
                "type": "integer"
              },
              "curatedCount": {
                "type": "integer"
              },
              "snowsureCount": {
                "type": "integer"
              },
              "source": {
                "type": "string",
                "enum": [
                  "ratehawk-geo",
                  "curated-only",
                  "unavailable"
                ]
              },
              "hotels": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ResortHotel"
                }
              },
              "categoryCounts": {
                "type": "object",
                "description": "Number of candidate hotels found per category (lux, hip, family, budget) — the pool each per-category pick was chosen from"
              },
              "availableCategories": {
                "type": "array",
                "items": { "type": "string", "enum": ["lux", "hip", "family", "budget"] },
                "description": "Categories that actually have availability for this resort + window. Not all resorts/dates have lux or hip — many have only family/budget."
              },
              "appliedCategory": {
                "type": "string",
                "description": "The single category requested, if any"
              },
              "datesDefaulted": {
                "type": "boolean",
                "description": "True when checkIn/checkOut were omitted and a default window was used — availability then does NOT reflect a caller-specific (snow-event) window"
              },
              "perCategory": {
                "type": "integer",
                "description": "Hotels returned per category in the default multi-category view"
              },
              "pagination": {
                "type": "object",
                "description": "Present only for a single-category list (when category is set) — drives a 'load more' control",
                "properties": {
                  "offset": { "type": "integer" },
                  "limit": { "type": "integer" },
                  "returned": { "type": "integer" },
                  "totalInCategory": { "type": "integer" },
                  "hasMore": { "type": "boolean" },
                  "nextOffset": { "type": "integer", "nullable": true }
                }
              }
            }
          }
        }
      },
      "ResortHotel": {
        "type": "object",
        "properties": {
          "ratehawkId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "starRating": {
            "type": "number"
          },
          "totalFrom": {
            "type": "number"
          },
          "nightlyFrom": {
            "type": "number",
            "description": "Indicative price per night (totalFrom / nights)"
          },
          "currency": {
            "type": "string"
          },
          "nights": {
            "type": "integer"
          },
          "category": {
            "type": "string",
            "enum": [
              "lux",
              "hip",
              "family",
              "budget"
            ]
          },
          "tier": {
            "type": "string",
            "enum": [
              "handpicked-luxury",
              "snowsure"
            ]
          },
          "curated": {
            "type": "boolean"
          },
          "bookingUrl": {
            "type": "string"
          },
          "luxskiUrl": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "image": {
            "type": "string",
            "nullable": true
          },
          "gallery": {
            "type": "array",
            "items": { "type": "string" },
            "description": "Photo gallery — curated Airtable images for lux/hip, else RateHawk static"
          },
          "description": {
            "type": "string",
            "description": "Marketing description — curated Airtable copy for lux/hip, else RateHawk static"
          },
          "amenities": {
            "type": "array",
            "items": { "type": "string" },
            "description": "Amenity highlights — curated for lux/hip, else RateHawk static"
          },
          "rooms": {
            "type": "array",
            "description": "AVAILABLE room types for the stay (cheapest live rate per room), enriched with static room detail. Only rooms with availability are listed.",
            "items": {
              "type": "object",
              "properties": {
                "name": { "type": "string" },
                "price": { "type": "number", "description": "Lowest total for this room for the stay" },
                "currency": { "type": "string" },
                "available": { "type": "boolean" },
                "refundable": { "type": "boolean" },
                "freeCancellationBefore": { "type": "string", "nullable": true },
                "size": { "type": "string" },
                "maxOccupancy": { "type": "integer" },
                "image": { "type": "string", "nullable": true },
                "amenities": { "type": "array", "items": { "type": "string" } }
              }
            }
          },
          "checkInTime": {
            "type": "string"
          },
          "checkOutTime": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "maxOccupancy": {
            "type": "integer",
            "description": "Largest bookable unit occupancy (RateHawk), when known"
          },
          "distanceKm": {
            "type": "number",
            "description": "Straight-line distance (km) from the resort search point, when coordinates are known"
          },
          "refundable": {
            "type": "boolean",
            "description": "True when the cheapest rate has a free-cancellation deadline still ahead"
          },
          "freeCancellationBefore": {
            "type": "string",
            "nullable": true,
            "description": "ISO date of the free-cancellation deadline for the cheapest rate, if any"
          }
        }
      }
    }
  }
}
