@wildix/wim-tools-client 0.0.40 → 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.
@@ -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,23 +120,46 @@ declare const CreateToolCommand_base: {
120
120
  * message: "STRING_VALUE", // required
121
121
  * },
122
122
  * },
123
- * calendar: { // ToolCalendarHandler
124
- * operation: "STRING_VALUE", // required
125
- * ownerEmail: "STRING_VALUE", // required
126
- * ownerName: "STRING_VALUE",
127
- * start: "STRING_VALUE",
128
- * duration: "STRING_VALUE",
129
- * summary: "STRING_VALUE",
130
- * description: "STRING_VALUE",
131
- * resource: "STRING_VALUE",
132
- * reason: "STRING_VALUE",
133
- * sendNotification: "STRING_VALUE",
134
- * changedFields: "STRING_VALUE",
135
- * attendees: "STRING_VALUE",
136
- * fromDate: "STRING_VALUE",
137
- * tillDate: "STRING_VALUE",
138
- * timeZone: "STRING_VALUE",
139
- * excluded: "STRING_VALUE",
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
+ * },
140
163
  * },
141
164
  * mcp: { // ToolMcpHandler
142
165
  * serverUrl: "STRING_VALUE", // required
@@ -248,23 +271,46 @@ declare const CreateToolCommand_base: {
248
271
  * // message: "STRING_VALUE", // required
249
272
  * // },
250
273
  * // },
251
- * // calendar: { // ToolCalendarHandler
252
- * // operation: "STRING_VALUE", // required
253
- * // ownerEmail: "STRING_VALUE", // required
254
- * // ownerName: "STRING_VALUE",
255
- * // start: "STRING_VALUE",
256
- * // duration: "STRING_VALUE",
257
- * // summary: "STRING_VALUE",
258
- * // description: "STRING_VALUE",
259
- * // resource: "STRING_VALUE",
260
- * // reason: "STRING_VALUE",
261
- * // sendNotification: "STRING_VALUE",
262
- * // changedFields: "STRING_VALUE",
263
- * // attendees: "STRING_VALUE",
264
- * // fromDate: "STRING_VALUE",
265
- * // tillDate: "STRING_VALUE",
266
- * // timeZone: "STRING_VALUE",
267
- * // excluded: "STRING_VALUE",
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
+ * // },
268
314
  * // },
269
315
  * // mcp: { // ToolMcpHandler
270
316
  * // serverUrl: "STRING_VALUE", // required
@@ -128,23 +128,46 @@ declare const GetToolCommand_base: {
128
128
  * // message: "STRING_VALUE", // required
129
129
  * // },
130
130
  * // },
131
- * // calendar: { // ToolCalendarHandler
132
- * // operation: "STRING_VALUE", // required
133
- * // ownerEmail: "STRING_VALUE", // required
134
- * // ownerName: "STRING_VALUE",
135
- * // start: "STRING_VALUE",
136
- * // duration: "STRING_VALUE",
137
- * // summary: "STRING_VALUE",
138
- * // description: "STRING_VALUE",
139
- * // resource: "STRING_VALUE",
140
- * // reason: "STRING_VALUE",
141
- * // sendNotification: "STRING_VALUE",
142
- * // changedFields: "STRING_VALUE",
143
- * // attendees: "STRING_VALUE",
144
- * // fromDate: "STRING_VALUE",
145
- * // tillDate: "STRING_VALUE",
146
- * // timeZone: "STRING_VALUE",
147
- * // excluded: "STRING_VALUE",
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
+ * // },
148
171
  * // },
149
172
  * // mcp: { // ToolMcpHandler
150
173
  * // serverUrl: "STRING_VALUE", // required
@@ -128,23 +128,46 @@ declare const ListToolsCommand_base: {
128
128
  * // message: "STRING_VALUE", // required
129
129
  * // },
130
130
  * // },
131
- * // calendar: { // ToolCalendarHandler
132
- * // operation: "STRING_VALUE", // required
133
- * // ownerEmail: "STRING_VALUE", // required
134
- * // ownerName: "STRING_VALUE",
135
- * // start: "STRING_VALUE",
136
- * // duration: "STRING_VALUE",
137
- * // summary: "STRING_VALUE",
138
- * // description: "STRING_VALUE",
139
- * // resource: "STRING_VALUE",
140
- * // reason: "STRING_VALUE",
141
- * // sendNotification: "STRING_VALUE",
142
- * // changedFields: "STRING_VALUE",
143
- * // attendees: "STRING_VALUE",
144
- * // fromDate: "STRING_VALUE",
145
- * // tillDate: "STRING_VALUE",
146
- * // timeZone: "STRING_VALUE",
147
- * // excluded: "STRING_VALUE",
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
+ * // },
148
171
  * // },
149
172
  * // mcp: { // ToolMcpHandler
150
173
  * // serverUrl: "STRING_VALUE", // required
@@ -121,23 +121,46 @@ declare const UpdateToolCommand_base: {
121
121
  * message: "STRING_VALUE", // required
122
122
  * },
123
123
  * },
124
- * calendar: { // ToolCalendarHandler
125
- * operation: "STRING_VALUE", // required
126
- * ownerEmail: "STRING_VALUE", // required
127
- * ownerName: "STRING_VALUE",
128
- * start: "STRING_VALUE",
129
- * duration: "STRING_VALUE",
130
- * summary: "STRING_VALUE",
131
- * description: "STRING_VALUE",
132
- * resource: "STRING_VALUE",
133
- * reason: "STRING_VALUE",
134
- * sendNotification: "STRING_VALUE",
135
- * changedFields: "STRING_VALUE",
136
- * attendees: "STRING_VALUE",
137
- * fromDate: "STRING_VALUE",
138
- * tillDate: "STRING_VALUE",
139
- * timeZone: "STRING_VALUE",
140
- * excluded: "STRING_VALUE",
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
+ * },
141
164
  * },
142
165
  * mcp: { // ToolMcpHandler
143
166
  * serverUrl: "STRING_VALUE", // required
@@ -249,23 +272,46 @@ declare const UpdateToolCommand_base: {
249
272
  * // message: "STRING_VALUE", // required
250
273
  * // },
251
274
  * // },
252
- * // calendar: { // ToolCalendarHandler
253
- * // operation: "STRING_VALUE", // required
254
- * // ownerEmail: "STRING_VALUE", // required
255
- * // ownerName: "STRING_VALUE",
256
- * // start: "STRING_VALUE",
257
- * // duration: "STRING_VALUE",
258
- * // summary: "STRING_VALUE",
259
- * // description: "STRING_VALUE",
260
- * // resource: "STRING_VALUE",
261
- * // reason: "STRING_VALUE",
262
- * // sendNotification: "STRING_VALUE",
263
- * // changedFields: "STRING_VALUE",
264
- * // attendees: "STRING_VALUE",
265
- * // fromDate: "STRING_VALUE",
266
- * // tillDate: "STRING_VALUE",
267
- * // timeZone: "STRING_VALUE",
268
- * // excluded: "STRING_VALUE",
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
+ * // },
269
315
  * // },
270
316
  * // mcp: { // ToolMcpHandler
271
317
  * // serverUrl: "STRING_VALUE", // required
@@ -46,89 +46,256 @@ export declare class ValidationException extends __BaseException {
46
46
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
47
47
  }
48
48
  /**
49
+ * Cancel an existing calendar event
49
50
  * @public
50
51
  */
51
- export interface ToolCalendarHandler {
52
+ export interface ToolCalendarCancelInput {
52
53
  /**
53
- * Calendar operation: schedule, reschedule, cancel, or get_slots
54
+ * Unique identifier of the event to cancel
54
55
  * @public
55
56
  */
56
- operation: string;
57
+ event_id: string;
57
58
  /**
58
- * Calendar owner email
59
+ * Email of the calendar owner (event owner ID). Format: user@example.com
59
60
  * @public
60
61
  */
61
- ownerEmail: string;
62
+ owner_email: string;
62
63
  /**
63
- * Calendar owner name
64
+ * Reason for cancellation
64
65
  * @public
65
66
  */
66
- ownerName?: string | undefined;
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;
67
89
  /**
68
- * Event start datetime
90
+ * End date for availability check in YYYY-MM-DD format. Example: '2024-03-31'
69
91
  * @public
70
92
  */
71
- start?: string | undefined;
93
+ till_date: string;
72
94
  /**
73
- * Event duration in ISO 8601 format (e.g. PT30M, PT1H)
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
74
101
  * @public
75
102
  */
76
103
  duration?: string | undefined;
77
104
  /**
78
- * Event title
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
79
137
  * @public
80
138
  */
81
139
  summary?: string | undefined;
82
140
  /**
83
- * Event description. Auto-generated if not provided
141
+ * Updated event description
84
142
  * @public
85
143
  */
86
144
  description?: string | undefined;
87
145
  /**
88
- * Event source identifier. Example: voicebot#1234567890
146
+ * Reason for rescheduling
89
147
  * @public
90
148
  */
91
- resource?: string | undefined;
149
+ reason?: string | undefined;
92
150
  /**
93
- * Reason for reschedule or cancel
151
+ * Updated list of attendees as JSON array. Format: [\{"email": "user@example.com", "name": "John Doe", "id": "user123"\}]
94
152
  * @public
95
153
  */
96
- reason?: string | undefined;
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;
97
176
  /**
98
- * Send email notification to attendees. Default: true
177
+ * Display name of the calendar owner. Example: 'John Doe'
99
178
  * @public
100
179
  */
101
- sendNotification?: string | undefined;
180
+ owner_name?: string | undefined;
102
181
  /**
103
- * Changed fields for reschedule. Values: time, subject, attendees
182
+ * Event start time in ISO 8601 format with timezone. Format: YYYY-MM-DDTHH:mm:ssZ
104
183
  * @public
105
184
  */
106
- changedFields?: string | undefined;
185
+ start: string;
107
186
  /**
108
- * Attendees list as JSON array of \{email, name\}
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"\}]
109
208
  * @public
110
209
  */
111
210
  attendees?: string | undefined;
112
211
  /**
113
- * Slots query start date
212
+ * Send email notifications to attendees
114
213
  * @public
115
214
  */
116
- fromDate?: string | undefined;
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 {
117
226
  /**
118
- * Slots query end date
227
+ * Schedule a new calendar event
119
228
  * @public
120
229
  */
121
- tillDate?: string | undefined;
230
+ interface ScheduleMember {
231
+ schedule: ToolCalendarScheduleInput;
232
+ reschedule?: never;
233
+ cancel?: never;
234
+ get_slots?: never;
235
+ $unknown?: never;
236
+ }
122
237
  /**
123
- * IANA timezone. Example: America/New_York, UTC
238
+ * Reschedule an existing calendar event
124
239
  * @public
125
240
  */
126
- timeZone?: string | undefined;
241
+ interface RescheduleMember {
242
+ schedule?: never;
243
+ reschedule: ToolCalendarRescheduleInput;
244
+ cancel?: never;
245
+ get_slots?: never;
246
+ $unknown?: never;
247
+ }
127
248
  /**
128
- * Excluded slots
249
+ * Cancel an existing calendar event
129
250
  * @public
130
251
  */
131
- excluded?: string | undefined;
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.
291
+ * @public
292
+ */
293
+ export interface ToolCalendarConfig {
294
+ /**
295
+ * Calendar tool input for scheduling, rescheduling, cancelling events or querying available slots
296
+ * @public
297
+ */
298
+ input: ToolCalendarInput;
132
299
  }
133
300
  /**
134
301
  * @public
@@ -691,13 +858,17 @@ export declare namespace ToolHandler {
691
858
  mcpTool?: never;
692
859
  $unknown?: never;
693
860
  }
861
+ /**
862
+ * Calendar handler configuration. Contains one of the calendar operation input types.
863
+ * @public
864
+ */
694
865
  interface CalendarMember {
695
866
  email?: never;
696
867
  webhook?: never;
697
868
  search?: never;
698
869
  chat?: never;
699
870
  sms?: never;
700
- calendar: ToolCalendarHandler;
871
+ calendar: ToolCalendarConfig;
701
872
  mcp?: never;
702
873
  mcpTool?: never;
703
874
  $unknown?: never;
@@ -744,7 +915,7 @@ export declare namespace ToolHandler {
744
915
  search: (value: ToolSearchConfig) => T;
745
916
  chat: (value: ToolChatHandler) => T;
746
917
  sms: (value: ToolSmsHandler) => T;
747
- calendar: (value: ToolCalendarHandler) => T;
918
+ calendar: (value: ToolCalendarConfig) => T;
748
919
  mcp: (value: ToolMcpHandler) => T;
749
920
  mcpTool: (value: ToolMcpToolHandler) => T;
750
921
  _: (name: string, value: any) => T;
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.40",
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",