@wildix/wim-tools-client 0.0.43 → 1.0.1

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.ToolCalendarOperation = 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.ValidationException = exports.UnauthorizedException = 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";
@@ -41,6 +41,19 @@ class NotFoundException extends ToolsServiceException_1.ToolsServiceException {
41
41
  }
42
42
  }
43
43
  exports.NotFoundException = NotFoundException;
44
+ class UnauthorizedException extends ToolsServiceException_1.ToolsServiceException {
45
+ name = "UnauthorizedException";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "UnauthorizedException",
50
+ $fault: "client",
51
+ ...opts
52
+ });
53
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
54
+ }
55
+ }
56
+ exports.UnauthorizedException = UnauthorizedException;
44
57
  class ValidationException extends ToolsServiceException_1.ToolsServiceException {
45
58
  name = "ValidationException";
46
59
  $fault = "client";
@@ -54,12 +67,6 @@ class ValidationException extends ToolsServiceException_1.ToolsServiceException
54
67
  }
55
68
  }
56
69
  exports.ValidationException = ValidationException;
57
- exports.ToolCalendarOperation = {
58
- CANCEL: "cancel",
59
- GET_SLOTS: "get_slots",
60
- RESCHEDULE: "reschedule",
61
- SCHEDULE: "schedule",
62
- };
63
70
  var ToolChatRecipient;
64
71
  (function (ToolChatRecipient) {
65
72
  ToolChatRecipient.visit = (value, visitor) => {
@@ -122,8 +129,6 @@ var ToolHandler;
122
129
  return visitor.chat(value.chat);
123
130
  if (value.sms !== undefined)
124
131
  return visitor.sms(value.sms);
125
- if (value.calendar !== undefined)
126
- return visitor.calendar(value.calendar);
127
132
  if (value.mcp !== undefined)
128
133
  return visitor.mcp(value.mcp);
129
134
  if (value.mcpTool !== undefined)
@@ -292,6 +292,9 @@ const de_CommandError = async (output, context) => {
292
292
  case "AlreadyExistException":
293
293
  case "smithy.framework#AlreadyExistException":
294
294
  throw await de_AlreadyExistExceptionRes(parsedOutput, context);
295
+ case "ForbiddenException":
296
+ case "smithy.framework#ForbiddenException":
297
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
295
298
  case "NotFoundException":
296
299
  case "smithy.framework#NotFoundException":
297
300
  throw await de_NotFoundExceptionRes(parsedOutput, context);
@@ -301,12 +304,12 @@ const de_CommandError = async (output, context) => {
301
304
  case "ToolExecutionServerException":
302
305
  case "wildix.wim.tools#ToolExecutionServerException":
303
306
  throw await de_ToolExecutionServerExceptionRes(parsedOutput, context);
307
+ case "UnauthorizedException":
308
+ case "smithy.framework#UnauthorizedException":
309
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
304
310
  case "ValidationException":
305
311
  case "smithy.framework#ValidationException":
306
312
  throw await de_ValidationExceptionRes(parsedOutput, context);
307
- case "ForbiddenException":
308
- case "smithy.framework#ForbiddenException":
309
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
310
313
  default:
311
314
  const parsedBody = parsedOutput.body;
312
315
  return throwDefaultError({
@@ -356,6 +359,19 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
356
359
  });
357
360
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
358
361
  };
362
+ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
363
+ const contents = (0, smithy_client_1.map)({});
364
+ const data = parsedOutput.body;
365
+ const doc = (0, smithy_client_1.take)(data, {
366
+ 'message': smithy_client_1.expectString,
367
+ });
368
+ Object.assign(contents, doc);
369
+ const exception = new models_0_1.UnauthorizedException({
370
+ $metadata: deserializeMetadata(parsedOutput),
371
+ ...contents
372
+ });
373
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
374
+ };
359
375
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
360
376
  const contents = (0, smithy_client_1.map)({});
361
377
  const data = parsedOutput.body;
@@ -35,6 +35,18 @@ export class NotFoundException extends __BaseException {
35
35
  Object.setPrototypeOf(this, NotFoundException.prototype);
36
36
  }
37
37
  }
38
+ export class UnauthorizedException extends __BaseException {
39
+ name = "UnauthorizedException";
40
+ $fault = "client";
41
+ constructor(opts) {
42
+ super({
43
+ name: "UnauthorizedException",
44
+ $fault: "client",
45
+ ...opts
46
+ });
47
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
48
+ }
49
+ }
38
50
  export class ValidationException extends __BaseException {
39
51
  name = "ValidationException";
40
52
  $fault = "client";
@@ -47,12 +59,6 @@ export class ValidationException extends __BaseException {
47
59
  Object.setPrototypeOf(this, ValidationException.prototype);
48
60
  }
49
61
  }
50
- export const ToolCalendarOperation = {
51
- CANCEL: "cancel",
52
- GET_SLOTS: "get_slots",
53
- RESCHEDULE: "reschedule",
54
- SCHEDULE: "schedule",
55
- };
56
62
  export var ToolChatRecipient;
57
63
  (function (ToolChatRecipient) {
58
64
  ToolChatRecipient.visit = (value, visitor) => {
@@ -115,8 +121,6 @@ export var ToolHandler;
115
121
  return visitor.chat(value.chat);
116
122
  if (value.sms !== undefined)
117
123
  return visitor.sms(value.sms);
118
- if (value.calendar !== undefined)
119
- return visitor.calendar(value.calendar);
120
124
  if (value.mcp !== undefined)
121
125
  return visitor.mcp(value.mcp);
122
126
  if (value.mcpTool !== undefined)
@@ -1,5 +1,5 @@
1
1
  import { ToolsServiceException as __BaseException } from "../models/ToolsServiceException";
2
- import { AlreadyExistException, ForbiddenException, NotFoundException, ToolExecutionException, ToolExecutionServerException, ValidationException, } from "../models/models_0";
2
+ import { AlreadyExistException, ForbiddenException, NotFoundException, ToolExecutionException, ToolExecutionServerException, UnauthorizedException, ValidationException, } from "../models/models_0";
3
3
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
5
5
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
@@ -273,6 +273,9 @@ const de_CommandError = async (output, context) => {
273
273
  case "AlreadyExistException":
274
274
  case "smithy.framework#AlreadyExistException":
275
275
  throw await de_AlreadyExistExceptionRes(parsedOutput, context);
276
+ case "ForbiddenException":
277
+ case "smithy.framework#ForbiddenException":
278
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
276
279
  case "NotFoundException":
277
280
  case "smithy.framework#NotFoundException":
278
281
  throw await de_NotFoundExceptionRes(parsedOutput, context);
@@ -282,12 +285,12 @@ const de_CommandError = async (output, context) => {
282
285
  case "ToolExecutionServerException":
283
286
  case "wildix.wim.tools#ToolExecutionServerException":
284
287
  throw await de_ToolExecutionServerExceptionRes(parsedOutput, context);
288
+ case "UnauthorizedException":
289
+ case "smithy.framework#UnauthorizedException":
290
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
285
291
  case "ValidationException":
286
292
  case "smithy.framework#ValidationException":
287
293
  throw await de_ValidationExceptionRes(parsedOutput, context);
288
- case "ForbiddenException":
289
- case "smithy.framework#ForbiddenException":
290
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
291
294
  default:
292
295
  const parsedBody = parsedOutput.body;
293
296
  return throwDefaultError({
@@ -337,6 +340,19 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
337
340
  });
338
341
  return __decorateServiceException(exception, parsedOutput.body);
339
342
  };
343
+ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
344
+ const contents = map({});
345
+ const data = parsedOutput.body;
346
+ const doc = take(data, {
347
+ 'message': __expectString,
348
+ });
349
+ Object.assign(contents, doc);
350
+ const exception = new UnauthorizedException({
351
+ $metadata: deserializeMetadata(parsedOutput),
352
+ ...contents
353
+ });
354
+ return __decorateServiceException(exception, parsedOutput.body);
355
+ };
340
356
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
341
357
  const contents = map({});
342
358
  const data = parsedOutput.body;
@@ -102,7 +102,11 @@ declare const CreateToolCommand_base: {
102
102
  * },
103
103
  * timeout: Number("int"),
104
104
  * },
105
- * search: {},
105
+ * search: { // ToolSearchConfig
106
+ * includeDomains: [ // ToolSearchIncludeDomainsList
107
+ * "STRING_VALUE",
108
+ * ],
109
+ * },
106
110
  * chat: { // ToolChatHandler
107
111
  * config: { // ToolChatConfig
108
112
  * recipient: { // ToolChatRecipient Union: only one key present
@@ -120,9 +124,6 @@ declare const CreateToolCommand_base: {
120
124
  * message: "STRING_VALUE", // required
121
125
  * },
122
126
  * },
123
- * calendar: { // ToolCalendarConfig
124
- * operation: "schedule" || "reschedule" || "cancel" || "get_slots", // required
125
- * },
126
127
  * mcp: { // ToolMcpHandler
127
128
  * serverUrl: "STRING_VALUE", // required
128
129
  * authorization: { // ToolMcpAuthorization Union: only one key present
@@ -215,7 +216,11 @@ declare const CreateToolCommand_base: {
215
216
  * // },
216
217
  * // timeout: Number("int"),
217
218
  * // },
218
- * // search: {},
219
+ * // search: { // ToolSearchConfig
220
+ * // includeDomains: [ // ToolSearchIncludeDomainsList
221
+ * // "STRING_VALUE",
222
+ * // ],
223
+ * // },
219
224
  * // chat: { // ToolChatHandler
220
225
  * // config: { // ToolChatConfig
221
226
  * // recipient: { // ToolChatRecipient Union: only one key present
@@ -233,9 +238,6 @@ declare const CreateToolCommand_base: {
233
238
  * // message: "STRING_VALUE", // required
234
239
  * // },
235
240
  * // },
236
- * // calendar: { // ToolCalendarConfig
237
- * // operation: "schedule" || "reschedule" || "cancel" || "get_slots", // required
238
- * // },
239
241
  * // mcp: { // ToolMcpHandler
240
242
  * // serverUrl: "STRING_VALUE", // required
241
243
  * // authorization: { // ToolMcpAuthorization Union: only one key present
@@ -270,6 +272,10 @@ declare const CreateToolCommand_base: {
270
272
  *
271
273
  * @throws {@link AlreadyExistException} (client fault)
272
274
  *
275
+ * @throws {@link UnauthorizedException} (client fault)
276
+ *
277
+ * @throws {@link ForbiddenException} (client fault)
278
+ *
273
279
  * @throws {@link NotFoundException} (client fault)
274
280
  *
275
281
  * @throws {@link ToolExecutionException} (client fault)
@@ -54,6 +54,10 @@ declare const DeleteToolCommand_base: {
54
54
  *
55
55
  * @throws {@link NotFoundException} (client fault)
56
56
  *
57
+ * @throws {@link UnauthorizedException} (client fault)
58
+ *
59
+ * @throws {@link ForbiddenException} (client fault)
60
+ *
57
61
  * @throws {@link AlreadyExistException} (client fault)
58
62
  *
59
63
  * @throws {@link ToolExecutionException} (client fault)
@@ -71,6 +71,10 @@ declare const DescribeToolsCommand_base: {
71
71
  *
72
72
  * @throws {@link ValidationException} (client fault)
73
73
  *
74
+ * @throws {@link UnauthorizedException} (client fault)
75
+ *
76
+ * @throws {@link ForbiddenException} (client fault)
77
+ *
74
78
  * @throws {@link NotFoundException} (client fault)
75
79
  *
76
80
  * @throws {@link AlreadyExistException} (client fault)
@@ -68,6 +68,10 @@ declare const DiscoverToolsCommand_base: {
68
68
  *
69
69
  * @throws {@link ValidationException} (client fault)
70
70
  *
71
+ * @throws {@link UnauthorizedException} (client fault)
72
+ *
73
+ * @throws {@link ForbiddenException} (client fault)
74
+ *
71
75
  * @throws {@link NotFoundException} (client fault)
72
76
  *
73
77
  * @throws {@link AlreadyExistException} (client fault)
@@ -67,6 +67,8 @@ declare const ExecuteToolCommand_base: {
67
67
  *
68
68
  * @throws {@link ToolExecutionServerException} (server fault)
69
69
  *
70
+ * @throws {@link UnauthorizedException} (client fault)
71
+ *
70
72
  * @throws {@link AlreadyExistException} (client fault)
71
73
  *
72
74
  * @throws {@link ToolsServiceException}
@@ -110,7 +110,11 @@ declare const GetToolCommand_base: {
110
110
  * // },
111
111
  * // timeout: Number("int"),
112
112
  * // },
113
- * // search: {},
113
+ * // search: { // ToolSearchConfig
114
+ * // includeDomains: [ // ToolSearchIncludeDomainsList
115
+ * // "STRING_VALUE",
116
+ * // ],
117
+ * // },
114
118
  * // chat: { // ToolChatHandler
115
119
  * // config: { // ToolChatConfig
116
120
  * // recipient: { // ToolChatRecipient Union: only one key present
@@ -128,9 +132,6 @@ declare const GetToolCommand_base: {
128
132
  * // message: "STRING_VALUE", // required
129
133
  * // },
130
134
  * // },
131
- * // calendar: { // ToolCalendarConfig
132
- * // operation: "schedule" || "reschedule" || "cancel" || "get_slots", // required
133
- * // },
134
135
  * // mcp: { // ToolMcpHandler
135
136
  * // serverUrl: "STRING_VALUE", // required
136
137
  * // authorization: { // ToolMcpAuthorization Union: only one key present
@@ -165,6 +166,10 @@ declare const GetToolCommand_base: {
165
166
  *
166
167
  * @throws {@link NotFoundException} (client fault)
167
168
  *
169
+ * @throws {@link UnauthorizedException} (client fault)
170
+ *
171
+ * @throws {@link ForbiddenException} (client fault)
172
+ *
168
173
  * @throws {@link AlreadyExistException} (client fault)
169
174
  *
170
175
  * @throws {@link ToolExecutionException} (client fault)
@@ -110,7 +110,11 @@ declare const ListToolsCommand_base: {
110
110
  * // },
111
111
  * // timeout: Number("int"),
112
112
  * // },
113
- * // search: {},
113
+ * // search: { // ToolSearchConfig
114
+ * // includeDomains: [ // ToolSearchIncludeDomainsList
115
+ * // "STRING_VALUE",
116
+ * // ],
117
+ * // },
114
118
  * // chat: { // ToolChatHandler
115
119
  * // config: { // ToolChatConfig
116
120
  * // recipient: { // ToolChatRecipient Union: only one key present
@@ -128,9 +132,6 @@ declare const ListToolsCommand_base: {
128
132
  * // message: "STRING_VALUE", // required
129
133
  * // },
130
134
  * // },
131
- * // calendar: { // ToolCalendarConfig
132
- * // operation: "schedule" || "reschedule" || "cancel" || "get_slots", // required
133
- * // },
134
135
  * // mcp: { // ToolMcpHandler
135
136
  * // serverUrl: "STRING_VALUE", // required
136
137
  * // authorization: { // ToolMcpAuthorization Union: only one key present
@@ -164,6 +165,10 @@ declare const ListToolsCommand_base: {
164
165
  *
165
166
  * @throws {@link ValidationException} (client fault)
166
167
  *
168
+ * @throws {@link UnauthorizedException} (client fault)
169
+ *
170
+ * @throws {@link ForbiddenException} (client fault)
171
+ *
167
172
  * @throws {@link NotFoundException} (client fault)
168
173
  *
169
174
  * @throws {@link AlreadyExistException} (client fault)
@@ -103,7 +103,11 @@ declare const UpdateToolCommand_base: {
103
103
  * },
104
104
  * timeout: Number("int"),
105
105
  * },
106
- * search: {},
106
+ * search: { // ToolSearchConfig
107
+ * includeDomains: [ // ToolSearchIncludeDomainsList
108
+ * "STRING_VALUE",
109
+ * ],
110
+ * },
107
111
  * chat: { // ToolChatHandler
108
112
  * config: { // ToolChatConfig
109
113
  * recipient: { // ToolChatRecipient Union: only one key present
@@ -121,9 +125,6 @@ declare const UpdateToolCommand_base: {
121
125
  * message: "STRING_VALUE", // required
122
126
  * },
123
127
  * },
124
- * calendar: { // ToolCalendarConfig
125
- * operation: "schedule" || "reschedule" || "cancel" || "get_slots", // required
126
- * },
127
128
  * mcp: { // ToolMcpHandler
128
129
  * serverUrl: "STRING_VALUE", // required
129
130
  * authorization: { // ToolMcpAuthorization Union: only one key present
@@ -216,7 +217,11 @@ declare const UpdateToolCommand_base: {
216
217
  * // },
217
218
  * // timeout: Number("int"),
218
219
  * // },
219
- * // search: {},
220
+ * // search: { // ToolSearchConfig
221
+ * // includeDomains: [ // ToolSearchIncludeDomainsList
222
+ * // "STRING_VALUE",
223
+ * // ],
224
+ * // },
220
225
  * // chat: { // ToolChatHandler
221
226
  * // config: { // ToolChatConfig
222
227
  * // recipient: { // ToolChatRecipient Union: only one key present
@@ -234,9 +239,6 @@ declare const UpdateToolCommand_base: {
234
239
  * // message: "STRING_VALUE", // required
235
240
  * // },
236
241
  * // },
237
- * // calendar: { // ToolCalendarConfig
238
- * // operation: "schedule" || "reschedule" || "cancel" || "get_slots", // required
239
- * // },
240
242
  * // mcp: { // ToolMcpHandler
241
243
  * // serverUrl: "STRING_VALUE", // required
242
244
  * // authorization: { // ToolMcpAuthorization Union: only one key present
@@ -271,6 +273,10 @@ declare const UpdateToolCommand_base: {
271
273
  *
272
274
  * @throws {@link NotFoundException} (client fault)
273
275
  *
276
+ * @throws {@link UnauthorizedException} (client fault)
277
+ *
278
+ * @throws {@link ForbiddenException} (client fault)
279
+ *
274
280
  * @throws {@link AlreadyExistException} (client fault)
275
281
  *
276
282
  * @throws {@link ToolExecutionException} (client fault)
@@ -37,37 +37,24 @@ export declare class NotFoundException extends __BaseException {
37
37
  /**
38
38
  * @public
39
39
  */
40
- export declare class ValidationException extends __BaseException {
41
- readonly name: "ValidationException";
40
+ export declare class UnauthorizedException extends __BaseException {
41
+ readonly name: "UnauthorizedException";
42
42
  readonly $fault: "client";
43
43
  /**
44
44
  * @internal
45
45
  */
46
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
46
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
47
47
  }
48
- /**
49
- * @public
50
- * @enum
51
- */
52
- export declare const ToolCalendarOperation: {
53
- readonly CANCEL: "cancel";
54
- readonly GET_SLOTS: "get_slots";
55
- readonly RESCHEDULE: "reschedule";
56
- readonly SCHEDULE: "schedule";
57
- };
58
48
  /**
59
49
  * @public
60
50
  */
61
- export type ToolCalendarOperation = typeof ToolCalendarOperation[keyof typeof ToolCalendarOperation];
62
- /**
63
- * @public
64
- */
65
- export interface ToolCalendarConfig {
51
+ export declare class ValidationException extends __BaseException {
52
+ readonly name: "ValidationException";
53
+ readonly $fault: "client";
66
54
  /**
67
- * Type of calendar operation to perform
68
- * @public
55
+ * @internal
69
56
  */
70
- operation: ToolCalendarOperation;
57
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
71
58
  }
72
59
  /**
73
60
  * @public
@@ -368,10 +355,15 @@ export interface ToolMcpToolHandler {
368
355
  mcpToolName: string;
369
356
  }
370
357
  /**
371
- * Search handler configuration. The search tool requires no configuration - API key comes from AppConfig and query comes from tool input.
358
+ * Search handler configuration. API key comes from AppConfig; query comes from tool input. Optionally restrict results to specific domains.
372
359
  * @public
373
360
  */
374
361
  export interface ToolSearchConfig {
362
+ /**
363
+ * When non-empty, only return results from these domains or hosts. Customers may enter plain hostnames (example.com) or full URLs (https://example.com/path) — URLs are normalized to hostnames before calling the search API.
364
+ * @public
365
+ */
366
+ includeDomains?: (string)[] | undefined;
375
367
  }
376
368
  /**
377
369
  * @public
@@ -566,7 +558,7 @@ export interface ToolWebhookConfig {
566
558
  /**
567
559
  * @public
568
560
  */
569
- export type ToolHandler = ToolHandler.CalendarMember | ToolHandler.ChatMember | ToolHandler.EmailMember | ToolHandler.McpMember | ToolHandler.McpToolMember | ToolHandler.SearchMember | ToolHandler.SmsMember | ToolHandler.WebhookMember | ToolHandler.$UnknownMember;
561
+ export type ToolHandler = ToolHandler.ChatMember | ToolHandler.EmailMember | ToolHandler.McpMember | ToolHandler.McpToolMember | ToolHandler.SearchMember | ToolHandler.SmsMember | ToolHandler.WebhookMember | ToolHandler.$UnknownMember;
570
562
  /**
571
563
  * @public
572
564
  */
@@ -577,7 +569,6 @@ export declare namespace ToolHandler {
577
569
  search?: never;
578
570
  chat?: never;
579
571
  sms?: never;
580
- calendar?: never;
581
572
  mcp?: never;
582
573
  mcpTool?: never;
583
574
  $unknown?: never;
@@ -588,13 +579,12 @@ export declare namespace ToolHandler {
588
579
  search?: never;
589
580
  chat?: never;
590
581
  sms?: never;
591
- calendar?: never;
592
582
  mcp?: never;
593
583
  mcpTool?: never;
594
584
  $unknown?: never;
595
585
  }
596
586
  /**
597
- * Search handler configuration. The search tool requires no configuration - API key comes from AppConfig and query comes from tool input.
587
+ * Search handler configuration. API key comes from AppConfig; query comes from tool input. Optionally restrict results to specific domains.
598
588
  * @public
599
589
  */
600
590
  interface SearchMember {
@@ -603,7 +593,6 @@ export declare namespace ToolHandler {
603
593
  search: ToolSearchConfig;
604
594
  chat?: never;
605
595
  sms?: never;
606
- calendar?: never;
607
596
  mcp?: never;
608
597
  mcpTool?: never;
609
598
  $unknown?: never;
@@ -614,7 +603,6 @@ export declare namespace ToolHandler {
614
603
  search?: never;
615
604
  chat: ToolChatHandler;
616
605
  sms?: never;
617
- calendar?: never;
618
606
  mcp?: never;
619
607
  mcpTool?: never;
620
608
  $unknown?: never;
@@ -625,18 +613,6 @@ export declare namespace ToolHandler {
625
613
  search?: never;
626
614
  chat?: never;
627
615
  sms: ToolSmsHandler;
628
- calendar?: never;
629
- mcp?: never;
630
- mcpTool?: never;
631
- $unknown?: never;
632
- }
633
- interface CalendarMember {
634
- email?: never;
635
- webhook?: never;
636
- search?: never;
637
- chat?: never;
638
- sms?: never;
639
- calendar: ToolCalendarConfig;
640
616
  mcp?: never;
641
617
  mcpTool?: never;
642
618
  $unknown?: never;
@@ -647,7 +623,6 @@ export declare namespace ToolHandler {
647
623
  search?: never;
648
624
  chat?: never;
649
625
  sms?: never;
650
- calendar?: never;
651
626
  mcp: ToolMcpHandler;
652
627
  mcpTool?: never;
653
628
  $unknown?: never;
@@ -658,7 +633,6 @@ export declare namespace ToolHandler {
658
633
  search?: never;
659
634
  chat?: never;
660
635
  sms?: never;
661
- calendar?: never;
662
636
  mcp?: never;
663
637
  mcpTool: ToolMcpToolHandler;
664
638
  $unknown?: never;
@@ -672,7 +646,6 @@ export declare namespace ToolHandler {
672
646
  search?: never;
673
647
  chat?: never;
674
648
  sms?: never;
675
- calendar?: never;
676
649
  mcp?: never;
677
650
  mcpTool?: never;
678
651
  $unknown: [string, any];
@@ -683,7 +656,6 @@ export declare namespace ToolHandler {
683
656
  search: (value: ToolSearchConfig) => T;
684
657
  chat: (value: ToolChatHandler) => T;
685
658
  sms: (value: ToolSmsHandler) => T;
686
- calendar: (value: ToolCalendarConfig) => T;
687
659
  mcp: (value: ToolMcpHandler) => T;
688
660
  mcpTool: (value: ToolMcpToolHandler) => T;
689
661
  _: (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.43",
4
+ "version": "1.0.1",
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",
@@ -79,4 +79,4 @@
79
79
  "react-native": {
80
80
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
81
81
  }
82
- }
82
+ }