@fortrip/agent-contract 5.3.0 → 6.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +14 -10
  2. package/dist/index.d.ts +774 -2005
  3. package/dist/index.js +1642 -1044
  4. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -24,1294 +24,98 @@ declare const CARD_NUMBER_MESSAGE = "This looks like a payment card number. Paym
24
24
  */
25
25
  declare function containsCardNumber(text: string, minDigits?: number): boolean;
26
26
 
27
- /** An object that keeps fields it does not know. */
28
- declare function openObject<T extends z.ZodRawShape>(shape: T): z.ZodObject<T>;
29
- /**
30
- * An object another protocol defines (a UCP instrument's `config`), passed on
31
- * as that protocol has it: any fields, any values. Its fields are not the
32
- * contract's to close, so `strictOutput` keeps it as it is.
33
- */
34
- declare function protocolObject(): z.ZodType<Record<string, unknown>>;
35
- /** One of `values`, or any string. JSON Schema: `anyOf [enum, string]`. */
36
- declare function openEnum<const V extends readonly string[]>(values: V): z.ZodType<V[number] | (string & {})>;
37
- /**
38
- * A union picked by `discriminator`. A known value parses its own branch
39
- * (and fails if that branch is malformed); only an unknown value falls back
40
- * to an object with a string discriminator and any other fields.
41
- */
42
- declare function openUnion<D extends string, const B extends readonly z.ZodObject[]>(discriminator: D, branches: B): z.ZodType<OpenUnionOutput<D, B>>;
43
- /** The value of an open union's fallback branch: an unknown discriminator. */
44
- type OpenFallback<D extends string> = {
45
- [K in D]: string;
46
- } & Record<string, unknown>;
47
- /** What an open union parses to: one of its known branches, or the fallback. */
48
- type OpenUnionOutput<D extends string, B extends readonly z.ZodObject[]> = z.output<B[number]> | OpenFallback<D>;
49
- /** Parses `value`, keeping the unknown fields and values an open schema allows. */
50
- declare function parseOpen<T>(schema: z.ZodType<T>, value: unknown): T;
51
- /**
52
- * A deep-strict copy of an output schema for server tests: no unknown fields,
53
- * no unknown enum values, no fallback union branch. Wrappers (optional,
54
- * nullable, default, readonly, pipe, lazy) and containers (object, array,
55
- * tuple, record) are rebuilt around their closed contents, keeping their
56
- * checks and metadata. A protocol object stays as it is. A schema type it
57
- * cannot close (any, unknown, intersection, custom, ...) throws instead of
58
- * silently staying open.
59
- */
60
- declare function strictOutput<T extends z.ZodType>(schema: T): T;
61
-
62
- type ToolName = "search_hotels" | "get_hotel" | "get_hotel_offers" | "book_hotel" | "get_order" | "list_orders" | "cancel_order" | "pay_order";
63
- interface ToolSpec {
64
- name: ToolName;
65
- title: string;
66
- description: string;
67
- annotations: {
68
- readOnlyHint: boolean;
69
- idempotentHint: boolean;
70
- openWorldHint: boolean;
71
- destructiveHint: boolean;
72
- };
73
- /** What the tool takes. */
74
- input: z.ZodType;
75
- /** The open schema of what it answers with. */
76
- output: z.ZodType;
77
- }
78
- /**
79
- * The consent rule (spec §6). It rides on every MCP result that holds a
80
- * non-null `payment.url`, as `nextStep` and as the first next-step paragraph
81
- * of the text: some clients never show the model the server instructions.
82
- * The pay and wallet paragraphs after it repeat the rule on purpose: as the
83
- * result's last paragraph it keeps the model from giving the link before a
84
- * yes (paired eval, S6).
85
- */
86
- declare const ORDER_NEXT_STEP = "Before you give the user an order's payment.url, show them its total and currency, the stay (hotel, room, dates, and each room's party and guest names), the contact (name, email, phone), any special requests and every term (meals, cancellation, fees payable at the property), then end your reply by asking them to confirm, and wait for a clear yes. Only after they say yes, give them payment.url exactly as returned.";
87
- /** Where a rendered result is read: an MCP client, which calls tools with
88
- * JSON arguments, or the CLI, which runs commands with flags. */
89
- type RenderSurface = "mcp" | "cli";
90
- /**
91
- * The consent rule of a cancellation (spec §5.7, C11), as `surface` names
92
- * the call. It rides as the last paragraph of the text of every `get_order`
93
- * and `list_orders` result that holds an order with `cancel.available`
94
- * (an unpaid one, reason `unpaid`, aside: it is closed with no penalty),
95
- * after `ORDER_NEXT_STEP` when both apply, and never as `nextStep`, which
96
- * keeps its payment-only meaning.
97
- */
98
- declare function cancelNextStep(surface: RenderSurface): string;
99
- /** `cancelNextStep` over MCP. */
100
- declare const CANCEL_NEXT_STEP: string;
101
- /**
102
- * How to pay without the link, as `surface` names the call. It rides as the
103
- * last paragraph of the text of every `book_hotel`, `get_order` and
104
- * `list_orders` result that holds an order whose `payment.methods` has the
105
- * `stripe_shared_payment_token` entry, after `ORDER_NEXT_STEP`; never as
106
- * `nextStep`.
107
- */
108
- declare function payNextStep(surface: RenderSurface): string;
109
- /** `payNextStep` over MCP. */
110
- declare const PAY_NEXT_STEP: string;
111
- /**
112
- * How to pay with Alipay or WeChat Pay (spec §7), as `surface` names the
113
- * call. It rides as the last paragraph of the text of every `book_hotel`,
114
- * `get_order` and `list_orders` result that holds an order whose
115
- * `payment.methods` has the `stripe_alipay_wechat_pay` entry, not yet open;
116
- * never as `nextStep`.
117
- */
118
- declare function walletNextStep(surface: RenderSurface): string;
119
- /** `walletNextStep` over MCP. */
120
- declare const WALLET_NEXT_STEP: string;
121
- /**
122
- * How to present hotels (the `presentation` guide, in one line). It rides as
123
- * the last paragraph of every MCP `search_hotels`, `get_hotel` and
124
- * `get_hotel_offers` result: a rule next to the data is followed far more
125
- * reliably than one in the server instructions.
126
- */
127
- declare const PRESENTATION_HINT = "Presentation: If your interface can show rich elements, show each hotel as a card with only what Fortrip's tools returned for it in this conversation: photo, name, stars, region and price, and once you have offers every term that changes the choice (meals and who they cover, cancellation, fees payable at the property, confirmation), an unknown one as unknown. Label a search's `price.fromPerRoomNight` as an estimate per room-night and an offer's `price.total` as the whole stay for all rooms, in its currency, and draw a map only from returned `location` coordinates. Offer the choices you need to ask anyway (dates, a locality, which offer) as options to pick. Otherwise use a short list. Keep hotel names as returned, and never invent photos, ratings, reviews, prices, terms or coordinates.";
128
- /** The answers over MCP that are orders. Those that can hold a
129
- * `payment.url` are the HTTP answer plus `nextStep`, which only MCP
130
- * declares; `cancel_order`'s and `pay_order`'s never hold one, so they are
131
- * the HTTP answer. */
132
- declare const MCP_OUTPUT: {
133
- readonly book_hotel: z.ZodObject<{
134
- orderId: z.ZodString;
135
- reference: z.ZodString;
136
- status: z.ZodType<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown, z.core.$ZodTypeInternals<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown>>;
137
- createdAt: z.ZodString;
138
- updatedAt: z.ZodString;
139
- contact: z.ZodNullable<z.ZodObject<{
140
- name: z.ZodString;
141
- email: z.ZodNullable<z.ZodString>;
142
- phone: z.ZodNullable<z.ZodString>;
143
- }, z.core.$strip>>;
144
- items: z.ZodArray<z.ZodType<OpenUnionOutput<"type", readonly [z.ZodObject<{
145
- type: z.ZodLiteral<"hotel">;
146
- hotel: z.ZodObject<{
147
- hotelId: z.ZodNullable<z.ZodString>;
148
- name: z.ZodString;
149
- names: z.ZodObject<{
150
- en: z.ZodNullable<z.ZodString>;
151
- zh: z.ZodNullable<z.ZodString>;
152
- }, z.core.$strip>;
153
- checkIn: z.ZodString;
154
- checkOut: z.ZodString;
155
- timeZone: z.ZodNullable<z.ZodString>;
156
- rooms: z.ZodArray<z.ZodObject<{
157
- adults: z.ZodNumber;
158
- childrenAges: z.ZodArray<z.ZodNumber>;
159
- guests: z.ZodNullable<z.ZodArray<z.ZodObject<{
160
- firstName: z.ZodString;
161
- lastName: z.ZodString;
162
- }, z.core.$strip>>>;
163
- }, z.core.$strip>>;
164
- specialRequests: z.ZodNullable<z.ZodString>;
165
- room: z.ZodObject<{
166
- name: z.ZodNullable<z.ZodObject<{
167
- text: z.ZodString;
168
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
169
- }, z.core.$strip>>;
170
- beds: z.ZodNullable<z.ZodObject<{
171
- text: z.ZodString;
172
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
173
- }, z.core.$strip>>;
174
- }, z.core.$strip>;
175
- meals: z.ZodObject<{
176
- known: z.ZodBoolean;
177
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
178
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
179
- allInclusive: z.ZodNullable<z.ZodBoolean>;
180
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
181
- label: z.ZodNullable<z.ZodObject<{
182
- text: z.ZodString;
183
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
184
- }, z.core.$strip>>;
185
- }, z.core.$strip>;
186
- cancellation: z.ZodObject<{
187
- status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
188
- asOf: z.ZodString;
189
- freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
190
- penalties: z.ZodArray<z.ZodObject<{
191
- startsAt: z.ZodNullable<z.ZodString>;
192
- amount: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
193
- }, z.core.$strip>>;
194
- timeZone: z.ZodNullable<z.ZodString>;
195
- }, z.core.$strip>;
196
- payAtProperty: z.ZodObject<{
197
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
198
- items: z.ZodArray<z.ZodObject<{
199
- label: z.ZodNullable<z.ZodObject<{
200
- text: z.ZodString;
201
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
202
- }, z.core.$strip>>;
203
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
204
- mandatory: z.ZodBoolean;
205
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
206
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
207
- }, z.core.$strip>>;
208
- }, z.core.$strip>;
209
- confirmationNumber: z.ZodNullable<z.ZodString>;
210
- }, z.core.$strip>;
211
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"type", readonly [z.ZodObject<{
212
- type: z.ZodLiteral<"hotel">;
213
- hotel: z.ZodObject<{
214
- hotelId: z.ZodNullable<z.ZodString>;
215
- name: z.ZodString;
216
- names: z.ZodObject<{
217
- en: z.ZodNullable<z.ZodString>;
218
- zh: z.ZodNullable<z.ZodString>;
219
- }, z.core.$strip>;
220
- checkIn: z.ZodString;
221
- checkOut: z.ZodString;
222
- timeZone: z.ZodNullable<z.ZodString>;
223
- rooms: z.ZodArray<z.ZodObject<{
224
- adults: z.ZodNumber;
225
- childrenAges: z.ZodArray<z.ZodNumber>;
226
- guests: z.ZodNullable<z.ZodArray<z.ZodObject<{
227
- firstName: z.ZodString;
228
- lastName: z.ZodString;
229
- }, z.core.$strip>>>;
230
- }, z.core.$strip>>;
231
- specialRequests: z.ZodNullable<z.ZodString>;
232
- room: z.ZodObject<{
233
- name: z.ZodNullable<z.ZodObject<{
234
- text: z.ZodString;
235
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
236
- }, z.core.$strip>>;
237
- beds: z.ZodNullable<z.ZodObject<{
238
- text: z.ZodString;
239
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
240
- }, z.core.$strip>>;
241
- }, z.core.$strip>;
242
- meals: z.ZodObject<{
243
- known: z.ZodBoolean;
244
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
245
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
246
- allInclusive: z.ZodNullable<z.ZodBoolean>;
247
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
248
- label: z.ZodNullable<z.ZodObject<{
249
- text: z.ZodString;
250
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
251
- }, z.core.$strip>>;
252
- }, z.core.$strip>;
253
- cancellation: z.ZodObject<{
254
- status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
255
- asOf: z.ZodString;
256
- freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
257
- penalties: z.ZodArray<z.ZodObject<{
258
- startsAt: z.ZodNullable<z.ZodString>;
259
- amount: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
260
- }, z.core.$strip>>;
261
- timeZone: z.ZodNullable<z.ZodString>;
262
- }, z.core.$strip>;
263
- payAtProperty: z.ZodObject<{
264
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
265
- items: z.ZodArray<z.ZodObject<{
266
- label: z.ZodNullable<z.ZodObject<{
267
- text: z.ZodString;
268
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
269
- }, z.core.$strip>>;
270
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
271
- mandatory: z.ZodBoolean;
272
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
273
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
274
- }, z.core.$strip>>;
275
- }, z.core.$strip>;
276
- confirmationNumber: z.ZodNullable<z.ZodString>;
277
- }, z.core.$strip>;
278
- }, z.core.$strip>]>, unknown>>>;
279
- price: z.ZodObject<{
280
- total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
281
- }, z.core.$strip>;
282
- payment: z.ZodObject<{
283
- status: z.ZodType<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown, z.core.$ZodTypeInternals<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown>>;
284
- url: z.ZodNullable<z.ZodString>;
285
- requiresSignIn: z.ZodBoolean;
286
- expiresAt: z.ZodNullable<z.ZodString>;
287
- chargeCurrency: z.ZodString;
288
- localCurrencyAtCheckout: z.ZodBoolean;
289
- localCharge: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
290
- methods: z.ZodArray<z.ZodType<OpenUnionOutput<"id", readonly [z.ZodObject<{
291
- id: z.ZodLiteral<"stripe_shared_payment_token">;
292
- handler: z.ZodObject<{
293
- id: z.ZodString;
294
- type: z.ZodString;
295
- version: z.ZodString;
296
- spec: z.ZodString;
297
- schema: z.ZodString;
298
- available_instruments: z.ZodArray<z.ZodObject<{
299
- type: z.ZodString;
300
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
301
- }, z.core.$strip>>;
302
- config: z.ZodObject<{
303
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
304
- business_profile: z.ZodString;
305
- }, z.core.$strip>;
306
- }, z.core.$strip>;
307
- limits: z.ZodObject<{
308
- maxAmount: z.ZodNumber;
309
- currency: z.ZodString;
310
- expiresAt: z.ZodString;
311
- }, z.core.$strip>;
312
- }, z.core.$strip>, z.ZodObject<{
313
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
314
- open: z.ZodBoolean;
315
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
316
- wechatPay: z.ZodNullable<z.ZodObject<{
317
- qrData: z.ZodNullable<z.ZodString>;
318
- qrImageUrl: z.ZodNullable<z.ZodString>;
319
- url: z.ZodString;
320
- }, z.core.$strip>>;
321
- alipay: z.ZodNullable<z.ZodObject<{
322
- url: z.ZodString;
323
- }, z.core.$strip>>;
324
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"id", readonly [z.ZodObject<{
325
- id: z.ZodLiteral<"stripe_shared_payment_token">;
326
- handler: z.ZodObject<{
327
- id: z.ZodString;
328
- type: z.ZodString;
329
- version: z.ZodString;
330
- spec: z.ZodString;
331
- schema: z.ZodString;
332
- available_instruments: z.ZodArray<z.ZodObject<{
333
- type: z.ZodString;
334
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
335
- }, z.core.$strip>>;
336
- config: z.ZodObject<{
337
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
338
- business_profile: z.ZodString;
339
- }, z.core.$strip>;
340
- }, z.core.$strip>;
341
- limits: z.ZodObject<{
342
- maxAmount: z.ZodNumber;
343
- currency: z.ZodString;
344
- expiresAt: z.ZodString;
345
- }, z.core.$strip>;
346
- }, z.core.$strip>, z.ZodObject<{
347
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
348
- open: z.ZodBoolean;
349
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
350
- wechatPay: z.ZodNullable<z.ZodObject<{
351
- qrData: z.ZodNullable<z.ZodString>;
352
- qrImageUrl: z.ZodNullable<z.ZodString>;
353
- url: z.ZodString;
354
- }, z.core.$strip>>;
355
- alipay: z.ZodNullable<z.ZodObject<{
356
- url: z.ZodString;
357
- }, z.core.$strip>>;
358
- }, z.core.$strip>]>, unknown>>>;
359
- }, z.core.$strip>;
360
- cancel: z.ZodObject<{
361
- available: z.ZodBoolean;
362
- reason: z.ZodType<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown, z.core.$ZodTypeInternals<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown>>;
363
- penalty: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
364
- refund: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
365
- }, z.core.$strip>;
366
- manageUrl: z.ZodString;
367
- nextStep: z.ZodOptional<z.ZodString>;
368
- }, z.core.$strip>;
369
- readonly get_order: z.ZodObject<{
370
- orderId: z.ZodString;
371
- reference: z.ZodString;
372
- status: z.ZodType<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown, z.core.$ZodTypeInternals<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown>>;
373
- createdAt: z.ZodString;
374
- updatedAt: z.ZodString;
375
- contact: z.ZodNullable<z.ZodObject<{
376
- name: z.ZodString;
377
- email: z.ZodNullable<z.ZodString>;
378
- phone: z.ZodNullable<z.ZodString>;
379
- }, z.core.$strip>>;
380
- items: z.ZodArray<z.ZodType<OpenUnionOutput<"type", readonly [z.ZodObject<{
381
- type: z.ZodLiteral<"hotel">;
382
- hotel: z.ZodObject<{
383
- hotelId: z.ZodNullable<z.ZodString>;
384
- name: z.ZodString;
385
- names: z.ZodObject<{
386
- en: z.ZodNullable<z.ZodString>;
387
- zh: z.ZodNullable<z.ZodString>;
388
- }, z.core.$strip>;
389
- checkIn: z.ZodString;
390
- checkOut: z.ZodString;
391
- timeZone: z.ZodNullable<z.ZodString>;
392
- rooms: z.ZodArray<z.ZodObject<{
393
- adults: z.ZodNumber;
394
- childrenAges: z.ZodArray<z.ZodNumber>;
395
- guests: z.ZodNullable<z.ZodArray<z.ZodObject<{
396
- firstName: z.ZodString;
397
- lastName: z.ZodString;
398
- }, z.core.$strip>>>;
399
- }, z.core.$strip>>;
400
- specialRequests: z.ZodNullable<z.ZodString>;
401
- room: z.ZodObject<{
402
- name: z.ZodNullable<z.ZodObject<{
403
- text: z.ZodString;
404
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
405
- }, z.core.$strip>>;
406
- beds: z.ZodNullable<z.ZodObject<{
407
- text: z.ZodString;
408
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
409
- }, z.core.$strip>>;
410
- }, z.core.$strip>;
411
- meals: z.ZodObject<{
412
- known: z.ZodBoolean;
413
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
414
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
415
- allInclusive: z.ZodNullable<z.ZodBoolean>;
416
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
417
- label: z.ZodNullable<z.ZodObject<{
418
- text: z.ZodString;
419
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
420
- }, z.core.$strip>>;
421
- }, z.core.$strip>;
422
- cancellation: z.ZodObject<{
423
- status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
424
- asOf: z.ZodString;
425
- freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
426
- penalties: z.ZodArray<z.ZodObject<{
427
- startsAt: z.ZodNullable<z.ZodString>;
428
- amount: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
429
- }, z.core.$strip>>;
430
- timeZone: z.ZodNullable<z.ZodString>;
431
- }, z.core.$strip>;
432
- payAtProperty: z.ZodObject<{
433
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
434
- items: z.ZodArray<z.ZodObject<{
435
- label: z.ZodNullable<z.ZodObject<{
436
- text: z.ZodString;
437
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
438
- }, z.core.$strip>>;
439
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
440
- mandatory: z.ZodBoolean;
441
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
442
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
443
- }, z.core.$strip>>;
444
- }, z.core.$strip>;
445
- confirmationNumber: z.ZodNullable<z.ZodString>;
446
- }, z.core.$strip>;
447
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"type", readonly [z.ZodObject<{
448
- type: z.ZodLiteral<"hotel">;
449
- hotel: z.ZodObject<{
450
- hotelId: z.ZodNullable<z.ZodString>;
451
- name: z.ZodString;
452
- names: z.ZodObject<{
453
- en: z.ZodNullable<z.ZodString>;
454
- zh: z.ZodNullable<z.ZodString>;
455
- }, z.core.$strip>;
456
- checkIn: z.ZodString;
457
- checkOut: z.ZodString;
458
- timeZone: z.ZodNullable<z.ZodString>;
459
- rooms: z.ZodArray<z.ZodObject<{
460
- adults: z.ZodNumber;
461
- childrenAges: z.ZodArray<z.ZodNumber>;
462
- guests: z.ZodNullable<z.ZodArray<z.ZodObject<{
463
- firstName: z.ZodString;
464
- lastName: z.ZodString;
465
- }, z.core.$strip>>>;
466
- }, z.core.$strip>>;
467
- specialRequests: z.ZodNullable<z.ZodString>;
468
- room: z.ZodObject<{
469
- name: z.ZodNullable<z.ZodObject<{
470
- text: z.ZodString;
471
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
472
- }, z.core.$strip>>;
473
- beds: z.ZodNullable<z.ZodObject<{
474
- text: z.ZodString;
475
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
476
- }, z.core.$strip>>;
477
- }, z.core.$strip>;
478
- meals: z.ZodObject<{
479
- known: z.ZodBoolean;
480
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
481
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
482
- allInclusive: z.ZodNullable<z.ZodBoolean>;
483
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
484
- label: z.ZodNullable<z.ZodObject<{
485
- text: z.ZodString;
486
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
487
- }, z.core.$strip>>;
488
- }, z.core.$strip>;
489
- cancellation: z.ZodObject<{
490
- status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
491
- asOf: z.ZodString;
492
- freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
493
- penalties: z.ZodArray<z.ZodObject<{
494
- startsAt: z.ZodNullable<z.ZodString>;
495
- amount: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
496
- }, z.core.$strip>>;
497
- timeZone: z.ZodNullable<z.ZodString>;
498
- }, z.core.$strip>;
499
- payAtProperty: z.ZodObject<{
500
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
501
- items: z.ZodArray<z.ZodObject<{
502
- label: z.ZodNullable<z.ZodObject<{
503
- text: z.ZodString;
504
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
505
- }, z.core.$strip>>;
506
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
507
- mandatory: z.ZodBoolean;
508
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
509
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
510
- }, z.core.$strip>>;
511
- }, z.core.$strip>;
512
- confirmationNumber: z.ZodNullable<z.ZodString>;
513
- }, z.core.$strip>;
514
- }, z.core.$strip>]>, unknown>>>;
515
- price: z.ZodObject<{
516
- total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
517
- }, z.core.$strip>;
518
- payment: z.ZodObject<{
519
- status: z.ZodType<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown, z.core.$ZodTypeInternals<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown>>;
520
- url: z.ZodNullable<z.ZodString>;
521
- requiresSignIn: z.ZodBoolean;
522
- expiresAt: z.ZodNullable<z.ZodString>;
523
- chargeCurrency: z.ZodString;
524
- localCurrencyAtCheckout: z.ZodBoolean;
525
- localCharge: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
526
- methods: z.ZodArray<z.ZodType<OpenUnionOutput<"id", readonly [z.ZodObject<{
527
- id: z.ZodLiteral<"stripe_shared_payment_token">;
528
- handler: z.ZodObject<{
529
- id: z.ZodString;
530
- type: z.ZodString;
531
- version: z.ZodString;
532
- spec: z.ZodString;
533
- schema: z.ZodString;
534
- available_instruments: z.ZodArray<z.ZodObject<{
535
- type: z.ZodString;
536
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
537
- }, z.core.$strip>>;
538
- config: z.ZodObject<{
539
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
540
- business_profile: z.ZodString;
541
- }, z.core.$strip>;
542
- }, z.core.$strip>;
543
- limits: z.ZodObject<{
544
- maxAmount: z.ZodNumber;
545
- currency: z.ZodString;
546
- expiresAt: z.ZodString;
547
- }, z.core.$strip>;
548
- }, z.core.$strip>, z.ZodObject<{
549
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
550
- open: z.ZodBoolean;
551
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
552
- wechatPay: z.ZodNullable<z.ZodObject<{
553
- qrData: z.ZodNullable<z.ZodString>;
554
- qrImageUrl: z.ZodNullable<z.ZodString>;
555
- url: z.ZodString;
556
- }, z.core.$strip>>;
557
- alipay: z.ZodNullable<z.ZodObject<{
558
- url: z.ZodString;
559
- }, z.core.$strip>>;
560
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"id", readonly [z.ZodObject<{
561
- id: z.ZodLiteral<"stripe_shared_payment_token">;
562
- handler: z.ZodObject<{
563
- id: z.ZodString;
564
- type: z.ZodString;
565
- version: z.ZodString;
566
- spec: z.ZodString;
567
- schema: z.ZodString;
568
- available_instruments: z.ZodArray<z.ZodObject<{
569
- type: z.ZodString;
570
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
571
- }, z.core.$strip>>;
572
- config: z.ZodObject<{
573
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
574
- business_profile: z.ZodString;
575
- }, z.core.$strip>;
576
- }, z.core.$strip>;
577
- limits: z.ZodObject<{
578
- maxAmount: z.ZodNumber;
579
- currency: z.ZodString;
580
- expiresAt: z.ZodString;
581
- }, z.core.$strip>;
582
- }, z.core.$strip>, z.ZodObject<{
583
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
584
- open: z.ZodBoolean;
585
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
586
- wechatPay: z.ZodNullable<z.ZodObject<{
587
- qrData: z.ZodNullable<z.ZodString>;
588
- qrImageUrl: z.ZodNullable<z.ZodString>;
589
- url: z.ZodString;
590
- }, z.core.$strip>>;
591
- alipay: z.ZodNullable<z.ZodObject<{
592
- url: z.ZodString;
593
- }, z.core.$strip>>;
594
- }, z.core.$strip>]>, unknown>>>;
595
- }, z.core.$strip>;
596
- cancel: z.ZodObject<{
597
- available: z.ZodBoolean;
598
- reason: z.ZodType<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown, z.core.$ZodTypeInternals<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown>>;
599
- penalty: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
600
- refund: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
601
- }, z.core.$strip>;
602
- manageUrl: z.ZodString;
603
- nextStep: z.ZodOptional<z.ZodString>;
604
- }, z.core.$strip>;
605
- readonly list_orders: z.ZodObject<{
606
- data: z.ZodArray<z.ZodObject<{
607
- orderId: z.ZodString;
608
- reference: z.ZodString;
609
- status: z.ZodType<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown, z.core.$ZodTypeInternals<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown>>;
610
- createdAt: z.ZodString;
611
- updatedAt: z.ZodString;
612
- contact: z.ZodNullable<z.ZodObject<{
613
- name: z.ZodString;
614
- email: z.ZodNullable<z.ZodString>;
615
- phone: z.ZodNullable<z.ZodString>;
616
- }, z.core.$strip>>;
617
- items: z.ZodArray<z.ZodType<OpenUnionOutput<"type", readonly [z.ZodObject<{
618
- type: z.ZodLiteral<"hotel">;
619
- hotel: z.ZodObject<{
620
- hotelId: z.ZodNullable<z.ZodString>;
621
- name: z.ZodString;
622
- names: z.ZodObject<{
623
- en: z.ZodNullable<z.ZodString>;
624
- zh: z.ZodNullable<z.ZodString>;
625
- }, z.core.$strip>;
626
- checkIn: z.ZodString;
627
- checkOut: z.ZodString;
628
- timeZone: z.ZodNullable<z.ZodString>;
629
- rooms: z.ZodArray<z.ZodObject<{
630
- adults: z.ZodNumber;
631
- childrenAges: z.ZodArray<z.ZodNumber>;
632
- guests: z.ZodNullable<z.ZodArray<z.ZodObject<{
633
- firstName: z.ZodString;
634
- lastName: z.ZodString;
635
- }, z.core.$strip>>>;
636
- }, z.core.$strip>>;
637
- specialRequests: z.ZodNullable<z.ZodString>;
638
- room: z.ZodObject<{
639
- name: z.ZodNullable<z.ZodObject<{
640
- text: z.ZodString;
641
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
642
- }, z.core.$strip>>;
643
- beds: z.ZodNullable<z.ZodObject<{
644
- text: z.ZodString;
645
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
646
- }, z.core.$strip>>;
647
- }, z.core.$strip>;
648
- meals: z.ZodObject<{
649
- known: z.ZodBoolean;
650
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
651
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
652
- allInclusive: z.ZodNullable<z.ZodBoolean>;
653
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
654
- label: z.ZodNullable<z.ZodObject<{
655
- text: z.ZodString;
656
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
657
- }, z.core.$strip>>;
658
- }, z.core.$strip>;
659
- cancellation: z.ZodObject<{
660
- status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
661
- asOf: z.ZodString;
662
- freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
663
- penalties: z.ZodArray<z.ZodObject<{
664
- startsAt: z.ZodNullable<z.ZodString>;
665
- amount: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
666
- }, z.core.$strip>>;
667
- timeZone: z.ZodNullable<z.ZodString>;
668
- }, z.core.$strip>;
669
- payAtProperty: z.ZodObject<{
670
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
671
- items: z.ZodArray<z.ZodObject<{
672
- label: z.ZodNullable<z.ZodObject<{
673
- text: z.ZodString;
674
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
675
- }, z.core.$strip>>;
676
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
677
- mandatory: z.ZodBoolean;
678
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
679
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
680
- }, z.core.$strip>>;
681
- }, z.core.$strip>;
682
- confirmationNumber: z.ZodNullable<z.ZodString>;
683
- }, z.core.$strip>;
684
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"type", readonly [z.ZodObject<{
685
- type: z.ZodLiteral<"hotel">;
686
- hotel: z.ZodObject<{
687
- hotelId: z.ZodNullable<z.ZodString>;
688
- name: z.ZodString;
689
- names: z.ZodObject<{
690
- en: z.ZodNullable<z.ZodString>;
691
- zh: z.ZodNullable<z.ZodString>;
692
- }, z.core.$strip>;
693
- checkIn: z.ZodString;
694
- checkOut: z.ZodString;
695
- timeZone: z.ZodNullable<z.ZodString>;
696
- rooms: z.ZodArray<z.ZodObject<{
697
- adults: z.ZodNumber;
698
- childrenAges: z.ZodArray<z.ZodNumber>;
699
- guests: z.ZodNullable<z.ZodArray<z.ZodObject<{
700
- firstName: z.ZodString;
701
- lastName: z.ZodString;
702
- }, z.core.$strip>>>;
703
- }, z.core.$strip>>;
704
- specialRequests: z.ZodNullable<z.ZodString>;
705
- room: z.ZodObject<{
706
- name: z.ZodNullable<z.ZodObject<{
707
- text: z.ZodString;
708
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
709
- }, z.core.$strip>>;
710
- beds: z.ZodNullable<z.ZodObject<{
711
- text: z.ZodString;
712
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
713
- }, z.core.$strip>>;
714
- }, z.core.$strip>;
715
- meals: z.ZodObject<{
716
- known: z.ZodBoolean;
717
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
718
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
719
- allInclusive: z.ZodNullable<z.ZodBoolean>;
720
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
721
- label: z.ZodNullable<z.ZodObject<{
722
- text: z.ZodString;
723
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
724
- }, z.core.$strip>>;
725
- }, z.core.$strip>;
726
- cancellation: z.ZodObject<{
727
- status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
728
- asOf: z.ZodString;
729
- freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
730
- penalties: z.ZodArray<z.ZodObject<{
731
- startsAt: z.ZodNullable<z.ZodString>;
732
- amount: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
733
- }, z.core.$strip>>;
734
- timeZone: z.ZodNullable<z.ZodString>;
735
- }, z.core.$strip>;
736
- payAtProperty: z.ZodObject<{
737
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
738
- items: z.ZodArray<z.ZodObject<{
739
- label: z.ZodNullable<z.ZodObject<{
740
- text: z.ZodString;
741
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
742
- }, z.core.$strip>>;
743
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
744
- mandatory: z.ZodBoolean;
745
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
746
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
747
- }, z.core.$strip>>;
748
- }, z.core.$strip>;
749
- confirmationNumber: z.ZodNullable<z.ZodString>;
750
- }, z.core.$strip>;
751
- }, z.core.$strip>]>, unknown>>>;
752
- price: z.ZodObject<{
753
- total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
754
- }, z.core.$strip>;
755
- payment: z.ZodObject<{
756
- status: z.ZodType<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown, z.core.$ZodTypeInternals<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown>>;
757
- url: z.ZodNullable<z.ZodString>;
758
- requiresSignIn: z.ZodBoolean;
759
- expiresAt: z.ZodNullable<z.ZodString>;
760
- chargeCurrency: z.ZodString;
761
- localCurrencyAtCheckout: z.ZodBoolean;
762
- localCharge: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
763
- methods: z.ZodArray<z.ZodType<OpenUnionOutput<"id", readonly [z.ZodObject<{
764
- id: z.ZodLiteral<"stripe_shared_payment_token">;
765
- handler: z.ZodObject<{
766
- id: z.ZodString;
767
- type: z.ZodString;
768
- version: z.ZodString;
769
- spec: z.ZodString;
770
- schema: z.ZodString;
771
- available_instruments: z.ZodArray<z.ZodObject<{
772
- type: z.ZodString;
773
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
774
- }, z.core.$strip>>;
775
- config: z.ZodObject<{
776
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
777
- business_profile: z.ZodString;
778
- }, z.core.$strip>;
779
- }, z.core.$strip>;
780
- limits: z.ZodObject<{
781
- maxAmount: z.ZodNumber;
782
- currency: z.ZodString;
783
- expiresAt: z.ZodString;
784
- }, z.core.$strip>;
785
- }, z.core.$strip>, z.ZodObject<{
786
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
787
- open: z.ZodBoolean;
788
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
789
- wechatPay: z.ZodNullable<z.ZodObject<{
790
- qrData: z.ZodNullable<z.ZodString>;
791
- qrImageUrl: z.ZodNullable<z.ZodString>;
792
- url: z.ZodString;
793
- }, z.core.$strip>>;
794
- alipay: z.ZodNullable<z.ZodObject<{
795
- url: z.ZodString;
796
- }, z.core.$strip>>;
797
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"id", readonly [z.ZodObject<{
798
- id: z.ZodLiteral<"stripe_shared_payment_token">;
799
- handler: z.ZodObject<{
800
- id: z.ZodString;
801
- type: z.ZodString;
802
- version: z.ZodString;
803
- spec: z.ZodString;
804
- schema: z.ZodString;
805
- available_instruments: z.ZodArray<z.ZodObject<{
806
- type: z.ZodString;
807
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
808
- }, z.core.$strip>>;
809
- config: z.ZodObject<{
810
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
811
- business_profile: z.ZodString;
812
- }, z.core.$strip>;
813
- }, z.core.$strip>;
814
- limits: z.ZodObject<{
815
- maxAmount: z.ZodNumber;
816
- currency: z.ZodString;
817
- expiresAt: z.ZodString;
818
- }, z.core.$strip>;
819
- }, z.core.$strip>, z.ZodObject<{
820
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
821
- open: z.ZodBoolean;
822
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
823
- wechatPay: z.ZodNullable<z.ZodObject<{
824
- qrData: z.ZodNullable<z.ZodString>;
825
- qrImageUrl: z.ZodNullable<z.ZodString>;
826
- url: z.ZodString;
827
- }, z.core.$strip>>;
828
- alipay: z.ZodNullable<z.ZodObject<{
829
- url: z.ZodString;
830
- }, z.core.$strip>>;
831
- }, z.core.$strip>]>, unknown>>>;
832
- }, z.core.$strip>;
833
- cancel: z.ZodObject<{
834
- available: z.ZodBoolean;
835
- reason: z.ZodType<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown, z.core.$ZodTypeInternals<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown>>;
836
- penalty: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
837
- refund: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
838
- }, z.core.$strip>;
839
- manageUrl: z.ZodString;
840
- }, z.core.$strip>>;
841
- nextCursor: z.ZodNullable<z.ZodString>;
842
- nextStep: z.ZodOptional<z.ZodString>;
843
- }, z.core.$strip>;
844
- readonly cancel_order: z.ZodObject<{
845
- orderId: z.ZodString;
846
- reference: z.ZodString;
847
- status: z.ZodType<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown, z.core.$ZodTypeInternals<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown>>;
848
- createdAt: z.ZodString;
849
- updatedAt: z.ZodString;
850
- contact: z.ZodNullable<z.ZodObject<{
851
- name: z.ZodString;
852
- email: z.ZodNullable<z.ZodString>;
853
- phone: z.ZodNullable<z.ZodString>;
854
- }, z.core.$strip>>;
855
- items: z.ZodArray<z.ZodType<OpenUnionOutput<"type", readonly [z.ZodObject<{
856
- type: z.ZodLiteral<"hotel">;
857
- hotel: z.ZodObject<{
858
- hotelId: z.ZodNullable<z.ZodString>;
859
- name: z.ZodString;
860
- names: z.ZodObject<{
861
- en: z.ZodNullable<z.ZodString>;
862
- zh: z.ZodNullable<z.ZodString>;
863
- }, z.core.$strip>;
864
- checkIn: z.ZodString;
865
- checkOut: z.ZodString;
866
- timeZone: z.ZodNullable<z.ZodString>;
867
- rooms: z.ZodArray<z.ZodObject<{
868
- adults: z.ZodNumber;
869
- childrenAges: z.ZodArray<z.ZodNumber>;
870
- guests: z.ZodNullable<z.ZodArray<z.ZodObject<{
871
- firstName: z.ZodString;
872
- lastName: z.ZodString;
873
- }, z.core.$strip>>>;
874
- }, z.core.$strip>>;
875
- specialRequests: z.ZodNullable<z.ZodString>;
876
- room: z.ZodObject<{
877
- name: z.ZodNullable<z.ZodObject<{
878
- text: z.ZodString;
879
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
880
- }, z.core.$strip>>;
881
- beds: z.ZodNullable<z.ZodObject<{
882
- text: z.ZodString;
883
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
884
- }, z.core.$strip>>;
885
- }, z.core.$strip>;
886
- meals: z.ZodObject<{
887
- known: z.ZodBoolean;
888
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
889
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
890
- allInclusive: z.ZodNullable<z.ZodBoolean>;
891
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
892
- label: z.ZodNullable<z.ZodObject<{
893
- text: z.ZodString;
894
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
895
- }, z.core.$strip>>;
896
- }, z.core.$strip>;
897
- cancellation: z.ZodObject<{
898
- status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
899
- asOf: z.ZodString;
900
- freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
901
- penalties: z.ZodArray<z.ZodObject<{
902
- startsAt: z.ZodNullable<z.ZodString>;
903
- amount: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
904
- }, z.core.$strip>>;
905
- timeZone: z.ZodNullable<z.ZodString>;
906
- }, z.core.$strip>;
907
- payAtProperty: z.ZodObject<{
908
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
909
- items: z.ZodArray<z.ZodObject<{
910
- label: z.ZodNullable<z.ZodObject<{
911
- text: z.ZodString;
912
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
913
- }, z.core.$strip>>;
914
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
915
- mandatory: z.ZodBoolean;
916
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
917
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
918
- }, z.core.$strip>>;
919
- }, z.core.$strip>;
920
- confirmationNumber: z.ZodNullable<z.ZodString>;
921
- }, z.core.$strip>;
922
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"type", readonly [z.ZodObject<{
923
- type: z.ZodLiteral<"hotel">;
924
- hotel: z.ZodObject<{
925
- hotelId: z.ZodNullable<z.ZodString>;
926
- name: z.ZodString;
927
- names: z.ZodObject<{
928
- en: z.ZodNullable<z.ZodString>;
929
- zh: z.ZodNullable<z.ZodString>;
930
- }, z.core.$strip>;
931
- checkIn: z.ZodString;
932
- checkOut: z.ZodString;
933
- timeZone: z.ZodNullable<z.ZodString>;
934
- rooms: z.ZodArray<z.ZodObject<{
935
- adults: z.ZodNumber;
936
- childrenAges: z.ZodArray<z.ZodNumber>;
937
- guests: z.ZodNullable<z.ZodArray<z.ZodObject<{
938
- firstName: z.ZodString;
939
- lastName: z.ZodString;
940
- }, z.core.$strip>>>;
941
- }, z.core.$strip>>;
942
- specialRequests: z.ZodNullable<z.ZodString>;
943
- room: z.ZodObject<{
944
- name: z.ZodNullable<z.ZodObject<{
945
- text: z.ZodString;
946
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
947
- }, z.core.$strip>>;
948
- beds: z.ZodNullable<z.ZodObject<{
949
- text: z.ZodString;
950
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
951
- }, z.core.$strip>>;
952
- }, z.core.$strip>;
953
- meals: z.ZodObject<{
954
- known: z.ZodBoolean;
955
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
956
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
957
- allInclusive: z.ZodNullable<z.ZodBoolean>;
958
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
959
- label: z.ZodNullable<z.ZodObject<{
960
- text: z.ZodString;
961
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
962
- }, z.core.$strip>>;
963
- }, z.core.$strip>;
964
- cancellation: z.ZodObject<{
965
- status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
966
- asOf: z.ZodString;
967
- freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
968
- penalties: z.ZodArray<z.ZodObject<{
969
- startsAt: z.ZodNullable<z.ZodString>;
970
- amount: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
971
- }, z.core.$strip>>;
972
- timeZone: z.ZodNullable<z.ZodString>;
973
- }, z.core.$strip>;
974
- payAtProperty: z.ZodObject<{
975
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
976
- items: z.ZodArray<z.ZodObject<{
977
- label: z.ZodNullable<z.ZodObject<{
978
- text: z.ZodString;
979
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
980
- }, z.core.$strip>>;
981
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
982
- mandatory: z.ZodBoolean;
983
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
984
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
985
- }, z.core.$strip>>;
986
- }, z.core.$strip>;
987
- confirmationNumber: z.ZodNullable<z.ZodString>;
988
- }, z.core.$strip>;
989
- }, z.core.$strip>]>, unknown>>>;
990
- price: z.ZodObject<{
991
- total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
992
- }, z.core.$strip>;
993
- payment: z.ZodObject<{
994
- status: z.ZodType<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown, z.core.$ZodTypeInternals<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown>>;
995
- url: z.ZodNullable<z.ZodString>;
996
- requiresSignIn: z.ZodBoolean;
997
- expiresAt: z.ZodNullable<z.ZodString>;
998
- chargeCurrency: z.ZodString;
999
- localCurrencyAtCheckout: z.ZodBoolean;
1000
- localCharge: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1001
- methods: z.ZodArray<z.ZodType<OpenUnionOutput<"id", readonly [z.ZodObject<{
1002
- id: z.ZodLiteral<"stripe_shared_payment_token">;
1003
- handler: z.ZodObject<{
1004
- id: z.ZodString;
1005
- type: z.ZodString;
1006
- version: z.ZodString;
1007
- spec: z.ZodString;
1008
- schema: z.ZodString;
1009
- available_instruments: z.ZodArray<z.ZodObject<{
1010
- type: z.ZodString;
1011
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
1012
- }, z.core.$strip>>;
1013
- config: z.ZodObject<{
1014
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
1015
- business_profile: z.ZodString;
1016
- }, z.core.$strip>;
1017
- }, z.core.$strip>;
1018
- limits: z.ZodObject<{
1019
- maxAmount: z.ZodNumber;
1020
- currency: z.ZodString;
1021
- expiresAt: z.ZodString;
1022
- }, z.core.$strip>;
1023
- }, z.core.$strip>, z.ZodObject<{
1024
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
1025
- open: z.ZodBoolean;
1026
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
1027
- wechatPay: z.ZodNullable<z.ZodObject<{
1028
- qrData: z.ZodNullable<z.ZodString>;
1029
- qrImageUrl: z.ZodNullable<z.ZodString>;
1030
- url: z.ZodString;
1031
- }, z.core.$strip>>;
1032
- alipay: z.ZodNullable<z.ZodObject<{
1033
- url: z.ZodString;
1034
- }, z.core.$strip>>;
1035
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"id", readonly [z.ZodObject<{
1036
- id: z.ZodLiteral<"stripe_shared_payment_token">;
1037
- handler: z.ZodObject<{
1038
- id: z.ZodString;
1039
- type: z.ZodString;
1040
- version: z.ZodString;
1041
- spec: z.ZodString;
1042
- schema: z.ZodString;
1043
- available_instruments: z.ZodArray<z.ZodObject<{
1044
- type: z.ZodString;
1045
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
1046
- }, z.core.$strip>>;
1047
- config: z.ZodObject<{
1048
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
1049
- business_profile: z.ZodString;
1050
- }, z.core.$strip>;
1051
- }, z.core.$strip>;
1052
- limits: z.ZodObject<{
1053
- maxAmount: z.ZodNumber;
1054
- currency: z.ZodString;
1055
- expiresAt: z.ZodString;
1056
- }, z.core.$strip>;
1057
- }, z.core.$strip>, z.ZodObject<{
1058
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
1059
- open: z.ZodBoolean;
1060
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
1061
- wechatPay: z.ZodNullable<z.ZodObject<{
1062
- qrData: z.ZodNullable<z.ZodString>;
1063
- qrImageUrl: z.ZodNullable<z.ZodString>;
1064
- url: z.ZodString;
1065
- }, z.core.$strip>>;
1066
- alipay: z.ZodNullable<z.ZodObject<{
1067
- url: z.ZodString;
1068
- }, z.core.$strip>>;
1069
- }, z.core.$strip>]>, unknown>>>;
1070
- }, z.core.$strip>;
1071
- cancel: z.ZodObject<{
1072
- available: z.ZodBoolean;
1073
- reason: z.ZodType<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown, z.core.$ZodTypeInternals<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown>>;
1074
- penalty: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1075
- refund: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1076
- }, z.core.$strip>;
1077
- manageUrl: z.ZodString;
1078
- }, z.core.$strip>;
1079
- readonly pay_order: z.ZodObject<{
1080
- orderId: z.ZodString;
1081
- reference: z.ZodString;
1082
- status: z.ZodType<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown, z.core.$ZodTypeInternals<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown>>;
1083
- createdAt: z.ZodString;
1084
- updatedAt: z.ZodString;
1085
- contact: z.ZodNullable<z.ZodObject<{
1086
- name: z.ZodString;
1087
- email: z.ZodNullable<z.ZodString>;
1088
- phone: z.ZodNullable<z.ZodString>;
1089
- }, z.core.$strip>>;
1090
- items: z.ZodArray<z.ZodType<OpenUnionOutput<"type", readonly [z.ZodObject<{
1091
- type: z.ZodLiteral<"hotel">;
1092
- hotel: z.ZodObject<{
1093
- hotelId: z.ZodNullable<z.ZodString>;
1094
- name: z.ZodString;
1095
- names: z.ZodObject<{
1096
- en: z.ZodNullable<z.ZodString>;
1097
- zh: z.ZodNullable<z.ZodString>;
1098
- }, z.core.$strip>;
1099
- checkIn: z.ZodString;
1100
- checkOut: z.ZodString;
1101
- timeZone: z.ZodNullable<z.ZodString>;
1102
- rooms: z.ZodArray<z.ZodObject<{
1103
- adults: z.ZodNumber;
1104
- childrenAges: z.ZodArray<z.ZodNumber>;
1105
- guests: z.ZodNullable<z.ZodArray<z.ZodObject<{
1106
- firstName: z.ZodString;
1107
- lastName: z.ZodString;
1108
- }, z.core.$strip>>>;
1109
- }, z.core.$strip>>;
1110
- specialRequests: z.ZodNullable<z.ZodString>;
1111
- room: z.ZodObject<{
1112
- name: z.ZodNullable<z.ZodObject<{
1113
- text: z.ZodString;
1114
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1115
- }, z.core.$strip>>;
1116
- beds: z.ZodNullable<z.ZodObject<{
1117
- text: z.ZodString;
1118
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1119
- }, z.core.$strip>>;
1120
- }, z.core.$strip>;
1121
- meals: z.ZodObject<{
1122
- known: z.ZodBoolean;
1123
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
1124
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
1125
- allInclusive: z.ZodNullable<z.ZodBoolean>;
1126
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
1127
- label: z.ZodNullable<z.ZodObject<{
1128
- text: z.ZodString;
1129
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1130
- }, z.core.$strip>>;
1131
- }, z.core.$strip>;
1132
- cancellation: z.ZodObject<{
1133
- status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
1134
- asOf: z.ZodString;
1135
- freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
1136
- penalties: z.ZodArray<z.ZodObject<{
1137
- startsAt: z.ZodNullable<z.ZodString>;
1138
- amount: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
1139
- }, z.core.$strip>>;
1140
- timeZone: z.ZodNullable<z.ZodString>;
1141
- }, z.core.$strip>;
1142
- payAtProperty: z.ZodObject<{
1143
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
1144
- items: z.ZodArray<z.ZodObject<{
1145
- label: z.ZodNullable<z.ZodObject<{
1146
- text: z.ZodString;
1147
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1148
- }, z.core.$strip>>;
1149
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1150
- mandatory: z.ZodBoolean;
1151
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
1152
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
1153
- }, z.core.$strip>>;
1154
- }, z.core.$strip>;
1155
- confirmationNumber: z.ZodNullable<z.ZodString>;
1156
- }, z.core.$strip>;
1157
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"type", readonly [z.ZodObject<{
1158
- type: z.ZodLiteral<"hotel">;
1159
- hotel: z.ZodObject<{
1160
- hotelId: z.ZodNullable<z.ZodString>;
1161
- name: z.ZodString;
1162
- names: z.ZodObject<{
1163
- en: z.ZodNullable<z.ZodString>;
1164
- zh: z.ZodNullable<z.ZodString>;
1165
- }, z.core.$strip>;
1166
- checkIn: z.ZodString;
1167
- checkOut: z.ZodString;
1168
- timeZone: z.ZodNullable<z.ZodString>;
1169
- rooms: z.ZodArray<z.ZodObject<{
1170
- adults: z.ZodNumber;
1171
- childrenAges: z.ZodArray<z.ZodNumber>;
1172
- guests: z.ZodNullable<z.ZodArray<z.ZodObject<{
1173
- firstName: z.ZodString;
1174
- lastName: z.ZodString;
1175
- }, z.core.$strip>>>;
1176
- }, z.core.$strip>>;
1177
- specialRequests: z.ZodNullable<z.ZodString>;
1178
- room: z.ZodObject<{
1179
- name: z.ZodNullable<z.ZodObject<{
1180
- text: z.ZodString;
1181
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1182
- }, z.core.$strip>>;
1183
- beds: z.ZodNullable<z.ZodObject<{
1184
- text: z.ZodString;
1185
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1186
- }, z.core.$strip>>;
1187
- }, z.core.$strip>;
1188
- meals: z.ZodObject<{
1189
- known: z.ZodBoolean;
1190
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
1191
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
1192
- allInclusive: z.ZodNullable<z.ZodBoolean>;
1193
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
1194
- label: z.ZodNullable<z.ZodObject<{
1195
- text: z.ZodString;
1196
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1197
- }, z.core.$strip>>;
1198
- }, z.core.$strip>;
1199
- cancellation: z.ZodObject<{
1200
- status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
1201
- asOf: z.ZodString;
1202
- freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
1203
- penalties: z.ZodArray<z.ZodObject<{
1204
- startsAt: z.ZodNullable<z.ZodString>;
1205
- amount: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
1206
- }, z.core.$strip>>;
1207
- timeZone: z.ZodNullable<z.ZodString>;
1208
- }, z.core.$strip>;
1209
- payAtProperty: z.ZodObject<{
1210
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
1211
- items: z.ZodArray<z.ZodObject<{
1212
- label: z.ZodNullable<z.ZodObject<{
1213
- text: z.ZodString;
1214
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1215
- }, z.core.$strip>>;
1216
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1217
- mandatory: z.ZodBoolean;
1218
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
1219
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
1220
- }, z.core.$strip>>;
1221
- }, z.core.$strip>;
1222
- confirmationNumber: z.ZodNullable<z.ZodString>;
1223
- }, z.core.$strip>;
1224
- }, z.core.$strip>]>, unknown>>>;
1225
- price: z.ZodObject<{
1226
- total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
1227
- }, z.core.$strip>;
1228
- payment: z.ZodObject<{
1229
- status: z.ZodType<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown, z.core.$ZodTypeInternals<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown>>;
1230
- url: z.ZodNullable<z.ZodString>;
1231
- requiresSignIn: z.ZodBoolean;
1232
- expiresAt: z.ZodNullable<z.ZodString>;
1233
- chargeCurrency: z.ZodString;
1234
- localCurrencyAtCheckout: z.ZodBoolean;
1235
- localCharge: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1236
- methods: z.ZodArray<z.ZodType<OpenUnionOutput<"id", readonly [z.ZodObject<{
1237
- id: z.ZodLiteral<"stripe_shared_payment_token">;
1238
- handler: z.ZodObject<{
1239
- id: z.ZodString;
1240
- type: z.ZodString;
1241
- version: z.ZodString;
1242
- spec: z.ZodString;
1243
- schema: z.ZodString;
1244
- available_instruments: z.ZodArray<z.ZodObject<{
1245
- type: z.ZodString;
1246
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
1247
- }, z.core.$strip>>;
1248
- config: z.ZodObject<{
1249
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
1250
- business_profile: z.ZodString;
1251
- }, z.core.$strip>;
1252
- }, z.core.$strip>;
1253
- limits: z.ZodObject<{
1254
- maxAmount: z.ZodNumber;
1255
- currency: z.ZodString;
1256
- expiresAt: z.ZodString;
1257
- }, z.core.$strip>;
1258
- }, z.core.$strip>, z.ZodObject<{
1259
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
1260
- open: z.ZodBoolean;
1261
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
1262
- wechatPay: z.ZodNullable<z.ZodObject<{
1263
- qrData: z.ZodNullable<z.ZodString>;
1264
- qrImageUrl: z.ZodNullable<z.ZodString>;
1265
- url: z.ZodString;
1266
- }, z.core.$strip>>;
1267
- alipay: z.ZodNullable<z.ZodObject<{
1268
- url: z.ZodString;
1269
- }, z.core.$strip>>;
1270
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"id", readonly [z.ZodObject<{
1271
- id: z.ZodLiteral<"stripe_shared_payment_token">;
1272
- handler: z.ZodObject<{
1273
- id: z.ZodString;
1274
- type: z.ZodString;
1275
- version: z.ZodString;
1276
- spec: z.ZodString;
1277
- schema: z.ZodString;
1278
- available_instruments: z.ZodArray<z.ZodObject<{
1279
- type: z.ZodString;
1280
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
1281
- }, z.core.$strip>>;
1282
- config: z.ZodObject<{
1283
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
1284
- business_profile: z.ZodString;
1285
- }, z.core.$strip>;
1286
- }, z.core.$strip>;
1287
- limits: z.ZodObject<{
1288
- maxAmount: z.ZodNumber;
1289
- currency: z.ZodString;
1290
- expiresAt: z.ZodString;
1291
- }, z.core.$strip>;
1292
- }, z.core.$strip>, z.ZodObject<{
1293
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
1294
- open: z.ZodBoolean;
1295
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
1296
- wechatPay: z.ZodNullable<z.ZodObject<{
1297
- qrData: z.ZodNullable<z.ZodString>;
1298
- qrImageUrl: z.ZodNullable<z.ZodString>;
1299
- url: z.ZodString;
1300
- }, z.core.$strip>>;
1301
- alipay: z.ZodNullable<z.ZodObject<{
1302
- url: z.ZodString;
1303
- }, z.core.$strip>>;
1304
- }, z.core.$strip>]>, unknown>>>;
1305
- }, z.core.$strip>;
1306
- cancel: z.ZodObject<{
1307
- available: z.ZodBoolean;
1308
- reason: z.ZodType<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown, z.core.$ZodTypeInternals<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown>>;
1309
- penalty: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1310
- refund: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1311
- }, z.core.$strip>;
1312
- manageUrl: z.ZodString;
1313
- }, z.core.$strip>;
27
+ type ToolName = "search_hotels" | "get_hotel" | "get_hotel_offers" | "create_order" | "get_order" | "list_orders" | "cancel_order" | "pay_order";
28
+ interface ToolSpec {
29
+ name: ToolName;
30
+ title: string;
31
+ description: string;
32
+ annotations: {
33
+ readOnlyHint: boolean;
34
+ idempotentHint: boolean;
35
+ openWorldHint: boolean;
36
+ destructiveHint: boolean;
37
+ };
38
+ /** What the tool takes. */
39
+ input: z.ZodType;
40
+ /** The open schema of what it answers with over HTTP, which
41
+ * `renderToolResult` parses. Not an MCP `outputSchema`: an MCP result is
42
+ * text only. */
43
+ output: z.ZodType;
44
+ }
45
+ /**
46
+ * What an MCP server for Fortrip says of itself in `serverInfo`, one
47
+ * constant so that both servers say the same: the hosted server and the
48
+ * CLI's bridge both send this, each with its own `version`. The title, description, website and icon are the MCP Registry
49
+ * entry's (`plugins/registry/server.json`).
50
+ */
51
+ declare const SERVER_INFO: {
52
+ name: string;
53
+ title: string;
54
+ description: string;
55
+ websiteUrl: string;
56
+ icons: {
57
+ src: string;
58
+ mimeType: string;
59
+ sizes: string[];
60
+ }[];
61
+ };
62
+ /**
63
+ * The `_meta` keys of an MCP result. The hosted server and the CLI's bridge
64
+ * both write them, so both take the names from here. `requestId`: on every
65
+ * successful result, the request id to quote to support. `replayed`: on
66
+ * `create_order`, true when the answer is an order the same details already
67
+ * created. `error`: on every error, the error envelope as the HTTP API
68
+ * answers it.
69
+ */
70
+ declare const META_KEYS: {
71
+ readonly requestId: "ai.fortrip/requestId";
72
+ readonly replayed: "ai.fortrip/replayed";
73
+ readonly error: "ai.fortrip/error";
1314
74
  };
75
+ /**
76
+ * The consent rule. It ends every result whose text holds a payment link,
77
+ * whichever tool answered: some clients never show the model the server
78
+ * instructions, and the last paragraph is the one a model reads last before
79
+ * it answers. Only the pay paragraph comes after it, and that one repeats
80
+ * the rule on purpose: as the result's last paragraph it keeps the model
81
+ * from giving the link before a yes (a paired eval measured it). The cancel
82
+ * paragraph, when there is one, comes before both.
83
+ */
84
+ declare const ORDER_NEXT_STEP = "Before you give the user an order's payment link, show them its total and currency, the stay (hotel, room, dates, and each room's party and guest names), the contact (name, email, phone), any special requests and every term (meals, cancellation, fees payable at the property), then end your reply by asking them to confirm, and wait for a clear yes. Only after they say yes, give them the payment link exactly as shown.";
85
+ /** Where a rendered result is read: an MCP client, which calls tools with
86
+ * JSON arguments, or the CLI, which runs commands with flags. */
87
+ type RenderSurface = "mcp" | "cli";
88
+ /**
89
+ * The consent rule of a cancellation, as `surface` names the call. It
90
+ * follows the text of every `get_order`, `list_orders`, `cancel_order` and
91
+ * `pay_order` result that holds an order whose Cancel line says it can be
92
+ * cancelled (a paid one): the last paragraph there, or the one before
93
+ * `ORDER_NEXT_STEP` when the result also holds a payment link. The `order_not_cancellable` error carries it too,
94
+ * after the order's Cancel line. It names no penalty: the figure and the
95
+ * call that passes it are the order's own, on that line. Its last sentence
96
+ * says which mode an unpaid order takes instead: nothing is cancelled or
97
+ * closed by the other mode.
98
+ */
99
+ declare function cancelNextStep(surface: RenderSurface): string;
100
+ /** `cancelNextStep` over MCP. */
101
+ declare const CANCEL_NEXT_STEP: string;
102
+ /**
103
+ * How to pay without the link, as `surface` names the call. It is the last
104
+ * paragraph of the text of every order result that holds an order with a
105
+ * "Pay without the link" line, right after `ORDER_NEXT_STEP`, whose rule it
106
+ * repeats.
107
+ */
108
+ declare function payNextStep(surface: RenderSurface): string;
109
+ /** `payNextStep` over MCP. */
110
+ declare const PAY_NEXT_STEP: string;
111
+ /**
112
+ * How to present hotels (the `presentation` guide, in one line). It is the
113
+ * last paragraph of every MCP `search_hotels`, `get_hotel` and
114
+ * `get_hotel_offers` result: a rule next to the data is followed far more
115
+ * reliably than one in the server instructions. `renderToolResult` adds it;
116
+ * nothing else does.
117
+ */
118
+ declare const PRESENTATION_HINT = "Presentation: If your interface can show rich elements, show each hotel as a card with only what Fortrip's tools returned for it in this conversation: photo, name, stars, region and price, and once you have offers every term that changes the choice (meals and who they cover, cancellation, fees payable at the property, confirmation), an unknown one as unknown. Label a search's \"estimate from\" price as an estimate per room-night and an offer's total as the whole stay for all rooms, in its currency, and draw a map only from coordinates the text shows: hotel details show them, a search does not. Offer the choices you need to ask anyway (dates, a locality, which offer) as options to pick. Otherwise use a short list. A hotel's name is shown in double quotes, as text from the hotel, written as a JSON string (inside it, \\\" is a \"): present it to the user without the quotes, exactly as written inside them. Never invent photos, ratings, reviews, prices, terms or coordinates.";
1315
119
  declare const TOOLS: readonly ToolSpec[];
1316
120
 
1317
121
  /** A flag that sets one field of a tool's input. */
@@ -1336,7 +140,7 @@ interface FlagSpec {
1336
140
  /** Given once per item; its field is a list. */
1337
141
  multiple?: boolean;
1338
142
  /** What a `boolean` flag sends when its field isn't boolean:
1339
- * `--rooms` sends `include: "rooms"`. */
143
+ * `--room-types` sends `include: "roomTypes"`. */
1340
144
  value?: string;
1341
145
  /**
1342
146
  * Fields the flag also sends, each with a constant: the variant of a union
@@ -1350,6 +154,9 @@ interface FlagSpec {
1350
154
  * a value has one.
1351
155
  */
1352
156
  placeholder?: string;
157
+ /** The command needs the field: `always`, or `unless-body` for a field
158
+ * `--body` can give instead. Its description says so first. */
159
+ required?: "always" | "unless-body";
1353
160
  description: string;
1354
161
  }
1355
162
  /** An argument given by position. */
@@ -1380,7 +187,7 @@ interface CommandSpec {
1380
187
  /** The group it is typed after; `null` for a command typed on its own. */
1381
188
  group: CommandGroupSpec["name"] | null;
1382
189
  /** Unique within its group. */
1383
- name: "search" | "get" | "offers" | "book" | "list" | "cancel" | "pay" | "login" | "logout" | "whoami" | "mcp";
190
+ name: "search" | "get" | "offers" | "create" | "list" | "cancel" | "pay" | "login" | "logout" | "whoami" | "mcp";
1384
191
  summary: string;
1385
192
  /** The MCP tool the command mirrors; `null` for one that is the CLI's own. */
1386
193
  tool: ToolName | null;
@@ -1411,12 +218,50 @@ type Money = {
1411
218
  };
1412
219
  declare const money: z.ZodType<Money>;
1413
220
  /**
1414
- * A Money a caller sends: USD or CNY, no unknown fields. `name` is the field
1415
- * it is the value of, which the refusal names.
221
+ * A Money a caller sends: in one of `currencies` (USD or CNY unless the
222
+ * field takes fewer), no unknown fields. `name` is the field it is the value
223
+ * of, which the refusal names. `otherCurrency` replaces what a currency
224
+ * outside `currencies` is told, where "send one of these" is the wrong
225
+ * advice.
1416
226
  */
1417
- declare function requestMoney(name: string): z.ZodType<Money, Money>;
227
+ declare function requestMoney(name: string, currencies?: readonly [string, ...string[]], otherCurrency?: string): z.ZodType<Money, Money>;
1418
228
  declare function formatMoney(m: Money): string;
1419
229
 
230
+ /** An object that keeps fields it does not know. */
231
+ declare function openObject<T extends z.ZodRawShape>(shape: T): z.ZodObject<T>;
232
+ /**
233
+ * An object another protocol defines (a UCP instrument's `config`), passed on
234
+ * as that protocol has it: any fields, any values. Its fields are not the
235
+ * contract's to close, so `strictOutput` keeps it as it is.
236
+ */
237
+ declare function protocolObject(): z.ZodType<Record<string, unknown>>;
238
+ /** One of `values`, or any string. JSON Schema: `anyOf [enum, string]`. */
239
+ declare function openEnum<const V extends readonly string[]>(values: V): z.ZodType<V[number] | (string & {})>;
240
+ /**
241
+ * A union picked by `discriminator`. A known value parses its own branch
242
+ * (and fails if that branch is malformed); only an unknown value falls back
243
+ * to an object with a string discriminator and any other fields.
244
+ */
245
+ declare function openUnion<D extends string, const B extends readonly z.ZodObject[]>(discriminator: D, branches: B): z.ZodType<OpenUnionOutput<D, B>>;
246
+ /** The value of an open union's fallback branch: an unknown discriminator. */
247
+ type OpenFallback<D extends string> = {
248
+ [K in D]: string;
249
+ } & Record<string, unknown>;
250
+ /** What an open union parses to: one of its known branches, or the fallback. */
251
+ type OpenUnionOutput<D extends string, B extends readonly z.ZodObject[]> = z.output<B[number]> | OpenFallback<D>;
252
+ /** Parses `value`, keeping the unknown fields and values an open schema allows. */
253
+ declare function parseOpen<T>(schema: z.ZodType<T>, value: unknown): T;
254
+ /**
255
+ * A deep-strict copy of an output schema for server tests: no unknown fields,
256
+ * no unknown enum values, no fallback union branch. Wrappers (optional,
257
+ * nullable, default, readonly, pipe, lazy) and containers (object, array,
258
+ * tuple, record) are rebuilt around their closed contents, keeping their
259
+ * checks and metadata. A protocol object stays as it is. A schema type it
260
+ * cannot close (any, unknown, intersection, custom, ...) throws instead of
261
+ * silently staying open.
262
+ */
263
+ declare function strictOutput<T extends z.ZodType>(schema: T): T;
264
+
1420
265
  /** RFC 3339 in UTC, ending in `Z`; names for these fields end in `At`. */
1421
266
  declare const instant: z.ZodString;
1422
267
  /** A calendar date in the hotel's calendar. */
@@ -1432,6 +277,9 @@ declare function isIsoDate(value: string): boolean;
1432
277
  declare function countIsoDateDays(start: string, end: string): number;
1433
278
  declare function addIsoDateDays(date: string, days: number): string;
1434
279
 
280
+ /** How an input says it does not know a key: one wording, for an HTTP
281
+ * body, a tool's arguments and the CLI's own check. */
282
+ declare function unknownFieldsMessage(keys: readonly string[]): string;
1435
283
  /** An object that names the keys it doesn't know instead of dropping them. */
1436
284
  declare function strictInput<T extends z.core.$ZodLooseShape>(shape: T): z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$strict>;
1437
285
  declare function wholeNumber(name: string, min: number, max: number): z.ZodNumber;
@@ -1536,15 +384,6 @@ declare function createSearchHotelsInput(now?: () => number): z.ZodObject<{
1536
384
  non_smoking: "non_smoking";
1537
385
  business_center: "business_center";
1538
386
  pool: "pool";
1539
- airport_shuttle: "airport_shuttle";
1540
- spa: "spa";
1541
- gym: "gym";
1542
- accessible: "accessible";
1543
- ev_charging: "ev_charging";
1544
- air_conditioning: "air_conditioning";
1545
- pets_allowed: "pets_allowed";
1546
- kitchen: "kitchen";
1547
- other: "other";
1548
387
  }>>>;
1549
388
  price: z.ZodOptional<z.ZodObject<{
1550
389
  maxPerRoomNight: z.ZodType<Money, Money, z.core.$ZodTypeInternals<Money, Money>>;
@@ -1622,15 +461,6 @@ declare const searchHotelsInput: z.ZodObject<{
1622
461
  non_smoking: "non_smoking";
1623
462
  business_center: "business_center";
1624
463
  pool: "pool";
1625
- airport_shuttle: "airport_shuttle";
1626
- spa: "spa";
1627
- gym: "gym";
1628
- accessible: "accessible";
1629
- ev_charging: "ev_charging";
1630
- air_conditioning: "air_conditioning";
1631
- pets_allowed: "pets_allowed";
1632
- kitchen: "kitchen";
1633
- other: "other";
1634
464
  }>>>;
1635
465
  price: z.ZodOptional<z.ZodObject<{
1636
466
  maxPerRoomNight: z.ZodType<Money, Money, z.core.$ZodTypeInternals<Money, Money>>;
@@ -1659,7 +489,7 @@ type SearchHotelsInput = z.input<typeof searchHotelsInput>;
1659
489
  declare const getHotelInput: z.ZodObject<{
1660
490
  hotelId: z.ZodString;
1661
491
  include: z.ZodOptional<z.ZodEnum<{
1662
- rooms: "rooms";
492
+ roomTypes: "roomTypes";
1663
493
  }>>;
1664
494
  locale: z.ZodOptional<z.ZodEnum<{
1665
495
  en: "en";
@@ -1667,6 +497,18 @@ declare const getHotelInput: z.ZodObject<{
1667
497
  }>>;
1668
498
  }, z.core.$strict>;
1669
499
  type GetHotelInput = z.input<typeof getHotelInput>;
500
+ /**
501
+ * How many offers each hotel of an offers call gets: what `limitPerHotel`
502
+ * resolves to, on every surface. `limitPerHotel` is the request's, or
503
+ * undefined when it gave none; `hotelsWithOffers` counts the call's hotels
504
+ * that have any offer. The limit (the default one when none was given) holds
505
+ * while every such hotel can have it within the call's budget; past that the
506
+ * budget is split evenly among them. A call has at most
507
+ * `LIMITS.offersHotels` hotels, so a share is never under 3, and needs no
508
+ * floor; with no hotel that has offers, the limit stands. The budget is
509
+ * smaller when no limit was given.
510
+ */
511
+ declare function offersPerHotel(limitPerHotel: number | undefined, hotelsWithOffers: number): number;
1670
512
  /** `POST /v1/hotels/offers` and the MCP `get_hotel_offers` arguments. */
1671
513
  declare const hotelOffersInput: z.ZodObject<{
1672
514
  hotelIds: z.ZodArray<z.ZodString>;
@@ -1682,7 +524,7 @@ declare const hotelOffersInput: z.ZodObject<{
1682
524
  requireBreakfast: z.ZodOptional<z.ZodBoolean>;
1683
525
  requireFreeCancellation: z.ZodOptional<z.ZodBoolean>;
1684
526
  }, z.core.$strict>>;
1685
- limitPerHotel: z.ZodDefault<z.ZodNumber>;
527
+ limitPerHotel: z.ZodOptional<z.ZodNumber>;
1686
528
  locale: z.ZodOptional<z.ZodEnum<{
1687
529
  en: "en";
1688
530
  zh: "zh";
@@ -1693,14 +535,10 @@ declare const hotelOffersInput: z.ZodObject<{
1693
535
  }>>;
1694
536
  }, z.core.$strict>;
1695
537
  type HotelOffersInput = z.input<typeof hotelOffersInput>;
1696
- /** `POST /v1/orders` and the MCP `book_hotel` arguments. */
538
+ /** `POST /v1/orders` and the MCP `create_order` arguments. `items` comes
539
+ * first: it is the first property a model reads, and the offer goes inside
540
+ * its item (a model that also sent a top-level `offerId` was refused). */
1697
541
  declare const createOrderInput: z.ZodObject<{
1698
- contact: z.ZodObject<{
1699
- firstName: z.ZodString;
1700
- lastName: z.ZodString;
1701
- email: z.ZodPipe<z.ZodString, z.ZodEmail>;
1702
- phone: z.ZodString;
1703
- }, z.core.$strict>;
1704
542
  items: z.ZodArray<z.ZodObject<{
1705
543
  offerId: z.ZodString;
1706
544
  hotel: z.ZodObject<{
@@ -1713,6 +551,11 @@ declare const createOrderInput: z.ZodObject<{
1713
551
  specialRequests: z.ZodOptional<z.ZodString>;
1714
552
  }, z.core.$strict>;
1715
553
  }, z.core.$strict>>;
554
+ contact: z.ZodObject<{
555
+ name: z.ZodString;
556
+ email: z.ZodPipe<z.ZodString, z.ZodEmail>;
557
+ phone: z.ZodString;
558
+ }, z.core.$strict>;
1716
559
  }, z.core.$strict>;
1717
560
  type CreateOrderInput = z.input<typeof createOrderInput>;
1718
561
  /** `GET /v1/orders/{orderId}` and the MCP `get_order` arguments. */
@@ -1736,54 +579,26 @@ declare const listOrdersInput: z.ZodObject<{
1736
579
  }, z.core.$strict>;
1737
580
  type ListOrdersInput = z.input<typeof listOrdersInput>;
1738
581
  /** `POST /v1/orders/{orderId}/cancel` and the MCP `cancel_order` arguments:
1739
- * the order and, to cancel a paid order, the penalty the user agreed to as a
1740
- * ceiling; an unpaid order is closed with the order alone. The server
1741
- * computes the refund; a higher penalty now answers `cancellation_changed`. */
582
+ * the order and its mode, exactly one of `close` (an unpaid order) and
583
+ * `maximumPenalty` (a paid one, with the penalty the user agreed to as a
584
+ * ceiling). The server computes the refund; a higher penalty now answers
585
+ * `cancellation_changed`. */
1742
586
  declare const cancelOrderInput: z.ZodObject<{
1743
587
  orderId: z.ZodString;
588
+ close: z.ZodOptional<z.ZodLiteral<true>>;
1744
589
  maximumPenalty: z.ZodOptional<z.ZodType<Money, Money, z.core.$ZodTypeInternals<Money, Money>>>;
1745
590
  }, z.core.$strict>;
1746
591
  type CancelOrderInput = z.input<typeof cancelOrderInput>;
1747
592
  /** The ways an order is paid: the order's own link, or through `pay_order`
1748
- * one of its `payment.methods`, by id (a shared payment token, or
1749
- * Alipay/WeChat Pay). */
1750
- declare const PAY_WAYS: readonly ["payment_link", "stripe_shared_payment_token", "stripe_alipay_wechat_pay"];
593
+ * a shared payment token, which the order offers as `payment.tokenRequest`. */
594
+ declare const PAY_WAYS: readonly ["payment_link", "stripe_shared_payment_token"];
1751
595
  type PayWay = (typeof PAY_WAYS)[number];
1752
- /** The way each exclusive field of `payOrderInput` pays by. */
1753
- declare const PAY_INPUT_WAYS: Record<"sharedPaymentToken" | "payment" | "method", PayWay>;
1754
- /** `POST /v1/orders/{orderId}/pay` and the MCP `pay_order` arguments: the
1755
- * order, how to pay it, and the total the user approved. The way is a
1756
- * Stripe shared payment token granted for the order, or `method`
1757
- * (Alipay or WeChat Pay); with a token it is `sharedPaymentToken` or, as UCP's Complete
1758
- * Checkout sends it, the credential of `payment`'s selected instrument.
1759
- * Exactly one of `sharedPaymentToken`, `payment` and `method`. A total other than the order's answers
1760
- * `payment_total_changed` and charges nothing. */
1761
596
  declare const payOrderInput: z.ZodObject<{
1762
597
  orderId: z.ZodString;
1763
- sharedPaymentToken: z.ZodOptional<z.ZodString>;
1764
- payment: z.ZodOptional<z.ZodObject<{
1765
- instruments: z.ZodArray<z.ZodObject<{
1766
- id: z.ZodString;
1767
- handler_id: z.ZodString;
1768
- type: z.ZodString;
1769
- selected: z.ZodOptional<z.ZodBoolean>;
1770
- credential: z.ZodOptional<z.ZodObject<{
1771
- type: z.ZodString;
1772
- token: z.ZodOptional<z.ZodString>;
1773
- }, z.core.$loose>>;
1774
- display: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
1775
- }, z.core.$loose>>;
1776
- }, z.core.$strict>>;
1777
- method: z.ZodOptional<z.ZodEnum<{
1778
- stripe_alipay_wechat_pay: "stripe_alipay_wechat_pay";
1779
- }>>;
598
+ sharedPaymentToken: z.ZodString;
1780
599
  total: z.ZodType<Money, Money, z.core.$ZodTypeInternals<Money, Money>>;
1781
600
  }, z.core.$strict>;
1782
601
  type PayOrderInput = z.input<typeof payOrderInput>;
1783
- /** The shared payment token a `pay_order` call pays with: `sharedPaymentToken`,
1784
- * or the credential of `payment`'s selected instrument. Takes what
1785
- * `payOrderInput` parsed, which holds exactly one. */
1786
- declare function sharedPaymentTokenOf(input: Pick<z.output<typeof payOrderInput>, "sharedPaymentToken" | "payment">): string;
1787
602
 
1788
603
  /** The ceilings and floors every agent surface enforces and documents (spec §15). */
1789
604
  declare const LIMITS: {
@@ -1794,8 +609,16 @@ declare const LIMITS: {
1794
609
  readonly nightsFortrip: 30;
1795
610
  readonly nightsSupplier: 15;
1796
611
  readonly offersHotels: 15;
612
+ /** Offers per hotel when the request gives no `limitPerHotel`, while the
613
+ * call's hotels fit `offersPerCallDefault`. */
1797
614
  readonly offersPerHotelDefault: 15;
615
+ /** The most `limitPerHotel` can ask for. */
1798
616
  readonly offersPerHotelMax: 30;
617
+ /** Offers a call answers in all, across its hotels, when the request gives
618
+ * no `limitPerHotel`. */
619
+ readonly offersPerCallDefault: 45;
620
+ /** Offers a call answers in all, across its hotels, at most. */
621
+ readonly offersPerCallMax: 100;
1799
622
  readonly pageSizeDefault: 20;
1800
623
  readonly pageSizeMax: 50;
1801
624
  readonly textLength: 128;
@@ -1803,8 +626,9 @@ declare const LIMITS: {
1803
626
  readonly radiusMetersDefault: 8000;
1804
627
  readonly amenityFilters: 9;
1805
628
  readonly guestName: 60;
1806
- readonly contactFirstName: 59;
1807
- readonly contactLastName: 59;
629
+ /** The contact's one name: two names of 59 and the space between, as the
630
+ * order stores it. */
631
+ readonly contactName: 119;
1808
632
  readonly contactPhoneMin: 3;
1809
633
  readonly contactPhoneMax: 40;
1810
634
  readonly specialRequests: 500;
@@ -1814,15 +638,13 @@ declare const LIMITS: {
1814
638
  readonly localitiesShown: 8;
1815
639
  readonly tokenPaymentMaxUsd: 500;
1816
640
  /** Minutes that must be left before the order's payment window closes
1817
- * (`payment.expiresAt`) for the order to offer a token or wallet payment
1818
- * (an entry of `payment.methods`). */
641
+ * (`payment.expiresAt`) for the order to offer a token payment
642
+ * (`payment.tokenRequest`). */
1819
643
  readonly payMinMinutesLeft: 15;
1820
- /** `pay_order` refuses (`order_not_payable`), by token or wallet, when the
1821
- * order's payment window (`payment.expiresAt`) closes within this many
1822
- * minutes. */
644
+ /** `pay_order` refuses (`order_not_payable`) when the order's payment
645
+ * window (`payment.expiresAt`) closes within this many minutes. */
1823
646
  readonly payCutoffMinutes: 2;
1824
647
  readonly tokensPerOrder: 5;
1825
- readonly wechatCodeMinutes: 120;
1826
648
  };
1827
649
  /** Currencies a v1 request can price and charge in (USD is the default). */
1828
650
  declare const CURRENCIES: readonly ["USD", "CNY"];
@@ -1830,6 +652,58 @@ type Currency = (typeof CURRENCIES)[number];
1830
652
  /** Where a person goes when an agent gets stuck. */
1831
653
  declare const SUPPORT_EMAIL = "info@fortrip.ai";
1832
654
 
655
+ /** A path into an input, as a zod issue has it: keys, and indexes into lists. */
656
+ type Path = (string | number)[];
657
+ /** An unknown key and where the input has it. */
658
+ interface MisplacedKey {
659
+ /** Where it was sent: the issue's path, then the key. */
660
+ path: Path;
661
+ /** Each place it belongs at, in the schema's order. A list on the way is
662
+ * entered at the index the key was sent under, else at its first item. */
663
+ belongsAt: Path[];
664
+ /** The places among `belongsAt` where what was sent has the key already,
665
+ * with the same value: it was sent twice, and this copy is the extra one.
666
+ * Empty when `misplacedKeys` was not given what was sent. */
667
+ alreadyAt: Path[];
668
+ /** The places among `belongsAt` where what was sent has the key with
669
+ * another value: two values were sent, and only the caller knows which
670
+ * one is meant. Empty when `misplacedKeys` was not given what was sent. */
671
+ differsAt?: Path[];
672
+ /** For a key this release renamed (`RENAMED_KEYS`): what to send instead,
673
+ * in words. Such a key has no place to belong at. */
674
+ renamed?: string;
675
+ }
676
+ /**
677
+ * For each key a failed parse of `schema` did not know: where `schema` has
678
+ * that key, when it has it above or below the object the key was sent in.
679
+ * `issues` are the parse's issues; only the unknown-key ones are read.
680
+ *
681
+ * Says nothing for a key the schema has nowhere, has only in another branch
682
+ * (a guest's `firstName` sent in `contact` is not a depth), or has at that
683
+ * very place in another variant of a union. Given `sent` (the value that was
684
+ * parsed), a key inside a union is looked for only in the variant the sent
685
+ * discriminator selects, and a key that what was sent also has where it
686
+ * belongs is reported as already there (`alreadyAt`, the same value) or as
687
+ * a second value (`differsAt`, another one). A key this release renamed is
688
+ * answered from `RENAMED_KEYS`.
689
+ */
690
+ declare function misplacedKeys(schema: z.ZodType, issues: readonly z.core.$ZodIssue[], sent?: unknown): MisplacedKey[];
691
+ /**
692
+ * What to tell the caller about a misplaced key, after its own pointer.
693
+ * Paths are JSON Pointers into the caller's own request.
694
+ *
695
+ * - "belongs at /items/0/offerId": it is nowhere it belongs.
696
+ * - "already given at /items/0/offerId: remove this one": what was sent has
697
+ * it there too, with the same value.
698
+ * - "two different values were sent, this one and the one at
699
+ * /items/0/offerId: send one only, at /items/0/offerId, the one the user
700
+ * picked": what was sent has another value there. Never "belongs at",
701
+ * which would be an order to overwrite the value in its place (the offer
702
+ * the user picked) with the stray one.
703
+ * - For a key this release renamed, what replaced it.
704
+ */
705
+ declare function misplacedKeyHint(key: MisplacedKey): string;
706
+
1833
707
  /** The signed-in user. */
1834
708
  declare const meResult: z.ZodObject<{
1835
709
  userId: z.ZodString;
@@ -1893,7 +767,7 @@ declare const stayEcho: z.ZodObject<{
1893
767
  }, z.core.$strip>;
1894
768
 
1895
769
  /** Every code the v1 error envelope can carry (spec §11). */
1896
- type ErrorCode = "invalid_request" | "cursor_invalid" | "unauthenticated" | "forbidden" | "not_found" | "offer_expired" | "offer_changed" | "offer_already_ordered" | "order_in_progress" | "cancellation_changed" | "order_not_cancellable" | "order_not_payable" | "payment_in_progress" | "payment_total_changed" | "payment_credential_invalid" | "payment_declined" | "payment_action_required" | "payment_method_unavailable" | "destination_ambiguous" | "destination_not_found" | "search_too_broad" | "stay_unsupported" | "stay_in_past" | "offer_unavailable" | "currency_unavailable" | "rate_limited" | "ordering_paused" | "service_unavailable" | "supplier_unavailable" | "internal";
770
+ type ErrorCode = "invalid_request" | "cursor_invalid" | "unauthenticated" | "forbidden" | "not_found" | "offer_expired" | "offer_changed" | "offer_already_ordered" | "order_in_progress" | "cancellation_changed" | "order_not_cancellable" | "order_not_payable" | "payment_in_progress" | "payment_total_mismatch" | "payment_credential_invalid" | "payment_declined" | "payment_action_required" | "payment_method_unavailable" | "destination_ambiguous" | "destination_not_found" | "search_too_broad" | "stay_unsupported" | "stay_in_past" | "offer_unavailable" | "currency_unavailable" | "rate_limited" | "ordering_paused" | "service_unavailable" | "supplier_unavailable" | "client_outdated" | "internal";
1897
771
  /** The statuses `supplier_unavailable` is sent with (by its `details.outcome`:
1898
772
  * `SUPPLIER_OUTCOME_STATUS`). */
1899
773
  declare const SUPPLIER_STATUSES: readonly [503, 504];
@@ -1915,11 +789,6 @@ declare const ERROR_DETAILS: {
1915
789
  pointer: z.ZodString;
1916
790
  message: z.ZodString;
1917
791
  }, z.core.$strip>>;
1918
- filterable: z.ZodOptional<z.ZodArray<z.ZodType<"parking" | "wifi" | "laundry" | "restaurant" | "room_service" | "bar" | "non_smoking" | "business_center" | "pool" | "airport_shuttle" | "spa" | "gym" | "accessible" | "ev_charging" | "air_conditioning" | "pets_allowed" | "kitchen" | "other" | (string & {}), unknown, z.core.$ZodTypeInternals<"parking" | "wifi" | "laundry" | "restaurant" | "room_service" | "bar" | "non_smoking" | "business_center" | "pool" | "airport_shuttle" | "spa" | "gym" | "accessible" | "ev_charging" | "air_conditioning" | "pets_allowed" | "kitchen" | "other" | (string & {}), unknown>>>>;
1919
- share: z.ZodOptional<z.ZodObject<{
1920
- code: z.ZodType<"parking" | "wifi" | "laundry" | "restaurant" | "room_service" | "bar" | "non_smoking" | "business_center" | "pool" | "airport_shuttle" | "spa" | "gym" | "accessible" | "ev_charging" | "air_conditioning" | "pets_allowed" | "kitchen" | "other" | (string & {}), unknown, z.core.$ZodTypeInternals<"parking" | "wifi" | "laundry" | "restaurant" | "room_service" | "bar" | "non_smoking" | "business_center" | "pool" | "airport_shuttle" | "spa" | "gym" | "accessible" | "ev_charging" | "air_conditioning" | "pets_allowed" | "kitchen" | "other" | (string & {}), unknown>>;
1921
- listedShare: z.ZodNumber;
1922
- }, z.core.$strip>>;
1923
792
  }, z.core.$strip>;
1924
793
  cursor_invalid: z.ZodObject<{
1925
794
  reason: z.ZodType<(string & {}) | "expired" | "mismatch" | "malformed", unknown, z.core.$ZodTypeInternals<(string & {}) | "expired" | "mismatch" | "malformed", unknown>>;
@@ -1933,7 +802,7 @@ declare const ERROR_DETAILS: {
1933
802
  }, z.core.$strip>;
1934
803
  offer_changed: z.ZodObject<{
1935
804
  changes: z.ZodArray<z.ZodType<OpenUnionOutput<"field", readonly [z.ZodObject<{
1936
- field: z.ZodLiteral<"price">;
805
+ field: z.ZodLiteral<"total">;
1937
806
  previous: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
1938
807
  current: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
1939
808
  worse: z.ZodBoolean;
@@ -1966,7 +835,7 @@ declare const ERROR_DETAILS: {
1966
835
  field: z.ZodLiteral<"cancellation">;
1967
836
  previous: z.ZodObject<{
1968
837
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
1969
- asOf: z.ZodString;
838
+ readAt: z.ZodString;
1970
839
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
1971
840
  penalties: z.ZodArray<z.ZodObject<{
1972
841
  startsAt: z.ZodNullable<z.ZodString>;
@@ -1976,7 +845,7 @@ declare const ERROR_DETAILS: {
1976
845
  }, z.core.$strip>;
1977
846
  current: z.ZodObject<{
1978
847
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
1979
- asOf: z.ZodString;
848
+ readAt: z.ZodString;
1980
849
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
1981
850
  penalties: z.ZodArray<z.ZodObject<{
1982
851
  startsAt: z.ZodNullable<z.ZodString>;
@@ -1997,36 +866,28 @@ declare const ERROR_DETAILS: {
1997
866
  }, z.core.$strip>;
1998
867
  worse: z.ZodBoolean;
1999
868
  }, z.core.$strip>, z.ZodObject<{
2000
- field: z.ZodLiteral<"pay_at_property">;
869
+ field: z.ZodLiteral<"payAtProperty">;
2001
870
  previous: z.ZodObject<{
2002
871
  disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
2003
872
  items: z.ZodArray<z.ZodObject<{
2004
- label: z.ZodNullable<z.ZodObject<{
2005
- text: z.ZodString;
2006
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2007
- }, z.core.$strip>>;
873
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
2008
874
  amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
2009
875
  mandatory: z.ZodBoolean;
2010
876
  basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
2011
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
2012
877
  }, z.core.$strip>>;
2013
878
  }, z.core.$strip>;
2014
879
  current: z.ZodObject<{
2015
880
  disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
2016
881
  items: z.ZodArray<z.ZodObject<{
2017
- label: z.ZodNullable<z.ZodObject<{
2018
- text: z.ZodString;
2019
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2020
- }, z.core.$strip>>;
882
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
2021
883
  amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
2022
884
  mandatory: z.ZodBoolean;
2023
885
  basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
2024
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
2025
886
  }, z.core.$strip>>;
2026
887
  }, z.core.$strip>;
2027
888
  worse: z.ZodBoolean;
2028
889
  }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"field", readonly [z.ZodObject<{
2029
- field: z.ZodLiteral<"price">;
890
+ field: z.ZodLiteral<"total">;
2030
891
  previous: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2031
892
  current: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2032
893
  worse: z.ZodBoolean;
@@ -2059,7 +920,7 @@ declare const ERROR_DETAILS: {
2059
920
  field: z.ZodLiteral<"cancellation">;
2060
921
  previous: z.ZodObject<{
2061
922
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
2062
- asOf: z.ZodString;
923
+ readAt: z.ZodString;
2063
924
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
2064
925
  penalties: z.ZodArray<z.ZodObject<{
2065
926
  startsAt: z.ZodNullable<z.ZodString>;
@@ -2069,7 +930,7 @@ declare const ERROR_DETAILS: {
2069
930
  }, z.core.$strip>;
2070
931
  current: z.ZodObject<{
2071
932
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
2072
- asOf: z.ZodString;
933
+ readAt: z.ZodString;
2073
934
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
2074
935
  penalties: z.ZodArray<z.ZodObject<{
2075
936
  startsAt: z.ZodNullable<z.ZodString>;
@@ -2090,90 +951,62 @@ declare const ERROR_DETAILS: {
2090
951
  }, z.core.$strip>;
2091
952
  worse: z.ZodBoolean;
2092
953
  }, z.core.$strip>, z.ZodObject<{
2093
- field: z.ZodLiteral<"pay_at_property">;
954
+ field: z.ZodLiteral<"payAtProperty">;
2094
955
  previous: z.ZodObject<{
2095
956
  disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
2096
957
  items: z.ZodArray<z.ZodObject<{
2097
- label: z.ZodNullable<z.ZodObject<{
2098
- text: z.ZodString;
2099
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2100
- }, z.core.$strip>>;
2101
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
2102
- mandatory: z.ZodBoolean;
2103
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
2104
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
2105
- }, z.core.$strip>>;
2106
- }, z.core.$strip>;
2107
- current: z.ZodObject<{
2108
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
2109
- items: z.ZodArray<z.ZodObject<{
2110
- label: z.ZodNullable<z.ZodObject<{
2111
- text: z.ZodString;
2112
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2113
- }, z.core.$strip>>;
958
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
2114
959
  amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
2115
960
  mandatory: z.ZodBoolean;
2116
961
  basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
2117
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
2118
- }, z.core.$strip>>;
2119
- }, z.core.$strip>;
2120
- worse: z.ZodBoolean;
2121
- }, z.core.$strip>]>, unknown>>>;
2122
- offer: z.ZodObject<{
2123
- offerId: z.ZodString;
2124
- type: z.ZodType<"hotel" | (string & {}), unknown, z.core.$ZodTypeInternals<"hotel" | (string & {}), unknown>>;
2125
- expiresAt: z.ZodString;
2126
- hotel: z.ZodObject<{
2127
- hotelId: z.ZodString;
2128
- room: z.ZodObject<{
2129
- beds: z.ZodNullable<z.ZodObject<{
2130
- text: z.ZodString;
2131
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2132
- }, z.core.$strip>>;
2133
- areaSqm: z.ZodNullable<z.ZodObject<{
2134
- min: z.ZodNumber;
2135
- max: z.ZodNumber;
2136
- }, z.core.$strip>>;
2137
- maxOccupancy: z.ZodNullable<z.ZodNumber>;
2138
- window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
2139
- name: z.ZodNullable<z.ZodObject<{
2140
- text: z.ZodString;
2141
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2142
- }, z.core.$strip>>;
2143
- }, z.core.$strip>;
2144
- roomCount: z.ZodNumber;
2145
- meals: z.ZodObject<{
2146
- known: z.ZodBoolean;
2147
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
2148
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
2149
- allInclusive: z.ZodNullable<z.ZodBoolean>;
2150
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
2151
- label: z.ZodNullable<z.ZodObject<{
2152
- text: z.ZodString;
2153
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2154
- }, z.core.$strip>>;
2155
- }, z.core.$strip>;
962
+ }, z.core.$strip>>;
2156
963
  }, z.core.$strip>;
2157
- price: z.ZodObject<{
2158
- total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2159
- perNightAllRooms: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2160
- payAtProperty: z.ZodObject<{
2161
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
2162
- items: z.ZodArray<z.ZodObject<{
2163
- label: z.ZodNullable<z.ZodObject<{
2164
- text: z.ZodString;
2165
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2166
- }, z.core.$strip>>;
2167
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
2168
- mandatory: z.ZodBoolean;
2169
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
2170
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
2171
- }, z.core.$strip>>;
2172
- }, z.core.$strip>;
964
+ current: z.ZodObject<{
965
+ disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
966
+ items: z.ZodArray<z.ZodObject<{
967
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
968
+ amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
969
+ mandatory: z.ZodBoolean;
970
+ basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
971
+ }, z.core.$strip>>;
972
+ }, z.core.$strip>;
973
+ worse: z.ZodBoolean;
974
+ }, z.core.$strip>]>, unknown>>>;
975
+ offer: z.ZodObject<{
976
+ offerId: z.ZodString;
977
+ hotelId: z.ZodString;
978
+ expiresAt: z.ZodString;
979
+ roomType: z.ZodObject<{
980
+ name: z.ZodNullable<z.ZodObject<{
981
+ text: z.ZodString;
982
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
983
+ }, z.core.$strip>>;
984
+ beds: z.ZodNullable<z.ZodObject<{
985
+ text: z.ZodString;
986
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
987
+ }, z.core.$strip>>;
988
+ areaSqm: z.ZodNullable<z.ZodObject<{
989
+ min: z.ZodNumber;
990
+ max: z.ZodNumber;
991
+ }, z.core.$strip>>;
992
+ maxOccupancy: z.ZodNullable<z.ZodNumber>;
993
+ window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
994
+ }, z.core.$strip>;
995
+ roomCount: z.ZodNumber;
996
+ meals: z.ZodObject<{
997
+ known: z.ZodBoolean;
998
+ included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
999
+ unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
1000
+ allInclusive: z.ZodNullable<z.ZodBoolean>;
1001
+ guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
1002
+ label: z.ZodNullable<z.ZodObject<{
1003
+ text: z.ZodString;
1004
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1005
+ }, z.core.$strip>>;
2173
1006
  }, z.core.$strip>;
2174
1007
  cancellation: z.ZodObject<{
2175
1008
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
2176
- asOf: z.ZodString;
1009
+ readAt: z.ZodString;
2177
1010
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
2178
1011
  penalties: z.ZodArray<z.ZodObject<{
2179
1012
  startsAt: z.ZodNullable<z.ZodString>;
@@ -2185,6 +1018,17 @@ declare const ERROR_DETAILS: {
2185
1018
  mode: z.ZodType<"unknown" | (string & {}) | "instant" | "on_request", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "instant" | "on_request", unknown>>;
2186
1019
  withinMinutes: z.ZodNullable<z.ZodNumber>;
2187
1020
  }, z.core.$strip>;
1021
+ payAtProperty: z.ZodObject<{
1022
+ disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
1023
+ items: z.ZodArray<z.ZodObject<{
1024
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
1025
+ amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1026
+ mandatory: z.ZodBoolean;
1027
+ basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
1028
+ }, z.core.$strip>>;
1029
+ }, z.core.$strip>;
1030
+ total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
1031
+ perRoomNight: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2188
1032
  }, z.core.$strip>;
2189
1033
  }, z.core.$strip>;
2190
1034
  offer_already_ordered: z.ZodObject<{
@@ -2195,16 +1039,22 @@ declare const ERROR_DETAILS: {
2195
1039
  }, z.core.$strip>;
2196
1040
  cancellation_changed: null;
2197
1041
  order_not_cancellable: z.ZodObject<{
2198
- reason: z.ZodType<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown, z.core.$ZodTypeInternals<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown>>;
1042
+ orderId: z.ZodString;
1043
+ cancel: z.ZodObject<{
1044
+ action: z.ZodNullable<z.ZodType<"close" | (string & {}) | "cancel", unknown, z.core.$ZodTypeInternals<"close" | (string & {}) | "cancel", unknown>>>;
1045
+ blockedBy: z.ZodNullable<z.ZodType<(string & {}) | "expired" | "closed" | "confirming" | "failed" | "cancelling" | "needs_attention" | "payment_in_progress" | "website_checkout" | "already_cancelled" | "stay_started" | "cancellation_not_allowed" | "cancellation_refused" | "terms_unknown" | "support_only", unknown, z.core.$ZodTypeInternals<(string & {}) | "expired" | "closed" | "confirming" | "failed" | "cancelling" | "needs_attention" | "payment_in_progress" | "website_checkout" | "already_cancelled" | "stay_started" | "cancellation_not_allowed" | "cancellation_refused" | "terms_unknown" | "support_only", unknown>>>;
1046
+ penalty: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1047
+ refund: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1048
+ }, z.core.$strip>;
2199
1049
  }, z.core.$strip>;
2200
1050
  order_not_payable: z.ZodObject<{
2201
1051
  orderId: z.ZodString;
2202
- status: z.ZodType<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown, z.core.$ZodTypeInternals<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown>>;
1052
+ status: z.ZodType<(string & {}) | "awaiting_payment" | "expired" | "closed" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown, z.core.$ZodTypeInternals<(string & {}) | "awaiting_payment" | "expired" | "closed" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown>>;
2203
1053
  }, z.core.$strip>;
2204
1054
  payment_in_progress: z.ZodObject<{
2205
1055
  orderId: z.ZodString;
2206
1056
  }, z.core.$strip>;
2207
- payment_total_changed: z.ZodObject<{
1057
+ payment_total_mismatch: z.ZodObject<{
2208
1058
  orderId: z.ZodString;
2209
1059
  total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2210
1060
  }, z.core.$strip>;
@@ -2215,13 +1065,14 @@ declare const ERROR_DETAILS: {
2215
1065
  declineCode: z.ZodNullable<z.ZodString>;
2216
1066
  }, z.core.$strip>;
2217
1067
  payment_action_required: null;
2218
- payment_method_unavailable: null;
1068
+ payment_method_unavailable: z.ZodObject<{
1069
+ reason: z.ZodType<(string & {}) | "payment_open_on_page" | "token_not_offered" | "charge_refused", unknown, z.core.$ZodTypeInternals<(string & {}) | "payment_open_on_page" | "token_not_offered" | "charge_refused", unknown>>;
1070
+ }, z.core.$strip>;
2219
1071
  destination_ambiguous: z.ZodObject<{
2220
1072
  name: z.ZodString;
2221
1073
  countryCode: z.ZodString;
2222
1074
  candidates: z.ZodArray<z.ZodObject<{
2223
1075
  hotels: z.ZodObject<{
2224
- scope: z.ZodType<(string & {}) | "area" | "radius", unknown, z.core.$ZodTypeInternals<(string & {}) | "area" | "radius", unknown>>;
2225
1076
  radiusMeters: z.ZodNullable<z.ZodNumber>;
2226
1077
  count: z.ZodNumber;
2227
1078
  }, z.core.$strip>;
@@ -2232,7 +1083,6 @@ declare const ERROR_DETAILS: {
2232
1083
  zh: z.ZodNullable<z.ZodString>;
2233
1084
  }, z.core.$strip>;
2234
1085
  kind: z.ZodType<"country" | (string & {}) | "region" | "district" | "settlement" | "neighbourhood" | "island", unknown, z.core.$ZodTypeInternals<"country" | (string & {}) | "region" | "district" | "settlement" | "neighbourhood" | "island", unknown>>;
2235
- scope: z.ZodType<(string & {}) | "area" | "radius", unknown, z.core.$ZodTypeInternals<(string & {}) | "area" | "radius", unknown>>;
2236
1086
  cityLike: z.ZodNullable<z.ZodBoolean>;
2237
1087
  population: z.ZodNullable<z.ZodNumber>;
2238
1088
  region: z.ZodNullable<z.ZodObject<{
@@ -2263,7 +1113,7 @@ declare const ERROR_DETAILS: {
2263
1113
  }, z.core.$strip>, z.ZodObject<{
2264
1114
  reason: z.ZodLiteral<"not_a_locality">;
2265
1115
  placeId: z.ZodString;
2266
- hub: z.ZodNullable<z.ZodObject<{
1116
+ locality: z.ZodNullable<z.ZodObject<{
2267
1117
  placeId: z.ZodString;
2268
1118
  name: z.ZodString;
2269
1119
  names: z.ZodObject<{
@@ -2271,7 +1121,7 @@ declare const ERROR_DETAILS: {
2271
1121
  zh: z.ZodNullable<z.ZodString>;
2272
1122
  }, z.core.$strip>;
2273
1123
  }, z.core.$strip>>;
2274
- hubTotal: z.ZodNullable<z.ZodNumber>;
1124
+ localityTotal: z.ZodNullable<z.ZodNumber>;
2275
1125
  }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"reason", readonly [z.ZodObject<{
2276
1126
  reason: z.ZodLiteral<"no_match">;
2277
1127
  name: z.ZodString;
@@ -2283,7 +1133,7 @@ declare const ERROR_DETAILS: {
2283
1133
  }, z.core.$strip>, z.ZodObject<{
2284
1134
  reason: z.ZodLiteral<"not_a_locality">;
2285
1135
  placeId: z.ZodString;
2286
- hub: z.ZodNullable<z.ZodObject<{
1136
+ locality: z.ZodNullable<z.ZodObject<{
2287
1137
  placeId: z.ZodString;
2288
1138
  name: z.ZodString;
2289
1139
  names: z.ZodObject<{
@@ -2291,7 +1141,7 @@ declare const ERROR_DETAILS: {
2291
1141
  zh: z.ZodNullable<z.ZodString>;
2292
1142
  }, z.core.$strip>;
2293
1143
  }, z.core.$strip>>;
2294
- hubTotal: z.ZodNullable<z.ZodNumber>;
1144
+ localityTotal: z.ZodNullable<z.ZodNumber>;
2295
1145
  }, z.core.$strip>]>, unknown>>;
2296
1146
  search_too_broad: z.ZodObject<{
2297
1147
  matched: z.ZodNumber;
@@ -2307,7 +1157,7 @@ declare const ERROR_DETAILS: {
2307
1157
  }, z.core.$strip>;
2308
1158
  }, z.core.$strip>;
2309
1159
  count: z.ZodNumber;
2310
- total: z.ZodNumber;
1160
+ localityTotal: z.ZodNumber;
2311
1161
  includes: z.ZodArray<z.ZodObject<{
2312
1162
  place: z.ZodObject<{
2313
1163
  placeId: z.ZodString;
@@ -2337,7 +1187,7 @@ declare const ERROR_DETAILS: {
2337
1187
  zh: z.ZodNullable<z.ZodString>;
2338
1188
  }, z.core.$strip>;
2339
1189
  }, z.core.$strip>>;
2340
- basis: z.ZodType<"point" | (string & {}) | "seat" | "capital" | "busiest_settlement" | "hub", unknown, z.core.$ZodTypeInternals<"point" | (string & {}) | "seat" | "capital" | "busiest_settlement" | "hub", unknown>>;
1190
+ basis: z.ZodType<"point" | "locality" | (string & {}) | "seat" | "capital" | "busiest_settlement", unknown, z.core.$ZodTypeInternals<"point" | "locality" | (string & {}) | "seat" | "capital" | "busiest_settlement", unknown>>;
2341
1191
  }, z.core.$strip>>;
2342
1192
  }, z.core.$strip>;
2343
1193
  stay_unsupported: z.ZodType<OpenUnionOutput<"reason", readonly [z.ZodObject<{
@@ -2363,13 +1213,14 @@ declare const ERROR_DETAILS: {
2363
1213
  currency: z.ZodString;
2364
1214
  }, z.core.$strip>;
2365
1215
  rate_limited: z.ZodObject<{
2366
- scope: z.ZodType<"search" | "hotel" | (string & {}) | "offers" | "orders_read" | "orders_create" | "orders_cancel" | "orders_pay", unknown, z.core.$ZodTypeInternals<"search" | "hotel" | (string & {}) | "offers" | "orders_read" | "orders_create" | "orders_cancel" | "orders_pay", unknown>>;
1216
+ rateLimit: z.ZodType<"search" | "hotel" | (string & {}) | "offers" | "orders_read" | "orders_create" | "orders_cancel" | "orders_pay", unknown, z.core.$ZodTypeInternals<"search" | "hotel" | (string & {}) | "offers" | "orders_read" | "orders_create" | "orders_cancel" | "orders_pay", unknown>>;
2367
1217
  }, z.core.$strip>;
2368
1218
  ordering_paused: null;
2369
1219
  service_unavailable: null;
2370
1220
  supplier_unavailable: z.ZodObject<{
2371
1221
  outcome: z.ZodType<"unknown" | (string & {}) | "not_started", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "not_started", unknown>>;
2372
1222
  }, z.core.$strip>;
1223
+ client_outdated: null;
2373
1224
  internal: null;
2374
1225
  };
2375
1226
  type Details = typeof ERROR_DETAILS;
@@ -2377,7 +1228,7 @@ type Details = typeof ERROR_DETAILS;
2377
1228
  type ErrorBody<C extends ErrorCode> = {
2378
1229
  code: C;
2379
1230
  message: string;
2380
- param?: string;
1231
+ pointer?: string;
2381
1232
  retryable: boolean;
2382
1233
  retryAfterSeconds?: number;
2383
1234
  requestId: string;
@@ -2392,7 +1243,7 @@ type ErrorEnvelope = {
2392
1243
  error: KnownErrorBody | OpenFallback<"code">;
2393
1244
  };
2394
1245
  /**
2395
- * `{ error: { code, message, param?, retryable, retryAfterSeconds?, details,
1246
+ * `{ error: { code, message, pointer?, retryable, retryAfterSeconds?, details,
2396
1247
  * requestId } }`, picked by `code`: a known code whose §11 row lists details
2397
1248
  * carries them, parsed as that code's; one whose row shows "–" has none. An
2398
1249
  * unknown code falls back.
@@ -2402,8 +1253,15 @@ declare const errorEnvelope: z.ZodType<ErrorEnvelope>;
2402
1253
  /** The 14 policy topics, in snake_case, plus `other`. */
2403
1254
  declare const POLICY_TOPICS: readonly ["check_in", "important_notices", "booking", "booking_tips", "check_in_out", "check_in_tips", "reception", "deposit", "meal", "extra_bed", "pets", "surroundings", "meetings", "non_smoking", "other"];
2404
1255
  type PolicyTopic = (typeof POLICY_TOPICS)[number];
2405
- /** A room type's facts; shared with the offer's room. */
2406
- declare const roomFacts: {
1256
+ /**
1257
+ * A room type: its name and facts. The same object on an offer, in a hotel's
1258
+ * list and on an order's room; a fact not on record is null.
1259
+ */
1260
+ declare const roomType: z.ZodObject<{
1261
+ name: z.ZodNullable<z.ZodObject<{
1262
+ text: z.ZodString;
1263
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1264
+ }, z.core.$strip>>;
2407
1265
  beds: z.ZodNullable<z.ZodObject<{
2408
1266
  text: z.ZodString;
2409
1267
  locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
@@ -2414,7 +1272,8 @@ declare const roomFacts: {
2414
1272
  }, z.core.$strip>>;
2415
1273
  maxOccupancy: z.ZodNullable<z.ZodNumber>;
2416
1274
  window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
2417
- };
1275
+ }, z.core.$strip>;
1276
+ type RoomType = z.infer<typeof roomType>;
2418
1277
  declare const hotel: z.ZodObject<{
2419
1278
  hotelId: z.ZodString;
2420
1279
  name: z.ZodString;
@@ -2492,25 +1351,22 @@ declare const hotel: z.ZodObject<{
2492
1351
  phone: z.ZodNullable<z.ZodString>;
2493
1352
  website: z.ZodNullable<z.ZodString>;
2494
1353
  }, z.core.$strip>;
2495
- rooms: z.ZodOptional<z.ZodObject<{
2496
- listed: z.ZodBoolean;
2497
- items: z.ZodArray<z.ZodObject<{
2498
- beds: z.ZodNullable<z.ZodObject<{
2499
- text: z.ZodString;
2500
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2501
- }, z.core.$strip>>;
2502
- areaSqm: z.ZodNullable<z.ZodObject<{
2503
- min: z.ZodNumber;
2504
- max: z.ZodNumber;
2505
- }, z.core.$strip>>;
2506
- maxOccupancy: z.ZodNullable<z.ZodNumber>;
2507
- window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
2508
- name: z.ZodObject<{
2509
- text: z.ZodString;
2510
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2511
- }, z.core.$strip>;
1354
+ roomTypes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1355
+ name: z.ZodNullable<z.ZodObject<{
1356
+ text: z.ZodString;
1357
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2512
1358
  }, z.core.$strip>>;
2513
- }, z.core.$strip>>;
1359
+ beds: z.ZodNullable<z.ZodObject<{
1360
+ text: z.ZodString;
1361
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1362
+ }, z.core.$strip>>;
1363
+ areaSqm: z.ZodNullable<z.ZodObject<{
1364
+ min: z.ZodNumber;
1365
+ max: z.ZodNumber;
1366
+ }, z.core.$strip>>;
1367
+ maxOccupancy: z.ZodNullable<z.ZodNumber>;
1368
+ window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
1369
+ }, z.core.$strip>>>>;
2514
1370
  }, z.core.$strip>;
2515
1371
  type Hotel = z.infer<typeof hotel>;
2516
1372
 
@@ -2525,22 +1381,21 @@ declare const meals: z.ZodObject<{
2525
1381
  locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2526
1382
  }, z.core.$strip>>;
2527
1383
  }, z.core.$strip>;
1384
+ /** What a fee payable at the property is for, in Fortrip's words. */
1385
+ declare const FEE_KINDS: readonly ["tax", "resort_fee", "other", "unknown"];
1386
+ type FeeKind = (typeof FEE_KINDS)[number];
2528
1387
  declare const payAtProperty: z.ZodObject<{
2529
1388
  disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
2530
1389
  items: z.ZodArray<z.ZodObject<{
2531
- label: z.ZodNullable<z.ZodObject<{
2532
- text: z.ZodString;
2533
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2534
- }, z.core.$strip>>;
1390
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
2535
1391
  amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
2536
1392
  mandatory: z.ZodBoolean;
2537
1393
  basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
2538
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
2539
1394
  }, z.core.$strip>>;
2540
1395
  }, z.core.$strip>;
2541
1396
  declare const cancellation: z.ZodObject<{
2542
1397
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
2543
- asOf: z.ZodString;
1398
+ readAt: z.ZodString;
2544
1399
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
2545
1400
  penalties: z.ZodArray<z.ZodObject<{
2546
1401
  startsAt: z.ZodNullable<z.ZodString>;
@@ -2554,59 +1409,39 @@ declare const confirmation: z.ZodObject<{
2554
1409
  }, z.core.$strip>;
2555
1410
  declare const offer: z.ZodObject<{
2556
1411
  offerId: z.ZodString;
2557
- type: z.ZodType<"hotel" | (string & {}), unknown, z.core.$ZodTypeInternals<"hotel" | (string & {}), unknown>>;
1412
+ hotelId: z.ZodString;
2558
1413
  expiresAt: z.ZodString;
2559
- hotel: z.ZodObject<{
2560
- hotelId: z.ZodString;
2561
- room: z.ZodObject<{
2562
- beds: z.ZodNullable<z.ZodObject<{
2563
- text: z.ZodString;
2564
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2565
- }, z.core.$strip>>;
2566
- areaSqm: z.ZodNullable<z.ZodObject<{
2567
- min: z.ZodNumber;
2568
- max: z.ZodNumber;
2569
- }, z.core.$strip>>;
2570
- maxOccupancy: z.ZodNullable<z.ZodNumber>;
2571
- window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
2572
- name: z.ZodNullable<z.ZodObject<{
2573
- text: z.ZodString;
2574
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2575
- }, z.core.$strip>>;
2576
- }, z.core.$strip>;
2577
- roomCount: z.ZodNumber;
2578
- meals: z.ZodObject<{
2579
- known: z.ZodBoolean;
2580
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
2581
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
2582
- allInclusive: z.ZodNullable<z.ZodBoolean>;
2583
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
2584
- label: z.ZodNullable<z.ZodObject<{
2585
- text: z.ZodString;
2586
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2587
- }, z.core.$strip>>;
2588
- }, z.core.$strip>;
1414
+ roomType: z.ZodObject<{
1415
+ name: z.ZodNullable<z.ZodObject<{
1416
+ text: z.ZodString;
1417
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1418
+ }, z.core.$strip>>;
1419
+ beds: z.ZodNullable<z.ZodObject<{
1420
+ text: z.ZodString;
1421
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1422
+ }, z.core.$strip>>;
1423
+ areaSqm: z.ZodNullable<z.ZodObject<{
1424
+ min: z.ZodNumber;
1425
+ max: z.ZodNumber;
1426
+ }, z.core.$strip>>;
1427
+ maxOccupancy: z.ZodNullable<z.ZodNumber>;
1428
+ window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
2589
1429
  }, z.core.$strip>;
2590
- price: z.ZodObject<{
2591
- total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2592
- perNightAllRooms: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2593
- payAtProperty: z.ZodObject<{
2594
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
2595
- items: z.ZodArray<z.ZodObject<{
2596
- label: z.ZodNullable<z.ZodObject<{
2597
- text: z.ZodString;
2598
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2599
- }, z.core.$strip>>;
2600
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
2601
- mandatory: z.ZodBoolean;
2602
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
2603
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
2604
- }, z.core.$strip>>;
2605
- }, z.core.$strip>;
1430
+ roomCount: z.ZodNumber;
1431
+ meals: z.ZodObject<{
1432
+ known: z.ZodBoolean;
1433
+ included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
1434
+ unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
1435
+ allInclusive: z.ZodNullable<z.ZodBoolean>;
1436
+ guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
1437
+ label: z.ZodNullable<z.ZodObject<{
1438
+ text: z.ZodString;
1439
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1440
+ }, z.core.$strip>>;
2606
1441
  }, z.core.$strip>;
2607
1442
  cancellation: z.ZodObject<{
2608
1443
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
2609
- asOf: z.ZodString;
1444
+ readAt: z.ZodString;
2610
1445
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
2611
1446
  penalties: z.ZodArray<z.ZodObject<{
2612
1447
  startsAt: z.ZodNullable<z.ZodString>;
@@ -2618,6 +1453,17 @@ declare const offer: z.ZodObject<{
2618
1453
  mode: z.ZodType<"unknown" | (string & {}) | "instant" | "on_request", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "instant" | "on_request", unknown>>;
2619
1454
  withinMinutes: z.ZodNullable<z.ZodNumber>;
2620
1455
  }, z.core.$strip>;
1456
+ payAtProperty: z.ZodObject<{
1457
+ disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
1458
+ items: z.ZodArray<z.ZodObject<{
1459
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
1460
+ amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1461
+ mandatory: z.ZodBoolean;
1462
+ basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
1463
+ }, z.core.$strip>>;
1464
+ }, z.core.$strip>;
1465
+ total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
1466
+ perRoomNight: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2621
1467
  }, z.core.$strip>;
2622
1468
  type Offer = z.infer<typeof offer>;
2623
1469
  declare const omitted: z.ZodObject<{
@@ -2626,6 +1472,7 @@ declare const omitted: z.ZodObject<{
2626
1472
  dominated: z.ZodNumber;
2627
1473
  unreadable: z.ZodNumber;
2628
1474
  byLimit: z.ZodNumber;
1475
+ byCallLimit: z.ZodNumber;
2629
1476
  }, z.core.$strip>;
2630
1477
  type Omitted = z.infer<typeof omitted>;
2631
1478
  declare const UNAVAILABLE_REASONS: readonly ["sold_out", "no_matching_offers", "nationality_restricted", "offers_unreadable", "not_found", "supplier_unavailable", "stay_in_past"];
@@ -2638,70 +1485,49 @@ declare const hotelOffersResult: z.ZodObject<{
2638
1485
  childrenAges: z.ZodArray<z.ZodNumber>;
2639
1486
  }, z.core.$strip>>;
2640
1487
  }, z.core.$strip>;
1488
+ limitPerHotel: z.ZodNullable<z.ZodNumber>;
2641
1489
  hotels: z.ZodArray<z.ZodObject<{
2642
- hotel: z.ZodObject<{
2643
- hotelId: z.ZodString;
2644
- name: z.ZodString;
2645
- names: z.ZodObject<{
2646
- en: z.ZodNullable<z.ZodString>;
2647
- zh: z.ZodNullable<z.ZodString>;
2648
- }, z.core.$strip>;
1490
+ hotelId: z.ZodString;
1491
+ name: z.ZodString;
1492
+ names: z.ZodObject<{
1493
+ en: z.ZodNullable<z.ZodString>;
1494
+ zh: z.ZodNullable<z.ZodString>;
2649
1495
  }, z.core.$strip>;
2650
1496
  offers: z.ZodArray<z.ZodObject<{
2651
1497
  offerId: z.ZodString;
2652
- type: z.ZodType<"hotel" | (string & {}), unknown, z.core.$ZodTypeInternals<"hotel" | (string & {}), unknown>>;
1498
+ hotelId: z.ZodString;
2653
1499
  expiresAt: z.ZodString;
2654
- hotel: z.ZodObject<{
2655
- hotelId: z.ZodString;
2656
- room: z.ZodObject<{
2657
- beds: z.ZodNullable<z.ZodObject<{
2658
- text: z.ZodString;
2659
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2660
- }, z.core.$strip>>;
2661
- areaSqm: z.ZodNullable<z.ZodObject<{
2662
- min: z.ZodNumber;
2663
- max: z.ZodNumber;
2664
- }, z.core.$strip>>;
2665
- maxOccupancy: z.ZodNullable<z.ZodNumber>;
2666
- window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
2667
- name: z.ZodNullable<z.ZodObject<{
2668
- text: z.ZodString;
2669
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2670
- }, z.core.$strip>>;
2671
- }, z.core.$strip>;
2672
- roomCount: z.ZodNumber;
2673
- meals: z.ZodObject<{
2674
- known: z.ZodBoolean;
2675
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
2676
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
2677
- allInclusive: z.ZodNullable<z.ZodBoolean>;
2678
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
2679
- label: z.ZodNullable<z.ZodObject<{
2680
- text: z.ZodString;
2681
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2682
- }, z.core.$strip>>;
2683
- }, z.core.$strip>;
1500
+ roomType: z.ZodObject<{
1501
+ name: z.ZodNullable<z.ZodObject<{
1502
+ text: z.ZodString;
1503
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1504
+ }, z.core.$strip>>;
1505
+ beds: z.ZodNullable<z.ZodObject<{
1506
+ text: z.ZodString;
1507
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1508
+ }, z.core.$strip>>;
1509
+ areaSqm: z.ZodNullable<z.ZodObject<{
1510
+ min: z.ZodNumber;
1511
+ max: z.ZodNumber;
1512
+ }, z.core.$strip>>;
1513
+ maxOccupancy: z.ZodNullable<z.ZodNumber>;
1514
+ window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
2684
1515
  }, z.core.$strip>;
2685
- price: z.ZodObject<{
2686
- total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2687
- perNightAllRooms: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2688
- payAtProperty: z.ZodObject<{
2689
- disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
2690
- items: z.ZodArray<z.ZodObject<{
2691
- label: z.ZodNullable<z.ZodObject<{
2692
- text: z.ZodString;
2693
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2694
- }, z.core.$strip>>;
2695
- amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
2696
- mandatory: z.ZodBoolean;
2697
- basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
2698
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
2699
- }, z.core.$strip>>;
2700
- }, z.core.$strip>;
1516
+ roomCount: z.ZodNumber;
1517
+ meals: z.ZodObject<{
1518
+ known: z.ZodBoolean;
1519
+ included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
1520
+ unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
1521
+ allInclusive: z.ZodNullable<z.ZodBoolean>;
1522
+ guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
1523
+ label: z.ZodNullable<z.ZodObject<{
1524
+ text: z.ZodString;
1525
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1526
+ }, z.core.$strip>>;
2701
1527
  }, z.core.$strip>;
2702
1528
  cancellation: z.ZodObject<{
2703
1529
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
2704
- asOf: z.ZodString;
1530
+ readAt: z.ZodString;
2705
1531
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
2706
1532
  penalties: z.ZodArray<z.ZodObject<{
2707
1533
  startsAt: z.ZodNullable<z.ZodString>;
@@ -2713,6 +1539,17 @@ declare const hotelOffersResult: z.ZodObject<{
2713
1539
  mode: z.ZodType<"unknown" | (string & {}) | "instant" | "on_request", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "instant" | "on_request", unknown>>;
2714
1540
  withinMinutes: z.ZodNullable<z.ZodNumber>;
2715
1541
  }, z.core.$strip>;
1542
+ payAtProperty: z.ZodObject<{
1543
+ disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
1544
+ items: z.ZodArray<z.ZodObject<{
1545
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
1546
+ amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1547
+ mandatory: z.ZodBoolean;
1548
+ basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
1549
+ }, z.core.$strip>>;
1550
+ }, z.core.$strip>;
1551
+ total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
1552
+ perRoomNight: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2716
1553
  }, z.core.$strip>>;
2717
1554
  omitted: z.ZodObject<{
2718
1555
  byNationality: z.ZodNumber;
@@ -2720,6 +1557,7 @@ declare const hotelOffersResult: z.ZodObject<{
2720
1557
  dominated: z.ZodNumber;
2721
1558
  unreadable: z.ZodNumber;
2722
1559
  byLimit: z.ZodNumber;
1560
+ byCallLimit: z.ZodNumber;
2723
1561
  }, z.core.$strip>;
2724
1562
  }, z.core.$strip>>;
2725
1563
  unavailable: z.ZodArray<z.ZodObject<{
@@ -2731,33 +1569,61 @@ declare const hotelOffersResult: z.ZodObject<{
2731
1569
  dominated: z.ZodNumber;
2732
1570
  unreadable: z.ZodNumber;
2733
1571
  byLimit: z.ZodNumber;
1572
+ byCallLimit: z.ZodNumber;
2734
1573
  }, z.core.$strip>>;
2735
1574
  }, z.core.$strip>>;
2736
1575
  }, z.core.$strip>;
2737
1576
  type HotelOffersResult = z.infer<typeof hotelOffersResult>;
2738
1577
 
2739
- declare const ORDER_STATUSES: readonly ["awaiting_payment", "expired", "confirming", "confirmed", "failed", "cancelling", "cancelled", "needs_attention"];
1578
+ /** `expired`: unpaid, the time to pay ran out. `closed`: unpaid, closed at
1579
+ * the caller's request. Neither was charged, and neither can be paid. */
1580
+ declare const ORDER_STATUSES: readonly ["awaiting_payment", "expired", "closed", "confirming", "confirmed", "failed", "cancelling", "cancelled", "needs_attention"];
2740
1581
  type OrderStatus = (typeof ORDER_STATUSES)[number];
2741
1582
  declare const PAYMENT_STATUSES: readonly ["unpaid", "authorized", "paid", "released", "refund_pending", "refunded"];
2742
1583
  type PaymentStatus = (typeof PAYMENT_STATUSES)[number];
2743
- /** Why an order can or can't be cancelled now: `cancellable` when a paid
2744
- * order can, `unpaid` when an unpaid one can be closed instead, else the
2745
- * first reason that holds. `non_refundable` is a rate the hotel takes no
2746
- * cancellation for; `refused`, a cancellation the hotel refused, the
2747
- * booking standing as it was. */
2748
- declare const CANCEL_REASONS: readonly ["cancellable", "unpaid", "already_cancelled", "in_progress", "not_confirmed", "stay_started", "non_refundable", "refused", "terms_unknown", "needs_attention"];
2749
- type CancelReason = (typeof CANCEL_REASONS)[number];
1584
+ /** What `cancel_order` can do to an order now: `cancel` a paid one under
1585
+ * its terms (with `maximumPenalty`), or `close` an unpaid one (with
1586
+ * `close: true`). */
1587
+ declare const CANCEL_ACTIONS: readonly ["cancel", "close"];
1588
+ type CancelAction = (typeof CANCEL_ACTIONS)[number];
1589
+ /** What keeps an order from being cancelled or closed now, one situation
1590
+ * each. `payment_in_progress`: unpaid, with a payment under way.
1591
+ * `website_checkout`: unpaid, on the Fortrip website's own checkout.
1592
+ * `expired`: unpaid, its time to pay ran out. `closed`: unpaid, closed at
1593
+ * the caller's request. `failed`: no stay was booked. `confirming`: paid or
1594
+ * held, the booking still with the hotel. `cancelling`: a cancellation is
1595
+ * under way. `cancellation_not_allowed`: the hotel takes no cancellation
1596
+ * for the order at all, even one that keeps the whole total (a
1597
+ * non-refundable rate, which only keeps the whole total, can still be
1598
+ * cancelled: action `cancel`). `cancellation_refused`: the hotel refused a
1599
+ * cancellation, the booking standing as it was. `support_only`: a sound booking that `cancel_order` can't cancel;
1600
+ * Fortrip's support can. `needs_attention`: the order's status is
1601
+ * `needs_attention`. */
1602
+ declare const CANCEL_BLOCKERS: readonly ["payment_in_progress", "website_checkout", "expired", "closed", "failed", "confirming", "cancelling", "already_cancelled", "stay_started", "cancellation_not_allowed", "cancellation_refused", "terms_unknown", "support_only", "needs_attention"];
1603
+ type CancelBlocker = (typeof CANCEL_BLOCKERS)[number];
1604
+ /** Why a failed order booked no stay. `rate_unavailable`: the rate could no
1605
+ * longer be booked when the hotel was asked. `hotel_refused`: the hotel's
1606
+ * booking system refused this order, as it would the same order again. */
1607
+ declare const FAILURE_REASONS: readonly ["rate_unavailable", "hotel_refused", "unknown"];
1608
+ type FailureReason = (typeof FAILURE_REASONS)[number];
2750
1609
  /** Why a shared payment token can't pay an order. */
2751
1610
  declare const CREDENTIAL_INVALID_REASONS: readonly ["not_found", "currency", "amount", "expired", "deactivated", "used", "other_seller"];
2752
1611
  type CredentialInvalidReason = (typeof CREDENTIAL_INVALID_REASONS)[number];
2753
- /** A way to pay an order other than its link: one of the Universal
2754
- * Commerce Protocol's payment handlers, its fields named as UCP and Stripe
2755
- * name them (snake case). `type` names it (`com.stripe.payments`, which
2756
- * takes a Stripe shared payment token); `version`, `spec` and `schema` the
2757
- * handler specification it follows; `available_instruments` the
2758
- * instruments it takes; `config` its settings, whose `business_profile`
2759
- * is the seller's id a wallet grants the token for (Stripe's business
2760
- * profile). */
1612
+ /** Why `pay_order` takes no token for an order, whatever the token.
1613
+ * `payment_open_on_page`: the user has a payment open on the order's
1614
+ * payment page. `token_not_offered`: the order's `payment.tokenRequest` is null.
1615
+ * `charge_refused`: the charge was refused for a reason a new token
1616
+ * wouldn't fix. */
1617
+ declare const PAYMENT_METHOD_UNAVAILABLE_REASONS: readonly ["payment_open_on_page", "token_not_offered", "charge_refused"];
1618
+ type PaymentMethodUnavailableReason = (typeof PAYMENT_METHOD_UNAVAILABLE_REASONS)[number];
1619
+ /** The handler a shared payment token is requested for: one of the
1620
+ * Universal Commerce Protocol's payment handlers, its fields named as UCP
1621
+ * and Stripe name them (snake case). `type` names it
1622
+ * (`com.stripe.payments`, which takes a Stripe shared payment token);
1623
+ * `version`, `spec` and `schema` the handler specification it follows;
1624
+ * `available_instruments` the instruments it takes; `config` its settings,
1625
+ * whose `business_profile` is the seller's id the token is granted for
1626
+ * (Stripe's business profile). */
2761
1627
  declare const paymentHandler: z.ZodObject<{
2762
1628
  id: z.ZodString;
2763
1629
  type: z.ZodString;
@@ -2774,87 +1640,33 @@ declare const paymentHandler: z.ZodObject<{
2774
1640
  }, z.core.$strip>;
2775
1641
  }, z.core.$strip>;
2776
1642
  type PaymentHandler = z.infer<typeof paymentHandler>;
2777
- /** The ids of `payment.methods`: the ways `pay_order` can pay an order. */
2778
- declare const PAYMENT_METHOD_IDS: readonly ["stripe_shared_payment_token", "stripe_alipay_wechat_pay"];
2779
- type PaymentMethodId = (typeof PAYMENT_METHOD_IDS)[number];
2780
- /** A way `pay_order` can pay an order other than its link, by `id`: an
2781
- * open union, so a later method is an entry with a new id. */
2782
- declare const paymentMethod: z.ZodType<OpenUnionOutput<"id", readonly [z.ZodObject<{
2783
- id: z.ZodLiteral<"stripe_shared_payment_token">;
2784
- handler: z.ZodObject<{
2785
- id: z.ZodString;
2786
- type: z.ZodString;
2787
- version: z.ZodString;
2788
- spec: z.ZodString;
2789
- schema: z.ZodString;
2790
- available_instruments: z.ZodArray<z.ZodObject<{
2791
- type: z.ZodString;
2792
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
2793
- }, z.core.$strip>>;
2794
- config: z.ZodObject<{
2795
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
2796
- business_profile: z.ZodString;
2797
- }, z.core.$strip>;
2798
- }, z.core.$strip>;
2799
- limits: z.ZodObject<{
2800
- maxAmount: z.ZodNumber;
2801
- currency: z.ZodString;
2802
- expiresAt: z.ZodString;
2803
- }, z.core.$strip>;
2804
- }, z.core.$strip>, z.ZodObject<{
2805
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
2806
- open: z.ZodBoolean;
2807
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
2808
- wechatPay: z.ZodNullable<z.ZodObject<{
2809
- qrData: z.ZodNullable<z.ZodString>;
2810
- qrImageUrl: z.ZodNullable<z.ZodString>;
2811
- url: z.ZodString;
2812
- }, z.core.$strip>>;
2813
- alipay: z.ZodNullable<z.ZodObject<{
2814
- url: z.ZodString;
2815
- }, z.core.$strip>>;
2816
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"id", readonly [z.ZodObject<{
2817
- id: z.ZodLiteral<"stripe_shared_payment_token">;
2818
- handler: z.ZodObject<{
2819
- id: z.ZodString;
2820
- type: z.ZodString;
2821
- version: z.ZodString;
2822
- spec: z.ZodString;
2823
- schema: z.ZodString;
2824
- available_instruments: z.ZodArray<z.ZodObject<{
2825
- type: z.ZodString;
2826
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
2827
- }, z.core.$strip>>;
2828
- config: z.ZodObject<{
2829
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
2830
- business_profile: z.ZodString;
2831
- }, z.core.$strip>;
2832
- }, z.core.$strip>;
2833
- limits: z.ZodObject<{
2834
- maxAmount: z.ZodNumber;
2835
- currency: z.ZodString;
2836
- expiresAt: z.ZodString;
2837
- }, z.core.$strip>;
2838
- }, z.core.$strip>, z.ZodObject<{
2839
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
2840
- open: z.ZodBoolean;
2841
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
2842
- wechatPay: z.ZodNullable<z.ZodObject<{
2843
- qrData: z.ZodNullable<z.ZodString>;
2844
- qrImageUrl: z.ZodNullable<z.ZodString>;
2845
- url: z.ZodString;
2846
- }, z.core.$strip>>;
2847
- alipay: z.ZodNullable<z.ZodObject<{
2848
- url: z.ZodString;
2849
- }, z.core.$strip>>;
2850
- }, z.core.$strip>]>, unknown>>;
2851
- type PaymentMethod = z.infer<typeof paymentMethod>;
1643
+ /** What a shared payment token for an order must allow: Stripe's usage
1644
+ * limits, named and valued as Stripe takes them (snake case), like
1645
+ * `paymentHandler`. */
1646
+ declare const tokenUsageLimits: z.ZodObject<{
1647
+ max_amount: z.ZodNumber;
1648
+ currency: z.ZodString;
1649
+ expires_at: z.ZodNumber;
1650
+ }, z.core.$strip>;
1651
+ type TokenUsageLimits = z.infer<typeof tokenUsageLimits>;
1652
+ /** `order.cancel`, and what `order_not_cancellable` carries: what
1653
+ * `cancel_order` can do to the order now. For the actions this build knows:
1654
+ * `cancel` comes with `penalty` and `refund`, `close` with neither, and no
1655
+ * action (null) with `blockedBy`. An action it does not know is not held to
1656
+ * any of that, so a later one still reads. */
1657
+ declare const orderCancel: z.ZodObject<{
1658
+ action: z.ZodNullable<z.ZodType<"close" | (string & {}) | "cancel", unknown, z.core.$ZodTypeInternals<"close" | (string & {}) | "cancel", unknown>>>;
1659
+ blockedBy: z.ZodNullable<z.ZodType<(string & {}) | "expired" | "closed" | "confirming" | "failed" | "cancelling" | "needs_attention" | "payment_in_progress" | "website_checkout" | "already_cancelled" | "stay_started" | "cancellation_not_allowed" | "cancellation_refused" | "terms_unknown" | "support_only", unknown, z.core.$ZodTypeInternals<(string & {}) | "expired" | "closed" | "confirming" | "failed" | "cancelling" | "needs_attention" | "payment_in_progress" | "website_checkout" | "already_cancelled" | "stay_started" | "cancellation_not_allowed" | "cancellation_refused" | "terms_unknown" | "support_only", unknown>>>;
1660
+ penalty: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1661
+ refund: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
1662
+ }, z.core.$strip>;
1663
+ type OrderCancel = z.infer<typeof orderCancel>;
2852
1664
  /** `FT-` and six characters with no 0, 1, I or O. */
2853
1665
  declare const orderReference: z.ZodString;
2854
1666
  declare const order: z.ZodObject<{
2855
1667
  orderId: z.ZodString;
2856
1668
  reference: z.ZodString;
2857
- status: z.ZodType<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown, z.core.$ZodTypeInternals<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown>>;
1669
+ status: z.ZodType<(string & {}) | "awaiting_payment" | "expired" | "closed" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown, z.core.$ZodTypeInternals<(string & {}) | "awaiting_payment" | "expired" | "closed" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown>>;
2858
1670
  createdAt: z.ZodString;
2859
1671
  updatedAt: z.ZodString;
2860
1672
  contact: z.ZodNullable<z.ZodObject<{
@@ -2881,32 +1693,38 @@ declare const order: z.ZodObject<{
2881
1693
  firstName: z.ZodString;
2882
1694
  lastName: z.ZodString;
2883
1695
  }, z.core.$strip>>>;
1696
+ roomType: z.ZodObject<{
1697
+ name: z.ZodNullable<z.ZodObject<{
1698
+ text: z.ZodString;
1699
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1700
+ }, z.core.$strip>>;
1701
+ beds: z.ZodNullable<z.ZodObject<{
1702
+ text: z.ZodString;
1703
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1704
+ }, z.core.$strip>>;
1705
+ areaSqm: z.ZodNullable<z.ZodObject<{
1706
+ min: z.ZodNumber;
1707
+ max: z.ZodNumber;
1708
+ }, z.core.$strip>>;
1709
+ maxOccupancy: z.ZodNullable<z.ZodNumber>;
1710
+ window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
1711
+ }, z.core.$strip>;
1712
+ meals: z.ZodObject<{
1713
+ known: z.ZodBoolean;
1714
+ included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
1715
+ unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
1716
+ allInclusive: z.ZodNullable<z.ZodBoolean>;
1717
+ guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
1718
+ label: z.ZodNullable<z.ZodObject<{
1719
+ text: z.ZodString;
1720
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1721
+ }, z.core.$strip>>;
1722
+ }, z.core.$strip>;
2884
1723
  }, z.core.$strip>>;
2885
1724
  specialRequests: z.ZodNullable<z.ZodString>;
2886
- room: z.ZodObject<{
2887
- name: z.ZodNullable<z.ZodObject<{
2888
- text: z.ZodString;
2889
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2890
- }, z.core.$strip>>;
2891
- beds: z.ZodNullable<z.ZodObject<{
2892
- text: z.ZodString;
2893
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2894
- }, z.core.$strip>>;
2895
- }, z.core.$strip>;
2896
- meals: z.ZodObject<{
2897
- known: z.ZodBoolean;
2898
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
2899
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
2900
- allInclusive: z.ZodNullable<z.ZodBoolean>;
2901
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
2902
- label: z.ZodNullable<z.ZodObject<{
2903
- text: z.ZodString;
2904
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2905
- }, z.core.$strip>>;
2906
- }, z.core.$strip>;
2907
1725
  cancellation: z.ZodObject<{
2908
1726
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
2909
- asOf: z.ZodString;
1727
+ readAt: z.ZodString;
2910
1728
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
2911
1729
  penalties: z.ZodArray<z.ZodObject<{
2912
1730
  startsAt: z.ZodNullable<z.ZodString>;
@@ -2914,17 +1732,17 @@ declare const order: z.ZodObject<{
2914
1732
  }, z.core.$strip>>;
2915
1733
  timeZone: z.ZodNullable<z.ZodString>;
2916
1734
  }, z.core.$strip>;
1735
+ confirmation: z.ZodNullable<z.ZodObject<{
1736
+ mode: z.ZodType<"unknown" | (string & {}) | "instant" | "on_request", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "instant" | "on_request", unknown>>;
1737
+ withinMinutes: z.ZodNullable<z.ZodNumber>;
1738
+ }, z.core.$strip>>;
2917
1739
  payAtProperty: z.ZodObject<{
2918
1740
  disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
2919
1741
  items: z.ZodArray<z.ZodObject<{
2920
- label: z.ZodNullable<z.ZodObject<{
2921
- text: z.ZodString;
2922
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2923
- }, z.core.$strip>>;
1742
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
2924
1743
  amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
2925
1744
  mandatory: z.ZodBoolean;
2926
1745
  basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
2927
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
2928
1746
  }, z.core.$strip>>;
2929
1747
  }, z.core.$strip>;
2930
1748
  confirmationNumber: z.ZodNullable<z.ZodString>;
@@ -2948,32 +1766,38 @@ declare const order: z.ZodObject<{
2948
1766
  firstName: z.ZodString;
2949
1767
  lastName: z.ZodString;
2950
1768
  }, z.core.$strip>>>;
1769
+ roomType: z.ZodObject<{
1770
+ name: z.ZodNullable<z.ZodObject<{
1771
+ text: z.ZodString;
1772
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1773
+ }, z.core.$strip>>;
1774
+ beds: z.ZodNullable<z.ZodObject<{
1775
+ text: z.ZodString;
1776
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1777
+ }, z.core.$strip>>;
1778
+ areaSqm: z.ZodNullable<z.ZodObject<{
1779
+ min: z.ZodNumber;
1780
+ max: z.ZodNumber;
1781
+ }, z.core.$strip>>;
1782
+ maxOccupancy: z.ZodNullable<z.ZodNumber>;
1783
+ window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
1784
+ }, z.core.$strip>;
1785
+ meals: z.ZodObject<{
1786
+ known: z.ZodBoolean;
1787
+ included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
1788
+ unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
1789
+ allInclusive: z.ZodNullable<z.ZodBoolean>;
1790
+ guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
1791
+ label: z.ZodNullable<z.ZodObject<{
1792
+ text: z.ZodString;
1793
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1794
+ }, z.core.$strip>>;
1795
+ }, z.core.$strip>;
2951
1796
  }, z.core.$strip>>;
2952
1797
  specialRequests: z.ZodNullable<z.ZodString>;
2953
- room: z.ZodObject<{
2954
- name: z.ZodNullable<z.ZodObject<{
2955
- text: z.ZodString;
2956
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2957
- }, z.core.$strip>>;
2958
- beds: z.ZodNullable<z.ZodObject<{
2959
- text: z.ZodString;
2960
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2961
- }, z.core.$strip>>;
2962
- }, z.core.$strip>;
2963
- meals: z.ZodObject<{
2964
- known: z.ZodBoolean;
2965
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
2966
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
2967
- allInclusive: z.ZodNullable<z.ZodBoolean>;
2968
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
2969
- label: z.ZodNullable<z.ZodObject<{
2970
- text: z.ZodString;
2971
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2972
- }, z.core.$strip>>;
2973
- }, z.core.$strip>;
2974
1798
  cancellation: z.ZodObject<{
2975
1799
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
2976
- asOf: z.ZodString;
1800
+ readAt: z.ZodString;
2977
1801
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
2978
1802
  penalties: z.ZodArray<z.ZodObject<{
2979
1803
  startsAt: z.ZodNullable<z.ZodString>;
@@ -2981,69 +1805,31 @@ declare const order: z.ZodObject<{
2981
1805
  }, z.core.$strip>>;
2982
1806
  timeZone: z.ZodNullable<z.ZodString>;
2983
1807
  }, z.core.$strip>;
1808
+ confirmation: z.ZodNullable<z.ZodObject<{
1809
+ mode: z.ZodType<"unknown" | (string & {}) | "instant" | "on_request", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "instant" | "on_request", unknown>>;
1810
+ withinMinutes: z.ZodNullable<z.ZodNumber>;
1811
+ }, z.core.$strip>>;
2984
1812
  payAtProperty: z.ZodObject<{
2985
1813
  disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
2986
1814
  items: z.ZodArray<z.ZodObject<{
2987
- label: z.ZodNullable<z.ZodObject<{
2988
- text: z.ZodString;
2989
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2990
- }, z.core.$strip>>;
1815
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
2991
1816
  amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
2992
1817
  mandatory: z.ZodBoolean;
2993
1818
  basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
2994
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
2995
1819
  }, z.core.$strip>>;
2996
1820
  }, z.core.$strip>;
2997
1821
  confirmationNumber: z.ZodNullable<z.ZodString>;
2998
1822
  }, z.core.$strip>;
2999
1823
  }, z.core.$strip>]>, unknown>>>;
3000
- price: z.ZodObject<{
3001
- total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3002
- }, z.core.$strip>;
1824
+ total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3003
1825
  payment: z.ZodObject<{
3004
1826
  status: z.ZodType<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown, z.core.$ZodTypeInternals<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown>>;
3005
1827
  url: z.ZodNullable<z.ZodString>;
3006
1828
  requiresSignIn: z.ZodBoolean;
3007
1829
  expiresAt: z.ZodNullable<z.ZodString>;
3008
- chargeCurrency: z.ZodString;
3009
1830
  localCurrencyAtCheckout: z.ZodBoolean;
3010
1831
  localCharge: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
3011
- methods: z.ZodArray<z.ZodType<OpenUnionOutput<"id", readonly [z.ZodObject<{
3012
- id: z.ZodLiteral<"stripe_shared_payment_token">;
3013
- handler: z.ZodObject<{
3014
- id: z.ZodString;
3015
- type: z.ZodString;
3016
- version: z.ZodString;
3017
- spec: z.ZodString;
3018
- schema: z.ZodString;
3019
- available_instruments: z.ZodArray<z.ZodObject<{
3020
- type: z.ZodString;
3021
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
3022
- }, z.core.$strip>>;
3023
- config: z.ZodObject<{
3024
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
3025
- business_profile: z.ZodString;
3026
- }, z.core.$strip>;
3027
- }, z.core.$strip>;
3028
- limits: z.ZodObject<{
3029
- maxAmount: z.ZodNumber;
3030
- currency: z.ZodString;
3031
- expiresAt: z.ZodString;
3032
- }, z.core.$strip>;
3033
- }, z.core.$strip>, z.ZodObject<{
3034
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
3035
- open: z.ZodBoolean;
3036
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
3037
- wechatPay: z.ZodNullable<z.ZodObject<{
3038
- qrData: z.ZodNullable<z.ZodString>;
3039
- qrImageUrl: z.ZodNullable<z.ZodString>;
3040
- url: z.ZodString;
3041
- }, z.core.$strip>>;
3042
- alipay: z.ZodNullable<z.ZodObject<{
3043
- url: z.ZodString;
3044
- }, z.core.$strip>>;
3045
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"id", readonly [z.ZodObject<{
3046
- id: z.ZodLiteral<"stripe_shared_payment_token">;
1832
+ tokenRequest: z.ZodNullable<z.ZodObject<{
3047
1833
  handler: z.ZodObject<{
3048
1834
  id: z.ZodString;
3049
1835
  type: z.ZodString;
@@ -3059,31 +1845,27 @@ declare const order: z.ZodObject<{
3059
1845
  business_profile: z.ZodString;
3060
1846
  }, z.core.$strip>;
3061
1847
  }, z.core.$strip>;
3062
- limits: z.ZodObject<{
3063
- maxAmount: z.ZodNumber;
1848
+ usageLimits: z.ZodObject<{
1849
+ max_amount: z.ZodNumber;
3064
1850
  currency: z.ZodString;
3065
- expiresAt: z.ZodString;
1851
+ expires_at: z.ZodNumber;
3066
1852
  }, z.core.$strip>;
3067
- }, z.core.$strip>, z.ZodObject<{
3068
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
3069
- open: z.ZodBoolean;
3070
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
3071
- wechatPay: z.ZodNullable<z.ZodObject<{
3072
- qrData: z.ZodNullable<z.ZodString>;
3073
- qrImageUrl: z.ZodNullable<z.ZodString>;
3074
- url: z.ZodString;
3075
- }, z.core.$strip>>;
3076
- alipay: z.ZodNullable<z.ZodObject<{
3077
- url: z.ZodString;
3078
- }, z.core.$strip>>;
3079
- }, z.core.$strip>]>, unknown>>>;
1853
+ }, z.core.$strip>>;
3080
1854
  }, z.core.$strip>;
3081
1855
  cancel: z.ZodObject<{
3082
- available: z.ZodBoolean;
3083
- reason: z.ZodType<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown, z.core.$ZodTypeInternals<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown>>;
1856
+ action: z.ZodNullable<z.ZodType<"close" | (string & {}) | "cancel", unknown, z.core.$ZodTypeInternals<"close" | (string & {}) | "cancel", unknown>>>;
1857
+ blockedBy: z.ZodNullable<z.ZodType<(string & {}) | "expired" | "closed" | "confirming" | "failed" | "cancelling" | "needs_attention" | "payment_in_progress" | "website_checkout" | "already_cancelled" | "stay_started" | "cancellation_not_allowed" | "cancellation_refused" | "terms_unknown" | "support_only", unknown, z.core.$ZodTypeInternals<(string & {}) | "expired" | "closed" | "confirming" | "failed" | "cancelling" | "needs_attention" | "payment_in_progress" | "website_checkout" | "already_cancelled" | "stay_started" | "cancellation_not_allowed" | "cancellation_refused" | "terms_unknown" | "support_only", unknown>>>;
3084
1858
  penalty: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
3085
1859
  refund: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
3086
1860
  }, z.core.$strip>;
1861
+ cancelled: z.ZodNullable<z.ZodObject<{
1862
+ at: z.ZodString;
1863
+ penalty: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
1864
+ refund: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
1865
+ }, z.core.$strip>>;
1866
+ failure: z.ZodNullable<z.ZodObject<{
1867
+ reason: z.ZodType<"unknown" | (string & {}) | "rate_unavailable" | "hotel_refused", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "rate_unavailable" | "hotel_refused", unknown>>;
1868
+ }, z.core.$strip>>;
3087
1869
  manageUrl: z.ZodString;
3088
1870
  }, z.core.$strip>;
3089
1871
  type Order = z.infer<typeof order>;
@@ -3092,7 +1874,7 @@ declare const orderList: z.ZodObject<{
3092
1874
  data: z.ZodArray<z.ZodObject<{
3093
1875
  orderId: z.ZodString;
3094
1876
  reference: z.ZodString;
3095
- status: z.ZodType<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown, z.core.$ZodTypeInternals<(string & {}) | "awaiting_payment" | "expired" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown>>;
1877
+ status: z.ZodType<(string & {}) | "awaiting_payment" | "expired" | "closed" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown, z.core.$ZodTypeInternals<(string & {}) | "awaiting_payment" | "expired" | "closed" | "confirming" | "confirmed" | "failed" | "cancelling" | "cancelled" | "needs_attention", unknown>>;
3096
1878
  createdAt: z.ZodString;
3097
1879
  updatedAt: z.ZodString;
3098
1880
  contact: z.ZodNullable<z.ZodObject<{
@@ -3119,32 +1901,38 @@ declare const orderList: z.ZodObject<{
3119
1901
  firstName: z.ZodString;
3120
1902
  lastName: z.ZodString;
3121
1903
  }, z.core.$strip>>>;
1904
+ roomType: z.ZodObject<{
1905
+ name: z.ZodNullable<z.ZodObject<{
1906
+ text: z.ZodString;
1907
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1908
+ }, z.core.$strip>>;
1909
+ beds: z.ZodNullable<z.ZodObject<{
1910
+ text: z.ZodString;
1911
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1912
+ }, z.core.$strip>>;
1913
+ areaSqm: z.ZodNullable<z.ZodObject<{
1914
+ min: z.ZodNumber;
1915
+ max: z.ZodNumber;
1916
+ }, z.core.$strip>>;
1917
+ maxOccupancy: z.ZodNullable<z.ZodNumber>;
1918
+ window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
1919
+ }, z.core.$strip>;
1920
+ meals: z.ZodObject<{
1921
+ known: z.ZodBoolean;
1922
+ included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
1923
+ unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
1924
+ allInclusive: z.ZodNullable<z.ZodBoolean>;
1925
+ guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
1926
+ label: z.ZodNullable<z.ZodObject<{
1927
+ text: z.ZodString;
1928
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1929
+ }, z.core.$strip>>;
1930
+ }, z.core.$strip>;
3122
1931
  }, z.core.$strip>>;
3123
1932
  specialRequests: z.ZodNullable<z.ZodString>;
3124
- room: z.ZodObject<{
3125
- name: z.ZodNullable<z.ZodObject<{
3126
- text: z.ZodString;
3127
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
3128
- }, z.core.$strip>>;
3129
- beds: z.ZodNullable<z.ZodObject<{
3130
- text: z.ZodString;
3131
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
3132
- }, z.core.$strip>>;
3133
- }, z.core.$strip>;
3134
- meals: z.ZodObject<{
3135
- known: z.ZodBoolean;
3136
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
3137
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
3138
- allInclusive: z.ZodNullable<z.ZodBoolean>;
3139
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
3140
- label: z.ZodNullable<z.ZodObject<{
3141
- text: z.ZodString;
3142
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
3143
- }, z.core.$strip>>;
3144
- }, z.core.$strip>;
3145
1933
  cancellation: z.ZodObject<{
3146
1934
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
3147
- asOf: z.ZodString;
1935
+ readAt: z.ZodString;
3148
1936
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
3149
1937
  penalties: z.ZodArray<z.ZodObject<{
3150
1938
  startsAt: z.ZodNullable<z.ZodString>;
@@ -3152,17 +1940,17 @@ declare const orderList: z.ZodObject<{
3152
1940
  }, z.core.$strip>>;
3153
1941
  timeZone: z.ZodNullable<z.ZodString>;
3154
1942
  }, z.core.$strip>;
1943
+ confirmation: z.ZodNullable<z.ZodObject<{
1944
+ mode: z.ZodType<"unknown" | (string & {}) | "instant" | "on_request", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "instant" | "on_request", unknown>>;
1945
+ withinMinutes: z.ZodNullable<z.ZodNumber>;
1946
+ }, z.core.$strip>>;
3155
1947
  payAtProperty: z.ZodObject<{
3156
1948
  disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
3157
1949
  items: z.ZodArray<z.ZodObject<{
3158
- label: z.ZodNullable<z.ZodObject<{
3159
- text: z.ZodString;
3160
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
3161
- }, z.core.$strip>>;
1950
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
3162
1951
  amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
3163
1952
  mandatory: z.ZodBoolean;
3164
1953
  basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
3165
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
3166
1954
  }, z.core.$strip>>;
3167
1955
  }, z.core.$strip>;
3168
1956
  confirmationNumber: z.ZodNullable<z.ZodString>;
@@ -3186,32 +1974,38 @@ declare const orderList: z.ZodObject<{
3186
1974
  firstName: z.ZodString;
3187
1975
  lastName: z.ZodString;
3188
1976
  }, z.core.$strip>>>;
1977
+ roomType: z.ZodObject<{
1978
+ name: z.ZodNullable<z.ZodObject<{
1979
+ text: z.ZodString;
1980
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1981
+ }, z.core.$strip>>;
1982
+ beds: z.ZodNullable<z.ZodObject<{
1983
+ text: z.ZodString;
1984
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
1985
+ }, z.core.$strip>>;
1986
+ areaSqm: z.ZodNullable<z.ZodObject<{
1987
+ min: z.ZodNumber;
1988
+ max: z.ZodNumber;
1989
+ }, z.core.$strip>>;
1990
+ maxOccupancy: z.ZodNullable<z.ZodNumber>;
1991
+ window: z.ZodNullable<z.ZodType<(string & {}) | "yes" | "no" | "partial", unknown, z.core.$ZodTypeInternals<(string & {}) | "yes" | "no" | "partial", unknown>>>;
1992
+ }, z.core.$strip>;
1993
+ meals: z.ZodObject<{
1994
+ known: z.ZodBoolean;
1995
+ included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
1996
+ unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
1997
+ allInclusive: z.ZodNullable<z.ZodBoolean>;
1998
+ guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
1999
+ label: z.ZodNullable<z.ZodObject<{
2000
+ text: z.ZodString;
2001
+ locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
2002
+ }, z.core.$strip>>;
2003
+ }, z.core.$strip>;
3189
2004
  }, z.core.$strip>>;
3190
2005
  specialRequests: z.ZodNullable<z.ZodString>;
3191
- room: z.ZodObject<{
3192
- name: z.ZodNullable<z.ZodObject<{
3193
- text: z.ZodString;
3194
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
3195
- }, z.core.$strip>>;
3196
- beds: z.ZodNullable<z.ZodObject<{
3197
- text: z.ZodString;
3198
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
3199
- }, z.core.$strip>>;
3200
- }, z.core.$strip>;
3201
- meals: z.ZodObject<{
3202
- known: z.ZodBoolean;
3203
- included: z.ZodNullable<z.ZodArray<z.ZodType<(string & {}) | "breakfast" | "lunch" | "dinner", unknown, z.core.$ZodTypeInternals<(string & {}) | "breakfast" | "lunch" | "dinner", unknown>>>>;
3204
- unspecifiedMainMeals: z.ZodNullable<z.ZodNumber>;
3205
- allInclusive: z.ZodNullable<z.ZodBoolean>;
3206
- guestsCoveredPerRoom: z.ZodNullable<z.ZodNumber>;
3207
- label: z.ZodNullable<z.ZodObject<{
3208
- text: z.ZodString;
3209
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
3210
- }, z.core.$strip>>;
3211
- }, z.core.$strip>;
3212
2006
  cancellation: z.ZodObject<{
3213
2007
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
3214
- asOf: z.ZodString;
2008
+ readAt: z.ZodString;
3215
2009
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
3216
2010
  penalties: z.ZodArray<z.ZodObject<{
3217
2011
  startsAt: z.ZodNullable<z.ZodString>;
@@ -3219,69 +2013,31 @@ declare const orderList: z.ZodObject<{
3219
2013
  }, z.core.$strip>>;
3220
2014
  timeZone: z.ZodNullable<z.ZodString>;
3221
2015
  }, z.core.$strip>;
2016
+ confirmation: z.ZodNullable<z.ZodObject<{
2017
+ mode: z.ZodType<"unknown" | (string & {}) | "instant" | "on_request", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "instant" | "on_request", unknown>>;
2018
+ withinMinutes: z.ZodNullable<z.ZodNumber>;
2019
+ }, z.core.$strip>>;
3222
2020
  payAtProperty: z.ZodObject<{
3223
2021
  disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
3224
2022
  items: z.ZodArray<z.ZodObject<{
3225
- label: z.ZodNullable<z.ZodObject<{
3226
- text: z.ZodString;
3227
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
3228
- }, z.core.$strip>>;
2023
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
3229
2024
  amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
3230
2025
  mandatory: z.ZodBoolean;
3231
2026
  basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
3232
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
3233
2027
  }, z.core.$strip>>;
3234
2028
  }, z.core.$strip>;
3235
2029
  confirmationNumber: z.ZodNullable<z.ZodString>;
3236
2030
  }, z.core.$strip>;
3237
2031
  }, z.core.$strip>]>, unknown>>>;
3238
- price: z.ZodObject<{
3239
- total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3240
- }, z.core.$strip>;
2032
+ total: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3241
2033
  payment: z.ZodObject<{
3242
2034
  status: z.ZodType<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown, z.core.$ZodTypeInternals<(string & {}) | "unpaid" | "authorized" | "paid" | "released" | "refund_pending" | "refunded", unknown>>;
3243
2035
  url: z.ZodNullable<z.ZodString>;
3244
2036
  requiresSignIn: z.ZodBoolean;
3245
2037
  expiresAt: z.ZodNullable<z.ZodString>;
3246
- chargeCurrency: z.ZodString;
3247
2038
  localCurrencyAtCheckout: z.ZodBoolean;
3248
2039
  localCharge: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
3249
- methods: z.ZodArray<z.ZodType<OpenUnionOutput<"id", readonly [z.ZodObject<{
3250
- id: z.ZodLiteral<"stripe_shared_payment_token">;
3251
- handler: z.ZodObject<{
3252
- id: z.ZodString;
3253
- type: z.ZodString;
3254
- version: z.ZodString;
3255
- spec: z.ZodString;
3256
- schema: z.ZodString;
3257
- available_instruments: z.ZodArray<z.ZodObject<{
3258
- type: z.ZodString;
3259
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
3260
- }, z.core.$strip>>;
3261
- config: z.ZodObject<{
3262
- environment: z.ZodType<(string & {}) | "livemode" | "testmode", unknown, z.core.$ZodTypeInternals<(string & {}) | "livemode" | "testmode", unknown>>;
3263
- business_profile: z.ZodString;
3264
- }, z.core.$strip>;
3265
- }, z.core.$strip>;
3266
- limits: z.ZodObject<{
3267
- maxAmount: z.ZodNumber;
3268
- currency: z.ZodString;
3269
- expiresAt: z.ZodString;
3270
- }, z.core.$strip>;
3271
- }, z.core.$strip>, z.ZodObject<{
3272
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
3273
- open: z.ZodBoolean;
3274
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
3275
- wechatPay: z.ZodNullable<z.ZodObject<{
3276
- qrData: z.ZodNullable<z.ZodString>;
3277
- qrImageUrl: z.ZodNullable<z.ZodString>;
3278
- url: z.ZodString;
3279
- }, z.core.$strip>>;
3280
- alipay: z.ZodNullable<z.ZodObject<{
3281
- url: z.ZodString;
3282
- }, z.core.$strip>>;
3283
- }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"id", readonly [z.ZodObject<{
3284
- id: z.ZodLiteral<"stripe_shared_payment_token">;
2040
+ tokenRequest: z.ZodNullable<z.ZodObject<{
3285
2041
  handler: z.ZodObject<{
3286
2042
  id: z.ZodString;
3287
2043
  type: z.ZodString;
@@ -3297,39 +2053,36 @@ declare const orderList: z.ZodObject<{
3297
2053
  business_profile: z.ZodString;
3298
2054
  }, z.core.$strip>;
3299
2055
  }, z.core.$strip>;
3300
- limits: z.ZodObject<{
3301
- maxAmount: z.ZodNumber;
2056
+ usageLimits: z.ZodObject<{
2057
+ max_amount: z.ZodNumber;
3302
2058
  currency: z.ZodString;
3303
- expiresAt: z.ZodString;
2059
+ expires_at: z.ZodNumber;
3304
2060
  }, z.core.$strip>;
3305
- }, z.core.$strip>, z.ZodObject<{
3306
- id: z.ZodLiteral<"stripe_alipay_wechat_pay">;
3307
- open: z.ZodBoolean;
3308
- current: z.ZodNullable<z.ZodType<(string & {}) | "wechat_pay" | "alipay", unknown, z.core.$ZodTypeInternals<(string & {}) | "wechat_pay" | "alipay", unknown>>>;
3309
- wechatPay: z.ZodNullable<z.ZodObject<{
3310
- qrData: z.ZodNullable<z.ZodString>;
3311
- qrImageUrl: z.ZodNullable<z.ZodString>;
3312
- url: z.ZodString;
3313
- }, z.core.$strip>>;
3314
- alipay: z.ZodNullable<z.ZodObject<{
3315
- url: z.ZodString;
3316
- }, z.core.$strip>>;
3317
- }, z.core.$strip>]>, unknown>>>;
2061
+ }, z.core.$strip>>;
3318
2062
  }, z.core.$strip>;
3319
2063
  cancel: z.ZodObject<{
3320
- available: z.ZodBoolean;
3321
- reason: z.ZodType<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown, z.core.$ZodTypeInternals<(string & {}) | "non_refundable" | "needs_attention" | "unpaid" | "cancellable" | "already_cancelled" | "in_progress" | "not_confirmed" | "stay_started" | "refused" | "terms_unknown", unknown>>;
2064
+ action: z.ZodNullable<z.ZodType<"close" | (string & {}) | "cancel", unknown, z.core.$ZodTypeInternals<"close" | (string & {}) | "cancel", unknown>>>;
2065
+ blockedBy: z.ZodNullable<z.ZodType<(string & {}) | "expired" | "closed" | "confirming" | "failed" | "cancelling" | "needs_attention" | "payment_in_progress" | "website_checkout" | "already_cancelled" | "stay_started" | "cancellation_not_allowed" | "cancellation_refused" | "terms_unknown" | "support_only", unknown, z.core.$ZodTypeInternals<(string & {}) | "expired" | "closed" | "confirming" | "failed" | "cancelling" | "needs_attention" | "payment_in_progress" | "website_checkout" | "already_cancelled" | "stay_started" | "cancellation_not_allowed" | "cancellation_refused" | "terms_unknown" | "support_only", unknown>>>;
3322
2066
  penalty: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
3323
2067
  refund: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
3324
2068
  }, z.core.$strip>;
2069
+ cancelled: z.ZodNullable<z.ZodObject<{
2070
+ at: z.ZodString;
2071
+ penalty: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2072
+ refund: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
2073
+ }, z.core.$strip>>;
2074
+ failure: z.ZodNullable<z.ZodObject<{
2075
+ reason: z.ZodType<"unknown" | (string & {}) | "rate_unavailable" | "hotel_refused", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "rate_unavailable" | "hotel_refused", unknown>>;
2076
+ }, z.core.$strip>>;
3325
2077
  manageUrl: z.ZodString;
3326
2078
  }, z.core.$strip>>;
3327
2079
  nextCursor: z.ZodNullable<z.ZodString>;
3328
2080
  }, z.core.$strip>;
3329
2081
  type OrderList = z.infer<typeof orderList>;
3330
- /** One difference between an offer and the supplier's verify (§10.3). */
2082
+ /** One difference between an offer and the supplier's verify (§10.3);
2083
+ * `field` is the offer's key that changed. */
3331
2084
  declare const offerChange: z.ZodType<OpenUnionOutput<"field", readonly [z.ZodObject<{
3332
- field: z.ZodLiteral<"price">;
2085
+ field: z.ZodLiteral<"total">;
3333
2086
  previous: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3334
2087
  current: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3335
2088
  worse: z.ZodBoolean;
@@ -3362,7 +2115,7 @@ declare const offerChange: z.ZodType<OpenUnionOutput<"field", readonly [z.ZodObj
3362
2115
  field: z.ZodLiteral<"cancellation">;
3363
2116
  previous: z.ZodObject<{
3364
2117
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
3365
- asOf: z.ZodString;
2118
+ readAt: z.ZodString;
3366
2119
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
3367
2120
  penalties: z.ZodArray<z.ZodObject<{
3368
2121
  startsAt: z.ZodNullable<z.ZodString>;
@@ -3372,7 +2125,7 @@ declare const offerChange: z.ZodType<OpenUnionOutput<"field", readonly [z.ZodObj
3372
2125
  }, z.core.$strip>;
3373
2126
  current: z.ZodObject<{
3374
2127
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
3375
- asOf: z.ZodString;
2128
+ readAt: z.ZodString;
3376
2129
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
3377
2130
  penalties: z.ZodArray<z.ZodObject<{
3378
2131
  startsAt: z.ZodNullable<z.ZodString>;
@@ -3393,36 +2146,28 @@ declare const offerChange: z.ZodType<OpenUnionOutput<"field", readonly [z.ZodObj
3393
2146
  }, z.core.$strip>;
3394
2147
  worse: z.ZodBoolean;
3395
2148
  }, z.core.$strip>, z.ZodObject<{
3396
- field: z.ZodLiteral<"pay_at_property">;
2149
+ field: z.ZodLiteral<"payAtProperty">;
3397
2150
  previous: z.ZodObject<{
3398
2151
  disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
3399
2152
  items: z.ZodArray<z.ZodObject<{
3400
- label: z.ZodNullable<z.ZodObject<{
3401
- text: z.ZodString;
3402
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
3403
- }, z.core.$strip>>;
2153
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
3404
2154
  amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
3405
2155
  mandatory: z.ZodBoolean;
3406
2156
  basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
3407
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
3408
2157
  }, z.core.$strip>>;
3409
2158
  }, z.core.$strip>;
3410
2159
  current: z.ZodObject<{
3411
2160
  disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
3412
2161
  items: z.ZodArray<z.ZodObject<{
3413
- label: z.ZodNullable<z.ZodObject<{
3414
- text: z.ZodString;
3415
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
3416
- }, z.core.$strip>>;
2162
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
3417
2163
  amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
3418
2164
  mandatory: z.ZodBoolean;
3419
2165
  basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
3420
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
3421
2166
  }, z.core.$strip>>;
3422
2167
  }, z.core.$strip>;
3423
2168
  worse: z.ZodBoolean;
3424
2169
  }, z.core.$strip>]>, unknown, z.core.$ZodTypeInternals<OpenUnionOutput<"field", readonly [z.ZodObject<{
3425
- field: z.ZodLiteral<"price">;
2170
+ field: z.ZodLiteral<"total">;
3426
2171
  previous: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3427
2172
  current: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3428
2173
  worse: z.ZodBoolean;
@@ -3455,7 +2200,7 @@ declare const offerChange: z.ZodType<OpenUnionOutput<"field", readonly [z.ZodObj
3455
2200
  field: z.ZodLiteral<"cancellation">;
3456
2201
  previous: z.ZodObject<{
3457
2202
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
3458
- asOf: z.ZodString;
2203
+ readAt: z.ZodString;
3459
2204
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
3460
2205
  penalties: z.ZodArray<z.ZodObject<{
3461
2206
  startsAt: z.ZodNullable<z.ZodString>;
@@ -3465,7 +2210,7 @@ declare const offerChange: z.ZodType<OpenUnionOutput<"field", readonly [z.ZodObj
3465
2210
  }, z.core.$strip>;
3466
2211
  current: z.ZodObject<{
3467
2212
  status: z.ZodType<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "free" | "partial_penalty" | "non_refundable", unknown>>;
3468
- asOf: z.ZodString;
2213
+ readAt: z.ZodString;
3469
2214
  freeCancellationEndsAt: z.ZodNullable<z.ZodString>;
3470
2215
  penalties: z.ZodArray<z.ZodObject<{
3471
2216
  startsAt: z.ZodNullable<z.ZodString>;
@@ -3486,31 +2231,23 @@ declare const offerChange: z.ZodType<OpenUnionOutput<"field", readonly [z.ZodObj
3486
2231
  }, z.core.$strip>;
3487
2232
  worse: z.ZodBoolean;
3488
2233
  }, z.core.$strip>, z.ZodObject<{
3489
- field: z.ZodLiteral<"pay_at_property">;
2234
+ field: z.ZodLiteral<"payAtProperty">;
3490
2235
  previous: z.ZodObject<{
3491
2236
  disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
3492
2237
  items: z.ZodArray<z.ZodObject<{
3493
- label: z.ZodNullable<z.ZodObject<{
3494
- text: z.ZodString;
3495
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
3496
- }, z.core.$strip>>;
2238
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
3497
2239
  amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
3498
2240
  mandatory: z.ZodBoolean;
3499
2241
  basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
3500
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
3501
2242
  }, z.core.$strip>>;
3502
2243
  }, z.core.$strip>;
3503
2244
  current: z.ZodObject<{
3504
2245
  disclosure: z.ZodType<(string & {}) | "complete" | "incomplete", unknown, z.core.$ZodTypeInternals<(string & {}) | "complete" | "incomplete", unknown>>;
3505
2246
  items: z.ZodArray<z.ZodObject<{
3506
- label: z.ZodNullable<z.ZodObject<{
3507
- text: z.ZodString;
3508
- locale: z.ZodNullable<z.ZodType<"en" | "zh" | (string & {}), unknown, z.core.$ZodTypeInternals<"en" | "zh" | (string & {}), unknown>>>;
3509
- }, z.core.$strip>>;
2247
+ kind: z.ZodType<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown, z.core.$ZodTypeInternals<"unknown" | "other" | (string & {}) | "tax" | "resort_fee", unknown>>;
3510
2248
  amount: z.ZodNullable<z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>>;
3511
2249
  mandatory: z.ZodBoolean;
3512
2250
  basis: z.ZodType<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "per_stay" | "per_night" | "per_person" | "per_person_per_night", unknown>>;
3513
- collectedAt: z.ZodType<"unknown" | (string & {}) | "property", unknown, z.core.$ZodTypeInternals<"unknown" | (string & {}) | "property", unknown>>;
3514
2251
  }, z.core.$strip>>;
3515
2252
  }, z.core.$strip>;
3516
2253
  worse: z.ZodBoolean;
@@ -3536,7 +2273,6 @@ declare const place: z.ZodObject<{
3536
2273
  zh: z.ZodNullable<z.ZodString>;
3537
2274
  }, z.core.$strip>;
3538
2275
  kind: z.ZodType<"country" | (string & {}) | "region" | "district" | "settlement" | "neighbourhood" | "island", unknown, z.core.$ZodTypeInternals<"country" | (string & {}) | "region" | "district" | "settlement" | "neighbourhood" | "island", unknown>>;
3539
- scope: z.ZodType<(string & {}) | "area" | "radius", unknown, z.core.$ZodTypeInternals<(string & {}) | "area" | "radius", unknown>>;
3540
2276
  cityLike: z.ZodNullable<z.ZodBoolean>;
3541
2277
  population: z.ZodNullable<z.ZodNumber>;
3542
2278
  region: z.ZodNullable<z.ZodObject<{
@@ -3554,7 +2290,7 @@ declare const place: z.ZodObject<{
3554
2290
  }, z.core.$strip>;
3555
2291
  }, z.core.$strip>;
3556
2292
  type Place = z.infer<typeof place>;
3557
- declare const CENTER_BASES: readonly ["seat", "capital", "busiest_settlement", "hub", "point"];
2293
+ declare const CENTER_BASES: readonly ["seat", "capital", "busiest_settlement", "locality", "point"];
3558
2294
  /** A search's reference point and where it came from. */
3559
2295
  declare const center: z.ZodObject<{
3560
2296
  location: z.ZodObject<{
@@ -3569,16 +2305,48 @@ declare const center: z.ZodObject<{
3569
2305
  zh: z.ZodNullable<z.ZodString>;
3570
2306
  }, z.core.$strip>;
3571
2307
  }, z.core.$strip>>;
3572
- basis: z.ZodType<"point" | (string & {}) | "seat" | "capital" | "busiest_settlement" | "hub", unknown, z.core.$ZodTypeInternals<"point" | (string & {}) | "seat" | "capital" | "busiest_settlement" | "hub", unknown>>;
2308
+ basis: z.ZodType<"point" | "locality" | (string & {}) | "seat" | "capital" | "busiest_settlement", unknown, z.core.$ZodTypeInternals<"point" | "locality" | (string & {}) | "seat" | "capital" | "busiest_settlement", unknown>>;
3573
2309
  }, z.core.$strip>;
3574
2310
  type Center = z.infer<typeof center>;
3575
2311
 
3576
2312
  declare const SEARCH_NOTE_CODES: readonly ["indicative_prices", "prices_unavailable", "pool_limited", "amenities_listed_only", "place_resolved_dominant", "area_absorbed", "broad_area", "island_radius", "area_retired", "more_outside_radius", "more_elsewhere", "few_hotels_in_scope", "party_split_required", "no_results", "locality_available"];
3577
2313
  type SearchNoteCode = (typeof SEARCH_NOTE_CODES)[number];
3578
- /** An indicative (not bookable) price for one unit; only offers can be booked. */
2314
+ /**
2315
+ * The facts a note's words need that the search itself does not hold, by
2316
+ * code. A note of a code listed here may carry them as `details`; a server
2317
+ * may leave them out, and a note of any other code has none.
2318
+ */
2319
+ declare const SEARCH_NOTE_DETAILS: {
2320
+ area_absorbed: z.ZodObject<{
2321
+ places: z.ZodArray<z.ZodObject<{
2322
+ placeId: z.ZodString;
2323
+ name: z.ZodString;
2324
+ kind: z.ZodType<"country" | (string & {}) | "region" | "district" | "settlement" | "neighbourhood" | "island", unknown, z.core.$ZodTypeInternals<"country" | (string & {}) | "region" | "district" | "settlement" | "neighbourhood" | "island", unknown>>;
2325
+ }, z.core.$strip>>;
2326
+ }, z.core.$strip>;
2327
+ locality_available: z.ZodObject<{
2328
+ localityTotal: z.ZodNumber;
2329
+ }, z.core.$strip>;
2330
+ };
2331
+ type DetailedNoteCode = keyof typeof SEARCH_NOTE_DETAILS;
2332
+ /** A note of a search: `details` only on the codes that carry them, and
2333
+ * optional there. */
2334
+ type SearchNote = {
2335
+ [C in SearchNoteCode]: {
2336
+ code: C;
2337
+ message: string;
2338
+ } & (C extends DetailedNoteCode ? {
2339
+ details?: z.output<(typeof SEARCH_NOTE_DETAILS)[C]>;
2340
+ } : unknown);
2341
+ }[SearchNoteCode] | OpenFallback<"code">;
2342
+ /**
2343
+ * A note of a search, picked by `code`: `details` is that code's, and
2344
+ * optional. A code this build does not know falls back, with whatever it
2345
+ * carries.
2346
+ */
2347
+ declare const searchNote: z.ZodType<SearchNote>;
2348
+ /** An estimate from a price floor; only offers can be booked. */
3579
2349
  declare const indicativePrice: z.ZodObject<{
3580
- kind: z.ZodType<"indicative" | (string & {}), unknown, z.core.$ZodTypeInternals<"indicative" | (string & {}), unknown>>;
3581
- basis: z.ZodType<(string & {}) | "lowest_unit", unknown, z.core.$ZodTypeInternals<(string & {}) | "lowest_unit", unknown>>;
3582
2350
  fromPerRoomNight: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3583
2351
  fromPerRoomStay: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3584
2352
  }, z.core.$strip>;
@@ -3612,9 +2380,7 @@ declare const hotelSummary: z.ZodObject<{
3612
2380
  }, z.core.$strip>>;
3613
2381
  timeZone: z.ZodNullable<z.ZodString>;
3614
2382
  distanceMeters: z.ZodNullable<z.ZodNumber>;
3615
- price: z.ZodNullable<z.ZodObject<{
3616
- kind: z.ZodType<"indicative" | (string & {}), unknown, z.core.$ZodTypeInternals<"indicative" | (string & {}), unknown>>;
3617
- basis: z.ZodType<(string & {}) | "lowest_unit", unknown, z.core.$ZodTypeInternals<(string & {}) | "lowest_unit", unknown>>;
2383
+ indicativePrice: z.ZodNullable<z.ZodObject<{
3618
2384
  fromPerRoomNight: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3619
2385
  fromPerRoomStay: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3620
2386
  }, z.core.$strip>>;
@@ -3628,7 +2394,7 @@ declare const hotelSummary: z.ZodObject<{
3628
2394
  }, z.core.$strip>>;
3629
2395
  }, z.core.$strip>;
3630
2396
  type HotelSummary = z.infer<typeof hotelSummary>;
3631
- /** The top locality hubs of a scope (§7.6); also `search_too_broad` details. */
2397
+ /** The top localities of a scope (§7.6); also `search_too_broad` details. */
3632
2398
  declare const localities: z.ZodObject<{
3633
2399
  items: z.ZodArray<z.ZodObject<{
3634
2400
  place: z.ZodObject<{
@@ -3640,7 +2406,7 @@ declare const localities: z.ZodObject<{
3640
2406
  }, z.core.$strip>;
3641
2407
  }, z.core.$strip>;
3642
2408
  count: z.ZodNumber;
3643
- total: z.ZodNumber;
2409
+ localityTotal: z.ZodNumber;
3644
2410
  includes: z.ZodArray<z.ZodObject<{
3645
2411
  place: z.ZodObject<{
3646
2412
  placeId: z.ZodString;
@@ -3667,7 +2433,6 @@ declare const searchResult: z.ZodObject<{
3667
2433
  zh: z.ZodNullable<z.ZodString>;
3668
2434
  }, z.core.$strip>;
3669
2435
  kind: z.ZodType<"country" | (string & {}) | "region" | "district" | "settlement" | "neighbourhood" | "island", unknown, z.core.$ZodTypeInternals<"country" | (string & {}) | "region" | "district" | "settlement" | "neighbourhood" | "island", unknown>>;
3670
- scope: z.ZodType<(string & {}) | "area" | "radius", unknown, z.core.$ZodTypeInternals<(string & {}) | "area" | "radius", unknown>>;
3671
2436
  cityLike: z.ZodNullable<z.ZodBoolean>;
3672
2437
  population: z.ZodNullable<z.ZodNumber>;
3673
2438
  region: z.ZodNullable<z.ZodObject<{
@@ -3700,7 +2465,7 @@ declare const searchResult: z.ZodObject<{
3700
2465
  zh: z.ZodNullable<z.ZodString>;
3701
2466
  }, z.core.$strip>;
3702
2467
  }, z.core.$strip>>;
3703
- basis: z.ZodType<"point" | (string & {}) | "seat" | "capital" | "busiest_settlement" | "hub", unknown, z.core.$ZodTypeInternals<"point" | (string & {}) | "seat" | "capital" | "busiest_settlement" | "hub", unknown>>;
2468
+ basis: z.ZodType<"point" | "locality" | (string & {}) | "seat" | "capital" | "busiest_settlement", unknown, z.core.$ZodTypeInternals<"point" | "locality" | (string & {}) | "seat" | "capital" | "busiest_settlement", unknown>>;
3704
2469
  }, z.core.$strip>;
3705
2470
  radiusMeters: z.ZodNullable<z.ZodNumber>;
3706
2471
  radiusSource: z.ZodNullable<z.ZodType<"default" | (string & {}) | "requested", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "requested", unknown>>>;
@@ -3719,7 +2484,7 @@ declare const searchResult: z.ZodObject<{
3719
2484
  zh: z.ZodNullable<z.ZodString>;
3720
2485
  }, z.core.$strip>;
3721
2486
  }, z.core.$strip>>;
3722
- basis: z.ZodType<"point" | (string & {}) | "seat" | "capital" | "busiest_settlement" | "hub", unknown, z.core.$ZodTypeInternals<"point" | (string & {}) | "seat" | "capital" | "busiest_settlement" | "hub", unknown>>;
2487
+ basis: z.ZodType<"point" | "locality" | (string & {}) | "seat" | "capital" | "busiest_settlement", unknown, z.core.$ZodTypeInternals<"point" | "locality" | (string & {}) | "seat" | "capital" | "busiest_settlement", unknown>>;
3723
2488
  }, z.core.$strip>;
3724
2489
  scope: z.ZodType<(string & {}) | "radius", unknown, z.core.$ZodTypeInternals<(string & {}) | "radius", unknown>>;
3725
2490
  radiusMeters: z.ZodNumber;
@@ -3734,7 +2499,6 @@ declare const searchResult: z.ZodObject<{
3734
2499
  zh: z.ZodNullable<z.ZodString>;
3735
2500
  }, z.core.$strip>;
3736
2501
  kind: z.ZodType<"country" | (string & {}) | "region" | "district" | "settlement" | "neighbourhood" | "island", unknown, z.core.$ZodTypeInternals<"country" | (string & {}) | "region" | "district" | "settlement" | "neighbourhood" | "island", unknown>>;
3737
- scope: z.ZodType<(string & {}) | "area" | "radius", unknown, z.core.$ZodTypeInternals<(string & {}) | "area" | "radius", unknown>>;
3738
2502
  cityLike: z.ZodNullable<z.ZodBoolean>;
3739
2503
  population: z.ZodNullable<z.ZodNumber>;
3740
2504
  region: z.ZodNullable<z.ZodObject<{
@@ -3767,7 +2531,7 @@ declare const searchResult: z.ZodObject<{
3767
2531
  zh: z.ZodNullable<z.ZodString>;
3768
2532
  }, z.core.$strip>;
3769
2533
  }, z.core.$strip>>;
3770
- basis: z.ZodType<"point" | (string & {}) | "seat" | "capital" | "busiest_settlement" | "hub", unknown, z.core.$ZodTypeInternals<"point" | (string & {}) | "seat" | "capital" | "busiest_settlement" | "hub", unknown>>;
2534
+ basis: z.ZodType<"point" | "locality" | (string & {}) | "seat" | "capital" | "busiest_settlement", unknown, z.core.$ZodTypeInternals<"point" | "locality" | (string & {}) | "seat" | "capital" | "busiest_settlement", unknown>>;
3771
2535
  }, z.core.$strip>;
3772
2536
  radiusMeters: z.ZodNullable<z.ZodNumber>;
3773
2537
  radiusSource: z.ZodNullable<z.ZodType<"default" | (string & {}) | "requested", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "requested", unknown>>>;
@@ -3786,16 +2550,13 @@ declare const searchResult: z.ZodObject<{
3786
2550
  zh: z.ZodNullable<z.ZodString>;
3787
2551
  }, z.core.$strip>;
3788
2552
  }, z.core.$strip>>;
3789
- basis: z.ZodType<"point" | (string & {}) | "seat" | "capital" | "busiest_settlement" | "hub", unknown, z.core.$ZodTypeInternals<"point" | (string & {}) | "seat" | "capital" | "busiest_settlement" | "hub", unknown>>;
2553
+ basis: z.ZodType<"point" | "locality" | (string & {}) | "seat" | "capital" | "busiest_settlement", unknown, z.core.$ZodTypeInternals<"point" | "locality" | (string & {}) | "seat" | "capital" | "busiest_settlement", unknown>>;
3790
2554
  }, z.core.$strip>;
3791
2555
  scope: z.ZodType<(string & {}) | "radius", unknown, z.core.$ZodTypeInternals<(string & {}) | "radius", unknown>>;
3792
2556
  radiusMeters: z.ZodNumber;
3793
2557
  radiusSource: z.ZodType<"default" | (string & {}) | "requested", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "requested", unknown>>;
3794
2558
  }, z.core.$strip>]>, unknown>>>;
3795
- text: z.ZodNullable<z.ZodObject<{
3796
- value: z.ZodString;
3797
- match: z.ZodType<"exact" | (string & {}), unknown, z.core.$ZodTypeInternals<"exact" | (string & {}), unknown>>;
3798
- }, z.core.$strip>>;
2559
+ text: z.ZodNullable<z.ZodString>;
3799
2560
  stay: z.ZodNullable<z.ZodObject<{
3800
2561
  checkIn: z.ZodString;
3801
2562
  checkOut: z.ZodString;
@@ -3806,7 +2567,7 @@ declare const searchResult: z.ZodObject<{
3806
2567
  }, z.core.$strip>>;
3807
2568
  pricing: z.ZodObject<{
3808
2569
  mode: z.ZodType<"indicative" | "none" | (string & {}), unknown, z.core.$ZodTypeInternals<"indicative" | "none" | (string & {}), unknown>>;
3809
- scope: z.ZodNullable<z.ZodType<"pool" | (string & {}) | "page", unknown, z.core.$ZodTypeInternals<"pool" | (string & {}) | "page", unknown>>>;
2570
+ covers: z.ZodNullable<z.ZodType<"pool" | (string & {}) | "page", unknown, z.core.$ZodTypeInternals<"pool" | (string & {}) | "page", unknown>>>;
3810
2571
  status: z.ZodNullable<z.ZodType<(string & {}) | "ok" | "unavailable", unknown, z.core.$ZodTypeInternals<(string & {}) | "ok" | "unavailable", unknown>>>;
3811
2572
  }, z.core.$strip>;
3812
2573
  sort: z.ZodType<"distance" | "relevance" | "stars_desc" | "price_asc" | "price_desc" | (string & {}), unknown, z.core.$ZodTypeInternals<"distance" | "relevance" | "stars_desc" | "price_asc" | "price_desc" | (string & {}), unknown>>;
@@ -3830,7 +2591,7 @@ declare const searchResult: z.ZodObject<{
3830
2591
  }, z.core.$strip>;
3831
2592
  }, z.core.$strip>;
3832
2593
  count: z.ZodNumber;
3833
- total: z.ZodNumber;
2594
+ localityTotal: z.ZodNumber;
3834
2595
  includes: z.ZodArray<z.ZodObject<{
3835
2596
  place: z.ZodObject<{
3836
2597
  placeId: z.ZodString;
@@ -3848,7 +2609,7 @@ declare const searchResult: z.ZodObject<{
3848
2609
  }, z.core.$strip>>;
3849
2610
  nameAsText: z.ZodNullable<z.ZodNumber>;
3850
2611
  }, z.core.$strip>;
3851
- currencyHint: z.ZodOptional<z.ZodObject<{
2612
+ currencyHint: z.ZodNullable<z.ZodObject<{
3852
2613
  currency: z.ZodType<"CNY" | (string & {}), unknown, z.core.$ZodTypeInternals<"CNY" | (string & {}), unknown>>;
3853
2614
  reason: z.ZodType<(string & {}) | "request_location" | "sign_in_location", unknown, z.core.$ZodTypeInternals<(string & {}) | "request_location" | "sign_in_location", unknown>>;
3854
2615
  }, z.core.$strip>>;
@@ -3881,9 +2642,7 @@ declare const searchResult: z.ZodObject<{
3881
2642
  }, z.core.$strip>>;
3882
2643
  timeZone: z.ZodNullable<z.ZodString>;
3883
2644
  distanceMeters: z.ZodNullable<z.ZodNumber>;
3884
- price: z.ZodNullable<z.ZodObject<{
3885
- kind: z.ZodType<"indicative" | (string & {}), unknown, z.core.$ZodTypeInternals<"indicative" | (string & {}), unknown>>;
3886
- basis: z.ZodType<(string & {}) | "lowest_unit", unknown, z.core.$ZodTypeInternals<(string & {}) | "lowest_unit", unknown>>;
2645
+ indicativePrice: z.ZodNullable<z.ZodObject<{
3887
2646
  fromPerRoomNight: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3888
2647
  fromPerRoomStay: z.ZodType<Money, unknown, z.core.$ZodTypeInternals<Money, unknown>>;
3889
2648
  }, z.core.$strip>>;
@@ -3897,10 +2656,7 @@ declare const searchResult: z.ZodObject<{
3897
2656
  }, z.core.$strip>>;
3898
2657
  }, z.core.$strip>>;
3899
2658
  nextCursor: z.ZodNullable<z.ZodString>;
3900
- notes: z.ZodArray<z.ZodObject<{
3901
- code: z.ZodType<(string & {}) | "indicative_prices" | "prices_unavailable" | "pool_limited" | "amenities_listed_only" | "place_resolved_dominant" | "area_absorbed" | "broad_area" | "island_radius" | "area_retired" | "more_outside_radius" | "more_elsewhere" | "few_hotels_in_scope" | "party_split_required" | "no_results" | "locality_available", unknown, z.core.$ZodTypeInternals<(string & {}) | "indicative_prices" | "prices_unavailable" | "pool_limited" | "amenities_listed_only" | "place_resolved_dominant" | "area_absorbed" | "broad_area" | "island_radius" | "area_retired" | "more_outside_radius" | "more_elsewhere" | "few_hotels_in_scope" | "party_split_required" | "no_results" | "locality_available", unknown>>;
3902
- message: z.ZodString;
3903
- }, z.core.$strip>>;
2659
+ notes: z.ZodArray<z.ZodType<SearchNote, unknown, z.core.$ZodTypeInternals<SearchNote, unknown>>>;
3904
2660
  }, z.core.$strip>;
3905
2661
  type SearchResult = z.infer<typeof searchResult>;
3906
2662
 
@@ -3917,7 +2673,7 @@ declare const API: {
3917
2673
  readonly hotelOffers: "/v1/hotels/offers";
3918
2674
  readonly orders: "/v1/orders";
3919
2675
  readonly hotel: (id: string, opts?: {
3920
- rooms?: boolean;
2676
+ roomTypes?: boolean;
3921
2677
  locale?: "en" | "zh";
3922
2678
  }) => string;
3923
2679
  readonly order: (id: string, opts?: {
@@ -3958,10 +2714,11 @@ declare const ACCOUNT_ROUTES: {
3958
2714
  * the query fields that are set. */
3959
2715
  declare function routePath(route: HttpRoute, input: Record<string, unknown>): string;
3960
2716
 
3961
- /** A `rate_limited` error names the limit that was hit by this scope. */
3962
- type RateLimitScope = NonNullable<ErrorBody<"rate_limited">["details"]>["scope"];
3963
- /** Requests one token may make per scope in a window. */
3964
- declare const RATE_LIMITS: Record<RateLimitScope, {
2717
+ /** The name of a rate limit: a `rate_limited` error names the one that was
2718
+ * hit as `details.rateLimit`. */
2719
+ type RateLimitName = NonNullable<ErrorBody<"rate_limited">["details"]>["rateLimit"];
2720
+ /** Requests one token may make against each rate limit in a window. */
2721
+ declare const RATE_LIMITS: Record<RateLimitName, {
3965
2722
  limit: number;
3966
2723
  windowSeconds: number;
3967
2724
  }>;
@@ -3973,28 +2730,40 @@ declare function renderError(envelope: unknown, status?: number, surface?: Rende
3973
2730
 
3974
2731
  type RenderedTool = ToolName;
3975
2732
  /**
3976
- * Renders `data`, the answer of `tool`, after parsing it with the tool's
3977
- * open output schema: unknown fields are ignored and unknown values shown
3978
- * as they came. A result that does not parse is shown as JSON, never thrown.
3979
- * The consent rule (`ORDER_NEXT_STEP`) is the last paragraph whenever the
3980
- * result holds a non-null `payment.url`; the pay rule (`PAY_NEXT_STEP`)
3981
- * follows it when a result holds an order whose `payment.methods` has the
3982
- * `stripe_shared_payment_token` entry; the wallet rule (`WALLET_NEXT_STEP`)
3983
- * follows that when it holds an order whose `stripe_alipay_wechat_pay` entry
3984
- * is not open;
3985
- * the cancel rule (`CANCEL_NEXT_STEP`) follows it when a `get_order` or
3986
- * `list_orders` result holds an order with `cancel.available`, other than
3987
- * an unpaid one (`cancel.reason` `unpaid`), which is closed with no
3988
- * penalty. `surface` names the next calls: tools (`mcp`, the default) or
3989
- * commands (`cli`).
2733
+ * The whole model-facing text of `data`, the answer of `tool`, on `surface`:
2734
+ * tools (`mcp`, the default) or commands (`cli`). Whoever sends it adds
2735
+ * nothing: the hosted server and the CLI's bridge send this as the result's
2736
+ * one text block.
2737
+ *
2738
+ * `data` is parsed with the tool's open output schema: unknown fields are
2739
+ * ignored, and an unknown value is shown as it came only when it reads as a
2740
+ * code. A result that does not parse is shown as JSON, never thrown. A list
2741
+ * of orders degrades per order: one that does not parse is JSON on its one
2742
+ * line, and the others are shown in full. An optional part that does not
2743
+ * parse costs neither: a note's details, and what an order says of a
2744
+ * cancellation, a failure or a token request, are then read as not there
2745
+ * (`readableSearch`, `readableOrder`).
2746
+ *
2747
+ * After the data come the rules it governs, each a paragraph, last:
2748
+ * - the cancel rule (`cancelNextStep`) when a result holds an order that can
2749
+ * be cancelled now (one that can be closed carries none: closing has no
2750
+ * penalty), for every order tool but `create_order`, whose answer is an
2751
+ * order just made or made before, not one read to cancel;
2752
+ * - then the consent rule (`ORDER_NEXT_STEP`) whenever the result holds a
2753
+ * payment link, whichever tool answered, so that it ends the text; only
2754
+ * the pay rule (`payNextStep`) follows it, when an order has a "Pay
2755
+ * without the link" line, and that one repeats it;
2756
+ * - on MCP, how to present hotels (`PRESENTATION_HINT`) for `search_hotels`,
2757
+ * `get_hotel` and `get_hotel_offers`. The CLI's text carries none: there
2758
+ * the rule is the skill's, as before.
3990
2759
  */
3991
2760
  declare function renderToolResult(tool: RenderedTool, data: unknown, surface?: RenderSurface): string;
3992
2761
 
3993
2762
  /** Amenity codes a search can filter by (§7.7), in the order they are listed. */
3994
2763
  declare const FILTERABLE_AMENITIES: readonly ["parking", "wifi", "laundry", "restaurant", "room_service", "bar", "non_smoking", "business_center", "pool"];
3995
2764
  /** Every amenity code a response can carry: the filterable ones, then the
3996
- * response-only ones and `other`. A search that filters by a response-only
3997
- * code is refused by the service with details (§7.7). */
2765
+ * response-only ones and `other`. A search takes only the filterable ones
2766
+ * as a filter. */
3998
2767
  declare const AMENITY_CODES: readonly ["parking", "wifi", "laundry", "restaurant", "room_service", "bar", "non_smoking", "business_center", "pool", "airport_shuttle", "spa", "gym", "accessible", "ev_charging", "air_conditioning", "pets_allowed", "kitchen", "other"];
3999
2768
  type FilterableAmenity = (typeof FILTERABLE_AMENITIES)[number];
4000
2769
  type AmenityCode = (typeof AMENITY_CODES)[number];
@@ -4008,7 +2777,7 @@ declare const SEARCH_RULES: {
4008
2777
  readonly largeSettlementPopulation: 50000;
4009
2778
  readonly dominanceRatio: 100;
4010
2779
  readonly nearDuplicateMeters: 5000;
4011
- readonly hubIncludes: 3;
2780
+ readonly localityIncludes: 3;
4012
2781
  };
4013
2782
  /** How `POST /v1/orders` answers a success: `201` for a new order, `200` with the header for a replay. */
4014
2783
  declare const ORDER_HTTP: {
@@ -4025,4 +2794,4 @@ declare const ME_SCOPES: {
4025
2794
  /** The contract's version, from package.json, the one place a release bumps it. */
4026
2795
  declare const CONTRACT_VERSION: string;
4027
2796
 
4028
- export { ACCOUNT_ROUTES, AMENITY_CODES, API, type AmenityCode, type AuthConfig, CANCEL_NEXT_STEP, CANCEL_REASONS, CARD_NUMBER_MESSAGE, CENTER_BASES, COMMANDS, COMMAND_GROUPS, CONTRACT_VERSION, CREDENTIAL_INVALID_REASONS, CURRENCIES, type CancelOrderInput, type CancelReason, type Center, type CommandGroupSpec, type CommandSpec, type CreateOrderInput, type CredentialInvalidReason, type Currency, DOCS_ORIGIN, type Destination, ERROR_CODES, ERROR_DETAILS, type ErrorBody, type ErrorCode, type ErrorEnvelope, FILTERABLE_AMENITIES, type FilterableAmenity, type FlagSpec, GLOBAL_FLAGS, type GetHotelInput, type GetOrderInput, type GuideSurface, type GuideTopic, HTTP_ROUTES, type Hotel, type HotelOffersInput, type HotelOffersResult, type HotelSummary, type HttpRoute, type HttpToolName, type IndicativePrice, type KnownErrorBody, LIMITS, type ListOrdersInput, MCP_OUTPUT, MCP_PATH, MCP_SERVER_URL, ME_SCOPES, type MeResult, type Money, ORDER_HTTP, ORDER_NEXT_STEP, ORDER_STATUSES, type Offer, type OfferChange, type Omitted, type OptionSpec, type Order, type OrderList, type OrderStatus, PAYMENT_METHOD_IDS, PAYMENT_STATUSES, PAY_INPUT_WAYS, PAY_NEXT_STEP, PAY_WAYS, PLACE_KINDS, POLICY_TOPICS, PRESENTATION_HINT, PUBLIC_ORIGINS, type PayOrderInput, type PayWay, type PaymentHandler, type PaymentMethod, type PaymentMethodId, type PaymentStatus, type Place, type PlaceRef, type PolicyTopic, type PositionalSpec, RATE_LIMITS, REPOSITORY_URL, type RateLimitScope, type RenderSurface, type RenderedTool, SEARCH_NOTE_CODES, SEARCH_RULES, SEARCH_SORTS, SKILL_INSTALL_COMMAND, SUPPLIER_OUTCOME_STATUS, SUPPORT_EMAIL, type SearchHotelsInput, type SearchNoteCode, type SearchResult, type Stay, TOOLS, type ToolName, type ToolSpec, UNAVAILABLE_REASONS, UNKNOWN_IS_NOT_NO_EXEMPTIONS, WALLET_NEXT_STEP, addIsoDateDays, authConfig, cancelNextStep, cancelOrderInput, cancellation, center, commandInvocation, confirmation, containsCardNumber, countIsoDateDays, createOrderInput, createSearchHotelsInput, destination, errorEnvelope, flag, formatMoney, getHotelInput, getOrderInput, hotel, hotelId, hotelOffersInput, hotelOffersResult, hotelSummary, indicativePrice, instant, isIsoDate, knownLocaleText, latLng, listOrdersInput, localDate, localTime, localities, localizedText, meResult, meals, money, names, nonEmpty, offer, offerChange, offerId, omitted, oneOf, openEnum, openObject, openUnion, order, orderId, orderList, orderReference, parseOpen, payAtProperty, payNextStep, payOrderInput, paymentHandler, paymentMethod, photo, place, placeId, placeRef, protocolObject, renderError, renderGuide, renderToolResult, requestMoney, roomFacts, routePath, searchHotelsInput, searchResult, sharedPaymentTokenOf, stay, stayEcho, strictInput, strictOutput, text, timeZone, walletNextStep, wholeNumber };
2797
+ export { ACCOUNT_ROUTES, AMENITY_CODES, API, type AmenityCode, type AuthConfig, CANCEL_ACTIONS, CANCEL_BLOCKERS, CANCEL_NEXT_STEP, CARD_NUMBER_MESSAGE, CENTER_BASES, COMMANDS, COMMAND_GROUPS, CONTRACT_VERSION, CREDENTIAL_INVALID_REASONS, CURRENCIES, type CancelAction, type CancelBlocker, type CancelOrderInput, type Center, type CommandGroupSpec, type CommandSpec, type CreateOrderInput, type CredentialInvalidReason, type Currency, DOCS_ORIGIN, type Destination, ERROR_CODES, ERROR_DETAILS, type ErrorBody, type ErrorCode, type ErrorEnvelope, FAILURE_REASONS, FEE_KINDS, FILTERABLE_AMENITIES, type FailureReason, type FeeKind, type FilterableAmenity, type FlagSpec, GLOBAL_FLAGS, type GetHotelInput, type GetOrderInput, type GuideSurface, type GuideTopic, HTTP_ROUTES, type Hotel, type HotelOffersInput, type HotelOffersResult, type HotelSummary, type HttpRoute, type HttpToolName, type IndicativePrice, type KnownErrorBody, LIMITS, type ListOrdersInput, MCP_PATH, MCP_SERVER_URL, META_KEYS, ME_SCOPES, type MeResult, type MisplacedKey, type Money, ORDER_HTTP, ORDER_NEXT_STEP, ORDER_STATUSES, type Offer, type OfferChange, type Omitted, type OptionSpec, type Order, type OrderCancel, type OrderList, type OrderStatus, PAYMENT_METHOD_UNAVAILABLE_REASONS, PAYMENT_STATUSES, PAY_NEXT_STEP, PAY_WAYS, PLACE_KINDS, POLICY_TOPICS, PRESENTATION_HINT, PUBLIC_ORIGINS, type PayOrderInput, type PayWay, type PaymentHandler, type PaymentMethodUnavailableReason, type PaymentStatus, type Place, type PlaceRef, type PolicyTopic, type PositionalSpec, RATE_LIMITS, REPOSITORY_URL, type RateLimitName, type RenderSurface, type RenderedTool, type RoomType, SEARCH_NOTE_CODES, SEARCH_NOTE_DETAILS, SEARCH_RULES, SEARCH_SORTS, SERVER_INFO, SKILL_INSTALL_COMMAND, SUPPLIER_OUTCOME_STATUS, SUPPORT_EMAIL, type SearchHotelsInput, type SearchNote, type SearchNoteCode, type SearchResult, type Stay, TOOLS, type TokenUsageLimits, type ToolName, type ToolSpec, UNAVAILABLE_REASONS, UNKNOWN_IS_NOT_NO_EXEMPTIONS, addIsoDateDays, authConfig, cancelNextStep, cancelOrderInput, cancellation, center, commandInvocation, confirmation, containsCardNumber, countIsoDateDays, createOrderInput, createSearchHotelsInput, destination, errorEnvelope, flag, formatMoney, getHotelInput, getOrderInput, hotel, hotelId, hotelOffersInput, hotelOffersResult, hotelSummary, indicativePrice, instant, isIsoDate, knownLocaleText, latLng, listOrdersInput, localDate, localTime, localities, localizedText, meResult, meals, misplacedKeyHint, misplacedKeys, money, names, nonEmpty, offer, offerChange, offerId, offersPerHotel, omitted, oneOf, openEnum, openObject, openUnion, order, orderCancel, orderId, orderList, orderReference, parseOpen, payAtProperty, payNextStep, payOrderInput, paymentHandler, photo, place, placeId, placeRef, protocolObject, renderError, renderGuide, renderToolResult, requestMoney, roomType, routePath, searchHotelsInput, searchNote, searchResult, stay, stayEcho, strictInput, strictOutput, text, timeZone, tokenUsageLimits, unknownFieldsMessage, wholeNumber };