{"openapi":"3.0.3","info":{"title":"FlightSweeper AI Flight Tools API","version":"2026-07-16","description":"The REST mapping for the same ten typed tools exposed by FlightSweeper MCP. Payment and traveler data remain on FlightSweeper-hosted pages."},"servers":[{"url":"https://flightsweeper.com"}],"security":[{"OAuth2":[]},{"PersonalAccessToken":[]}],"x-flight-sweeper":{"mcpEndpoint":"/api/agent/mcp","toolCount":10,"stateless":true,"paymentBoundary":"hosted_checkout","authentication":"OAuth 2.1 authorization code with PKCE S256 or a revocable personal token."},"paths":{"/api/agent/search-flights":{"post":{"operationId":"search_flights","summary":"Search live flights","description":"Search live Duffel-backed flight inventory within the traveler's search budget. Every result includes the all-in total, currency, quotedAt, expiresAt, and a required refresh-before-payment indicator.","security":[{"OAuth2":["search_flights"]},{"PersonalAccessToken":[]}],"x-required-agent-scope":"search_flights","x-requires-explicit-user-approval":false,"x-provider":"duffel","x-payment-boundary":"hosted_checkout","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"responses":{"200":{"description":"Search live flights succeeded.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]},"description":"Agent responses are never cached."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchFlightsOutput"}}}},"default":{"description":"Stable public error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchFlightsInput"}}}}}},"/api/agent/compare-trip-options":{"post":{"operationId":"compare_trip_options","summary":"Compare trip options","description":"Compare live candidates already returned by an owner-scoped sweep without spending another provider request.","security":[{"OAuth2":["search_flights"]},{"PersonalAccessToken":[]}],"x-required-agent-scope":"search_flights","x-requires-explicit-user-approval":false,"x-provider":"none","x-payment-boundary":"hosted_checkout","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"responses":{"200":{"description":"Compare trip options succeeded.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]},"description":"Agent responses are never cached."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareTripOptionsOutput"}}}},"default":{"description":"Stable public error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareTripOptionsInput"}}}}}},"/api/agent/quote-details":{"post":{"operationId":"get_quote_details","summary":"Get quote details","description":"Inspect an owner-scoped quote, its all-in total, currency, quotedAt, expiresAt, and refresh requirement without another provider request.","security":[{"OAuth2":["search_flights"]},{"PersonalAccessToken":[]}],"x-required-agent-scope":"search_flights","x-requires-explicit-user-approval":false,"x-provider":"none","x-payment-boundary":"hosted_checkout","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"responses":{"200":{"description":"Get quote details succeeded.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]},"description":"Agent responses are never cached."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetQuoteDetailsOutput"}}}},"default":{"description":"Stable public error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetQuoteDetailsInput"}}}}}},"/api/agent/refresh-quote":{"post":{"operationId":"refresh_quote","summary":"Refresh quote","description":"Revalidate an owner-scoped quote with Duffel. Unavailable or expired inventory is never returned as a fresh, bookable fare.","security":[{"OAuth2":["create_checkout_link"]},{"PersonalAccessToken":[]}],"x-required-agent-scope":"create_checkout_link","x-requires-explicit-user-approval":false,"x-provider":"duffel","x-payment-boundary":"hosted_checkout","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"responses":{"200":{"description":"Refresh quote succeeded.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]},"description":"Agent responses are never cached."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshQuoteOutput"}}}},"default":{"description":"Stable public error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshQuoteInput"}}}}}},"/api/agent/trip-watches":{"post":{"operationId":"create_trip_watch","summary":"Create trip watch","description":"Prepare a Trip Pass trip watch. The first identical idempotent call returns approval_required and a FlightSweeper approval URL; after the traveler approves, retry with the returned approval ID to create it.","security":[{"OAuth2":["manage_trip_watches"]},{"PersonalAccessToken":[]}],"x-required-agent-scope":"manage_trip_watches","x-requires-explicit-user-approval":true,"x-provider":"none","x-payment-boundary":"hosted_checkout","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"responses":{"201":{"description":"Create trip watch succeeded.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]},"description":"Agent responses are never cached."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTripWatchOutput"}}}},"default":{"description":"Stable public error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTripWatchInput"}}}}},"get":{"operationId":"list_trip_watches","summary":"List trip watches","description":"List owner-scoped trip watches and monitoring state without triggering a provider request.","security":[{"OAuth2":["manage_trip_watches"]},{"PersonalAccessToken":[]}],"x-required-agent-scope":"manage_trip_watches","x-requires-explicit-user-approval":false,"x-provider":"none","x-payment-boundary":"hosted_checkout","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"responses":{"200":{"description":"List trip watches succeeded.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]},"description":"Agent responses are never cached."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTripWatchesOutput"}}}},"default":{"description":"Stable public error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/agent/trip-watches/{id}":{"get":{"operationId":"get_trip_watch_status","summary":"Get trip watch status","description":"Read an owner-scoped trip watch, last check, and recommendation freshness without triggering a provider request.","security":[{"OAuth2":["manage_trip_watches"]},{"PersonalAccessToken":[]}],"x-required-agent-scope":"manage_trip_watches","x-requires-explicit-user-approval":false,"x-provider":"none","x-payment-boundary":"hosted_checkout","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"responses":{"200":{"description":"Get trip watch status succeeded.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]},"description":"Agent responses are never cached."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTripWatchStatusOutput"}}}},"default":{"description":"Stable public error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/api/agent/preferences-summary":{"get":{"operationId":"get_preferences_summary","summary":"Get preferences summary","description":"Read booking preferences plus opaque traveler profile IDs and generated non-PII aliases. Labels and decrypted traveler data are never returned.","security":[{"OAuth2":["get_preferences_summary"]},{"PersonalAccessToken":[]}],"x-required-agent-scope":"get_preferences_summary","x-requires-explicit-user-approval":false,"x-provider":"none","x-payment-boundary":"hosted_checkout","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"responses":{"200":{"description":"Get preferences summary succeeded.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]},"description":"Agent responses are never cached."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPreferencesSummaryOutput"}}}},"default":{"description":"Stable public error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/agent/create-checkout-link":{"post":{"operationId":"create_checkout_link","summary":"Create checkout link","description":"Create or reuse an idempotent FlightSweeper-hosted checkout for a selected owner-scoped quote. The link cannot charge or ticket; only the traveler can enter passenger and payment data and confirm purchase on FlightSweeper.","security":[{"OAuth2":["create_checkout_link"]},{"PersonalAccessToken":[]}],"x-required-agent-scope":"create_checkout_link","x-requires-explicit-user-approval":false,"x-provider":"duffel","x-payment-boundary":"hosted_checkout","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"responses":{"200":{"description":"Create checkout link succeeded.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]},"description":"Agent responses are never cached."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutLinkOutput"}}}},"201":{"description":"Create checkout link succeeded.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]},"description":"Agent responses are never cached."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutLinkOutput"}}}},"default":{"description":"Stable public error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutLinkInput"}}}}}},"/api/agent/booking-status/{id}":{"get":{"operationId":"get_booking_status","summary":"Get booking status","description":"Read owner-scoped checkout or order status. Ownership mismatches return not_found and passenger details are never exposed.","security":[{"OAuth2":["get_booking_status"]},{"PersonalAccessToken":[]}],"x-required-agent-scope":"get_booking_status","x-requires-explicit-user-approval":false,"x-provider":"none","x-payment-boundary":"hosted_checkout","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"responses":{"200":{"description":"Get booking status succeeded.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]},"description":"Agent responses are never cached."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBookingStatusOutput"}}}},"default":{"description":"Stable public error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}}},"components":{"securitySchemes":{"OAuth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://flightsweeper.com/api/auth/oauth2/authorize","tokenUrl":"https://flightsweeper.com/api/auth/oauth2/token","refreshUrl":"https://flightsweeper.com/api/auth/oauth2/token","scopes":{"search_flights":"Permit search_flights.","create_checkout_link":"Permit create_checkout_link.","get_booking_status":"Permit get_booking_status.","get_preferences_summary":"Permit get_preferences_summary.","manage_trip_watches":"Permit manage_trip_watches."}}}},"PersonalAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"fs_agent_…","description":"A hashed, revocable 30-day owner token."}},"schemas":{"ErrorResponse":{"type":"object","required":["error"],"additionalProperties":false,"properties":{"error":{"type":"string"},"issues":{}}},"SearchFlightsInput":{"type":"object","properties":{"tripType":{"type":"string","enum":["round_trip","one_way"]},"origin":{"type":"string","pattern":"^[A-Za-z]{3}$"},"destination":{"type":"string","pattern":"^[A-Za-z]{3}$"},"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"tripLengthNights":{"type":"integer","minimum":1,"maximum":45},"tripLengthRange":{"type":"array","items":[{"type":"integer","minimum":1,"maximum":45},{"type":"integer","minimum":1,"maximum":45}]},"adults":{"default":1,"type":"integer","minimum":1,"maximum":9},"children":{"default":0,"type":"integer","minimum":0,"maximum":8},"cabin":{"default":"economy","type":"string","enum":["economy","premium_economy","business","first"]},"maxStops":{"default":"any","type":"string","enum":["any","nonstop","one_stop"]},"currency":{"default":"USD","type":"string","pattern":"^[A-Za-z]{3}$"},"searchIntent":{"type":"string","enum":["ready","planning","exploring"]},"maxSearchesPerIntent":{"default":12,"type":"integer","minimum":1,"maximum":12},"maxResults":{"default":10,"type":"integer","minimum":1,"maximum":20},"cachePolicy":{"default":"prefer_cache","type":"string","enum":["prefer_cache","live_if_needed"]},"maxDateFlexibility":{"default":0,"type":"number","enum":[0]},"maxOriginAirports":{"default":1,"type":"number","enum":[1]},"maxDestinationAirports":{"default":1,"type":"number","enum":[1]},"allowNearbyAirports":{"default":false,"type":"boolean","enum":[false]},"allowBasicEconomy":{"default":false,"type":"boolean","enum":[false]}},"required":["tripType","origin","destination","month"],"additionalProperties":false},"SearchFlightsOutput":{"type":"object","properties":{"sweepId":{"type":"string","minLength":1},"status":{"type":"string","enum":["processing","complete","failed"]},"cached":{"type":"boolean"},"candidatesFound":{"type":"integer","minimum":0,"maximum":9007199254740991},"budget":{"type":"object","properties":{"maxSearchesPerIntent":{"type":"integer","minimum":1,"maximum":12},"maxResults":{"type":"integer","minimum":1,"maximum":20},"cachePolicy":{"type":"string","enum":["prefer_cache","live_if_needed"]},"maxDateFlexibility":{"type":"number","enum":[0]},"maxOriginAirports":{"type":"number","enum":[1]},"maxDestinationAirports":{"type":"number","enum":[1]},"allowNearbyAirports":{"type":"boolean","enum":[false]},"allowBasicEconomy":{"type":"boolean","enum":[false]}},"required":["maxSearchesPerIntent","maxResults","cachePolicy","maxDateFlexibility","maxOriginAirports","maxDestinationAirports","allowNearbyAirports","allowBasicEconomy"],"additionalProperties":false},"budgetFeedback":{"type":"object","properties":{"status":{"type":"string","enum":["within_budget","partial_live_fetch_budget","partial_provider_budget_exhausted"]},"message":{"type":"string"},"liveFetches":{"type":"integer","minimum":0,"maximum":9007199254740991},"cacheHits":{"type":"integer","minimum":0,"maximum":9007199254740991},"historyHits":{"type":"integer","minimum":0,"maximum":9007199254740991},"deferredSearches":{"type":"integer","minimum":0,"maximum":9007199254740991},"rateLimitedSearches":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["status","message","liveFetches","cacheHits","historyHits","deferredSearches","rateLimitedSearches"],"additionalProperties":false},"candidates":{"type":"array","items":{"type":"object","properties":{"duffelOfferId":{"type":"string","minLength":1},"outboundDate":{"type":"string"},"returnDate":{"anyOf":[{"type":"string"},{"enum":[null]}]},"totalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3},"durationMinutes":{"type":"integer","minimum":0,"maximum":9007199254740991},"stops":{"type":"integer","minimum":0,"maximum":9007199254740991},"airlines":{"type":"array","items":{"type":"string"}},"segments":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"departAt":{"type":"string"},"arriveAt":{"type":"string"},"airline":{"type":"string"},"airlineName":{"type":"string"},"flightNumber":{"type":"string"},"marketingAirline":{"type":"string"},"marketingAirlineName":{"type":"string"},"operatingAirline":{"type":"string"},"operatingAirlineName":{"type":"string"},"operatingFlightNumber":{"type":"string"},"durationMinutes":{"type":"number"},"aircraft":{"anyOf":[{"type":"string"},{"enum":[null]}]}},"required":["from","to","departAt","arriveAt","airline","flightNumber","durationMinutes"],"additionalProperties":false}},"status":{"type":"string","enum":["fresh","expired","unavailable"]},"quotedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"expiresAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"price":{"anyOf":[{"type":"object","properties":{"baseAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"serviceFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeFixedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeBufferCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["baseAmountCents","serviceFeeCents","supplierFeeCents","paymentFeeFixedCents","paymentFeeBufferCents","paymentFeeCents","totalAmountCents","currency"],"additionalProperties":false},{"enum":[null]}]},"quoteRef":{"type":"object","properties":{"type":{"type":"string","enum":["sweep_candidate"]},"sweepId":{"type":"string","minLength":1},"duffelOfferId":{"type":"string","minLength":1}},"required":["type","sweepId","duffelOfferId"],"additionalProperties":false},"providerTrace":{"type":"object","properties":{"provider":{"type":"string","enum":["duffel"]},"sweepId":{"type":"string","minLength":1},"duffelOfferId":{"type":"string","minLength":1},"originalDuffelOfferId":{"type":"string","minLength":1},"duffelOfferRequestId":{"type":"string","minLength":1}},"required":["provider","sweepId"],"additionalProperties":false},"recheckRequiredBeforeCheckout":{"type":"boolean","enum":[true]},"checkoutEligible":{"type":"boolean"}},"required":["duffelOfferId","outboundDate","returnDate","totalCents","currency","durationMinutes","stops","airlines","segments","status","quotedAt","expiresAt","price","quoteRef","providerTrace","recheckRequiredBeforeCheckout","checkoutEligible"],"additionalProperties":false}}},"required":["sweepId","status","cached","candidatesFound","budget","budgetFeedback","candidates"],"additionalProperties":false},"CompareTripOptionsInput":{"type":"object","properties":{"sweepId":{"type":"string","minLength":1},"maxResults":{"default":6,"type":"integer","minimum":1,"maximum":20}},"required":["sweepId"],"additionalProperties":false},"CompareTripOptionsOutput":{"type":"object","properties":{"sweepId":{"type":"string"},"status":{"type":"string","enum":["processing","complete","failed"]},"comparedAt":{"type":"string"},"candidatesCompared":{"type":"integer","minimum":0,"maximum":9007199254740991},"recommendations":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["cheapest","recommended","best_nonstop","fastest_reasonable"]},"reason":{"type":"string"},"quote":{"type":"object","properties":{"quoteRef":{"type":"object","properties":{"type":{"type":"string","enum":["sweep_candidate"]},"sweepId":{"type":"string","minLength":1},"duffelOfferId":{"type":"string","minLength":1}},"required":["type","sweepId","duffelOfferId"],"additionalProperties":false},"status":{"type":"string","enum":["fresh","expired","unavailable"]},"quotedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"expiresAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"price":{"anyOf":[{"type":"object","properties":{"baseAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"serviceFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeFixedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeBufferCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["baseAmountCents","serviceFeeCents","supplierFeeCents","paymentFeeFixedCents","paymentFeeBufferCents","paymentFeeCents","totalAmountCents","currency"],"additionalProperties":false},{"enum":[null]}]},"segments":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"departAt":{"type":"string"},"arriveAt":{"type":"string"},"airline":{"type":"string"},"airlineName":{"type":"string"},"flightNumber":{"type":"string"},"marketingAirline":{"type":"string"},"marketingAirlineName":{"type":"string"},"operatingAirline":{"type":"string"},"operatingAirlineName":{"type":"string"},"operatingFlightNumber":{"type":"string"},"durationMinutes":{"type":"number"},"aircraft":{"anyOf":[{"type":"string"},{"enum":[null]}]}},"required":["from","to","departAt","arriveAt","airline","flightNumber","durationMinutes"],"additionalProperties":false}},"fareConditions":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["change_before_departure","refund_before_departure","change_for_any_reason"]},"allowed":{"type":"boolean"},"penaltyAmountCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"penaltyCurrency":{"anyOf":[{"type":"string"},{"enum":[null]}]}},"required":["type","allowed","penaltyAmountCents","penaltyCurrency"],"additionalProperties":false}},"providerTrace":{"type":"object","properties":{"provider":{"type":"string","enum":["duffel"]},"sweepId":{"type":"string","minLength":1},"duffelOfferId":{"type":"string","minLength":1},"originalDuffelOfferId":{"type":"string","minLength":1},"duffelOfferRequestId":{"type":"string","minLength":1}},"required":["provider","sweepId"],"additionalProperties":false},"recheckRequiredBeforeCheckout":{"type":"boolean","enum":[true]},"checkoutEligible":{"type":"boolean"},"priceChanged":{"type":"boolean"},"previousTotalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"previousPrice":{"anyOf":[{"type":"object","properties":{"baseAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"serviceFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeFixedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeBufferCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["baseAmountCents","serviceFeeCents","supplierFeeCents","paymentFeeFixedCents","paymentFeeBufferCents","paymentFeeCents","totalAmountCents","currency"],"additionalProperties":false},{"enum":[null]}]},"unavailableReason":{"type":"string"}},"required":["quoteRef","status","quotedAt","expiresAt","price","segments","fareConditions","providerTrace","recheckRequiredBeforeCheckout","checkoutEligible"],"additionalProperties":false},"priceDeltaCents":{"type":"number"},"durationDeltaMinutes":{"type":"number"}},"required":["kind","reason","quote"],"additionalProperties":false}}},"required":["sweepId","status","comparedAt","candidatesCompared","recommendations"],"additionalProperties":false},"GetQuoteDetailsInput":{"type":"object","properties":{"sweepId":{"type":"string","minLength":1},"duffelOfferId":{"type":"string","minLength":1}},"required":["sweepId","duffelOfferId"],"additionalProperties":false},"GetQuoteDetailsOutput":{"type":"object","properties":{"quoteRef":{"type":"object","properties":{"type":{"type":"string","enum":["sweep_candidate"]},"sweepId":{"type":"string","minLength":1},"duffelOfferId":{"type":"string","minLength":1}},"required":["type","sweepId","duffelOfferId"],"additionalProperties":false},"status":{"type":"string","enum":["fresh","expired","unavailable"]},"quotedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"expiresAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"price":{"anyOf":[{"type":"object","properties":{"baseAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"serviceFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeFixedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeBufferCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["baseAmountCents","serviceFeeCents","supplierFeeCents","paymentFeeFixedCents","paymentFeeBufferCents","paymentFeeCents","totalAmountCents","currency"],"additionalProperties":false},{"enum":[null]}]},"segments":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"departAt":{"type":"string"},"arriveAt":{"type":"string"},"airline":{"type":"string"},"airlineName":{"type":"string"},"flightNumber":{"type":"string"},"marketingAirline":{"type":"string"},"marketingAirlineName":{"type":"string"},"operatingAirline":{"type":"string"},"operatingAirlineName":{"type":"string"},"operatingFlightNumber":{"type":"string"},"durationMinutes":{"type":"number"},"aircraft":{"anyOf":[{"type":"string"},{"enum":[null]}]}},"required":["from","to","departAt","arriveAt","airline","flightNumber","durationMinutes"],"additionalProperties":false}},"fareConditions":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["change_before_departure","refund_before_departure","change_for_any_reason"]},"allowed":{"type":"boolean"},"penaltyAmountCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"penaltyCurrency":{"anyOf":[{"type":"string"},{"enum":[null]}]}},"required":["type","allowed","penaltyAmountCents","penaltyCurrency"],"additionalProperties":false}},"providerTrace":{"type":"object","properties":{"provider":{"type":"string","enum":["duffel"]},"sweepId":{"type":"string","minLength":1},"duffelOfferId":{"type":"string","minLength":1},"originalDuffelOfferId":{"type":"string","minLength":1},"duffelOfferRequestId":{"type":"string","minLength":1}},"required":["provider","sweepId"],"additionalProperties":false},"recheckRequiredBeforeCheckout":{"type":"boolean","enum":[true]},"checkoutEligible":{"type":"boolean"},"priceChanged":{"type":"boolean"},"previousTotalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"previousPrice":{"anyOf":[{"type":"object","properties":{"baseAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"serviceFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeFixedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeBufferCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["baseAmountCents","serviceFeeCents","supplierFeeCents","paymentFeeFixedCents","paymentFeeBufferCents","paymentFeeCents","totalAmountCents","currency"],"additionalProperties":false},{"enum":[null]}]},"unavailableReason":{"type":"string"}},"required":["quoteRef","status","quotedAt","expiresAt","price","segments","fareConditions","providerTrace","recheckRequiredBeforeCheckout","checkoutEligible"],"additionalProperties":false},"RefreshQuoteInput":{"type":"object","properties":{"sweepId":{"type":"string","minLength":1},"duffelOfferId":{"type":"string","minLength":1}},"required":["sweepId","duffelOfferId"],"additionalProperties":false},"RefreshQuoteOutput":{"type":"object","properties":{"quoteRef":{"type":"object","properties":{"type":{"type":"string","enum":["sweep_candidate"]},"sweepId":{"type":"string","minLength":1},"duffelOfferId":{"type":"string","minLength":1}},"required":["type","sweepId","duffelOfferId"],"additionalProperties":false},"status":{"type":"string","enum":["fresh","expired","unavailable"]},"quotedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"expiresAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"price":{"anyOf":[{"type":"object","properties":{"baseAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"serviceFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeFixedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeBufferCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["baseAmountCents","serviceFeeCents","supplierFeeCents","paymentFeeFixedCents","paymentFeeBufferCents","paymentFeeCents","totalAmountCents","currency"],"additionalProperties":false},{"enum":[null]}]},"segments":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"departAt":{"type":"string"},"arriveAt":{"type":"string"},"airline":{"type":"string"},"airlineName":{"type":"string"},"flightNumber":{"type":"string"},"marketingAirline":{"type":"string"},"marketingAirlineName":{"type":"string"},"operatingAirline":{"type":"string"},"operatingAirlineName":{"type":"string"},"operatingFlightNumber":{"type":"string"},"durationMinutes":{"type":"number"},"aircraft":{"anyOf":[{"type":"string"},{"enum":[null]}]}},"required":["from","to","departAt","arriveAt","airline","flightNumber","durationMinutes"],"additionalProperties":false}},"fareConditions":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["change_before_departure","refund_before_departure","change_for_any_reason"]},"allowed":{"type":"boolean"},"penaltyAmountCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"penaltyCurrency":{"anyOf":[{"type":"string"},{"enum":[null]}]}},"required":["type","allowed","penaltyAmountCents","penaltyCurrency"],"additionalProperties":false}},"providerTrace":{"type":"object","properties":{"provider":{"type":"string","enum":["duffel"]},"sweepId":{"type":"string","minLength":1},"duffelOfferId":{"type":"string","minLength":1},"originalDuffelOfferId":{"type":"string","minLength":1},"duffelOfferRequestId":{"type":"string","minLength":1}},"required":["provider","sweepId"],"additionalProperties":false},"recheckRequiredBeforeCheckout":{"type":"boolean","enum":[true]},"checkoutEligible":{"type":"boolean"},"priceChanged":{"type":"boolean"},"previousTotalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"previousPrice":{"anyOf":[{"type":"object","properties":{"baseAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"serviceFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeFixedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeBufferCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["baseAmountCents","serviceFeeCents","supplierFeeCents","paymentFeeFixedCents","paymentFeeBufferCents","paymentFeeCents","totalAmountCents","currency"],"additionalProperties":false},{"enum":[null]}]},"unavailableReason":{"type":"string"}},"required":["quoteRef","status","quotedAt","expiresAt","price","segments","fareConditions","providerTrace","recheckRequiredBeforeCheckout","checkoutEligible","priceChanged"],"additionalProperties":false},"CreateTripWatchInput":{"type":"object","properties":{"type":{"type":"string","enum":["route","destination_set"]},"name":{"type":"string","minLength":1,"maxLength":120},"params":{"anyOf":[{"type":"object","properties":{"tripType":{"type":"string","enum":["round_trip","one_way"]},"origin":{"type":"string","pattern":"^[A-Za-z]{3}$"},"destination":{"type":"string","pattern":"^[A-Za-z]{3}$"},"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"tripLengthNights":{"type":"integer","minimum":1,"maximum":45},"tripLengthRange":{"type":"array","items":[{"type":"integer","minimum":1,"maximum":45},{"type":"integer","minimum":1,"maximum":45}]},"adults":{"default":1,"type":"integer","minimum":1,"maximum":9},"children":{"default":0,"type":"integer","minimum":0,"maximum":8},"cabin":{"default":"economy","type":"string","enum":["economy","premium_economy","business","first"]},"maxStops":{"default":"any","type":"string","enum":["any","nonstop","one_stop"]},"currency":{"default":"USD","type":"string","pattern":"^[A-Za-z]{3}$"},"searchIntent":{"type":"string","enum":["ready","planning","exploring"]}},"required":["tripType","origin","destination","month"]},{"type":"object","properties":{"origin":{"type":"string","pattern":"^[A-Za-z]{3}$"},"destinations":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","pattern":"^[A-Za-z]{3}$"}},"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"tripLengthNights":{"type":"integer","minimum":1,"maximum":45},"adults":{"default":1,"type":"integer","minimum":1,"maximum":9},"children":{"default":0,"type":"integer","minimum":0,"maximum":8},"cabin":{"default":"economy","type":"string","enum":["economy","premium_economy","business","first"]},"maxStops":{"default":"any","type":"string","enum":["any","nonstop","one_stop"]},"currency":{"default":"USD","type":"string","pattern":"^[A-Za-z]{3}$"}},"required":["origin","destinations","month","tripLengthNights"]}]},"targetPriceCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"sourceSweepId":{"type":"string","minLength":1},"idempotencyKey":{"type":"string","minLength":8,"maxLength":120,"pattern":"^[A-Za-z0-9._:-]+$"},"approvalId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"approvalToken":{"type":"string","minLength":32,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},"required":["type","params","idempotencyKey"],"additionalProperties":false},"CreateTripWatchOutput":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["route","destination_set"]},"name":{"type":"string"},"params":{"anyOf":[{"type":"object","properties":{"tripType":{"type":"string","enum":["round_trip","one_way"]},"origin":{"type":"string","pattern":"^[A-Za-z]{3}$"},"destination":{"type":"string","pattern":"^[A-Za-z]{3}$"},"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"tripLengthNights":{"type":"integer","minimum":1,"maximum":45},"tripLengthRange":{"type":"array","items":[{"type":"integer","minimum":1,"maximum":45},{"type":"integer","minimum":1,"maximum":45}]},"adults":{"default":1,"type":"integer","minimum":1,"maximum":9},"children":{"default":0,"type":"integer","minimum":0,"maximum":8},"cabin":{"default":"economy","type":"string","enum":["economy","premium_economy","business","first"]},"maxStops":{"default":"any","type":"string","enum":["any","nonstop","one_stop"]},"currency":{"default":"USD","type":"string","pattern":"^[A-Za-z]{3}$"},"searchIntent":{"type":"string","enum":["ready","planning","exploring"]}},"required":["tripType","origin","destination","month","adults","children","cabin","maxStops","currency"],"additionalProperties":false},{"type":"object","properties":{"origin":{"type":"string","pattern":"^[A-Za-z]{3}$"},"destinations":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","pattern":"^[A-Za-z]{3}$"}},"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"tripLengthNights":{"type":"integer","minimum":1,"maximum":45},"adults":{"default":1,"type":"integer","minimum":1,"maximum":9},"children":{"default":0,"type":"integer","minimum":0,"maximum":8},"cabin":{"default":"economy","type":"string","enum":["economy","premium_economy","business","first"]},"maxStops":{"default":"any","type":"string","enum":["any","nonstop","one_stop"]},"currency":{"default":"USD","type":"string","pattern":"^[A-Za-z]{3}$"}},"required":["origin","destinations","month","tripLengthNights","adults","children","cabin","maxStops","currency"],"additionalProperties":false}]},"targetPriceCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"active":{"type":"boolean"},"status":{"type":"string","enum":["drafting","watching","recommendation_ready","expired","booked","paused"]},"lastBestPriceCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"lastBestPriceCurrency":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastSweepId":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastProof":{"anyOf":[{"type":"object","properties":{"plannedPairs":{"type":"integer","minimum":0,"maximum":9007199254740991},"checkedPairs":{"type":"integer","minimum":0,"maximum":9007199254740991},"coverageRatio":{"type":"number","minimum":0,"maximum":1},"liveFetches":{"type":"integer","minimum":0,"maximum":9007199254740991},"cacheHits":{"type":"integer","minimum":0,"maximum":9007199254740991},"historyHits":{"type":"integer","minimum":0,"maximum":9007199254740991},"deferredCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"rateLimitedCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"errorCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"candidateCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"checkedOutboundDates":{"type":"array","items":{"type":"string"}},"checkedTripLengths":{"type":"array","items":{"type":"integer","minimum":1,"maximum":45}},"medianDisplayAmountCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"nextBestDisplayAmountCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"excludedInventoryNote":{"type":"string"}},"required":["plannedPairs","checkedPairs","coverageRatio","liveFetches","cacheHits","historyHits","deferredCount","rateLimitedCount","errorCount","candidateCount","checkedOutboundDates","checkedTripLengths","medianDisplayAmountCents","nextBestDisplayAmountCents","excludedInventoryNote"],"additionalProperties":false},{"enum":[null]}]},"lastCheckedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"nextCheckAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastAlertedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastCheckStatus":{"anyOf":[{"type":"string","enum":["checked","skipped","failed"]},{"enum":[null]}]},"lastCheckReason":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastActionRequiredAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"recommendationExpiresAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"bookedOrderId":{"anyOf":[{"type":"string"},{"enum":[null]}]},"recommendation":{"anyOf":[{"type":"object","properties":{"label":{"type":"string","enum":["cheapest","recommended","nonstop","fastest_reasonable","wait"]},"reason":{"type":"string","minLength":1},"duffelOfferId":{"anyOf":[{"type":"string"},{"enum":[null]}]},"totalAmountCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"enum":[null]}]},"currency":{"anyOf":[{"type":"string","minLength":3,"maxLength":3},{"enum":[null]}]},"quotedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"expiresAt":{"anyOf":[{"type":"string"},{"enum":[null]}]}},"required":["label","reason","duffelOfferId","totalAmountCents","currency","quotedAt","expiresAt"],"additionalProperties":false},{"enum":[null]}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","type","name","params","targetPriceCents","active","status","lastBestPriceCents","lastBestPriceCurrency","lastSweepId","lastProof","lastCheckedAt","nextCheckAt","lastAlertedAt","lastCheckStatus","lastCheckReason","lastActionRequiredAt","recommendationExpiresAt","bookedOrderId","recommendation","createdAt","updatedAt"],"additionalProperties":false},"ListTripWatchesInput":{"type":"object","properties":{},"additionalProperties":false},"ListTripWatchesOutput":{"type":"object","properties":{"goals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["route","destination_set"]},"name":{"type":"string"},"params":{"anyOf":[{"type":"object","properties":{"tripType":{"type":"string","enum":["round_trip","one_way"]},"origin":{"type":"string","pattern":"^[A-Za-z]{3}$"},"destination":{"type":"string","pattern":"^[A-Za-z]{3}$"},"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"tripLengthNights":{"type":"integer","minimum":1,"maximum":45},"tripLengthRange":{"type":"array","items":[{"type":"integer","minimum":1,"maximum":45},{"type":"integer","minimum":1,"maximum":45}]},"adults":{"default":1,"type":"integer","minimum":1,"maximum":9},"children":{"default":0,"type":"integer","minimum":0,"maximum":8},"cabin":{"default":"economy","type":"string","enum":["economy","premium_economy","business","first"]},"maxStops":{"default":"any","type":"string","enum":["any","nonstop","one_stop"]},"currency":{"default":"USD","type":"string","pattern":"^[A-Za-z]{3}$"},"searchIntent":{"type":"string","enum":["ready","planning","exploring"]}},"required":["tripType","origin","destination","month","adults","children","cabin","maxStops","currency"],"additionalProperties":false},{"type":"object","properties":{"origin":{"type":"string","pattern":"^[A-Za-z]{3}$"},"destinations":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","pattern":"^[A-Za-z]{3}$"}},"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"tripLengthNights":{"type":"integer","minimum":1,"maximum":45},"adults":{"default":1,"type":"integer","minimum":1,"maximum":9},"children":{"default":0,"type":"integer","minimum":0,"maximum":8},"cabin":{"default":"economy","type":"string","enum":["economy","premium_economy","business","first"]},"maxStops":{"default":"any","type":"string","enum":["any","nonstop","one_stop"]},"currency":{"default":"USD","type":"string","pattern":"^[A-Za-z]{3}$"}},"required":["origin","destinations","month","tripLengthNights","adults","children","cabin","maxStops","currency"],"additionalProperties":false}]},"targetPriceCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"active":{"type":"boolean"},"status":{"type":"string","enum":["drafting","watching","recommendation_ready","expired","booked","paused"]},"lastBestPriceCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"lastBestPriceCurrency":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastSweepId":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastProof":{"anyOf":[{"type":"object","properties":{"plannedPairs":{"type":"integer","minimum":0,"maximum":9007199254740991},"checkedPairs":{"type":"integer","minimum":0,"maximum":9007199254740991},"coverageRatio":{"type":"number","minimum":0,"maximum":1},"liveFetches":{"type":"integer","minimum":0,"maximum":9007199254740991},"cacheHits":{"type":"integer","minimum":0,"maximum":9007199254740991},"historyHits":{"type":"integer","minimum":0,"maximum":9007199254740991},"deferredCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"rateLimitedCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"errorCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"candidateCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"checkedOutboundDates":{"type":"array","items":{"type":"string"}},"checkedTripLengths":{"type":"array","items":{"type":"integer","minimum":1,"maximum":45}},"medianDisplayAmountCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"nextBestDisplayAmountCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"excludedInventoryNote":{"type":"string"}},"required":["plannedPairs","checkedPairs","coverageRatio","liveFetches","cacheHits","historyHits","deferredCount","rateLimitedCount","errorCount","candidateCount","checkedOutboundDates","checkedTripLengths","medianDisplayAmountCents","nextBestDisplayAmountCents","excludedInventoryNote"],"additionalProperties":false},{"enum":[null]}]},"lastCheckedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"nextCheckAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastAlertedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastCheckStatus":{"anyOf":[{"type":"string","enum":["checked","skipped","failed"]},{"enum":[null]}]},"lastCheckReason":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastActionRequiredAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"recommendationExpiresAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"bookedOrderId":{"anyOf":[{"type":"string"},{"enum":[null]}]},"recommendation":{"anyOf":[{"type":"object","properties":{"label":{"type":"string","enum":["cheapest","recommended","nonstop","fastest_reasonable","wait"]},"reason":{"type":"string","minLength":1},"duffelOfferId":{"anyOf":[{"type":"string"},{"enum":[null]}]},"totalAmountCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"enum":[null]}]},"currency":{"anyOf":[{"type":"string","minLength":3,"maxLength":3},{"enum":[null]}]},"quotedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"expiresAt":{"anyOf":[{"type":"string"},{"enum":[null]}]}},"required":["label","reason","duffelOfferId","totalAmountCents","currency","quotedAt","expiresAt"],"additionalProperties":false},{"enum":[null]}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","type","name","params","targetPriceCents","active","status","lastBestPriceCents","lastBestPriceCurrency","lastSweepId","lastProof","lastCheckedAt","nextCheckAt","lastAlertedAt","lastCheckStatus","lastCheckReason","lastActionRequiredAt","recommendationExpiresAt","bookedOrderId","recommendation","createdAt","updatedAt"],"additionalProperties":false}}},"required":["goals"],"additionalProperties":false},"GetTripWatchStatusInput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false},"GetTripWatchStatusOutput":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["route","destination_set"]},"name":{"type":"string"},"params":{"anyOf":[{"type":"object","properties":{"tripType":{"type":"string","enum":["round_trip","one_way"]},"origin":{"type":"string","pattern":"^[A-Za-z]{3}$"},"destination":{"type":"string","pattern":"^[A-Za-z]{3}$"},"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"tripLengthNights":{"type":"integer","minimum":1,"maximum":45},"tripLengthRange":{"type":"array","items":[{"type":"integer","minimum":1,"maximum":45},{"type":"integer","minimum":1,"maximum":45}]},"adults":{"default":1,"type":"integer","minimum":1,"maximum":9},"children":{"default":0,"type":"integer","minimum":0,"maximum":8},"cabin":{"default":"economy","type":"string","enum":["economy","premium_economy","business","first"]},"maxStops":{"default":"any","type":"string","enum":["any","nonstop","one_stop"]},"currency":{"default":"USD","type":"string","pattern":"^[A-Za-z]{3}$"},"searchIntent":{"type":"string","enum":["ready","planning","exploring"]}},"required":["tripType","origin","destination","month","adults","children","cabin","maxStops","currency"],"additionalProperties":false},{"type":"object","properties":{"origin":{"type":"string","pattern":"^[A-Za-z]{3}$"},"destinations":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","pattern":"^[A-Za-z]{3}$"}},"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"tripLengthNights":{"type":"integer","minimum":1,"maximum":45},"adults":{"default":1,"type":"integer","minimum":1,"maximum":9},"children":{"default":0,"type":"integer","minimum":0,"maximum":8},"cabin":{"default":"economy","type":"string","enum":["economy","premium_economy","business","first"]},"maxStops":{"default":"any","type":"string","enum":["any","nonstop","one_stop"]},"currency":{"default":"USD","type":"string","pattern":"^[A-Za-z]{3}$"}},"required":["origin","destinations","month","tripLengthNights","adults","children","cabin","maxStops","currency"],"additionalProperties":false}]},"targetPriceCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"active":{"type":"boolean"},"status":{"type":"string","enum":["drafting","watching","recommendation_ready","expired","booked","paused"]},"lastBestPriceCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"lastBestPriceCurrency":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastSweepId":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastProof":{"anyOf":[{"type":"object","properties":{"plannedPairs":{"type":"integer","minimum":0,"maximum":9007199254740991},"checkedPairs":{"type":"integer","minimum":0,"maximum":9007199254740991},"coverageRatio":{"type":"number","minimum":0,"maximum":1},"liveFetches":{"type":"integer","minimum":0,"maximum":9007199254740991},"cacheHits":{"type":"integer","minimum":0,"maximum":9007199254740991},"historyHits":{"type":"integer","minimum":0,"maximum":9007199254740991},"deferredCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"rateLimitedCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"errorCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"candidateCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"checkedOutboundDates":{"type":"array","items":{"type":"string"}},"checkedTripLengths":{"type":"array","items":{"type":"integer","minimum":1,"maximum":45}},"medianDisplayAmountCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"nextBestDisplayAmountCents":{"anyOf":[{"type":"number"},{"enum":[null]}]},"excludedInventoryNote":{"type":"string"}},"required":["plannedPairs","checkedPairs","coverageRatio","liveFetches","cacheHits","historyHits","deferredCount","rateLimitedCount","errorCount","candidateCount","checkedOutboundDates","checkedTripLengths","medianDisplayAmountCents","nextBestDisplayAmountCents","excludedInventoryNote"],"additionalProperties":false},{"enum":[null]}]},"lastCheckedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"nextCheckAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastAlertedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastCheckStatus":{"anyOf":[{"type":"string","enum":["checked","skipped","failed"]},{"enum":[null]}]},"lastCheckReason":{"anyOf":[{"type":"string"},{"enum":[null]}]},"lastActionRequiredAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"recommendationExpiresAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"bookedOrderId":{"anyOf":[{"type":"string"},{"enum":[null]}]},"recommendation":{"anyOf":[{"type":"object","properties":{"label":{"type":"string","enum":["cheapest","recommended","nonstop","fastest_reasonable","wait"]},"reason":{"type":"string","minLength":1},"duffelOfferId":{"anyOf":[{"type":"string"},{"enum":[null]}]},"totalAmountCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"enum":[null]}]},"currency":{"anyOf":[{"type":"string","minLength":3,"maxLength":3},{"enum":[null]}]},"quotedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"expiresAt":{"anyOf":[{"type":"string"},{"enum":[null]}]}},"required":["label","reason","duffelOfferId","totalAmountCents","currency","quotedAt","expiresAt"],"additionalProperties":false},{"enum":[null]}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","type","name","params","targetPriceCents","active","status","lastBestPriceCents","lastBestPriceCurrency","lastSweepId","lastProof","lastCheckedAt","nextCheckAt","lastAlertedAt","lastCheckStatus","lastCheckReason","lastActionRequiredAt","recommendationExpiresAt","bookedOrderId","recommendation","createdAt","updatedAt"],"additionalProperties":false},"GetPreferencesSummaryInput":{"type":"object","properties":{},"additionalProperties":false},"GetPreferencesSummaryOutput":{"type":"object","properties":{"profiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"},"passengerType":{"type":"string","enum":["adult","child","infant_without_seat"]},"isDefaultLead":{"type":"boolean"},"hasContact":{"type":"boolean"},"hasPassport":{"type":"boolean"}},"required":["id","label","passengerType","isDefaultLead","hasContact","hasPassport"],"additionalProperties":false}},"preferences":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"enum":[null]}]},"preferences":{"type":"object","properties":{"homeAirports":{"default":[],"maxItems":6,"type":"array","items":{"type":"string","pattern":"^[A-Za-z]{3}$"}},"cabin":{"default":"economy","type":"string","enum":["economy","premium_economy","business","first"]},"maxStops":{"default":"any","type":"string","enum":["any","nonstop","one_stop"]},"preferredAirlines":{"default":[],"maxItems":12,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9]{2,3}$"}},"avoidedAirlines":{"default":[],"maxItems":12,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9]{2,3}$"}},"accessibilityNeeds":{"default":[],"maxItems":7,"type":"array","items":{"type":"string","enum":["wheelchair","mobility_assistance","visual_assistance","hearing_assistance","cognitive_assistance","service_animal","contact_required"]}},"checkedBags":{"default":0,"type":"integer","minimum":0,"maximum":9},"carryOnBags":{"default":1,"type":"integer","minimum":0,"maximum":9},"seatPreference":{"default":"any","type":"string","enum":["any","aisle","window"]},"maxLayoverMinutes":{"type":"integer","minimum":30,"maximum":1440},"minimumConnectionMinutes":{"type":"integer","minimum":30,"maximum":360},"avoidOvernightLayovers":{"default":false,"type":"boolean"},"avoidAirportChanges":{"default":true,"type":"boolean"},"tripLengthNights":{"type":"integer","minimum":1,"maximum":45},"budgetCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"notifyOnPriceDrops":{"default":true,"type":"boolean"}},"required":["homeAirports","cabin","maxStops","preferredAirlines","avoidedAirlines","accessibilityNeeds","checkedBags","carryOnBags","seatPreference","avoidOvernightLayovers","avoidAirportChanges","notifyOnPriceDrops"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["id","profileId","preferences","updatedAt"],"additionalProperties":false}},"summary":{"type":"string"}},"required":["profiles","preferences","summary"],"additionalProperties":false},"CreateCheckoutLinkInput":{"type":"object","properties":{"sweepId":{"type":"string","minLength":1},"duffelOfferId":{"type":"string","minLength":1},"travelerProfileIds":{"maxItems":9,"type":"array","items":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"enum":[null]}]}},"travelGoalId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":8,"maxLength":120,"pattern":"^[A-Za-z0-9._:-]+$"},"approvalId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"approvalToken":{"type":"string","minLength":32,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},"required":["sweepId","duffelOfferId","idempotencyKey"],"additionalProperties":false},"CreateCheckoutLinkOutput":{"type":"object","properties":{"intentId":{"type":"string"},"checkoutUrl":{"type":"string","format":"uri"},"quotedAt":{"type":"string"},"expiresAt":{"type":"string"},"totalPriceSnapshot":{"type":"object","properties":{"feeScheduleId":{"type":"string","minLength":1},"currency":{"type":"string","enum":["USD"]},"providerFareCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"selectedAncillaryAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"serviceFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierOrderFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierManagedContentFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierAncillaryFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeBps":{"type":"integer","minimum":0,"maximum":9999},"paymentFeeFixedCents":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeBufferCents":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paidAncillaryCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"managedContentApplies":{"type":"boolean"},"totalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeRefundable":{"type":"boolean","enum":[false]},"baseAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"markupAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierFeeAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"duffelOfferId":{"type":"string"},"duffelOfferRequestId":{"type":"string"},"expiresAt":{"type":"string"}},"required":["feeScheduleId","currency","providerFareCents","selectedAncillaryAmountCents","serviceFeeCents","supplierOrderFeeCents","supplierManagedContentFeeCents","supplierAncillaryFeeCents","supplierFeeCents","paymentFeeBps","paymentFeeFixedCents","paymentFeeBufferCents","paymentFeeCents","paidAncillaryCount","managedContentApplies","totalAmountCents","paymentFeeRefundable","baseAmountCents","markupAmountCents","supplierFeeAmountCents","paymentFeeAmountCents","duffelOfferId","duffelOfferRequestId","expiresAt"],"additionalProperties":false},"status":{"type":"string","enum":["ready","needs_recheck","payment_starting","payment_pending","confirmed","failed","expired","canceled"]},"priceChanged":{"default":false,"type":"boolean"},"oldDisplayCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"enum":[null]}]},"newDisplayCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"enum":[null]}]},"quoteRef":{"type":"object","properties":{"type":{"type":"string","enum":["sweep_candidate"]},"sweepId":{"type":"string","minLength":1},"duffelOfferId":{"type":"string","minLength":1}},"required":["type","sweepId","duffelOfferId"],"additionalProperties":false}},"required":["intentId","checkoutUrl","quotedAt","expiresAt","totalPriceSnapshot","status","priceChanged","quoteRef"],"additionalProperties":false},"GetBookingStatusInput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false},"GetBookingStatusOutput":{"type":"object","properties":{"type":{"type":"string","enum":["booking_intent","order"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["web","chat","mcp","case","support"]},"status":{"type":"string"},"quotedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"expiresAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"orderId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"enum":[null]}]},"totalPriceSnapshot":{"type":"object","properties":{"feeScheduleId":{"type":"string","minLength":1},"currency":{"type":"string","enum":["USD"]},"providerFareCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"selectedAncillaryAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"serviceFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierOrderFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierManagedContentFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierAncillaryFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeBps":{"type":"integer","minimum":0,"maximum":9999},"paymentFeeFixedCents":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeBufferCents":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paidAncillaryCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"managedContentApplies":{"type":"boolean"},"totalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeRefundable":{"type":"boolean","enum":[false]},"baseAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"markupAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"supplierFeeAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentFeeAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"duffelOfferId":{"type":"string"},"duffelOfferRequestId":{"type":"string"},"expiresAt":{"type":"string"}},"required":["feeScheduleId","currency","providerFareCents","selectedAncillaryAmountCents","serviceFeeCents","supplierOrderFeeCents","supplierManagedContentFeeCents","supplierAncillaryFeeCents","supplierFeeCents","paymentFeeBps","paymentFeeFixedCents","paymentFeeBufferCents","paymentFeeCents","paidAncillaryCount","managedContentApplies","totalAmountCents","paymentFeeRefundable","baseAmountCents","markupAmountCents","supplierFeeAmountCents","paymentFeeAmountCents","duffelOfferId","duffelOfferRequestId","expiresAt"],"additionalProperties":false},"totalAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3},"createdAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"tripUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"service":{"type":"object","properties":{"supportRequired":{"type":"boolean"},"reason":{"anyOf":[{"type":"string","enum":["schedule_change","booking_failed","manual_review_required","service_request"]},{"enum":[null]}]},"actionUrl":{"type":"string","format":"uri"},"scheduleChanges":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"notifiedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"resolvedAt":{"anyOf":[{"type":"string"},{"enum":[null]}]},"addedSegmentCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"removedSegmentCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","status","createdAt","notifiedAt","resolvedAt","addedSegmentCount","removedSegmentCount"],"additionalProperties":false}},"serviceRequestCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"openServiceRequestCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["supportRequired","reason","actionUrl","scheduleChanges","serviceRequestCount","openServiceRequestCount"],"additionalProperties":false},"cancellation":{"type":"object","properties":{"eligible":{"type":"boolean"},"deadline":{"type":"string"},"reason":{"anyOf":[{"type":"string","enum":["already_refunded","not_confirmed","window_elapsed","departure_too_soon"]},{"enum":[null]}]},"actionUrl":{"type":"string","format":"uri"}},"required":["eligible","deadline","reason","actionUrl"],"additionalProperties":false},"refund":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["refund_attempted","refunded"]},"amountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"refundedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"enum":[null]}]},"currency":{"type":"string","minLength":3,"maxLength":3},"reason":{"type":"string","enum":["booking_failed","order_refunded"]},"failureReasonCode":{"anyOf":[{"type":"string"},{"enum":[null]}]},"actionUrl":{"type":"string","format":"uri"}},"required":["status","amountCents","refundedCents","currency","reason","failureReasonCode","actionUrl"],"additionalProperties":false},{"enum":[null]}]}},"required":["type","id","status"],"additionalProperties":false}}}}