@wildix/wim-tools-client 0.0.23 → 0.0.24

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.
@@ -89,6 +89,8 @@ var ToolHandler;
89
89
  return visitor.email(value.email);
90
90
  if (value.webhook !== undefined)
91
91
  return visitor.webhook(value.webhook);
92
+ if (value.search !== undefined)
93
+ return visitor.search(value.search);
92
94
  return visitor._(value.$unknown[0], value.$unknown[1]);
93
95
  };
94
96
  })(ToolHandler || (exports.ToolHandler = ToolHandler = {}));
@@ -83,6 +83,8 @@ export var ToolHandler;
83
83
  return visitor.email(value.email);
84
84
  if (value.webhook !== undefined)
85
85
  return visitor.webhook(value.webhook);
86
+ if (value.search !== undefined)
87
+ return visitor.search(value.search);
86
88
  return visitor._(value.$unknown[0], value.$unknown[1]);
87
89
  };
88
90
  })(ToolHandler || (ToolHandler = {}));
@@ -119,6 +119,7 @@ declare const CreateToolCommand_base: {
119
119
  * },
120
120
  * },
121
121
  * },
122
+ * search: {},
122
123
  * },
123
124
  * };
124
125
  * const command = new CreateToolCommand(input);
@@ -210,6 +211,7 @@ declare const CreateToolCommand_base: {
210
211
  * // },
211
212
  * // },
212
213
  * // },
214
+ * // search: {},
213
215
  * // },
214
216
  * // },
215
217
  * // };
@@ -127,6 +127,7 @@ declare const GetToolCommand_base: {
127
127
  * // },
128
128
  * // },
129
129
  * // },
130
+ * // search: {},
130
131
  * // },
131
132
  * // },
132
133
  * // };
@@ -127,6 +127,7 @@ declare const ListToolsCommand_base: {
127
127
  * // },
128
128
  * // },
129
129
  * // },
130
+ * // search: {},
130
131
  * // },
131
132
  * // },
132
133
  * // ],
@@ -120,6 +120,7 @@ declare const UpdateToolCommand_base: {
120
120
  * },
121
121
  * },
122
122
  * },
123
+ * search: {},
123
124
  * },
124
125
  * };
125
126
  * const command = new UpdateToolCommand(input);
@@ -211,6 +212,7 @@ declare const UpdateToolCommand_base: {
211
212
  * // },
212
213
  * // },
213
214
  * // },
215
+ * // search: {},
214
216
  * // },
215
217
  * // },
216
218
  * // };
@@ -230,6 +230,12 @@ export declare namespace ToolEmailHandler {
230
230
  }
231
231
  const visit: <T>(value: ToolEmailHandler, visitor: Visitor<T>) => T;
232
232
  }
233
+ /**
234
+ * Search handler configuration. The search tool requires no configuration - API key comes from AppConfig and query comes from tool input.
235
+ * @public
236
+ */
237
+ export interface ToolSearchConfig {
238
+ }
233
239
  /**
234
240
  * @public
235
241
  */
@@ -398,7 +404,7 @@ export interface ToolWebhookConfig {
398
404
  /**
399
405
  * @public
400
406
  */
401
- export type ToolHandler = ToolHandler.EmailMember | ToolHandler.WebhookMember | ToolHandler.$UnknownMember;
407
+ export type ToolHandler = ToolHandler.EmailMember | ToolHandler.SearchMember | ToolHandler.WebhookMember | ToolHandler.$UnknownMember;
402
408
  /**
403
409
  * @public
404
410
  */
@@ -410,6 +416,7 @@ export declare namespace ToolHandler {
410
416
  interface EmailMember {
411
417
  email: ToolEmailHandler;
412
418
  webhook?: never;
419
+ search?: never;
413
420
  $unknown?: never;
414
421
  }
415
422
  /**
@@ -419,6 +426,17 @@ export declare namespace ToolHandler {
419
426
  interface WebhookMember {
420
427
  email?: never;
421
428
  webhook: ToolWebhookConfig;
429
+ search?: never;
430
+ $unknown?: never;
431
+ }
432
+ /**
433
+ * Search handler of the tool.
434
+ * @public
435
+ */
436
+ interface SearchMember {
437
+ email?: never;
438
+ webhook?: never;
439
+ search: ToolSearchConfig;
422
440
  $unknown?: never;
423
441
  }
424
442
  /**
@@ -427,11 +445,13 @@ export declare namespace ToolHandler {
427
445
  interface $UnknownMember {
428
446
  email?: never;
429
447
  webhook?: never;
448
+ search?: never;
430
449
  $unknown: [string, any];
431
450
  }
432
451
  interface Visitor<T> {
433
452
  email: (value: ToolEmailHandler) => T;
434
453
  webhook: (value: ToolWebhookConfig) => T;
454
+ search: (value: ToolSearchConfig) => T;
435
455
  _: (name: string, value: any) => T;
436
456
  }
437
457
  const visit: <T>(value: ToolHandler, visitor: Visitor<T>) => 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.23",
4
+ "version": "0.0.24",
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",