@curless/hotel-storefront 0.86.0 → 0.88.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/card.generated.d.ts +1 -1
- package/dist/card.generated.js +2 -2
- package/dist/card.generated.js.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/dist/tools/all-tools.d.ts +17954 -172
- package/dist/tools/all-tools.d.ts.map +1 -1
- package/dist/tools/all-tools.js +38 -949
- package/dist/tools/all-tools.js.map +1 -1
- package/dist/tools/base-output-schemas.d.ts.map +1 -1
- package/dist/tools/base-output-schemas.js +17 -1
- package/dist/tools/base-output-schemas.js.map +1 -1
- package/dist/tools/booking-answer.d.ts.map +1 -1
- package/dist/tools/booking-answer.js +239 -157
- package/dist/tools/booking-answer.js.map +1 -1
- package/dist/tools/cancel.d.ts +1 -1
- package/dist/tools/cancel.d.ts.map +1 -1
- package/dist/tools/cancel.js +199 -148
- package/dist/tools/cancel.js.map +1 -1
- package/dist/tools/capability-adjust.d.ts +31 -0
- package/dist/tools/capability-adjust.d.ts.map +1 -0
- package/dist/tools/capability-adjust.js +299 -0
- package/dist/tools/capability-adjust.js.map +1 -0
- package/dist/tools/current-trip.d.ts.map +1 -1
- package/dist/tools/current-trip.js +40 -32
- package/dist/tools/current-trip.js.map +1 -1
- package/dist/tools/get-hotel.d.ts +1 -1
- package/dist/tools/get-hotel.d.ts.map +1 -1
- package/dist/tools/get-hotel.js +151 -125
- package/dist/tools/get-hotel.js.map +1 -1
- package/dist/tools/hotel-choices.d.ts.map +1 -1
- package/dist/tools/hotel-choices.js +111 -82
- package/dist/tools/hotel-choices.js.map +1 -1
- package/dist/tools/itinerary.d.ts +1 -1
- package/dist/tools/itinerary.d.ts.map +1 -1
- package/dist/tools/itinerary.js +46 -36
- package/dist/tools/itinerary.js.map +1 -1
- package/dist/tools/list-hotels-ask.d.ts +133 -0
- package/dist/tools/list-hotels-ask.d.ts.map +1 -0
- package/dist/tools/list-hotels-ask.js +326 -0
- package/dist/tools/list-hotels-ask.js.map +1 -0
- package/dist/tools/list-hotels-empty.d.ts +5 -0
- package/dist/tools/list-hotels-empty.d.ts.map +1 -0
- package/dist/tools/list-hotels-empty.js +130 -0
- package/dist/tools/list-hotels-empty.js.map +1 -0
- package/dist/tools/list-hotels-home.d.ts +9 -0
- package/dist/tools/list-hotels-home.d.ts.map +1 -0
- package/dist/tools/list-hotels-home.js +181 -0
- package/dist/tools/list-hotels-home.js.map +1 -0
- package/dist/tools/list-hotels-page.d.ts +43 -0
- package/dist/tools/list-hotels-page.d.ts.map +1 -0
- package/dist/tools/list-hotels-page.js +344 -0
- package/dist/tools/list-hotels-page.js.map +1 -0
- package/dist/tools/list-hotels.d.ts +1 -1
- package/dist/tools/list-hotels.d.ts.map +1 -1
- package/dist/tools/list-hotels.js +22 -889
- package/dist/tools/list-hotels.js.map +1 -1
- package/dist/tools/look-up.d.ts +1 -1
- package/dist/tools/look-up.d.ts.map +1 -1
- package/dist/tools/look-up.js +70 -33
- package/dist/tools/look-up.js.map +1 -1
- package/dist/tools/put-room-line.d.ts.map +1 -1
- package/dist/tools/put-room-line.js +248 -215
- package/dist/tools/put-room-line.js.map +1 -1
- package/dist/tools/room-choices.d.ts.map +1 -1
- package/dist/tools/room-choices.js +74 -48
- package/dist/tools/room-choices.js.map +1 -1
- package/dist/tools/terms-answer.d.ts.map +1 -1
- package/dist/tools/terms-answer.js +48 -31
- package/dist/tools/terms-answer.js.map +1 -1
- package/dist/tools/tool-defs-account.d.ts +80 -0
- package/dist/tools/tool-defs-account.d.ts.map +1 -0
- package/dist/tools/tool-defs-account.js +65 -0
- package/dist/tools/tool-defs-account.js.map +1 -0
- package/dist/tools/tool-defs-addons.d.ts +251 -0
- package/dist/tools/tool-defs-addons.d.ts.map +1 -0
- package/dist/tools/tool-defs-addons.js +198 -0
- package/dist/tools/tool-defs-addons.js.map +1 -0
- package/dist/tools/tool-defs-booking.d.ts +410 -0
- package/dist/tools/tool-defs-booking.d.ts.map +1 -0
- package/dist/tools/tool-defs-booking.js +285 -0
- package/dist/tools/tool-defs-booking.js.map +1 -0
- package/dist/tools/tool-defs-browse.d.ts +444 -0
- package/dist/tools/tool-defs-browse.d.ts.map +1 -0
- package/dist/tools/tool-defs-browse.js +307 -0
- package/dist/tools/tool-defs-browse.js.map +1 -0
- package/dist/tools/tool-defs-trip.d.ts +136 -0
- package/dist/tools/tool-defs-trip.d.ts.map +1 -0
- package/dist/tools/tool-defs-trip.js +79 -0
- package/dist/tools/tool-defs-trip.js.map +1 -0
- package/dist/tools/tool-env.d.ts +64 -0
- package/dist/tools/tool-env.d.ts.map +1 -0
- package/dist/tools/tool-env.js +49 -0
- package/dist/tools/tool-env.js.map +1 -0
- package/dist/tools/tool-set.d.ts +698 -747
- package/dist/tools/tool-set.d.ts.map +1 -1
- package/dist/tools/tool-set.js +14 -267
- package/dist/tools/tool-set.js.map +1 -1
- package/package.json +1 -1
package/dist/tools/tool-set.d.ts
CHANGED
|
@@ -80,11 +80,11 @@ export declare const LOOK_UP_MAX = 6;
|
|
|
80
80
|
* of it - see `BackendCapabilities`.
|
|
81
81
|
*/
|
|
82
82
|
export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCapabilities) => ({
|
|
83
|
-
readonly name: `
|
|
84
|
-
readonly description:
|
|
83
|
+
readonly name: `sign_in_${string}member`;
|
|
84
|
+
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.`;
|
|
85
85
|
readonly annotations: {
|
|
86
86
|
readonly title: string;
|
|
87
|
-
readonly readOnlyHint:
|
|
87
|
+
readonly readOnlyHint: false;
|
|
88
88
|
readonly destructiveHint: false;
|
|
89
89
|
readonly idempotentHint: true;
|
|
90
90
|
readonly openWorldHint: boolean;
|
|
@@ -92,91 +92,70 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
92
92
|
readonly inputSchema: {
|
|
93
93
|
readonly type: "object";
|
|
94
94
|
readonly properties: {
|
|
95
|
-
readonly
|
|
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: {
|
|
95
|
+
readonly lang: {
|
|
157
96
|
readonly type: "string";
|
|
158
|
-
readonly
|
|
159
|
-
readonly description:
|
|
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";
|
|
97
|
+
readonly enum: readonly ["zh", "en"];
|
|
98
|
+
readonly description: "The language the page opens in: zh for a guest writing Chinese, en otherwise. The page has a switch.";
|
|
166
99
|
};
|
|
167
|
-
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
} | {
|
|
103
|
+
readonly name: `card_${string}member`;
|
|
104
|
+
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.`;
|
|
105
|
+
readonly annotations: {
|
|
106
|
+
readonly title: string;
|
|
107
|
+
readonly readOnlyHint: false;
|
|
108
|
+
readonly destructiveHint: false;
|
|
109
|
+
readonly idempotentHint: true;
|
|
110
|
+
readonly openWorldHint: boolean;
|
|
111
|
+
};
|
|
112
|
+
readonly inputSchema: {
|
|
113
|
+
readonly type: "object";
|
|
114
|
+
readonly properties: {
|
|
115
|
+
readonly action: {
|
|
168
116
|
readonly type: "string";
|
|
169
|
-
readonly
|
|
117
|
+
readonly enum: readonly ["sign_in", "view"];
|
|
118
|
+
readonly description: "sign_in: a new one-time sign-in page; view: whether this conversation is signed in yet";
|
|
170
119
|
};
|
|
171
|
-
readonly
|
|
120
|
+
readonly lang: {
|
|
172
121
|
readonly type: "string";
|
|
173
|
-
readonly
|
|
122
|
+
readonly enum: readonly ["zh", "en"];
|
|
123
|
+
readonly description: "The language the page opens in";
|
|
174
124
|
};
|
|
175
125
|
};
|
|
126
|
+
readonly required: readonly ["action"];
|
|
176
127
|
};
|
|
177
128
|
} | {
|
|
178
|
-
readonly name: `
|
|
179
|
-
readonly description:
|
|
129
|
+
readonly name: `sign_out_${string}member`;
|
|
130
|
+
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.";
|
|
131
|
+
readonly annotations: {
|
|
132
|
+
readonly title: string;
|
|
133
|
+
readonly readOnlyHint: false;
|
|
134
|
+
readonly destructiveHint: false;
|
|
135
|
+
readonly idempotentHint: true;
|
|
136
|
+
readonly openWorldHint: boolean;
|
|
137
|
+
};
|
|
138
|
+
readonly inputSchema: {
|
|
139
|
+
readonly type: "object";
|
|
140
|
+
readonly properties: {};
|
|
141
|
+
};
|
|
142
|
+
} | {
|
|
143
|
+
readonly name: `forget_${string}preferences`;
|
|
144
|
+
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.`;
|
|
145
|
+
readonly annotations: {
|
|
146
|
+
readonly title: "Forget my saved preferences";
|
|
147
|
+
readonly readOnlyHint: false;
|
|
148
|
+
readonly destructiveHint: true;
|
|
149
|
+
readonly idempotentHint: true;
|
|
150
|
+
readonly openWorldHint: boolean;
|
|
151
|
+
};
|
|
152
|
+
readonly inputSchema: {
|
|
153
|
+
readonly type: "object";
|
|
154
|
+
readonly properties: {};
|
|
155
|
+
};
|
|
156
|
+
} | {
|
|
157
|
+
readonly name: `list_${string}booking_addons`;
|
|
158
|
+
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.";
|
|
180
159
|
readonly annotations: {
|
|
181
160
|
readonly title: string;
|
|
182
161
|
readonly readOnlyHint: true;
|
|
@@ -187,64 +166,69 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
187
166
|
readonly inputSchema: {
|
|
188
167
|
readonly type: "object";
|
|
189
168
|
readonly properties: {
|
|
190
|
-
readonly
|
|
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: {
|
|
169
|
+
readonly booking: {
|
|
197
170
|
readonly type: "string";
|
|
198
|
-
readonly
|
|
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";
|
|
171
|
+
readonly description: "The confirmation code or order id, as the booking answer gave it";
|
|
204
172
|
};
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
173
|
+
};
|
|
174
|
+
readonly required: readonly ["booking"];
|
|
175
|
+
};
|
|
176
|
+
} | {
|
|
177
|
+
readonly name: `add_${string}booking_addon`;
|
|
178
|
+
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.";
|
|
179
|
+
readonly annotations: {
|
|
180
|
+
readonly title: string;
|
|
181
|
+
readonly readOnlyHint: false;
|
|
182
|
+
readonly destructiveHint: false;
|
|
183
|
+
readonly idempotentHint: false;
|
|
184
|
+
readonly openWorldHint: boolean;
|
|
185
|
+
};
|
|
186
|
+
readonly inputSchema: {
|
|
187
|
+
readonly type: "object";
|
|
188
|
+
readonly properties: {
|
|
189
|
+
readonly booking: {
|
|
190
|
+
readonly type: "string";
|
|
191
|
+
readonly description: "The confirmation code or order id, as the booking answer gave it";
|
|
208
192
|
};
|
|
209
|
-
readonly
|
|
210
|
-
readonly type: "
|
|
211
|
-
readonly description: "
|
|
193
|
+
readonly addon: {
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
readonly description: "The add-on id, as the add-on list gave it";
|
|
212
196
|
};
|
|
213
|
-
readonly
|
|
197
|
+
readonly direction: {
|
|
214
198
|
readonly type: "string";
|
|
215
|
-
readonly enum: readonly ["
|
|
216
|
-
readonly description: "
|
|
199
|
+
readonly enum: readonly ["arrival", "departure", "round_trip"];
|
|
200
|
+
readonly description: "For a transfer: to the hotel, from it, or both";
|
|
217
201
|
};
|
|
218
|
-
readonly
|
|
219
|
-
readonly type: "
|
|
220
|
-
readonly description: "
|
|
202
|
+
readonly flightNo: {
|
|
203
|
+
readonly type: "string";
|
|
204
|
+
readonly description: "For a transfer: the flight number, e.g. MU5101";
|
|
221
205
|
};
|
|
222
|
-
readonly
|
|
206
|
+
readonly pickupTime: {
|
|
223
207
|
readonly type: "string";
|
|
224
|
-
readonly
|
|
225
|
-
readonly description: `${string}, as YYYY-MM-DD`;
|
|
208
|
+
readonly description: "For a transfer: the pick-up time, HH:MM";
|
|
226
209
|
};
|
|
227
|
-
readonly
|
|
210
|
+
readonly date: {
|
|
228
211
|
readonly type: "string";
|
|
229
|
-
readonly
|
|
230
|
-
readonly description: `${string}, as YYYY-MM-DD`;
|
|
212
|
+
readonly description: "The date it is for, YYYY-MM-DD";
|
|
231
213
|
};
|
|
232
|
-
readonly
|
|
214
|
+
readonly quantity: {
|
|
233
215
|
readonly type: "integer";
|
|
234
216
|
readonly minimum: 1;
|
|
235
|
-
readonly maximum:
|
|
236
|
-
readonly description: "
|
|
217
|
+
readonly maximum: 10;
|
|
218
|
+
readonly description: "How many, 1 to 10, for an add-on that is bought by the piece. Default 1";
|
|
237
219
|
};
|
|
238
|
-
readonly
|
|
239
|
-
readonly type: "
|
|
240
|
-
readonly
|
|
220
|
+
readonly partySize: {
|
|
221
|
+
readonly type: "integer";
|
|
222
|
+
readonly minimum: 1;
|
|
223
|
+
readonly maximum: 10;
|
|
224
|
+
readonly description: "For a transfer: how many passengers, 1 to 10. Default 1";
|
|
241
225
|
};
|
|
242
226
|
};
|
|
243
|
-
readonly required: readonly ["
|
|
227
|
+
readonly required: readonly ["booking", "addon"];
|
|
244
228
|
};
|
|
245
229
|
} | {
|
|
246
|
-
readonly name:
|
|
247
|
-
readonly description:
|
|
230
|
+
readonly name: string;
|
|
231
|
+
readonly 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.";
|
|
248
232
|
readonly annotations: {
|
|
249
233
|
readonly title: string;
|
|
250
234
|
readonly readOnlyHint: true;
|
|
@@ -255,37 +239,28 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
255
239
|
readonly inputSchema: {
|
|
256
240
|
readonly type: "object";
|
|
257
241
|
readonly properties: {
|
|
258
|
-
readonly
|
|
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: {
|
|
242
|
+
readonly query: {
|
|
265
243
|
readonly type: "string";
|
|
266
|
-
readonly
|
|
267
|
-
readonly description: `${string}, as YYYY-MM-DD`;
|
|
244
|
+
readonly description: "Words in the item name";
|
|
268
245
|
};
|
|
269
|
-
readonly
|
|
246
|
+
readonly category: {
|
|
270
247
|
readonly type: "string";
|
|
271
|
-
readonly
|
|
272
|
-
readonly description: `${string}, as YYYY-MM-DD`;
|
|
248
|
+
readonly description: "One of the shop's categories";
|
|
273
249
|
};
|
|
274
|
-
readonly
|
|
275
|
-
readonly type: "
|
|
276
|
-
readonly minimum:
|
|
277
|
-
readonly
|
|
278
|
-
readonly description: "People in the room. Default 2";
|
|
250
|
+
readonly maxPrice: {
|
|
251
|
+
readonly type: "number";
|
|
252
|
+
readonly minimum: 0;
|
|
253
|
+
readonly description: "The highest price, in the shop's currency (US dollars)";
|
|
279
254
|
};
|
|
280
|
-
readonly
|
|
255
|
+
readonly item: {
|
|
281
256
|
readonly type: "string";
|
|
282
|
-
readonly description:
|
|
257
|
+
readonly description: "An item id, as this tool listed it, for that one item in detail";
|
|
283
258
|
};
|
|
284
259
|
};
|
|
285
260
|
};
|
|
286
261
|
} | {
|
|
287
|
-
readonly name:
|
|
288
|
-
readonly description:
|
|
262
|
+
readonly name: string;
|
|
263
|
+
readonly description: "The value-added service orders (增值服务订单) of the Otaless account signed in here: goods bought from the Otaless shop to go with a stay - not hotel bookings. 增值服务订单, 商城订单, shop orders and add-on orders are all the same thing. Each order comes with its item, total and currency, status, order id, the hotel booking it was bought with where that is known, and when it was ordered and paid where that is known (in UTC); cancelled ones are listed as the shop has them. It only reads: nothing is ordered, paid or cancelled. Nothing is listed when no account is signed in.";
|
|
289
264
|
readonly annotations: {
|
|
290
265
|
readonly title: string;
|
|
291
266
|
readonly readOnlyHint: true;
|
|
@@ -293,126 +268,189 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
293
268
|
readonly idempotentHint: true;
|
|
294
269
|
readonly openWorldHint: boolean;
|
|
295
270
|
};
|
|
271
|
+
readonly inputSchema: {
|
|
272
|
+
readonly type: "object";
|
|
273
|
+
readonly properties: {};
|
|
274
|
+
};
|
|
275
|
+
} | {
|
|
276
|
+
readonly name: string;
|
|
277
|
+
readonly 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.";
|
|
278
|
+
readonly annotations: {
|
|
279
|
+
readonly title: string;
|
|
280
|
+
readonly readOnlyHint: false;
|
|
281
|
+
readonly destructiveHint: false;
|
|
282
|
+
readonly idempotentHint: false;
|
|
283
|
+
readonly openWorldHint: boolean;
|
|
284
|
+
};
|
|
296
285
|
readonly inputSchema: {
|
|
297
286
|
readonly type: "object";
|
|
298
287
|
readonly properties: {
|
|
299
|
-
readonly
|
|
288
|
+
readonly item: {
|
|
300
289
|
readonly type: "string";
|
|
301
|
-
readonly description:
|
|
290
|
+
readonly description: "The item id, as the shop listing gave it";
|
|
302
291
|
};
|
|
303
|
-
readonly
|
|
292
|
+
readonly option: {
|
|
304
293
|
readonly type: "string";
|
|
305
|
-
readonly description: "
|
|
294
|
+
readonly description: "One of the item's options, exactly as listed - for an item that has options";
|
|
306
295
|
};
|
|
307
|
-
readonly
|
|
308
|
-
readonly type: "
|
|
309
|
-
readonly
|
|
310
|
-
readonly
|
|
296
|
+
readonly quantity: {
|
|
297
|
+
readonly type: "integer";
|
|
298
|
+
readonly minimum: 1;
|
|
299
|
+
readonly maximum: 10;
|
|
300
|
+
readonly description: "How many, 1 to 10";
|
|
311
301
|
};
|
|
312
|
-
readonly
|
|
302
|
+
readonly booking: {
|
|
313
303
|
readonly type: "string";
|
|
314
|
-
readonly
|
|
315
|
-
readonly description: `${string}, as YYYY-MM-DD`;
|
|
304
|
+
readonly description: "The confirmation code of the guest's own hotel booking this goes with";
|
|
316
305
|
};
|
|
317
|
-
readonly
|
|
318
|
-
readonly type: "
|
|
319
|
-
readonly
|
|
320
|
-
readonly
|
|
321
|
-
readonly description: "People in the room. Default 2";
|
|
306
|
+
readonly unitPrice: {
|
|
307
|
+
readonly type: "number";
|
|
308
|
+
readonly exclusiveMinimum: 0;
|
|
309
|
+
readonly description: "The price of one, as the guest was shown it";
|
|
322
310
|
};
|
|
323
|
-
readonly
|
|
311
|
+
readonly currency: {
|
|
324
312
|
readonly type: "string";
|
|
325
|
-
readonly description:
|
|
313
|
+
readonly description: "Its currency code, as the guest was shown it";
|
|
326
314
|
};
|
|
327
315
|
};
|
|
316
|
+
readonly required: readonly ["item", "quantity", "booking", "unitPrice", "currency"];
|
|
328
317
|
};
|
|
329
318
|
} | {
|
|
330
|
-
readonly name:
|
|
331
|
-
readonly description:
|
|
319
|
+
readonly name: string;
|
|
320
|
+
readonly 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.";
|
|
332
321
|
readonly annotations: {
|
|
333
322
|
readonly title: string;
|
|
334
323
|
readonly readOnlyHint: false;
|
|
335
324
|
readonly destructiveHint: true;
|
|
336
|
-
readonly idempotentHint:
|
|
325
|
+
readonly idempotentHint: false;
|
|
337
326
|
readonly openWorldHint: boolean;
|
|
338
327
|
};
|
|
339
328
|
readonly inputSchema: {
|
|
340
329
|
readonly type: "object";
|
|
341
330
|
readonly properties: {
|
|
342
|
-
readonly
|
|
343
|
-
readonly type: "
|
|
344
|
-
readonly
|
|
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";
|
|
331
|
+
readonly action: {
|
|
332
|
+
readonly type: "string";
|
|
333
|
+
readonly enum: readonly ["view", "book_hotel_addon", "buy_shop_item", "shop_status"];
|
|
347
334
|
};
|
|
348
|
-
readonly
|
|
349
|
-
readonly type: "
|
|
350
|
-
readonly
|
|
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";
|
|
335
|
+
readonly booking: {
|
|
336
|
+
readonly type: "string";
|
|
337
|
+
readonly description: "The confirmation code of the guest's own booking";
|
|
353
338
|
};
|
|
354
|
-
readonly
|
|
339
|
+
readonly catalogId: {
|
|
355
340
|
readonly type: "string";
|
|
356
|
-
readonly
|
|
357
|
-
readonly description: `${string}, as YYYY-MM-DD`;
|
|
341
|
+
readonly description: "book_hotel_addon: the add-on id";
|
|
358
342
|
};
|
|
359
|
-
readonly
|
|
343
|
+
readonly direction: {
|
|
360
344
|
readonly type: "string";
|
|
361
|
-
readonly
|
|
362
|
-
readonly description: `${string}, as YYYY-MM-DD`;
|
|
345
|
+
readonly enum: readonly ["arrival", "departure", "round_trip"];
|
|
363
346
|
};
|
|
364
|
-
readonly
|
|
347
|
+
readonly flightNo: {
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
};
|
|
350
|
+
readonly pickupTime: {
|
|
351
|
+
readonly type: "string";
|
|
352
|
+
readonly description: "HH:MM";
|
|
353
|
+
};
|
|
354
|
+
readonly date: {
|
|
355
|
+
readonly type: "string";
|
|
356
|
+
readonly description: "YYYY-MM-DD";
|
|
357
|
+
};
|
|
358
|
+
readonly quantity: {
|
|
365
359
|
readonly type: "integer";
|
|
366
360
|
readonly minimum: 1;
|
|
367
|
-
readonly maximum:
|
|
368
|
-
readonly description: "People in the room. Default 2";
|
|
361
|
+
readonly maximum: 10;
|
|
369
362
|
};
|
|
370
|
-
readonly
|
|
363
|
+
readonly partySize: {
|
|
364
|
+
readonly type: "integer";
|
|
365
|
+
readonly minimum: 1;
|
|
366
|
+
readonly maximum: 10;
|
|
367
|
+
};
|
|
368
|
+
readonly shownTotal: {
|
|
371
369
|
readonly type: "string";
|
|
372
|
-
readonly description:
|
|
370
|
+
readonly description: "book_hotel_addon: the total the confirm screen showed, 2 decimals";
|
|
373
371
|
};
|
|
374
|
-
readonly
|
|
372
|
+
readonly currency: {
|
|
375
373
|
readonly type: "string";
|
|
376
|
-
readonly description: "The
|
|
374
|
+
readonly description: "The currency the screen showed";
|
|
377
375
|
};
|
|
378
|
-
readonly
|
|
376
|
+
readonly item: {
|
|
379
377
|
readonly type: "string";
|
|
380
|
-
readonly description: "
|
|
378
|
+
readonly description: "buy_shop_item: the shop item id";
|
|
379
|
+
};
|
|
380
|
+
readonly order: {
|
|
381
|
+
readonly type: "string";
|
|
382
|
+
readonly description: "shop_status: the shop order id buy_shop_item answered with";
|
|
383
|
+
};
|
|
384
|
+
readonly option: {
|
|
385
|
+
readonly type: "string";
|
|
386
|
+
readonly description: "buy_shop_item: the option, as listed";
|
|
387
|
+
};
|
|
388
|
+
readonly shownUnit: {
|
|
389
|
+
readonly type: "string";
|
|
390
|
+
readonly description: "buy_shop_item: the price of one the screen showed, 2 decimals";
|
|
391
|
+
};
|
|
392
|
+
readonly press: {
|
|
393
|
+
readonly type: "string";
|
|
394
|
+
readonly description: "Made once per confirm screen and sent again unchanged on a retry of the same screen";
|
|
381
395
|
};
|
|
382
396
|
};
|
|
383
|
-
readonly required: readonly ["
|
|
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: {};
|
|
397
|
+
readonly required: readonly ["action", "booking"];
|
|
398
398
|
};
|
|
399
399
|
} | {
|
|
400
|
-
readonly name: `
|
|
401
|
-
readonly description:
|
|
400
|
+
readonly name: `request_${string}booking`;
|
|
401
|
+
readonly description: string;
|
|
402
402
|
readonly annotations: {
|
|
403
403
|
readonly title: string;
|
|
404
404
|
readonly readOnlyHint: false;
|
|
405
405
|
readonly destructiveHint: true;
|
|
406
|
-
readonly idempotentHint:
|
|
406
|
+
readonly idempotentHint: false;
|
|
407
407
|
readonly openWorldHint: boolean;
|
|
408
408
|
};
|
|
409
409
|
readonly inputSchema: {
|
|
410
410
|
readonly type: "object";
|
|
411
|
-
readonly properties: {
|
|
411
|
+
readonly properties: {
|
|
412
|
+
readonly group?: {
|
|
413
|
+
type: string;
|
|
414
|
+
description: string;
|
|
415
|
+
} | undefined;
|
|
416
|
+
readonly name: {
|
|
417
|
+
readonly type: "string";
|
|
418
|
+
readonly description: "The guest's full name, as it should appear on the booking";
|
|
419
|
+
};
|
|
420
|
+
readonly email: {
|
|
421
|
+
readonly type: "string";
|
|
422
|
+
readonly description: "The email the confirmation goes to";
|
|
423
|
+
};
|
|
424
|
+
readonly phone: {
|
|
425
|
+
readonly type: "string";
|
|
426
|
+
readonly description: "Optional";
|
|
427
|
+
};
|
|
428
|
+
readonly requests: {
|
|
429
|
+
readonly type: "array";
|
|
430
|
+
readonly items: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
readonly enum: import("../types.js").RoomRequestKind[];
|
|
433
|
+
};
|
|
434
|
+
readonly description: "Preferences the desk tries to meet on the day. None of them is held; the answer says so";
|
|
435
|
+
};
|
|
436
|
+
readonly arrivingAt: {
|
|
437
|
+
readonly type: "string";
|
|
438
|
+
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";
|
|
439
|
+
};
|
|
440
|
+
readonly notes: {
|
|
441
|
+
readonly type: "string";
|
|
442
|
+
readonly description: "Anything else for the desk, in the guest's own words, up to 200 characters";
|
|
443
|
+
};
|
|
444
|
+
readonly rememberRequests: {
|
|
445
|
+
readonly type: "boolean";
|
|
446
|
+
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";
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
readonly required: readonly ["name", "email"];
|
|
412
450
|
};
|
|
413
451
|
} | {
|
|
414
|
-
readonly name: `
|
|
415
|
-
readonly description:
|
|
452
|
+
readonly name: `book_picked_${string}room`;
|
|
453
|
+
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.";
|
|
416
454
|
readonly annotations: {
|
|
417
455
|
readonly title: string;
|
|
418
456
|
readonly readOnlyHint: false;
|
|
@@ -423,10 +461,40 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
423
461
|
readonly inputSchema: {
|
|
424
462
|
readonly type: "object";
|
|
425
463
|
readonly properties: {
|
|
426
|
-
readonly
|
|
427
|
-
type: string;
|
|
428
|
-
description:
|
|
429
|
-
}
|
|
464
|
+
readonly startTime: {
|
|
465
|
+
readonly type: "string";
|
|
466
|
+
readonly description: "For a room by the hour: the start the form shows, HH:MM";
|
|
467
|
+
};
|
|
468
|
+
readonly checkIn: {
|
|
469
|
+
readonly type: "string";
|
|
470
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
471
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
472
|
+
};
|
|
473
|
+
readonly checkOut: {
|
|
474
|
+
readonly type: "string";
|
|
475
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
476
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
477
|
+
};
|
|
478
|
+
readonly guests: {
|
|
479
|
+
readonly type: "integer";
|
|
480
|
+
readonly minimum: 1;
|
|
481
|
+
readonly maximum: 8;
|
|
482
|
+
readonly description: "People in the room. Default 2";
|
|
483
|
+
};
|
|
484
|
+
readonly hotel: {
|
|
485
|
+
readonly type: "string";
|
|
486
|
+
readonly description: `The ${string} id on the form`;
|
|
487
|
+
};
|
|
488
|
+
readonly room: {
|
|
489
|
+
readonly type: "string";
|
|
490
|
+
readonly description: "The room type id on the form";
|
|
491
|
+
};
|
|
492
|
+
readonly rooms: {
|
|
493
|
+
readonly type: "integer";
|
|
494
|
+
readonly minimum: 1;
|
|
495
|
+
readonly maximum: 5;
|
|
496
|
+
readonly description: "How many of that room type the form shows";
|
|
497
|
+
};
|
|
430
498
|
readonly name: {
|
|
431
499
|
readonly type: "string";
|
|
432
500
|
readonly description: "The guest's full name, as it should appear on the booking";
|
|
@@ -462,6 +530,50 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
462
530
|
};
|
|
463
531
|
readonly required: readonly ["name", "email"];
|
|
464
532
|
};
|
|
533
|
+
} | {
|
|
534
|
+
readonly name: `card_${string}terms`;
|
|
535
|
+
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.";
|
|
536
|
+
readonly annotations: {
|
|
537
|
+
readonly title: string;
|
|
538
|
+
readonly readOnlyHint: false;
|
|
539
|
+
readonly destructiveHint: true;
|
|
540
|
+
readonly idempotentHint: false;
|
|
541
|
+
readonly openWorldHint: boolean;
|
|
542
|
+
};
|
|
543
|
+
readonly inputSchema: {
|
|
544
|
+
readonly type: "object";
|
|
545
|
+
readonly properties: {
|
|
546
|
+
readonly ref: {
|
|
547
|
+
readonly type: "string";
|
|
548
|
+
readonly description: "The terms the card is showing, by the reference the booking answer gave";
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
readonly required: readonly ["ref"];
|
|
552
|
+
};
|
|
553
|
+
} | {
|
|
554
|
+
readonly name: `pay_${string}booking_with_unionpay`;
|
|
555
|
+
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.`;
|
|
556
|
+
readonly annotations: {
|
|
557
|
+
readonly title: "Pay with UnionPay";
|
|
558
|
+
readonly readOnlyHint: false;
|
|
559
|
+
readonly destructiveHint: false;
|
|
560
|
+
readonly idempotentHint: true;
|
|
561
|
+
readonly openWorldHint: true;
|
|
562
|
+
};
|
|
563
|
+
readonly inputSchema: {
|
|
564
|
+
readonly type: "object";
|
|
565
|
+
readonly properties: {
|
|
566
|
+
readonly booking: {
|
|
567
|
+
readonly type: "string";
|
|
568
|
+
readonly description: "The confirmation code of the stay waiting for its payment";
|
|
569
|
+
};
|
|
570
|
+
readonly email: {
|
|
571
|
+
readonly type: "string";
|
|
572
|
+
readonly description: "The email the stay was booked with";
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
readonly required: readonly ["booking", "email"];
|
|
576
|
+
};
|
|
465
577
|
} | {
|
|
466
578
|
readonly name: `list_my_${string}bookings`;
|
|
467
579
|
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.";
|
|
@@ -654,82 +766,37 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
654
766
|
readonly required: readonly ["booking"];
|
|
655
767
|
};
|
|
656
768
|
} | {
|
|
657
|
-
readonly name: `
|
|
658
|
-
readonly description:
|
|
769
|
+
readonly name: `refund_${string}booking`;
|
|
770
|
+
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.";
|
|
659
771
|
readonly annotations: {
|
|
660
772
|
readonly title: string;
|
|
661
|
-
readonly readOnlyHint:
|
|
662
|
-
readonly destructiveHint:
|
|
773
|
+
readonly readOnlyHint: false;
|
|
774
|
+
readonly destructiveHint: true;
|
|
663
775
|
readonly idempotentHint: true;
|
|
664
776
|
readonly openWorldHint: boolean;
|
|
665
777
|
};
|
|
666
778
|
readonly inputSchema: {
|
|
667
779
|
readonly type: "object";
|
|
668
780
|
readonly properties: {
|
|
669
|
-
readonly
|
|
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: {
|
|
781
|
+
readonly booking: {
|
|
675
782
|
readonly type: "string";
|
|
676
|
-
readonly
|
|
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
|
-
};
|
|
783
|
+
readonly description: "The confirmation code or order id, as the booking answer gave it";
|
|
718
784
|
};
|
|
719
|
-
readonly
|
|
785
|
+
readonly reason: {
|
|
720
786
|
readonly type: "string";
|
|
721
|
-
readonly
|
|
787
|
+
readonly maxLength: 200;
|
|
788
|
+
readonly description: "Optional, the guest's reason in their own words, up to 200 characters";
|
|
722
789
|
};
|
|
723
|
-
readonly
|
|
724
|
-
readonly type: "
|
|
725
|
-
readonly description: "
|
|
790
|
+
readonly confirmed: {
|
|
791
|
+
readonly type: "boolean";
|
|
792
|
+
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.";
|
|
726
793
|
};
|
|
727
794
|
};
|
|
728
|
-
readonly required: readonly ["
|
|
795
|
+
readonly required: readonly ["booking"];
|
|
729
796
|
};
|
|
730
797
|
} | {
|
|
731
|
-
readonly name: `
|
|
732
|
-
readonly description:
|
|
798
|
+
readonly name: `list_${string}${string}`;
|
|
799
|
+
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}`;
|
|
733
800
|
readonly annotations: {
|
|
734
801
|
readonly title: string;
|
|
735
802
|
readonly readOnlyHint: true;
|
|
@@ -740,6 +807,62 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
740
807
|
readonly inputSchema: {
|
|
741
808
|
readonly type: "object";
|
|
742
809
|
readonly properties: {
|
|
810
|
+
readonly facilities: {
|
|
811
|
+
readonly type: "array";
|
|
812
|
+
readonly items: {
|
|
813
|
+
readonly type: "string";
|
|
814
|
+
readonly enum: string[];
|
|
815
|
+
};
|
|
816
|
+
readonly description: `What every ${string} listed must have`;
|
|
817
|
+
};
|
|
818
|
+
readonly freeCancellation: {
|
|
819
|
+
readonly type: "boolean";
|
|
820
|
+
readonly description: `Only ${string} with a room that can be cancelled free - and, with dates, that room is the one priced`;
|
|
821
|
+
};
|
|
822
|
+
readonly breakfast: {
|
|
823
|
+
readonly type: "boolean";
|
|
824
|
+
readonly description: `Only ${string} with a room that includes breakfast - and, with dates, that room is the one priced`;
|
|
825
|
+
};
|
|
826
|
+
readonly bed: {
|
|
827
|
+
readonly type: "string";
|
|
828
|
+
readonly enum: readonly ["king", "twin"];
|
|
829
|
+
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`;
|
|
830
|
+
};
|
|
831
|
+
readonly all: {
|
|
832
|
+
readonly type: "boolean";
|
|
833
|
+
readonly description: `Unnarrowed, or narrowed to a country of many cities, the answer is the places to choose from; true lists the ${string} themselves`;
|
|
834
|
+
};
|
|
835
|
+
readonly group?: {
|
|
836
|
+
type: string;
|
|
837
|
+
description: string;
|
|
838
|
+
} | undefined;
|
|
839
|
+
readonly rooms: {
|
|
840
|
+
readonly type: "integer";
|
|
841
|
+
readonly minimum: 1;
|
|
842
|
+
readonly maximum: 5;
|
|
843
|
+
readonly description: "With dates: how many rooms of one type the party needs, 1 to 5. Default 1";
|
|
844
|
+
};
|
|
845
|
+
readonly sort: {
|
|
846
|
+
readonly type: "string";
|
|
847
|
+
readonly enum: readonly ["group", "price-low", "price-high", "rating"];
|
|
848
|
+
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`;
|
|
849
|
+
};
|
|
850
|
+
readonly maxNightly: {
|
|
851
|
+
readonly type: "number";
|
|
852
|
+
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";
|
|
853
|
+
};
|
|
854
|
+
readonly limit: {
|
|
855
|
+
readonly type: "number";
|
|
856
|
+
readonly description: "How many to return, 1 to 50. Default 12";
|
|
857
|
+
};
|
|
858
|
+
readonly offset: {
|
|
859
|
+
readonly type: "number";
|
|
860
|
+
readonly description: "How many of the matches to skip: the answer says where the next page starts";
|
|
861
|
+
};
|
|
862
|
+
readonly brand: {
|
|
863
|
+
readonly type: "string";
|
|
864
|
+
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";
|
|
865
|
+
};
|
|
743
866
|
readonly checkIn: {
|
|
744
867
|
readonly type: "string";
|
|
745
868
|
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
@@ -756,93 +879,22 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
756
879
|
readonly maximum: 8;
|
|
757
880
|
readonly description: "People in the room. Default 2";
|
|
758
881
|
};
|
|
759
|
-
readonly
|
|
882
|
+
readonly query: {
|
|
760
883
|
readonly type: "string";
|
|
761
|
-
readonly description: "
|
|
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
|
-
};
|
|
884
|
+
readonly description: "Free text over the name, city, area, description and amenities - the guest's own words";
|
|
816
885
|
};
|
|
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: {
|
|
886
|
+
readonly city: {
|
|
834
887
|
readonly type: "string";
|
|
835
|
-
readonly
|
|
836
|
-
readonly description: "The language the page opens in: zh for a guest writing Chinese, en otherwise. The page has a switch.";
|
|
888
|
+
readonly description: `One city or one country${string}`;
|
|
837
889
|
};
|
|
838
890
|
};
|
|
839
891
|
};
|
|
840
892
|
} | {
|
|
841
|
-
readonly name: `
|
|
842
|
-
readonly description: `
|
|
893
|
+
readonly name: `get_${string}${string}`;
|
|
894
|
+
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}`;
|
|
843
895
|
readonly annotations: {
|
|
844
896
|
readonly title: string;
|
|
845
|
-
readonly readOnlyHint:
|
|
897
|
+
readonly readOnlyHint: true;
|
|
846
898
|
readonly destructiveHint: false;
|
|
847
899
|
readonly idempotentHint: true;
|
|
848
900
|
readonly openWorldHint: boolean;
|
|
@@ -850,101 +902,67 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
850
902
|
readonly inputSchema: {
|
|
851
903
|
readonly type: "object";
|
|
852
904
|
readonly properties: {
|
|
853
|
-
readonly
|
|
854
|
-
readonly type: "
|
|
855
|
-
readonly
|
|
856
|
-
readonly
|
|
905
|
+
readonly rooms: {
|
|
906
|
+
readonly type: "integer";
|
|
907
|
+
readonly minimum: 1;
|
|
908
|
+
readonly maximum: 5;
|
|
909
|
+
readonly description: "How many rooms of one type, 1 to 5. Default 1";
|
|
857
910
|
};
|
|
858
|
-
readonly
|
|
911
|
+
readonly bed: {
|
|
859
912
|
readonly type: "string";
|
|
860
|
-
readonly enum: readonly ["
|
|
861
|
-
readonly description: "
|
|
913
|
+
readonly enum: readonly ["king", "twin"];
|
|
914
|
+
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";
|
|
862
915
|
};
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
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: {
|
|
916
|
+
readonly breakfast: {
|
|
917
|
+
readonly type: "boolean";
|
|
918
|
+
readonly description: "With dates: only rooms whose rate includes breakfast";
|
|
919
|
+
};
|
|
920
|
+
readonly freeCancellation: {
|
|
921
|
+
readonly type: "boolean";
|
|
922
|
+
readonly description: "With dates: only rooms that can be cancelled free";
|
|
923
|
+
};
|
|
924
|
+
readonly window: {
|
|
925
|
+
readonly type: "boolean";
|
|
926
|
+
readonly description: "With dates: only rooms with a window (not a partial or an inner one)";
|
|
927
|
+
};
|
|
928
|
+
readonly payment: {
|
|
908
929
|
readonly type: "string";
|
|
909
|
-
readonly
|
|
930
|
+
readonly enum: readonly ["at-hotel", "online"];
|
|
931
|
+
readonly description: "With dates: only rooms paid at the hotel (`at-hotel`) or in advance online (`online`)";
|
|
910
932
|
};
|
|
911
|
-
readonly
|
|
933
|
+
readonly family: {
|
|
934
|
+
readonly type: "boolean";
|
|
935
|
+
readonly description: "With dates: only rooms that sleep 3 or more";
|
|
936
|
+
};
|
|
937
|
+
readonly checkIn: {
|
|
912
938
|
readonly type: "string";
|
|
913
|
-
readonly
|
|
939
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
940
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
914
941
|
};
|
|
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: {
|
|
942
|
+
readonly checkOut: {
|
|
932
943
|
readonly type: "string";
|
|
933
|
-
readonly
|
|
944
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
945
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
934
946
|
};
|
|
935
|
-
readonly
|
|
947
|
+
readonly guests: {
|
|
948
|
+
readonly type: "integer";
|
|
949
|
+
readonly minimum: 1;
|
|
950
|
+
readonly maximum: 8;
|
|
951
|
+
readonly description: "People in the room. Default 2";
|
|
952
|
+
};
|
|
953
|
+
readonly hotel: {
|
|
936
954
|
readonly type: "string";
|
|
937
|
-
readonly description:
|
|
955
|
+
readonly description: `The ${string}'s name or id${string}`;
|
|
938
956
|
};
|
|
939
957
|
};
|
|
940
|
-
readonly required: readonly ["
|
|
958
|
+
readonly required: readonly ["hotel"];
|
|
941
959
|
};
|
|
942
960
|
} | {
|
|
943
|
-
readonly name: `
|
|
944
|
-
readonly description:
|
|
961
|
+
readonly name: `look_up_${string}${string}`;
|
|
962
|
+
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.`;
|
|
945
963
|
readonly annotations: {
|
|
946
964
|
readonly title: string;
|
|
947
|
-
readonly readOnlyHint:
|
|
965
|
+
readonly readOnlyHint: true;
|
|
948
966
|
readonly destructiveHint: false;
|
|
949
967
|
readonly idempotentHint: true;
|
|
950
968
|
readonly openWorldHint: boolean;
|
|
@@ -954,9 +972,9 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
954
972
|
readonly properties: {
|
|
955
973
|
readonly rooms: {
|
|
956
974
|
readonly type: "integer";
|
|
957
|
-
readonly minimum:
|
|
975
|
+
readonly minimum: 1;
|
|
958
976
|
readonly maximum: 5;
|
|
959
|
-
readonly description: "How many of
|
|
977
|
+
readonly description: "How many rooms of one type, 1 to 5. Default 1";
|
|
960
978
|
};
|
|
961
979
|
readonly checkIn: {
|
|
962
980
|
readonly type: "string";
|
|
@@ -974,33 +992,32 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
974
992
|
readonly maximum: 8;
|
|
975
993
|
readonly description: "People in the room. Default 2";
|
|
976
994
|
};
|
|
977
|
-
readonly
|
|
978
|
-
readonly type: "string";
|
|
979
|
-
readonly description: `The ${string}'s name or id`;
|
|
980
|
-
};
|
|
981
|
-
readonly room: {
|
|
995
|
+
readonly city: {
|
|
982
996
|
readonly type: "string";
|
|
983
|
-
readonly description:
|
|
997
|
+
readonly description: `A city or a country: its ${string}, up to 6`;
|
|
984
998
|
};
|
|
985
999
|
};
|
|
986
|
-
readonly required: readonly ["hotel", "room"];
|
|
987
1000
|
};
|
|
988
1001
|
} | {
|
|
989
|
-
readonly name: `
|
|
990
|
-
readonly description:
|
|
1002
|
+
readonly name: `list_${string}extras`;
|
|
1003
|
+
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.`;
|
|
991
1004
|
readonly annotations: {
|
|
992
1005
|
readonly title: string;
|
|
993
|
-
readonly readOnlyHint:
|
|
994
|
-
readonly destructiveHint:
|
|
995
|
-
readonly idempotentHint:
|
|
1006
|
+
readonly readOnlyHint: true;
|
|
1007
|
+
readonly destructiveHint: false;
|
|
1008
|
+
readonly idempotentHint: true;
|
|
996
1009
|
readonly openWorldHint: boolean;
|
|
997
1010
|
};
|
|
998
1011
|
readonly inputSchema: {
|
|
999
1012
|
readonly type: "object";
|
|
1000
1013
|
readonly properties: {
|
|
1001
|
-
readonly
|
|
1014
|
+
readonly booking: {
|
|
1002
1015
|
readonly type: "string";
|
|
1003
|
-
readonly description:
|
|
1016
|
+
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`;
|
|
1017
|
+
};
|
|
1018
|
+
readonly email: {
|
|
1019
|
+
readonly type: "string";
|
|
1020
|
+
readonly description: "The email the booking was made with, when it was made elsewhere";
|
|
1004
1021
|
};
|
|
1005
1022
|
readonly checkIn: {
|
|
1006
1023
|
readonly type: "string";
|
|
@@ -1020,404 +1037,331 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
1020
1037
|
};
|
|
1021
1038
|
readonly hotel: {
|
|
1022
1039
|
readonly type: "string";
|
|
1023
|
-
readonly description: `The ${string}
|
|
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";
|
|
1040
|
+
readonly description: `The ${string}'s name or id`;
|
|
1034
1041
|
};
|
|
1035
|
-
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
} | {
|
|
1045
|
+
readonly name: `compare_${string}${string}`;
|
|
1046
|
+
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.`;
|
|
1047
|
+
readonly annotations: {
|
|
1048
|
+
readonly title: string;
|
|
1049
|
+
readonly readOnlyHint: true;
|
|
1050
|
+
readonly destructiveHint: false;
|
|
1051
|
+
readonly idempotentHint: true;
|
|
1052
|
+
readonly openWorldHint: boolean;
|
|
1053
|
+
};
|
|
1054
|
+
readonly inputSchema: {
|
|
1055
|
+
readonly type: "object";
|
|
1056
|
+
readonly properties: {
|
|
1057
|
+
readonly checkIn: {
|
|
1036
1058
|
readonly type: "string";
|
|
1037
|
-
readonly
|
|
1059
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
1060
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
1038
1061
|
};
|
|
1039
|
-
readonly
|
|
1062
|
+
readonly checkOut: {
|
|
1040
1063
|
readonly type: "string";
|
|
1041
|
-
readonly
|
|
1064
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
1065
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
1042
1066
|
};
|
|
1043
|
-
readonly
|
|
1044
|
-
readonly type: "
|
|
1045
|
-
readonly
|
|
1067
|
+
readonly guests: {
|
|
1068
|
+
readonly type: "integer";
|
|
1069
|
+
readonly minimum: 1;
|
|
1070
|
+
readonly maximum: 8;
|
|
1071
|
+
readonly description: "People in the room. Default 2";
|
|
1046
1072
|
};
|
|
1047
|
-
readonly
|
|
1073
|
+
readonly entries: {
|
|
1048
1074
|
readonly type: "array";
|
|
1075
|
+
readonly minItems: 2;
|
|
1076
|
+
readonly maxItems: 4;
|
|
1077
|
+
readonly description: `The ${string} to set beside each other, in the order they should appear`;
|
|
1049
1078
|
readonly items: {
|
|
1050
|
-
readonly type: "
|
|
1051
|
-
readonly
|
|
1079
|
+
readonly type: "object";
|
|
1080
|
+
readonly properties: {
|
|
1081
|
+
readonly hotel: {
|
|
1082
|
+
readonly type: "string";
|
|
1083
|
+
readonly description: `The ${string}'s name or id`;
|
|
1084
|
+
};
|
|
1085
|
+
readonly bestFor: {
|
|
1086
|
+
readonly type: "string";
|
|
1087
|
+
readonly description: "One line on who this one suits, in your own words";
|
|
1088
|
+
};
|
|
1089
|
+
readonly pros: {
|
|
1090
|
+
readonly type: "array";
|
|
1091
|
+
readonly items: {
|
|
1092
|
+
readonly type: "string";
|
|
1093
|
+
};
|
|
1094
|
+
readonly maxItems: 4;
|
|
1095
|
+
};
|
|
1096
|
+
readonly cons: {
|
|
1097
|
+
readonly type: "array";
|
|
1098
|
+
readonly items: {
|
|
1099
|
+
readonly type: "string";
|
|
1100
|
+
};
|
|
1101
|
+
readonly maxItems: 3;
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
readonly required: readonly ["hotel"];
|
|
1052
1105
|
};
|
|
1053
|
-
readonly description: "Preferences the desk tries to meet on the day. None of them is held; the answer says so";
|
|
1054
1106
|
};
|
|
1055
|
-
readonly
|
|
1107
|
+
readonly recommended: {
|
|
1056
1108
|
readonly type: "string";
|
|
1057
|
-
readonly description:
|
|
1109
|
+
readonly description: `The one ${string} to mark as the pick`;
|
|
1058
1110
|
};
|
|
1059
|
-
readonly
|
|
1111
|
+
readonly title: {
|
|
1060
1112
|
readonly type: "string";
|
|
1061
|
-
readonly description: "
|
|
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";
|
|
1113
|
+
readonly description: "A heading for the plan";
|
|
1066
1114
|
};
|
|
1067
1115
|
};
|
|
1068
|
-
readonly required: readonly ["
|
|
1116
|
+
readonly required: readonly ["entries"];
|
|
1069
1117
|
};
|
|
1070
1118
|
} | {
|
|
1071
|
-
readonly name: `
|
|
1072
|
-
readonly description:
|
|
1119
|
+
readonly name: `show_${string}itinerary`;
|
|
1120
|
+
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.`;
|
|
1073
1121
|
readonly annotations: {
|
|
1074
1122
|
readonly title: string;
|
|
1075
|
-
readonly readOnlyHint:
|
|
1076
|
-
readonly destructiveHint:
|
|
1077
|
-
readonly idempotentHint:
|
|
1123
|
+
readonly readOnlyHint: true;
|
|
1124
|
+
readonly destructiveHint: false;
|
|
1125
|
+
readonly idempotentHint: true;
|
|
1078
1126
|
readonly openWorldHint: boolean;
|
|
1079
1127
|
};
|
|
1080
1128
|
readonly inputSchema: {
|
|
1081
1129
|
readonly type: "object";
|
|
1082
1130
|
readonly properties: {
|
|
1083
|
-
readonly
|
|
1131
|
+
readonly checkIn: {
|
|
1084
1132
|
readonly type: "string";
|
|
1085
|
-
readonly
|
|
1133
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
1134
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
1135
|
+
};
|
|
1136
|
+
readonly checkOut: {
|
|
1137
|
+
readonly type: "string";
|
|
1138
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
1139
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
1140
|
+
};
|
|
1141
|
+
readonly guests: {
|
|
1142
|
+
readonly type: "integer";
|
|
1143
|
+
readonly minimum: 1;
|
|
1144
|
+
readonly maximum: 8;
|
|
1145
|
+
readonly description: "People in the room. Default 2";
|
|
1146
|
+
};
|
|
1147
|
+
readonly title: {
|
|
1148
|
+
readonly type: "string";
|
|
1149
|
+
readonly description: "What to call the trip";
|
|
1150
|
+
};
|
|
1151
|
+
readonly days: {
|
|
1152
|
+
readonly type: "array";
|
|
1153
|
+
readonly minItems: 1;
|
|
1154
|
+
readonly maxItems: 10;
|
|
1155
|
+
readonly items: {
|
|
1156
|
+
readonly type: "object";
|
|
1157
|
+
readonly properties: {
|
|
1158
|
+
readonly label: {
|
|
1159
|
+
readonly type: "string";
|
|
1160
|
+
readonly description: `e.g. "Arrive${string}" - each day's date is printed beside it, so leave the date out`;
|
|
1161
|
+
};
|
|
1162
|
+
readonly note: {
|
|
1163
|
+
readonly type: "string";
|
|
1164
|
+
readonly description: "One or two lines on the day, in your own words";
|
|
1165
|
+
};
|
|
1166
|
+
readonly why: {
|
|
1167
|
+
readonly type: "string";
|
|
1168
|
+
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`;
|
|
1169
|
+
};
|
|
1170
|
+
readonly items: {
|
|
1171
|
+
readonly type: "array";
|
|
1172
|
+
readonly items: {
|
|
1173
|
+
readonly type: "string";
|
|
1174
|
+
};
|
|
1175
|
+
readonly maxItems: 6;
|
|
1176
|
+
readonly description: `${string} and add-ons for that day, by name or id`;
|
|
1177
|
+
};
|
|
1178
|
+
readonly plan: {
|
|
1179
|
+
readonly type: "array";
|
|
1180
|
+
readonly maxItems: 5;
|
|
1181
|
+
readonly description: "The day in order, in your own words: when, and what happens then. Nothing in it is booked or priced";
|
|
1182
|
+
readonly items: {
|
|
1183
|
+
readonly type: "object";
|
|
1184
|
+
readonly properties: {
|
|
1185
|
+
readonly time: {
|
|
1186
|
+
readonly type: "string";
|
|
1187
|
+
readonly description: "When in the day, e.g. \"Afternoon\" or \"19:00\"";
|
|
1188
|
+
};
|
|
1189
|
+
readonly what: {
|
|
1190
|
+
readonly type: "string";
|
|
1191
|
+
readonly description: "What happens then, in a few words";
|
|
1192
|
+
};
|
|
1193
|
+
readonly note: {
|
|
1194
|
+
readonly type: "string";
|
|
1195
|
+
readonly description: "One line more, optional";
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1198
|
+
readonly required: readonly ["what"];
|
|
1199
|
+
};
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
readonly required: readonly ["label"];
|
|
1203
|
+
};
|
|
1086
1204
|
};
|
|
1087
1205
|
};
|
|
1088
|
-
readonly required: readonly ["
|
|
1206
|
+
readonly required: readonly ["title", "days"];
|
|
1089
1207
|
};
|
|
1090
1208
|
} | {
|
|
1091
|
-
readonly name: `
|
|
1092
|
-
readonly description:
|
|
1209
|
+
readonly name: `get_${string}${string}_policies`;
|
|
1210
|
+
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.`;
|
|
1093
1211
|
readonly annotations: {
|
|
1094
1212
|
readonly title: string;
|
|
1095
|
-
readonly readOnlyHint:
|
|
1096
|
-
readonly destructiveHint:
|
|
1213
|
+
readonly readOnlyHint: true;
|
|
1214
|
+
readonly destructiveHint: false;
|
|
1097
1215
|
readonly idempotentHint: true;
|
|
1098
1216
|
readonly openWorldHint: boolean;
|
|
1099
1217
|
};
|
|
1100
1218
|
readonly inputSchema: {
|
|
1101
1219
|
readonly type: "object";
|
|
1102
1220
|
readonly properties: {
|
|
1103
|
-
readonly
|
|
1221
|
+
readonly hotel: {
|
|
1104
1222
|
readonly type: "string";
|
|
1105
|
-
readonly description:
|
|
1223
|
+
readonly description: `The ${string}'s name or id`;
|
|
1106
1224
|
};
|
|
1107
|
-
readonly
|
|
1225
|
+
readonly topic: {
|
|
1108
1226
|
readonly type: "string";
|
|
1109
|
-
readonly
|
|
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.";
|
|
1227
|
+
readonly enum: readonly ["cancellation", "check-in", "children", "pets", "deposit", "accessibility"];
|
|
1115
1228
|
};
|
|
1116
1229
|
};
|
|
1117
|
-
readonly required: readonly ["
|
|
1230
|
+
readonly required: readonly ["hotel"];
|
|
1118
1231
|
};
|
|
1119
1232
|
} | {
|
|
1120
|
-
readonly name: `
|
|
1121
|
-
readonly description:
|
|
1233
|
+
readonly name: `add_to_${string}trip`;
|
|
1234
|
+
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.`;
|
|
1122
1235
|
readonly annotations: {
|
|
1123
1236
|
readonly title: string;
|
|
1124
|
-
readonly readOnlyHint:
|
|
1125
|
-
readonly destructiveHint:
|
|
1237
|
+
readonly readOnlyHint: false;
|
|
1238
|
+
readonly destructiveHint: true;
|
|
1126
1239
|
readonly idempotentHint: true;
|
|
1127
1240
|
readonly openWorldHint: boolean;
|
|
1128
1241
|
};
|
|
1129
1242
|
readonly inputSchema: {
|
|
1130
1243
|
readonly type: "object";
|
|
1131
1244
|
readonly properties: {
|
|
1132
|
-
readonly
|
|
1133
|
-
readonly type: "
|
|
1134
|
-
readonly
|
|
1245
|
+
readonly rooms: {
|
|
1246
|
+
readonly type: "integer";
|
|
1247
|
+
readonly minimum: 0;
|
|
1248
|
+
readonly maximum: 5;
|
|
1249
|
+
readonly description: "How many of that room type in the plan, 1 to 5. Default 1; 0 takes the line out";
|
|
1135
1250
|
};
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
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";
|
|
1251
|
+
readonly quantity: {
|
|
1252
|
+
readonly type: "integer";
|
|
1253
|
+
readonly minimum: 0;
|
|
1254
|
+
readonly maximum: 20;
|
|
1255
|
+
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";
|
|
1155
1256
|
};
|
|
1156
|
-
readonly
|
|
1257
|
+
readonly checkIn: {
|
|
1157
1258
|
readonly type: "string";
|
|
1158
|
-
readonly
|
|
1259
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
1260
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
1159
1261
|
};
|
|
1160
|
-
readonly
|
|
1262
|
+
readonly checkOut: {
|
|
1161
1263
|
readonly type: "string";
|
|
1162
|
-
readonly
|
|
1163
|
-
readonly description:
|
|
1264
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
1265
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
1164
1266
|
};
|
|
1165
|
-
readonly
|
|
1166
|
-
readonly type: "
|
|
1167
|
-
readonly
|
|
1267
|
+
readonly guests: {
|
|
1268
|
+
readonly type: "integer";
|
|
1269
|
+
readonly minimum: 1;
|
|
1270
|
+
readonly maximum: 8;
|
|
1271
|
+
readonly description: "People in the room. Default 2";
|
|
1168
1272
|
};
|
|
1169
|
-
readonly
|
|
1273
|
+
readonly hotel: {
|
|
1170
1274
|
readonly type: "string";
|
|
1171
|
-
readonly description:
|
|
1275
|
+
readonly description: `The ${string}'s name or id`;
|
|
1172
1276
|
};
|
|
1173
|
-
readonly
|
|
1277
|
+
readonly room: {
|
|
1174
1278
|
readonly type: "string";
|
|
1175
|
-
readonly description: "The
|
|
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";
|
|
1279
|
+
readonly description: "The room type id or name, as the hotel returned it";
|
|
1182
1280
|
};
|
|
1183
|
-
readonly
|
|
1184
|
-
readonly type: "
|
|
1185
|
-
readonly
|
|
1186
|
-
readonly maximum: 10;
|
|
1187
|
-
readonly description: "For a transfer: how many passengers, 1 to 10. Default 1";
|
|
1281
|
+
readonly extra: {
|
|
1282
|
+
readonly type: "string";
|
|
1283
|
+
readonly description: "The add-on id or name. A line names either this or `room`";
|
|
1188
1284
|
};
|
|
1189
1285
|
};
|
|
1190
|
-
readonly required: readonly ["
|
|
1286
|
+
readonly required: readonly ["hotel"];
|
|
1191
1287
|
};
|
|
1192
1288
|
} | {
|
|
1193
|
-
name: string
|
|
1194
|
-
description:
|
|
1195
|
-
annotations: {
|
|
1289
|
+
readonly name: `view_${string}trip`;
|
|
1290
|
+
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).";
|
|
1291
|
+
readonly annotations: {
|
|
1196
1292
|
readonly title: string;
|
|
1197
1293
|
readonly readOnlyHint: true;
|
|
1198
1294
|
readonly destructiveHint: false;
|
|
1199
1295
|
readonly idempotentHint: true;
|
|
1200
1296
|
readonly openWorldHint: boolean;
|
|
1201
1297
|
};
|
|
1202
|
-
inputSchema: {
|
|
1203
|
-
type:
|
|
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;
|
|
1298
|
+
readonly inputSchema: {
|
|
1299
|
+
readonly type: "object";
|
|
1300
|
+
readonly properties: {};
|
|
1240
1301
|
};
|
|
1241
1302
|
} | {
|
|
1242
|
-
name: string
|
|
1243
|
-
description:
|
|
1244
|
-
annotations: {
|
|
1303
|
+
readonly name: `clear_${string}trip`;
|
|
1304
|
+
readonly description: "Empties the trip.";
|
|
1305
|
+
readonly annotations: {
|
|
1245
1306
|
readonly title: string;
|
|
1246
|
-
readonly readOnlyHint:
|
|
1247
|
-
readonly destructiveHint:
|
|
1307
|
+
readonly readOnlyHint: false;
|
|
1308
|
+
readonly destructiveHint: true;
|
|
1248
1309
|
readonly idempotentHint: true;
|
|
1249
1310
|
readonly openWorldHint: boolean;
|
|
1250
1311
|
};
|
|
1251
|
-
inputSchema: {
|
|
1252
|
-
type:
|
|
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;
|
|
1312
|
+
readonly inputSchema: {
|
|
1313
|
+
readonly type: "object";
|
|
1314
|
+
readonly properties: {};
|
|
1276
1315
|
};
|
|
1277
1316
|
} | {
|
|
1278
|
-
name: string
|
|
1279
|
-
description:
|
|
1280
|
-
annotations: {
|
|
1317
|
+
readonly name: `pick_${string}room`;
|
|
1318
|
+
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.";
|
|
1319
|
+
readonly annotations: {
|
|
1281
1320
|
readonly title: string;
|
|
1282
1321
|
readonly readOnlyHint: false;
|
|
1283
1322
|
readonly destructiveHint: false;
|
|
1284
|
-
readonly idempotentHint:
|
|
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;
|
|
1323
|
+
readonly idempotentHint: true;
|
|
1342
1324
|
readonly openWorldHint: boolean;
|
|
1343
1325
|
};
|
|
1344
|
-
inputSchema: {
|
|
1345
|
-
type:
|
|
1346
|
-
properties: {
|
|
1347
|
-
|
|
1348
|
-
type:
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
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;
|
|
1326
|
+
readonly inputSchema: {
|
|
1327
|
+
readonly type: "object";
|
|
1328
|
+
readonly properties: {
|
|
1329
|
+
readonly rooms: {
|
|
1330
|
+
readonly type: "integer";
|
|
1331
|
+
readonly minimum: 0;
|
|
1332
|
+
readonly maximum: 5;
|
|
1333
|
+
readonly description: "How many of that room type, 1 to 5. Default 1; 0 empties the pick";
|
|
1392
1334
|
};
|
|
1393
|
-
|
|
1394
|
-
type: string;
|
|
1395
|
-
|
|
1335
|
+
readonly checkIn: {
|
|
1336
|
+
readonly type: "string";
|
|
1337
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
1338
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
1396
1339
|
};
|
|
1397
|
-
|
|
1398
|
-
type: string;
|
|
1399
|
-
|
|
1340
|
+
readonly checkOut: {
|
|
1341
|
+
readonly type: "string";
|
|
1342
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
1343
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
1400
1344
|
};
|
|
1401
|
-
|
|
1402
|
-
type:
|
|
1403
|
-
|
|
1345
|
+
readonly guests: {
|
|
1346
|
+
readonly type: "integer";
|
|
1347
|
+
readonly minimum: 1;
|
|
1348
|
+
readonly maximum: 8;
|
|
1349
|
+
readonly description: "People in the room. Default 2";
|
|
1404
1350
|
};
|
|
1405
|
-
|
|
1406
|
-
type: string;
|
|
1407
|
-
description: string
|
|
1351
|
+
readonly hotel: {
|
|
1352
|
+
readonly type: "string";
|
|
1353
|
+
readonly description: `The ${string}'s name or id`;
|
|
1408
1354
|
};
|
|
1409
|
-
|
|
1410
|
-
type: string;
|
|
1411
|
-
description:
|
|
1355
|
+
readonly room: {
|
|
1356
|
+
readonly type: "string";
|
|
1357
|
+
readonly description: "The room type id or name, as the hotel returned it";
|
|
1412
1358
|
};
|
|
1413
|
-
query?: undefined;
|
|
1414
|
-
category?: undefined;
|
|
1415
|
-
maxPrice?: undefined;
|
|
1416
|
-
unitPrice?: undefined;
|
|
1417
1359
|
};
|
|
1418
|
-
required:
|
|
1360
|
+
readonly required: readonly ["hotel", "room"];
|
|
1419
1361
|
};
|
|
1420
1362
|
})[];
|
|
1363
|
+
/** The list tool's sentence on what it answers asked with no place - every deployment's. */
|
|
1364
|
+
export declare const PLACES_SENTENCE: RegExp;
|
|
1421
1365
|
/**
|
|
1422
1366
|
* The most hotels a list priced for tonight by default holds on one page
|
|
1423
1367
|
* (`listsTonight`, 0.75.1, 总线程 11-18): every one is a price asked of the group - two
|
|
@@ -1425,6 +1369,12 @@ export declare const buildTools: (n: ToolNames, v: Vocabulary, caps?: BackendCap
|
|
|
1425
1369
|
* the rest come with the next page. A `limit` above it is taken as this.
|
|
1426
1370
|
*/
|
|
1427
1371
|
export declare const TONIGHT_PAGE_MAX = 12;
|
|
1372
|
+
/**
|
|
1373
|
+
* What the list tool answers asked with no place, where a list without dates is priced
|
|
1374
|
+
* for tonight and there are too many hotels for one page (Huazhu's production, 88 on
|
|
1375
|
+
* 2026-11-18): the cities to choose from - the home - and never `all` for it.
|
|
1376
|
+
*/
|
|
1377
|
+
export declare const tonightHomeSentence: (v: Vocabulary) => string;
|
|
1428
1378
|
/**
|
|
1429
1379
|
* The list tool where the deployment is one hotel in all (2026-10-15, Huazhu's
|
|
1430
1380
|
* test system): asked with no place it answers with that hotel's page, not
|
|
@@ -1446,6 +1396,7 @@ export declare const homeListing: <T extends {
|
|
|
1446
1396
|
tools: ToolNames;
|
|
1447
1397
|
vocab: Vocabulary;
|
|
1448
1398
|
}, count: number) => T;
|
|
1399
|
+
/** The tool names a backend with these capabilities leaves out. */
|
|
1449
1400
|
export declare const withheldTools: (n: ToolNames, caps: BackendCapabilities) => Set<string>;
|
|
1450
1401
|
/**
|
|
1451
1402
|
* Orders are the ACCOUNT'S (Otaless, 0.75.0 T5/T6): the group's own checkout with booking on.
|