@curless/hotel-storefront 0.84.8 → 0.86.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.d.ts +35 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/huazhu/ari-sync.d.ts +93 -6
- package/dist/huazhu/ari-sync.d.ts.map +1 -1
- package/dist/huazhu/ari-sync.js +303 -28
- package/dist/huazhu/ari-sync.js.map +1 -1
- package/dist/huazhu/backend.d.ts +9 -0
- package/dist/huazhu/backend.d.ts.map +1 -1
- package/dist/huazhu/backend.js +62 -22
- package/dist/huazhu/backend.js.map +1 -1
- package/dist/huazhu/catalog.d.ts +58 -1
- package/dist/huazhu/catalog.d.ts.map +1 -1
- package/dist/huazhu/catalog.js +318 -15
- package/dist/huazhu/catalog.js.map +1 -1
- package/dist/huazhu/live-asks.d.ts +63 -0
- package/dist/huazhu/live-asks.d.ts.map +1 -0
- package/dist/huazhu/live-asks.js +127 -0
- package/dist/huazhu/live-asks.js.map +1 -0
- package/dist/huazhu/make.d.ts.map +1 -1
- package/dist/huazhu/make.js +50 -4
- package/dist/huazhu/make.js.map +1 -1
- 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,1474 @@
|
|
|
1
|
+
import { type BackendCapabilities } from '../backend.js';
|
|
2
|
+
import type { ToolNames } from '../config.js';
|
|
3
|
+
import type { Vocabulary } from '../vocab.js';
|
|
4
|
+
/**
|
|
5
|
+
* Annotations, every hint stated, and each one true of the code.
|
|
6
|
+
*
|
|
7
|
+
* OpenAI's review rejected the shopping app's v1.0.0 over exactly this - an
|
|
8
|
+
* absent `idempotentHint` reads as null, and `openWorldHint: false` was a claim
|
|
9
|
+
* the code could not support. So: reads are reads, the trip tools write OUR
|
|
10
|
+
* state and say so, and `openWorldHint` follows where the rooms actually come
|
|
11
|
+
* from - false while this serves a local demonstration file, true once a
|
|
12
|
+
* deployment points at the group's own booking system, which answers with
|
|
13
|
+
* whatever it says at that moment.
|
|
14
|
+
*/
|
|
15
|
+
export declare const reads: (title: string, openWorld: boolean) => {
|
|
16
|
+
readonly title: string;
|
|
17
|
+
readonly readOnlyHint: true;
|
|
18
|
+
readonly destructiveHint: false;
|
|
19
|
+
readonly idempotentHint: true;
|
|
20
|
+
readonly openWorldHint: boolean;
|
|
21
|
+
};
|
|
22
|
+
/** Changes the trip we hold for this conversation. Nothing at the hotel moves. */
|
|
23
|
+
export declare const edits: (title: string, openWorld: boolean) => {
|
|
24
|
+
readonly title: string;
|
|
25
|
+
readonly readOnlyHint: false;
|
|
26
|
+
readonly destructiveHint: false;
|
|
27
|
+
readonly idempotentHint: true;
|
|
28
|
+
readonly openWorldHint: boolean;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Writes over something that was there - the whole trip, or a booking's nights.
|
|
32
|
+
* Repeating it changes nothing more, but what it replaced is gone (2026-10-05
|
|
33
|
+
* audit, P3: these two said `destructiveHint: false`).
|
|
34
|
+
*/
|
|
35
|
+
export declare const replaces: (title: string, openWorld: boolean) => {
|
|
36
|
+
readonly title: string;
|
|
37
|
+
readonly readOnlyHint: false;
|
|
38
|
+
readonly destructiveHint: true;
|
|
39
|
+
readonly idempotentHint: true;
|
|
40
|
+
readonly openWorldHint: boolean;
|
|
41
|
+
};
|
|
42
|
+
/** Asks the hotel to hold rooms. Takes no money, and undoing it is what the cancel tools are for. */
|
|
43
|
+
export declare const books: (title: string, openWorld: boolean) => {
|
|
44
|
+
readonly title: string;
|
|
45
|
+
readonly readOnlyHint: false;
|
|
46
|
+
readonly destructiveHint: false;
|
|
47
|
+
readonly idempotentHint: false;
|
|
48
|
+
readonly openWorldHint: boolean;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Places an order with the hotel's group - a booking, or the guest's agreement that sends it
|
|
52
|
+
* (0.75.0, T3). `destructiveHint: true`: OpenAI's rule gives it to "an irreversible send or a
|
|
53
|
+
* transaction", and that the group lets a booking be cancelled afterwards is not a reason to
|
|
54
|
+
* say false. Not idempotent: a second call is a second order.
|
|
55
|
+
*/
|
|
56
|
+
export declare const orders: (title: string, openWorld: boolean) => {
|
|
57
|
+
readonly title: string;
|
|
58
|
+
readonly readOnlyHint: false;
|
|
59
|
+
readonly destructiveHint: true;
|
|
60
|
+
readonly idempotentHint: false;
|
|
61
|
+
readonly openWorldHint: boolean;
|
|
62
|
+
};
|
|
63
|
+
export declare const cancels: (title: string, openWorld: boolean) => {
|
|
64
|
+
readonly title: string;
|
|
65
|
+
readonly readOnlyHint: false;
|
|
66
|
+
readonly destructiveHint: true;
|
|
67
|
+
readonly idempotentHint: true;
|
|
68
|
+
readonly openWorldHint: boolean;
|
|
69
|
+
};
|
|
70
|
+
export declare const DATE: (what: string) => {
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
73
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
74
|
+
};
|
|
75
|
+
/** How many ${nounPlural} one look-up reads - a city's worth, and what a comparison can hold and then some. */
|
|
76
|
+
export declare const LOOK_UP_MAX = 6;
|
|
77
|
+
/**
|
|
78
|
+
* The tools this deployment offers: every tool, less the ones its backend
|
|
79
|
+
* cannot do, and with the descriptions of the rest saying only what is true
|
|
80
|
+
* of it - see `BackendCapabilities`.
|
|
81
|
+
*/
|
|
82
|
+
export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCapabilities) => ({
|
|
83
|
+
readonly name: `list_${string}${string}`;
|
|
84
|
+
readonly description: `${string}, shown to a guest - as a card, in an app that draws one - to look through and pick one ${string} to book. It holds no plan of days: a day-by-day plan (\u884C\u7A0B, \u5B89\u6392, an itinerary) is an answer of its own, laid out by the days, with a ${string} for each part of the trip read up as text. Asked with no place - or a country of many cities - it answers with the places to choose from: regions, countries and cities, each with how many ${string} it has; \`all\` lists the ${string} themselves. \`city\` (a city or a country) or \`query\` answers with the ${string}: a picture, the city and area, a rating where the ${string} publishes one, and a from-price, and a city usually holds several. With \`checkIn\` and \`checkOut\` every ${string} is priced for those nights - its cheapest room that takes the party, \`rooms\` of it, for the whole stay with taxes - or marked as having no room for them. \`sort\` and \`maxNightly\` order and cap by that price, or by the from-price without dates, where the matches share one currency. \`brand\`, \`facilities\`, \`freeCancellation\`, \`breakfast\` and \`bed\` narrow the list, and the answer counts what each would leave. A long list comes a page at a time: the answer says how many more there are and the \`offset\` of the next page. Words or a place that match nothing are widened once, and the answer names what it widened to.${string}`;
|
|
85
|
+
readonly annotations: {
|
|
86
|
+
readonly title: string;
|
|
87
|
+
readonly readOnlyHint: true;
|
|
88
|
+
readonly destructiveHint: false;
|
|
89
|
+
readonly idempotentHint: true;
|
|
90
|
+
readonly openWorldHint: boolean;
|
|
91
|
+
};
|
|
92
|
+
readonly inputSchema: {
|
|
93
|
+
readonly type: "object";
|
|
94
|
+
readonly properties: {
|
|
95
|
+
readonly facilities: {
|
|
96
|
+
readonly type: "array";
|
|
97
|
+
readonly items: {
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
readonly enum: string[];
|
|
100
|
+
};
|
|
101
|
+
readonly description: `What every ${string} listed must have`;
|
|
102
|
+
};
|
|
103
|
+
readonly freeCancellation: {
|
|
104
|
+
readonly type: "boolean";
|
|
105
|
+
readonly description: `Only ${string} with a room that can be cancelled free - and, with dates, that room is the one priced`;
|
|
106
|
+
};
|
|
107
|
+
readonly breakfast: {
|
|
108
|
+
readonly type: "boolean";
|
|
109
|
+
readonly description: `Only ${string} with a room that includes breakfast - and, with dates, that room is the one priced`;
|
|
110
|
+
};
|
|
111
|
+
readonly bed: {
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
readonly enum: readonly ["king", "twin"];
|
|
114
|
+
readonly description: `Only ${string} with a room that has this bed - \`king\` is one large bed (king, queen or double), \`twin\` is two beds - and, with dates, that room is the one priced. Given with \`freeCancellation\` or \`breakfast\`, one room must have all of them`;
|
|
115
|
+
};
|
|
116
|
+
readonly all: {
|
|
117
|
+
readonly type: "boolean";
|
|
118
|
+
readonly description: `Unnarrowed, or narrowed to a country of many cities, the answer is the places to choose from; true lists the ${string} themselves`;
|
|
119
|
+
};
|
|
120
|
+
readonly group?: {
|
|
121
|
+
type: string;
|
|
122
|
+
description: string;
|
|
123
|
+
} | undefined;
|
|
124
|
+
readonly rooms: {
|
|
125
|
+
readonly type: "integer";
|
|
126
|
+
readonly minimum: 1;
|
|
127
|
+
readonly maximum: 5;
|
|
128
|
+
readonly description: "With dates: how many rooms of one type the party needs, 1 to 5. Default 1";
|
|
129
|
+
};
|
|
130
|
+
readonly sort: {
|
|
131
|
+
readonly type: "string";
|
|
132
|
+
readonly enum: readonly ["group", "price-low", "price-high", "rating"];
|
|
133
|
+
readonly description: `Default \`group\`: the cities ${string} lead the list. A price order - by the stay's price with dates, the from-price without - holds only where the matches share one currency; across currencies it is dropped and the answer says which currencies they are`;
|
|
134
|
+
};
|
|
135
|
+
readonly maxNightly: {
|
|
136
|
+
readonly type: "number";
|
|
137
|
+
readonly description: "A ceiling on the price of a night - of the stay with dates, the from-price without - in the currency the matches are quoted in. Across currencies it is dropped and the answer says so";
|
|
138
|
+
};
|
|
139
|
+
readonly limit: {
|
|
140
|
+
readonly type: "number";
|
|
141
|
+
readonly description: "How many to return, 1 to 50. Default 12";
|
|
142
|
+
};
|
|
143
|
+
readonly offset: {
|
|
144
|
+
readonly type: "number";
|
|
145
|
+
readonly description: "How many of the matches to skip: the answer says where the next page starts";
|
|
146
|
+
};
|
|
147
|
+
readonly brand: {
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
readonly description: "One of the hotels' own brands (Kerry, Hanting - not a hotel group), as the list's brand counts name it" | "One of the group's brands, as the list's brand counts name it";
|
|
150
|
+
};
|
|
151
|
+
readonly checkIn: {
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
154
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
155
|
+
};
|
|
156
|
+
readonly checkOut: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
159
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
160
|
+
};
|
|
161
|
+
readonly guests: {
|
|
162
|
+
readonly type: "integer";
|
|
163
|
+
readonly minimum: 1;
|
|
164
|
+
readonly maximum: 8;
|
|
165
|
+
readonly description: "People in the room. Default 2";
|
|
166
|
+
};
|
|
167
|
+
readonly query: {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
readonly description: "Free text over the name, city, area, description and amenities - the guest's own words";
|
|
170
|
+
};
|
|
171
|
+
readonly city: {
|
|
172
|
+
readonly type: "string";
|
|
173
|
+
readonly description: `One city or one country${string}`;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
} | {
|
|
178
|
+
readonly name: `get_${string}${string}`;
|
|
179
|
+
readonly description: `One ${string} in full: description, amenities, address, and check-in and check-out times where the ${string} publishes them. Given \`checkIn\` and \`checkOut\` it also returns the room types that can be booked for those nights, one line per type at its lowest rate: the nightly rate, the stay total including taxes and fees, whether it can be cancelled free and until when, and how many rates it has. \`rooms\` leaves out the types that have fewer than that many left. \`bed\`, \`breakfast\`, \`freeCancellation\`, \`window\`, \`payment\` and \`family\` keep only the rates that meet all of those given; a card, in an app that draws one, still holds every room, with the given filters selected. Without dates it returns the ${string} only, because a room has no price until the nights are known. The ${string} is shown to the guest - as a card, in an app that draws one.${string}`;
|
|
180
|
+
readonly annotations: {
|
|
181
|
+
readonly title: string;
|
|
182
|
+
readonly readOnlyHint: true;
|
|
183
|
+
readonly destructiveHint: false;
|
|
184
|
+
readonly idempotentHint: true;
|
|
185
|
+
readonly openWorldHint: boolean;
|
|
186
|
+
};
|
|
187
|
+
readonly inputSchema: {
|
|
188
|
+
readonly type: "object";
|
|
189
|
+
readonly properties: {
|
|
190
|
+
readonly rooms: {
|
|
191
|
+
readonly type: "integer";
|
|
192
|
+
readonly minimum: 1;
|
|
193
|
+
readonly maximum: 5;
|
|
194
|
+
readonly description: "How many rooms of one type, 1 to 5. Default 1";
|
|
195
|
+
};
|
|
196
|
+
readonly bed: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
readonly enum: readonly ["king", "twin"];
|
|
199
|
+
readonly description: "With dates: only rooms with this bed - `king` is one large bed (king, queen or double), `twin` is two beds. A room sold as king or twin has both";
|
|
200
|
+
};
|
|
201
|
+
readonly breakfast: {
|
|
202
|
+
readonly type: "boolean";
|
|
203
|
+
readonly description: "With dates: only rooms whose rate includes breakfast";
|
|
204
|
+
};
|
|
205
|
+
readonly freeCancellation: {
|
|
206
|
+
readonly type: "boolean";
|
|
207
|
+
readonly description: "With dates: only rooms that can be cancelled free";
|
|
208
|
+
};
|
|
209
|
+
readonly window: {
|
|
210
|
+
readonly type: "boolean";
|
|
211
|
+
readonly description: "With dates: only rooms with a window (not a partial or an inner one)";
|
|
212
|
+
};
|
|
213
|
+
readonly payment: {
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
readonly enum: readonly ["at-hotel", "online"];
|
|
216
|
+
readonly description: "With dates: only rooms paid at the hotel (`at-hotel`) or in advance online (`online`)";
|
|
217
|
+
};
|
|
218
|
+
readonly family: {
|
|
219
|
+
readonly type: "boolean";
|
|
220
|
+
readonly description: "With dates: only rooms that sleep 3 or more";
|
|
221
|
+
};
|
|
222
|
+
readonly checkIn: {
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
225
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
226
|
+
};
|
|
227
|
+
readonly checkOut: {
|
|
228
|
+
readonly type: "string";
|
|
229
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
230
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
231
|
+
};
|
|
232
|
+
readonly guests: {
|
|
233
|
+
readonly type: "integer";
|
|
234
|
+
readonly minimum: 1;
|
|
235
|
+
readonly maximum: 8;
|
|
236
|
+
readonly description: "People in the room. Default 2";
|
|
237
|
+
};
|
|
238
|
+
readonly hotel: {
|
|
239
|
+
readonly type: "string";
|
|
240
|
+
readonly description: `The ${string}'s name or id${string}`;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
readonly required: readonly ["hotel"];
|
|
244
|
+
};
|
|
245
|
+
} | {
|
|
246
|
+
readonly name: `look_up_${string}${string}`;
|
|
247
|
+
readonly description: `Reads up to 6 ${string} - a \`city\`'s (or a country's), or the ones named in \`${string}\` - and returns them as text, with nothing drawn and nothing shown to the guest: each one's id, area, rating, description and amenities, its add-ons with their ids and prices, and, given \`checkIn\` and \`checkOut\`, its rooms priced for those nights with taxes in. Nothing it reads is shown, so the ${string} of a day-by-day plan - for each part of the trip, those near where its days are spent - can be read up before the plan is drawn; its ids are the ones a comparison and a plan take.`;
|
|
248
|
+
readonly annotations: {
|
|
249
|
+
readonly title: string;
|
|
250
|
+
readonly readOnlyHint: true;
|
|
251
|
+
readonly destructiveHint: false;
|
|
252
|
+
readonly idempotentHint: true;
|
|
253
|
+
readonly openWorldHint: boolean;
|
|
254
|
+
};
|
|
255
|
+
readonly inputSchema: {
|
|
256
|
+
readonly type: "object";
|
|
257
|
+
readonly properties: {
|
|
258
|
+
readonly rooms: {
|
|
259
|
+
readonly type: "integer";
|
|
260
|
+
readonly minimum: 1;
|
|
261
|
+
readonly maximum: 5;
|
|
262
|
+
readonly description: "How many rooms of one type, 1 to 5. Default 1";
|
|
263
|
+
};
|
|
264
|
+
readonly checkIn: {
|
|
265
|
+
readonly type: "string";
|
|
266
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
267
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
268
|
+
};
|
|
269
|
+
readonly checkOut: {
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
272
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
273
|
+
};
|
|
274
|
+
readonly guests: {
|
|
275
|
+
readonly type: "integer";
|
|
276
|
+
readonly minimum: 1;
|
|
277
|
+
readonly maximum: 8;
|
|
278
|
+
readonly description: "People in the room. Default 2";
|
|
279
|
+
};
|
|
280
|
+
readonly city: {
|
|
281
|
+
readonly type: "string";
|
|
282
|
+
readonly description: `A city or a country: its ${string}, up to 6`;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
} | {
|
|
287
|
+
readonly name: `list_${string}extras`;
|
|
288
|
+
readonly description: `What one ${string} offers beside the room: airport transfers, dinners, guided experiences, spa and family add-ons, each with its price and whether it is charged per stay, per person or per night, shown to the guest - as a card, in an app that draws one.`;
|
|
289
|
+
readonly annotations: {
|
|
290
|
+
readonly title: string;
|
|
291
|
+
readonly readOnlyHint: true;
|
|
292
|
+
readonly destructiveHint: false;
|
|
293
|
+
readonly idempotentHint: true;
|
|
294
|
+
readonly openWorldHint: boolean;
|
|
295
|
+
};
|
|
296
|
+
readonly inputSchema: {
|
|
297
|
+
readonly type: "object";
|
|
298
|
+
readonly properties: {
|
|
299
|
+
readonly booking: {
|
|
300
|
+
readonly type: "string";
|
|
301
|
+
readonly description: `A booking's confirmation code. The answer is then that booking's ${string}, its add-ons for those nights and how many of each the booking holds`;
|
|
302
|
+
};
|
|
303
|
+
readonly email: {
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
readonly description: "The email the booking was made with, when it was made elsewhere";
|
|
306
|
+
};
|
|
307
|
+
readonly checkIn: {
|
|
308
|
+
readonly type: "string";
|
|
309
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
310
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
311
|
+
};
|
|
312
|
+
readonly checkOut: {
|
|
313
|
+
readonly type: "string";
|
|
314
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
315
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
316
|
+
};
|
|
317
|
+
readonly guests: {
|
|
318
|
+
readonly type: "integer";
|
|
319
|
+
readonly minimum: 1;
|
|
320
|
+
readonly maximum: 8;
|
|
321
|
+
readonly description: "People in the room. Default 2";
|
|
322
|
+
};
|
|
323
|
+
readonly hotel: {
|
|
324
|
+
readonly type: "string";
|
|
325
|
+
readonly description: `The ${string}'s name or id`;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
} | {
|
|
330
|
+
readonly name: `add_to_${string}trip`;
|
|
331
|
+
readonly description: `Puts room nights or an add-on into the trip - a plan kept in this conversation - and returns the whole trip, priced. Nothing in the trip is booked or charged. A room line needs the ${string}, the room type and the dates; \`rooms\` sets how many of that room type. An add-on line needs the ${string} and the add-on. A line is replaced, not stacked: sending the same room and dates again sets that line's room count, and 0 takes it out of the plan.`;
|
|
332
|
+
readonly annotations: {
|
|
333
|
+
readonly title: string;
|
|
334
|
+
readonly readOnlyHint: false;
|
|
335
|
+
readonly destructiveHint: true;
|
|
336
|
+
readonly idempotentHint: true;
|
|
337
|
+
readonly openWorldHint: boolean;
|
|
338
|
+
};
|
|
339
|
+
readonly inputSchema: {
|
|
340
|
+
readonly type: "object";
|
|
341
|
+
readonly properties: {
|
|
342
|
+
readonly rooms: {
|
|
343
|
+
readonly type: "integer";
|
|
344
|
+
readonly minimum: 0;
|
|
345
|
+
readonly maximum: 5;
|
|
346
|
+
readonly description: "How many of that room type in the plan, 1 to 5. Default 1; 0 takes the line out";
|
|
347
|
+
};
|
|
348
|
+
readonly quantity: {
|
|
349
|
+
readonly type: "integer";
|
|
350
|
+
readonly minimum: 0;
|
|
351
|
+
readonly maximum: 20;
|
|
352
|
+
readonly description: "For an add-on: how many, 1 to 20. Default 1 - or, for an add-on priced per person, everyone in the rooms the trip holds at that hotel (guests per room x rooms; the guests asked for when there is no room yet); 0 removes it";
|
|
353
|
+
};
|
|
354
|
+
readonly checkIn: {
|
|
355
|
+
readonly type: "string";
|
|
356
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
357
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
358
|
+
};
|
|
359
|
+
readonly checkOut: {
|
|
360
|
+
readonly type: "string";
|
|
361
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
362
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
363
|
+
};
|
|
364
|
+
readonly guests: {
|
|
365
|
+
readonly type: "integer";
|
|
366
|
+
readonly minimum: 1;
|
|
367
|
+
readonly maximum: 8;
|
|
368
|
+
readonly description: "People in the room. Default 2";
|
|
369
|
+
};
|
|
370
|
+
readonly hotel: {
|
|
371
|
+
readonly type: "string";
|
|
372
|
+
readonly description: `The ${string}'s name or id`;
|
|
373
|
+
};
|
|
374
|
+
readonly room: {
|
|
375
|
+
readonly type: "string";
|
|
376
|
+
readonly description: "The room type id or name, as the hotel returned it";
|
|
377
|
+
};
|
|
378
|
+
readonly extra: {
|
|
379
|
+
readonly type: "string";
|
|
380
|
+
readonly description: "The add-on id or name. A line names either this or `room`";
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
readonly required: readonly ["hotel"];
|
|
384
|
+
};
|
|
385
|
+
} | {
|
|
386
|
+
readonly name: `view_${string}trip`;
|
|
387
|
+
readonly description: "The trip as it stands: every room line and add-on with its own total, the taxes and fees, and the all-in total, laid out day by day (on the card, in an app that draws one).";
|
|
388
|
+
readonly annotations: {
|
|
389
|
+
readonly title: string;
|
|
390
|
+
readonly readOnlyHint: true;
|
|
391
|
+
readonly destructiveHint: false;
|
|
392
|
+
readonly idempotentHint: true;
|
|
393
|
+
readonly openWorldHint: boolean;
|
|
394
|
+
};
|
|
395
|
+
readonly inputSchema: {
|
|
396
|
+
readonly type: "object";
|
|
397
|
+
readonly properties: {};
|
|
398
|
+
};
|
|
399
|
+
} | {
|
|
400
|
+
readonly name: `clear_${string}trip`;
|
|
401
|
+
readonly description: "Empties the trip.";
|
|
402
|
+
readonly annotations: {
|
|
403
|
+
readonly title: string;
|
|
404
|
+
readonly readOnlyHint: false;
|
|
405
|
+
readonly destructiveHint: true;
|
|
406
|
+
readonly idempotentHint: true;
|
|
407
|
+
readonly openWorldHint: boolean;
|
|
408
|
+
};
|
|
409
|
+
readonly inputSchema: {
|
|
410
|
+
readonly type: "object";
|
|
411
|
+
readonly properties: {};
|
|
412
|
+
};
|
|
413
|
+
} | {
|
|
414
|
+
readonly name: `request_${string}booking`;
|
|
415
|
+
readonly description: string;
|
|
416
|
+
readonly annotations: {
|
|
417
|
+
readonly title: string;
|
|
418
|
+
readonly readOnlyHint: false;
|
|
419
|
+
readonly destructiveHint: true;
|
|
420
|
+
readonly idempotentHint: false;
|
|
421
|
+
readonly openWorldHint: boolean;
|
|
422
|
+
};
|
|
423
|
+
readonly inputSchema: {
|
|
424
|
+
readonly type: "object";
|
|
425
|
+
readonly properties: {
|
|
426
|
+
readonly group?: {
|
|
427
|
+
type: string;
|
|
428
|
+
description: string;
|
|
429
|
+
} | undefined;
|
|
430
|
+
readonly name: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
readonly description: "The guest's full name, as it should appear on the booking";
|
|
433
|
+
};
|
|
434
|
+
readonly email: {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
readonly description: "The email the confirmation goes to";
|
|
437
|
+
};
|
|
438
|
+
readonly phone: {
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
readonly description: "Optional";
|
|
441
|
+
};
|
|
442
|
+
readonly requests: {
|
|
443
|
+
readonly type: "array";
|
|
444
|
+
readonly items: {
|
|
445
|
+
readonly type: "string";
|
|
446
|
+
readonly enum: import("../types.js").RoomRequestKind[];
|
|
447
|
+
};
|
|
448
|
+
readonly description: "Preferences the desk tries to meet on the day. None of them is held; the answer says so";
|
|
449
|
+
};
|
|
450
|
+
readonly arrivingAt: {
|
|
451
|
+
readonly type: "string";
|
|
452
|
+
readonly description: "What time the guest reaches the hotel, `HH:MM` on the hotel's own clock. A time counts as a late arrival on its own";
|
|
453
|
+
};
|
|
454
|
+
readonly notes: {
|
|
455
|
+
readonly type: "string";
|
|
456
|
+
readonly description: "Anything else for the desk, in the guest's own words, up to 200 characters";
|
|
457
|
+
};
|
|
458
|
+
readonly rememberRequests: {
|
|
459
|
+
readonly type: "boolean";
|
|
460
|
+
readonly description: "True when the guest asked for these room preferences to be remembered for their next stays. Needs a signed-in member; what is kept is the lasting kind - a bed type, a floor, a quiet or connecting room; an accessible room is asked for on each stay and is not kept";
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
readonly required: readonly ["name", "email"];
|
|
464
|
+
};
|
|
465
|
+
} | {
|
|
466
|
+
readonly name: `list_my_${string}bookings`;
|
|
467
|
+
readonly description: "The bookings made in this conversation, newest to oldest, with their status, dates and confirmation codes. A booking made elsewhere is read and shown as well when both its confirmation code and the email it was made with are given; nothing is changed.";
|
|
468
|
+
readonly annotations: {
|
|
469
|
+
readonly title: string;
|
|
470
|
+
readonly readOnlyHint: true;
|
|
471
|
+
readonly destructiveHint: false;
|
|
472
|
+
readonly idempotentHint: true;
|
|
473
|
+
readonly openWorldHint: boolean;
|
|
474
|
+
};
|
|
475
|
+
readonly inputSchema: {
|
|
476
|
+
readonly type: "object";
|
|
477
|
+
readonly properties: {
|
|
478
|
+
readonly booking: {
|
|
479
|
+
readonly type: "string";
|
|
480
|
+
readonly description: "A confirmation code, with `email`, for a booking made elsewhere";
|
|
481
|
+
};
|
|
482
|
+
readonly email: {
|
|
483
|
+
readonly type: "string";
|
|
484
|
+
readonly description: "The email that booking was made with";
|
|
485
|
+
};
|
|
486
|
+
readonly limit: {
|
|
487
|
+
readonly type: "number";
|
|
488
|
+
readonly description: "Default 10";
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
} | {
|
|
493
|
+
readonly name: `preview_${string}cancellation`;
|
|
494
|
+
readonly description: "What cancelling a booking would cost, with the rule it was worked out from and the free-cancellation deadline where the rate has one. Nothing is cancelled.";
|
|
495
|
+
readonly annotations: {
|
|
496
|
+
readonly title: string;
|
|
497
|
+
readonly readOnlyHint: true;
|
|
498
|
+
readonly destructiveHint: false;
|
|
499
|
+
readonly idempotentHint: true;
|
|
500
|
+
readonly openWorldHint: boolean;
|
|
501
|
+
};
|
|
502
|
+
readonly inputSchema: {
|
|
503
|
+
readonly type: "object";
|
|
504
|
+
readonly properties: {
|
|
505
|
+
readonly booking: {
|
|
506
|
+
readonly type: "string";
|
|
507
|
+
readonly description: "The confirmation code or booking id";
|
|
508
|
+
};
|
|
509
|
+
readonly email: {
|
|
510
|
+
readonly type: "string";
|
|
511
|
+
readonly description: "The email the booking was made with, when it was made elsewhere";
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
readonly required: readonly ["booking"];
|
|
515
|
+
};
|
|
516
|
+
} | {
|
|
517
|
+
readonly name: `cancel_${string}booking`;
|
|
518
|
+
readonly description: "Cancels a booking. Called without `confirmed` it returns the cancellation preview - the fee and the rule behind it - and cancels nothing; it cancels only when `confirmed` is true.";
|
|
519
|
+
readonly annotations: {
|
|
520
|
+
readonly title: string;
|
|
521
|
+
readonly readOnlyHint: false;
|
|
522
|
+
readonly destructiveHint: true;
|
|
523
|
+
readonly idempotentHint: true;
|
|
524
|
+
readonly openWorldHint: boolean;
|
|
525
|
+
};
|
|
526
|
+
readonly inputSchema: {
|
|
527
|
+
readonly type: "object";
|
|
528
|
+
readonly properties: {
|
|
529
|
+
readonly booking: {
|
|
530
|
+
readonly type: "string";
|
|
531
|
+
readonly description: "The confirmation code or booking id";
|
|
532
|
+
};
|
|
533
|
+
readonly confirmed: {
|
|
534
|
+
readonly type: "boolean";
|
|
535
|
+
readonly description: "True cancels. Anything else returns the preview";
|
|
536
|
+
};
|
|
537
|
+
readonly reason: {
|
|
538
|
+
readonly type: "string";
|
|
539
|
+
readonly description: "Optional, kept on the booking";
|
|
540
|
+
};
|
|
541
|
+
readonly email: {
|
|
542
|
+
readonly type: "string";
|
|
543
|
+
readonly description: "The email the booking was made with, when it was made elsewhere";
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
readonly required: readonly ["booking"];
|
|
547
|
+
};
|
|
548
|
+
} | {
|
|
549
|
+
readonly name: `preview_${string}booking_change`;
|
|
550
|
+
readonly description: `What moving a booking to other nights, another room type or a different number of rooms - or putting an add-on on it, taking one off or changing how many - would cost: what it holds now, what it would hold, and the difference between them. The new nights are priced at what those nights cost today, not at the rate the booking was made on. A rate that cannot be moved, a ${string} that has no room left for the new nights and a booking that is already gone are each said in those words. Nothing is changed.`;
|
|
551
|
+
readonly annotations: {
|
|
552
|
+
readonly title: string;
|
|
553
|
+
readonly readOnlyHint: true;
|
|
554
|
+
readonly destructiveHint: false;
|
|
555
|
+
readonly idempotentHint: true;
|
|
556
|
+
readonly openWorldHint: boolean;
|
|
557
|
+
};
|
|
558
|
+
readonly inputSchema: {
|
|
559
|
+
readonly type: "object";
|
|
560
|
+
readonly properties: {
|
|
561
|
+
readonly booking: {
|
|
562
|
+
readonly type: "string";
|
|
563
|
+
readonly description: "The confirmation code or booking id";
|
|
564
|
+
};
|
|
565
|
+
readonly checkIn: {
|
|
566
|
+
readonly type: "string";
|
|
567
|
+
readonly description: "The new check-in, YYYY-MM-DD. Leave out to keep it";
|
|
568
|
+
};
|
|
569
|
+
readonly checkOut: {
|
|
570
|
+
readonly type: "string";
|
|
571
|
+
readonly description: "The new check-out, YYYY-MM-DD. Leave out to keep it";
|
|
572
|
+
};
|
|
573
|
+
readonly rooms: {
|
|
574
|
+
readonly type: "integer";
|
|
575
|
+
readonly minimum: 1;
|
|
576
|
+
readonly maximum: 5;
|
|
577
|
+
readonly description: "How many of that room type, 1 to 5. Leave out to keep it";
|
|
578
|
+
};
|
|
579
|
+
readonly room: {
|
|
580
|
+
readonly type: "string";
|
|
581
|
+
readonly description: "A different room type at the same hotel, by id or name";
|
|
582
|
+
};
|
|
583
|
+
readonly extra: {
|
|
584
|
+
readonly type: "string";
|
|
585
|
+
readonly description: `An add-on at this ${string}, by id or name, to put on the booking, take off or change - with \`quantity\``;
|
|
586
|
+
};
|
|
587
|
+
readonly quantity: {
|
|
588
|
+
readonly type: "integer";
|
|
589
|
+
readonly minimum: 0;
|
|
590
|
+
readonly maximum: 20;
|
|
591
|
+
readonly description: "How many of that add-on the booking should hold, 0 to 20; 0 takes it off";
|
|
592
|
+
};
|
|
593
|
+
readonly email: {
|
|
594
|
+
readonly type: "string";
|
|
595
|
+
readonly description: "The email the booking was made with, when it was made elsewhere";
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
readonly required: readonly ["booking"];
|
|
599
|
+
};
|
|
600
|
+
} | {
|
|
601
|
+
readonly name: `change_${string}booking`;
|
|
602
|
+
readonly description: "Moves a booking to other nights, another room type or a different number of rooms, or sets one of its add-ons (`extra` and `quantity`; 0 takes it off). Called without `confirmed` it returns the same preview - the two stays and the difference - and changes nothing; it changes only when `confirmed` is true. The confirmation code stays the same.";
|
|
603
|
+
readonly annotations: {
|
|
604
|
+
readonly title: string;
|
|
605
|
+
readonly readOnlyHint: false;
|
|
606
|
+
readonly destructiveHint: true;
|
|
607
|
+
readonly idempotentHint: true;
|
|
608
|
+
readonly openWorldHint: boolean;
|
|
609
|
+
};
|
|
610
|
+
readonly inputSchema: {
|
|
611
|
+
readonly type: "object";
|
|
612
|
+
readonly properties: {
|
|
613
|
+
readonly booking: {
|
|
614
|
+
readonly type: "string";
|
|
615
|
+
readonly description: "The confirmation code or booking id";
|
|
616
|
+
};
|
|
617
|
+
readonly checkIn: {
|
|
618
|
+
readonly type: "string";
|
|
619
|
+
readonly description: "The new check-in, YYYY-MM-DD. Leave out to keep it";
|
|
620
|
+
};
|
|
621
|
+
readonly checkOut: {
|
|
622
|
+
readonly type: "string";
|
|
623
|
+
readonly description: "The new check-out, YYYY-MM-DD. Leave out to keep it";
|
|
624
|
+
};
|
|
625
|
+
readonly rooms: {
|
|
626
|
+
readonly type: "integer";
|
|
627
|
+
readonly minimum: 1;
|
|
628
|
+
readonly maximum: 5;
|
|
629
|
+
readonly description: "How many of that room type, 1 to 5. Leave out to keep it";
|
|
630
|
+
};
|
|
631
|
+
readonly room: {
|
|
632
|
+
readonly type: "string";
|
|
633
|
+
readonly description: "A different room type at the same hotel, by id or name";
|
|
634
|
+
};
|
|
635
|
+
readonly extra: {
|
|
636
|
+
readonly type: "string";
|
|
637
|
+
readonly description: `An add-on at this ${string}, by id or name, to put on the booking, take off or change - with \`quantity\``;
|
|
638
|
+
};
|
|
639
|
+
readonly quantity: {
|
|
640
|
+
readonly type: "integer";
|
|
641
|
+
readonly minimum: 0;
|
|
642
|
+
readonly maximum: 20;
|
|
643
|
+
readonly description: "How many of that add-on the booking should hold, 0 to 20; 0 takes it off";
|
|
644
|
+
};
|
|
645
|
+
readonly email: {
|
|
646
|
+
readonly type: "string";
|
|
647
|
+
readonly description: "The email the booking was made with, when it was made elsewhere";
|
|
648
|
+
};
|
|
649
|
+
readonly confirmed: {
|
|
650
|
+
readonly type: "boolean";
|
|
651
|
+
readonly description: "True makes the change. Anything else returns the preview";
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
readonly required: readonly ["booking"];
|
|
655
|
+
};
|
|
656
|
+
} | {
|
|
657
|
+
readonly name: `compare_${string}${string}`;
|
|
658
|
+
readonly description: `Puts two to four ${string} side by side - as one card, in an app that draws one. Each column's price, rate, cancellation terms, breakfast and rooms left come from the ${string}'s own record; the arguments carry only the ids, one line on who each suits, and its pros and cons. With \`checkIn\`/\`checkOut\` the columns carry each ${string}'s cheapest room for those nights; without them, a from-price.`;
|
|
659
|
+
readonly annotations: {
|
|
660
|
+
readonly title: string;
|
|
661
|
+
readonly readOnlyHint: true;
|
|
662
|
+
readonly destructiveHint: false;
|
|
663
|
+
readonly idempotentHint: true;
|
|
664
|
+
readonly openWorldHint: boolean;
|
|
665
|
+
};
|
|
666
|
+
readonly inputSchema: {
|
|
667
|
+
readonly type: "object";
|
|
668
|
+
readonly properties: {
|
|
669
|
+
readonly checkIn: {
|
|
670
|
+
readonly type: "string";
|
|
671
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
672
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
673
|
+
};
|
|
674
|
+
readonly checkOut: {
|
|
675
|
+
readonly type: "string";
|
|
676
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
677
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
678
|
+
};
|
|
679
|
+
readonly guests: {
|
|
680
|
+
readonly type: "integer";
|
|
681
|
+
readonly minimum: 1;
|
|
682
|
+
readonly maximum: 8;
|
|
683
|
+
readonly description: "People in the room. Default 2";
|
|
684
|
+
};
|
|
685
|
+
readonly entries: {
|
|
686
|
+
readonly type: "array";
|
|
687
|
+
readonly minItems: 2;
|
|
688
|
+
readonly maxItems: 4;
|
|
689
|
+
readonly description: `The ${string} to set beside each other, in the order they should appear`;
|
|
690
|
+
readonly items: {
|
|
691
|
+
readonly type: "object";
|
|
692
|
+
readonly properties: {
|
|
693
|
+
readonly hotel: {
|
|
694
|
+
readonly type: "string";
|
|
695
|
+
readonly description: `The ${string}'s name or id`;
|
|
696
|
+
};
|
|
697
|
+
readonly bestFor: {
|
|
698
|
+
readonly type: "string";
|
|
699
|
+
readonly description: "One line on who this one suits, in your own words";
|
|
700
|
+
};
|
|
701
|
+
readonly pros: {
|
|
702
|
+
readonly type: "array";
|
|
703
|
+
readonly items: {
|
|
704
|
+
readonly type: "string";
|
|
705
|
+
};
|
|
706
|
+
readonly maxItems: 4;
|
|
707
|
+
};
|
|
708
|
+
readonly cons: {
|
|
709
|
+
readonly type: "array";
|
|
710
|
+
readonly items: {
|
|
711
|
+
readonly type: "string";
|
|
712
|
+
};
|
|
713
|
+
readonly maxItems: 3;
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
readonly required: readonly ["hotel"];
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
readonly recommended: {
|
|
720
|
+
readonly type: "string";
|
|
721
|
+
readonly description: `The one ${string} to mark as the pick`;
|
|
722
|
+
};
|
|
723
|
+
readonly title: {
|
|
724
|
+
readonly type: "string";
|
|
725
|
+
readonly description: "A heading for the plan";
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
readonly required: readonly ["entries"];
|
|
729
|
+
};
|
|
730
|
+
} | {
|
|
731
|
+
readonly name: `show_${string}itinerary`;
|
|
732
|
+
readonly description: `A day-by-day plan (\u884C\u7A0B) - one card, in an app that draws one - for a trip of several days, or for days a guest asked to have planned (a city with a span of dates and \u884C\u7A0B is one): the days are laid out by where they are spent, and each part of the trip has a ${string} near those days, chosen from the ${string} read up as text. Each day carries its own label, an optional note, the moments of the day in order, and the ${string} and add-ons attached to it, with their details filled in from their own records - a ${string} with its photograph and, given dates, the price of its nights. Each stay is marked with whether it is booked, in the trip or only in the plan, and the answer says how many of each. Nothing is added to the trip.`;
|
|
733
|
+
readonly annotations: {
|
|
734
|
+
readonly title: string;
|
|
735
|
+
readonly readOnlyHint: true;
|
|
736
|
+
readonly destructiveHint: false;
|
|
737
|
+
readonly idempotentHint: true;
|
|
738
|
+
readonly openWorldHint: boolean;
|
|
739
|
+
};
|
|
740
|
+
readonly inputSchema: {
|
|
741
|
+
readonly type: "object";
|
|
742
|
+
readonly properties: {
|
|
743
|
+
readonly checkIn: {
|
|
744
|
+
readonly type: "string";
|
|
745
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
746
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
747
|
+
};
|
|
748
|
+
readonly checkOut: {
|
|
749
|
+
readonly type: "string";
|
|
750
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
751
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
752
|
+
};
|
|
753
|
+
readonly guests: {
|
|
754
|
+
readonly type: "integer";
|
|
755
|
+
readonly minimum: 1;
|
|
756
|
+
readonly maximum: 8;
|
|
757
|
+
readonly description: "People in the room. Default 2";
|
|
758
|
+
};
|
|
759
|
+
readonly title: {
|
|
760
|
+
readonly type: "string";
|
|
761
|
+
readonly description: "What to call the trip";
|
|
762
|
+
};
|
|
763
|
+
readonly days: {
|
|
764
|
+
readonly type: "array";
|
|
765
|
+
readonly minItems: 1;
|
|
766
|
+
readonly maxItems: 10;
|
|
767
|
+
readonly items: {
|
|
768
|
+
readonly type: "object";
|
|
769
|
+
readonly properties: {
|
|
770
|
+
readonly label: {
|
|
771
|
+
readonly type: "string";
|
|
772
|
+
readonly description: `e.g. "Arrive${string}" - each day's date is printed beside it, so leave the date out`;
|
|
773
|
+
};
|
|
774
|
+
readonly note: {
|
|
775
|
+
readonly type: "string";
|
|
776
|
+
readonly description: "One or two lines on the day, in your own words";
|
|
777
|
+
};
|
|
778
|
+
readonly why: {
|
|
779
|
+
readonly type: "string";
|
|
780
|
+
readonly description: `Why the ${string} named on this day suits the days of that stay - near what, good for what - one sentence, in your own words, with no lead-in such as "My pick:" - the plan has its own`;
|
|
781
|
+
};
|
|
782
|
+
readonly items: {
|
|
783
|
+
readonly type: "array";
|
|
784
|
+
readonly items: {
|
|
785
|
+
readonly type: "string";
|
|
786
|
+
};
|
|
787
|
+
readonly maxItems: 6;
|
|
788
|
+
readonly description: `${string} and add-ons for that day, by name or id`;
|
|
789
|
+
};
|
|
790
|
+
readonly plan: {
|
|
791
|
+
readonly type: "array";
|
|
792
|
+
readonly maxItems: 5;
|
|
793
|
+
readonly description: "The day in order, in your own words: when, and what happens then. Nothing in it is booked or priced";
|
|
794
|
+
readonly items: {
|
|
795
|
+
readonly type: "object";
|
|
796
|
+
readonly properties: {
|
|
797
|
+
readonly time: {
|
|
798
|
+
readonly type: "string";
|
|
799
|
+
readonly description: "When in the day, e.g. \"Afternoon\" or \"19:00\"";
|
|
800
|
+
};
|
|
801
|
+
readonly what: {
|
|
802
|
+
readonly type: "string";
|
|
803
|
+
readonly description: "What happens then, in a few words";
|
|
804
|
+
};
|
|
805
|
+
readonly note: {
|
|
806
|
+
readonly type: "string";
|
|
807
|
+
readonly description: "One line more, optional";
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
readonly required: readonly ["what"];
|
|
811
|
+
};
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
readonly required: readonly ["label"];
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
};
|
|
818
|
+
readonly required: readonly ["title", "days"];
|
|
819
|
+
};
|
|
820
|
+
} | {
|
|
821
|
+
readonly name: `sign_in_${string}member`;
|
|
822
|
+
readonly description: `Signs ${string} loyalty member in (log in) for this conversation - ${string} \u4F1A\u5458\u767B\u5F55 - on ${string}'s own sign-in page: answers with a one-time link and a short code the page shows too, where the guest types their membership number and the surname on it; the chat does not carry them. Once they have, it answers with their tier, their point balance and what the tier takes off the public rate; room rates and trip totals are then quoted at the member rate until they are signed out.`;
|
|
823
|
+
readonly annotations: {
|
|
824
|
+
readonly title: string;
|
|
825
|
+
readonly readOnlyHint: false;
|
|
826
|
+
readonly destructiveHint: false;
|
|
827
|
+
readonly idempotentHint: true;
|
|
828
|
+
readonly openWorldHint: boolean;
|
|
829
|
+
};
|
|
830
|
+
readonly inputSchema: {
|
|
831
|
+
readonly type: "object";
|
|
832
|
+
readonly properties: {
|
|
833
|
+
readonly lang: {
|
|
834
|
+
readonly type: "string";
|
|
835
|
+
readonly enum: readonly ["zh", "en"];
|
|
836
|
+
readonly description: "The language the page opens in: zh for a guest writing Chinese, en otherwise. The page has a switch.";
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
};
|
|
840
|
+
} | {
|
|
841
|
+
readonly name: `card_${string}member`;
|
|
842
|
+
readonly description: `The booking card's own way to start ${string} membership sign-in, or to see whether its page has been used yet - for the conversation the card was drawn for.`;
|
|
843
|
+
readonly annotations: {
|
|
844
|
+
readonly title: string;
|
|
845
|
+
readonly readOnlyHint: false;
|
|
846
|
+
readonly destructiveHint: false;
|
|
847
|
+
readonly idempotentHint: true;
|
|
848
|
+
readonly openWorldHint: boolean;
|
|
849
|
+
};
|
|
850
|
+
readonly inputSchema: {
|
|
851
|
+
readonly type: "object";
|
|
852
|
+
readonly properties: {
|
|
853
|
+
readonly action: {
|
|
854
|
+
readonly type: "string";
|
|
855
|
+
readonly enum: readonly ["sign_in", "view"];
|
|
856
|
+
readonly description: "sign_in: a new one-time sign-in page; view: whether this conversation is signed in yet";
|
|
857
|
+
};
|
|
858
|
+
readonly lang: {
|
|
859
|
+
readonly type: "string";
|
|
860
|
+
readonly enum: readonly ["zh", "en"];
|
|
861
|
+
readonly description: "The language the page opens in";
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
readonly required: readonly ["action"];
|
|
865
|
+
};
|
|
866
|
+
} | {
|
|
867
|
+
readonly name: `sign_out_${string}member`;
|
|
868
|
+
readonly description: "Ends the membership sign-in for this conversation. Rates go back to the public ones; the trip and any bookings are left as they are.";
|
|
869
|
+
readonly annotations: {
|
|
870
|
+
readonly title: string;
|
|
871
|
+
readonly readOnlyHint: false;
|
|
872
|
+
readonly destructiveHint: false;
|
|
873
|
+
readonly idempotentHint: true;
|
|
874
|
+
readonly openWorldHint: boolean;
|
|
875
|
+
};
|
|
876
|
+
readonly inputSchema: {
|
|
877
|
+
readonly type: "object";
|
|
878
|
+
readonly properties: {};
|
|
879
|
+
};
|
|
880
|
+
} | {
|
|
881
|
+
readonly name: `forget_${string}preferences`;
|
|
882
|
+
readonly description: `Forgets the room preferences saved on the signed-in ${string} membership - a bed type, a floor, a quiet or connecting room. Bookings already made keep what they asked for.`;
|
|
883
|
+
readonly annotations: {
|
|
884
|
+
readonly title: "Forget my saved preferences";
|
|
885
|
+
readonly readOnlyHint: false;
|
|
886
|
+
readonly destructiveHint: true;
|
|
887
|
+
readonly idempotentHint: true;
|
|
888
|
+
readonly openWorldHint: boolean;
|
|
889
|
+
};
|
|
890
|
+
readonly inputSchema: {
|
|
891
|
+
readonly type: "object";
|
|
892
|
+
readonly properties: {};
|
|
893
|
+
};
|
|
894
|
+
} | {
|
|
895
|
+
readonly name: `get_${string}${string}_policies`;
|
|
896
|
+
readonly description: `What one ${string} publishes about cancellation, check-in and check-out, children and extra beds, pets, deposits and accessibility. With \`topic\` it returns that topic; without, all of them.`;
|
|
897
|
+
readonly annotations: {
|
|
898
|
+
readonly title: string;
|
|
899
|
+
readonly readOnlyHint: true;
|
|
900
|
+
readonly destructiveHint: false;
|
|
901
|
+
readonly idempotentHint: true;
|
|
902
|
+
readonly openWorldHint: boolean;
|
|
903
|
+
};
|
|
904
|
+
readonly inputSchema: {
|
|
905
|
+
readonly type: "object";
|
|
906
|
+
readonly properties: {
|
|
907
|
+
readonly hotel: {
|
|
908
|
+
readonly type: "string";
|
|
909
|
+
readonly description: `The ${string}'s name or id`;
|
|
910
|
+
};
|
|
911
|
+
readonly topic: {
|
|
912
|
+
readonly type: "string";
|
|
913
|
+
readonly enum: readonly ["cancellation", "check-in", "children", "pets", "deposit", "accessibility"];
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
readonly required: readonly ["hotel"];
|
|
917
|
+
};
|
|
918
|
+
} | {
|
|
919
|
+
readonly name: `pay_${string}booking_with_unionpay`;
|
|
920
|
+
readonly description: `Pays ${string} stay that is waiting for its payment with UnionPay instead of the card page. Answers UnionPay's own page to confirm it on - or, when that email has no UnionPay card on file, UnionPay's page to add one first. Nothing is charged by this call: the guest confirms on UnionPay's page, and the hotel charges the one-time card UnionPay issues for the stay.`;
|
|
921
|
+
readonly annotations: {
|
|
922
|
+
readonly title: "Pay with UnionPay";
|
|
923
|
+
readonly readOnlyHint: false;
|
|
924
|
+
readonly destructiveHint: false;
|
|
925
|
+
readonly idempotentHint: true;
|
|
926
|
+
readonly openWorldHint: true;
|
|
927
|
+
};
|
|
928
|
+
readonly inputSchema: {
|
|
929
|
+
readonly type: "object";
|
|
930
|
+
readonly properties: {
|
|
931
|
+
readonly booking: {
|
|
932
|
+
readonly type: "string";
|
|
933
|
+
readonly description: "The confirmation code of the stay waiting for its payment";
|
|
934
|
+
};
|
|
935
|
+
readonly email: {
|
|
936
|
+
readonly type: "string";
|
|
937
|
+
readonly description: "The email the stay was booked with";
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
readonly required: readonly ["booking", "email"];
|
|
941
|
+
};
|
|
942
|
+
} | {
|
|
943
|
+
readonly name: `pick_${string}room`;
|
|
944
|
+
readonly description: "The card's own step when the guest presses Reserve on one rate: the one room being booked, replacing whatever was picked before. It does not touch the trip, which holds the stays an assistant arranges.";
|
|
945
|
+
readonly annotations: {
|
|
946
|
+
readonly title: string;
|
|
947
|
+
readonly readOnlyHint: false;
|
|
948
|
+
readonly destructiveHint: false;
|
|
949
|
+
readonly idempotentHint: true;
|
|
950
|
+
readonly openWorldHint: boolean;
|
|
951
|
+
};
|
|
952
|
+
readonly inputSchema: {
|
|
953
|
+
readonly type: "object";
|
|
954
|
+
readonly properties: {
|
|
955
|
+
readonly rooms: {
|
|
956
|
+
readonly type: "integer";
|
|
957
|
+
readonly minimum: 0;
|
|
958
|
+
readonly maximum: 5;
|
|
959
|
+
readonly description: "How many of that room type, 1 to 5. Default 1; 0 empties the pick";
|
|
960
|
+
};
|
|
961
|
+
readonly checkIn: {
|
|
962
|
+
readonly type: "string";
|
|
963
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
964
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
965
|
+
};
|
|
966
|
+
readonly checkOut: {
|
|
967
|
+
readonly type: "string";
|
|
968
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
969
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
970
|
+
};
|
|
971
|
+
readonly guests: {
|
|
972
|
+
readonly type: "integer";
|
|
973
|
+
readonly minimum: 1;
|
|
974
|
+
readonly maximum: 8;
|
|
975
|
+
readonly description: "People in the room. Default 2";
|
|
976
|
+
};
|
|
977
|
+
readonly hotel: {
|
|
978
|
+
readonly type: "string";
|
|
979
|
+
readonly description: `The ${string}'s name or id`;
|
|
980
|
+
};
|
|
981
|
+
readonly room: {
|
|
982
|
+
readonly type: "string";
|
|
983
|
+
readonly description: "The room type id or name, as the hotel returned it";
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
readonly required: readonly ["hotel", "room"];
|
|
987
|
+
};
|
|
988
|
+
} | {
|
|
989
|
+
readonly name: `book_picked_${string}room`;
|
|
990
|
+
readonly description: "The card's own step when the guest submits the booking form for the room they picked with Reserve: books that one room for the named guest, the way a trip's rooms are booked. Leaves the trip as it is.";
|
|
991
|
+
readonly annotations: {
|
|
992
|
+
readonly title: string;
|
|
993
|
+
readonly readOnlyHint: false;
|
|
994
|
+
readonly destructiveHint: true;
|
|
995
|
+
readonly idempotentHint: false;
|
|
996
|
+
readonly openWorldHint: boolean;
|
|
997
|
+
};
|
|
998
|
+
readonly inputSchema: {
|
|
999
|
+
readonly type: "object";
|
|
1000
|
+
readonly properties: {
|
|
1001
|
+
readonly startTime: {
|
|
1002
|
+
readonly type: "string";
|
|
1003
|
+
readonly description: "For a room by the hour: the start the form shows, HH:MM";
|
|
1004
|
+
};
|
|
1005
|
+
readonly checkIn: {
|
|
1006
|
+
readonly type: "string";
|
|
1007
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
1008
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
1009
|
+
};
|
|
1010
|
+
readonly checkOut: {
|
|
1011
|
+
readonly type: "string";
|
|
1012
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
1013
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
1014
|
+
};
|
|
1015
|
+
readonly guests: {
|
|
1016
|
+
readonly type: "integer";
|
|
1017
|
+
readonly minimum: 1;
|
|
1018
|
+
readonly maximum: 8;
|
|
1019
|
+
readonly description: "People in the room. Default 2";
|
|
1020
|
+
};
|
|
1021
|
+
readonly hotel: {
|
|
1022
|
+
readonly type: "string";
|
|
1023
|
+
readonly description: `The ${string} id on the form`;
|
|
1024
|
+
};
|
|
1025
|
+
readonly room: {
|
|
1026
|
+
readonly type: "string";
|
|
1027
|
+
readonly description: "The room type id on the form";
|
|
1028
|
+
};
|
|
1029
|
+
readonly rooms: {
|
|
1030
|
+
readonly type: "integer";
|
|
1031
|
+
readonly minimum: 1;
|
|
1032
|
+
readonly maximum: 5;
|
|
1033
|
+
readonly description: "How many of that room type the form shows";
|
|
1034
|
+
};
|
|
1035
|
+
readonly name: {
|
|
1036
|
+
readonly type: "string";
|
|
1037
|
+
readonly description: "The guest's full name, as it should appear on the booking";
|
|
1038
|
+
};
|
|
1039
|
+
readonly email: {
|
|
1040
|
+
readonly type: "string";
|
|
1041
|
+
readonly description: "The email the confirmation goes to";
|
|
1042
|
+
};
|
|
1043
|
+
readonly phone: {
|
|
1044
|
+
readonly type: "string";
|
|
1045
|
+
readonly description: "Optional";
|
|
1046
|
+
};
|
|
1047
|
+
readonly requests: {
|
|
1048
|
+
readonly type: "array";
|
|
1049
|
+
readonly items: {
|
|
1050
|
+
readonly type: "string";
|
|
1051
|
+
readonly enum: import("../types.js").RoomRequestKind[];
|
|
1052
|
+
};
|
|
1053
|
+
readonly description: "Preferences the desk tries to meet on the day. None of them is held; the answer says so";
|
|
1054
|
+
};
|
|
1055
|
+
readonly arrivingAt: {
|
|
1056
|
+
readonly type: "string";
|
|
1057
|
+
readonly description: "What time the guest reaches the hotel, `HH:MM` on the hotel's own clock. A time counts as a late arrival on its own";
|
|
1058
|
+
};
|
|
1059
|
+
readonly notes: {
|
|
1060
|
+
readonly type: "string";
|
|
1061
|
+
readonly description: "Anything else for the desk, in the guest's own words, up to 200 characters";
|
|
1062
|
+
};
|
|
1063
|
+
readonly rememberRequests: {
|
|
1064
|
+
readonly type: "boolean";
|
|
1065
|
+
readonly description: "True when the guest asked for these room preferences to be remembered for their next stays. Needs a signed-in member; what is kept is the lasting kind - a bed type, a floor, a quiet or connecting room; an accessible room is asked for on each stay and is not kept";
|
|
1066
|
+
};
|
|
1067
|
+
};
|
|
1068
|
+
readonly required: readonly ["name", "email"];
|
|
1069
|
+
};
|
|
1070
|
+
} | {
|
|
1071
|
+
readonly name: `card_${string}terms`;
|
|
1072
|
+
readonly description: "The card's own step when the guest presses \"Agree and continue\" under a hotel group's booking terms: it sends the guest's agreement to the terms behind `ref` and the stay is then booked with the group. It answers like a booking: the booking's payment page, the terms again, or why nothing was booked.";
|
|
1073
|
+
readonly annotations: {
|
|
1074
|
+
readonly title: string;
|
|
1075
|
+
readonly readOnlyHint: false;
|
|
1076
|
+
readonly destructiveHint: true;
|
|
1077
|
+
readonly idempotentHint: false;
|
|
1078
|
+
readonly openWorldHint: boolean;
|
|
1079
|
+
};
|
|
1080
|
+
readonly inputSchema: {
|
|
1081
|
+
readonly type: "object";
|
|
1082
|
+
readonly properties: {
|
|
1083
|
+
readonly ref: {
|
|
1084
|
+
readonly type: "string";
|
|
1085
|
+
readonly description: "The terms the card is showing, by the reference the booking answer gave";
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
readonly required: readonly ["ref"];
|
|
1089
|
+
};
|
|
1090
|
+
} | {
|
|
1091
|
+
readonly name: `refund_${string}booking`;
|
|
1092
|
+
readonly description: "Asks the hotel group to refund, in full, a booking made here that has been paid. TWO STEPS: the first call (no `confirmed`) only previews - the amount and the group's own refund terms - and asks nothing of the group; say them to the guest, and only when they say yes call again with `confirmed: true`. The second answer says what the group did with the request.";
|
|
1093
|
+
readonly annotations: {
|
|
1094
|
+
readonly title: string;
|
|
1095
|
+
readonly readOnlyHint: false;
|
|
1096
|
+
readonly destructiveHint: true;
|
|
1097
|
+
readonly idempotentHint: true;
|
|
1098
|
+
readonly openWorldHint: boolean;
|
|
1099
|
+
};
|
|
1100
|
+
readonly inputSchema: {
|
|
1101
|
+
readonly type: "object";
|
|
1102
|
+
readonly properties: {
|
|
1103
|
+
readonly booking: {
|
|
1104
|
+
readonly type: "string";
|
|
1105
|
+
readonly description: "The confirmation code or order id, as the booking answer gave it";
|
|
1106
|
+
};
|
|
1107
|
+
readonly reason: {
|
|
1108
|
+
readonly type: "string";
|
|
1109
|
+
readonly maxLength: 200;
|
|
1110
|
+
readonly description: "Optional, the guest's reason in their own words, up to 200 characters";
|
|
1111
|
+
};
|
|
1112
|
+
readonly confirmed: {
|
|
1113
|
+
readonly type: "boolean";
|
|
1114
|
+
readonly description: "true only after the guest was shown the refund preview this tool answers with and said yes. Without it, the answer is that preview and nothing is asked of the group.";
|
|
1115
|
+
};
|
|
1116
|
+
};
|
|
1117
|
+
readonly required: readonly ["booking"];
|
|
1118
|
+
};
|
|
1119
|
+
} | {
|
|
1120
|
+
readonly name: `list_${string}booking_addons`;
|
|
1121
|
+
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.";
|
|
1122
|
+
readonly annotations: {
|
|
1123
|
+
readonly title: string;
|
|
1124
|
+
readonly readOnlyHint: true;
|
|
1125
|
+
readonly destructiveHint: false;
|
|
1126
|
+
readonly idempotentHint: true;
|
|
1127
|
+
readonly openWorldHint: boolean;
|
|
1128
|
+
};
|
|
1129
|
+
readonly inputSchema: {
|
|
1130
|
+
readonly type: "object";
|
|
1131
|
+
readonly properties: {
|
|
1132
|
+
readonly booking: {
|
|
1133
|
+
readonly type: "string";
|
|
1134
|
+
readonly description: "The confirmation code or order id, as the booking answer gave it";
|
|
1135
|
+
};
|
|
1136
|
+
};
|
|
1137
|
+
readonly required: readonly ["booking"];
|
|
1138
|
+
};
|
|
1139
|
+
} | {
|
|
1140
|
+
readonly name: `add_${string}booking_addon`;
|
|
1141
|
+
readonly description: "Prepares adding one add-on to a booking made here, at the price the add-on list gave. It does NOT add it: the answer gives a one-time page address for the guest to open in the browser signed in to their account, where they see the add-on, the price, the total and the booking, and press confirm themselves. Pass that link on; never say the add-on was added until the guest has confirmed it and the booking says so. It checks the id, the details and the price again as it prepares, and refuses a booking that is not theirs or is over.";
|
|
1142
|
+
readonly annotations: {
|
|
1143
|
+
readonly title: string;
|
|
1144
|
+
readonly readOnlyHint: false;
|
|
1145
|
+
readonly destructiveHint: false;
|
|
1146
|
+
readonly idempotentHint: false;
|
|
1147
|
+
readonly openWorldHint: boolean;
|
|
1148
|
+
};
|
|
1149
|
+
readonly inputSchema: {
|
|
1150
|
+
readonly type: "object";
|
|
1151
|
+
readonly properties: {
|
|
1152
|
+
readonly booking: {
|
|
1153
|
+
readonly type: "string";
|
|
1154
|
+
readonly description: "The confirmation code or order id, as the booking answer gave it";
|
|
1155
|
+
};
|
|
1156
|
+
readonly addon: {
|
|
1157
|
+
readonly type: "string";
|
|
1158
|
+
readonly description: "The add-on id, as the add-on list gave it";
|
|
1159
|
+
};
|
|
1160
|
+
readonly direction: {
|
|
1161
|
+
readonly type: "string";
|
|
1162
|
+
readonly enum: readonly ["arrival", "departure", "round_trip"];
|
|
1163
|
+
readonly description: "For a transfer: to the hotel, from it, or both";
|
|
1164
|
+
};
|
|
1165
|
+
readonly flightNo: {
|
|
1166
|
+
readonly type: "string";
|
|
1167
|
+
readonly description: "For a transfer: the flight number, e.g. MU5101";
|
|
1168
|
+
};
|
|
1169
|
+
readonly pickupTime: {
|
|
1170
|
+
readonly type: "string";
|
|
1171
|
+
readonly description: "For a transfer: the pick-up time, HH:MM";
|
|
1172
|
+
};
|
|
1173
|
+
readonly date: {
|
|
1174
|
+
readonly type: "string";
|
|
1175
|
+
readonly description: "The date it is for, YYYY-MM-DD";
|
|
1176
|
+
};
|
|
1177
|
+
readonly quantity: {
|
|
1178
|
+
readonly type: "integer";
|
|
1179
|
+
readonly minimum: 1;
|
|
1180
|
+
readonly maximum: 10;
|
|
1181
|
+
readonly description: "How many, 1 to 10, for an add-on that is bought by the piece. Default 1";
|
|
1182
|
+
};
|
|
1183
|
+
readonly partySize: {
|
|
1184
|
+
readonly type: "integer";
|
|
1185
|
+
readonly minimum: 1;
|
|
1186
|
+
readonly maximum: 10;
|
|
1187
|
+
readonly description: "For a transfer: how many passengers, 1 to 10. Default 1";
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
readonly required: readonly ["booking", "addon"];
|
|
1191
|
+
};
|
|
1192
|
+
} | {
|
|
1193
|
+
name: string;
|
|
1194
|
+
description: string;
|
|
1195
|
+
annotations: {
|
|
1196
|
+
readonly title: string;
|
|
1197
|
+
readonly readOnlyHint: true;
|
|
1198
|
+
readonly destructiveHint: false;
|
|
1199
|
+
readonly idempotentHint: true;
|
|
1200
|
+
readonly openWorldHint: boolean;
|
|
1201
|
+
};
|
|
1202
|
+
inputSchema: {
|
|
1203
|
+
type: string;
|
|
1204
|
+
properties: {
|
|
1205
|
+
query: {
|
|
1206
|
+
type: string;
|
|
1207
|
+
description: string;
|
|
1208
|
+
};
|
|
1209
|
+
category: {
|
|
1210
|
+
type: string;
|
|
1211
|
+
description: string;
|
|
1212
|
+
};
|
|
1213
|
+
maxPrice: {
|
|
1214
|
+
type: string;
|
|
1215
|
+
minimum: number;
|
|
1216
|
+
description: string;
|
|
1217
|
+
};
|
|
1218
|
+
item: {
|
|
1219
|
+
type: string;
|
|
1220
|
+
description: string;
|
|
1221
|
+
};
|
|
1222
|
+
option?: undefined;
|
|
1223
|
+
quantity?: undefined;
|
|
1224
|
+
booking?: undefined;
|
|
1225
|
+
unitPrice?: undefined;
|
|
1226
|
+
currency?: undefined;
|
|
1227
|
+
action?: undefined;
|
|
1228
|
+
catalogId?: undefined;
|
|
1229
|
+
direction?: undefined;
|
|
1230
|
+
flightNo?: undefined;
|
|
1231
|
+
pickupTime?: undefined;
|
|
1232
|
+
date?: undefined;
|
|
1233
|
+
partySize?: undefined;
|
|
1234
|
+
shownTotal?: undefined;
|
|
1235
|
+
order?: undefined;
|
|
1236
|
+
shownUnit?: undefined;
|
|
1237
|
+
press?: undefined;
|
|
1238
|
+
};
|
|
1239
|
+
required?: undefined;
|
|
1240
|
+
};
|
|
1241
|
+
} | {
|
|
1242
|
+
name: string;
|
|
1243
|
+
description: string;
|
|
1244
|
+
annotations: {
|
|
1245
|
+
readonly title: string;
|
|
1246
|
+
readonly readOnlyHint: true;
|
|
1247
|
+
readonly destructiveHint: false;
|
|
1248
|
+
readonly idempotentHint: true;
|
|
1249
|
+
readonly openWorldHint: boolean;
|
|
1250
|
+
};
|
|
1251
|
+
inputSchema: {
|
|
1252
|
+
type: string;
|
|
1253
|
+
properties: {
|
|
1254
|
+
query?: undefined;
|
|
1255
|
+
category?: undefined;
|
|
1256
|
+
maxPrice?: undefined;
|
|
1257
|
+
item?: undefined;
|
|
1258
|
+
option?: undefined;
|
|
1259
|
+
quantity?: undefined;
|
|
1260
|
+
booking?: undefined;
|
|
1261
|
+
unitPrice?: undefined;
|
|
1262
|
+
currency?: undefined;
|
|
1263
|
+
action?: undefined;
|
|
1264
|
+
catalogId?: undefined;
|
|
1265
|
+
direction?: undefined;
|
|
1266
|
+
flightNo?: undefined;
|
|
1267
|
+
pickupTime?: undefined;
|
|
1268
|
+
date?: undefined;
|
|
1269
|
+
partySize?: undefined;
|
|
1270
|
+
shownTotal?: undefined;
|
|
1271
|
+
order?: undefined;
|
|
1272
|
+
shownUnit?: undefined;
|
|
1273
|
+
press?: undefined;
|
|
1274
|
+
};
|
|
1275
|
+
required?: undefined;
|
|
1276
|
+
};
|
|
1277
|
+
} | {
|
|
1278
|
+
name: string;
|
|
1279
|
+
description: string;
|
|
1280
|
+
annotations: {
|
|
1281
|
+
readonly title: string;
|
|
1282
|
+
readonly readOnlyHint: false;
|
|
1283
|
+
readonly destructiveHint: false;
|
|
1284
|
+
readonly idempotentHint: false;
|
|
1285
|
+
readonly openWorldHint: boolean;
|
|
1286
|
+
};
|
|
1287
|
+
inputSchema: {
|
|
1288
|
+
type: string;
|
|
1289
|
+
properties: {
|
|
1290
|
+
item: {
|
|
1291
|
+
type: string;
|
|
1292
|
+
description: string;
|
|
1293
|
+
};
|
|
1294
|
+
option: {
|
|
1295
|
+
type: string;
|
|
1296
|
+
description: string;
|
|
1297
|
+
};
|
|
1298
|
+
quantity: {
|
|
1299
|
+
type: string;
|
|
1300
|
+
minimum: number;
|
|
1301
|
+
maximum: number;
|
|
1302
|
+
description: string;
|
|
1303
|
+
};
|
|
1304
|
+
booking: {
|
|
1305
|
+
type: string;
|
|
1306
|
+
description: string;
|
|
1307
|
+
};
|
|
1308
|
+
unitPrice: {
|
|
1309
|
+
type: string;
|
|
1310
|
+
exclusiveMinimum: number;
|
|
1311
|
+
description: string;
|
|
1312
|
+
};
|
|
1313
|
+
currency: {
|
|
1314
|
+
type: string;
|
|
1315
|
+
description: string;
|
|
1316
|
+
};
|
|
1317
|
+
query?: undefined;
|
|
1318
|
+
category?: undefined;
|
|
1319
|
+
maxPrice?: undefined;
|
|
1320
|
+
action?: undefined;
|
|
1321
|
+
catalogId?: undefined;
|
|
1322
|
+
direction?: undefined;
|
|
1323
|
+
flightNo?: undefined;
|
|
1324
|
+
pickupTime?: undefined;
|
|
1325
|
+
date?: undefined;
|
|
1326
|
+
partySize?: undefined;
|
|
1327
|
+
shownTotal?: undefined;
|
|
1328
|
+
order?: undefined;
|
|
1329
|
+
shownUnit?: undefined;
|
|
1330
|
+
press?: undefined;
|
|
1331
|
+
};
|
|
1332
|
+
required: string[];
|
|
1333
|
+
};
|
|
1334
|
+
} | {
|
|
1335
|
+
name: string;
|
|
1336
|
+
description: string;
|
|
1337
|
+
annotations: {
|
|
1338
|
+
readonly title: string;
|
|
1339
|
+
readonly readOnlyHint: false;
|
|
1340
|
+
readonly destructiveHint: true;
|
|
1341
|
+
readonly idempotentHint: false;
|
|
1342
|
+
readonly openWorldHint: boolean;
|
|
1343
|
+
};
|
|
1344
|
+
inputSchema: {
|
|
1345
|
+
type: string;
|
|
1346
|
+
properties: {
|
|
1347
|
+
action: {
|
|
1348
|
+
type: string;
|
|
1349
|
+
enum: string[];
|
|
1350
|
+
};
|
|
1351
|
+
booking: {
|
|
1352
|
+
type: string;
|
|
1353
|
+
description: string;
|
|
1354
|
+
};
|
|
1355
|
+
catalogId: {
|
|
1356
|
+
type: string;
|
|
1357
|
+
description: string;
|
|
1358
|
+
};
|
|
1359
|
+
direction: {
|
|
1360
|
+
type: string;
|
|
1361
|
+
enum: string[];
|
|
1362
|
+
};
|
|
1363
|
+
flightNo: {
|
|
1364
|
+
type: string;
|
|
1365
|
+
};
|
|
1366
|
+
pickupTime: {
|
|
1367
|
+
type: string;
|
|
1368
|
+
description: string;
|
|
1369
|
+
};
|
|
1370
|
+
date: {
|
|
1371
|
+
type: string;
|
|
1372
|
+
description: string;
|
|
1373
|
+
};
|
|
1374
|
+
quantity: {
|
|
1375
|
+
type: string;
|
|
1376
|
+
minimum: number;
|
|
1377
|
+
maximum: number;
|
|
1378
|
+
description?: undefined;
|
|
1379
|
+
};
|
|
1380
|
+
partySize: {
|
|
1381
|
+
type: string;
|
|
1382
|
+
minimum: number;
|
|
1383
|
+
maximum: number;
|
|
1384
|
+
};
|
|
1385
|
+
shownTotal: {
|
|
1386
|
+
type: string;
|
|
1387
|
+
description: string;
|
|
1388
|
+
};
|
|
1389
|
+
currency: {
|
|
1390
|
+
type: string;
|
|
1391
|
+
description: string;
|
|
1392
|
+
};
|
|
1393
|
+
item: {
|
|
1394
|
+
type: string;
|
|
1395
|
+
description: string;
|
|
1396
|
+
};
|
|
1397
|
+
order: {
|
|
1398
|
+
type: string;
|
|
1399
|
+
description: string;
|
|
1400
|
+
};
|
|
1401
|
+
option: {
|
|
1402
|
+
type: string;
|
|
1403
|
+
description: string;
|
|
1404
|
+
};
|
|
1405
|
+
shownUnit: {
|
|
1406
|
+
type: string;
|
|
1407
|
+
description: string;
|
|
1408
|
+
};
|
|
1409
|
+
press: {
|
|
1410
|
+
type: string;
|
|
1411
|
+
description: string;
|
|
1412
|
+
};
|
|
1413
|
+
query?: undefined;
|
|
1414
|
+
category?: undefined;
|
|
1415
|
+
maxPrice?: undefined;
|
|
1416
|
+
unitPrice?: undefined;
|
|
1417
|
+
};
|
|
1418
|
+
required: string[];
|
|
1419
|
+
};
|
|
1420
|
+
})[];
|
|
1421
|
+
/**
|
|
1422
|
+
* The most hotels a list priced for tonight by default holds on one page
|
|
1423
|
+
* (`listsTonight`, 0.75.1, 总线程 11-18): every one is a price asked of the group - two
|
|
1424
|
+
* calls, and its products - so a guest who named no nights waits for twelve at most, and
|
|
1425
|
+
* the rest come with the next page. A `limit` above it is taken as this.
|
|
1426
|
+
*/
|
|
1427
|
+
export declare const TONIGHT_PAGE_MAX = 12;
|
|
1428
|
+
/**
|
|
1429
|
+
* The list tool where the deployment is one hotel in all (2026-10-15, Huazhu's
|
|
1430
|
+
* test system): asked with no place it answers with that hotel's page, not
|
|
1431
|
+
* with places to choose from - and says so, or the model offers to look in
|
|
1432
|
+
* another city (three smoke runs did). Where it is a few (`HOME_LIST_MAX`,
|
|
1433
|
+
* Huazhu's production, 2026-10-30), asked with no place it lists all of them.
|
|
1434
|
+
* Never in a market.
|
|
1435
|
+
*
|
|
1436
|
+
* ⚠️ `all` SAYS SO TOO (0.51.1): its "true lists the hotels themselves" is
|
|
1437
|
+
* what had the model open Huazhu's production with `all: true` - the one way
|
|
1438
|
+
* past the home, with no tonight and no prices. It is the home there now, and
|
|
1439
|
+
* its description says it changes nothing.
|
|
1440
|
+
*/
|
|
1441
|
+
export declare const homeListing: <T extends {
|
|
1442
|
+
name: string;
|
|
1443
|
+
description: string;
|
|
1444
|
+
inputSchema?: unknown;
|
|
1445
|
+
}>(t: T, brand: {
|
|
1446
|
+
tools: ToolNames;
|
|
1447
|
+
vocab: Vocabulary;
|
|
1448
|
+
}, count: number) => T;
|
|
1449
|
+
export declare const withheldTools: (n: ToolNames, caps: BackendCapabilities) => Set<string>;
|
|
1450
|
+
/**
|
|
1451
|
+
* Orders are the ACCOUNT'S (Otaless, 0.75.0 T5/T6): the group's own checkout with booking on.
|
|
1452
|
+
* A booking is found by the account that made it - never by a confirmation code and the email
|
|
1453
|
+
* it was made with - and what it sends the group is the guest's name, phone, email, dates and
|
|
1454
|
+
* rooms and nothing else (no requests, arrival time or notes). So no tool lists an `email` to
|
|
1455
|
+
* find one, nor a field the order has nowhere to carry. (`groupCheckout` is only ever Otaless's.)
|
|
1456
|
+
*/
|
|
1457
|
+
export declare const ordersByAccount: (caps: BackendCapabilities) => boolean;
|
|
1458
|
+
/**
|
|
1459
|
+
* What to tell a guest who wants to book where nothing can be booked yet
|
|
1460
|
+
* (`capabilities.readOnly`) - the same words in the instructions and in each
|
|
1461
|
+
* answer that would otherwise say how to book.
|
|
1462
|
+
*/
|
|
1463
|
+
export declare const readOnlyWords: (v: Pick<Vocabulary, "brand" | "noun">) => string;
|
|
1464
|
+
/**
|
|
1465
|
+
* Said with every price where nothing can be booked yet (`capabilities.readOnly`;
|
|
1466
|
+
* 总线程 11-09, Manus on Otaless after 0.59.0): asked for a hotel's rooms after a
|
|
1467
|
+
* comparison, the model answered from the comparison - which said nothing of
|
|
1468
|
+
* it - and called them "两种可订房型", with nowhere to book. On a list, a hotel's
|
|
1469
|
+
* page, a comparison and a plan, in the text and, word for word, in the
|
|
1470
|
+
* structure (`notBookable`); what `readOnlyWords` tells it to do when the guest
|
|
1471
|
+
* asks to book, in one sentence.
|
|
1472
|
+
*/
|
|
1473
|
+
export declare const notBookableWords: (v: Pick<Vocabulary, "brand" | "noun">) => string;
|
|
1474
|
+
//# sourceMappingURL=tool-set.d.ts.map
|