@curless/hotel-storefront 0.85.0 → 0.86.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/dist/tools/accept-terms.d.ts +4 -0
- package/dist/tools/accept-terms.d.ts.map +1 -0
- package/dist/tools/accept-terms.js +26 -0
- package/dist/tools/accept-terms.js.map +1 -0
- package/dist/tools/add-booking-addon.d.ts +4 -0
- package/dist/tools/add-booking-addon.d.ts.map +1 -0
- package/dist/tools/add-booking-addon.js +44 -0
- package/dist/tools/add-booking-addon.js.map +1 -0
- package/dist/tools/add-to-trip.d.ts +4 -0
- package/dist/tools/add-to-trip.d.ts.map +1 -0
- package/dist/tools/add-to-trip.js +49 -0
- package/dist/tools/add-to-trip.js.map +1 -0
- package/dist/tools/all-tools.d.ts +1342 -0
- package/dist/tools/all-tools.d.ts.map +1 -0
- package/dist/tools/all-tools.js +954 -0
- package/dist/tools/all-tools.js.map +1 -0
- package/dist/tools/answer.d.ts +3 -0
- package/dist/tools/answer.d.ts.map +1 -0
- package/dist/tools/answer.js +104 -0
- package/dist/tools/answer.js.map +1 -0
- package/dist/tools/args.d.ts +149 -0
- package/dist/tools/args.d.ts.map +1 -0
- package/dist/tools/args.js +176 -0
- package/dist/tools/args.js.map +1 -0
- package/dist/tools/base-output-schemas.d.ts +3 -0
- package/dist/tools/base-output-schemas.d.ts.map +1 -0
- package/dist/tools/base-output-schemas.js +380 -0
- package/dist/tools/base-output-schemas.js.map +1 -0
- package/dist/tools/book-picked.d.ts +4 -0
- package/dist/tools/book-picked.d.ts.map +1 -0
- package/dist/tools/book-picked.js +14 -0
- package/dist/tools/book-picked.js.map +1 -0
- package/dist/tools/booking-answer.d.ts +24 -0
- package/dist/tools/booking-answer.d.ts.map +1 -0
- package/dist/tools/booking-answer.js +485 -0
- package/dist/tools/booking-answer.js.map +1 -0
- package/dist/tools/buy-shop-item.d.ts +4 -0
- package/dist/tools/buy-shop-item.d.ts.map +1 -0
- package/dist/tools/buy-shop-item.js +45 -0
- package/dist/tools/buy-shop-item.js.map +1 -0
- package/dist/tools/call.d.ts +11 -0
- package/dist/tools/call.d.ts.map +1 -0
- package/dist/tools/call.js +2 -0
- package/dist/tools/call.js.map +1 -0
- package/dist/tools/cancel-facts.d.ts +281 -0
- package/dist/tools/cancel-facts.d.ts.map +1 -0
- package/dist/tools/cancel-facts.js +309 -0
- package/dist/tools/cancel-facts.js.map +1 -0
- package/dist/tools/cancel.d.ts +4 -0
- package/dist/tools/cancel.d.ts.map +1 -0
- package/dist/tools/cancel.js +364 -0
- package/dist/tools/cancel.js.map +1 -0
- package/dist/tools/card-addons.d.ts +4 -0
- package/dist/tools/card-addons.d.ts.map +1 -0
- package/dist/tools/card-addons.js +76 -0
- package/dist/tools/card-addons.js.map +1 -0
- package/dist/tools/change-booking.d.ts +4 -0
- package/dist/tools/change-booking.d.ts.map +1 -0
- package/dist/tools/change-booking.js +145 -0
- package/dist/tools/change-booking.js.map +1 -0
- package/dist/tools/clear-trip.d.ts +4 -0
- package/dist/tools/clear-trip.d.ts.map +1 -0
- package/dist/tools/clear-trip.js +10 -0
- package/dist/tools/clear-trip.js.map +1 -0
- package/dist/tools/compare.d.ts +4 -0
- package/dist/tools/compare.d.ts.map +1 -0
- package/dist/tools/compare.js +114 -0
- package/dist/tools/compare.js.map +1 -0
- package/dist/tools/current-trip.d.ts +70 -0
- package/dist/tools/current-trip.d.ts.map +1 -0
- package/dist/tools/current-trip.js +261 -0
- package/dist/tools/current-trip.js.map +1 -0
- package/dist/tools/deps.d.ts +229 -0
- package/dist/tools/deps.d.ts.map +1 -0
- package/dist/tools/deps.js +2 -0
- package/dist/tools/deps.js.map +1 -0
- package/dist/tools/follow-ups.d.ts +120 -0
- package/dist/tools/follow-ups.d.ts.map +1 -0
- package/dist/tools/follow-ups.js +369 -0
- package/dist/tools/follow-ups.js.map +1 -0
- package/dist/tools/forget-preferences.d.ts +4 -0
- package/dist/tools/forget-preferences.d.ts.map +1 -0
- package/dist/tools/forget-preferences.js +24 -0
- package/dist/tools/forget-preferences.js.map +1 -0
- package/dist/tools/get-hotel.d.ts +4 -0
- package/dist/tools/get-hotel.d.ts.map +1 -0
- package/dist/tools/get-hotel.js +324 -0
- package/dist/tools/get-hotel.js.map +1 -0
- package/dist/tools/hotel-choices.d.ts +132 -0
- package/dist/tools/hotel-choices.d.ts.map +1 -0
- package/dist/tools/hotel-choices.js +558 -0
- package/dist/tools/hotel-choices.js.map +1 -0
- package/dist/tools/itinerary.d.ts +4 -0
- package/dist/tools/itinerary.d.ts.map +1 -0
- package/dist/tools/itinerary.js +148 -0
- package/dist/tools/itinerary.js.map +1 -0
- package/dist/tools/list-booking-addons.d.ts +4 -0
- package/dist/tools/list-booking-addons.d.ts.map +1 -0
- package/dist/tools/list-booking-addons.js +21 -0
- package/dist/tools/list-booking-addons.js.map +1 -0
- package/dist/tools/list-bookings.d.ts +4 -0
- package/dist/tools/list-bookings.d.ts.map +1 -0
- package/dist/tools/list-bookings.js +119 -0
- package/dist/tools/list-bookings.js.map +1 -0
- package/dist/tools/list-extras.d.ts +4 -0
- package/dist/tools/list-extras.d.ts.map +1 -0
- package/dist/tools/list-extras.js +90 -0
- package/dist/tools/list-extras.js.map +1 -0
- package/dist/tools/list-hotels.d.ts +4 -0
- package/dist/tools/list-hotels.d.ts.map +1 -0
- package/dist/tools/list-hotels.js +891 -0
- package/dist/tools/list-hotels.js.map +1 -0
- package/dist/tools/list-shop-items.d.ts +4 -0
- package/dist/tools/list-shop-items.d.ts.map +1 -0
- package/dist/tools/list-shop-items.js +34 -0
- package/dist/tools/list-shop-items.js.map +1 -0
- package/dist/tools/list-shop-orders.d.ts +4 -0
- package/dist/tools/list-shop-orders.d.ts.map +1 -0
- package/dist/tools/list-shop-orders.js +22 -0
- package/dist/tools/list-shop-orders.js.map +1 -0
- package/dist/tools/look-up.d.ts +4 -0
- package/dist/tools/look-up.d.ts.map +1 -0
- package/dist/tools/look-up.js +170 -0
- package/dist/tools/look-up.js.map +1 -0
- package/dist/tools/output-schemas.d.ts +645 -0
- package/dist/tools/output-schemas.d.ts.map +1 -0
- package/dist/tools/output-schemas.js +503 -0
- package/dist/tools/output-schemas.js.map +1 -0
- package/dist/tools/paid-lines.d.ts +718 -0
- package/dist/tools/paid-lines.d.ts.map +1 -0
- package/dist/tools/paid-lines.js +359 -0
- package/dist/tools/paid-lines.js.map +1 -0
- package/dist/tools/pay-with-union-pay.d.ts +4 -0
- package/dist/tools/pay-with-union-pay.d.ts.map +1 -0
- package/dist/tools/pay-with-union-pay.js +112 -0
- package/dist/tools/pay-with-union-pay.js.map +1 -0
- package/dist/tools/payment-words.d.ts +269 -0
- package/dist/tools/payment-words.d.ts.map +1 -0
- package/dist/tools/payment-words.js +365 -0
- package/dist/tools/payment-words.js.map +1 -0
- package/dist/tools/pick-room.d.ts +4 -0
- package/dist/tools/pick-room.d.ts.map +1 -0
- package/dist/tools/pick-room.js +23 -0
- package/dist/tools/pick-room.js.map +1 -0
- package/dist/tools/policies.d.ts +4 -0
- package/dist/tools/policies.d.ts.map +1 -0
- package/dist/tools/policies.js +74 -0
- package/dist/tools/policies.js.map +1 -0
- package/dist/tools/pricing.d.ts +55 -0
- package/dist/tools/pricing.d.ts.map +1 -0
- package/dist/tools/pricing.js +260 -0
- package/dist/tools/pricing.js.map +1 -0
- package/dist/tools/put-room-line.d.ts +12 -0
- package/dist/tools/put-room-line.d.ts.map +1 -0
- package/dist/tools/put-room-line.js +314 -0
- package/dist/tools/put-room-line.js.map +1 -0
- package/dist/tools/quote-card.d.ts +234 -0
- package/dist/tools/quote-card.d.ts.map +1 -0
- package/dist/tools/quote-card.js +375 -0
- package/dist/tools/quote-card.js.map +1 -0
- package/dist/tools/refund-booking.d.ts +4 -0
- package/dist/tools/refund-booking.d.ts.map +1 -0
- package/dist/tools/refund-booking.js +112 -0
- package/dist/tools/refund-booking.js.map +1 -0
- package/dist/tools/request-booking.d.ts +4 -0
- package/dist/tools/request-booking.d.ts.map +1 -0
- package/dist/tools/request-booking.js +5 -0
- package/dist/tools/request-booking.js.map +1 -0
- package/dist/tools/request-words.d.ts +238 -0
- package/dist/tools/request-words.d.ts.map +1 -0
- package/dist/tools/request-words.js +487 -0
- package/dist/tools/request-words.js.map +1 -0
- package/dist/tools/room-choices.d.ts +64 -0
- package/dist/tools/room-choices.d.ts.map +1 -0
- package/dist/tools/room-choices.js +348 -0
- package/dist/tools/room-choices.js.map +1 -0
- package/dist/tools/session-notes.d.ts +164 -0
- package/dist/tools/session-notes.d.ts.map +1 -0
- package/dist/tools/session-notes.js +412 -0
- package/dist/tools/session-notes.js.map +1 -0
- package/dist/tools/sign-in.d.ts +4 -0
- package/dist/tools/sign-in.d.ts.map +1 -0
- package/dist/tools/sign-in.js +72 -0
- package/dist/tools/sign-in.js.map +1 -0
- package/dist/tools/sign-out.d.ts +4 -0
- package/dist/tools/sign-out.d.ts.map +1 -0
- package/dist/tools/sign-out.js +13 -0
- package/dist/tools/sign-out.js.map +1 -0
- package/dist/tools/terms-answer.d.ts +114 -0
- package/dist/tools/terms-answer.d.ts.map +1 -0
- package/dist/tools/terms-answer.js +475 -0
- package/dist/tools/terms-answer.js.map +1 -0
- package/dist/tools/tool-set.d.ts +1474 -0
- package/dist/tools/tool-set.d.ts.map +1 -0
- package/dist/tools/tool-set.js +497 -0
- package/dist/tools/tool-set.js.map +1 -0
- package/dist/tools/view-trip.d.ts +4 -0
- package/dist/tools/view-trip.d.ts.map +1 -0
- package/dist/tools/view-trip.js +7 -0
- package/dist/tools/view-trip.js.map +1 -0
- package/dist/tools.d.ts +13 -2089
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +11 -10685
- package/dist/tools.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,954 @@
|
|
|
1
|
+
import { DEFAULT_PAGE, MAX_PAGE, REQUEST_KINDS, REQUEST_NOTE_MAX } from '../backend.js';
|
|
2
|
+
import { MAX_GUESTS } from '../dates.js';
|
|
3
|
+
import { FACILITIES } from '../facilities.js';
|
|
4
|
+
import { MAX_COMPARED, MAX_CONS, MAX_DAYS, MAX_ITEMS_PER_DAY, MAX_MOMENTS, MAX_PROS, } from '../present.js';
|
|
5
|
+
import { MAX_EXTRA_QUANTITY, MAX_ROOMS_PER_LINE } from '../trip.js';
|
|
6
|
+
import { aBrandOf, catalogue, upFirst } from '../vocab.js';
|
|
7
|
+
import { REFUND_REASON_MAX, SHOP_ORDERS_DESCRIPTION } from './output-schemas.js';
|
|
8
|
+
import { DATE, LOOK_UP_MAX, books, cancels, edits, orders, reads, replaces } from './tool-set.js';
|
|
9
|
+
export const allTools = (n, v) => {
|
|
10
|
+
const open = !v.demo;
|
|
11
|
+
const places = v.hints.places ?? [];
|
|
12
|
+
const stayProps = {
|
|
13
|
+
// A weekend in the words a guest says it, as `WEEKEND_WORDS` has it (总线程 11-09:
|
|
14
|
+
// 「这周末」 went in as Saturday night alone).
|
|
15
|
+
checkIn: DATE('The arrival date - for a weekend (周末, this weekend), the Friday'),
|
|
16
|
+
checkOut: DATE('The departure date - the night before it is the last night; for a weekend, the Sunday'),
|
|
17
|
+
guests: {
|
|
18
|
+
type: 'integer',
|
|
19
|
+
minimum: 1,
|
|
20
|
+
maximum: MAX_GUESTS,
|
|
21
|
+
description: 'People in the room. Default 2',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
// The guest and what they ask of the desk: the fields of a booking, whether
|
|
25
|
+
// the rooms come from the trip (request_booking) or from the picked room.
|
|
26
|
+
const guestProps = {
|
|
27
|
+
name: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
description: "The guest's full name, as it should appear on the booking",
|
|
30
|
+
},
|
|
31
|
+
email: { type: 'string', description: 'The email the confirmation goes to' },
|
|
32
|
+
phone: { type: 'string', description: 'Optional' },
|
|
33
|
+
requests: {
|
|
34
|
+
type: 'array',
|
|
35
|
+
items: { type: 'string', enum: REQUEST_KINDS },
|
|
36
|
+
description: 'Preferences the desk tries to meet on the day. None of them is held; the answer says so',
|
|
37
|
+
},
|
|
38
|
+
arrivingAt: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
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",
|
|
41
|
+
},
|
|
42
|
+
notes: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
description: `Anything else for the desk, in the guest's own words, up to ${REQUEST_NOTE_MAX} characters`,
|
|
45
|
+
},
|
|
46
|
+
rememberRequests: {
|
|
47
|
+
type: 'boolean',
|
|
48
|
+
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',
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
return [
|
|
52
|
+
{
|
|
53
|
+
name: n.listHotels,
|
|
54
|
+
// ⚠️ WHAT THIS CARD IS FOR, IN ITS FIRST SENTENCE (总线程, 2026-10-26).
|
|
55
|
+
// robin on live 0.47.7, a new Atour conversation: 「11月1号到7号北京行程」
|
|
56
|
+
// went straight to this tool and drew "Beijing, 4 hotels" - the planning
|
|
57
|
+
// exemption sat only in the server instructions, which a host may not
|
|
58
|
+
// pass on (evals without them failed the same way, 5/6 and 4/6). So the
|
|
59
|
+
// description says it too, as what the card is, never as an order: the
|
|
60
|
+
// directory rule (tool-descriptions.test.ts) holds, and "first" is one of
|
|
61
|
+
// its words, hence "the other way round".
|
|
62
|
+
description: `${upFirst(catalogue(v))}, shown to a guest - as a card, in an app that draws one - to look through and pick one ${v.noun} to book. It holds no plan of days: a day-by-day plan (行程, 安排, an itinerary) is an answer of its own, laid out by the days, with a ${v.noun} 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 ${v.nounPlural} it has; \`all\` lists the ${v.nounPlural} themselves. \`city\` (a city or a country) or \`query\` answers with the ${v.nounPlural}: a picture, the city and area, a rating where the ${v.noun} publishes one, and a from-price, and a city usually holds several. With \`checkIn\` and \`checkOut\` every ${v.noun} 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.${v.hints.search ? ` ${v.hints.search}` : ''}`,
|
|
63
|
+
annotations: reads(`Browse ${catalogue(v)}`, open),
|
|
64
|
+
inputSchema: {
|
|
65
|
+
type: 'object',
|
|
66
|
+
properties: {
|
|
67
|
+
query: {
|
|
68
|
+
type: 'string',
|
|
69
|
+
description: "Free text over the name, city, area, description and amenities - the guest's own words",
|
|
70
|
+
},
|
|
71
|
+
city: {
|
|
72
|
+
type: 'string',
|
|
73
|
+
description: `One city or one country${places.length ? `, e.g. ${places.map((p) => `"${p}"`).join(' or ')}` : ''}`,
|
|
74
|
+
},
|
|
75
|
+
...stayProps,
|
|
76
|
+
rooms: {
|
|
77
|
+
type: 'integer',
|
|
78
|
+
minimum: 1,
|
|
79
|
+
maximum: MAX_ROOMS_PER_LINE,
|
|
80
|
+
description: `With dates: how many rooms of one type the party needs, 1 to ${MAX_ROOMS_PER_LINE}. Default 1`,
|
|
81
|
+
},
|
|
82
|
+
sort: {
|
|
83
|
+
type: 'string',
|
|
84
|
+
enum: ['group', 'price-low', 'price-high', 'rating'],
|
|
85
|
+
// In a market there are several groups, and "the group" is none of them.
|
|
86
|
+
description: `Default \`group\`: the cities ${v.market ? `with the most ${v.nounPlural}` : `the group has most ${v.nounPlural} in`} 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`,
|
|
87
|
+
},
|
|
88
|
+
maxNightly: {
|
|
89
|
+
type: 'number',
|
|
90
|
+
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',
|
|
91
|
+
},
|
|
92
|
+
limit: {
|
|
93
|
+
type: 'number',
|
|
94
|
+
description: `How many to return, 1 to ${MAX_PAGE}. Default ${DEFAULT_PAGE}`,
|
|
95
|
+
},
|
|
96
|
+
offset: {
|
|
97
|
+
type: 'number',
|
|
98
|
+
description: 'How many of the matches to skip: the answer says where the next page starts',
|
|
99
|
+
},
|
|
100
|
+
brand: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
description: v.market
|
|
103
|
+
? "One of the hotels' own brands (Kerry, Hanting - not a hotel group), as the list's brand counts name it"
|
|
104
|
+
: "One of the group's brands, as the list's brand counts name it",
|
|
105
|
+
},
|
|
106
|
+
...(v.market
|
|
107
|
+
? {
|
|
108
|
+
group: {
|
|
109
|
+
type: 'string',
|
|
110
|
+
description: "One hotel group's hotels only, by the group's name",
|
|
111
|
+
},
|
|
112
|
+
}
|
|
113
|
+
: {}),
|
|
114
|
+
facilities: {
|
|
115
|
+
type: 'array',
|
|
116
|
+
items: { type: 'string', enum: FACILITIES.map((x) => x.key) },
|
|
117
|
+
description: `What every ${v.noun} listed must have`,
|
|
118
|
+
},
|
|
119
|
+
freeCancellation: {
|
|
120
|
+
type: 'boolean',
|
|
121
|
+
description: `Only ${v.nounPlural} with a room that can be cancelled free - and, with dates, that room is the one priced`,
|
|
122
|
+
},
|
|
123
|
+
breakfast: {
|
|
124
|
+
type: 'boolean',
|
|
125
|
+
description: `Only ${v.nounPlural} with a room that includes breakfast - and, with dates, that room is the one priced`,
|
|
126
|
+
},
|
|
127
|
+
bed: {
|
|
128
|
+
type: 'string',
|
|
129
|
+
enum: ['king', 'twin'],
|
|
130
|
+
description: `Only ${v.nounPlural} 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`,
|
|
131
|
+
},
|
|
132
|
+
all: {
|
|
133
|
+
type: 'boolean',
|
|
134
|
+
description: `Unnarrowed, or narrowed to a country of many cities, the answer is the places to choose from; true lists the ${v.nounPlural} themselves`,
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: n.getHotel,
|
|
141
|
+
description: `One ${v.noun} in full: description, amenities, address, and check-in and check-out times where the ${v.noun} 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 ${v.noun} only, because a room has no price until the nights are known. The ${v.noun} is shown to the guest - as a card, in an app that draws one.${v.hints.hotel ? ` ${v.hints.hotel}` : ''}`,
|
|
142
|
+
annotations: reads(`View one ${catalogue(v, true)}`, open),
|
|
143
|
+
inputSchema: {
|
|
144
|
+
type: 'object',
|
|
145
|
+
properties: {
|
|
146
|
+
hotel: {
|
|
147
|
+
type: 'string',
|
|
148
|
+
description: `The ${v.noun}'s name or id${v.hints.example ? `, e.g. "${v.hints.example}"` : ''}`,
|
|
149
|
+
},
|
|
150
|
+
...stayProps,
|
|
151
|
+
rooms: {
|
|
152
|
+
type: 'integer',
|
|
153
|
+
minimum: 1,
|
|
154
|
+
maximum: MAX_ROOMS_PER_LINE,
|
|
155
|
+
description: `How many rooms of one type, 1 to ${MAX_ROOMS_PER_LINE}. Default 1`,
|
|
156
|
+
},
|
|
157
|
+
bed: {
|
|
158
|
+
type: 'string',
|
|
159
|
+
enum: ['king', 'twin'],
|
|
160
|
+
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',
|
|
161
|
+
},
|
|
162
|
+
breakfast: {
|
|
163
|
+
type: 'boolean',
|
|
164
|
+
description: 'With dates: only rooms whose rate includes breakfast',
|
|
165
|
+
},
|
|
166
|
+
freeCancellation: {
|
|
167
|
+
type: 'boolean',
|
|
168
|
+
description: 'With dates: only rooms that can be cancelled free',
|
|
169
|
+
},
|
|
170
|
+
window: {
|
|
171
|
+
type: 'boolean',
|
|
172
|
+
description: 'With dates: only rooms with a window (not a partial or an inner one)',
|
|
173
|
+
},
|
|
174
|
+
payment: {
|
|
175
|
+
type: 'string',
|
|
176
|
+
enum: ['at-hotel', 'online'],
|
|
177
|
+
description: 'With dates: only rooms paid at the hotel (`at-hotel`) or in advance online (`online`)',
|
|
178
|
+
},
|
|
179
|
+
family: {
|
|
180
|
+
type: 'boolean',
|
|
181
|
+
description: 'With dates: only rooms that sleep 3 or more',
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
required: ['hotel'],
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: n.lookUp,
|
|
189
|
+
// ⚠️ THE ONE READING TOOL THAT DRAWS NOTHING. Every other one renders a
|
|
190
|
+
// card on every call, so a model reading up before it answered - list
|
|
191
|
+
// the city, open four hotels, then compare - put six cards in front of
|
|
192
|
+
// the guest for one question (robin, 2026-09-29, Opus in Claude.ai). The
|
|
193
|
+
// reference apps do the same split: search without a card, present with
|
|
194
|
+
// one.
|
|
195
|
+
description: `Reads up to ${LOOK_UP_MAX} ${v.nounPlural} - a \`city\`'s (or a country's), or the ones named in \`${v.nounPlural}\` - 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 ${v.nounPlural} 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.`,
|
|
196
|
+
annotations: reads(`Look up ${catalogue(v)}`, open),
|
|
197
|
+
inputSchema: {
|
|
198
|
+
type: 'object',
|
|
199
|
+
properties: {
|
|
200
|
+
city: {
|
|
201
|
+
type: 'string',
|
|
202
|
+
description: `A city or a country: its ${v.nounPlural}, up to ${LOOK_UP_MAX}`,
|
|
203
|
+
},
|
|
204
|
+
[v.nounPlural]: {
|
|
205
|
+
type: 'array',
|
|
206
|
+
items: { type: 'string' },
|
|
207
|
+
description: `Up to ${LOOK_UP_MAX} ${v.nounPlural} by name or id; these are read when both are given`,
|
|
208
|
+
},
|
|
209
|
+
...stayProps,
|
|
210
|
+
rooms: {
|
|
211
|
+
type: 'integer',
|
|
212
|
+
minimum: 1,
|
|
213
|
+
maximum: MAX_ROOMS_PER_LINE,
|
|
214
|
+
description: `How many rooms of one type, 1 to ${MAX_ROOMS_PER_LINE}. Default 1`,
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: n.listExtras,
|
|
221
|
+
description: `What one ${v.noun} 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.`,
|
|
222
|
+
annotations: reads(v.market ? `Add-ons on ${v.brand}` : `${v.brand} add-ons`, open),
|
|
223
|
+
inputSchema: {
|
|
224
|
+
type: 'object',
|
|
225
|
+
properties: {
|
|
226
|
+
hotel: { type: 'string', description: `The ${v.noun}'s name or id` },
|
|
227
|
+
...stayProps,
|
|
228
|
+
booking: {
|
|
229
|
+
type: 'string',
|
|
230
|
+
description: `A booking's confirmation code. The answer is then that booking's ${v.noun}, its add-ons for those nights and how many of each the booking holds`,
|
|
231
|
+
},
|
|
232
|
+
email: {
|
|
233
|
+
type: 'string',
|
|
234
|
+
description: 'The email the booking was made with, when it was made elsewhere',
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: n.addToTrip,
|
|
241
|
+
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 ${v.noun}, the room type and the dates; \`rooms\` sets how many of that room type. An add-on line needs the ${v.noun} 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.`,
|
|
242
|
+
// ⚠️ `replaces`, NOT `edits` (0.79.8, the OpenAI scan of 11-20: "marked destructiveHint: false,
|
|
243
|
+
// but its behavior appears to cause material loss or a hard-to-reverse change"): a line sent
|
|
244
|
+
// again overwrites that line's room count and 0 takes it out - not only additive, which is
|
|
245
|
+
// what `destructiveHint: false` claims. The trip is still only this conversation's plan.
|
|
246
|
+
annotations: replaces(`Add to the ${v.brand} trip`, open),
|
|
247
|
+
inputSchema: {
|
|
248
|
+
type: 'object',
|
|
249
|
+
properties: {
|
|
250
|
+
hotel: { type: 'string', description: `The ${v.noun}'s name or id` },
|
|
251
|
+
room: {
|
|
252
|
+
type: 'string',
|
|
253
|
+
description: 'The room type id or name, as the hotel returned it',
|
|
254
|
+
},
|
|
255
|
+
extra: {
|
|
256
|
+
type: 'string',
|
|
257
|
+
description: 'The add-on id or name. A line names either this or `room`',
|
|
258
|
+
},
|
|
259
|
+
...stayProps,
|
|
260
|
+
rooms: {
|
|
261
|
+
type: 'integer',
|
|
262
|
+
minimum: 0,
|
|
263
|
+
maximum: MAX_ROOMS_PER_LINE,
|
|
264
|
+
description: `How many of that room type in the plan, 1 to ${MAX_ROOMS_PER_LINE}. Default 1; 0 takes the line out`,
|
|
265
|
+
},
|
|
266
|
+
quantity: {
|
|
267
|
+
type: 'integer',
|
|
268
|
+
minimum: 0,
|
|
269
|
+
maximum: MAX_EXTRA_QUANTITY,
|
|
270
|
+
description: `For an add-on: how many, 1 to ${MAX_EXTRA_QUANTITY}. 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`,
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
required: ['hotel'],
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: n.viewTrip,
|
|
278
|
+
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).',
|
|
279
|
+
annotations: reads(`View the ${v.brand} trip`, open),
|
|
280
|
+
inputSchema: { type: 'object', properties: {} },
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: n.clearTrip,
|
|
284
|
+
description: 'Empties the trip.',
|
|
285
|
+
annotations: replaces(`Clear the ${v.brand} trip`, open),
|
|
286
|
+
inputSchema: { type: 'object', properties: {} },
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: n.requestBooking,
|
|
290
|
+
// ⚠️ A DEMONSTRATION BOOKING IS SAID AS ONE (2026-10-05 audit, P2):
|
|
291
|
+
// "asks Shangri-La to hold the rooms" read as a real hold, and a guest
|
|
292
|
+
// could take the code to the real hotel.
|
|
293
|
+
description: v.market
|
|
294
|
+
? // ⚠️ THE GROUP HOLDS THE BOOKING, NOT THE MARKET - and what a booking
|
|
295
|
+
// makes is the group's: a hold, a booking that holds no room, or a
|
|
296
|
+
// reservation paid at the hotel. The answer says which, stay by stay.
|
|
297
|
+
// ⚠️ NO "DEMONSTRATION" / "TEST" / "SIMULATED" (robin, 2026-11-03).
|
|
298
|
+
`Books the trip's rooms for a named guest with the hotel group each stay belongs to, one group at a time: a trip holding two groups' hotels is booked group by group. What a booking makes is that group's - 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 - and the answer says which for every stay. No payment is taken here and no card is collected. Preferences - a bed type, a floor, a late arrival - ride along on the booking as requests.`
|
|
299
|
+
: v.demo
|
|
300
|
+
? `Makes a booking request for the trip's rooms, for a named guest: 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. No payment is taken and no card is collected. Preferences - a bed type, a floor, a late arrival - ride along on the request.`
|
|
301
|
+
: `Asks ${v.brand} to hold the trip's rooms for a named guest and returns a confirmation code and the moment the hold lapses. No payment is taken and no card is collected; the rooms are held, not paid for. Preferences - a bed type, a floor, a late arrival - ride along on the booking as requests the desk tries to meet.`,
|
|
302
|
+
annotations: orders(v.market ? `Request a booking on ${v.brand}` : `Request ${aBrandOf(v)} booking`, open),
|
|
303
|
+
inputSchema: {
|
|
304
|
+
type: 'object',
|
|
305
|
+
properties: {
|
|
306
|
+
...guestProps,
|
|
307
|
+
// A booking is made with one group at a time; a trip holding two
|
|
308
|
+
// groups' hotels is booked group by group (Marketplace, §6-1).
|
|
309
|
+
...(v.market
|
|
310
|
+
? {
|
|
311
|
+
group: {
|
|
312
|
+
type: 'string',
|
|
313
|
+
description: "The hotel group to book now, by name, when the trip holds more than one group's hotels. Its stays are booked and the others stay in the trip",
|
|
314
|
+
},
|
|
315
|
+
}
|
|
316
|
+
: {}),
|
|
317
|
+
},
|
|
318
|
+
required: ['name', 'email'],
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
name: n.listBookings,
|
|
323
|
+
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.',
|
|
324
|
+
annotations: reads(`My ${v.brand} bookings`, open),
|
|
325
|
+
inputSchema: {
|
|
326
|
+
type: 'object',
|
|
327
|
+
properties: {
|
|
328
|
+
booking: {
|
|
329
|
+
type: 'string',
|
|
330
|
+
description: 'A confirmation code, with `email`, for a booking made elsewhere',
|
|
331
|
+
},
|
|
332
|
+
email: { type: 'string', description: 'The email that booking was made with' },
|
|
333
|
+
limit: { type: 'number', description: 'Default 10' },
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: n.previewCancellation,
|
|
339
|
+
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.',
|
|
340
|
+
annotations: reads('Preview a cancellation', open),
|
|
341
|
+
inputSchema: {
|
|
342
|
+
type: 'object',
|
|
343
|
+
properties: {
|
|
344
|
+
booking: { type: 'string', description: 'The confirmation code or booking id' },
|
|
345
|
+
email: {
|
|
346
|
+
type: 'string',
|
|
347
|
+
description: 'The email the booking was made with, when it was made elsewhere',
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
required: ['booking'],
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
name: n.cancelBooking,
|
|
355
|
+
// No other tool is named here, and that is not a stylistic choice: the
|
|
356
|
+
// directory attestation covers descriptions that instruct about other
|
|
357
|
+
// tools. The preview it returns is the same payload the preview tool
|
|
358
|
+
// returns, which is a fact about THIS tool's answer.
|
|
359
|
+
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.',
|
|
360
|
+
annotations: cancels('Cancel a booking', open),
|
|
361
|
+
inputSchema: {
|
|
362
|
+
type: 'object',
|
|
363
|
+
properties: {
|
|
364
|
+
booking: { type: 'string', description: 'The confirmation code or booking id' },
|
|
365
|
+
confirmed: {
|
|
366
|
+
type: 'boolean',
|
|
367
|
+
description: 'True cancels. Anything else returns the preview',
|
|
368
|
+
},
|
|
369
|
+
reason: { type: 'string', description: 'Optional, kept on the booking' },
|
|
370
|
+
email: {
|
|
371
|
+
type: 'string',
|
|
372
|
+
description: 'The email the booking was made with, when it was made elsewhere',
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
required: ['booking'],
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name: n.previewChange,
|
|
380
|
+
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 ${v.noun} 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.`,
|
|
381
|
+
annotations: reads('Preview a booking change', open),
|
|
382
|
+
inputSchema: {
|
|
383
|
+
type: 'object',
|
|
384
|
+
properties: {
|
|
385
|
+
booking: { type: 'string', description: 'The confirmation code or booking id' },
|
|
386
|
+
checkIn: {
|
|
387
|
+
type: 'string',
|
|
388
|
+
description: 'The new check-in, YYYY-MM-DD. Leave out to keep it',
|
|
389
|
+
},
|
|
390
|
+
checkOut: {
|
|
391
|
+
type: 'string',
|
|
392
|
+
description: 'The new check-out, YYYY-MM-DD. Leave out to keep it',
|
|
393
|
+
},
|
|
394
|
+
rooms: {
|
|
395
|
+
type: 'integer',
|
|
396
|
+
minimum: 1,
|
|
397
|
+
maximum: MAX_ROOMS_PER_LINE,
|
|
398
|
+
description: `How many of that room type, 1 to ${MAX_ROOMS_PER_LINE}. Leave out to keep it`,
|
|
399
|
+
},
|
|
400
|
+
room: {
|
|
401
|
+
type: 'string',
|
|
402
|
+
description: 'A different room type at the same hotel, by id or name',
|
|
403
|
+
},
|
|
404
|
+
extra: {
|
|
405
|
+
type: 'string',
|
|
406
|
+
description: `An add-on at this ${v.noun}, by id or name, to put on the booking, take off or change - with \`quantity\``,
|
|
407
|
+
},
|
|
408
|
+
quantity: {
|
|
409
|
+
type: 'integer',
|
|
410
|
+
minimum: 0,
|
|
411
|
+
maximum: MAX_EXTRA_QUANTITY,
|
|
412
|
+
description: `How many of that add-on the booking should hold, 0 to ${MAX_EXTRA_QUANTITY}; 0 takes it off`,
|
|
413
|
+
},
|
|
414
|
+
email: {
|
|
415
|
+
type: 'string',
|
|
416
|
+
description: 'The email the booking was made with, when it was made elsewhere',
|
|
417
|
+
},
|
|
418
|
+
},
|
|
419
|
+
required: ['booking'],
|
|
420
|
+
},
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
name: n.changeBooking,
|
|
424
|
+
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.',
|
|
425
|
+
annotations: replaces('Change a booking', open),
|
|
426
|
+
inputSchema: {
|
|
427
|
+
type: 'object',
|
|
428
|
+
properties: {
|
|
429
|
+
booking: { type: 'string', description: 'The confirmation code or booking id' },
|
|
430
|
+
checkIn: {
|
|
431
|
+
type: 'string',
|
|
432
|
+
description: 'The new check-in, YYYY-MM-DD. Leave out to keep it',
|
|
433
|
+
},
|
|
434
|
+
checkOut: {
|
|
435
|
+
type: 'string',
|
|
436
|
+
description: 'The new check-out, YYYY-MM-DD. Leave out to keep it',
|
|
437
|
+
},
|
|
438
|
+
rooms: {
|
|
439
|
+
type: 'integer',
|
|
440
|
+
minimum: 1,
|
|
441
|
+
maximum: MAX_ROOMS_PER_LINE,
|
|
442
|
+
description: `How many of that room type, 1 to ${MAX_ROOMS_PER_LINE}. Leave out to keep it`,
|
|
443
|
+
},
|
|
444
|
+
room: {
|
|
445
|
+
type: 'string',
|
|
446
|
+
description: 'A different room type at the same hotel, by id or name',
|
|
447
|
+
},
|
|
448
|
+
extra: {
|
|
449
|
+
type: 'string',
|
|
450
|
+
description: `An add-on at this ${v.noun}, by id or name, to put on the booking, take off or change - with \`quantity\``,
|
|
451
|
+
},
|
|
452
|
+
quantity: {
|
|
453
|
+
type: 'integer',
|
|
454
|
+
minimum: 0,
|
|
455
|
+
maximum: MAX_EXTRA_QUANTITY,
|
|
456
|
+
description: `How many of that add-on the booking should hold, 0 to ${MAX_EXTRA_QUANTITY}; 0 takes it off`,
|
|
457
|
+
},
|
|
458
|
+
email: {
|
|
459
|
+
type: 'string',
|
|
460
|
+
description: 'The email the booking was made with, when it was made elsewhere',
|
|
461
|
+
},
|
|
462
|
+
confirmed: {
|
|
463
|
+
type: 'boolean',
|
|
464
|
+
description: 'True makes the change. Anything else returns the preview',
|
|
465
|
+
},
|
|
466
|
+
},
|
|
467
|
+
required: ['booking'],
|
|
468
|
+
},
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
name: n.compare,
|
|
472
|
+
// ⚠️ NO PRICES IN, NO PRICES OUT OF THE MODEL. The arguments carry ids and
|
|
473
|
+
// prose; every figure on the card is read off the hotel's own record. A
|
|
474
|
+
// model that could send a price could one day send the wrong one, onto a
|
|
475
|
+
// card that looks official.
|
|
476
|
+
description: `Puts two to four ${v.nounPlural} 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 ${v.noun}'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 ${v.noun}'s cheapest room for those nights; without them, a from-price.`,
|
|
477
|
+
annotations: reads(`Compare ${catalogue(v)}`, open),
|
|
478
|
+
inputSchema: {
|
|
479
|
+
type: 'object',
|
|
480
|
+
properties: {
|
|
481
|
+
entries: {
|
|
482
|
+
type: 'array',
|
|
483
|
+
minItems: 2,
|
|
484
|
+
maxItems: MAX_COMPARED,
|
|
485
|
+
description: `The ${v.nounPlural} to set beside each other, in the order they should appear`,
|
|
486
|
+
items: {
|
|
487
|
+
type: 'object',
|
|
488
|
+
properties: {
|
|
489
|
+
hotel: { type: 'string', description: `The ${v.noun}'s name or id` },
|
|
490
|
+
bestFor: {
|
|
491
|
+
type: 'string',
|
|
492
|
+
description: 'One line on who this one suits, in your own words',
|
|
493
|
+
},
|
|
494
|
+
pros: { type: 'array', items: { type: 'string' }, maxItems: MAX_PROS },
|
|
495
|
+
cons: { type: 'array', items: { type: 'string' }, maxItems: MAX_CONS },
|
|
496
|
+
},
|
|
497
|
+
required: ['hotel'],
|
|
498
|
+
},
|
|
499
|
+
},
|
|
500
|
+
recommended: { type: 'string', description: `The one ${v.noun} to mark as the pick` },
|
|
501
|
+
title: { type: 'string', description: 'A heading for the plan' },
|
|
502
|
+
...stayProps,
|
|
503
|
+
},
|
|
504
|
+
required: ['entries'],
|
|
505
|
+
},
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
name: n.itinerary,
|
|
509
|
+
description: `A day-by-day plan (行程) - 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 行程 is one): the days are laid out by where they are spent, and each part of the trip has a ${v.noun} near those days, chosen from the ${v.nounPlural} read up as text. Each day carries its own label, an optional note, the moments of the day in order, and the ${v.nounPlural} and add-ons attached to it, with their details filled in from their own records - a ${v.noun} 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.`,
|
|
510
|
+
annotations: reads(v.market ? `Lay out an itinerary on ${v.brand}` : `Lay out ${aBrandOf(v)} itinerary`, open),
|
|
511
|
+
inputSchema: {
|
|
512
|
+
type: 'object',
|
|
513
|
+
properties: {
|
|
514
|
+
title: { type: 'string', description: 'What to call the trip' },
|
|
515
|
+
days: {
|
|
516
|
+
type: 'array',
|
|
517
|
+
minItems: 1,
|
|
518
|
+
maxItems: MAX_DAYS,
|
|
519
|
+
items: {
|
|
520
|
+
type: 'object',
|
|
521
|
+
properties: {
|
|
522
|
+
label: {
|
|
523
|
+
type: 'string',
|
|
524
|
+
description: `e.g. "Arrive${places[0] ? ` in ${places[0]}` : ''}" - each day's date is printed beside it, so leave the date out`,
|
|
525
|
+
},
|
|
526
|
+
note: {
|
|
527
|
+
type: 'string',
|
|
528
|
+
description: 'One or two lines on the day, in your own words',
|
|
529
|
+
},
|
|
530
|
+
why: {
|
|
531
|
+
type: 'string',
|
|
532
|
+
description: `Why the ${v.noun} 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`,
|
|
533
|
+
},
|
|
534
|
+
items: {
|
|
535
|
+
type: 'array',
|
|
536
|
+
items: { type: 'string' },
|
|
537
|
+
maxItems: MAX_ITEMS_PER_DAY,
|
|
538
|
+
description: `${v.nounPlural} and add-ons for that day, by name or id`,
|
|
539
|
+
},
|
|
540
|
+
plan: {
|
|
541
|
+
type: 'array',
|
|
542
|
+
maxItems: MAX_MOMENTS,
|
|
543
|
+
description: 'The day in order, in your own words: when, and what happens then. Nothing in it is booked or priced',
|
|
544
|
+
items: {
|
|
545
|
+
type: 'object',
|
|
546
|
+
properties: {
|
|
547
|
+
time: {
|
|
548
|
+
type: 'string',
|
|
549
|
+
description: 'When in the day, e.g. "Afternoon" or "19:00"',
|
|
550
|
+
},
|
|
551
|
+
what: { type: 'string', description: 'What happens then, in a few words' },
|
|
552
|
+
note: { type: 'string', description: 'One line more, optional' },
|
|
553
|
+
},
|
|
554
|
+
required: ['what'],
|
|
555
|
+
},
|
|
556
|
+
},
|
|
557
|
+
},
|
|
558
|
+
required: ['label'],
|
|
559
|
+
},
|
|
560
|
+
},
|
|
561
|
+
...stayProps,
|
|
562
|
+
},
|
|
563
|
+
required: ['title', 'days'],
|
|
564
|
+
},
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
name: n.signIn,
|
|
568
|
+
// ⚠️ NOTHING ABOUT THE MEMBER IS ASKED FOR HERE (0.58.0, robin 11-06: 「我们
|
|
569
|
+
// 自己的登陆也要改成外链」): the membership number and the surname are typed
|
|
570
|
+
// on our page (account/member-login.ts), never in the chat - so no schema
|
|
571
|
+
// here has a field a model could fill with them.
|
|
572
|
+
// ⚠️ THE WORDS A GUEST SAYS FOR IT (总线程 11-09): a host that finds tools by
|
|
573
|
+
// searching them (Manus) has 「登录」 to search with.
|
|
574
|
+
description: `Signs ${aBrandOf(v)} loyalty member in (log in) for this conversation - ${v.brand} 会员登录 - on ${v.brand}'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.`,
|
|
575
|
+
annotations: edits(`Sign in to ${v.brand}`, open),
|
|
576
|
+
inputSchema: {
|
|
577
|
+
type: 'object',
|
|
578
|
+
properties: {
|
|
579
|
+
lang: {
|
|
580
|
+
type: 'string',
|
|
581
|
+
enum: ['zh', 'en'],
|
|
582
|
+
description: 'The language the page opens in: zh for a guest writing Chinese, en otherwise. The page has a switch.',
|
|
583
|
+
},
|
|
584
|
+
},
|
|
585
|
+
},
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
name: n.memberCard,
|
|
589
|
+
// The card's own (app-only, server.ts): never offered to the assistant.
|
|
590
|
+
description: `The booking card's own way to start ${aBrandOf(v)} membership sign-in, or to see whether its page has been used yet - for the conversation the card was drawn for.`,
|
|
591
|
+
annotations: edits(`${v.brand} membership (card)`, open),
|
|
592
|
+
inputSchema: {
|
|
593
|
+
type: 'object',
|
|
594
|
+
properties: {
|
|
595
|
+
action: {
|
|
596
|
+
type: 'string',
|
|
597
|
+
enum: ['sign_in', 'view'],
|
|
598
|
+
description: 'sign_in: a new one-time sign-in page; view: whether this conversation is signed in yet',
|
|
599
|
+
},
|
|
600
|
+
lang: {
|
|
601
|
+
type: 'string',
|
|
602
|
+
enum: ['zh', 'en'],
|
|
603
|
+
description: 'The language the page opens in',
|
|
604
|
+
},
|
|
605
|
+
},
|
|
606
|
+
required: ['action'],
|
|
607
|
+
},
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
name: n.signOut,
|
|
611
|
+
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.',
|
|
612
|
+
annotations: edits(`Sign out of ${v.brand}`, open),
|
|
613
|
+
inputSchema: { type: 'object', properties: {} },
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
name: n.forgetPreferences,
|
|
617
|
+
description: `Forgets the room preferences saved on the signed-in ${v.brand} membership - a bed type, a floor, a quiet or connecting room. Bookings already made keep what they asked for.`,
|
|
618
|
+
annotations: {
|
|
619
|
+
title: 'Forget my saved preferences',
|
|
620
|
+
readOnlyHint: false,
|
|
621
|
+
destructiveHint: true,
|
|
622
|
+
idempotentHint: true,
|
|
623
|
+
openWorldHint: open,
|
|
624
|
+
},
|
|
625
|
+
inputSchema: { type: 'object', properties: {} },
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
name: n.policies,
|
|
629
|
+
description: `What one ${v.noun} 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.`,
|
|
630
|
+
annotations: reads(v.market ? `${upFirst(v.noun)} policies on ${v.brand}` : `${v.brand} policies`, open),
|
|
631
|
+
inputSchema: {
|
|
632
|
+
type: 'object',
|
|
633
|
+
properties: {
|
|
634
|
+
hotel: { type: 'string', description: `The ${v.noun}'s name or id` },
|
|
635
|
+
topic: {
|
|
636
|
+
type: 'string',
|
|
637
|
+
enum: ['cancellation', 'check-in', 'children', 'pets', 'deposit', 'accessibility'],
|
|
638
|
+
},
|
|
639
|
+
},
|
|
640
|
+
required: ['hotel'],
|
|
641
|
+
},
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
// ⚠️ THE CARD'S, NEVER THE MODEL'S (`ui.visibility: ['app']`, server.ts):
|
|
645
|
+
// a step of the payment screen a guest pressed. Offered only where the
|
|
646
|
+
// backend pays with UnionPay (`capabilities.unionpay`).
|
|
647
|
+
name: n.payWithUnionPay,
|
|
648
|
+
description: `Pays ${aBrandOf(v)} 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.`,
|
|
649
|
+
annotations: {
|
|
650
|
+
title: 'Pay with UnionPay',
|
|
651
|
+
readOnlyHint: false,
|
|
652
|
+
destructiveHint: false,
|
|
653
|
+
idempotentHint: true,
|
|
654
|
+
openWorldHint: true,
|
|
655
|
+
},
|
|
656
|
+
inputSchema: {
|
|
657
|
+
type: 'object',
|
|
658
|
+
properties: {
|
|
659
|
+
booking: {
|
|
660
|
+
type: 'string',
|
|
661
|
+
description: 'The confirmation code of the stay waiting for its payment',
|
|
662
|
+
},
|
|
663
|
+
email: { type: 'string', description: 'The email the stay was booked with' },
|
|
664
|
+
},
|
|
665
|
+
required: ['booking', 'email'],
|
|
666
|
+
},
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
// ⚠️ THE CARD'S, NEVER THE MODEL'S (`ui.visibility: ['app']`, server.ts):
|
|
670
|
+
// the press on Reserve. The picked room is a slot of its own beside the
|
|
671
|
+
// trip (`pickedKey`) - this never reads or writes the trip.
|
|
672
|
+
name: n.pickRoom,
|
|
673
|
+
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.",
|
|
674
|
+
annotations: edits(`Pick ${v.article ?? (/^[AEIOU]/i.test(v.brand) ? 'an' : 'a')} ${v.brand} room`, open),
|
|
675
|
+
inputSchema: {
|
|
676
|
+
type: 'object',
|
|
677
|
+
properties: {
|
|
678
|
+
hotel: { type: 'string', description: `The ${v.noun}'s name or id` },
|
|
679
|
+
room: {
|
|
680
|
+
type: 'string',
|
|
681
|
+
description: 'The room type id or name, as the hotel returned it',
|
|
682
|
+
},
|
|
683
|
+
...stayProps,
|
|
684
|
+
rooms: {
|
|
685
|
+
type: 'integer',
|
|
686
|
+
minimum: 0,
|
|
687
|
+
maximum: MAX_ROOMS_PER_LINE,
|
|
688
|
+
description: `How many of that room type, 1 to ${MAX_ROOMS_PER_LINE}. Default 1; 0 empties the pick`,
|
|
689
|
+
},
|
|
690
|
+
},
|
|
691
|
+
required: ['hotel', 'room'],
|
|
692
|
+
},
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
// ⚠️ THE CARD'S, NEVER THE MODEL'S - the booking form's submit for the
|
|
696
|
+
// picked room. The same booking as request_booking's; only where the
|
|
697
|
+
// room comes from differs (`bookTripLines`).
|
|
698
|
+
name: n.bookPicked,
|
|
699
|
+
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.",
|
|
700
|
+
annotations: orders(v.market ? `Book the picked room on ${v.brand}` : `Book the picked ${v.brand} room`, open),
|
|
701
|
+
inputSchema: {
|
|
702
|
+
type: 'object',
|
|
703
|
+
properties: {
|
|
704
|
+
...guestProps,
|
|
705
|
+
// The room the form shows, as pick_room returned it - see `pickChanged`.
|
|
706
|
+
hotel: { type: 'string', description: `The ${v.noun} id on the form` },
|
|
707
|
+
room: { type: 'string', description: 'The room type id on the form' },
|
|
708
|
+
rooms: {
|
|
709
|
+
type: 'integer',
|
|
710
|
+
minimum: 1,
|
|
711
|
+
maximum: MAX_ROOMS_PER_LINE,
|
|
712
|
+
description: 'How many of that room type the form shows',
|
|
713
|
+
},
|
|
714
|
+
...stayProps,
|
|
715
|
+
startTime: {
|
|
716
|
+
type: 'string',
|
|
717
|
+
description: 'For a room by the hour: the start the form shows, HH:MM',
|
|
718
|
+
},
|
|
719
|
+
},
|
|
720
|
+
required: ['name', 'email'],
|
|
721
|
+
},
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
// ⚠️ THE CARD'S, NEVER THE MODEL'S (`ui.visibility: ['app']`, server.ts),
|
|
725
|
+
// AND NO PARAMETER HERE (OR ON ANY TOOL) MEANS "AGREED": the guest's
|
|
726
|
+
// press on "Agree and continue" is the whole of the agreement, and
|
|
727
|
+
// `ref` only says which terms the card was showing.
|
|
728
|
+
name: n.acceptTerms,
|
|
729
|
+
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.`,
|
|
730
|
+
annotations: orders(`Agree to booking terms on ${v.brand}`, open),
|
|
731
|
+
inputSchema: {
|
|
732
|
+
type: 'object',
|
|
733
|
+
properties: {
|
|
734
|
+
ref: {
|
|
735
|
+
type: 'string',
|
|
736
|
+
description: 'The terms the card is showing, by the reference the booking answer gave',
|
|
737
|
+
},
|
|
738
|
+
},
|
|
739
|
+
required: ['ref'],
|
|
740
|
+
},
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
name: n.refundBooking,
|
|
744
|
+
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.",
|
|
745
|
+
annotations: cancels('Refund a booking', open),
|
|
746
|
+
inputSchema: {
|
|
747
|
+
type: 'object',
|
|
748
|
+
properties: {
|
|
749
|
+
booking: {
|
|
750
|
+
type: 'string',
|
|
751
|
+
description: 'The confirmation code or order id, as the booking answer gave it',
|
|
752
|
+
},
|
|
753
|
+
reason: {
|
|
754
|
+
type: 'string',
|
|
755
|
+
maxLength: REFUND_REASON_MAX,
|
|
756
|
+
description: `Optional, the guest's reason in their own words, up to ${REFUND_REASON_MAX} characters`,
|
|
757
|
+
},
|
|
758
|
+
confirmed: {
|
|
759
|
+
type: 'boolean',
|
|
760
|
+
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.',
|
|
761
|
+
},
|
|
762
|
+
},
|
|
763
|
+
required: ['booking'],
|
|
764
|
+
},
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
name: n.listBookingAddons,
|
|
768
|
+
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.',
|
|
769
|
+
annotations: reads('Add-ons for a booking', open),
|
|
770
|
+
inputSchema: {
|
|
771
|
+
type: 'object',
|
|
772
|
+
properties: {
|
|
773
|
+
booking: {
|
|
774
|
+
type: 'string',
|
|
775
|
+
description: 'The confirmation code or order id, as the booking answer gave it',
|
|
776
|
+
},
|
|
777
|
+
},
|
|
778
|
+
required: ['booking'],
|
|
779
|
+
},
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
name: n.addBookingAddon,
|
|
783
|
+
// ⚠️ 0.82.0: THIS TOOL NEVER ADDS ANYTHING. It prepares the add-on and answers with a one-time page
|
|
784
|
+
// the GUEST opens and presses confirm on (the same press the card's button is): nothing is sent to the
|
|
785
|
+
// group, and nothing is ever said to be added, until that press.
|
|
786
|
+
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.',
|
|
787
|
+
annotations: books('Prepare an add-on for a booking', open),
|
|
788
|
+
inputSchema: {
|
|
789
|
+
type: 'object',
|
|
790
|
+
properties: {
|
|
791
|
+
booking: {
|
|
792
|
+
type: 'string',
|
|
793
|
+
description: 'The confirmation code or order id, as the booking answer gave it',
|
|
794
|
+
},
|
|
795
|
+
addon: { type: 'string', description: 'The add-on id, as the add-on list gave it' },
|
|
796
|
+
direction: {
|
|
797
|
+
type: 'string',
|
|
798
|
+
enum: ['arrival', 'departure', 'round_trip'],
|
|
799
|
+
description: 'For a transfer: to the hotel, from it, or both',
|
|
800
|
+
},
|
|
801
|
+
flightNo: {
|
|
802
|
+
type: 'string',
|
|
803
|
+
description: 'For a transfer: the flight number, e.g. MU5101',
|
|
804
|
+
},
|
|
805
|
+
pickupTime: { type: 'string', description: 'For a transfer: the pick-up time, HH:MM' },
|
|
806
|
+
date: { type: 'string', description: 'The date it is for, YYYY-MM-DD' },
|
|
807
|
+
quantity: {
|
|
808
|
+
type: 'integer',
|
|
809
|
+
minimum: 1,
|
|
810
|
+
maximum: 10,
|
|
811
|
+
description: 'How many, 1 to 10, for an add-on that is bought by the piece. Default 1',
|
|
812
|
+
},
|
|
813
|
+
partySize: {
|
|
814
|
+
type: 'integer',
|
|
815
|
+
minimum: 1,
|
|
816
|
+
maximum: 10,
|
|
817
|
+
description: 'For a transfer: how many passengers, 1 to 10. Default 1',
|
|
818
|
+
},
|
|
819
|
+
},
|
|
820
|
+
required: ['booking', 'addon'],
|
|
821
|
+
},
|
|
822
|
+
},
|
|
823
|
+
// The add-on shop (`capabilities.shop`): goods sold beside the rooms. Not instructions - what the tools do.
|
|
824
|
+
...(n.listShopItems
|
|
825
|
+
? [
|
|
826
|
+
{
|
|
827
|
+
name: n.listShopItems,
|
|
828
|
+
description: "The value-added services (增值服务): goods in Otaless's shop to buy for a stay, not rooms - each with its id, name, price and currency, whether it is available and its options. With `item` it opens one item. It only reads the shop; nothing is ordered.",
|
|
829
|
+
annotations: reads('Shop items', open),
|
|
830
|
+
inputSchema: {
|
|
831
|
+
type: 'object',
|
|
832
|
+
properties: {
|
|
833
|
+
query: { type: 'string', description: 'Words in the item name' },
|
|
834
|
+
category: { type: 'string', description: "One of the shop's categories" },
|
|
835
|
+
maxPrice: {
|
|
836
|
+
type: 'number',
|
|
837
|
+
minimum: 0,
|
|
838
|
+
description: "The highest price, in the shop's currency (US dollars)",
|
|
839
|
+
},
|
|
840
|
+
item: {
|
|
841
|
+
type: 'string',
|
|
842
|
+
description: 'An item id, as this tool listed it, for that one item in detail',
|
|
843
|
+
},
|
|
844
|
+
},
|
|
845
|
+
},
|
|
846
|
+
},
|
|
847
|
+
]
|
|
848
|
+
: []),
|
|
849
|
+
// ⚠️ THE ACCOUNT'S VALUE-ADDED SERVICE ORDERS ON THEIR OWN (0.84.1, robin 11-25: 「首选把我酒店预订订单先
|
|
850
|
+
// 出来,然后没有时间」): asked for its shop orders, the model read the hotel bookings first. Read only.
|
|
851
|
+
...(n.listShopOrders
|
|
852
|
+
? [
|
|
853
|
+
{
|
|
854
|
+
name: n.listShopOrders,
|
|
855
|
+
description: SHOP_ORDERS_DESCRIPTION,
|
|
856
|
+
annotations: reads('Value-added service orders', open),
|
|
857
|
+
inputSchema: { type: 'object', properties: {} },
|
|
858
|
+
},
|
|
859
|
+
]
|
|
860
|
+
: []),
|
|
861
|
+
...(n.buyShopItem
|
|
862
|
+
? [
|
|
863
|
+
{
|
|
864
|
+
name: n.buyShopItem,
|
|
865
|
+
description: "Prepares buying one value-added service (增值服务: a shop item) to go with the guest's own hotel booking. It does NOT order or charge anything: 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 item, the quantity and the total and press confirm themselves - and when they do, the backend charges a card linked to their account, or gives a payment link if there is none. Pass that link on; never say the item was ordered or paid until the guest confirmed and the shop says so. It checks the price against the one the guest was shown and refuses a booking that is not theirs or is over.",
|
|
866
|
+
annotations: books('Prepare a shop purchase', open),
|
|
867
|
+
inputSchema: {
|
|
868
|
+
type: 'object',
|
|
869
|
+
properties: {
|
|
870
|
+
item: { type: 'string', description: 'The item id, as the shop listing gave it' },
|
|
871
|
+
option: {
|
|
872
|
+
type: 'string',
|
|
873
|
+
description: "One of the item's options, exactly as listed - for an item that has options",
|
|
874
|
+
},
|
|
875
|
+
quantity: {
|
|
876
|
+
type: 'integer',
|
|
877
|
+
minimum: 1,
|
|
878
|
+
maximum: 10,
|
|
879
|
+
description: 'How many, 1 to 10',
|
|
880
|
+
},
|
|
881
|
+
booking: {
|
|
882
|
+
type: 'string',
|
|
883
|
+
description: "The confirmation code of the guest's own hotel booking this goes with",
|
|
884
|
+
},
|
|
885
|
+
unitPrice: {
|
|
886
|
+
type: 'number',
|
|
887
|
+
exclusiveMinimum: 0,
|
|
888
|
+
description: 'The price of one, as the guest was shown it',
|
|
889
|
+
},
|
|
890
|
+
currency: {
|
|
891
|
+
type: 'string',
|
|
892
|
+
description: 'Its currency code, as the guest was shown it',
|
|
893
|
+
},
|
|
894
|
+
},
|
|
895
|
+
required: ['item', 'quantity', 'booking', 'unitPrice', 'currency'],
|
|
896
|
+
},
|
|
897
|
+
},
|
|
898
|
+
]
|
|
899
|
+
: []),
|
|
900
|
+
// ⚠️ THE CARD'S OWN STEPS FOR ADDING TO A BOOKING (0.82.0, app-only: server.ts). Every write needs the
|
|
901
|
+
// guest's own press on the confirm screen: its `press` is made once per screen, and a value the
|
|
902
|
+
// screen did not show is `used`. No parameter here means "confirmed" - the press is the whole yes.
|
|
903
|
+
...(n.cardAddons
|
|
904
|
+
? [
|
|
905
|
+
{
|
|
906
|
+
name: n.cardAddons,
|
|
907
|
+
description: `The card's own steps for the value-added services (增值服务) of a booking made here: \`view\` reads what can be added (the shop's goods, and the hotel's own services where they are offered) fresh; \`buy_shop_item\` (and \`book_hotel_addon\`, where hotel services are offered) is the guest's press on a confirm screen that showed the item, the quantity and the total - each answers with \`addonResult\` and a fresh \`addonsView\`; \`shop_status\` reads whether a shop \`order\` the guest is paying for is paid yet (a read, nothing changes). Never the assistant's: nothing here is called without the guest's press.`,
|
|
908
|
+
annotations: orders('Add to a booking', open),
|
|
909
|
+
inputSchema: {
|
|
910
|
+
type: 'object',
|
|
911
|
+
properties: {
|
|
912
|
+
action: {
|
|
913
|
+
type: 'string',
|
|
914
|
+
enum: ['view', 'book_hotel_addon', 'buy_shop_item', 'shop_status'],
|
|
915
|
+
},
|
|
916
|
+
booking: {
|
|
917
|
+
type: 'string',
|
|
918
|
+
description: "The confirmation code of the guest's own booking",
|
|
919
|
+
},
|
|
920
|
+
catalogId: { type: 'string', description: 'book_hotel_addon: the add-on id' },
|
|
921
|
+
direction: { type: 'string', enum: ['arrival', 'departure', 'round_trip'] },
|
|
922
|
+
flightNo: { type: 'string' },
|
|
923
|
+
pickupTime: { type: 'string', description: 'HH:MM' },
|
|
924
|
+
date: { type: 'string', description: 'YYYY-MM-DD' },
|
|
925
|
+
quantity: { type: 'integer', minimum: 1, maximum: 10 },
|
|
926
|
+
partySize: { type: 'integer', minimum: 1, maximum: 10 },
|
|
927
|
+
shownTotal: {
|
|
928
|
+
type: 'string',
|
|
929
|
+
description: 'book_hotel_addon: the total the confirm screen showed, 2 decimals',
|
|
930
|
+
},
|
|
931
|
+
currency: { type: 'string', description: 'The currency the screen showed' },
|
|
932
|
+
item: { type: 'string', description: 'buy_shop_item: the shop item id' },
|
|
933
|
+
order: {
|
|
934
|
+
type: 'string',
|
|
935
|
+
description: 'shop_status: the shop order id buy_shop_item answered with',
|
|
936
|
+
},
|
|
937
|
+
option: { type: 'string', description: 'buy_shop_item: the option, as listed' },
|
|
938
|
+
shownUnit: {
|
|
939
|
+
type: 'string',
|
|
940
|
+
description: 'buy_shop_item: the price of one the screen showed, 2 decimals',
|
|
941
|
+
},
|
|
942
|
+
press: {
|
|
943
|
+
type: 'string',
|
|
944
|
+
description: 'Made once per confirm screen and sent again unchanged on a retry of the same screen',
|
|
945
|
+
},
|
|
946
|
+
},
|
|
947
|
+
required: ['action', 'booking'],
|
|
948
|
+
},
|
|
949
|
+
},
|
|
950
|
+
]
|
|
951
|
+
: []),
|
|
952
|
+
];
|
|
953
|
+
};
|
|
954
|
+
//# sourceMappingURL=all-tools.js.map
|