@wildix/wim-tools-client 0.0.41 → 0.0.42
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-cjs/models/models_0.js +15 -1
- package/dist-es/models/models_0.js +14 -0
- package/dist-types/commands/CreateToolCommand.d.ts +82 -2
- package/dist-types/commands/GetToolCommand.d.ts +41 -1
- package/dist-types/commands/ListToolsCommand.d.ts +41 -1
- package/dist-types/commands/UpdateToolCommand.d.ts +82 -2
- package/dist-types/models/models_0.d.ts +248 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToolExecutionServerException = exports.ToolExecutionException = exports.ToolVariableType = exports.ToolHandler = exports.ToolWebhookMethod = exports.ToolWebhookAuth = exports.ToolMcpAuthorization = exports.ToolEmailHandler = exports.ToolChatRecipient = exports.ValidationException = exports.NotFoundException = exports.ForbiddenException = exports.AlreadyExistException = void 0;
|
|
3
|
+
exports.ToolExecutionServerException = exports.ToolExecutionException = exports.ToolVariableType = exports.ToolHandler = exports.ToolWebhookMethod = exports.ToolWebhookAuth = exports.ToolMcpAuthorization = exports.ToolEmailHandler = exports.ToolChatRecipient = exports.ToolCalendarInput = exports.ValidationException = exports.NotFoundException = exports.ForbiddenException = exports.AlreadyExistException = void 0;
|
|
4
4
|
const ToolsServiceException_1 = require("./ToolsServiceException");
|
|
5
5
|
class AlreadyExistException extends ToolsServiceException_1.ToolsServiceException {
|
|
6
6
|
name = "AlreadyExistException";
|
|
@@ -54,6 +54,20 @@ class ValidationException extends ToolsServiceException_1.ToolsServiceException
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
exports.ValidationException = ValidationException;
|
|
57
|
+
var ToolCalendarInput;
|
|
58
|
+
(function (ToolCalendarInput) {
|
|
59
|
+
ToolCalendarInput.visit = (value, visitor) => {
|
|
60
|
+
if (value.schedule !== undefined)
|
|
61
|
+
return visitor.schedule(value.schedule);
|
|
62
|
+
if (value.reschedule !== undefined)
|
|
63
|
+
return visitor.reschedule(value.reschedule);
|
|
64
|
+
if (value.cancel !== undefined)
|
|
65
|
+
return visitor.cancel(value.cancel);
|
|
66
|
+
if (value.get_slots !== undefined)
|
|
67
|
+
return visitor.get_slots(value.get_slots);
|
|
68
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
69
|
+
};
|
|
70
|
+
})(ToolCalendarInput || (exports.ToolCalendarInput = ToolCalendarInput = {}));
|
|
57
71
|
var ToolChatRecipient;
|
|
58
72
|
(function (ToolChatRecipient) {
|
|
59
73
|
ToolChatRecipient.visit = (value, visitor) => {
|
|
@@ -47,6 +47,20 @@ export class ValidationException extends __BaseException {
|
|
|
47
47
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
+
export var ToolCalendarInput;
|
|
51
|
+
(function (ToolCalendarInput) {
|
|
52
|
+
ToolCalendarInput.visit = (value, visitor) => {
|
|
53
|
+
if (value.schedule !== undefined)
|
|
54
|
+
return visitor.schedule(value.schedule);
|
|
55
|
+
if (value.reschedule !== undefined)
|
|
56
|
+
return visitor.reschedule(value.reschedule);
|
|
57
|
+
if (value.cancel !== undefined)
|
|
58
|
+
return visitor.cancel(value.cancel);
|
|
59
|
+
if (value.get_slots !== undefined)
|
|
60
|
+
return visitor.get_slots(value.get_slots);
|
|
61
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
62
|
+
};
|
|
63
|
+
})(ToolCalendarInput || (ToolCalendarInput = {}));
|
|
50
64
|
export var ToolChatRecipient;
|
|
51
65
|
(function (ToolChatRecipient) {
|
|
52
66
|
ToolChatRecipient.visit = (value, visitor) => {
|
|
@@ -120,7 +120,47 @@ declare const CreateToolCommand_base: {
|
|
|
120
120
|
* message: "STRING_VALUE", // required
|
|
121
121
|
* },
|
|
122
122
|
* },
|
|
123
|
-
* calendar: {
|
|
123
|
+
* calendar: { // ToolCalendarConfig
|
|
124
|
+
* input: { // ToolCalendarInput Union: only one key present
|
|
125
|
+
* schedule: { // ToolCalendarScheduleInput
|
|
126
|
+
* owner_email: "STRING_VALUE", // required
|
|
127
|
+
* owner_name: "STRING_VALUE",
|
|
128
|
+
* start: "STRING_VALUE", // required
|
|
129
|
+
* duration: "STRING_VALUE", // required
|
|
130
|
+
* summary: "STRING_VALUE",
|
|
131
|
+
* description: "STRING_VALUE",
|
|
132
|
+
* resource: "STRING_VALUE",
|
|
133
|
+
* attendees: "STRING_VALUE",
|
|
134
|
+
* send_notification: "STRING_VALUE",
|
|
135
|
+
* },
|
|
136
|
+
* reschedule: { // ToolCalendarRescheduleInput
|
|
137
|
+
* event_id: "STRING_VALUE", // required
|
|
138
|
+
* owner_email: "STRING_VALUE", // required
|
|
139
|
+
* start: "STRING_VALUE", // required
|
|
140
|
+
* duration: "STRING_VALUE", // required
|
|
141
|
+
* summary: "STRING_VALUE",
|
|
142
|
+
* description: "STRING_VALUE",
|
|
143
|
+
* reason: "STRING_VALUE",
|
|
144
|
+
* attendees: "STRING_VALUE",
|
|
145
|
+
* changed_fields: "STRING_VALUE",
|
|
146
|
+
* send_notification: "STRING_VALUE",
|
|
147
|
+
* },
|
|
148
|
+
* cancel: { // ToolCalendarCancelInput
|
|
149
|
+
* event_id: "STRING_VALUE", // required
|
|
150
|
+
* owner_email: "STRING_VALUE", // required
|
|
151
|
+
* reason: "STRING_VALUE",
|
|
152
|
+
* send_notification: "STRING_VALUE",
|
|
153
|
+
* },
|
|
154
|
+
* get_slots: { // ToolCalendarGetSlotsInput
|
|
155
|
+
* owner_email: "STRING_VALUE", // required
|
|
156
|
+
* from_date: "STRING_VALUE", // required
|
|
157
|
+
* till_date: "STRING_VALUE", // required
|
|
158
|
+
* timezone: "STRING_VALUE", // required
|
|
159
|
+
* duration: "STRING_VALUE",
|
|
160
|
+
* excluded: "STRING_VALUE",
|
|
161
|
+
* },
|
|
162
|
+
* },
|
|
163
|
+
* },
|
|
124
164
|
* mcp: { // ToolMcpHandler
|
|
125
165
|
* serverUrl: "STRING_VALUE", // required
|
|
126
166
|
* authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -231,7 +271,47 @@ declare const CreateToolCommand_base: {
|
|
|
231
271
|
* // message: "STRING_VALUE", // required
|
|
232
272
|
* // },
|
|
233
273
|
* // },
|
|
234
|
-
* // calendar: {
|
|
274
|
+
* // calendar: { // ToolCalendarConfig
|
|
275
|
+
* // input: { // ToolCalendarInput Union: only one key present
|
|
276
|
+
* // schedule: { // ToolCalendarScheduleInput
|
|
277
|
+
* // owner_email: "STRING_VALUE", // required
|
|
278
|
+
* // owner_name: "STRING_VALUE",
|
|
279
|
+
* // start: "STRING_VALUE", // required
|
|
280
|
+
* // duration: "STRING_VALUE", // required
|
|
281
|
+
* // summary: "STRING_VALUE",
|
|
282
|
+
* // description: "STRING_VALUE",
|
|
283
|
+
* // resource: "STRING_VALUE",
|
|
284
|
+
* // attendees: "STRING_VALUE",
|
|
285
|
+
* // send_notification: "STRING_VALUE",
|
|
286
|
+
* // },
|
|
287
|
+
* // reschedule: { // ToolCalendarRescheduleInput
|
|
288
|
+
* // event_id: "STRING_VALUE", // required
|
|
289
|
+
* // owner_email: "STRING_VALUE", // required
|
|
290
|
+
* // start: "STRING_VALUE", // required
|
|
291
|
+
* // duration: "STRING_VALUE", // required
|
|
292
|
+
* // summary: "STRING_VALUE",
|
|
293
|
+
* // description: "STRING_VALUE",
|
|
294
|
+
* // reason: "STRING_VALUE",
|
|
295
|
+
* // attendees: "STRING_VALUE",
|
|
296
|
+
* // changed_fields: "STRING_VALUE",
|
|
297
|
+
* // send_notification: "STRING_VALUE",
|
|
298
|
+
* // },
|
|
299
|
+
* // cancel: { // ToolCalendarCancelInput
|
|
300
|
+
* // event_id: "STRING_VALUE", // required
|
|
301
|
+
* // owner_email: "STRING_VALUE", // required
|
|
302
|
+
* // reason: "STRING_VALUE",
|
|
303
|
+
* // send_notification: "STRING_VALUE",
|
|
304
|
+
* // },
|
|
305
|
+
* // get_slots: { // ToolCalendarGetSlotsInput
|
|
306
|
+
* // owner_email: "STRING_VALUE", // required
|
|
307
|
+
* // from_date: "STRING_VALUE", // required
|
|
308
|
+
* // till_date: "STRING_VALUE", // required
|
|
309
|
+
* // timezone: "STRING_VALUE", // required
|
|
310
|
+
* // duration: "STRING_VALUE",
|
|
311
|
+
* // excluded: "STRING_VALUE",
|
|
312
|
+
* // },
|
|
313
|
+
* // },
|
|
314
|
+
* // },
|
|
235
315
|
* // mcp: { // ToolMcpHandler
|
|
236
316
|
* // serverUrl: "STRING_VALUE", // required
|
|
237
317
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -128,7 +128,47 @@ declare const GetToolCommand_base: {
|
|
|
128
128
|
* // message: "STRING_VALUE", // required
|
|
129
129
|
* // },
|
|
130
130
|
* // },
|
|
131
|
-
* // calendar: {
|
|
131
|
+
* // calendar: { // ToolCalendarConfig
|
|
132
|
+
* // input: { // ToolCalendarInput Union: only one key present
|
|
133
|
+
* // schedule: { // ToolCalendarScheduleInput
|
|
134
|
+
* // owner_email: "STRING_VALUE", // required
|
|
135
|
+
* // owner_name: "STRING_VALUE",
|
|
136
|
+
* // start: "STRING_VALUE", // required
|
|
137
|
+
* // duration: "STRING_VALUE", // required
|
|
138
|
+
* // summary: "STRING_VALUE",
|
|
139
|
+
* // description: "STRING_VALUE",
|
|
140
|
+
* // resource: "STRING_VALUE",
|
|
141
|
+
* // attendees: "STRING_VALUE",
|
|
142
|
+
* // send_notification: "STRING_VALUE",
|
|
143
|
+
* // },
|
|
144
|
+
* // reschedule: { // ToolCalendarRescheduleInput
|
|
145
|
+
* // event_id: "STRING_VALUE", // required
|
|
146
|
+
* // owner_email: "STRING_VALUE", // required
|
|
147
|
+
* // start: "STRING_VALUE", // required
|
|
148
|
+
* // duration: "STRING_VALUE", // required
|
|
149
|
+
* // summary: "STRING_VALUE",
|
|
150
|
+
* // description: "STRING_VALUE",
|
|
151
|
+
* // reason: "STRING_VALUE",
|
|
152
|
+
* // attendees: "STRING_VALUE",
|
|
153
|
+
* // changed_fields: "STRING_VALUE",
|
|
154
|
+
* // send_notification: "STRING_VALUE",
|
|
155
|
+
* // },
|
|
156
|
+
* // cancel: { // ToolCalendarCancelInput
|
|
157
|
+
* // event_id: "STRING_VALUE", // required
|
|
158
|
+
* // owner_email: "STRING_VALUE", // required
|
|
159
|
+
* // reason: "STRING_VALUE",
|
|
160
|
+
* // send_notification: "STRING_VALUE",
|
|
161
|
+
* // },
|
|
162
|
+
* // get_slots: { // ToolCalendarGetSlotsInput
|
|
163
|
+
* // owner_email: "STRING_VALUE", // required
|
|
164
|
+
* // from_date: "STRING_VALUE", // required
|
|
165
|
+
* // till_date: "STRING_VALUE", // required
|
|
166
|
+
* // timezone: "STRING_VALUE", // required
|
|
167
|
+
* // duration: "STRING_VALUE",
|
|
168
|
+
* // excluded: "STRING_VALUE",
|
|
169
|
+
* // },
|
|
170
|
+
* // },
|
|
171
|
+
* // },
|
|
132
172
|
* // mcp: { // ToolMcpHandler
|
|
133
173
|
* // serverUrl: "STRING_VALUE", // required
|
|
134
174
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -128,7 +128,47 @@ declare const ListToolsCommand_base: {
|
|
|
128
128
|
* // message: "STRING_VALUE", // required
|
|
129
129
|
* // },
|
|
130
130
|
* // },
|
|
131
|
-
* // calendar: {
|
|
131
|
+
* // calendar: { // ToolCalendarConfig
|
|
132
|
+
* // input: { // ToolCalendarInput Union: only one key present
|
|
133
|
+
* // schedule: { // ToolCalendarScheduleInput
|
|
134
|
+
* // owner_email: "STRING_VALUE", // required
|
|
135
|
+
* // owner_name: "STRING_VALUE",
|
|
136
|
+
* // start: "STRING_VALUE", // required
|
|
137
|
+
* // duration: "STRING_VALUE", // required
|
|
138
|
+
* // summary: "STRING_VALUE",
|
|
139
|
+
* // description: "STRING_VALUE",
|
|
140
|
+
* // resource: "STRING_VALUE",
|
|
141
|
+
* // attendees: "STRING_VALUE",
|
|
142
|
+
* // send_notification: "STRING_VALUE",
|
|
143
|
+
* // },
|
|
144
|
+
* // reschedule: { // ToolCalendarRescheduleInput
|
|
145
|
+
* // event_id: "STRING_VALUE", // required
|
|
146
|
+
* // owner_email: "STRING_VALUE", // required
|
|
147
|
+
* // start: "STRING_VALUE", // required
|
|
148
|
+
* // duration: "STRING_VALUE", // required
|
|
149
|
+
* // summary: "STRING_VALUE",
|
|
150
|
+
* // description: "STRING_VALUE",
|
|
151
|
+
* // reason: "STRING_VALUE",
|
|
152
|
+
* // attendees: "STRING_VALUE",
|
|
153
|
+
* // changed_fields: "STRING_VALUE",
|
|
154
|
+
* // send_notification: "STRING_VALUE",
|
|
155
|
+
* // },
|
|
156
|
+
* // cancel: { // ToolCalendarCancelInput
|
|
157
|
+
* // event_id: "STRING_VALUE", // required
|
|
158
|
+
* // owner_email: "STRING_VALUE", // required
|
|
159
|
+
* // reason: "STRING_VALUE",
|
|
160
|
+
* // send_notification: "STRING_VALUE",
|
|
161
|
+
* // },
|
|
162
|
+
* // get_slots: { // ToolCalendarGetSlotsInput
|
|
163
|
+
* // owner_email: "STRING_VALUE", // required
|
|
164
|
+
* // from_date: "STRING_VALUE", // required
|
|
165
|
+
* // till_date: "STRING_VALUE", // required
|
|
166
|
+
* // timezone: "STRING_VALUE", // required
|
|
167
|
+
* // duration: "STRING_VALUE",
|
|
168
|
+
* // excluded: "STRING_VALUE",
|
|
169
|
+
* // },
|
|
170
|
+
* // },
|
|
171
|
+
* // },
|
|
132
172
|
* // mcp: { // ToolMcpHandler
|
|
133
173
|
* // serverUrl: "STRING_VALUE", // required
|
|
134
174
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -121,7 +121,47 @@ declare const UpdateToolCommand_base: {
|
|
|
121
121
|
* message: "STRING_VALUE", // required
|
|
122
122
|
* },
|
|
123
123
|
* },
|
|
124
|
-
* calendar: {
|
|
124
|
+
* calendar: { // ToolCalendarConfig
|
|
125
|
+
* input: { // ToolCalendarInput Union: only one key present
|
|
126
|
+
* schedule: { // ToolCalendarScheduleInput
|
|
127
|
+
* owner_email: "STRING_VALUE", // required
|
|
128
|
+
* owner_name: "STRING_VALUE",
|
|
129
|
+
* start: "STRING_VALUE", // required
|
|
130
|
+
* duration: "STRING_VALUE", // required
|
|
131
|
+
* summary: "STRING_VALUE",
|
|
132
|
+
* description: "STRING_VALUE",
|
|
133
|
+
* resource: "STRING_VALUE",
|
|
134
|
+
* attendees: "STRING_VALUE",
|
|
135
|
+
* send_notification: "STRING_VALUE",
|
|
136
|
+
* },
|
|
137
|
+
* reschedule: { // ToolCalendarRescheduleInput
|
|
138
|
+
* event_id: "STRING_VALUE", // required
|
|
139
|
+
* owner_email: "STRING_VALUE", // required
|
|
140
|
+
* start: "STRING_VALUE", // required
|
|
141
|
+
* duration: "STRING_VALUE", // required
|
|
142
|
+
* summary: "STRING_VALUE",
|
|
143
|
+
* description: "STRING_VALUE",
|
|
144
|
+
* reason: "STRING_VALUE",
|
|
145
|
+
* attendees: "STRING_VALUE",
|
|
146
|
+
* changed_fields: "STRING_VALUE",
|
|
147
|
+
* send_notification: "STRING_VALUE",
|
|
148
|
+
* },
|
|
149
|
+
* cancel: { // ToolCalendarCancelInput
|
|
150
|
+
* event_id: "STRING_VALUE", // required
|
|
151
|
+
* owner_email: "STRING_VALUE", // required
|
|
152
|
+
* reason: "STRING_VALUE",
|
|
153
|
+
* send_notification: "STRING_VALUE",
|
|
154
|
+
* },
|
|
155
|
+
* get_slots: { // ToolCalendarGetSlotsInput
|
|
156
|
+
* owner_email: "STRING_VALUE", // required
|
|
157
|
+
* from_date: "STRING_VALUE", // required
|
|
158
|
+
* till_date: "STRING_VALUE", // required
|
|
159
|
+
* timezone: "STRING_VALUE", // required
|
|
160
|
+
* duration: "STRING_VALUE",
|
|
161
|
+
* excluded: "STRING_VALUE",
|
|
162
|
+
* },
|
|
163
|
+
* },
|
|
164
|
+
* },
|
|
125
165
|
* mcp: { // ToolMcpHandler
|
|
126
166
|
* serverUrl: "STRING_VALUE", // required
|
|
127
167
|
* authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -232,7 +272,47 @@ declare const UpdateToolCommand_base: {
|
|
|
232
272
|
* // message: "STRING_VALUE", // required
|
|
233
273
|
* // },
|
|
234
274
|
* // },
|
|
235
|
-
* // calendar: {
|
|
275
|
+
* // calendar: { // ToolCalendarConfig
|
|
276
|
+
* // input: { // ToolCalendarInput Union: only one key present
|
|
277
|
+
* // schedule: { // ToolCalendarScheduleInput
|
|
278
|
+
* // owner_email: "STRING_VALUE", // required
|
|
279
|
+
* // owner_name: "STRING_VALUE",
|
|
280
|
+
* // start: "STRING_VALUE", // required
|
|
281
|
+
* // duration: "STRING_VALUE", // required
|
|
282
|
+
* // summary: "STRING_VALUE",
|
|
283
|
+
* // description: "STRING_VALUE",
|
|
284
|
+
* // resource: "STRING_VALUE",
|
|
285
|
+
* // attendees: "STRING_VALUE",
|
|
286
|
+
* // send_notification: "STRING_VALUE",
|
|
287
|
+
* // },
|
|
288
|
+
* // reschedule: { // ToolCalendarRescheduleInput
|
|
289
|
+
* // event_id: "STRING_VALUE", // required
|
|
290
|
+
* // owner_email: "STRING_VALUE", // required
|
|
291
|
+
* // start: "STRING_VALUE", // required
|
|
292
|
+
* // duration: "STRING_VALUE", // required
|
|
293
|
+
* // summary: "STRING_VALUE",
|
|
294
|
+
* // description: "STRING_VALUE",
|
|
295
|
+
* // reason: "STRING_VALUE",
|
|
296
|
+
* // attendees: "STRING_VALUE",
|
|
297
|
+
* // changed_fields: "STRING_VALUE",
|
|
298
|
+
* // send_notification: "STRING_VALUE",
|
|
299
|
+
* // },
|
|
300
|
+
* // cancel: { // ToolCalendarCancelInput
|
|
301
|
+
* // event_id: "STRING_VALUE", // required
|
|
302
|
+
* // owner_email: "STRING_VALUE", // required
|
|
303
|
+
* // reason: "STRING_VALUE",
|
|
304
|
+
* // send_notification: "STRING_VALUE",
|
|
305
|
+
* // },
|
|
306
|
+
* // get_slots: { // ToolCalendarGetSlotsInput
|
|
307
|
+
* // owner_email: "STRING_VALUE", // required
|
|
308
|
+
* // from_date: "STRING_VALUE", // required
|
|
309
|
+
* // till_date: "STRING_VALUE", // required
|
|
310
|
+
* // timezone: "STRING_VALUE", // required
|
|
311
|
+
* // duration: "STRING_VALUE",
|
|
312
|
+
* // excluded: "STRING_VALUE",
|
|
313
|
+
* // },
|
|
314
|
+
* // },
|
|
315
|
+
* // },
|
|
236
316
|
* // mcp: { // ToolMcpHandler
|
|
237
317
|
* // serverUrl: "STRING_VALUE", // required
|
|
238
318
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -46,10 +46,256 @@ export declare class ValidationException extends __BaseException {
|
|
|
46
46
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Cancel an existing calendar event
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export interface ToolCalendarCancelInput {
|
|
53
|
+
/**
|
|
54
|
+
* Unique identifier of the event to cancel
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
event_id: string;
|
|
58
|
+
/**
|
|
59
|
+
* Email of the calendar owner (event owner ID). Format: user@example.com
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
owner_email: string;
|
|
63
|
+
/**
|
|
64
|
+
* Reason for cancellation
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
reason?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Send cancellation notifications to attendees
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
send_notification?: string | undefined;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get available time slots for scheduling meetings
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
export interface ToolCalendarGetSlotsInput {
|
|
79
|
+
/**
|
|
80
|
+
* Email of the calendar owner. Format: user@example.com
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
owner_email: string;
|
|
84
|
+
/**
|
|
85
|
+
* Start date for availability check in YYYY-MM-DD format. Example: '2024-03-21'
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
from_date: string;
|
|
89
|
+
/**
|
|
90
|
+
* End date for availability check in YYYY-MM-DD format. Example: '2024-03-31'
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
till_date: string;
|
|
94
|
+
/**
|
|
95
|
+
* IANA timezone identifier. Examples: 'America/New_York', 'Europe/London', 'UTC'
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
timezone: string;
|
|
99
|
+
/**
|
|
100
|
+
* Requested slot duration in minutes. Valid range: 15-360 minutes
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
duration?: string | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Comma-separated list of event IDs to exclude from availability check
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
excluded?: string | undefined;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Reschedule an existing calendar event
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
export interface ToolCalendarRescheduleInput {
|
|
115
|
+
/**
|
|
116
|
+
* Unique identifier of the event to reschedule
|
|
117
|
+
* @public
|
|
118
|
+
*/
|
|
119
|
+
event_id: string;
|
|
120
|
+
/**
|
|
121
|
+
* Email of the calendar owner (event owner ID). Format: user@example.com
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
owner_email: string;
|
|
125
|
+
/**
|
|
126
|
+
* New event start time in ISO 8601 format with timezone. Format: YYYY-MM-DDTHH:mm:ssZ
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
start: string;
|
|
130
|
+
/**
|
|
131
|
+
* New event duration in minutes. Valid range: 15-360 minutes
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
duration: string;
|
|
135
|
+
/**
|
|
136
|
+
* Updated event title/subject
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
summary?: string | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* Updated event description
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
description?: string | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Reason for rescheduling
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
reason?: string | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* Updated list of attendees as JSON array. Format: [\{"email": "user@example.com", "name": "John Doe", "id": "user123"\}]
|
|
152
|
+
* @public
|
|
153
|
+
*/
|
|
154
|
+
attendees?: string | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* List of changed fields as JSON array. Valid values: 'time', 'subject', 'attendees'
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
changed_fields?: string | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* Send email notifications about the reschedule
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
send_notification?: string | undefined;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Schedule a new calendar event
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
export interface ToolCalendarScheduleInput {
|
|
171
|
+
/**
|
|
172
|
+
* Email of the calendar owner. Format: user@example.com
|
|
173
|
+
* @public
|
|
174
|
+
*/
|
|
175
|
+
owner_email: string;
|
|
176
|
+
/**
|
|
177
|
+
* Display name of the calendar owner. Example: 'John Doe'
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
180
|
+
owner_name?: string | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* Event start time in ISO 8601 format with timezone. Format: YYYY-MM-DDTHH:mm:ssZ
|
|
183
|
+
* @public
|
|
184
|
+
*/
|
|
185
|
+
start: string;
|
|
186
|
+
/**
|
|
187
|
+
* Event duration in minutes. Valid range: 15-360 minutes
|
|
188
|
+
* @public
|
|
189
|
+
*/
|
|
190
|
+
duration: string;
|
|
191
|
+
/**
|
|
192
|
+
* Event title/subject. Maximum 255 characters
|
|
193
|
+
* @public
|
|
194
|
+
*/
|
|
195
|
+
summary?: string | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* Event description. If not provided, will be generated automatically
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
description?: string | undefined;
|
|
201
|
+
/**
|
|
202
|
+
* Resource identifier to track event source. Format: service#identifier
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
resource?: string | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* List of attendees as JSON array. Format: [\{"email": "user@example.com", "name": "John Doe", "id": "user123"\}]
|
|
208
|
+
* @public
|
|
209
|
+
*/
|
|
210
|
+
attendees?: string | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* Send email notifications to attendees
|
|
213
|
+
* @public
|
|
214
|
+
*/
|
|
215
|
+
send_notification?: string | undefined;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Calendar tool input for scheduling, rescheduling, cancelling events or querying available slots
|
|
219
|
+
* @public
|
|
220
|
+
*/
|
|
221
|
+
export type ToolCalendarInput = ToolCalendarInput.CancelMember | ToolCalendarInput.Get_slotsMember | ToolCalendarInput.RescheduleMember | ToolCalendarInput.ScheduleMember | ToolCalendarInput.$UnknownMember;
|
|
222
|
+
/**
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
export declare namespace ToolCalendarInput {
|
|
226
|
+
/**
|
|
227
|
+
* Schedule a new calendar event
|
|
228
|
+
* @public
|
|
229
|
+
*/
|
|
230
|
+
interface ScheduleMember {
|
|
231
|
+
schedule: ToolCalendarScheduleInput;
|
|
232
|
+
reschedule?: never;
|
|
233
|
+
cancel?: never;
|
|
234
|
+
get_slots?: never;
|
|
235
|
+
$unknown?: never;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Reschedule an existing calendar event
|
|
239
|
+
* @public
|
|
240
|
+
*/
|
|
241
|
+
interface RescheduleMember {
|
|
242
|
+
schedule?: never;
|
|
243
|
+
reschedule: ToolCalendarRescheduleInput;
|
|
244
|
+
cancel?: never;
|
|
245
|
+
get_slots?: never;
|
|
246
|
+
$unknown?: never;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Cancel an existing calendar event
|
|
250
|
+
* @public
|
|
251
|
+
*/
|
|
252
|
+
interface CancelMember {
|
|
253
|
+
schedule?: never;
|
|
254
|
+
reschedule?: never;
|
|
255
|
+
cancel: ToolCalendarCancelInput;
|
|
256
|
+
get_slots?: never;
|
|
257
|
+
$unknown?: never;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Query available time slots for scheduling
|
|
261
|
+
* @public
|
|
262
|
+
*/
|
|
263
|
+
interface Get_slotsMember {
|
|
264
|
+
schedule?: never;
|
|
265
|
+
reschedule?: never;
|
|
266
|
+
cancel?: never;
|
|
267
|
+
get_slots: ToolCalendarGetSlotsInput;
|
|
268
|
+
$unknown?: never;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* @public
|
|
272
|
+
*/
|
|
273
|
+
interface $UnknownMember {
|
|
274
|
+
schedule?: never;
|
|
275
|
+
reschedule?: never;
|
|
276
|
+
cancel?: never;
|
|
277
|
+
get_slots?: never;
|
|
278
|
+
$unknown: [string, any];
|
|
279
|
+
}
|
|
280
|
+
interface Visitor<T> {
|
|
281
|
+
schedule: (value: ToolCalendarScheduleInput) => T;
|
|
282
|
+
reschedule: (value: ToolCalendarRescheduleInput) => T;
|
|
283
|
+
cancel: (value: ToolCalendarCancelInput) => T;
|
|
284
|
+
get_slots: (value: ToolCalendarGetSlotsInput) => T;
|
|
285
|
+
_: (name: string, value: any) => T;
|
|
286
|
+
}
|
|
287
|
+
const visit: <T>(value: ToolCalendarInput, visitor: Visitor<T>) => T;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Calendar handler configuration. Contains one of the calendar operation input types.
|
|
50
291
|
* @public
|
|
51
292
|
*/
|
|
52
293
|
export interface ToolCalendarConfig {
|
|
294
|
+
/**
|
|
295
|
+
* Calendar tool input for scheduling, rescheduling, cancelling events or querying available slots
|
|
296
|
+
* @public
|
|
297
|
+
*/
|
|
298
|
+
input: ToolCalendarInput;
|
|
53
299
|
}
|
|
54
300
|
/**
|
|
55
301
|
* @public
|
|
@@ -613,7 +859,7 @@ export declare namespace ToolHandler {
|
|
|
613
859
|
$unknown?: never;
|
|
614
860
|
}
|
|
615
861
|
/**
|
|
616
|
-
* Calendar handler configuration.
|
|
862
|
+
* Calendar handler configuration. Contains one of the calendar operation input types.
|
|
617
863
|
* @public
|
|
618
864
|
*/
|
|
619
865
|
interface CalendarMember {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-tools-client",
|
|
3
3
|
"description": "@wildix/wim-tools-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.42",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|