@curless/hotel-storefront 0.85.0 → 0.87.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 (251) hide show
  1. package/dist/server.d.ts +1 -1
  2. package/dist/server.js +1 -1
  3. package/dist/tools/accept-terms.d.ts +4 -0
  4. package/dist/tools/accept-terms.d.ts.map +1 -0
  5. package/dist/tools/accept-terms.js +26 -0
  6. package/dist/tools/accept-terms.js.map +1 -0
  7. package/dist/tools/add-booking-addon.d.ts +4 -0
  8. package/dist/tools/add-booking-addon.d.ts.map +1 -0
  9. package/dist/tools/add-booking-addon.js +44 -0
  10. package/dist/tools/add-booking-addon.js.map +1 -0
  11. package/dist/tools/add-to-trip.d.ts +4 -0
  12. package/dist/tools/add-to-trip.d.ts.map +1 -0
  13. package/dist/tools/add-to-trip.js +49 -0
  14. package/dist/tools/add-to-trip.js.map +1 -0
  15. package/dist/tools/all-tools.d.ts +19124 -0
  16. package/dist/tools/all-tools.d.ts.map +1 -0
  17. package/dist/tools/all-tools.js +43 -0
  18. package/dist/tools/all-tools.js.map +1 -0
  19. package/dist/tools/answer.d.ts +3 -0
  20. package/dist/tools/answer.d.ts.map +1 -0
  21. package/dist/tools/answer.js +104 -0
  22. package/dist/tools/answer.js.map +1 -0
  23. package/dist/tools/args.d.ts +149 -0
  24. package/dist/tools/args.d.ts.map +1 -0
  25. package/dist/tools/args.js +176 -0
  26. package/dist/tools/args.js.map +1 -0
  27. package/dist/tools/base-output-schemas.d.ts +3 -0
  28. package/dist/tools/base-output-schemas.d.ts.map +1 -0
  29. package/dist/tools/base-output-schemas.js +396 -0
  30. package/dist/tools/base-output-schemas.js.map +1 -0
  31. package/dist/tools/book-picked.d.ts +4 -0
  32. package/dist/tools/book-picked.d.ts.map +1 -0
  33. package/dist/tools/book-picked.js +14 -0
  34. package/dist/tools/book-picked.js.map +1 -0
  35. package/dist/tools/booking-answer.d.ts +24 -0
  36. package/dist/tools/booking-answer.d.ts.map +1 -0
  37. package/dist/tools/booking-answer.js +567 -0
  38. package/dist/tools/booking-answer.js.map +1 -0
  39. package/dist/tools/buy-shop-item.d.ts +4 -0
  40. package/dist/tools/buy-shop-item.d.ts.map +1 -0
  41. package/dist/tools/buy-shop-item.js +45 -0
  42. package/dist/tools/buy-shop-item.js.map +1 -0
  43. package/dist/tools/call.d.ts +11 -0
  44. package/dist/tools/call.d.ts.map +1 -0
  45. package/dist/tools/call.js +2 -0
  46. package/dist/tools/call.js.map +1 -0
  47. package/dist/tools/cancel-facts.d.ts +281 -0
  48. package/dist/tools/cancel-facts.d.ts.map +1 -0
  49. package/dist/tools/cancel-facts.js +309 -0
  50. package/dist/tools/cancel-facts.js.map +1 -0
  51. package/dist/tools/cancel.d.ts +4 -0
  52. package/dist/tools/cancel.d.ts.map +1 -0
  53. package/dist/tools/cancel.js +415 -0
  54. package/dist/tools/cancel.js.map +1 -0
  55. package/dist/tools/capability-adjust.d.ts +31 -0
  56. package/dist/tools/capability-adjust.d.ts.map +1 -0
  57. package/dist/tools/capability-adjust.js +299 -0
  58. package/dist/tools/capability-adjust.js.map +1 -0
  59. package/dist/tools/card-addons.d.ts +4 -0
  60. package/dist/tools/card-addons.d.ts.map +1 -0
  61. package/dist/tools/card-addons.js +76 -0
  62. package/dist/tools/card-addons.js.map +1 -0
  63. package/dist/tools/change-booking.d.ts +4 -0
  64. package/dist/tools/change-booking.d.ts.map +1 -0
  65. package/dist/tools/change-booking.js +145 -0
  66. package/dist/tools/change-booking.js.map +1 -0
  67. package/dist/tools/clear-trip.d.ts +4 -0
  68. package/dist/tools/clear-trip.d.ts.map +1 -0
  69. package/dist/tools/clear-trip.js +10 -0
  70. package/dist/tools/clear-trip.js.map +1 -0
  71. package/dist/tools/compare.d.ts +4 -0
  72. package/dist/tools/compare.d.ts.map +1 -0
  73. package/dist/tools/compare.js +114 -0
  74. package/dist/tools/compare.js.map +1 -0
  75. package/dist/tools/current-trip.d.ts +70 -0
  76. package/dist/tools/current-trip.d.ts.map +1 -0
  77. package/dist/tools/current-trip.js +269 -0
  78. package/dist/tools/current-trip.js.map +1 -0
  79. package/dist/tools/deps.d.ts +229 -0
  80. package/dist/tools/deps.d.ts.map +1 -0
  81. package/dist/tools/deps.js +2 -0
  82. package/dist/tools/deps.js.map +1 -0
  83. package/dist/tools/follow-ups.d.ts +120 -0
  84. package/dist/tools/follow-ups.d.ts.map +1 -0
  85. package/dist/tools/follow-ups.js +369 -0
  86. package/dist/tools/follow-ups.js.map +1 -0
  87. package/dist/tools/forget-preferences.d.ts +4 -0
  88. package/dist/tools/forget-preferences.d.ts.map +1 -0
  89. package/dist/tools/forget-preferences.js +24 -0
  90. package/dist/tools/forget-preferences.js.map +1 -0
  91. package/dist/tools/get-hotel.d.ts +4 -0
  92. package/dist/tools/get-hotel.d.ts.map +1 -0
  93. package/dist/tools/get-hotel.js +350 -0
  94. package/dist/tools/get-hotel.js.map +1 -0
  95. package/dist/tools/hotel-choices.d.ts +132 -0
  96. package/dist/tools/hotel-choices.d.ts.map +1 -0
  97. package/dist/tools/hotel-choices.js +587 -0
  98. package/dist/tools/hotel-choices.js.map +1 -0
  99. package/dist/tools/itinerary.d.ts +4 -0
  100. package/dist/tools/itinerary.d.ts.map +1 -0
  101. package/dist/tools/itinerary.js +158 -0
  102. package/dist/tools/itinerary.js.map +1 -0
  103. package/dist/tools/list-booking-addons.d.ts +4 -0
  104. package/dist/tools/list-booking-addons.d.ts.map +1 -0
  105. package/dist/tools/list-booking-addons.js +21 -0
  106. package/dist/tools/list-booking-addons.js.map +1 -0
  107. package/dist/tools/list-bookings.d.ts +4 -0
  108. package/dist/tools/list-bookings.d.ts.map +1 -0
  109. package/dist/tools/list-bookings.js +119 -0
  110. package/dist/tools/list-bookings.js.map +1 -0
  111. package/dist/tools/list-extras.d.ts +4 -0
  112. package/dist/tools/list-extras.d.ts.map +1 -0
  113. package/dist/tools/list-extras.js +90 -0
  114. package/dist/tools/list-extras.js.map +1 -0
  115. package/dist/tools/list-hotels-ask.d.ts +133 -0
  116. package/dist/tools/list-hotels-ask.d.ts.map +1 -0
  117. package/dist/tools/list-hotels-ask.js +326 -0
  118. package/dist/tools/list-hotels-ask.js.map +1 -0
  119. package/dist/tools/list-hotels-empty.d.ts +5 -0
  120. package/dist/tools/list-hotels-empty.d.ts.map +1 -0
  121. package/dist/tools/list-hotels-empty.js +130 -0
  122. package/dist/tools/list-hotels-empty.js.map +1 -0
  123. package/dist/tools/list-hotels-home.d.ts +9 -0
  124. package/dist/tools/list-hotels-home.d.ts.map +1 -0
  125. package/dist/tools/list-hotels-home.js +181 -0
  126. package/dist/tools/list-hotels-home.js.map +1 -0
  127. package/dist/tools/list-hotels-page.d.ts +43 -0
  128. package/dist/tools/list-hotels-page.d.ts.map +1 -0
  129. package/dist/tools/list-hotels-page.js +344 -0
  130. package/dist/tools/list-hotels-page.js.map +1 -0
  131. package/dist/tools/list-hotels.d.ts +4 -0
  132. package/dist/tools/list-hotels.d.ts.map +1 -0
  133. package/dist/tools/list-hotels.js +24 -0
  134. package/dist/tools/list-hotels.js.map +1 -0
  135. package/dist/tools/list-shop-items.d.ts +4 -0
  136. package/dist/tools/list-shop-items.d.ts.map +1 -0
  137. package/dist/tools/list-shop-items.js +34 -0
  138. package/dist/tools/list-shop-items.js.map +1 -0
  139. package/dist/tools/list-shop-orders.d.ts +4 -0
  140. package/dist/tools/list-shop-orders.d.ts.map +1 -0
  141. package/dist/tools/list-shop-orders.js +22 -0
  142. package/dist/tools/list-shop-orders.js.map +1 -0
  143. package/dist/tools/look-up.d.ts +4 -0
  144. package/dist/tools/look-up.d.ts.map +1 -0
  145. package/dist/tools/look-up.js +207 -0
  146. package/dist/tools/look-up.js.map +1 -0
  147. package/dist/tools/output-schemas.d.ts +645 -0
  148. package/dist/tools/output-schemas.d.ts.map +1 -0
  149. package/dist/tools/output-schemas.js +503 -0
  150. package/dist/tools/output-schemas.js.map +1 -0
  151. package/dist/tools/paid-lines.d.ts +718 -0
  152. package/dist/tools/paid-lines.d.ts.map +1 -0
  153. package/dist/tools/paid-lines.js +359 -0
  154. package/dist/tools/paid-lines.js.map +1 -0
  155. package/dist/tools/pay-with-union-pay.d.ts +4 -0
  156. package/dist/tools/pay-with-union-pay.d.ts.map +1 -0
  157. package/dist/tools/pay-with-union-pay.js +112 -0
  158. package/dist/tools/pay-with-union-pay.js.map +1 -0
  159. package/dist/tools/payment-words.d.ts +269 -0
  160. package/dist/tools/payment-words.d.ts.map +1 -0
  161. package/dist/tools/payment-words.js +365 -0
  162. package/dist/tools/payment-words.js.map +1 -0
  163. package/dist/tools/pick-room.d.ts +4 -0
  164. package/dist/tools/pick-room.d.ts.map +1 -0
  165. package/dist/tools/pick-room.js +23 -0
  166. package/dist/tools/pick-room.js.map +1 -0
  167. package/dist/tools/policies.d.ts +4 -0
  168. package/dist/tools/policies.d.ts.map +1 -0
  169. package/dist/tools/policies.js +74 -0
  170. package/dist/tools/policies.js.map +1 -0
  171. package/dist/tools/pricing.d.ts +55 -0
  172. package/dist/tools/pricing.d.ts.map +1 -0
  173. package/dist/tools/pricing.js +260 -0
  174. package/dist/tools/pricing.js.map +1 -0
  175. package/dist/tools/put-room-line.d.ts +12 -0
  176. package/dist/tools/put-room-line.d.ts.map +1 -0
  177. package/dist/tools/put-room-line.js +347 -0
  178. package/dist/tools/put-room-line.js.map +1 -0
  179. package/dist/tools/quote-card.d.ts +234 -0
  180. package/dist/tools/quote-card.d.ts.map +1 -0
  181. package/dist/tools/quote-card.js +375 -0
  182. package/dist/tools/quote-card.js.map +1 -0
  183. package/dist/tools/refund-booking.d.ts +4 -0
  184. package/dist/tools/refund-booking.d.ts.map +1 -0
  185. package/dist/tools/refund-booking.js +112 -0
  186. package/dist/tools/refund-booking.js.map +1 -0
  187. package/dist/tools/request-booking.d.ts +4 -0
  188. package/dist/tools/request-booking.d.ts.map +1 -0
  189. package/dist/tools/request-booking.js +5 -0
  190. package/dist/tools/request-booking.js.map +1 -0
  191. package/dist/tools/request-words.d.ts +238 -0
  192. package/dist/tools/request-words.d.ts.map +1 -0
  193. package/dist/tools/request-words.js +487 -0
  194. package/dist/tools/request-words.js.map +1 -0
  195. package/dist/tools/room-choices.d.ts +64 -0
  196. package/dist/tools/room-choices.d.ts.map +1 -0
  197. package/dist/tools/room-choices.js +374 -0
  198. package/dist/tools/room-choices.js.map +1 -0
  199. package/dist/tools/session-notes.d.ts +164 -0
  200. package/dist/tools/session-notes.d.ts.map +1 -0
  201. package/dist/tools/session-notes.js +412 -0
  202. package/dist/tools/session-notes.js.map +1 -0
  203. package/dist/tools/sign-in.d.ts +4 -0
  204. package/dist/tools/sign-in.d.ts.map +1 -0
  205. package/dist/tools/sign-in.js +72 -0
  206. package/dist/tools/sign-in.js.map +1 -0
  207. package/dist/tools/sign-out.d.ts +4 -0
  208. package/dist/tools/sign-out.d.ts.map +1 -0
  209. package/dist/tools/sign-out.js +13 -0
  210. package/dist/tools/sign-out.js.map +1 -0
  211. package/dist/tools/terms-answer.d.ts +114 -0
  212. package/dist/tools/terms-answer.d.ts.map +1 -0
  213. package/dist/tools/terms-answer.js +492 -0
  214. package/dist/tools/terms-answer.js.map +1 -0
  215. package/dist/tools/tool-defs-account.d.ts +80 -0
  216. package/dist/tools/tool-defs-account.d.ts.map +1 -0
  217. package/dist/tools/tool-defs-account.js +65 -0
  218. package/dist/tools/tool-defs-account.js.map +1 -0
  219. package/dist/tools/tool-defs-addons.d.ts +251 -0
  220. package/dist/tools/tool-defs-addons.d.ts.map +1 -0
  221. package/dist/tools/tool-defs-addons.js +198 -0
  222. package/dist/tools/tool-defs-addons.js.map +1 -0
  223. package/dist/tools/tool-defs-booking.d.ts +410 -0
  224. package/dist/tools/tool-defs-booking.d.ts.map +1 -0
  225. package/dist/tools/tool-defs-booking.js +285 -0
  226. package/dist/tools/tool-defs-booking.js.map +1 -0
  227. package/dist/tools/tool-defs-browse.d.ts +444 -0
  228. package/dist/tools/tool-defs-browse.d.ts.map +1 -0
  229. package/dist/tools/tool-defs-browse.js +307 -0
  230. package/dist/tools/tool-defs-browse.js.map +1 -0
  231. package/dist/tools/tool-defs-trip.d.ts +136 -0
  232. package/dist/tools/tool-defs-trip.d.ts.map +1 -0
  233. package/dist/tools/tool-defs-trip.js +79 -0
  234. package/dist/tools/tool-defs-trip.js.map +1 -0
  235. package/dist/tools/tool-env.d.ts +64 -0
  236. package/dist/tools/tool-env.d.ts.map +1 -0
  237. package/dist/tools/tool-env.js +49 -0
  238. package/dist/tools/tool-env.js.map +1 -0
  239. package/dist/tools/tool-set.d.ts +1425 -0
  240. package/dist/tools/tool-set.d.ts.map +1 -0
  241. package/dist/tools/tool-set.js +244 -0
  242. package/dist/tools/tool-set.js.map +1 -0
  243. package/dist/tools/view-trip.d.ts +4 -0
  244. package/dist/tools/view-trip.d.ts.map +1 -0
  245. package/dist/tools/view-trip.js +7 -0
  246. package/dist/tools/view-trip.js.map +1 -0
  247. package/dist/tools.d.ts +13 -2089
  248. package/dist/tools.d.ts.map +1 -1
  249. package/dist/tools.js +11 -10685
  250. package/dist/tools.js.map +1 -1
  251. package/package.json +1 -1
package/dist/tools.d.ts CHANGED
@@ -1,2090 +1,14 @@
1
- import type { CancelFacts, CancelOutcome } from './account/cancel-pages.js';
2
- import type { MemberLogin } from './account/member-login.js';
3
- import { type BackendCapabilities } from './backend.js';
4
- import type { HotelBackend, SupplierInfo } from './backend.js';
5
- import type { ToolNames } from './config.js';
6
- import type { Misses } from './limits.js';
7
- import type { MemberStore } from './members.js';
8
- import { type TripStore } from './trip.js';
9
- import type { Booking, BookingPayment, Identity, Money, Names, RoomRequestKind } from './types.js';
10
- import { type Vocabulary } from './vocab.js';
11
- /** How many ${nounPlural} one look-up reads - a city's worth, and what a comparison can hold and then some. */
12
- export declare const LOOK_UP_MAX = 6;
13
- /**
14
- * The tools this deployment offers: every tool, less the ones its backend
15
- * cannot do, and with the descriptions of the rest saying only what is true
16
- * of it - see `BackendCapabilities`.
17
- */
18
- export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCapabilities) => ({
19
- readonly name: `list_${string}${string}`;
20
- readonly description: `${string}, shown to a guest - as a card, in an app that draws one - to look through and pick one ${string} to book. It holds no plan of days: a day-by-day plan (\u884C\u7A0B, \u5B89\u6392, an itinerary) is an answer of its own, laid out by the days, with a ${string} for each part of the trip read up as text. Asked with no place - or a country of many cities - it answers with the places to choose from: regions, countries and cities, each with how many ${string} it has; \`all\` lists the ${string} themselves. \`city\` (a city or a country) or \`query\` answers with the ${string}: a picture, the city and area, a rating where the ${string} publishes one, and a from-price, and a city usually holds several. With \`checkIn\` and \`checkOut\` every ${string} is priced for those nights - its cheapest room that takes the party, \`rooms\` of it, for the whole stay with taxes - or marked as having no room for them. \`sort\` and \`maxNightly\` order and cap by that price, or by the from-price without dates, where the matches share one currency. \`brand\`, \`facilities\`, \`freeCancellation\`, \`breakfast\` and \`bed\` narrow the list, and the answer counts what each would leave. A long list comes a page at a time: the answer says how many more there are and the \`offset\` of the next page. Words or a place that match nothing are widened once, and the answer names what it widened to.${string}`;
21
- readonly annotations: {
22
- readonly title: string;
23
- readonly readOnlyHint: true;
24
- readonly destructiveHint: false;
25
- readonly idempotentHint: true;
26
- readonly openWorldHint: boolean;
27
- };
28
- readonly inputSchema: {
29
- readonly type: "object";
30
- readonly properties: {
31
- readonly facilities: {
32
- readonly type: "array";
33
- readonly items: {
34
- readonly type: "string";
35
- readonly enum: string[];
36
- };
37
- readonly description: `What every ${string} listed must have`;
38
- };
39
- readonly freeCancellation: {
40
- readonly type: "boolean";
41
- readonly description: `Only ${string} with a room that can be cancelled free - and, with dates, that room is the one priced`;
42
- };
43
- readonly breakfast: {
44
- readonly type: "boolean";
45
- readonly description: `Only ${string} with a room that includes breakfast - and, with dates, that room is the one priced`;
46
- };
47
- readonly bed: {
48
- readonly type: "string";
49
- readonly enum: readonly ["king", "twin"];
50
- readonly description: `Only ${string} with a room that has this bed - \`king\` is one large bed (king, queen or double), \`twin\` is two beds - and, with dates, that room is the one priced. Given with \`freeCancellation\` or \`breakfast\`, one room must have all of them`;
51
- };
52
- readonly all: {
53
- readonly type: "boolean";
54
- readonly description: `Unnarrowed, or narrowed to a country of many cities, the answer is the places to choose from; true lists the ${string} themselves`;
55
- };
56
- readonly group?: {
57
- type: string;
58
- description: string;
59
- } | undefined;
60
- readonly rooms: {
61
- readonly type: "integer";
62
- readonly minimum: 1;
63
- readonly maximum: 5;
64
- readonly description: "With dates: how many rooms of one type the party needs, 1 to 5. Default 1";
65
- };
66
- readonly sort: {
67
- readonly type: "string";
68
- readonly enum: readonly ["group", "price-low", "price-high", "rating"];
69
- readonly description: `Default \`group\`: the cities ${string} lead the list. A price order - by the stay's price with dates, the from-price without - holds only where the matches share one currency; across currencies it is dropped and the answer says which currencies they are`;
70
- };
71
- readonly maxNightly: {
72
- readonly type: "number";
73
- readonly description: "A ceiling on the price of a night - of the stay with dates, the from-price without - in the currency the matches are quoted in. Across currencies it is dropped and the answer says so";
74
- };
75
- readonly limit: {
76
- readonly type: "number";
77
- readonly description: "How many to return, 1 to 50. Default 12";
78
- };
79
- readonly offset: {
80
- readonly type: "number";
81
- readonly description: "How many of the matches to skip: the answer says where the next page starts";
82
- };
83
- readonly brand: {
84
- readonly type: "string";
85
- readonly description: "One of the hotels' own brands (Kerry, Hanting - not a hotel group), as the list's brand counts name it" | "One of the group's brands, as the list's brand counts name it";
86
- };
87
- readonly checkIn: {
88
- readonly type: "string";
89
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
90
- readonly description: `${string}, as YYYY-MM-DD`;
91
- };
92
- readonly checkOut: {
93
- readonly type: "string";
94
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
95
- readonly description: `${string}, as YYYY-MM-DD`;
96
- };
97
- readonly guests: {
98
- readonly type: "integer";
99
- readonly minimum: 1;
100
- readonly maximum: 8;
101
- readonly description: "People in the room. Default 2";
102
- };
103
- readonly query: {
104
- readonly type: "string";
105
- readonly description: "Free text over the name, city, area, description and amenities - the guest's own words";
106
- };
107
- readonly city: {
108
- readonly type: "string";
109
- readonly description: `One city or one country${string}`;
110
- };
111
- };
112
- };
113
- } | {
114
- readonly name: `get_${string}${string}`;
115
- readonly description: `One ${string} in full: description, amenities, address, and check-in and check-out times where the ${string} publishes them. Given \`checkIn\` and \`checkOut\` it also returns the room types that can be booked for those nights, one line per type at its lowest rate: the nightly rate, the stay total including taxes and fees, whether it can be cancelled free and until when, and how many rates it has. \`rooms\` leaves out the types that have fewer than that many left. \`bed\`, \`breakfast\`, \`freeCancellation\`, \`window\`, \`payment\` and \`family\` keep only the rates that meet all of those given; a card, in an app that draws one, still holds every room, with the given filters selected. Without dates it returns the ${string} only, because a room has no price until the nights are known. The ${string} is shown to the guest - as a card, in an app that draws one.${string}`;
116
- readonly annotations: {
117
- readonly title: string;
118
- readonly readOnlyHint: true;
119
- readonly destructiveHint: false;
120
- readonly idempotentHint: true;
121
- readonly openWorldHint: boolean;
122
- };
123
- readonly inputSchema: {
124
- readonly type: "object";
125
- readonly properties: {
126
- readonly rooms: {
127
- readonly type: "integer";
128
- readonly minimum: 1;
129
- readonly maximum: 5;
130
- readonly description: "How many rooms of one type, 1 to 5. Default 1";
131
- };
132
- readonly bed: {
133
- readonly type: "string";
134
- readonly enum: readonly ["king", "twin"];
135
- readonly description: "With dates: only rooms with this bed - `king` is one large bed (king, queen or double), `twin` is two beds. A room sold as king or twin has both";
136
- };
137
- readonly breakfast: {
138
- readonly type: "boolean";
139
- readonly description: "With dates: only rooms whose rate includes breakfast";
140
- };
141
- readonly freeCancellation: {
142
- readonly type: "boolean";
143
- readonly description: "With dates: only rooms that can be cancelled free";
144
- };
145
- readonly window: {
146
- readonly type: "boolean";
147
- readonly description: "With dates: only rooms with a window (not a partial or an inner one)";
148
- };
149
- readonly payment: {
150
- readonly type: "string";
151
- readonly enum: readonly ["at-hotel", "online"];
152
- readonly description: "With dates: only rooms paid at the hotel (`at-hotel`) or in advance online (`online`)";
153
- };
154
- readonly family: {
155
- readonly type: "boolean";
156
- readonly description: "With dates: only rooms that sleep 3 or more";
157
- };
158
- readonly checkIn: {
159
- readonly type: "string";
160
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
161
- readonly description: `${string}, as YYYY-MM-DD`;
162
- };
163
- readonly checkOut: {
164
- readonly type: "string";
165
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
166
- readonly description: `${string}, as YYYY-MM-DD`;
167
- };
168
- readonly guests: {
169
- readonly type: "integer";
170
- readonly minimum: 1;
171
- readonly maximum: 8;
172
- readonly description: "People in the room. Default 2";
173
- };
174
- readonly hotel: {
175
- readonly type: "string";
176
- readonly description: `The ${string}'s name or id${string}`;
177
- };
178
- };
179
- readonly required: readonly ["hotel"];
180
- };
181
- } | {
182
- readonly name: `look_up_${string}${string}`;
183
- readonly description: `Reads up to 6 ${string} - a \`city\`'s (or a country's), or the ones named in \`${string}\` - and returns them as text, with nothing drawn and nothing shown to the guest: each one's id, area, rating, description and amenities, its add-ons with their ids and prices, and, given \`checkIn\` and \`checkOut\`, its rooms priced for those nights with taxes in. Nothing it reads is shown, so the ${string} of a day-by-day plan - for each part of the trip, those near where its days are spent - can be read up before the plan is drawn; its ids are the ones a comparison and a plan take.`;
184
- readonly annotations: {
185
- readonly title: string;
186
- readonly readOnlyHint: true;
187
- readonly destructiveHint: false;
188
- readonly idempotentHint: true;
189
- readonly openWorldHint: boolean;
190
- };
191
- readonly inputSchema: {
192
- readonly type: "object";
193
- readonly properties: {
194
- readonly rooms: {
195
- readonly type: "integer";
196
- readonly minimum: 1;
197
- readonly maximum: 5;
198
- readonly description: "How many rooms of one type, 1 to 5. Default 1";
199
- };
200
- readonly checkIn: {
201
- readonly type: "string";
202
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
203
- readonly description: `${string}, as YYYY-MM-DD`;
204
- };
205
- readonly checkOut: {
206
- readonly type: "string";
207
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
208
- readonly description: `${string}, as YYYY-MM-DD`;
209
- };
210
- readonly guests: {
211
- readonly type: "integer";
212
- readonly minimum: 1;
213
- readonly maximum: 8;
214
- readonly description: "People in the room. Default 2";
215
- };
216
- readonly city: {
217
- readonly type: "string";
218
- readonly description: `A city or a country: its ${string}, up to 6`;
219
- };
220
- };
221
- };
222
- } | {
223
- readonly name: `list_${string}extras`;
224
- readonly description: `What one ${string} offers beside the room: airport transfers, dinners, guided experiences, spa and family add-ons, each with its price and whether it is charged per stay, per person or per night, shown to the guest - as a card, in an app that draws one.`;
225
- readonly annotations: {
226
- readonly title: string;
227
- readonly readOnlyHint: true;
228
- readonly destructiveHint: false;
229
- readonly idempotentHint: true;
230
- readonly openWorldHint: boolean;
231
- };
232
- readonly inputSchema: {
233
- readonly type: "object";
234
- readonly properties: {
235
- readonly booking: {
236
- readonly type: "string";
237
- readonly description: `A booking's confirmation code. The answer is then that booking's ${string}, its add-ons for those nights and how many of each the booking holds`;
238
- };
239
- readonly email: {
240
- readonly type: "string";
241
- readonly description: "The email the booking was made with, when it was made elsewhere";
242
- };
243
- readonly checkIn: {
244
- readonly type: "string";
245
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
246
- readonly description: `${string}, as YYYY-MM-DD`;
247
- };
248
- readonly checkOut: {
249
- readonly type: "string";
250
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
251
- readonly description: `${string}, as YYYY-MM-DD`;
252
- };
253
- readonly guests: {
254
- readonly type: "integer";
255
- readonly minimum: 1;
256
- readonly maximum: 8;
257
- readonly description: "People in the room. Default 2";
258
- };
259
- readonly hotel: {
260
- readonly type: "string";
261
- readonly description: `The ${string}'s name or id`;
262
- };
263
- };
264
- };
265
- } | {
266
- readonly name: `add_to_${string}trip`;
267
- readonly description: `Puts room nights or an add-on into the trip - a plan kept in this conversation - and returns the whole trip, priced. Nothing in the trip is booked or charged. A room line needs the ${string}, the room type and the dates; \`rooms\` sets how many of that room type. An add-on line needs the ${string} and the add-on. A line is replaced, not stacked: sending the same room and dates again sets that line's room count, and 0 takes it out of the plan.`;
268
- readonly annotations: {
269
- readonly title: string;
270
- readonly readOnlyHint: false;
271
- readonly destructiveHint: true;
272
- readonly idempotentHint: true;
273
- readonly openWorldHint: boolean;
274
- };
275
- readonly inputSchema: {
276
- readonly type: "object";
277
- readonly properties: {
278
- readonly rooms: {
279
- readonly type: "integer";
280
- readonly minimum: 0;
281
- readonly maximum: 5;
282
- readonly description: "How many of that room type in the plan, 1 to 5. Default 1; 0 takes the line out";
283
- };
284
- readonly quantity: {
285
- readonly type: "integer";
286
- readonly minimum: 0;
287
- readonly maximum: 20;
288
- readonly description: "For an add-on: how many, 1 to 20. Default 1 - or, for an add-on priced per person, everyone in the rooms the trip holds at that hotel (guests per room x rooms; the guests asked for when there is no room yet); 0 removes it";
289
- };
290
- readonly checkIn: {
291
- readonly type: "string";
292
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
293
- readonly description: `${string}, as YYYY-MM-DD`;
294
- };
295
- readonly checkOut: {
296
- readonly type: "string";
297
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
298
- readonly description: `${string}, as YYYY-MM-DD`;
299
- };
300
- readonly guests: {
301
- readonly type: "integer";
302
- readonly minimum: 1;
303
- readonly maximum: 8;
304
- readonly description: "People in the room. Default 2";
305
- };
306
- readonly hotel: {
307
- readonly type: "string";
308
- readonly description: `The ${string}'s name or id`;
309
- };
310
- readonly room: {
311
- readonly type: "string";
312
- readonly description: "The room type id or name, as the hotel returned it";
313
- };
314
- readonly extra: {
315
- readonly type: "string";
316
- readonly description: "The add-on id or name. A line names either this or `room`";
317
- };
318
- };
319
- readonly required: readonly ["hotel"];
320
- };
321
- } | {
322
- readonly name: `view_${string}trip`;
323
- readonly description: "The trip as it stands: every room line and add-on with its own total, the taxes and fees, and the all-in total, laid out day by day (on the card, in an app that draws one).";
324
- readonly annotations: {
325
- readonly title: string;
326
- readonly readOnlyHint: true;
327
- readonly destructiveHint: false;
328
- readonly idempotentHint: true;
329
- readonly openWorldHint: boolean;
330
- };
331
- readonly inputSchema: {
332
- readonly type: "object";
333
- readonly properties: {};
334
- };
335
- } | {
336
- readonly name: `clear_${string}trip`;
337
- readonly description: "Empties the trip.";
338
- readonly annotations: {
339
- readonly title: string;
340
- readonly readOnlyHint: false;
341
- readonly destructiveHint: true;
342
- readonly idempotentHint: true;
343
- readonly openWorldHint: boolean;
344
- };
345
- readonly inputSchema: {
346
- readonly type: "object";
347
- readonly properties: {};
348
- };
349
- } | {
350
- readonly name: `request_${string}booking`;
351
- readonly description: string;
352
- readonly annotations: {
353
- readonly title: string;
354
- readonly readOnlyHint: false;
355
- readonly destructiveHint: true;
356
- readonly idempotentHint: false;
357
- readonly openWorldHint: boolean;
358
- };
359
- readonly inputSchema: {
360
- readonly type: "object";
361
- readonly properties: {
362
- readonly group?: {
363
- type: string;
364
- description: string;
365
- } | undefined;
366
- readonly name: {
367
- readonly type: "string";
368
- readonly description: "The guest's full name, as it should appear on the booking";
369
- };
370
- readonly email: {
371
- readonly type: "string";
372
- readonly description: "The email the confirmation goes to";
373
- };
374
- readonly phone: {
375
- readonly type: "string";
376
- readonly description: "Optional";
377
- };
378
- readonly requests: {
379
- readonly type: "array";
380
- readonly items: {
381
- readonly type: "string";
382
- readonly enum: RoomRequestKind[];
383
- };
384
- readonly description: "Preferences the desk tries to meet on the day. None of them is held; the answer says so";
385
- };
386
- readonly arrivingAt: {
387
- readonly type: "string";
388
- readonly description: "What time the guest reaches the hotel, `HH:MM` on the hotel's own clock. A time counts as a late arrival on its own";
389
- };
390
- readonly notes: {
391
- readonly type: "string";
392
- readonly description: "Anything else for the desk, in the guest's own words, up to 200 characters";
393
- };
394
- readonly rememberRequests: {
395
- readonly type: "boolean";
396
- readonly description: "True when the guest asked for these room preferences to be remembered for their next stays. Needs a signed-in member; what is kept is the lasting kind - a bed type, a floor, a quiet or connecting room; an accessible room is asked for on each stay and is not kept";
397
- };
398
- };
399
- readonly required: readonly ["name", "email"];
400
- };
401
- } | {
402
- readonly name: `list_my_${string}bookings`;
403
- readonly description: "The bookings made in this conversation, newest to oldest, with their status, dates and confirmation codes. A booking made elsewhere is read and shown as well when both its confirmation code and the email it was made with are given; nothing is changed.";
404
- readonly annotations: {
405
- readonly title: string;
406
- readonly readOnlyHint: true;
407
- readonly destructiveHint: false;
408
- readonly idempotentHint: true;
409
- readonly openWorldHint: boolean;
410
- };
411
- readonly inputSchema: {
412
- readonly type: "object";
413
- readonly properties: {
414
- readonly booking: {
415
- readonly type: "string";
416
- readonly description: "A confirmation code, with `email`, for a booking made elsewhere";
417
- };
418
- readonly email: {
419
- readonly type: "string";
420
- readonly description: "The email that booking was made with";
421
- };
422
- readonly limit: {
423
- readonly type: "number";
424
- readonly description: "Default 10";
425
- };
426
- };
427
- };
428
- } | {
429
- readonly name: `preview_${string}cancellation`;
430
- readonly description: "What cancelling a booking would cost, with the rule it was worked out from and the free-cancellation deadline where the rate has one. Nothing is cancelled.";
431
- readonly annotations: {
432
- readonly title: string;
433
- readonly readOnlyHint: true;
434
- readonly destructiveHint: false;
435
- readonly idempotentHint: true;
436
- readonly openWorldHint: boolean;
437
- };
438
- readonly inputSchema: {
439
- readonly type: "object";
440
- readonly properties: {
441
- readonly booking: {
442
- readonly type: "string";
443
- readonly description: "The confirmation code or booking id";
444
- };
445
- readonly email: {
446
- readonly type: "string";
447
- readonly description: "The email the booking was made with, when it was made elsewhere";
448
- };
449
- };
450
- readonly required: readonly ["booking"];
451
- };
452
- } | {
453
- readonly name: `cancel_${string}booking`;
454
- readonly description: "Cancels a booking. Called without `confirmed` it returns the cancellation preview - the fee and the rule behind it - and cancels nothing; it cancels only when `confirmed` is true.";
455
- readonly annotations: {
456
- readonly title: string;
457
- readonly readOnlyHint: false;
458
- readonly destructiveHint: true;
459
- readonly idempotentHint: true;
460
- readonly openWorldHint: boolean;
461
- };
462
- readonly inputSchema: {
463
- readonly type: "object";
464
- readonly properties: {
465
- readonly booking: {
466
- readonly type: "string";
467
- readonly description: "The confirmation code or booking id";
468
- };
469
- readonly confirmed: {
470
- readonly type: "boolean";
471
- readonly description: "True cancels. Anything else returns the preview";
472
- };
473
- readonly reason: {
474
- readonly type: "string";
475
- readonly description: "Optional, kept on the booking";
476
- };
477
- readonly email: {
478
- readonly type: "string";
479
- readonly description: "The email the booking was made with, when it was made elsewhere";
480
- };
481
- };
482
- readonly required: readonly ["booking"];
483
- };
484
- } | {
485
- readonly name: `preview_${string}booking_change`;
486
- readonly description: `What moving a booking to other nights, another room type or a different number of rooms - or putting an add-on on it, taking one off or changing how many - would cost: what it holds now, what it would hold, and the difference between them. The new nights are priced at what those nights cost today, not at the rate the booking was made on. A rate that cannot be moved, a ${string} that has no room left for the new nights and a booking that is already gone are each said in those words. Nothing is changed.`;
487
- readonly annotations: {
488
- readonly title: string;
489
- readonly readOnlyHint: true;
490
- readonly destructiveHint: false;
491
- readonly idempotentHint: true;
492
- readonly openWorldHint: boolean;
493
- };
494
- readonly inputSchema: {
495
- readonly type: "object";
496
- readonly properties: {
497
- readonly booking: {
498
- readonly type: "string";
499
- readonly description: "The confirmation code or booking id";
500
- };
501
- readonly checkIn: {
502
- readonly type: "string";
503
- readonly description: "The new check-in, YYYY-MM-DD. Leave out to keep it";
504
- };
505
- readonly checkOut: {
506
- readonly type: "string";
507
- readonly description: "The new check-out, YYYY-MM-DD. Leave out to keep it";
508
- };
509
- readonly rooms: {
510
- readonly type: "integer";
511
- readonly minimum: 1;
512
- readonly maximum: 5;
513
- readonly description: "How many of that room type, 1 to 5. Leave out to keep it";
514
- };
515
- readonly room: {
516
- readonly type: "string";
517
- readonly description: "A different room type at the same hotel, by id or name";
518
- };
519
- readonly extra: {
520
- readonly type: "string";
521
- readonly description: `An add-on at this ${string}, by id or name, to put on the booking, take off or change - with \`quantity\``;
522
- };
523
- readonly quantity: {
524
- readonly type: "integer";
525
- readonly minimum: 0;
526
- readonly maximum: 20;
527
- readonly description: "How many of that add-on the booking should hold, 0 to 20; 0 takes it off";
528
- };
529
- readonly email: {
530
- readonly type: "string";
531
- readonly description: "The email the booking was made with, when it was made elsewhere";
532
- };
533
- };
534
- readonly required: readonly ["booking"];
535
- };
536
- } | {
537
- readonly name: `change_${string}booking`;
538
- readonly description: "Moves a booking to other nights, another room type or a different number of rooms, or sets one of its add-ons (`extra` and `quantity`; 0 takes it off). Called without `confirmed` it returns the same preview - the two stays and the difference - and changes nothing; it changes only when `confirmed` is true. The confirmation code stays the same.";
539
- readonly annotations: {
540
- readonly title: string;
541
- readonly readOnlyHint: false;
542
- readonly destructiveHint: true;
543
- readonly idempotentHint: true;
544
- readonly openWorldHint: boolean;
545
- };
546
- readonly inputSchema: {
547
- readonly type: "object";
548
- readonly properties: {
549
- readonly booking: {
550
- readonly type: "string";
551
- readonly description: "The confirmation code or booking id";
552
- };
553
- readonly checkIn: {
554
- readonly type: "string";
555
- readonly description: "The new check-in, YYYY-MM-DD. Leave out to keep it";
556
- };
557
- readonly checkOut: {
558
- readonly type: "string";
559
- readonly description: "The new check-out, YYYY-MM-DD. Leave out to keep it";
560
- };
561
- readonly rooms: {
562
- readonly type: "integer";
563
- readonly minimum: 1;
564
- readonly maximum: 5;
565
- readonly description: "How many of that room type, 1 to 5. Leave out to keep it";
566
- };
567
- readonly room: {
568
- readonly type: "string";
569
- readonly description: "A different room type at the same hotel, by id or name";
570
- };
571
- readonly extra: {
572
- readonly type: "string";
573
- readonly description: `An add-on at this ${string}, by id or name, to put on the booking, take off or change - with \`quantity\``;
574
- };
575
- readonly quantity: {
576
- readonly type: "integer";
577
- readonly minimum: 0;
578
- readonly maximum: 20;
579
- readonly description: "How many of that add-on the booking should hold, 0 to 20; 0 takes it off";
580
- };
581
- readonly email: {
582
- readonly type: "string";
583
- readonly description: "The email the booking was made with, when it was made elsewhere";
584
- };
585
- readonly confirmed: {
586
- readonly type: "boolean";
587
- readonly description: "True makes the change. Anything else returns the preview";
588
- };
589
- };
590
- readonly required: readonly ["booking"];
591
- };
592
- } | {
593
- readonly name: `compare_${string}${string}`;
594
- readonly description: `Puts two to four ${string} side by side - as one card, in an app that draws one. Each column's price, rate, cancellation terms, breakfast and rooms left come from the ${string}'s own record; the arguments carry only the ids, one line on who each suits, and its pros and cons. With \`checkIn\`/\`checkOut\` the columns carry each ${string}'s cheapest room for those nights; without them, a from-price.`;
595
- readonly annotations: {
596
- readonly title: string;
597
- readonly readOnlyHint: true;
598
- readonly destructiveHint: false;
599
- readonly idempotentHint: true;
600
- readonly openWorldHint: boolean;
601
- };
602
- readonly inputSchema: {
603
- readonly type: "object";
604
- readonly properties: {
605
- readonly checkIn: {
606
- readonly type: "string";
607
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
608
- readonly description: `${string}, as YYYY-MM-DD`;
609
- };
610
- readonly checkOut: {
611
- readonly type: "string";
612
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
613
- readonly description: `${string}, as YYYY-MM-DD`;
614
- };
615
- readonly guests: {
616
- readonly type: "integer";
617
- readonly minimum: 1;
618
- readonly maximum: 8;
619
- readonly description: "People in the room. Default 2";
620
- };
621
- readonly entries: {
622
- readonly type: "array";
623
- readonly minItems: 2;
624
- readonly maxItems: 4;
625
- readonly description: `The ${string} to set beside each other, in the order they should appear`;
626
- readonly items: {
627
- readonly type: "object";
628
- readonly properties: {
629
- readonly hotel: {
630
- readonly type: "string";
631
- readonly description: `The ${string}'s name or id`;
632
- };
633
- readonly bestFor: {
634
- readonly type: "string";
635
- readonly description: "One line on who this one suits, in your own words";
636
- };
637
- readonly pros: {
638
- readonly type: "array";
639
- readonly items: {
640
- readonly type: "string";
641
- };
642
- readonly maxItems: 4;
643
- };
644
- readonly cons: {
645
- readonly type: "array";
646
- readonly items: {
647
- readonly type: "string";
648
- };
649
- readonly maxItems: 3;
650
- };
651
- };
652
- readonly required: readonly ["hotel"];
653
- };
654
- };
655
- readonly recommended: {
656
- readonly type: "string";
657
- readonly description: `The one ${string} to mark as the pick`;
658
- };
659
- readonly title: {
660
- readonly type: "string";
661
- readonly description: "A heading for the plan";
662
- };
663
- };
664
- readonly required: readonly ["entries"];
665
- };
666
- } | {
667
- readonly name: `show_${string}itinerary`;
668
- readonly description: `A day-by-day plan (\u884C\u7A0B) - one card, in an app that draws one - for a trip of several days, or for days a guest asked to have planned (a city with a span of dates and \u884C\u7A0B is one): the days are laid out by where they are spent, and each part of the trip has a ${string} near those days, chosen from the ${string} read up as text. Each day carries its own label, an optional note, the moments of the day in order, and the ${string} and add-ons attached to it, with their details filled in from their own records - a ${string} with its photograph and, given dates, the price of its nights. Each stay is marked with whether it is booked, in the trip or only in the plan, and the answer says how many of each. Nothing is added to the trip.`;
669
- readonly annotations: {
670
- readonly title: string;
671
- readonly readOnlyHint: true;
672
- readonly destructiveHint: false;
673
- readonly idempotentHint: true;
674
- readonly openWorldHint: boolean;
675
- };
676
- readonly inputSchema: {
677
- readonly type: "object";
678
- readonly properties: {
679
- readonly checkIn: {
680
- readonly type: "string";
681
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
682
- readonly description: `${string}, as YYYY-MM-DD`;
683
- };
684
- readonly checkOut: {
685
- readonly type: "string";
686
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
687
- readonly description: `${string}, as YYYY-MM-DD`;
688
- };
689
- readonly guests: {
690
- readonly type: "integer";
691
- readonly minimum: 1;
692
- readonly maximum: 8;
693
- readonly description: "People in the room. Default 2";
694
- };
695
- readonly title: {
696
- readonly type: "string";
697
- readonly description: "What to call the trip";
698
- };
699
- readonly days: {
700
- readonly type: "array";
701
- readonly minItems: 1;
702
- readonly maxItems: 10;
703
- readonly items: {
704
- readonly type: "object";
705
- readonly properties: {
706
- readonly label: {
707
- readonly type: "string";
708
- readonly description: `e.g. "Arrive${string}" - each day's date is printed beside it, so leave the date out`;
709
- };
710
- readonly note: {
711
- readonly type: "string";
712
- readonly description: "One or two lines on the day, in your own words";
713
- };
714
- readonly why: {
715
- readonly type: "string";
716
- readonly description: `Why the ${string} named on this day suits the days of that stay - near what, good for what - one sentence, in your own words, with no lead-in such as "My pick:" - the plan has its own`;
717
- };
718
- readonly items: {
719
- readonly type: "array";
720
- readonly items: {
721
- readonly type: "string";
722
- };
723
- readonly maxItems: 6;
724
- readonly description: `${string} and add-ons for that day, by name or id`;
725
- };
726
- readonly plan: {
727
- readonly type: "array";
728
- readonly maxItems: 5;
729
- readonly description: "The day in order, in your own words: when, and what happens then. Nothing in it is booked or priced";
730
- readonly items: {
731
- readonly type: "object";
732
- readonly properties: {
733
- readonly time: {
734
- readonly type: "string";
735
- readonly description: "When in the day, e.g. \"Afternoon\" or \"19:00\"";
736
- };
737
- readonly what: {
738
- readonly type: "string";
739
- readonly description: "What happens then, in a few words";
740
- };
741
- readonly note: {
742
- readonly type: "string";
743
- readonly description: "One line more, optional";
744
- };
745
- };
746
- readonly required: readonly ["what"];
747
- };
748
- };
749
- };
750
- readonly required: readonly ["label"];
751
- };
752
- };
753
- };
754
- readonly required: readonly ["title", "days"];
755
- };
756
- } | {
757
- readonly name: `sign_in_${string}member`;
758
- readonly description: `Signs ${string} loyalty member in (log in) for this conversation - ${string} \u4F1A\u5458\u767B\u5F55 - on ${string}'s own sign-in page: answers with a one-time link and a short code the page shows too, where the guest types their membership number and the surname on it; the chat does not carry them. Once they have, it answers with their tier, their point balance and what the tier takes off the public rate; room rates and trip totals are then quoted at the member rate until they are signed out.`;
759
- readonly annotations: {
760
- readonly title: string;
761
- readonly readOnlyHint: false;
762
- readonly destructiveHint: false;
763
- readonly idempotentHint: true;
764
- readonly openWorldHint: boolean;
765
- };
766
- readonly inputSchema: {
767
- readonly type: "object";
768
- readonly properties: {
769
- readonly lang: {
770
- readonly type: "string";
771
- readonly enum: readonly ["zh", "en"];
772
- readonly description: "The language the page opens in: zh for a guest writing Chinese, en otherwise. The page has a switch.";
773
- };
774
- };
775
- };
776
- } | {
777
- readonly name: `card_${string}member`;
778
- readonly description: `The booking card's own way to start ${string} membership sign-in, or to see whether its page has been used yet - for the conversation the card was drawn for.`;
779
- readonly annotations: {
780
- readonly title: string;
781
- readonly readOnlyHint: false;
782
- readonly destructiveHint: false;
783
- readonly idempotentHint: true;
784
- readonly openWorldHint: boolean;
785
- };
786
- readonly inputSchema: {
787
- readonly type: "object";
788
- readonly properties: {
789
- readonly action: {
790
- readonly type: "string";
791
- readonly enum: readonly ["sign_in", "view"];
792
- readonly description: "sign_in: a new one-time sign-in page; view: whether this conversation is signed in yet";
793
- };
794
- readonly lang: {
795
- readonly type: "string";
796
- readonly enum: readonly ["zh", "en"];
797
- readonly description: "The language the page opens in";
798
- };
799
- };
800
- readonly required: readonly ["action"];
801
- };
802
- } | {
803
- readonly name: `sign_out_${string}member`;
804
- readonly description: "Ends the membership sign-in for this conversation. Rates go back to the public ones; the trip and any bookings are left as they are.";
805
- readonly annotations: {
806
- readonly title: string;
807
- readonly readOnlyHint: false;
808
- readonly destructiveHint: false;
809
- readonly idempotentHint: true;
810
- readonly openWorldHint: boolean;
811
- };
812
- readonly inputSchema: {
813
- readonly type: "object";
814
- readonly properties: {};
815
- };
816
- } | {
817
- readonly name: `forget_${string}preferences`;
818
- readonly description: `Forgets the room preferences saved on the signed-in ${string} membership - a bed type, a floor, a quiet or connecting room. Bookings already made keep what they asked for.`;
819
- readonly annotations: {
820
- readonly title: "Forget my saved preferences";
821
- readonly readOnlyHint: false;
822
- readonly destructiveHint: true;
823
- readonly idempotentHint: true;
824
- readonly openWorldHint: boolean;
825
- };
826
- readonly inputSchema: {
827
- readonly type: "object";
828
- readonly properties: {};
829
- };
830
- } | {
831
- readonly name: `get_${string}${string}_policies`;
832
- readonly description: `What one ${string} publishes about cancellation, check-in and check-out, children and extra beds, pets, deposits and accessibility. With \`topic\` it returns that topic; without, all of them.`;
833
- readonly annotations: {
834
- readonly title: string;
835
- readonly readOnlyHint: true;
836
- readonly destructiveHint: false;
837
- readonly idempotentHint: true;
838
- readonly openWorldHint: boolean;
839
- };
840
- readonly inputSchema: {
841
- readonly type: "object";
842
- readonly properties: {
843
- readonly hotel: {
844
- readonly type: "string";
845
- readonly description: `The ${string}'s name or id`;
846
- };
847
- readonly topic: {
848
- readonly type: "string";
849
- readonly enum: readonly ["cancellation", "check-in", "children", "pets", "deposit", "accessibility"];
850
- };
851
- };
852
- readonly required: readonly ["hotel"];
853
- };
854
- } | {
855
- readonly name: `pay_${string}booking_with_unionpay`;
856
- readonly description: `Pays ${string} stay that is waiting for its payment with UnionPay instead of the card page. Answers UnionPay's own page to confirm it on - or, when that email has no UnionPay card on file, UnionPay's page to add one first. Nothing is charged by this call: the guest confirms on UnionPay's page, and the hotel charges the one-time card UnionPay issues for the stay.`;
857
- readonly annotations: {
858
- readonly title: "Pay with UnionPay";
859
- readonly readOnlyHint: false;
860
- readonly destructiveHint: false;
861
- readonly idempotentHint: true;
862
- readonly openWorldHint: true;
863
- };
864
- readonly inputSchema: {
865
- readonly type: "object";
866
- readonly properties: {
867
- readonly booking: {
868
- readonly type: "string";
869
- readonly description: "The confirmation code of the stay waiting for its payment";
870
- };
871
- readonly email: {
872
- readonly type: "string";
873
- readonly description: "The email the stay was booked with";
874
- };
875
- };
876
- readonly required: readonly ["booking", "email"];
877
- };
878
- } | {
879
- readonly name: `pick_${string}room`;
880
- readonly description: "The card's own step when the guest presses Reserve on one rate: the one room being booked, replacing whatever was picked before. It does not touch the trip, which holds the stays an assistant arranges.";
881
- readonly annotations: {
882
- readonly title: string;
883
- readonly readOnlyHint: false;
884
- readonly destructiveHint: false;
885
- readonly idempotentHint: true;
886
- readonly openWorldHint: boolean;
887
- };
888
- readonly inputSchema: {
889
- readonly type: "object";
890
- readonly properties: {
891
- readonly rooms: {
892
- readonly type: "integer";
893
- readonly minimum: 0;
894
- readonly maximum: 5;
895
- readonly description: "How many of that room type, 1 to 5. Default 1; 0 empties the pick";
896
- };
897
- readonly checkIn: {
898
- readonly type: "string";
899
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
900
- readonly description: `${string}, as YYYY-MM-DD`;
901
- };
902
- readonly checkOut: {
903
- readonly type: "string";
904
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
905
- readonly description: `${string}, as YYYY-MM-DD`;
906
- };
907
- readonly guests: {
908
- readonly type: "integer";
909
- readonly minimum: 1;
910
- readonly maximum: 8;
911
- readonly description: "People in the room. Default 2";
912
- };
913
- readonly hotel: {
914
- readonly type: "string";
915
- readonly description: `The ${string}'s name or id`;
916
- };
917
- readonly room: {
918
- readonly type: "string";
919
- readonly description: "The room type id or name, as the hotel returned it";
920
- };
921
- };
922
- readonly required: readonly ["hotel", "room"];
923
- };
924
- } | {
925
- readonly name: `book_picked_${string}room`;
926
- readonly description: "The card's own step when the guest submits the booking form for the room they picked with Reserve: books that one room for the named guest, the way a trip's rooms are booked. Leaves the trip as it is.";
927
- readonly annotations: {
928
- readonly title: string;
929
- readonly readOnlyHint: false;
930
- readonly destructiveHint: true;
931
- readonly idempotentHint: false;
932
- readonly openWorldHint: boolean;
933
- };
934
- readonly inputSchema: {
935
- readonly type: "object";
936
- readonly properties: {
937
- readonly startTime: {
938
- readonly type: "string";
939
- readonly description: "For a room by the hour: the start the form shows, HH:MM";
940
- };
941
- readonly checkIn: {
942
- readonly type: "string";
943
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
944
- readonly description: `${string}, as YYYY-MM-DD`;
945
- };
946
- readonly checkOut: {
947
- readonly type: "string";
948
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
949
- readonly description: `${string}, as YYYY-MM-DD`;
950
- };
951
- readonly guests: {
952
- readonly type: "integer";
953
- readonly minimum: 1;
954
- readonly maximum: 8;
955
- readonly description: "People in the room. Default 2";
956
- };
957
- readonly hotel: {
958
- readonly type: "string";
959
- readonly description: `The ${string} id on the form`;
960
- };
961
- readonly room: {
962
- readonly type: "string";
963
- readonly description: "The room type id on the form";
964
- };
965
- readonly rooms: {
966
- readonly type: "integer";
967
- readonly minimum: 1;
968
- readonly maximum: 5;
969
- readonly description: "How many of that room type the form shows";
970
- };
971
- readonly name: {
972
- readonly type: "string";
973
- readonly description: "The guest's full name, as it should appear on the booking";
974
- };
975
- readonly email: {
976
- readonly type: "string";
977
- readonly description: "The email the confirmation goes to";
978
- };
979
- readonly phone: {
980
- readonly type: "string";
981
- readonly description: "Optional";
982
- };
983
- readonly requests: {
984
- readonly type: "array";
985
- readonly items: {
986
- readonly type: "string";
987
- readonly enum: RoomRequestKind[];
988
- };
989
- readonly description: "Preferences the desk tries to meet on the day. None of them is held; the answer says so";
990
- };
991
- readonly arrivingAt: {
992
- readonly type: "string";
993
- readonly description: "What time the guest reaches the hotel, `HH:MM` on the hotel's own clock. A time counts as a late arrival on its own";
994
- };
995
- readonly notes: {
996
- readonly type: "string";
997
- readonly description: "Anything else for the desk, in the guest's own words, up to 200 characters";
998
- };
999
- readonly rememberRequests: {
1000
- readonly type: "boolean";
1001
- readonly description: "True when the guest asked for these room preferences to be remembered for their next stays. Needs a signed-in member; what is kept is the lasting kind - a bed type, a floor, a quiet or connecting room; an accessible room is asked for on each stay and is not kept";
1002
- };
1003
- };
1004
- readonly required: readonly ["name", "email"];
1005
- };
1006
- } | {
1007
- readonly name: `card_${string}terms`;
1008
- readonly description: "The card's own step when the guest presses \"Agree and continue\" under a hotel group's booking terms: it sends the guest's agreement to the terms behind `ref` and the stay is then booked with the group. It answers like a booking: the booking's payment page, the terms again, or why nothing was booked.";
1009
- readonly annotations: {
1010
- readonly title: string;
1011
- readonly readOnlyHint: false;
1012
- readonly destructiveHint: true;
1013
- readonly idempotentHint: false;
1014
- readonly openWorldHint: boolean;
1015
- };
1016
- readonly inputSchema: {
1017
- readonly type: "object";
1018
- readonly properties: {
1019
- readonly ref: {
1020
- readonly type: "string";
1021
- readonly description: "The terms the card is showing, by the reference the booking answer gave";
1022
- };
1023
- };
1024
- readonly required: readonly ["ref"];
1025
- };
1026
- } | {
1027
- readonly name: `refund_${string}booking`;
1028
- readonly description: "Asks the hotel group to refund, in full, a booking made here that has been paid. TWO STEPS: the first call (no `confirmed`) only previews - the amount and the group's own refund terms - and asks nothing of the group; say them to the guest, and only when they say yes call again with `confirmed: true`. The second answer says what the group did with the request.";
1029
- readonly annotations: {
1030
- readonly title: string;
1031
- readonly readOnlyHint: false;
1032
- readonly destructiveHint: true;
1033
- readonly idempotentHint: true;
1034
- readonly openWorldHint: boolean;
1035
- };
1036
- readonly inputSchema: {
1037
- readonly type: "object";
1038
- readonly properties: {
1039
- readonly booking: {
1040
- readonly type: "string";
1041
- readonly description: "The confirmation code or order id, as the booking answer gave it";
1042
- };
1043
- readonly reason: {
1044
- readonly type: "string";
1045
- readonly maxLength: 200;
1046
- readonly description: "Optional, the guest's reason in their own words, up to 200 characters";
1047
- };
1048
- readonly confirmed: {
1049
- readonly type: "boolean";
1050
- readonly description: "true only after the guest was shown the refund preview this tool answers with and said yes. Without it, the answer is that preview and nothing is asked of the group.";
1051
- };
1052
- };
1053
- readonly required: readonly ["booking"];
1054
- };
1055
- } | {
1056
- readonly name: `list_${string}booking_addons`;
1057
- readonly description: "What can be added to a booking made here after it was made - an airport transfer and the like - each with its id, name, price and the details it needs. Only a booking made here has any.";
1058
- readonly annotations: {
1059
- readonly title: string;
1060
- readonly readOnlyHint: true;
1061
- readonly destructiveHint: false;
1062
- readonly idempotentHint: true;
1063
- readonly openWorldHint: boolean;
1064
- };
1065
- readonly inputSchema: {
1066
- readonly type: "object";
1067
- readonly properties: {
1068
- readonly booking: {
1069
- readonly type: "string";
1070
- readonly description: "The confirmation code or order id, as the booking answer gave it";
1071
- };
1072
- };
1073
- readonly required: readonly ["booking"];
1074
- };
1075
- } | {
1076
- readonly name: `add_${string}booking_addon`;
1077
- readonly description: "Prepares adding one add-on to a booking made here, at the price the add-on list gave. It does NOT add it: the answer gives a one-time page address for the guest to open in the browser signed in to their account, where they see the add-on, the price, the total and the booking, and press confirm themselves. Pass that link on; never say the add-on was added until the guest has confirmed it and the booking says so. It checks the id, the details and the price again as it prepares, and refuses a booking that is not theirs or is over.";
1078
- readonly annotations: {
1079
- readonly title: string;
1080
- readonly readOnlyHint: false;
1081
- readonly destructiveHint: false;
1082
- readonly idempotentHint: false;
1083
- readonly openWorldHint: boolean;
1084
- };
1085
- readonly inputSchema: {
1086
- readonly type: "object";
1087
- readonly properties: {
1088
- readonly booking: {
1089
- readonly type: "string";
1090
- readonly description: "The confirmation code or order id, as the booking answer gave it";
1091
- };
1092
- readonly addon: {
1093
- readonly type: "string";
1094
- readonly description: "The add-on id, as the add-on list gave it";
1095
- };
1096
- readonly direction: {
1097
- readonly type: "string";
1098
- readonly enum: readonly ["arrival", "departure", "round_trip"];
1099
- readonly description: "For a transfer: to the hotel, from it, or both";
1100
- };
1101
- readonly flightNo: {
1102
- readonly type: "string";
1103
- readonly description: "For a transfer: the flight number, e.g. MU5101";
1104
- };
1105
- readonly pickupTime: {
1106
- readonly type: "string";
1107
- readonly description: "For a transfer: the pick-up time, HH:MM";
1108
- };
1109
- readonly date: {
1110
- readonly type: "string";
1111
- readonly description: "The date it is for, YYYY-MM-DD";
1112
- };
1113
- readonly quantity: {
1114
- readonly type: "integer";
1115
- readonly minimum: 1;
1116
- readonly maximum: 10;
1117
- readonly description: "How many, 1 to 10, for an add-on that is bought by the piece. Default 1";
1118
- };
1119
- readonly partySize: {
1120
- readonly type: "integer";
1121
- readonly minimum: 1;
1122
- readonly maximum: 10;
1123
- readonly description: "For a transfer: how many passengers, 1 to 10. Default 1";
1124
- };
1125
- };
1126
- readonly required: readonly ["booking", "addon"];
1127
- };
1128
- } | {
1129
- name: string;
1130
- description: string;
1131
- annotations: {
1132
- readonly title: string;
1133
- readonly readOnlyHint: true;
1134
- readonly destructiveHint: false;
1135
- readonly idempotentHint: true;
1136
- readonly openWorldHint: boolean;
1137
- };
1138
- inputSchema: {
1139
- type: string;
1140
- properties: {
1141
- query: {
1142
- type: string;
1143
- description: string;
1144
- };
1145
- category: {
1146
- type: string;
1147
- description: string;
1148
- };
1149
- maxPrice: {
1150
- type: string;
1151
- minimum: number;
1152
- description: string;
1153
- };
1154
- item: {
1155
- type: string;
1156
- description: string;
1157
- };
1158
- option?: undefined;
1159
- quantity?: undefined;
1160
- booking?: undefined;
1161
- unitPrice?: undefined;
1162
- currency?: undefined;
1163
- action?: undefined;
1164
- catalogId?: undefined;
1165
- direction?: undefined;
1166
- flightNo?: undefined;
1167
- pickupTime?: undefined;
1168
- date?: undefined;
1169
- partySize?: undefined;
1170
- shownTotal?: undefined;
1171
- order?: undefined;
1172
- shownUnit?: undefined;
1173
- press?: undefined;
1174
- };
1175
- required?: undefined;
1176
- };
1177
- } | {
1178
- name: string;
1179
- description: string;
1180
- annotations: {
1181
- readonly title: string;
1182
- readonly readOnlyHint: true;
1183
- readonly destructiveHint: false;
1184
- readonly idempotentHint: true;
1185
- readonly openWorldHint: boolean;
1186
- };
1187
- inputSchema: {
1188
- type: string;
1189
- properties: {
1190
- query?: undefined;
1191
- category?: undefined;
1192
- maxPrice?: undefined;
1193
- item?: undefined;
1194
- option?: undefined;
1195
- quantity?: undefined;
1196
- booking?: undefined;
1197
- unitPrice?: undefined;
1198
- currency?: undefined;
1199
- action?: undefined;
1200
- catalogId?: undefined;
1201
- direction?: undefined;
1202
- flightNo?: undefined;
1203
- pickupTime?: undefined;
1204
- date?: undefined;
1205
- partySize?: undefined;
1206
- shownTotal?: undefined;
1207
- order?: undefined;
1208
- shownUnit?: undefined;
1209
- press?: undefined;
1210
- };
1211
- required?: undefined;
1212
- };
1213
- } | {
1214
- name: string;
1215
- description: string;
1216
- annotations: {
1217
- readonly title: string;
1218
- readonly readOnlyHint: false;
1219
- readonly destructiveHint: false;
1220
- readonly idempotentHint: false;
1221
- readonly openWorldHint: boolean;
1222
- };
1223
- inputSchema: {
1224
- type: string;
1225
- properties: {
1226
- item: {
1227
- type: string;
1228
- description: string;
1229
- };
1230
- option: {
1231
- type: string;
1232
- description: string;
1233
- };
1234
- quantity: {
1235
- type: string;
1236
- minimum: number;
1237
- maximum: number;
1238
- description: string;
1239
- };
1240
- booking: {
1241
- type: string;
1242
- description: string;
1243
- };
1244
- unitPrice: {
1245
- type: string;
1246
- exclusiveMinimum: number;
1247
- description: string;
1248
- };
1249
- currency: {
1250
- type: string;
1251
- description: string;
1252
- };
1253
- query?: undefined;
1254
- category?: undefined;
1255
- maxPrice?: undefined;
1256
- action?: undefined;
1257
- catalogId?: undefined;
1258
- direction?: undefined;
1259
- flightNo?: undefined;
1260
- pickupTime?: undefined;
1261
- date?: undefined;
1262
- partySize?: undefined;
1263
- shownTotal?: undefined;
1264
- order?: undefined;
1265
- shownUnit?: undefined;
1266
- press?: undefined;
1267
- };
1268
- required: string[];
1269
- };
1270
- } | {
1271
- name: string;
1272
- description: string;
1273
- annotations: {
1274
- readonly title: string;
1275
- readonly readOnlyHint: false;
1276
- readonly destructiveHint: true;
1277
- readonly idempotentHint: false;
1278
- readonly openWorldHint: boolean;
1279
- };
1280
- inputSchema: {
1281
- type: string;
1282
- properties: {
1283
- action: {
1284
- type: string;
1285
- enum: string[];
1286
- };
1287
- booking: {
1288
- type: string;
1289
- description: string;
1290
- };
1291
- catalogId: {
1292
- type: string;
1293
- description: string;
1294
- };
1295
- direction: {
1296
- type: string;
1297
- enum: string[];
1298
- };
1299
- flightNo: {
1300
- type: string;
1301
- };
1302
- pickupTime: {
1303
- type: string;
1304
- description: string;
1305
- };
1306
- date: {
1307
- type: string;
1308
- description: string;
1309
- };
1310
- quantity: {
1311
- type: string;
1312
- minimum: number;
1313
- maximum: number;
1314
- description?: undefined;
1315
- };
1316
- partySize: {
1317
- type: string;
1318
- minimum: number;
1319
- maximum: number;
1320
- };
1321
- shownTotal: {
1322
- type: string;
1323
- description: string;
1324
- };
1325
- currency: {
1326
- type: string;
1327
- description: string;
1328
- };
1329
- item: {
1330
- type: string;
1331
- description: string;
1332
- };
1333
- order: {
1334
- type: string;
1335
- description: string;
1336
- };
1337
- option: {
1338
- type: string;
1339
- description: string;
1340
- };
1341
- shownUnit: {
1342
- type: string;
1343
- description: string;
1344
- };
1345
- press: {
1346
- type: string;
1347
- description: string;
1348
- };
1349
- query?: undefined;
1350
- category?: undefined;
1351
- maxPrice?: undefined;
1352
- unitPrice?: undefined;
1353
- };
1354
- required: string[];
1355
- };
1356
- })[];
1357
- /**
1358
- * The most hotels a list priced for tonight by default holds on one page
1359
- * (`listsTonight`, 0.75.1, 总线程 11-18): every one is a price asked of the group - two
1360
- * calls, and its products - so a guest who named no nights waits for twelve at most, and
1361
- * the rest come with the next page. A `limit` above it is taken as this.
1362
- */
1363
- export declare const TONIGHT_PAGE_MAX = 12;
1364
- /**
1365
- * The list tool where the deployment is one hotel in all (2026-10-15, Huazhu's
1366
- * test system): asked with no place it answers with that hotel's page, not
1367
- * with places to choose from - and says so, or the model offers to look in
1368
- * another city (three smoke runs did). Where it is a few (`HOME_LIST_MAX`,
1369
- * Huazhu's production, 2026-10-30), asked with no place it lists all of them.
1370
- * Never in a market.
1371
- *
1372
- * ⚠️ `all` SAYS SO TOO (0.51.1): its "true lists the hotels themselves" is
1373
- * what had the model open Huazhu's production with `all: true` - the one way
1374
- * past the home, with no tonight and no prices. It is the home there now, and
1375
- * its description says it changes nothing.
1376
- */
1377
- export declare const homeListing: <T extends {
1378
- name: string;
1379
- description: string;
1380
- inputSchema?: unknown;
1381
- }>(t: T, brand: {
1382
- tools: ToolNames;
1383
- vocab: Vocabulary;
1384
- }, count: number) => T;
1385
- export declare const withheldTools: (n: ToolNames, caps: BackendCapabilities) => Set<string>;
1386
- /**
1387
- * Orders are the ACCOUNT'S (Otaless, 0.75.0 T5/T6): the group's own checkout with booking on.
1388
- * A booking is found by the account that made it - never by a confirmation code and the email
1389
- * it was made with - and what it sends the group is the guest's name, phone, email, dates and
1390
- * rooms and nothing else (no requests, arrival time or notes). So no tool lists an `email` to
1391
- * find one, nor a field the order has nowhere to carry. (`groupCheckout` is only ever Otaless's.)
1392
- */
1393
- export declare const ordersByAccount: (caps: BackendCapabilities) => boolean;
1394
- /**
1395
- * What to tell a guest who wants to book where nothing can be booked yet
1396
- * (`capabilities.readOnly`) - the same words in the instructions and in each
1397
- * answer that would otherwise say how to book.
1398
- */
1399
- export declare const readOnlyWords: (v: Pick<Vocabulary, "brand" | "noun">) => string;
1400
- /**
1401
- * Said with every price where nothing can be booked yet (`capabilities.readOnly`;
1402
- * 总线程 11-09, Manus on Otaless after 0.59.0): asked for a hotel's rooms after a
1403
- * comparison, the model answered from the comparison - which said nothing of
1404
- * it - and called them "两种可订房型", with nowhere to book. On a list, a hotel's
1405
- * page, a comparison and a plan, in the text and, word for word, in the
1406
- * structure (`notBookable`); what `readOnlyWords` tells it to do when the guest
1407
- * asks to book, in one sentence.
1408
- */
1409
- export declare const notBookableWords: (v: Pick<Vocabulary, "brand" | "noun">) => string;
1410
- /**
1411
- * The value-added service orders tool (0.84.1). ⚠️ Says what it reads, in the words a guest uses for it
1412
- * (增值服务订单, 商城订单, shop orders, add-on orders - one thing), and that they are not hotel bookings;
1413
- * names no other tool and tells the model nothing to do (listing.ts).
1414
- */
1415
- 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.";
1416
- /** Said by the bookings list where the shop is on (0.84.1). */
1417
- 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.";
1418
- /**
1419
- * The output schemas with what this backend never fills taken out.
1420
- *
1421
- * ⚠️ A SCHEMA PROMISES. A Huazhu hotel's still promised its add-ons and
1422
- * policies, and every trip a member badge and saving (2026-10-05 audit) -
1423
- * fields no answer there ever carries.
1424
- */
1425
- export declare const outputSchemasFor: (schemas: Record<string, unknown>, caps: BackendCapabilities, lang?: Lang, also?: {
1426
- logoDark?: boolean;
1427
- logoByLang?: boolean;
1428
- accent?: boolean;
1429
- primary?: boolean;
1430
- primaryDark?: boolean;
1431
- fonts?: boolean;
1432
- homeImage?: boolean;
1433
- brandNames?: boolean;
1434
- }) => Record<string, unknown>;
1435
- /**
1436
- * ⚠️ ONLY WHERE THE SHOP'S NAMES EXIST (`data.otaless.shop`): its two tools' schemas, and the
1437
- * shop views a bookings list and a cancellation may also answer with. Everywhere else the schemas
1438
- * are the ones above, untouched.
1439
- */
1440
- export declare const buildOutputSchemas: (n: ToolNames) => Record<string, unknown>;
1441
- /** The languages the card draws its own words in. */
1442
- export type Lang = 'zh' | 'en';
1443
- /**
1444
- * A group's own type for the card: the stylesheets it loads (absolute, each a
1445
- * font of @curless/brand-fonts, served by us) and, for each use, the families
1446
- * as a CSS list - put before the card's system fonts, which stay behind them.
1447
- */
1448
- export type BrandFonts = {
1449
- css: string[];
1450
- display?: string;
1451
- body?: string;
1452
- numeric?: string;
1453
- };
1454
- export type ToolDeps = {
1455
- backend: HotelBackend;
1456
- /** The membership sign-in's page (account/member-login.ts), where members sign in. */
1457
- memberLogin?: MemberLogin;
1458
- /**
1459
- * The tool names this deployment offers, when it offers fewer than all -
1460
- * the card is sent only these, so it draws no button for a missing tool.
1461
- */
1462
- offered?: ReadonlySet<string>;
1463
- trips: TripStore;
1464
- members: MemberStore;
1465
- tools: ToolNames;
1466
- vocab: Vocabulary;
1467
- /** The group's own name in other languages, for the card - see `HotelConfig.names`. */
1468
- brandNames?: Names;
1469
- logoUrl?: string;
1470
- /** The group's own logo for a dark page - see `HotelConfig.server.logoDarkFile`. */
1471
- logoDarkUrl?: string;
1472
- /** The header's logo by the card's language - see `HotelConfig.server.logoByLang`. */
1473
- logoByLang?: Record<string, {
1474
- url: string;
1475
- darkUrl?: string;
1476
- }>;
1477
- /** The group's colour, for the card's decoration only - see `HotelConfig.server.accent`. */
1478
- accent?: string;
1479
- /** The group's primary colour and its shades - see `HotelConfig.server.primary`. */
1480
- primary?: {
1481
- color: string;
1482
- hover?: string;
1483
- press?: string;
1484
- dark?: string;
1485
- };
1486
- /** The one picture on the card's home, an https address - see `HotelConfig.server.homeImage`. */
1487
- homeImage?: string;
1488
- /**
1489
- * The card's type - every hotel card's, see server.ts `HOTEL_TYPE`: the
1490
- * stylesheets to load and, for each use, the families to put before the card's own.
1491
- */
1492
- fonts?: BrandFonts;
1493
- /** The header shows the name beside the logo - see `HotelConfig.server.showName`. */
1494
- showName?: boolean;
1495
- /**
1496
- * The language the card draws its own words in - see `langOf`. Today the
1497
- * deployment's (`data.api.language`); absent, English.
1498
- */
1499
- lang?: Lang;
1500
- /**
1501
- * Missed guesses at a booking's code and email, or a membership's number and
1502
- * surname - see limits.ts. Absent, nothing is counted.
1503
- */
1504
- misses?: Misses;
1505
- /**
1506
- * How many hotels the whole deployment has (`Made.hotelCount`). A list that
1507
- * narrowed nothing counts them itself; a narrowed one needs this to know the
1508
- * deployment fits on one page (`HOME_LIST_MAX`). Absent, only an unnarrowed
1509
- * list knows.
1510
- */
1511
- hotelCount?: () => number;
1512
- /**
1513
- * The one-time page where a guest of a client that draws no card reads a
1514
- * group's booking terms and agrees to them (account layer, server.ts - docs
1515
- * §13.6): `ref` is the terms' reference. Absent, or undefined, there is no
1516
- * such page for this guest, and the terms can only be agreed to on a card.
1517
- * ⚠️ THE LINK IS THE GUEST'S: it opens only in the browser signed in to their
1518
- * account and works once - it is handed to the guest, never opened here.
1519
- */
1520
- termsLink?: (key: string, ref: string,
1521
- /** Absent: the URL names no language and the page picks the browser's own. */
1522
- lang?: Lang) => {
1523
- url: string;
1524
- expiresAt: string;
1525
- } | undefined;
1526
- /**
1527
- * How a guest signs in at one hotel group when a booking needs it (`sign-in`,
1528
- * `signed-out`, `session-expired`): the account's link tool, which takes
1529
- * `group`, else its sign-in tool. Absent, the refusal's own words stand.
1530
- */
1531
- groupSignIn?: {
1532
- linkTool?: string;
1533
- signInTool?: string;
1534
- };
1535
- /**
1536
- * Who the conversation is signed in to the account as, or undefined when nobody is (0.84.8): where
1537
- * orders are the account's, a list of bookings with no one signed in says so - never "no bookings".
1538
- */
1539
- accountWho?: (key: string) => string | undefined;
1540
- /**
1541
- * 0.82.0: a one-time link to confirm an add-on prepared for this conversation (account.addonLink) -
1542
- * the model's add-on tools only PREPARE one; absent, they can give the guest no page. The page is
1543
- * on `/account`, not a new path.
1544
- */
1545
- addonLink?: (key: string, ref: string, lang?: Lang) => {
1546
- url: string;
1547
- expiresAt: string;
1548
- } | undefined;
1549
- /**
1550
- * 0.84.2 (the 11-25 code audit's P1-8, `account.cancelOnPage` only - account.cancelLink): a one-time
1551
- * page to cancel a booking on, for a client that draws no card - the model's `confirmed` then cancels
1552
- * nothing, the guest's press there does. Absent: `confirmed` cancels, as before. On `/account`.
1553
- */
1554
- cancelLink?: (key: string, facts: CancelFacts) => {
1555
- url: string;
1556
- expiresAt: string;
1557
- } | undefined;
1558
- /**
1559
- * 0.84.0 (`data.fullCurrency`, 总线程's task 7): every amount an answer writes in words names its
1560
- * whole currency - US$, CN¥ (money.ts `inFullCurrency`). Absent: as `formatMoney` always wrote them.
1561
- */
1562
- fullCurrency?: boolean;
1563
- /**
1564
- * 0.84.4 (`data.bookingsByTime`, robin 11-25 「按照时间和状态来」): the bookings list's words in time and
1565
- * state, each part headed (`bookingsInTime`). Absent: in the backend's order, as before.
1566
- */
1567
- bookingsByTime?: boolean;
1568
- /**
1569
- * 0.84.0 (`account.cookieSameSite: "Lax"`, robin 11-24 「改回登录」): a link to our pages clicked in
1570
- * the chat carries the account cookie, so the words a client that draws no card is given for one
1571
- * say it opens signed in in the guest's own browser, and is theirs alone to press
1572
- * (account/page-words.ts). Absent: the words are as they were.
1573
- */
1574
- accountCookieLax?: boolean;
1575
- /**
1576
- * 0.82.0: where the guest links their shop account (the account's link tool and the shop's
1577
- * group code, `account.memberships` with `via: "addon"`) - only where that entry is configured.
1578
- */
1579
- shopLink?: {
1580
- signIn: string;
1581
- signOut: string;
1582
- };
1583
- /**
1584
- * In a market: the groups a search keeps quiet about (`data.quietGroups`, robin
1585
- * 11-16 - Accor on Otaless). Not answering, or not looked up without a place, is
1586
- * neither drawn on the card nor said to the guest unprompted - see `degradedOf`.
1587
- * Absent: every group is said.
1588
- */
1589
- quietGroups?: ReadonlySet<string>;
1590
- };
1591
- export type ToolContext = {
1592
- /** The host's `Mcp-Session-Id`, or a per-connection fallback. Never a shared constant. */
1593
- session: string;
1594
- /**
1595
- * The trip this call is about, when the caller named one.
1596
- *
1597
- * The card names it: its tool calls arrive on a different connection from the
1598
- * conversation's, so a key built from the session alone is a DIFFERENT key -
1599
- * which is how the shopping connector once told a buyer their card-filled
1600
- * cart was empty. See trip-ids.ts.
1601
- */
1602
- tripKey?: string;
1603
- /** The client's network address, as the edge proxy saw it - for the booking limits only. */
1604
- ip?: string;
1605
- /**
1606
- * The client said at `initialize` that it shows no cards (`cardSupport` in
1607
- * sessions.ts). An answer whose card carries what the model would say - the
1608
- * plan, the comparison - then says that nothing was drawn and carries it in
1609
- * words. Absent - a card host, or a session from before a restart - every
1610
- * answer is as it always was.
1611
- */
1612
- noCards?: boolean;
1613
- /**
1614
- * The list asking itself again for tonight, nights nobody named (`listsTonight`): the
1615
- * backend prices the page alone (`SearchAsked.pricePageOnly`). Set by the list alone.
1616
- */
1617
- pricePageOnly?: true;
1618
- /**
1619
- * The caller is the server's own one-time terms page, which needs the terms'
1620
- * `ref` and text in the answer's `meta` whatever the client is (it never
1621
- * reaches a model). Set by `contextFor` alone.
1622
- */
1623
- termsMeta?: boolean;
1624
- /**
1625
- * The client said at `initialize` that it draws cards (`cardSupport`: the MCP
1626
- * Apps extension, or a host known to draw them). Only then is the model told the
1627
- * card already lists the hotels or the rooms (`ON_CARD`). Absent - a client that
1628
- * draws none, or a session from before a restart - it is told nothing of the kind:
1629
- * shopify-storefront 0.69.0 told every client "the card shows them, say one line",
1630
- * and on Manus, Muse and Claude Code the guest saw no product at all.
1631
- */
1632
- drawsCards?: boolean;
1633
- /**
1634
- * The conversation's id, as its answers give it to a client that draws no
1635
- * card (0.67.0, server.ts `inWords`): an answer that says what to call next
1636
- * says to pass it, so a new connection finds this conversation.
1637
- */
1638
- tripInWords?: string;
1639
- /**
1640
- * The conversation this connection acts in, as a trip key, where it is not its own
1641
- * session's (0.67.1): a client that draws no card, on a new connection that took its
1642
- * conversation over (server.ts `Sessions.bind`). A booking is that conversation's.
1643
- */
1644
- conversation?: string;
1645
- /**
1646
- * The guest pressed Cancel on the one-time cancel page (0.84.2, P1-8 - `cancelOnPage`): the preview
1647
- * that page showed (`cancelShapeOf`). The cancel goes ahead only if the preview is still that. Set by
1648
- * `cancelOnPage` alone - never from a tool call.
1649
- */
1650
- cancelPressed?: string;
1651
- };
1652
- export type ToolAnswer = {
1653
- structured: Record<string, unknown>;
1654
- text: string;
1655
- /** The card's alone, beside the answer (`_meta`) - never the model's: a sign-in link's code. */
1656
- meta?: Record<string, unknown>;
1657
- /** The call itself was wrong - a count out of range - not the world: see `countProblem`. */
1658
- isError?: boolean;
1659
- };
1660
- /**
1661
- * ⚠️ THE GUEST'S PRESS ON THE ONE-TIME CANCEL PAGE (0.84.2, the 11-25 code audit's P1-8 - account/index.ts
1662
- * `cancels`): the cancel tool's own confirmed cancel - the same 9, 9.1 and value-added service orders as
1663
- * a card's button - for the conversation the link was made in, and only if the preview is still the one
1664
- * the page showed (`facts.shape`). How it came out, for the page. Throws only what the tool throws.
1665
- */
1666
- export declare const cancelOnPage: (deps: ToolDeps, key: string, facts: CancelFacts) => Promise<CancelOutcome>;
1667
- export type PaidFacts = {
1668
- method: BookingPayment['method'];
1669
- /** What was paid, as text like every amount the card is given. */
1670
- amount: string;
1671
- /** What cancelling now gives back of it. */
1672
- refund: 'all' | 'part' | 'none';
1673
- /** How much of `amount`, as text - only when `refund` is `part`. */
1674
- refundAmount?: string;
1675
- };
1676
- /**
1677
- * ⚠️ WHAT IS NOT AS THE GUEST CHOSE, SAID (Otaless 0.84.2, 总线程's re-review): 8 answered PAID or
1678
- * CONFIRMED (no page) for an order whose guests, terms or amount are not the ones chosen - kept, a
1679
- * person checking it with the group. Never a plain "confirmed".
1680
- */
1681
- export declare const differsSaid: (deps: ToolDeps, b: Booking) => string;
1682
- /**
1683
- * A booking the group confirmed with no payment page, whether it was charged not known yet
1684
- * (Otaless 0.84.2, the 11-25 code audit's P0-1) - made, listed or cancelled.
1685
- */
1686
- export declare const paymentUnknownWords: (deps: ToolDeps, b: Booking, group: string) => string;
1687
- /**
1688
- * ⚠️ THE FACT, AND NO WORD FOR AN ENVIRONMENT (0.55.8; robin 2026-11-03 「不用特意写不是
1689
- * 真的」, 总线程 11-05). Told "a booking made here is not sent to Atour", the model on
1690
- * claude.ai said 「这个亚朵连接器是演示环境」 - a word nobody gave it. Said after each
1691
- * such fact, in the service instructions and in the answers about a booking, only
1692
- * where nothing is sent to the group (`notReal`); a group's own test system, which a
1693
- * booking does reach, is not told this.
1694
- */
1695
- export declare const notSentSaid: (name: string) => string;
1696
- /**
1697
- * What every answer tells the card about the deployment - its name, logo, colours, tools - for an
1698
- * answer drawn outside this file too: the account's (account/index.ts, 0.56.0), which may be the
1699
- * first card of a conversation.
1700
- */
1701
- export declare const commonFields: (deps: ToolDeps, key?: string) => {
1702
- lang?: Lang | undefined;
1703
- signedIn?: undefined;
1704
- member?: undefined;
1705
- vocab: {
1706
- noun: string;
1707
- nounPlural: string;
1708
- };
1709
- demo: boolean;
1710
- market?: {
1711
- name: string;
1712
- suppliers: SupplierInfo[];
1713
- } | undefined;
1714
- hourly?: boolean | undefined;
1715
- codePrefix?: string | undefined;
1716
- programme?: string | undefined;
1717
- testPays?: boolean | undefined;
1718
- test?: boolean | undefined;
1719
- sandbox?: boolean | undefined;
1720
- phoneAsked?: boolean | undefined;
1721
- phoneRequired?: boolean | undefined;
1722
- toolNames: Record<string, string>;
1723
- bookingMode: "hold" | "pay-at-hotel";
1724
- showName?: boolean | undefined;
1725
- fonts?: BrandFonts | undefined;
1726
- primary?: {
1727
- color: string;
1728
- hover?: string;
1729
- press?: string;
1730
- dark?: string;
1731
- } | undefined;
1732
- homeImage?: string | undefined;
1733
- accent?: string | undefined;
1734
- logoByLang?: Record<string, {
1735
- url: string;
1736
- darkUrl?: string;
1737
- }> | undefined;
1738
- logoDarkUrl?: string | undefined;
1739
- logoUrl?: string | undefined;
1740
- brandNames?: Partial<Record<import("./types.js").NameLang, string>> | undefined;
1741
- brand: string;
1742
- } | {
1743
- lang?: Lang | undefined;
1744
- signedIn: boolean;
1745
- member: {
1746
- coupons?: {
1747
- spend?: string | Money | undefined;
1748
- off?: string | Money | undefined;
1749
- minSpend?: string | Money | undefined;
1750
- maxOff?: string | Money | undefined;
1751
- amountOff?: string | Money | undefined;
1752
- id: string;
1753
- kind: import("./types.js").CouponKind;
1754
- name: string;
1755
- names?: Names;
1756
- percentOff?: number;
1757
- brands?: {
1758
- name: string;
1759
- names?: Names;
1760
- }[];
1761
- hotels?: {
1762
- id: string;
1763
- name: string;
1764
- names?: Names;
1765
- }[];
1766
- validFrom: string;
1767
- validUntil: string;
1768
- state: "usable" | "used" | "expired" | "not-yet";
1769
- usedOn?: {
1770
- code?: string;
1771
- stands: boolean;
1772
- };
1773
- }[] | undefined;
1774
- pointsExpiring?: {
1775
- points: number;
1776
- on: string;
1777
- } | undefined;
1778
- points: number;
1779
- preferences?: RoomRequestKind[] | undefined;
1780
- names?: Partial<Record<import("./types.js").NameLang, string>> | undefined;
1781
- name?: string | undefined;
1782
- programme: string;
1783
- tier: {
1784
- name: string;
1785
- discount: number;
1786
- };
1787
- };
1788
- vocab: {
1789
- noun: string;
1790
- nounPlural: string;
1791
- };
1792
- demo: boolean;
1793
- market?: {
1794
- name: string;
1795
- suppliers: SupplierInfo[];
1796
- } | undefined;
1797
- hourly?: boolean | undefined;
1798
- codePrefix?: string | undefined;
1799
- programme?: string | undefined;
1800
- testPays?: boolean | undefined;
1801
- test?: boolean | undefined;
1802
- sandbox?: boolean | undefined;
1803
- phoneAsked?: boolean | undefined;
1804
- phoneRequired?: boolean | undefined;
1805
- toolNames: Record<string, string>;
1806
- bookingMode: "hold" | "pay-at-hotel";
1807
- showName?: boolean | undefined;
1808
- fonts?: BrandFonts | undefined;
1809
- primary?: {
1810
- color: string;
1811
- hover?: string;
1812
- press?: string;
1813
- dark?: string;
1814
- } | undefined;
1815
- homeImage?: string | undefined;
1816
- accent?: string | undefined;
1817
- logoByLang?: Record<string, {
1818
- url: string;
1819
- darkUrl?: string;
1820
- }> | undefined;
1821
- logoDarkUrl?: string | undefined;
1822
- logoUrl?: string | undefined;
1823
- brandNames?: Partial<Record<import("./types.js").NameLang, string>> | undefined;
1824
- brand: string;
1825
- } | {
1826
- lang?: Lang | undefined;
1827
- signedIn: boolean;
1828
- member?: undefined;
1829
- vocab: {
1830
- noun: string;
1831
- nounPlural: string;
1832
- };
1833
- demo: boolean;
1834
- market?: {
1835
- name: string;
1836
- suppliers: SupplierInfo[];
1837
- } | undefined;
1838
- hourly?: boolean | undefined;
1839
- codePrefix?: string | undefined;
1840
- programme?: string | undefined;
1841
- testPays?: boolean | undefined;
1842
- test?: boolean | undefined;
1843
- sandbox?: boolean | undefined;
1844
- phoneAsked?: boolean | undefined;
1845
- phoneRequired?: boolean | undefined;
1846
- toolNames: Record<string, string>;
1847
- bookingMode: "hold" | "pay-at-hotel";
1848
- showName?: boolean | undefined;
1849
- fonts?: BrandFonts | undefined;
1850
- primary?: {
1851
- color: string;
1852
- hover?: string;
1853
- press?: string;
1854
- dark?: string;
1855
- } | undefined;
1856
- homeImage?: string | undefined;
1857
- accent?: string | undefined;
1858
- logoByLang?: Record<string, {
1859
- url: string;
1860
- darkUrl?: string;
1861
- }> | undefined;
1862
- logoDarkUrl?: string | undefined;
1863
- logoUrl?: string | undefined;
1864
- brandNames?: Partial<Record<import("./types.js").NameLang, string>> | undefined;
1865
- brand: string;
1866
- };
1867
- /** Beside a member sign-in's answer where a card is drawn: the link and its short code, the card's alone. */
1868
- export declare const MEMBER_SIGN_IN_META_KEY = "curless/member-sign-in";
1869
- /** Said of a booking that carries the guest's note - see `requestLines`. */
1870
- export declare const NOTE_PASSED = "A note from the guest was passed to the hotel.";
1871
- /**
1872
- * What is said of rates listed but not booked here (`Room.notSoldHere`) - in
1873
- * the text and, word for word, in the structure (`notSoldHere`): the model reads
1874
- * the structure (2026-10-28). Listed and marked as the group sells them; the
1875
- * card says no more than 预付 on them (robin, 2026-10-30), so the assistant is
1876
- * the one who knows - and says it when the guest wants one.
1877
- *
1878
- * ⚠️ WHEN THE GUEST WANTS ONE, NEVER BEFORE (0.75.1, robin 11-18 on 华住生产: 「这两段话去掉
1879
- * 吧,预订按钮给我加上,但是跳转的时候再提示暂时还不能预订」): a list or a page says nothing of
1880
- * it - no sentence first, no "not booked here" on a price (0.65.0 said it before anything was
1881
- * chosen). The card says it when Reserve is pressed; the assistant when the guest asks to
1882
- * book one, or when it goes to book one (and the booking is refused, with the same ways on).
1883
- *
1884
- * ⚠️ "PAID IN ADVANCE" IS SAID, "NOT HERE" IS NOT (0.76.2, 总线程 11-18 for robin): 0.75.1's
1885
- * "Do not bring that up on your own" was read as "do not bring up paid in advance" - the
1886
- * model dropped it from a list whose text said "Paid in advance." (eval
1887
- * `huazhu-prod-text-one-hotel-is-numbered`, 0/3). robin meant not to volunteer that it cannot
1888
- * be booked here, never to hide how a rate is paid: the two are said apart.
1889
- */
1890
- export declare const notSoldHereWords: (group: string, someBookedHere?: boolean) => string;
1891
- /**
1892
- * What is said of rates paid in advance that ARE booked here, without their payment (0.77.5,
1893
- * robin 2026-11-19 - `Room.paymentNotConnected`, Huazhu's `data.api.demoBooking`): in the text
1894
- * and, word for word, in the structure (`bookedWithoutPayment`) - the model reads the structure.
1895
- * The fact, and nothing about what kind of booking it is.
1896
- */
1897
- export declare const unpaidBookingWords: (group: string) => string;
1898
- /**
1899
- * A hotel none of whose rooms are on sale here (`none-on-sale`), said on its page
1900
- * with the way out (2026-11-03 review, T5). The page's text had one sentence -
1901
- * "This hotel has no rooms on sale here." - and the card said where to book it
1902
- * instead, so a client that draws no card left the guest with a dead end. The
1903
- * clause is the list's (see `NOT_SOLD_OUT`), so the list and the page say one
1904
- * thing; the group is the deployment's own, or the hotel's in a market, never a
1905
- * name written into the sentence. In the text and, word for word, in the
1906
- * structure (`noRooms`): the model reads the structure.
1907
- */
1908
- export declare const notOnSaleWords: (group: string, why: string) => string;
1909
- /** A rate's cancellation terms in the supplier's own words (`Room.terms`), quoted - or that none were given. */
1910
- export declare const termsWords: (terms: string) => string;
1911
- /** How many room types a client that draws no card shows the guest at once - see `roomChoiceRows`. */
1912
- export declare const ROOM_CHOICES_SHOWN = 5;
1913
- /**
1914
- * A moment as a clock time with its offset - "17:30 UTC+08:00, 10 Nov" - never
1915
- * a bare ISO string. Read from the string itself: its own offset when it has
1916
- * one, else UTC, since no hotel record here carries a time zone. Undefined for
1917
- * anything that is not an ISO moment.
1918
- */
1919
- export declare const clockWords: (iso: string | undefined) => string | undefined;
1920
- /**
1921
- * The card's copy of the terms to agree to, beside the answer (`_meta`).
1922
- *
1923
- * ⚠️ THE TERMS' REF AND FULL TEXT ARE THE CARD'S, NEVER THE MODEL'S (总线程's
1924
- * review of 0.63.0, binding): a group's terms are text a stranger wrote, and a
1925
- * model that reads them can be talked into acting on them (prompt injection).
1926
- * The model gets facts and the sentence `termsSaid`; the card gets this, in
1927
- * `_meta` - and only a client that said it draws cards (`ToolContext.drawsCards`):
1928
- * some hosts hand `_meta` to their model.
1929
- */
1930
- export declare const TERMS_META_KEY = "curless/terms";
1931
- /**
1932
- * The photographs of each room type the card's gallery opens, beside the answer (`_meta`):
1933
- * `{ [hotelId]: { [roomTypeId]: string[] } }`, the cover first, once a type (never once a
1934
- * rate) and only for a type with more than one. ⚠️ NEVER IN WHAT THE MODEL READS (robin
1935
- * 11-19, 总线程): a Huazhu hotel has up to 84 room photographs, the model needs no address of
1936
- * them - and only to a client that said it draws cards, as some hosts hand `_meta` to their
1937
- * model. The card puts a list back as the room's `images` (card.ts `withKept`).
1938
- */
1939
- export declare const ROOM_PHOTOS_META_KEY = "curless/room-photos";
1940
- /**
1941
- * The hotel's own photographs for the page's strip (0.77.1), beside the answer (`_meta`):
1942
- * `{ [hotelId]: { photos: string[], kinds: string[] } }` - the lead photograph (the one the
1943
- * page shows above the name) first, then cover, outside, facilities, surroundings, meeting
1944
- * rooms; `kinds[i]` is what `photos[i]` shows (`HotelPhotoKind`), for the card to name under
1945
- * it. At most 30, always two or more. ⚠️ NEVER IN WHAT THE MODEL READS, and only to a client
1946
- * that said it draws cards (as `ROOM_PHOTOS_META_KEY`).
1947
- */
1948
- export declare const HOTEL_PHOTOS_META_KEY = "curless/hotel-photos";
1949
- /**
1950
- * Where the hotel is, for the card's 「在地图中打开」 (0.77.1): `{ [hotelId]: { lat, lng } }`, the
1951
- * supplier's own coordinates (Huazhu: China's GCJ-02). The card makes the map link itself. Beside
1952
- * the answer, card clients only, never in what the model reads.
1953
- */
1954
- export declare const HOTEL_GEO_META_KEY = "curless/hotel-geo";
1955
- /**
1956
- * ⚠️ THE BOOKINGS, THE LATEST ORDERED FIRST (0.84.5, `data.bookingsByTime`; robin 11-26: 「我的预订没有排序,应该最近订的在最上面」;
1957
- * 0.84.4 had them in parts by state, which he did not see as an order): the card's own order, in words - ONE list,
1958
- * the booking made last on top, each line headed with when it was made (UTC, to the minute) and carrying its state
1959
- * and hotel (and its Chinese name) as ever, with one line of how many are in each state. A guest asking for one
1960
- * hotel's booking is answered from these lines. A booking whose time is not known or not to be trusted (none, not a
1961
- * date, before 2020, more than a day ahead of now) is listed after the others, the later check-in first, and says
1962
- * "booking time not known" - never a time we made up. "Stayed" is a check-out before today in UTC - a day out at
1963
- * most at either end of the world.
1964
- */
1965
- export declare const bookingsInTime: (list: Booking[], line: (b: Booking) => string, now: number) => string;
1966
- /**
1967
- * From how many cities a country is a list of cities to choose from rather
1968
- * than a list of hotels. China is forty; Malaysia's six hotels in three cities
1969
- * read better as hotels, grouped by city.
1970
- */
1971
- export declare const CITY_PICKER_MIN = 4;
1972
- /**
1973
- * Up to how many hotels a whole deployment is a list rather than places to
1974
- * choose from. Huazhu's production had two, in two cities, and "where to?"
1975
- * over two city chips and "browse all 2" had the model list them all again -
1976
- * two cards for one question (robin, 2026-10-30). Six is what the card shows
1977
- * whole at every width, with no "Next" (its inline page is five rows on a
1978
- * phone and lets two more in - see the card's `pageSize`): a place picker
1979
- * over that many saves no one a tap. A group of nine in four cities still
1980
- * chooses a city first.
1981
- */
1982
- export declare const HOME_LIST_MAX = 6;
1983
- /**
1984
- * The answer when the card names a trip this connector does not know.
1985
- *
1986
- * ⚠️ NOT "EXPIRED" (华住 / robin, 2026-10-15). A trip id lives as long as its
1987
- * conversation (trip-ids.ts, `ID_TTL_MS`), and a trip emptied after
1988
- * TRIP_TTL_MS starts over under the same id - so an id nobody knows is not a
1989
- * trip that lapsed. It is a card from before the service's state moved (the
1990
- * public Huazhu's went to a new directory when it switched to the test
1991
- * system), or from a conversation quiet for longer than its id is kept. "Kept
1992
- * for 4 hours" was said over a card drawn an hour before.
1993
- *
1994
- * ⚠️ SAID, NOT PAPERED OVER. An unknown id used to fall back to the card's own
1995
- * connection - a DIFFERENT trip from the conversation's - and the card took
1996
- * that trip's id as its own. Rooms added on the card then went into a trip the
1997
- * assistant could not see, and "book it" was answered "the trip is empty"
1998
- * (2026-10-05 audit). The way back is the conversation's own trip, which the
1999
- * assistant's next answer hands the card.
2000
- */
2001
- export declare const tripGone: (deps: ToolDeps) => ToolAnswer;
2002
- /**
2003
- * ⚠️ A CARD DRAWN BEFORE THE SIGN-IN, PRESSED AFTER IT (0.84.0; walkthrough 11-24 #5). Since a sign-in
2004
- * the conversation's trip goes by a new id, handed only to the card that started the sign-in (0.75.1,
2005
- * P1-a - `renewedAway` in server.ts): any other card from before it can no longer act on the trip. That
2006
- * is by design and STAYS - this only says what happened, instead of `tripGone`'s "updated, or quiet for
2007
- * a long time", which was not true a few minutes after a sign-in. Still `trip-gone` (a card holding the
2008
- * sign-in's claim asks again with it, as before), with `renewed: true` for the card's own words.
2009
- */
2010
- export declare const tripRenewed: (deps: ToolDeps, o?: {
2011
- pressed: "sign-in" | "book" | "other";
2012
- signedIn: boolean;
2013
- /** 0.84.1: what voided the card's id - a sign-in (before `account.signInKeepsCards`) or a sign-out. */
2014
- why?: "sign-in" | "sign-out";
2015
- }) => ToolAnswer;
2016
- /**
2017
- * The guest's agreement to the terms behind `ref`, and what it came to: the
2018
- * booking (with its payment page), the group's terms again, or a refusal's
2019
- * code. THE ONE AGREE STEP: the booking card's own tool (`acceptTerms`) and the
2020
- * one-time page (account/index.ts, `makeAccount({ terms })`) both end here, and
2021
- * neither is the model's. Throws the group's refusals (`terms-gone`, `sign-in` …)
2022
- * as `otaless/booking.ts` raises them: `refusalAnswer` says each.
2023
- */
2024
- export declare const agreeToTerms: (deps: ToolDeps, key: string, ref: string, ctx: ToolContext,
2025
- /** The card's own arguments (a coupon, a request to remember), as it sent them; the page has none. */
2026
- args?: Record<string, unknown>) => Promise<ToolAnswer>;
2027
- /**
2028
- * The conversation's tool context and identity from its key alone - for the
2029
- * one-time terms page, which has the key (account layer) and no session id. The
2030
- * key is `tripKey(session, brand)`; the identity is the same one the tools build.
2031
- */
2032
- export declare const contextFor: (deps: ToolDeps, key: string) => ToolContext;
2033
- export declare const identityFor: (deps: ToolDeps, key: string) => Identity;
2034
- /** A booking refusal as its answer (`view: 'error'`, its code), or undefined when `err` is not one. */
2035
- export declare const bookingRefusal: (deps: ToolDeps, key: string, err: unknown) => (ToolAnswer & {
2036
- isError?: boolean;
2037
- }) | undefined;
2038
- /**
2039
- * A tool's answer - every amount in it written with its whole currency where the deployment says so
2040
- * (`fullCurrency`, 0.84.0), else exactly as before.
2041
- */
2042
- export declare const handleTool: (deps: ToolDeps, name: string, rawArgs: unknown, ctx: ToolContext) => Promise<ToolAnswer>;
2043
- /**
2044
- * Every plan's answer ends with this: the card is the plan, and a correction
2045
- * found after drawing it is said, not drawn.
2046
- *
2047
- * ⚠️ ONE PLAN, ONE CARD - SAID WHERE THE MODEL READS IT LAST (the owner,
2048
- * 2026-10-26, live 0.47.8): the plan put the Palace Museum on a Monday, the
2049
- * model noticed after drawing it and drew the whole plan again - two plan
2050
- * cards in one answer, "以第二张卡片为准". The instructions and the description
2051
- * say to check closing days before drawing; this was said only in the answer
2052
- * of a long stay at one hotel. It is in every plan's answer now.
2053
- */
2054
- export declare const PLAN_DRAWN_ONCE = "The plan on the card is this one. Something to change that you notice now - a sight closed on its day, a day too far from its hotel - goes in your reply, not in another plan: the plan is drawn again only when the guest asks for the change.";
2055
- /**
2056
- * The same place in the answer, for a client that shows no cards.
2057
- *
2058
- * ⚠️ NO CARD, SO THE REPLY IS THE PLAN (总线程, 2026-10-28, a client whose
2059
- * `initialize` declared nothing): it was told "The plan on the card is this
2060
- * one", and a model told that leaves the plan to a card the guest never sees.
2061
- */
2062
- export declare const PLAN_NOT_DRAWN = "Nothing was drawn: this app shows no cards, so the guest has seen none of this plan. Tell it to them in your reply, day by day - where each day is spent, and each stay with its hotel, dates, price and terms as above. Something to change that you notice now - a sight closed on its day, a day too far from its hotel - is said in that reply, not planned again: the plan is made again only when the guest asks for the change.";
2063
- /** A comparison's answer, for a client that shows no cards - see `PLAN_NOT_DRAWN`. */
2064
- export declare const COMPARISON_NOT_DRAWN = "Nothing was drawn: this app shows no cards, so the guest has seen none of this comparison. Compare the hotels in your reply, with each one's price and terms as given here - each is its cheapest room that sleeps the party.";
2065
- /**
2066
- * What the model is told where the client DRAWS the card (0.55.7, 总线程 11-05,
2067
- * robin 「3.ok」): on claude.ai the hotel's card listed its four room types, and the
2068
- * reply listed them again in a table - breakfast, nightly rate, the stay, the terms.
2069
- * Said only to a client that draws cards (`ToolContext.drawsCards`), in the text and
2070
- * in the structure (`cardShows`); a client that draws none is given every room in
2071
- * words as before (规矩 9).
2072
- */
2073
- export declare const ON_CARD: {
2074
- readonly hotels: "The card shows these hotels, each with its price: reply in a sentence or two on what stands out for the guest, and do not list them again.";
2075
- readonly rooms: "The card shows these rooms, each with its price and terms: reply in a sentence or two on what stands out for the guest, and do not list them again.";
2076
- };
2077
- /**
2078
- * A list's answer, for a client that shows no cards - see `PLAN_NOT_DRAWN`.
2079
- *
2080
- * ⚠️ A LIST WITH NO CARD IS THE HOTELS IN WORDS (2026-10-29 audit, H4). The
2081
- * answer said "12 Huazhu hotels in 上海." and nothing else - the hotels were on
2082
- * the card - so a client that draws none had a count to tell the guest.
2083
- */
2084
- /**
2085
- * How many hotels of a list a client that draws no card shows the guest at once
2086
- * (总线程 11-06, after RollingGo's text answers): the rest are a count.
2087
- */
2088
- export declare const HOTEL_CHOICES_SHOWN = 6;
2089
- export declare const LIST_NOT_DRAWN = "Nothing was drawn: this app shows no cards, so the guest has seen none of these hotels. Copy what follows into your reply as it stands, in this order and with these numbers: the sentence of what the hotels share where there is one, then each hotel as its own lines - its number and name in bold (\"**1. \u2026**\", a single hotel too), the sentence of what sets it apart, and its tags ending in its price - with a blank line between hotels. In the guest's language, with every figure kept and nothing that is not in them; never a table, and nothing said again on a hotel that the sentence before them says - at most 6, and any more as a count the guest can ask for, never a pick of your own. The guest answers with a number or a name; the ids after the hotels are for your calls:";
1
+ export { LOOK_UP_MAX, TONIGHT_PAGE_MAX, buildTools, homeListing, notBookableWords, ordersByAccount, readOnlyWords, withheldTools, } from './tools/tool-set.js';
2
+ export { SHOP_ORDERS_DESCRIPTION, SHOP_ORDERS_IN_BOOKINGS, buildOutputSchemas, outputSchemasFor, } from './tools/output-schemas.js';
3
+ export type { BrandFonts, Lang, ToolAnswer, ToolContext, ToolDeps } from './tools/deps.js';
4
+ export { cancelOnPage } from './tools/cancel-facts.js';
5
+ export type { PaidFacts } from './tools/cancel-facts.js';
6
+ export { commonFields, differsSaid, notSentSaid, paymentUnknownWords } from './tools/paid-lines.js';
7
+ export { MEMBER_SIGN_IN_META_KEY } from './tools/quote-card.js';
8
+ export { NOTE_PASSED, notOnSaleWords, notSoldHereWords, termsWords, unpaidBookingWords, } from './tools/request-words.js';
9
+ export { ROOM_CHOICES_SHOWN } from './tools/room-choices.js';
10
+ export { bookingRefusal, clockWords } from './tools/payment-words.js';
11
+ export { HOTEL_GEO_META_KEY, HOTEL_PHOTOS_META_KEY, ROOM_PHOTOS_META_KEY, TERMS_META_KEY, bookingsInTime, } from './tools/terms-answer.js';
12
+ export { CITY_PICKER_MIN, HOME_LIST_MAX } from './tools/current-trip.js';
13
+ export { COMPARISON_NOT_DRAWN, HOTEL_CHOICES_SHOWN, LIST_NOT_DRAWN, ON_CARD, PLAN_DRAWN_ONCE, PLAN_NOT_DRAWN, agreeToTerms, contextFor, handleTool, identityFor, tripGone, tripRenewed, } from './tools/follow-ups.js';
2090
14
  //# sourceMappingURL=tools.d.ts.map