@curless/hotel-storefront 0.84.8 → 0.86.0

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 (229) hide show
  1. package/dist/config.d.ts +35 -2
  2. package/dist/config.d.ts.map +1 -1
  3. package/dist/config.js.map +1 -1
  4. package/dist/huazhu/ari-sync.d.ts +93 -6
  5. package/dist/huazhu/ari-sync.d.ts.map +1 -1
  6. package/dist/huazhu/ari-sync.js +303 -28
  7. package/dist/huazhu/ari-sync.js.map +1 -1
  8. package/dist/huazhu/backend.d.ts +9 -0
  9. package/dist/huazhu/backend.d.ts.map +1 -1
  10. package/dist/huazhu/backend.js +62 -22
  11. package/dist/huazhu/backend.js.map +1 -1
  12. package/dist/huazhu/catalog.d.ts +58 -1
  13. package/dist/huazhu/catalog.d.ts.map +1 -1
  14. package/dist/huazhu/catalog.js +318 -15
  15. package/dist/huazhu/catalog.js.map +1 -1
  16. package/dist/huazhu/live-asks.d.ts +63 -0
  17. package/dist/huazhu/live-asks.d.ts.map +1 -0
  18. package/dist/huazhu/live-asks.js +127 -0
  19. package/dist/huazhu/live-asks.js.map +1 -0
  20. package/dist/huazhu/make.d.ts.map +1 -1
  21. package/dist/huazhu/make.js +50 -4
  22. package/dist/huazhu/make.js.map +1 -1
  23. package/dist/server.d.ts +1 -1
  24. package/dist/server.js +1 -1
  25. package/dist/tools/accept-terms.d.ts +4 -0
  26. package/dist/tools/accept-terms.d.ts.map +1 -0
  27. package/dist/tools/accept-terms.js +26 -0
  28. package/dist/tools/accept-terms.js.map +1 -0
  29. package/dist/tools/add-booking-addon.d.ts +4 -0
  30. package/dist/tools/add-booking-addon.d.ts.map +1 -0
  31. package/dist/tools/add-booking-addon.js +44 -0
  32. package/dist/tools/add-booking-addon.js.map +1 -0
  33. package/dist/tools/add-to-trip.d.ts +4 -0
  34. package/dist/tools/add-to-trip.d.ts.map +1 -0
  35. package/dist/tools/add-to-trip.js +49 -0
  36. package/dist/tools/add-to-trip.js.map +1 -0
  37. package/dist/tools/all-tools.d.ts +1342 -0
  38. package/dist/tools/all-tools.d.ts.map +1 -0
  39. package/dist/tools/all-tools.js +954 -0
  40. package/dist/tools/all-tools.js.map +1 -0
  41. package/dist/tools/answer.d.ts +3 -0
  42. package/dist/tools/answer.d.ts.map +1 -0
  43. package/dist/tools/answer.js +104 -0
  44. package/dist/tools/answer.js.map +1 -0
  45. package/dist/tools/args.d.ts +149 -0
  46. package/dist/tools/args.d.ts.map +1 -0
  47. package/dist/tools/args.js +176 -0
  48. package/dist/tools/args.js.map +1 -0
  49. package/dist/tools/base-output-schemas.d.ts +3 -0
  50. package/dist/tools/base-output-schemas.d.ts.map +1 -0
  51. package/dist/tools/base-output-schemas.js +380 -0
  52. package/dist/tools/base-output-schemas.js.map +1 -0
  53. package/dist/tools/book-picked.d.ts +4 -0
  54. package/dist/tools/book-picked.d.ts.map +1 -0
  55. package/dist/tools/book-picked.js +14 -0
  56. package/dist/tools/book-picked.js.map +1 -0
  57. package/dist/tools/booking-answer.d.ts +24 -0
  58. package/dist/tools/booking-answer.d.ts.map +1 -0
  59. package/dist/tools/booking-answer.js +485 -0
  60. package/dist/tools/booking-answer.js.map +1 -0
  61. package/dist/tools/buy-shop-item.d.ts +4 -0
  62. package/dist/tools/buy-shop-item.d.ts.map +1 -0
  63. package/dist/tools/buy-shop-item.js +45 -0
  64. package/dist/tools/buy-shop-item.js.map +1 -0
  65. package/dist/tools/call.d.ts +11 -0
  66. package/dist/tools/call.d.ts.map +1 -0
  67. package/dist/tools/call.js +2 -0
  68. package/dist/tools/call.js.map +1 -0
  69. package/dist/tools/cancel-facts.d.ts +281 -0
  70. package/dist/tools/cancel-facts.d.ts.map +1 -0
  71. package/dist/tools/cancel-facts.js +309 -0
  72. package/dist/tools/cancel-facts.js.map +1 -0
  73. package/dist/tools/cancel.d.ts +4 -0
  74. package/dist/tools/cancel.d.ts.map +1 -0
  75. package/dist/tools/cancel.js +364 -0
  76. package/dist/tools/cancel.js.map +1 -0
  77. package/dist/tools/card-addons.d.ts +4 -0
  78. package/dist/tools/card-addons.d.ts.map +1 -0
  79. package/dist/tools/card-addons.js +76 -0
  80. package/dist/tools/card-addons.js.map +1 -0
  81. package/dist/tools/change-booking.d.ts +4 -0
  82. package/dist/tools/change-booking.d.ts.map +1 -0
  83. package/dist/tools/change-booking.js +145 -0
  84. package/dist/tools/change-booking.js.map +1 -0
  85. package/dist/tools/clear-trip.d.ts +4 -0
  86. package/dist/tools/clear-trip.d.ts.map +1 -0
  87. package/dist/tools/clear-trip.js +10 -0
  88. package/dist/tools/clear-trip.js.map +1 -0
  89. package/dist/tools/compare.d.ts +4 -0
  90. package/dist/tools/compare.d.ts.map +1 -0
  91. package/dist/tools/compare.js +114 -0
  92. package/dist/tools/compare.js.map +1 -0
  93. package/dist/tools/current-trip.d.ts +70 -0
  94. package/dist/tools/current-trip.d.ts.map +1 -0
  95. package/dist/tools/current-trip.js +261 -0
  96. package/dist/tools/current-trip.js.map +1 -0
  97. package/dist/tools/deps.d.ts +229 -0
  98. package/dist/tools/deps.d.ts.map +1 -0
  99. package/dist/tools/deps.js +2 -0
  100. package/dist/tools/deps.js.map +1 -0
  101. package/dist/tools/follow-ups.d.ts +120 -0
  102. package/dist/tools/follow-ups.d.ts.map +1 -0
  103. package/dist/tools/follow-ups.js +369 -0
  104. package/dist/tools/follow-ups.js.map +1 -0
  105. package/dist/tools/forget-preferences.d.ts +4 -0
  106. package/dist/tools/forget-preferences.d.ts.map +1 -0
  107. package/dist/tools/forget-preferences.js +24 -0
  108. package/dist/tools/forget-preferences.js.map +1 -0
  109. package/dist/tools/get-hotel.d.ts +4 -0
  110. package/dist/tools/get-hotel.d.ts.map +1 -0
  111. package/dist/tools/get-hotel.js +324 -0
  112. package/dist/tools/get-hotel.js.map +1 -0
  113. package/dist/tools/hotel-choices.d.ts +132 -0
  114. package/dist/tools/hotel-choices.d.ts.map +1 -0
  115. package/dist/tools/hotel-choices.js +558 -0
  116. package/dist/tools/hotel-choices.js.map +1 -0
  117. package/dist/tools/itinerary.d.ts +4 -0
  118. package/dist/tools/itinerary.d.ts.map +1 -0
  119. package/dist/tools/itinerary.js +148 -0
  120. package/dist/tools/itinerary.js.map +1 -0
  121. package/dist/tools/list-booking-addons.d.ts +4 -0
  122. package/dist/tools/list-booking-addons.d.ts.map +1 -0
  123. package/dist/tools/list-booking-addons.js +21 -0
  124. package/dist/tools/list-booking-addons.js.map +1 -0
  125. package/dist/tools/list-bookings.d.ts +4 -0
  126. package/dist/tools/list-bookings.d.ts.map +1 -0
  127. package/dist/tools/list-bookings.js +119 -0
  128. package/dist/tools/list-bookings.js.map +1 -0
  129. package/dist/tools/list-extras.d.ts +4 -0
  130. package/dist/tools/list-extras.d.ts.map +1 -0
  131. package/dist/tools/list-extras.js +90 -0
  132. package/dist/tools/list-extras.js.map +1 -0
  133. package/dist/tools/list-hotels.d.ts +4 -0
  134. package/dist/tools/list-hotels.d.ts.map +1 -0
  135. package/dist/tools/list-hotels.js +891 -0
  136. package/dist/tools/list-hotels.js.map +1 -0
  137. package/dist/tools/list-shop-items.d.ts +4 -0
  138. package/dist/tools/list-shop-items.d.ts.map +1 -0
  139. package/dist/tools/list-shop-items.js +34 -0
  140. package/dist/tools/list-shop-items.js.map +1 -0
  141. package/dist/tools/list-shop-orders.d.ts +4 -0
  142. package/dist/tools/list-shop-orders.d.ts.map +1 -0
  143. package/dist/tools/list-shop-orders.js +22 -0
  144. package/dist/tools/list-shop-orders.js.map +1 -0
  145. package/dist/tools/look-up.d.ts +4 -0
  146. package/dist/tools/look-up.d.ts.map +1 -0
  147. package/dist/tools/look-up.js +170 -0
  148. package/dist/tools/look-up.js.map +1 -0
  149. package/dist/tools/output-schemas.d.ts +645 -0
  150. package/dist/tools/output-schemas.d.ts.map +1 -0
  151. package/dist/tools/output-schemas.js +503 -0
  152. package/dist/tools/output-schemas.js.map +1 -0
  153. package/dist/tools/paid-lines.d.ts +718 -0
  154. package/dist/tools/paid-lines.d.ts.map +1 -0
  155. package/dist/tools/paid-lines.js +359 -0
  156. package/dist/tools/paid-lines.js.map +1 -0
  157. package/dist/tools/pay-with-union-pay.d.ts +4 -0
  158. package/dist/tools/pay-with-union-pay.d.ts.map +1 -0
  159. package/dist/tools/pay-with-union-pay.js +112 -0
  160. package/dist/tools/pay-with-union-pay.js.map +1 -0
  161. package/dist/tools/payment-words.d.ts +269 -0
  162. package/dist/tools/payment-words.d.ts.map +1 -0
  163. package/dist/tools/payment-words.js +365 -0
  164. package/dist/tools/payment-words.js.map +1 -0
  165. package/dist/tools/pick-room.d.ts +4 -0
  166. package/dist/tools/pick-room.d.ts.map +1 -0
  167. package/dist/tools/pick-room.js +23 -0
  168. package/dist/tools/pick-room.js.map +1 -0
  169. package/dist/tools/policies.d.ts +4 -0
  170. package/dist/tools/policies.d.ts.map +1 -0
  171. package/dist/tools/policies.js +74 -0
  172. package/dist/tools/policies.js.map +1 -0
  173. package/dist/tools/pricing.d.ts +55 -0
  174. package/dist/tools/pricing.d.ts.map +1 -0
  175. package/dist/tools/pricing.js +260 -0
  176. package/dist/tools/pricing.js.map +1 -0
  177. package/dist/tools/put-room-line.d.ts +12 -0
  178. package/dist/tools/put-room-line.d.ts.map +1 -0
  179. package/dist/tools/put-room-line.js +314 -0
  180. package/dist/tools/put-room-line.js.map +1 -0
  181. package/dist/tools/quote-card.d.ts +234 -0
  182. package/dist/tools/quote-card.d.ts.map +1 -0
  183. package/dist/tools/quote-card.js +375 -0
  184. package/dist/tools/quote-card.js.map +1 -0
  185. package/dist/tools/refund-booking.d.ts +4 -0
  186. package/dist/tools/refund-booking.d.ts.map +1 -0
  187. package/dist/tools/refund-booking.js +112 -0
  188. package/dist/tools/refund-booking.js.map +1 -0
  189. package/dist/tools/request-booking.d.ts +4 -0
  190. package/dist/tools/request-booking.d.ts.map +1 -0
  191. package/dist/tools/request-booking.js +5 -0
  192. package/dist/tools/request-booking.js.map +1 -0
  193. package/dist/tools/request-words.d.ts +238 -0
  194. package/dist/tools/request-words.d.ts.map +1 -0
  195. package/dist/tools/request-words.js +487 -0
  196. package/dist/tools/request-words.js.map +1 -0
  197. package/dist/tools/room-choices.d.ts +64 -0
  198. package/dist/tools/room-choices.d.ts.map +1 -0
  199. package/dist/tools/room-choices.js +348 -0
  200. package/dist/tools/room-choices.js.map +1 -0
  201. package/dist/tools/session-notes.d.ts +164 -0
  202. package/dist/tools/session-notes.d.ts.map +1 -0
  203. package/dist/tools/session-notes.js +412 -0
  204. package/dist/tools/session-notes.js.map +1 -0
  205. package/dist/tools/sign-in.d.ts +4 -0
  206. package/dist/tools/sign-in.d.ts.map +1 -0
  207. package/dist/tools/sign-in.js +72 -0
  208. package/dist/tools/sign-in.js.map +1 -0
  209. package/dist/tools/sign-out.d.ts +4 -0
  210. package/dist/tools/sign-out.d.ts.map +1 -0
  211. package/dist/tools/sign-out.js +13 -0
  212. package/dist/tools/sign-out.js.map +1 -0
  213. package/dist/tools/terms-answer.d.ts +114 -0
  214. package/dist/tools/terms-answer.d.ts.map +1 -0
  215. package/dist/tools/terms-answer.js +475 -0
  216. package/dist/tools/terms-answer.js.map +1 -0
  217. package/dist/tools/tool-set.d.ts +1474 -0
  218. package/dist/tools/tool-set.d.ts.map +1 -0
  219. package/dist/tools/tool-set.js +497 -0
  220. package/dist/tools/tool-set.js.map +1 -0
  221. package/dist/tools/view-trip.d.ts +4 -0
  222. package/dist/tools/view-trip.d.ts.map +1 -0
  223. package/dist/tools/view-trip.js +7 -0
  224. package/dist/tools/view-trip.js.map +1 -0
  225. package/dist/tools.d.ts +13 -2089
  226. package/dist/tools.d.ts.map +1 -1
  227. package/dist/tools.js +11 -10685
  228. package/dist/tools.js.map +1 -1
  229. package/package.json +1 -1
@@ -0,0 +1,645 @@
1
+ import type { BackendCapabilities } from '../backend.js';
2
+ import type { ToolNames } from '../config.js';
3
+ import type { Lang } from './deps.js';
4
+ /**
5
+ * The value-added service orders tool (0.84.1). ⚠️ Says what it reads, in the words a guest uses for it
6
+ * (增值服务订单, 商城订单, shop orders, add-on orders - one thing), and that they are not hotel bookings;
7
+ * names no other tool and tells the model nothing to do (listing.ts).
8
+ */
9
+ export declare const SHOP_ORDERS_DESCRIPTION = "The value-added service orders (\u589E\u503C\u670D\u52A1\u8BA2\u5355) of the Otaless account signed in here: goods bought from the Otaless shop to go with a stay - not hotel bookings. \u589E\u503C\u670D\u52A1\u8BA2\u5355, \u5546\u57CE\u8BA2\u5355, shop orders and add-on orders are all the same thing. Each order comes with its item, total and currency, status, order id, the hotel booking it was bought with where that is known, and when it was ordered and paid where that is known (in UTC); cancelled ones are listed as the shop has them. It only reads: nothing is ordered, paid or cancelled. Nothing is listed when no account is signed in.";
10
+ /** Said by the bookings list where the shop is on (0.84.1). */
11
+ export declare const SHOP_ORDERS_IN_BOOKINGS = "Value-added service orders (\u589E\u503C\u670D\u52A1\u8BA2\u5355 - the same as shop orders or add-on orders) are not hotel bookings: here each one shows under the hotel booking it was bought with, and one that matches none under other value-added service orders; the account's value-added service orders tool lists them all on their own, with their times.";
12
+ /** A guest's reason for a refund, as the group's staff are sent it (`otaless/booking.ts`). */
13
+ export declare const REFUND_REASON_MAX = 200;
14
+ /**
15
+ * ⚠️ EACH STAY IS BOOKED ON ITS OWN (0.79.9, the OpenAI scan of 11-20 on H World: "this tool's
16
+ * description appears to claim capabilities that do not match its behavior"). The pay-at-hotel
17
+ * descriptions said "All of the trip is booked or none of it", while `request_*_booking` has
18
+ * booked what it could and named the rest since 2026-10-14 (robin: `failed`, each still in the
19
+ * trip, with why) - the words now say what the code does.
20
+ */
21
+ export declare const STAYS_ON_THEIR_OWN = "Each stay is booked on its own: one that cannot be is named in the answer, with why, and stays in the trip while the others are booked.";
22
+ export declare const OBJ: {
23
+ readonly type: "object";
24
+ };
25
+ export declare const ARR: {
26
+ readonly type: "array";
27
+ readonly items: {
28
+ readonly type: "object";
29
+ };
30
+ };
31
+ /**
32
+ * A list of names - cities, currencies, a comparison's row labels. ⚠️ Declared
33
+ * as ARR (objects) since the first build while the answers carried strings: a
34
+ * host validating `structuredContent` against `outputSchema`, as the MCP spec
35
+ * has a client do, would refuse every city list (2026-10-08).
36
+ */
37
+ export declare const STRS: {
38
+ readonly type: "array";
39
+ readonly items: {
40
+ readonly type: "string";
41
+ };
42
+ };
43
+ export declare const STR: {
44
+ readonly type: "string";
45
+ };
46
+ export declare const BOOL: {
47
+ readonly type: "boolean";
48
+ };
49
+ export declare const HOTELS: {
50
+ readonly type: "array";
51
+ readonly items: {
52
+ readonly type: "object";
53
+ readonly properties: {
54
+ readonly sellsHourly: {
55
+ readonly type: "boolean";
56
+ };
57
+ };
58
+ };
59
+ };
60
+ export declare const TRIP_SCHEMA: {
61
+ readonly type: "object";
62
+ readonly properties: {
63
+ readonly view: {
64
+ readonly enum: readonly ["trip", "needs-dates", "error"];
65
+ };
66
+ readonly brand: {
67
+ readonly type: "string";
68
+ };
69
+ readonly toolNames: {
70
+ readonly type: "object";
71
+ };
72
+ readonly bookingMode: {
73
+ readonly type: "string";
74
+ };
75
+ readonly vocab: {
76
+ readonly type: "object";
77
+ };
78
+ readonly demo: {
79
+ readonly type: "boolean";
80
+ };
81
+ readonly demoNote: {
82
+ readonly type: "string";
83
+ };
84
+ readonly lines: {
85
+ readonly type: "array";
86
+ readonly items: {
87
+ readonly type: "object";
88
+ };
89
+ };
90
+ readonly stay: {
91
+ readonly type: "object";
92
+ };
93
+ /** Why the room could not go in, as words (`why`) and as a code (`NoRoomsCode`). */
94
+ readonly why: {
95
+ readonly type: "string";
96
+ };
97
+ readonly whyCode: {
98
+ readonly type: "string";
99
+ };
100
+ readonly whyArgs: {
101
+ readonly type: "object";
102
+ };
103
+ readonly subtotal: {
104
+ readonly type: "string";
105
+ };
106
+ readonly taxesAndFees: {
107
+ readonly type: "string";
108
+ };
109
+ readonly total: {
110
+ readonly type: "string";
111
+ };
112
+ /** Which of a room type's rates a room named by its type was put in as - the text's first line. */
113
+ readonly took: {
114
+ readonly type: "string";
115
+ };
116
+ /** Who is signed in, on every payload. */
117
+ readonly member: {
118
+ readonly type: "object";
119
+ };
120
+ /** What the tier took off THIS trip, and what it earns. */
121
+ readonly memberSaving: {
122
+ readonly type: "object";
123
+ };
124
+ /** The coupon taken off, the one asked for and refused, and every one the member holds. */
125
+ readonly coupon: {
126
+ readonly type: "object";
127
+ };
128
+ readonly couponRefused: {
129
+ readonly type: "object";
130
+ };
131
+ readonly coupons: {
132
+ readonly type: "array";
133
+ readonly items: {
134
+ readonly type: "object";
135
+ };
136
+ };
137
+ readonly days: {
138
+ readonly type: "array";
139
+ readonly items: {
140
+ readonly type: "object";
141
+ };
142
+ };
143
+ readonly dropped: {
144
+ readonly type: "array";
145
+ readonly items: {
146
+ readonly type: "object";
147
+ };
148
+ };
149
+ /** A name that fits more than one hotel: the ones it fits (`namesLike`). */
150
+ readonly candidates: {
151
+ readonly type: "array";
152
+ readonly items: {
153
+ readonly type: "object";
154
+ };
155
+ };
156
+ /** The trip as this answer drew it - the card sends it back with its booking form (`stampOf`). */
157
+ readonly stamp: {
158
+ readonly type: "string";
159
+ };
160
+ };
161
+ readonly required: readonly ["view"];
162
+ };
163
+ export declare const CANCEL_SCHEMA: {
164
+ readonly type: "object";
165
+ readonly properties: {
166
+ readonly view: {
167
+ readonly enum: readonly ["cancellation-preview", "cancelled", "booking-not-found", "error"];
168
+ };
169
+ /** The fee is not known before the group cancels: `rule` is its terms and no fee is said. */
170
+ readonly feeUnknown: {
171
+ readonly type: "boolean";
172
+ };
173
+ /** The group answered with terms the guest has not agreed to: `rule` is ours, not the group's (0.74.5). */
174
+ readonly termsNew: {
175
+ readonly type: "boolean";
176
+ };
177
+ readonly error: {
178
+ readonly type: "string";
179
+ };
180
+ readonly detail: {
181
+ readonly type: "string";
182
+ };
183
+ readonly groups: {
184
+ readonly type: "array";
185
+ readonly items: {
186
+ readonly type: "object";
187
+ };
188
+ };
189
+ /** The coupon the booking used and whether cancelling gives it back. */
190
+ readonly coupon: {
191
+ readonly type: "object";
192
+ };
193
+ readonly brand: {
194
+ readonly type: "string";
195
+ };
196
+ readonly toolNames: {
197
+ readonly type: "object";
198
+ };
199
+ readonly bookingMode: {
200
+ readonly type: "string";
201
+ };
202
+ readonly demo: {
203
+ readonly type: "boolean";
204
+ };
205
+ readonly demoNote: {
206
+ readonly type: "string";
207
+ };
208
+ readonly booking: {
209
+ readonly type: "object";
210
+ };
211
+ readonly hotelName: {
212
+ readonly type: "string";
213
+ };
214
+ readonly hotelNames: {
215
+ readonly type: "object";
216
+ };
217
+ readonly stay: {
218
+ readonly type: "object";
219
+ };
220
+ readonly terms: {
221
+ readonly type: "array";
222
+ readonly items: {
223
+ readonly type: "object";
224
+ };
225
+ };
226
+ readonly demoHold: {
227
+ readonly type: "boolean";
228
+ };
229
+ readonly addOnsFree: {
230
+ readonly type: "boolean";
231
+ };
232
+ readonly fee: {
233
+ readonly type: "string";
234
+ };
235
+ /** What the booking being cancelled came to, taxes in - the fee is read against it. */
236
+ readonly bookingTotal: {
237
+ readonly type: "string";
238
+ };
239
+ readonly refund: {
240
+ readonly type: "string";
241
+ };
242
+ readonly rule: {
243
+ readonly type: "string";
244
+ };
245
+ readonly freeUntil: {
246
+ readonly type: "string";
247
+ };
248
+ readonly cancellable: {
249
+ readonly type: "boolean";
250
+ };
251
+ /**
252
+ * What was paid here in advance and what cancelling now gives back of it -
253
+ * only on a booking paid by card or UnionPay that can be cancelled (`PaidFacts`).
254
+ */
255
+ readonly payment: {
256
+ readonly type: "object";
257
+ readonly properties: {
258
+ readonly method: {
259
+ readonly enum: readonly ["card", "unionpay"];
260
+ };
261
+ readonly amount: {
262
+ readonly type: "string";
263
+ };
264
+ readonly refund: {
265
+ readonly enum: readonly ["all", "part", "none"];
266
+ };
267
+ readonly refundAmount: {
268
+ readonly type: "string";
269
+ };
270
+ };
271
+ readonly required: readonly ["method", "amount", "refund"];
272
+ };
273
+ /** The terms as facts, for the card to say in the guest's language (`CancellationPreview`). */
274
+ readonly feeIsCap: {
275
+ readonly type: "boolean";
276
+ };
277
+ readonly reason: {
278
+ readonly type: "string";
279
+ };
280
+ readonly steps: {
281
+ readonly type: "array";
282
+ readonly items: {
283
+ readonly type: "object";
284
+ };
285
+ };
286
+ /** Paid, at a group that refunds: confirming also asks all of `amount` back (0.74.2). */
287
+ readonly refundWithCancel: {
288
+ readonly type: "object";
289
+ readonly properties: {
290
+ readonly amount: {
291
+ readonly type: "string";
292
+ };
293
+ readonly supplier: {
294
+ readonly type: "string";
295
+ };
296
+ };
297
+ readonly required: readonly ["amount"];
298
+ };
299
+ };
300
+ readonly required: readonly ["view"];
301
+ };
302
+ /** Both halves of a change answer with the same payload, like the cancellation pair. */
303
+ export declare const CHANGE_SCHEMA: {
304
+ readonly type: "object";
305
+ readonly properties: {
306
+ readonly view: {
307
+ readonly enum: readonly ["change-preview", "changed", "booking-not-found"];
308
+ };
309
+ readonly brand: {
310
+ readonly type: "string";
311
+ };
312
+ readonly toolNames: {
313
+ readonly type: "object";
314
+ };
315
+ readonly bookingMode: {
316
+ readonly type: "string";
317
+ };
318
+ readonly demo: {
319
+ readonly type: "boolean";
320
+ };
321
+ readonly demoNote: {
322
+ readonly type: "string";
323
+ };
324
+ readonly booking: {
325
+ readonly type: "object";
326
+ };
327
+ /** What it holds now, and what it would hold. Both priced by the server. */
328
+ readonly from: {
329
+ readonly type: "object";
330
+ };
331
+ readonly to: {
332
+ readonly type: "object";
333
+ };
334
+ readonly difference: {
335
+ readonly type: "string";
336
+ };
337
+ /** True when the difference is money back rather than money owed. */
338
+ readonly refundDue: {
339
+ readonly type: "boolean";
340
+ };
341
+ readonly changeable: {
342
+ readonly type: "boolean";
343
+ };
344
+ readonly roomsLeft: {
345
+ readonly type: "number";
346
+ };
347
+ readonly rule: {
348
+ readonly type: "string";
349
+ };
350
+ };
351
+ readonly required: readonly ["view"];
352
+ };
353
+ /**
354
+ * The output schemas with what this backend never fills taken out.
355
+ *
356
+ * ⚠️ A SCHEMA PROMISES. A Huazhu hotel's still promised its add-ons and
357
+ * policies, and every trip a member badge and saving (2026-10-05 audit) -
358
+ * fields no answer there ever carries.
359
+ */
360
+ export declare const outputSchemasFor: (schemas: Record<string, unknown>, caps: BackendCapabilities, lang?: Lang, also?: {
361
+ logoDark?: boolean;
362
+ logoByLang?: boolean;
363
+ accent?: boolean;
364
+ primary?: boolean;
365
+ primaryDark?: boolean;
366
+ fonts?: boolean;
367
+ homeImage?: boolean;
368
+ brandNames?: boolean;
369
+ }) => Record<string, unknown>;
370
+ /** A hotel's page - what get_hotel answers, and the list too where a deployment has one hotel. */
371
+ export declare const HOTEL_PAGE: {
372
+ hotel: {
373
+ readonly type: "object";
374
+ readonly properties: {
375
+ readonly sellsHourly: {
376
+ readonly type: "boolean";
377
+ };
378
+ };
379
+ };
380
+ stay: {
381
+ readonly type: "object";
382
+ };
383
+ rooms: {
384
+ readonly type: "array";
385
+ readonly items: {
386
+ readonly type: "object";
387
+ };
388
+ };
389
+ /** True when no dates were given: the card asks for them instead of showing rooms. */
390
+ needsDates: {
391
+ readonly type: "boolean";
392
+ };
393
+ /** How many rooms of one type the list was filtered to. */
394
+ rooms_wanted: {
395
+ type: string;
396
+ };
397
+ /** Signed in: whose rate the prices are, said as the text says it (`said`). */
398
+ memberRates: {
399
+ readonly type: "object";
400
+ };
401
+ noRooms: {
402
+ readonly type: "string";
403
+ };
404
+ /** `noRooms` as a code (`NoRoomsCode`) and what it holds, for a card to say in the guest's language. */
405
+ noRoomsCode: {
406
+ readonly type: "string";
407
+ };
408
+ noRoomsArgs: {
409
+ readonly type: "object";
410
+ };
411
+ extras: {
412
+ readonly type: "array";
413
+ readonly items: {
414
+ readonly type: "object";
415
+ };
416
+ };
417
+ policies: {
418
+ readonly type: "array";
419
+ readonly items: {
420
+ readonly type: "object";
421
+ };
422
+ };
423
+ /** Arrivals a few days either side, each re-quoted for the same nights - what the date picker prices its days from. */
424
+ dates: {
425
+ readonly type: "array";
426
+ readonly items: {
427
+ readonly type: "object";
428
+ };
429
+ };
430
+ /**
431
+ * The room filters this hotel's rooms offer, each with how many rooms (rates)
432
+ * it keeps - `{ key, count }`, `key` one of `breakfast`, `king`, `twin`,
433
+ * `freeCancellation` (always here, `count` 0 where no room has it) and
434
+ * `window`, `payAtHotel`, `payOnline`, `family` (here only where some rooms
435
+ * have it and some do not).
436
+ */
437
+ roomFilters: {
438
+ readonly type: "array";
439
+ readonly items: {
440
+ readonly type: "object";
441
+ };
442
+ };
443
+ /** The filters the call asked for, as the same keys - the card opens with these selected. */
444
+ activeFilters: {
445
+ readonly type: "array";
446
+ readonly items: {
447
+ readonly type: "string";
448
+ };
449
+ };
450
+ /** Only where the client draws cards: the hotels, or the rooms, are on the card - `ON_CARD`. */
451
+ cardShows: {
452
+ readonly type: "string";
453
+ };
454
+ /**
455
+ * Room types with no room to book for these nights (none left, or fewer
456
+ * than the rooms asked for): `{ id, name, names?, sleeps, ..., left? }`, no
457
+ * price. The card draws them muted at the end of the list, so a type the
458
+ * guest saw is said to be sold out and not left out. Absent where there are
459
+ * none - and never in what the assistant is told.
460
+ */
461
+ soldOut: {
462
+ readonly type: "array";
463
+ readonly items: {
464
+ readonly type: "object";
465
+ };
466
+ };
467
+ /**
468
+ * Where some rates are listed but not booked here (`Room.notSoldHere`, paid
469
+ * in advance on a deployment that takes no payment): what that means and
470
+ * what to offer - the same sentence as the text.
471
+ */
472
+ notSoldHere: {
473
+ readonly type: "string";
474
+ };
475
+ };
476
+ /**
477
+ * What request_booking answers - and book_picked_room, which books the same way
478
+ * from the picked room (`direct`, below).
479
+ */
480
+ export declare const BOOKING_SCHEMA: {
481
+ readonly type: "object";
482
+ readonly properties: {
483
+ readonly view: {
484
+ readonly enum: readonly ["booking", "needs-guest", "empty-trip", "error", "trip", "terms"];
485
+ };
486
+ /** `coupon`: nothing was booked because the coupon asked for cannot be used (`couponRefused`). */
487
+ readonly notBooked: {
488
+ readonly type: "string";
489
+ };
490
+ /** `terms`: the terms waiting for the guest, word for word (`termsOf`). */
491
+ readonly terms: {
492
+ readonly type: "array";
493
+ readonly items: {
494
+ readonly type: "object";
495
+ };
496
+ };
497
+ /** `terms`: the sentence that says the guest agrees to them themselves, as the text says it. */
498
+ readonly termsSaid: {
499
+ readonly type: "string";
500
+ };
501
+ /** `error`: why, as a code (`BOOKING_REFUSALS` or 'card-only') and in the guest's words. */
502
+ readonly error: {
503
+ readonly type: "string";
504
+ };
505
+ readonly detail: {
506
+ readonly type: "string";
507
+ };
508
+ /** `needs-guest`: what the booking still needs, in words ('a name', 'a complete email', …). */
509
+ readonly missing: {
510
+ readonly type: "array";
511
+ readonly items: {
512
+ readonly type: "string";
513
+ };
514
+ };
515
+ /** `needs-guest`: the email given was hidden (「•」) or not a whole address - turned away (`wholeEmail`). */
516
+ readonly emailRefused: {
517
+ readonly type: "boolean";
518
+ };
519
+ /** A sign-in refusal: the groups the guest must sign in to, `{ code, name, names? }`. */
520
+ readonly groups: {
521
+ readonly type: "array";
522
+ readonly items: {
523
+ readonly type: "object";
524
+ };
525
+ };
526
+ readonly coupon: {
527
+ readonly type: "object";
528
+ };
529
+ readonly couponRefused: {
530
+ readonly type: "object";
531
+ };
532
+ readonly coupons: {
533
+ readonly type: "array";
534
+ readonly items: {
535
+ readonly type: "object";
536
+ };
537
+ };
538
+ readonly brand: {
539
+ readonly type: "string";
540
+ };
541
+ readonly toolNames: {
542
+ readonly type: "object";
543
+ };
544
+ readonly bookingMode: {
545
+ readonly type: "string";
546
+ };
547
+ readonly demo: {
548
+ readonly type: "boolean";
549
+ };
550
+ readonly demoNote: {
551
+ readonly type: "string";
552
+ };
553
+ readonly booking: {
554
+ readonly type: "object";
555
+ };
556
+ /** Always false here: this connector holds rooms and takes no money. */
557
+ readonly paid: {
558
+ readonly type: "boolean";
559
+ };
560
+ readonly holdUntil: {
561
+ readonly type: "string";
562
+ };
563
+ readonly total: {
564
+ readonly type: "string";
565
+ };
566
+ /** Each preference written out as what it is - something asked for, not held. */
567
+ readonly requested: {
568
+ readonly type: "array";
569
+ readonly items: {
570
+ readonly type: "object";
571
+ };
572
+ };
573
+ /** An accessible room was asked for, which this booking does not reserve. */
574
+ readonly accessibility: {
575
+ readonly type: "boolean";
576
+ };
577
+ /** One per stay, when the trip held several. */
578
+ readonly bookings: {
579
+ readonly type: "array";
580
+ readonly items: {
581
+ readonly type: "object";
582
+ };
583
+ };
584
+ /** What all of `bookings` come to, where they are in one currency (the card's first screen). */
585
+ readonly totalAll: {
586
+ readonly type: "string";
587
+ };
588
+ /**
589
+ * The stays that could not be booked when the others were - each with
590
+ * why, still in the trip, and what could be booked instead (robin,
591
+ * 2026-10-14).
592
+ */
593
+ readonly failed: {
594
+ readonly type: "array";
595
+ readonly items: {
596
+ readonly type: "object";
597
+ };
598
+ };
599
+ /**
600
+ * The same stays for the same guest asked for again within minutes: the
601
+ * booking made then is the answer, and nothing new was booked.
602
+ */
603
+ readonly repeat: {
604
+ readonly type: "boolean";
605
+ };
606
+ /** A form whose room is no longer the one picked: the pick that would put it back (`pickChanged`). */
607
+ readonly again: {
608
+ readonly type: "object";
609
+ };
610
+ /** Of `bookings`, the ids asked for minutes before, when the others are new (`BookingResult.reused`). */
611
+ readonly repeated: {
612
+ readonly type: "array";
613
+ readonly items: {
614
+ readonly type: "string";
615
+ };
616
+ };
617
+ /** The coupon asked for was not used: the booking returned was made before, without it (`couponNotUsedOf`). */
618
+ readonly couponNotUsed: {
619
+ readonly type: "object";
620
+ };
621
+ /** `trip`, drawn again: see `stampOf`. */
622
+ readonly stamp: {
623
+ readonly type: "string";
624
+ };
625
+ /** The trip changed after the card that sent the form was drawn, so nothing was booked (`stampOf`). */
626
+ readonly tripChanged: {
627
+ readonly type: "boolean";
628
+ };
629
+ /** Two stays at two hotels on the same nights, each with what the text says of it (`overlapsOf`). */
630
+ readonly overlaps: {
631
+ readonly type: "array";
632
+ readonly items: {
633
+ readonly type: "object";
634
+ };
635
+ };
636
+ };
637
+ readonly required: readonly ["view"];
638
+ };
639
+ /**
640
+ * ⚠️ ONLY WHERE THE SHOP'S NAMES EXIST (`data.otaless.shop`): its two tools' schemas, and the
641
+ * shop views a bookings list and a cancellation may also answer with. Everywhere else the schemas
642
+ * are the ones above, untouched.
643
+ */
644
+ export declare const buildOutputSchemas: (n: ToolNames) => Record<string, unknown>;
645
+ //# sourceMappingURL=output-schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output-schemas.d.ts","sourceRoot":"","sources":["../../src/tools/output-schemas.ts"],"names":[],"mappings":"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"}