@curless/hotel-storefront 0.61.1 → 0.63.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 (86) hide show
  1. package/dist/account/fake-ota.d.ts +78 -0
  2. package/dist/account/fake-ota.d.ts.map +1 -0
  3. package/dist/account/fake-ota.js +269 -0
  4. package/dist/account/fake-ota.js.map +1 -0
  5. package/dist/account/index.d.ts +60 -22
  6. package/dist/account/index.d.ts.map +1 -1
  7. package/dist/account/index.js +596 -197
  8. package/dist/account/index.js.map +1 -1
  9. package/dist/account/mask.d.ts +15 -0
  10. package/dist/account/mask.d.ts.map +1 -0
  11. package/dist/account/mask.js +51 -0
  12. package/dist/account/mask.js.map +1 -0
  13. package/dist/account/ota-member.d.ts +99 -14
  14. package/dist/account/ota-member.d.ts.map +1 -1
  15. package/dist/account/ota-member.js +167 -48
  16. package/dist/account/ota-member.js.map +1 -1
  17. package/dist/account/pages.d.ts +101 -1
  18. package/dist/account/pages.d.ts.map +1 -1
  19. package/dist/account/pages.js +238 -9
  20. package/dist/account/pages.js.map +1 -1
  21. package/dist/account/requests.d.ts +12 -2
  22. package/dist/account/requests.d.ts.map +1 -1
  23. package/dist/account/requests.js +4 -3
  24. package/dist/account/requests.js.map +1 -1
  25. package/dist/account/said.js +2 -2
  26. package/dist/account/said.js.map +1 -1
  27. package/dist/account/store.d.ts +16 -15
  28. package/dist/account/store.d.ts.map +1 -1
  29. package/dist/account/store.js +29 -23
  30. package/dist/account/store.js.map +1 -1
  31. package/dist/backend.d.ts +27 -0
  32. package/dist/backend.d.ts.map +1 -1
  33. package/dist/backend.js.map +1 -1
  34. package/dist/card.generated.d.ts +1 -1
  35. package/dist/card.generated.js +2 -2
  36. package/dist/card.generated.js.map +1 -1
  37. package/dist/config.d.ts +23 -0
  38. package/dist/config.d.ts.map +1 -1
  39. package/dist/config.js +10 -0
  40. package/dist/config.js.map +1 -1
  41. package/dist/legal.d.ts.map +1 -1
  42. package/dist/legal.js +34 -22
  43. package/dist/legal.js.map +1 -1
  44. package/dist/otaless/backend.d.ts +50 -4
  45. package/dist/otaless/backend.d.ts.map +1 -1
  46. package/dist/otaless/backend.js +77 -32
  47. package/dist/otaless/backend.js.map +1 -1
  48. package/dist/otaless/booking.d.ts +202 -0
  49. package/dist/otaless/booking.d.ts.map +1 -0
  50. package/dist/otaless/booking.js +1234 -0
  51. package/dist/otaless/booking.js.map +1 -0
  52. package/dist/otaless/client.d.ts +191 -0
  53. package/dist/otaless/client.d.ts.map +1 -1
  54. package/dist/otaless/client.js +185 -17
  55. package/dist/otaless/client.js.map +1 -1
  56. package/dist/otaless/fake.d.ts +73 -0
  57. package/dist/otaless/fake.d.ts.map +1 -1
  58. package/dist/otaless/fake.js +270 -2
  59. package/dist/otaless/fake.js.map +1 -1
  60. package/dist/otaless/make.d.ts +2 -0
  61. package/dist/otaless/make.d.ts.map +1 -1
  62. package/dist/otaless/make.js +49 -1
  63. package/dist/otaless/make.js.map +1 -1
  64. package/dist/server.d.ts +2 -2
  65. package/dist/server.d.ts.map +1 -1
  66. package/dist/server.js +76 -3
  67. package/dist/server.js.map +1 -1
  68. package/dist/surface.d.ts +6 -0
  69. package/dist/surface.d.ts.map +1 -1
  70. package/dist/surface.js +71 -23
  71. package/dist/surface.js.map +1 -1
  72. package/dist/tools.d.ts +230 -52
  73. package/dist/tools.d.ts.map +1 -1
  74. package/dist/tools.js +838 -225
  75. package/dist/tools.js.map +1 -1
  76. package/dist/types.d.ts +32 -0
  77. package/dist/types.d.ts.map +1 -1
  78. package/package.json +1 -1
  79. package/dist/account/fake-mall.d.ts +0 -61
  80. package/dist/account/fake-mall.d.ts.map +0 -1
  81. package/dist/account/fake-mall.js +0 -239
  82. package/dist/account/fake-mall.js.map +0 -1
  83. package/dist/account/mall.d.ts +0 -94
  84. package/dist/account/mall.d.ts.map +0 -1
  85. package/dist/account/mall.js +0 -255
  86. package/dist/account/mall.js.map +0 -1
package/dist/surface.js CHANGED
@@ -27,6 +27,42 @@ const and = (xs) => xs.length < 2 ? (xs[0] ?? '') : `${xs.slice(0, -1).join(', '
27
27
  */
28
28
  /** What a trip booked in part is, said once for every kind of booking (robin, 2026-10-14). */
29
29
  const PARTIAL = 'What can be booked is booked and stays booked: a stay that cannot be - sold out, its price moved, turned away - is named in the answer with why, stays in the trip, and comes with other hotels that can be booked for the same nights. Tell the guest which stays were booked, with their codes, and which were not and why, and offer those alternatives - never describe the trip as all booked, or as all failed.';
30
+ /**
31
+ * How a booking is made where it is the group's own checkout
32
+ * (`capabilities.groupCheckout`: Otaless, open since 0.63.0 - robin 11-10:
33
+ * 「otaless 这边不能订的说法去掉,我们要跑通测试流程的」). docs/otaless-hotels.md §13.
34
+ *
35
+ * ⚠️ THE GUEST AGREES, NEVER THE MODEL (总线程 11-10). No tool the model can call
36
+ * takes an agreement: terms are agreed on the card's own button or on a
37
+ * one-time page in the browser signed in to the account. A model told to "ask
38
+ * the guest to confirm" would carry a "yes" typed in the chat - or planted in
39
+ * a page it read - into the order.
40
+ *
41
+ * ⚠️ BOOKED IS PAID. The group takes the order and holds it for its payment;
42
+ * until the payment page has been paid, nothing is booked - and a payment page
43
+ * on an address not on the list is never handed on (booking.ts).
44
+ */
45
+ const groupCheckoutWords = (brand, caps, cardless, opts) => {
46
+ const { tools: t, vocab: v } = brand;
47
+ const signIn = opts.accountSignIn
48
+ ? `The guest must be signed in to their ${v.brand} account (${opts.accountSignIn}) and, through it, at every group the trip books with${opts.accountLink
49
+ ? ` - ${opts.accountLink} with that group's code signs them in there, on our page`
50
+ : ''}. An answer that says a group needs signing in names it: pass that on with how to sign in there, and book nothing more until they have.`
51
+ : 'An answer that says a group needs signing in names it: pass that on, and book nothing more until they have.';
52
+ const terms = cardless
53
+ ? 'on the one-time page the answer links to, opened in the browser signed in to their account'
54
+ : 'on the card, which shows them word for word with Agree and continue';
55
+ return [
56
+ `${t.requestBooking} orders ONE stay at a time with the group whose ${v.noun} it is - a trip with two stays is two orders, each paid on its own. ${signIn}`,
57
+ `The group may first send its booking terms back: then nothing has been ordered. Only the guest can agree to them - ${terms}. Never agree for them, never ask them to type that they agree, and never say a stay is ordered or booked before ${t.listBookings} says so; once they say they have agreed, call ${t.listBookings}.`,
58
+ `When the group takes the order, the answer gives its payment page - the host it is on and the time it must be paid by. Pass the link on with that host and that time${cardless ? '' : ' (the card has the button)'}; the stay is booked only once it is paid, and ${t.listBookings} says whether it has been. If the group's amount is not the price the guest was shown, or its payment page is not on an address accepted here, the order is let go at once and nothing is charged - say so as the answer does. Card details are typed only on that payment page: never ask for a card number, and never put one into any field.`,
59
+ `Cancelling${caps.refunds ? ', refunds' : ''}${caps.addons ? ' and add-ons' : ''} work only for bookings made here with this account.${caps.refunds
60
+ ? ` A paid booking's money is asked back in full with ${t.refundBooking} - only once the guest asked for it and you said back which booking and how much.`
61
+ : ''}${caps.addons
62
+ ? ` After booking, ${t.listBookingAddons} lists what the group can add to a stay booked here, and ${t.addBookingAddon} adds one once the guest chose it and you said back its price.`
63
+ : ''}`,
64
+ ].join(' ');
65
+ };
30
66
  export const buildInstructions = (brand, caps = FULL_CAPABILITIES,
31
67
  /**
32
68
  * `hotels`: how many hotels the deployment has (`Made.hotelCount()`, when a
@@ -85,7 +121,10 @@ opts = {}) => {
85
121
  v.market && brand.config.data.source === 'otaless'
86
122
  ? // ⚠️ THE BACKEND'S OWN, AS IT SENDS THEM (robin, 2026-11-03): which
87
123
  // groups it has is its answer, not this text's.
88
- `These tools read the ${v.nounPlural} of several ${v.noun} groups through ${v.brand}: what each property offers, what a room costs on given nights, and its cancellation terms in the group's own words. ${v.brand} holds no booking itself, and none can be made here yet.`
124
+ `These tools read the ${v.nounPlural} of several ${v.noun} groups through ${v.brand}: what each property offers, what a room costs on given nights, and its cancellation terms in the group's own words. ${ro
125
+ ? `${v.brand} holds no booking itself, and none can be made here yet.`
126
+ : // ⚠️ OPEN SINCE 0.63.0 (robin 11-10: 「otaless 这边不能订的说法去掉,我们要跑通测试流程的」).
127
+ `${v.brand} holds no booking itself: each is made with the group whose ${v.noun} it is, through that group's own checkout, and paid on the group's payment page.`}`
89
128
  : v.market
90
129
  ? // ⚠️ THE MARKET HOLDS NOTHING. A booking is with the group whose hotel
91
130
  // it is; "Otaless has your room" sends a guest to a desk that never
@@ -237,32 +276,34 @@ opts = {}) => {
237
276
  ? // ⚠️ SAID BACK ONCE, THEN BOOKED (robin 11-06: 确认下单) - see the
238
277
  // trip's `nextStep`, which says the same to every priced trip.
239
278
  `For one stay at one ${v.noun}, there is no card to book it from here: put the chosen room in the trip with ${t.addToTrip}, say it back once in one message - the ${v.noun}, the nights by weekday and date, the room, the guests, the total and the cancellation terms, as its answer gives them - and ask for a "confirm" (确认) or what to change, with the details ${t.requestBooking} asks for if they are not given yet; book it once they say yes. A changed room or night replaces the stay rather than adding one: take the old line out.`
240
- : `For one stay at one ${v.noun}, the guest books it from that ${v.noun}'s card - do not offer to add it to a trip.`} ${caps.extras ? '' : `${v.market ? 'The groups here sell' : `${v.brand} sells`} rooms only here, with no add-ons. `}To take a line out, set its \`rooms\`${caps.extras ? ' or `quantity`' : ''} to 0; ${t.clearTrip} empties all of it, and only when the guest asks. To know what is in the trip, call ${t.viewTrip} rather than repeating it from memory${cardless ? '.' : ' - the guest may have changed it on the card.'}`,
279
+ : `For one stay at one ${v.noun}, the guest books it from that ${v.noun}'s card - do not offer to add it to a trip.`} ${caps.extras ? '' : caps.addons && !ro ? 'A trip here holds rooms only; what a group adds to a stay is added to the booking once it is made. ' : `${v.market ? 'The groups here sell' : `${v.brand} sells`} rooms only here, with no add-ons. `}To take a line out, set its \`rooms\`${caps.extras ? ' or `quantity`' : ''} to 0; ${t.clearTrip} empties all of it, and only when the guest asks. To know what is in the trip, call ${t.viewTrip} rather than repeating it from memory${cardless ? '.' : ' - the guest may have changed it on the card.'}`,
241
280
  ...(v.hints.hotel ? [v.hints.hotel] : []),
242
281
  // ⚠️ HELD IS NOT BOOKED AND NOT PAID.
243
282
  ro
244
283
  ? `${readOnlyWords(v)} There is no booking, membership or cancellation here: never ask for the guest's name, email, phone number or any payment details, and never say a room is booked, held or reserved.`
245
284
  : takesPayment
246
285
  ? `${t.requestBooking} holds the rooms; payment follows. Do not describe a held booking as paid.`
247
- : v.market
248
- ? `${t.requestBooking} books the rooms for a named guest with the group each ${v.noun} belongs to, one group at a time: a trip holding two groups' ${v.nounPlural} is booked group by group. What a booking makes is that group's, and the answer says it for every stay - a hold that lapses on its own and is not sent to the group, a booking that holds no room for anyone, or the hotel's own reservation paid at the hotel. Report the first two as the answer says them - not sent to the group, no room held, nothing charged - never as a reservation or as a room held for the guest, and say nothing about what kind of connector or environment this is; report the third as booked, to be paid at the hotel, never as paid. IT TAKES NO MONEY AND COLLECTS NO CARD. Never ask for a card or a payment.`
249
- : caps.booking === 'pay-at-hotel' && (v.test || notSent)
250
- ? // ⚠️ NO TEST / SIMULATED IN IT (robin, 2026-11-03): what the booking is,
251
- // as the answer says it - not sent to the group, or in its own test
252
- // system holding no room for anyone - and nothing charged.
253
- `${t.requestBooking} books the rooms for a named guest and returns a confirmation code. ${notSent
254
- ? `The booking is not sent to ${v.brand} and holds no room`
255
- : `The booking is made in ${v.brand}'s own system and holds no room for anyone`}: report it with its code as the answer says it, never as a reservation, and never tell the guest to ${caps.prepaid ? '' : 'pay anything, '}expect a room or go to the hotel. ${caps.prepaid
256
- ? `A rate marked paid in advance is not booked at once: the answer gives a card page where no real money moves${notSent ? '' : ' (it takes a test card)'} and the time it must be paid by - pass both on, say no real money moves, and never call it booked until ${t.listBookings} says so. Every other rate is paid by nobody. Card details are typed only on that page: never ask for a card number, and never put one into any field.`
257
- : 'IT TAKES NO MONEY AND COLLECTS NO CARD. Never ask for a card number, and never put one into any field.'}`
258
- : caps.booking === 'pay-at-hotel'
259
- ? `${t.requestBooking} books the rooms with ${v.brand} for a named guest: each stay becomes the hotel's own reservation with its own confirmation code, kept until it is cancelled and PAID AT THE HOTEL. IT TAKES NO MONEY AND COLLECTS NO CARD. Report it as booked and to be paid at the hotel, never as paid. When the answer says ${v.brand} has not confirmed it yet, say exactly that - it is neither booked nor failed until ${t.listBookings} says so. Never ask for a card number, and never put one into any field - if the guest offers card details, tell them card details are not taken here.`
260
- : v.demo
261
- ? // ⚠️ THIS SAID "a card is presented at check-in" (2026-10-05 audit,
262
- // P2) - and a guest could have taken the code to the real hotel.
263
- // The fact, no DEMONSTRATION in it (robin, 2026-11-03).
264
- `${t.requestBooking} makes a booking request: it returns a confirmation code and the moment the hold lapses on its own. ${v.brand} does not receive it and no real room is held anywhere. IT TAKES NO MONEY AND COLLECTS NO CARD. Report it with its code and when the hold lapses, as not sent to ${v.brand} - never as booked, paid or held by the hotel, and never tell the guest to present anything at a hotel. Never ask for a card number, and never put one into any field - if the guest offers card details, tell them card details are not taken here.`
265
- : `${t.requestBooking} asks ${v.brand} to hold the rooms for a named guest and returns a confirmation code and the moment the hold lapses. IT TAKES NO MONEY AND COLLECTS NO CARD. Report it as requested and held, never as booked-and-paid, and tell the guest when the hold lapses and that a card is presented at check-in. Never ask for a card number, and never put one into any field - if the guest offers card details, tell them card details are not taken here.`,
286
+ : caps.groupCheckout
287
+ ? groupCheckoutWords(brand, caps, cardless, opts)
288
+ : v.market
289
+ ? `${t.requestBooking} books the rooms for a named guest with the group each ${v.noun} belongs to, one group at a time: a trip holding two groups' ${v.nounPlural} is booked group by group. What a booking makes is that group's, and the answer says it for every stay - a hold that lapses on its own and is not sent to the group, a booking that holds no room for anyone, or the hotel's own reservation paid at the hotel. Report the first two as the answer says them - not sent to the group, no room held, nothing charged - never as a reservation or as a room held for the guest, and say nothing about what kind of connector or environment this is; report the third as booked, to be paid at the hotel, never as paid. IT TAKES NO MONEY AND COLLECTS NO CARD. Never ask for a card or a payment.`
290
+ : caps.booking === 'pay-at-hotel' && (v.test || notSent)
291
+ ? // ⚠️ NO TEST / SIMULATED IN IT (robin, 2026-11-03): what the booking is,
292
+ // as the answer says it - not sent to the group, or in its own test
293
+ // system holding no room for anyone - and nothing charged.
294
+ `${t.requestBooking} books the rooms for a named guest and returns a confirmation code. ${notSent
295
+ ? `The booking is not sent to ${v.brand} and holds no room`
296
+ : `The booking is made in ${v.brand}'s own system and holds no room for anyone`}: report it with its code as the answer says it, never as a reservation, and never tell the guest to ${caps.prepaid ? '' : 'pay anything, '}expect a room or go to the hotel. ${caps.prepaid
297
+ ? `A rate marked paid in advance is not booked at once: the answer gives a card page where no real money moves${notSent ? '' : ' (it takes a test card)'} and the time it must be paid by - pass both on, say no real money moves, and never call it booked until ${t.listBookings} says so. Every other rate is paid by nobody. Card details are typed only on that page: never ask for a card number, and never put one into any field.`
298
+ : 'IT TAKES NO MONEY AND COLLECTS NO CARD. Never ask for a card number, and never put one into any field.'}`
299
+ : caps.booking === 'pay-at-hotel'
300
+ ? `${t.requestBooking} books the rooms with ${v.brand} for a named guest: each stay becomes the hotel's own reservation with its own confirmation code, kept until it is cancelled and PAID AT THE HOTEL. IT TAKES NO MONEY AND COLLECTS NO CARD. Report it as booked and to be paid at the hotel, never as paid. When the answer says ${v.brand} has not confirmed it yet, say exactly that - it is neither booked nor failed until ${t.listBookings} says so. Never ask for a card number, and never put one into any field - if the guest offers card details, tell them card details are not taken here.`
301
+ : v.demo
302
+ ? // ⚠️ THIS SAID "a card is presented at check-in" (2026-10-05 audit,
303
+ // P2) - and a guest could have taken the code to the real hotel.
304
+ // The fact, no DEMONSTRATION in it (robin, 2026-11-03).
305
+ `${t.requestBooking} makes a booking request: it returns a confirmation code and the moment the hold lapses on its own. ${v.brand} does not receive it and no real room is held anywhere. IT TAKES NO MONEY AND COLLECTS NO CARD. Report it with its code and when the hold lapses, as not sent to ${v.brand} - never as booked, paid or held by the hotel, and never tell the guest to present anything at a hotel. Never ask for a card number, and never put one into any field - if the guest offers card details, tell them card details are not taken here.`
306
+ : `${t.requestBooking} asks ${v.brand} to hold the rooms for a named guest and returns a confirmation code and the moment the hold lapses. IT TAKES NO MONEY AND COLLECTS NO CARD. Report it as requested and held, never as booked-and-paid, and tell the guest when the hold lapses and that a card is presented at check-in. Never ask for a card number, and never put one into any field - if the guest offers card details, tell them card details are not taken here.`,
266
307
  // ⚠️ THE MEMBERSHIP IS TYPED ON OUR PAGE, NEVER IN THE CHAT (0.58.0, robin
267
308
  // 11-06: 「我们自己的登陆也要改成外链」): no tool takes the number or the surname,
268
309
  // so neither can be filled in from an account, a profile or a page.
@@ -298,7 +339,7 @@ opts = {}) => {
298
339
  // guest asks for the booking, not to a checklist before they have a hotel.
299
340
  ro
300
341
  ? ''
301
- : `${t.requestBooking} needs the guest's own name and email. Ask for them when the guest asks for the booking, not before - and do not use, suggest or offer a name or email you know from anywhere else, such as their account or profile ("you could use …" included), unless they have typed it in this conversation.`,
342
+ : `${t.requestBooking} needs the guest's own name${caps.requiresPhone ? ', email and phone number' : ' and email'}. Ask for them when the guest asks for the booking, not before - and do not use, suggest or offer a name or email you know from anywhere else, such as their account or profile ("you could use …" included), unless they have typed it in this conversation.`,
302
343
  // ⚠️ PREVIEW, THEN CANCEL. The tool enforces this; the instruction is why.
303
344
  ro
304
345
  ? ''
@@ -307,7 +348,10 @@ opts = {}) => {
307
348
  : `${v.market ? 'Bookings' : `${v.brand} bookings`} cannot be moved to other nights or another room here. To change one, cancel it - preview first, as below - and book the new nights, which are priced at what they cost today. Say that plainly, with the cancellation fee if there is one, before doing either.`,
308
349
  ro
309
350
  ? ''
310
- : `Before cancelling anything: ${t.previewCancellation} says what it would cost, what comes back, and the rule behind it. Show the guest that and get a yes before calling ${t.cancelBooking} with \`confirmed\` - it returns the preview and cancels nothing without it. A guest who says "cancel it" has not yet seen the fee.`,
351
+ : `Before cancelling anything: ${t.previewCancellation} says what it would cost, what comes back, and the rule behind it. Show the guest that and get a yes before calling ${t.cancelBooking} with \`confirmed\` - it returns the preview and cancels nothing without it. A guest who says "cancel it" has not yet seen the fee.${caps.groupCheckout
352
+ ? // ⚠️ THE GROUP HAS NO DRY RUN (§8.2): its fee is known once it has cancelled.
353
+ " Where the group gives no fee before cancelling, the preview gives the group's cancellation terms in its own words instead: pass them on as they are, and say the fee is whatever the group charges when it cancels - never work one out yourself."
354
+ : ''}`,
311
355
  // ⚠️ THE DIVISION OF LABOUR ON THESE TWO, in one line, because getting it
312
356
  // wrong in either direction is the failure: a model that writes prices into
313
357
  // prose invents them, and a model that puts its reasoning inside the card
@@ -431,6 +475,10 @@ export const tripToolNames = (brand) => new Set([
431
475
  brand.tools.bookPicked,
432
476
  brand.tools.previewCancellation,
433
477
  brand.tools.cancelBooking,
478
+ // The card's agreement to a group's terms, and a paid booking's refund
479
+ // (0.63.0): both act on the conversation's own booking.
480
+ brand.tools.acceptTerms,
481
+ brand.tools.refundBooking,
434
482
  // A booking belongs to the conversation, which the card reaches by naming
435
483
  // its trip - so every tool that finds one takes the trip too.
436
484
  brand.tools.listBookings,
@@ -1 +1 @@
1
- {"version":3,"file":"surface.js","sourceRoot":"","sources":["../src/surface.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3F,OAAO,EAAsB,OAAO,EAAE,MAAM,YAAY,CAAC;AAEzD,+EAA+E;AAC/E,yEAAyE;AACzE,EAAE;AACF,8EAA8E;AAC9E,gFAAgF;AAChF,8EAA8E;AAC9E,gFAAgF;AAChF,gFAAgF;AAChF,4CAA4C;AAE5C,6CAA6C;AAC7C,MAAM,GAAG,GAAG,CAAC,EAAY,EAAU,EAAE,CACnC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,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AAK,CAAC,KAAK,CAAC,WAAW;IACvB,KAAK,CAAC,KAAK,CAAC,aAAa;IACzB,0EAA0E;IAC1E,8DAA8D;IAC9D,KAAK,CAAC,KAAK,CAAC,YAAY;IACxB,KAAK,CAAC,KAAK,CAAC,aAAa;IACzB,KAAK,CAAC,KAAK,CAAC,aAAa;IACzB,0CAA0C;IAC1C,KAAK,CAAC,KAAK,CAAC,UAAU;IACtB,0EAA0E;IAC1E,8BAA8B;IAC9B,KAAK,CAAC,KAAK,CAAC,SAAS;CACtB,CAAC,CAAC"}
package/dist/tools.d.ts CHANGED
@@ -5,7 +5,7 @@ import type { ToolNames } from './config.js';
5
5
  import type { Misses } from './limits.js';
6
6
  import type { MemberStore } from './members.js';
7
7
  import { type TripStore } from './trip.js';
8
- import type { BookingPayment, Money, Names, RoomRequestKind } from './types.js';
8
+ import type { BookingPayment, Identity, Money, Names, RoomRequestKind } from './types.js';
9
9
  import { type Vocabulary } from './vocab.js';
10
10
  /** How many ${nounPlural} one look-up reads - a city's worth, and what a comparison can hold and then some. */
11
11
  export declare const LOOK_UP_MAX = 6;
@@ -1002,6 +1002,118 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
1002
1002
  };
1003
1003
  readonly required: readonly ["name", "email"];
1004
1004
  };
1005
+ } | {
1006
+ readonly name: `card_${string}terms`;
1007
+ 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 group's payment page, the terms again, or why nothing was booked.";
1008
+ readonly annotations: {
1009
+ readonly title: string;
1010
+ readonly readOnlyHint: false;
1011
+ readonly destructiveHint: false;
1012
+ readonly idempotentHint: false;
1013
+ readonly openWorldHint: boolean;
1014
+ };
1015
+ readonly inputSchema: {
1016
+ readonly type: "object";
1017
+ readonly properties: {
1018
+ readonly ref: {
1019
+ readonly type: "string";
1020
+ readonly description: "The terms the card is showing, by the reference the booking answer gave";
1021
+ };
1022
+ };
1023
+ readonly required: readonly ["ref"];
1024
+ };
1025
+ } | {
1026
+ readonly name: `refund_${string}booking`;
1027
+ readonly description: "Asks the hotel group to refund, in full, a booking made here that has been paid. It is meant for a guest who asked for their money back, once the booking and the amount have been said back to them. The answer says what the group did with the request.";
1028
+ readonly annotations: {
1029
+ readonly title: string;
1030
+ readonly readOnlyHint: false;
1031
+ readonly destructiveHint: true;
1032
+ readonly idempotentHint: true;
1033
+ readonly openWorldHint: boolean;
1034
+ };
1035
+ readonly inputSchema: {
1036
+ readonly type: "object";
1037
+ readonly properties: {
1038
+ readonly booking: {
1039
+ readonly type: "string";
1040
+ readonly description: "The confirmation code or order id, as the booking answer gave it";
1041
+ };
1042
+ readonly reason: {
1043
+ readonly type: "string";
1044
+ readonly maxLength: 200;
1045
+ readonly description: "Optional, the guest's reason in their own words, up to 200 characters";
1046
+ };
1047
+ };
1048
+ readonly required: readonly ["booking"];
1049
+ };
1050
+ } | {
1051
+ readonly name: `list_${string}booking_addons`;
1052
+ 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.";
1053
+ readonly annotations: {
1054
+ readonly title: string;
1055
+ readonly readOnlyHint: true;
1056
+ readonly destructiveHint: false;
1057
+ readonly idempotentHint: true;
1058
+ readonly openWorldHint: boolean;
1059
+ };
1060
+ readonly inputSchema: {
1061
+ readonly type: "object";
1062
+ readonly properties: {
1063
+ readonly booking: {
1064
+ readonly type: "string";
1065
+ readonly description: "The confirmation code or order id, as the booking answer gave it";
1066
+ };
1067
+ };
1068
+ readonly required: readonly ["booking"];
1069
+ };
1070
+ } | {
1071
+ readonly name: `add_${string}booking_addon`;
1072
+ readonly description: "Adds one add-on to a booking made here, at the price the add-on list gave. It is meant for an add-on the guest chose, once its price has been said back to them. The answer gives the add-on order's code, status and total.";
1073
+ readonly annotations: {
1074
+ readonly title: string;
1075
+ readonly readOnlyHint: false;
1076
+ readonly destructiveHint: false;
1077
+ readonly idempotentHint: false;
1078
+ readonly openWorldHint: boolean;
1079
+ };
1080
+ readonly inputSchema: {
1081
+ readonly type: "object";
1082
+ readonly properties: {
1083
+ readonly booking: {
1084
+ readonly type: "string";
1085
+ readonly description: "The confirmation code or order id, as the booking answer gave it";
1086
+ };
1087
+ readonly addon: {
1088
+ readonly type: "string";
1089
+ readonly description: "The add-on id, as the add-on list gave it";
1090
+ };
1091
+ readonly direction: {
1092
+ readonly type: "string";
1093
+ readonly enum: readonly ["arrival", "departure", "round_trip"];
1094
+ readonly description: "For a transfer: to the hotel, from it, or both";
1095
+ };
1096
+ readonly flightNo: {
1097
+ readonly type: "string";
1098
+ readonly description: "For a transfer: the flight number, e.g. MU5101";
1099
+ };
1100
+ readonly pickupTime: {
1101
+ readonly type: "string";
1102
+ readonly description: "For a transfer: the pick-up time, HH:MM";
1103
+ };
1104
+ readonly date: {
1105
+ readonly type: "string";
1106
+ readonly description: "The date it is for, YYYY-MM-DD";
1107
+ };
1108
+ readonly quantity: {
1109
+ readonly type: "integer";
1110
+ readonly minimum: 1;
1111
+ readonly maximum: 20;
1112
+ readonly description: "How many, 1 to 20. Default 1";
1113
+ };
1114
+ };
1115
+ readonly required: readonly ["booking", "addon"];
1116
+ };
1005
1117
  })[];
1006
1118
  /** The tool names a backend with these capabilities leaves out. */
1007
1119
  /**
@@ -1123,6 +1235,29 @@ export type ToolDeps = {
1123
1235
  * list knows.
1124
1236
  */
1125
1237
  hotelCount?: () => number;
1238
+ /**
1239
+ * The one-time page where a guest of a client that draws no card reads a
1240
+ * group's booking terms and agrees to them (account layer, server.ts - docs
1241
+ * §13.6): `ref` is the terms' reference. Absent, or undefined, there is no
1242
+ * such page for this guest, and the terms can only be agreed to on a card.
1243
+ * ⚠️ THE LINK IS THE GUEST'S: it opens only in the browser signed in to their
1244
+ * account and works once - it is handed to the guest, never opened here.
1245
+ */
1246
+ termsLink?: (key: string, ref: string,
1247
+ /** Absent: the URL names no language and the page picks the browser's own. */
1248
+ lang?: Lang) => {
1249
+ url: string;
1250
+ expiresAt: string;
1251
+ } | undefined;
1252
+ /**
1253
+ * How a guest signs in at one hotel group when a booking needs it (`sign-in`,
1254
+ * `signed-out`, `session-expired`): the account's link tool, which takes
1255
+ * `group`, else its sign-in tool. Absent, the refusal's own words stand.
1256
+ */
1257
+ groupSignIn?: {
1258
+ linkTool?: string;
1259
+ signInTool?: string;
1260
+ };
1126
1261
  };
1127
1262
  export type ToolContext = {
1128
1263
  /** The host's `Mcp-Session-Id`, or a per-connection fallback. Never a shared constant. */
@@ -1209,50 +1344,8 @@ export declare const notSentSaid: (name: string) => string;
1209
1344
  */
1210
1345
  export declare const commonFields: (deps: ToolDeps, key?: string) => {
1211
1346
  lang?: Lang | undefined;
1212
- signedIn: boolean;
1213
- member: {
1214
- coupons?: {
1215
- spend?: string | Money | undefined;
1216
- off?: string | Money | undefined;
1217
- minSpend?: string | Money | undefined;
1218
- maxOff?: string | Money | undefined;
1219
- amountOff?: string | Money | undefined;
1220
- id: string;
1221
- kind: import("./types.js").CouponKind;
1222
- name: string;
1223
- names?: Names;
1224
- percentOff?: number;
1225
- brands?: {
1226
- name: string;
1227
- names?: Names;
1228
- }[];
1229
- hotels?: {
1230
- id: string;
1231
- name: string;
1232
- names?: Names;
1233
- }[];
1234
- validFrom: string;
1235
- validUntil: string;
1236
- state: "usable" | "used" | "expired" | "not-yet";
1237
- usedOn?: {
1238
- code?: string;
1239
- stands: boolean;
1240
- };
1241
- }[] | undefined;
1242
- pointsExpiring?: {
1243
- points: number;
1244
- on: string;
1245
- } | undefined;
1246
- points: number;
1247
- preferences?: RoomRequestKind[] | undefined;
1248
- names?: Partial<Record<import("./types.js").NameLang, string>> | undefined;
1249
- name?: string | undefined;
1250
- programme: string;
1251
- tier: {
1252
- name: string;
1253
- discount: number;
1254
- };
1255
- };
1347
+ signedIn?: undefined;
1348
+ member?: undefined;
1256
1349
  vocab: {
1257
1350
  noun: string;
1258
1351
  nounPlural: string;
@@ -1294,10 +1387,14 @@ export declare const commonFields: (deps: ToolDeps, key?: string) => {
1294
1387
  readonly payWithUnionPay: `pay_${string}booking_with_unionpay`;
1295
1388
  readonly pickRoom: `pick_${string}room`;
1296
1389
  readonly bookPicked: `book_picked_${string}room`;
1390
+ readonly acceptTerms: `card_${string}terms`;
1391
+ readonly refundBooking: `refund_${string}booking`;
1392
+ readonly listBookingAddons: `list_${string}booking_addons`;
1393
+ readonly addBookingAddon: `add_${string}booking_addon`;
1297
1394
  } | {
1298
- [k: string]: `list_${string}${string}` | `get_${string}${string}` | `look_up_${string}${string}` | `list_${string}extras` | `add_to_${string}trip` | `view_${string}trip` | `clear_${string}trip` | `request_${string}booking` | `list_my_${string}bookings` | `preview_${string}cancellation` | `cancel_${string}booking` | `preview_${string}booking_change` | `change_${string}booking` | `get_${string}${string}_policies` | `compare_${string}${string}` | `show_${string}itinerary` | `sign_in_${string}member` | `sign_out_${string}member` | `card_${string}member` | `forget_${string}preferences` | `pay_${string}booking_with_unionpay` | `pick_${string}room` | `book_picked_${string}room`;
1395
+ [k: string]: `list_${string}${string}` | `get_${string}${string}` | `look_up_${string}${string}` | `list_${string}extras` | `add_to_${string}trip` | `view_${string}trip` | `clear_${string}trip` | `request_${string}booking` | `list_my_${string}bookings` | `preview_${string}cancellation` | `cancel_${string}booking` | `preview_${string}booking_change` | `change_${string}booking` | `get_${string}${string}_policies` | `compare_${string}${string}` | `show_${string}itinerary` | `sign_in_${string}member` | `sign_out_${string}member` | `card_${string}member` | `forget_${string}preferences` | `pay_${string}booking_with_unionpay` | `pick_${string}room` | `book_picked_${string}room` | `card_${string}terms` | `refund_${string}booking` | `list_${string}booking_addons` | `add_${string}booking_addon`;
1299
1396
  };
1300
- bookingMode: "hold" | "pay-at-hotel";
1397
+ bookingMode: "pay-at-hotel" | "hold";
1301
1398
  showName?: boolean | undefined;
1302
1399
  fonts?: BrandFonts | undefined;
1303
1400
  primary?: {
@@ -1314,7 +1411,49 @@ export declare const commonFields: (deps: ToolDeps, key?: string) => {
1314
1411
  } | {
1315
1412
  lang?: Lang | undefined;
1316
1413
  signedIn: boolean;
1317
- member?: undefined;
1414
+ member: {
1415
+ coupons?: {
1416
+ spend?: string | Money | undefined;
1417
+ off?: string | Money | undefined;
1418
+ minSpend?: string | Money | undefined;
1419
+ maxOff?: string | Money | undefined;
1420
+ amountOff?: string | Money | undefined;
1421
+ id: string;
1422
+ kind: import("./types.js").CouponKind;
1423
+ name: string;
1424
+ names?: Names;
1425
+ percentOff?: number;
1426
+ brands?: {
1427
+ name: string;
1428
+ names?: Names;
1429
+ }[];
1430
+ hotels?: {
1431
+ id: string;
1432
+ name: string;
1433
+ names?: Names;
1434
+ }[];
1435
+ validFrom: string;
1436
+ validUntil: string;
1437
+ state: "usable" | "used" | "expired" | "not-yet";
1438
+ usedOn?: {
1439
+ code?: string;
1440
+ stands: boolean;
1441
+ };
1442
+ }[] | undefined;
1443
+ pointsExpiring?: {
1444
+ points: number;
1445
+ on: string;
1446
+ } | undefined;
1447
+ points: number;
1448
+ preferences?: RoomRequestKind[] | undefined;
1449
+ names?: Partial<Record<import("./types.js").NameLang, string>> | undefined;
1450
+ name?: string | undefined;
1451
+ programme: string;
1452
+ tier: {
1453
+ name: string;
1454
+ discount: number;
1455
+ };
1456
+ };
1318
1457
  vocab: {
1319
1458
  noun: string;
1320
1459
  nounPlural: string;
@@ -1356,10 +1495,14 @@ export declare const commonFields: (deps: ToolDeps, key?: string) => {
1356
1495
  readonly payWithUnionPay: `pay_${string}booking_with_unionpay`;
1357
1496
  readonly pickRoom: `pick_${string}room`;
1358
1497
  readonly bookPicked: `book_picked_${string}room`;
1498
+ readonly acceptTerms: `card_${string}terms`;
1499
+ readonly refundBooking: `refund_${string}booking`;
1500
+ readonly listBookingAddons: `list_${string}booking_addons`;
1501
+ readonly addBookingAddon: `add_${string}booking_addon`;
1359
1502
  } | {
1360
- [k: string]: `list_${string}${string}` | `get_${string}${string}` | `look_up_${string}${string}` | `list_${string}extras` | `add_to_${string}trip` | `view_${string}trip` | `clear_${string}trip` | `request_${string}booking` | `list_my_${string}bookings` | `preview_${string}cancellation` | `cancel_${string}booking` | `preview_${string}booking_change` | `change_${string}booking` | `get_${string}${string}_policies` | `compare_${string}${string}` | `show_${string}itinerary` | `sign_in_${string}member` | `sign_out_${string}member` | `card_${string}member` | `forget_${string}preferences` | `pay_${string}booking_with_unionpay` | `pick_${string}room` | `book_picked_${string}room`;
1503
+ [k: string]: `list_${string}${string}` | `get_${string}${string}` | `look_up_${string}${string}` | `list_${string}extras` | `add_to_${string}trip` | `view_${string}trip` | `clear_${string}trip` | `request_${string}booking` | `list_my_${string}bookings` | `preview_${string}cancellation` | `cancel_${string}booking` | `preview_${string}booking_change` | `change_${string}booking` | `get_${string}${string}_policies` | `compare_${string}${string}` | `show_${string}itinerary` | `sign_in_${string}member` | `sign_out_${string}member` | `card_${string}member` | `forget_${string}preferences` | `pay_${string}booking_with_unionpay` | `pick_${string}room` | `book_picked_${string}room` | `card_${string}terms` | `refund_${string}booking` | `list_${string}booking_addons` | `add_${string}booking_addon`;
1361
1504
  };
1362
- bookingMode: "hold" | "pay-at-hotel";
1505
+ bookingMode: "pay-at-hotel" | "hold";
1363
1506
  showName?: boolean | undefined;
1364
1507
  fonts?: BrandFonts | undefined;
1365
1508
  primary?: {
@@ -1375,6 +1518,8 @@ export declare const commonFields: (deps: ToolDeps, key?: string) => {
1375
1518
  brand: string;
1376
1519
  } | {
1377
1520
  lang?: Lang | undefined;
1521
+ signedIn: boolean;
1522
+ member?: undefined;
1378
1523
  vocab: {
1379
1524
  noun: string;
1380
1525
  nounPlural: string;
@@ -1416,10 +1561,14 @@ export declare const commonFields: (deps: ToolDeps, key?: string) => {
1416
1561
  readonly payWithUnionPay: `pay_${string}booking_with_unionpay`;
1417
1562
  readonly pickRoom: `pick_${string}room`;
1418
1563
  readonly bookPicked: `book_picked_${string}room`;
1564
+ readonly acceptTerms: `card_${string}terms`;
1565
+ readonly refundBooking: `refund_${string}booking`;
1566
+ readonly listBookingAddons: `list_${string}booking_addons`;
1567
+ readonly addBookingAddon: `add_${string}booking_addon`;
1419
1568
  } | {
1420
- [k: string]: `list_${string}${string}` | `get_${string}${string}` | `look_up_${string}${string}` | `list_${string}extras` | `add_to_${string}trip` | `view_${string}trip` | `clear_${string}trip` | `request_${string}booking` | `list_my_${string}bookings` | `preview_${string}cancellation` | `cancel_${string}booking` | `preview_${string}booking_change` | `change_${string}booking` | `get_${string}${string}_policies` | `compare_${string}${string}` | `show_${string}itinerary` | `sign_in_${string}member` | `sign_out_${string}member` | `card_${string}member` | `forget_${string}preferences` | `pay_${string}booking_with_unionpay` | `pick_${string}room` | `book_picked_${string}room`;
1569
+ [k: string]: `list_${string}${string}` | `get_${string}${string}` | `look_up_${string}${string}` | `list_${string}extras` | `add_to_${string}trip` | `view_${string}trip` | `clear_${string}trip` | `request_${string}booking` | `list_my_${string}bookings` | `preview_${string}cancellation` | `cancel_${string}booking` | `preview_${string}booking_change` | `change_${string}booking` | `get_${string}${string}_policies` | `compare_${string}${string}` | `show_${string}itinerary` | `sign_in_${string}member` | `sign_out_${string}member` | `card_${string}member` | `forget_${string}preferences` | `pay_${string}booking_with_unionpay` | `pick_${string}room` | `book_picked_${string}room` | `card_${string}terms` | `refund_${string}booking` | `list_${string}booking_addons` | `add_${string}booking_addon`;
1421
1570
  };
1422
- bookingMode: "hold" | "pay-at-hotel";
1571
+ bookingMode: "pay-at-hotel" | "hold";
1423
1572
  showName?: boolean | undefined;
1424
1573
  fonts?: BrandFonts | undefined;
1425
1574
  primary?: {
@@ -1461,6 +1610,13 @@ export declare const notOnSaleWords: (group: string, why: string) => string;
1461
1610
  export declare const termsWords: (terms: string) => string;
1462
1611
  /** How many room types a client that draws no card shows the guest at once - see `roomChoiceRows`. */
1463
1612
  export declare const ROOM_CHOICES_SHOWN = 5;
1613
+ /**
1614
+ * A moment as a clock time with its offset - "17:30 UTC+08:00, 10 Nov" - never
1615
+ * a bare ISO string. Read from the string itself: its own offset when it has
1616
+ * one, else UTC, since no hotel record here carries a time zone. Undefined for
1617
+ * anything that is not an ISO moment.
1618
+ */
1619
+ export declare const clockWords: (iso: string | undefined) => string | undefined;
1464
1620
  /**
1465
1621
  * From how many cities a country is a list of cities to choose from rather
1466
1622
  * than a list of hotels. China is forty; Malaysia's six hotels in three cities
@@ -1497,6 +1653,28 @@ export declare const HOME_LIST_MAX = 6;
1497
1653
  * assistant's next answer hands the card.
1498
1654
  */
1499
1655
  export declare const tripGone: (deps: ToolDeps) => ToolAnswer;
1656
+ /**
1657
+ * The guest's agreement to the terms behind `ref`, and what it came to: the
1658
+ * booking (with its payment page), the group's terms again, or a refusal's
1659
+ * code. THE ONE AGREE STEP: the booking card's own tool (`acceptTerms`) and the
1660
+ * one-time page (account/index.ts, `makeAccount({ terms })`) both end here, and
1661
+ * neither is the model's. Throws the group's refusals (`terms-gone`, `sign-in` …)
1662
+ * as `otaless/booking.ts` raises them: `refusalAnswer` says each.
1663
+ */
1664
+ export declare const agreeToTerms: (deps: ToolDeps, key: string, ref: string, ctx: ToolContext,
1665
+ /** The card's own arguments (a coupon, a request to remember), as it sent them; the page has none. */
1666
+ args?: Record<string, unknown>) => Promise<ToolAnswer>;
1667
+ /**
1668
+ * The conversation's tool context and identity from its key alone - for the
1669
+ * one-time terms page, which has the key (account layer) and no session id. The
1670
+ * key is `tripKey(session, brand)`; the identity is the same one the tools build.
1671
+ */
1672
+ export declare const contextFor: (deps: ToolDeps, key: string) => ToolContext;
1673
+ export declare const identityFor: (deps: ToolDeps, key: string) => Identity;
1674
+ /** A booking refusal as its answer (`view: 'error'`, its code), or undefined when `err` is not one. */
1675
+ export declare const bookingRefusal: (deps: ToolDeps, key: string, err: unknown) => (ToolAnswer & {
1676
+ isError?: boolean;
1677
+ }) | undefined;
1500
1678
  export declare const handleTool: (deps: ToolDeps, name: string, rawArgs: unknown, ctx: ToolContext) => Promise<ToolAnswer>;
1501
1679
  /**
1502
1680
  * Every plan's answer ends with this: the card is the plan, and a correction