@curless/hotel-storefront 0.85.0 → 0.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +19124 -0
- package/dist/tools/all-tools.d.ts.map +1 -0
- package/dist/tools/all-tools.js +43 -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 +396 -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 +567 -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 +415 -0
- package/dist/tools/cancel.js.map +1 -0
- 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/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 +269 -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 +350 -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 +587 -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 +158 -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-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 +4 -0
- package/dist/tools/list-hotels.d.ts.map +1 -0
- package/dist/tools/list-hotels.js +24 -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 +207 -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 +347 -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 +374 -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 +492 -0
- package/dist/tools/terms-answer.js.map +1 -0
- 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 +1425 -0
- package/dist/tools/tool-set.d.ts.map +1 -0
- package/dist/tools/tool-set.js +244 -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,444 @@
|
|
|
1
|
+
import type { ToolEnv } from './tool-env.js';
|
|
2
|
+
export declare const listHotelsTool: ({ n, v, open, places, stayProps }: ToolEnv) => {
|
|
3
|
+
readonly name: `list_${string}${string}`;
|
|
4
|
+
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}`;
|
|
5
|
+
readonly annotations: {
|
|
6
|
+
readonly title: string;
|
|
7
|
+
readonly readOnlyHint: true;
|
|
8
|
+
readonly destructiveHint: false;
|
|
9
|
+
readonly idempotentHint: true;
|
|
10
|
+
readonly openWorldHint: boolean;
|
|
11
|
+
};
|
|
12
|
+
readonly inputSchema: {
|
|
13
|
+
readonly type: "object";
|
|
14
|
+
readonly properties: {
|
|
15
|
+
readonly facilities: {
|
|
16
|
+
readonly type: "array";
|
|
17
|
+
readonly items: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly enum: string[];
|
|
20
|
+
};
|
|
21
|
+
readonly description: `What every ${string} listed must have`;
|
|
22
|
+
};
|
|
23
|
+
readonly freeCancellation: {
|
|
24
|
+
readonly type: "boolean";
|
|
25
|
+
readonly description: `Only ${string} with a room that can be cancelled free - and, with dates, that room is the one priced`;
|
|
26
|
+
};
|
|
27
|
+
readonly breakfast: {
|
|
28
|
+
readonly type: "boolean";
|
|
29
|
+
readonly description: `Only ${string} with a room that includes breakfast - and, with dates, that room is the one priced`;
|
|
30
|
+
};
|
|
31
|
+
readonly bed: {
|
|
32
|
+
readonly type: "string";
|
|
33
|
+
readonly enum: readonly ["king", "twin"];
|
|
34
|
+
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`;
|
|
35
|
+
};
|
|
36
|
+
readonly all: {
|
|
37
|
+
readonly type: "boolean";
|
|
38
|
+
readonly description: `Unnarrowed, or narrowed to a country of many cities, the answer is the places to choose from; true lists the ${string} themselves`;
|
|
39
|
+
};
|
|
40
|
+
readonly group?: {
|
|
41
|
+
type: string;
|
|
42
|
+
description: string;
|
|
43
|
+
} | undefined;
|
|
44
|
+
readonly rooms: {
|
|
45
|
+
readonly type: "integer";
|
|
46
|
+
readonly minimum: 1;
|
|
47
|
+
readonly maximum: 5;
|
|
48
|
+
readonly description: "With dates: how many rooms of one type the party needs, 1 to 5. Default 1";
|
|
49
|
+
};
|
|
50
|
+
readonly sort: {
|
|
51
|
+
readonly type: "string";
|
|
52
|
+
readonly enum: readonly ["group", "price-low", "price-high", "rating"];
|
|
53
|
+
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`;
|
|
54
|
+
};
|
|
55
|
+
readonly maxNightly: {
|
|
56
|
+
readonly type: "number";
|
|
57
|
+
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";
|
|
58
|
+
};
|
|
59
|
+
readonly limit: {
|
|
60
|
+
readonly type: "number";
|
|
61
|
+
readonly description: "How many to return, 1 to 50. Default 12";
|
|
62
|
+
};
|
|
63
|
+
readonly offset: {
|
|
64
|
+
readonly type: "number";
|
|
65
|
+
readonly description: "How many of the matches to skip: the answer says where the next page starts";
|
|
66
|
+
};
|
|
67
|
+
readonly brand: {
|
|
68
|
+
readonly type: "string";
|
|
69
|
+
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";
|
|
70
|
+
};
|
|
71
|
+
readonly checkIn: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
74
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
75
|
+
};
|
|
76
|
+
readonly checkOut: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
79
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
80
|
+
};
|
|
81
|
+
readonly guests: {
|
|
82
|
+
readonly type: "integer";
|
|
83
|
+
readonly minimum: 1;
|
|
84
|
+
readonly maximum: 8;
|
|
85
|
+
readonly description: "People in the room. Default 2";
|
|
86
|
+
};
|
|
87
|
+
readonly query: {
|
|
88
|
+
readonly type: "string";
|
|
89
|
+
readonly description: "Free text over the name, city, area, description and amenities - the guest's own words";
|
|
90
|
+
};
|
|
91
|
+
readonly city: {
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
readonly description: `One city or one country${string}`;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
export declare const getHotelTool: ({ n, v, open, stayProps }: ToolEnv) => {
|
|
99
|
+
readonly name: `get_${string}${string}`;
|
|
100
|
+
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}`;
|
|
101
|
+
readonly annotations: {
|
|
102
|
+
readonly title: string;
|
|
103
|
+
readonly readOnlyHint: true;
|
|
104
|
+
readonly destructiveHint: false;
|
|
105
|
+
readonly idempotentHint: true;
|
|
106
|
+
readonly openWorldHint: boolean;
|
|
107
|
+
};
|
|
108
|
+
readonly inputSchema: {
|
|
109
|
+
readonly type: "object";
|
|
110
|
+
readonly properties: {
|
|
111
|
+
readonly rooms: {
|
|
112
|
+
readonly type: "integer";
|
|
113
|
+
readonly minimum: 1;
|
|
114
|
+
readonly maximum: 5;
|
|
115
|
+
readonly description: "How many rooms of one type, 1 to 5. Default 1";
|
|
116
|
+
};
|
|
117
|
+
readonly bed: {
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
readonly enum: readonly ["king", "twin"];
|
|
120
|
+
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";
|
|
121
|
+
};
|
|
122
|
+
readonly breakfast: {
|
|
123
|
+
readonly type: "boolean";
|
|
124
|
+
readonly description: "With dates: only rooms whose rate includes breakfast";
|
|
125
|
+
};
|
|
126
|
+
readonly freeCancellation: {
|
|
127
|
+
readonly type: "boolean";
|
|
128
|
+
readonly description: "With dates: only rooms that can be cancelled free";
|
|
129
|
+
};
|
|
130
|
+
readonly window: {
|
|
131
|
+
readonly type: "boolean";
|
|
132
|
+
readonly description: "With dates: only rooms with a window (not a partial or an inner one)";
|
|
133
|
+
};
|
|
134
|
+
readonly payment: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly enum: readonly ["at-hotel", "online"];
|
|
137
|
+
readonly description: "With dates: only rooms paid at the hotel (`at-hotel`) or in advance online (`online`)";
|
|
138
|
+
};
|
|
139
|
+
readonly family: {
|
|
140
|
+
readonly type: "boolean";
|
|
141
|
+
readonly description: "With dates: only rooms that sleep 3 or more";
|
|
142
|
+
};
|
|
143
|
+
readonly checkIn: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
146
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
147
|
+
};
|
|
148
|
+
readonly checkOut: {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
151
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
152
|
+
};
|
|
153
|
+
readonly guests: {
|
|
154
|
+
readonly type: "integer";
|
|
155
|
+
readonly minimum: 1;
|
|
156
|
+
readonly maximum: 8;
|
|
157
|
+
readonly description: "People in the room. Default 2";
|
|
158
|
+
};
|
|
159
|
+
readonly hotel: {
|
|
160
|
+
readonly type: "string";
|
|
161
|
+
readonly description: `The ${string}'s name or id${string}`;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
readonly required: readonly ["hotel"];
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export declare const lookUpTool: ({ n, v, open, stayProps }: ToolEnv) => {
|
|
168
|
+
readonly name: `look_up_${string}${string}`;
|
|
169
|
+
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.`;
|
|
170
|
+
readonly annotations: {
|
|
171
|
+
readonly title: string;
|
|
172
|
+
readonly readOnlyHint: true;
|
|
173
|
+
readonly destructiveHint: false;
|
|
174
|
+
readonly idempotentHint: true;
|
|
175
|
+
readonly openWorldHint: boolean;
|
|
176
|
+
};
|
|
177
|
+
readonly inputSchema: {
|
|
178
|
+
readonly type: "object";
|
|
179
|
+
readonly properties: {
|
|
180
|
+
readonly rooms: {
|
|
181
|
+
readonly type: "integer";
|
|
182
|
+
readonly minimum: 1;
|
|
183
|
+
readonly maximum: 5;
|
|
184
|
+
readonly description: "How many rooms of one type, 1 to 5. Default 1";
|
|
185
|
+
};
|
|
186
|
+
readonly checkIn: {
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
189
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
190
|
+
};
|
|
191
|
+
readonly checkOut: {
|
|
192
|
+
readonly type: "string";
|
|
193
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
194
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
195
|
+
};
|
|
196
|
+
readonly guests: {
|
|
197
|
+
readonly type: "integer";
|
|
198
|
+
readonly minimum: 1;
|
|
199
|
+
readonly maximum: 8;
|
|
200
|
+
readonly description: "People in the room. Default 2";
|
|
201
|
+
};
|
|
202
|
+
readonly city: {
|
|
203
|
+
readonly type: "string";
|
|
204
|
+
readonly description: `A city or a country: its ${string}, up to 6`;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
export declare const listExtrasTool: ({ n, v, open, stayProps }: ToolEnv) => {
|
|
210
|
+
readonly name: `list_${string}extras`;
|
|
211
|
+
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.`;
|
|
212
|
+
readonly annotations: {
|
|
213
|
+
readonly title: string;
|
|
214
|
+
readonly readOnlyHint: true;
|
|
215
|
+
readonly destructiveHint: false;
|
|
216
|
+
readonly idempotentHint: true;
|
|
217
|
+
readonly openWorldHint: boolean;
|
|
218
|
+
};
|
|
219
|
+
readonly inputSchema: {
|
|
220
|
+
readonly type: "object";
|
|
221
|
+
readonly properties: {
|
|
222
|
+
readonly booking: {
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
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`;
|
|
225
|
+
};
|
|
226
|
+
readonly email: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
readonly description: "The email the booking was made with, when it was made elsewhere";
|
|
229
|
+
};
|
|
230
|
+
readonly checkIn: {
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
233
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
234
|
+
};
|
|
235
|
+
readonly checkOut: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
238
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
239
|
+
};
|
|
240
|
+
readonly guests: {
|
|
241
|
+
readonly type: "integer";
|
|
242
|
+
readonly minimum: 1;
|
|
243
|
+
readonly maximum: 8;
|
|
244
|
+
readonly description: "People in the room. Default 2";
|
|
245
|
+
};
|
|
246
|
+
readonly hotel: {
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
readonly description: `The ${string}'s name or id`;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
export declare const compareTool: ({ n, v, open, stayProps }: ToolEnv) => {
|
|
254
|
+
readonly name: `compare_${string}${string}`;
|
|
255
|
+
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.`;
|
|
256
|
+
readonly annotations: {
|
|
257
|
+
readonly title: string;
|
|
258
|
+
readonly readOnlyHint: true;
|
|
259
|
+
readonly destructiveHint: false;
|
|
260
|
+
readonly idempotentHint: true;
|
|
261
|
+
readonly openWorldHint: boolean;
|
|
262
|
+
};
|
|
263
|
+
readonly inputSchema: {
|
|
264
|
+
readonly type: "object";
|
|
265
|
+
readonly properties: {
|
|
266
|
+
readonly checkIn: {
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
269
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
270
|
+
};
|
|
271
|
+
readonly checkOut: {
|
|
272
|
+
readonly type: "string";
|
|
273
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
274
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
275
|
+
};
|
|
276
|
+
readonly guests: {
|
|
277
|
+
readonly type: "integer";
|
|
278
|
+
readonly minimum: 1;
|
|
279
|
+
readonly maximum: 8;
|
|
280
|
+
readonly description: "People in the room. Default 2";
|
|
281
|
+
};
|
|
282
|
+
readonly entries: {
|
|
283
|
+
readonly type: "array";
|
|
284
|
+
readonly minItems: 2;
|
|
285
|
+
readonly maxItems: 4;
|
|
286
|
+
readonly description: `The ${string} to set beside each other, in the order they should appear`;
|
|
287
|
+
readonly items: {
|
|
288
|
+
readonly type: "object";
|
|
289
|
+
readonly properties: {
|
|
290
|
+
readonly hotel: {
|
|
291
|
+
readonly type: "string";
|
|
292
|
+
readonly description: `The ${string}'s name or id`;
|
|
293
|
+
};
|
|
294
|
+
readonly bestFor: {
|
|
295
|
+
readonly type: "string";
|
|
296
|
+
readonly description: "One line on who this one suits, in your own words";
|
|
297
|
+
};
|
|
298
|
+
readonly pros: {
|
|
299
|
+
readonly type: "array";
|
|
300
|
+
readonly items: {
|
|
301
|
+
readonly type: "string";
|
|
302
|
+
};
|
|
303
|
+
readonly maxItems: 4;
|
|
304
|
+
};
|
|
305
|
+
readonly cons: {
|
|
306
|
+
readonly type: "array";
|
|
307
|
+
readonly items: {
|
|
308
|
+
readonly type: "string";
|
|
309
|
+
};
|
|
310
|
+
readonly maxItems: 3;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
readonly required: readonly ["hotel"];
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
readonly recommended: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly description: `The one ${string} to mark as the pick`;
|
|
319
|
+
};
|
|
320
|
+
readonly title: {
|
|
321
|
+
readonly type: "string";
|
|
322
|
+
readonly description: "A heading for the plan";
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
readonly required: readonly ["entries"];
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
export declare const itineraryTool: ({ n, v, open, places, stayProps }: ToolEnv) => {
|
|
329
|
+
readonly name: `show_${string}itinerary`;
|
|
330
|
+
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.`;
|
|
331
|
+
readonly annotations: {
|
|
332
|
+
readonly title: string;
|
|
333
|
+
readonly readOnlyHint: true;
|
|
334
|
+
readonly destructiveHint: false;
|
|
335
|
+
readonly idempotentHint: true;
|
|
336
|
+
readonly openWorldHint: boolean;
|
|
337
|
+
};
|
|
338
|
+
readonly inputSchema: {
|
|
339
|
+
readonly type: "object";
|
|
340
|
+
readonly properties: {
|
|
341
|
+
readonly checkIn: {
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
344
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
345
|
+
};
|
|
346
|
+
readonly checkOut: {
|
|
347
|
+
readonly type: "string";
|
|
348
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
349
|
+
readonly description: `${string}, as YYYY-MM-DD`;
|
|
350
|
+
};
|
|
351
|
+
readonly guests: {
|
|
352
|
+
readonly type: "integer";
|
|
353
|
+
readonly minimum: 1;
|
|
354
|
+
readonly maximum: 8;
|
|
355
|
+
readonly description: "People in the room. Default 2";
|
|
356
|
+
};
|
|
357
|
+
readonly title: {
|
|
358
|
+
readonly type: "string";
|
|
359
|
+
readonly description: "What to call the trip";
|
|
360
|
+
};
|
|
361
|
+
readonly days: {
|
|
362
|
+
readonly type: "array";
|
|
363
|
+
readonly minItems: 1;
|
|
364
|
+
readonly maxItems: 10;
|
|
365
|
+
readonly items: {
|
|
366
|
+
readonly type: "object";
|
|
367
|
+
readonly properties: {
|
|
368
|
+
readonly label: {
|
|
369
|
+
readonly type: "string";
|
|
370
|
+
readonly description: `e.g. "Arrive${string}" - each day's date is printed beside it, so leave the date out`;
|
|
371
|
+
};
|
|
372
|
+
readonly note: {
|
|
373
|
+
readonly type: "string";
|
|
374
|
+
readonly description: "One or two lines on the day, in your own words";
|
|
375
|
+
};
|
|
376
|
+
readonly why: {
|
|
377
|
+
readonly type: "string";
|
|
378
|
+
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`;
|
|
379
|
+
};
|
|
380
|
+
readonly items: {
|
|
381
|
+
readonly type: "array";
|
|
382
|
+
readonly items: {
|
|
383
|
+
readonly type: "string";
|
|
384
|
+
};
|
|
385
|
+
readonly maxItems: 6;
|
|
386
|
+
readonly description: `${string} and add-ons for that day, by name or id`;
|
|
387
|
+
};
|
|
388
|
+
readonly plan: {
|
|
389
|
+
readonly type: "array";
|
|
390
|
+
readonly maxItems: 5;
|
|
391
|
+
readonly description: "The day in order, in your own words: when, and what happens then. Nothing in it is booked or priced";
|
|
392
|
+
readonly items: {
|
|
393
|
+
readonly type: "object";
|
|
394
|
+
readonly properties: {
|
|
395
|
+
readonly time: {
|
|
396
|
+
readonly type: "string";
|
|
397
|
+
readonly description: "When in the day, e.g. \"Afternoon\" or \"19:00\"";
|
|
398
|
+
};
|
|
399
|
+
readonly what: {
|
|
400
|
+
readonly type: "string";
|
|
401
|
+
readonly description: "What happens then, in a few words";
|
|
402
|
+
};
|
|
403
|
+
readonly note: {
|
|
404
|
+
readonly type: "string";
|
|
405
|
+
readonly description: "One line more, optional";
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
readonly required: readonly ["what"];
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
readonly required: readonly ["label"];
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
readonly required: readonly ["title", "days"];
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
export declare const policiesTool: ({ n, v, open }: ToolEnv) => {
|
|
420
|
+
readonly name: `get_${string}${string}_policies`;
|
|
421
|
+
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.`;
|
|
422
|
+
readonly annotations: {
|
|
423
|
+
readonly title: string;
|
|
424
|
+
readonly readOnlyHint: true;
|
|
425
|
+
readonly destructiveHint: false;
|
|
426
|
+
readonly idempotentHint: true;
|
|
427
|
+
readonly openWorldHint: boolean;
|
|
428
|
+
};
|
|
429
|
+
readonly inputSchema: {
|
|
430
|
+
readonly type: "object";
|
|
431
|
+
readonly properties: {
|
|
432
|
+
readonly hotel: {
|
|
433
|
+
readonly type: "string";
|
|
434
|
+
readonly description: `The ${string}'s name or id`;
|
|
435
|
+
};
|
|
436
|
+
readonly topic: {
|
|
437
|
+
readonly type: "string";
|
|
438
|
+
readonly enum: readonly ["cancellation", "check-in", "children", "pets", "deposit", "accessibility"];
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
readonly required: readonly ["hotel"];
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
//# sourceMappingURL=tool-defs-browse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-defs-browse.d.ts","sourceRoot":"","sources":["../../src/tools/tool-defs-browse.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAK7C,eAAO,MAAM,cAAc,GAAI,mCAAmC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0F5D,CAAC;AAEd,eAAO,MAAM,YAAY,GAAI,2BAA2B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDlD,CAAC;AAEd,eAAO,MAAM,UAAU,GAAI,2BAA2B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgChD,CAAC;AAEd,eAAO,MAAM,cAAc,GAAI,2BAA2B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBpD,CAAC;AAEd,eAAO,MAAM,WAAW,GAAI,2BAA2B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCjD,CAAC;AAEd,eAAO,MAAM,aAAa,GAAI,mCAAmC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+D3D,CAAC;AAEd,eAAO,MAAM,YAAY,GAAI,gBAAgB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;CAmBvC,CAAC"}
|