@wildix/wim-tools-client 0.0.22 → 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.
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-es/models/models_0.js +2 -0
- package/dist-types/commands/CreateToolCommand.d.ts +4 -0
- package/dist-types/commands/DescribeToolsCommand.d.ts +1 -0
- package/dist-types/commands/GetToolCommand.d.ts +2 -0
- package/dist-types/commands/ListToolsCommand.d.ts +2 -0
- package/dist-types/commands/UpdateToolCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +26 -1
- package/package.json +1 -1
|
@@ -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 = {}));
|
|
@@ -44,6 +44,7 @@ declare const CreateToolCommand_base: {
|
|
|
44
44
|
* { // ToolVariable
|
|
45
45
|
* name: "STRING_VALUE", // required
|
|
46
46
|
* type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
47
|
+
* optional: true || false, // required
|
|
47
48
|
* },
|
|
48
49
|
* ],
|
|
49
50
|
* },
|
|
@@ -118,6 +119,7 @@ declare const CreateToolCommand_base: {
|
|
|
118
119
|
* },
|
|
119
120
|
* },
|
|
120
121
|
* },
|
|
122
|
+
* search: {},
|
|
121
123
|
* },
|
|
122
124
|
* };
|
|
123
125
|
* const command = new CreateToolCommand(input);
|
|
@@ -134,6 +136,7 @@ declare const CreateToolCommand_base: {
|
|
|
134
136
|
* // { // ToolVariable
|
|
135
137
|
* // name: "STRING_VALUE", // required
|
|
136
138
|
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
139
|
+
* // optional: true || false, // required
|
|
137
140
|
* // },
|
|
138
141
|
* // ],
|
|
139
142
|
* // },
|
|
@@ -208,6 +211,7 @@ declare const CreateToolCommand_base: {
|
|
|
208
211
|
* // },
|
|
209
212
|
* // },
|
|
210
213
|
* // },
|
|
214
|
+
* // search: {},
|
|
211
215
|
* // },
|
|
212
216
|
* // },
|
|
213
217
|
* // };
|
|
@@ -52,6 +52,7 @@ declare const DescribeToolsCommand_base: {
|
|
|
52
52
|
* // { // ToolVariable
|
|
53
53
|
* // name: "STRING_VALUE", // required
|
|
54
54
|
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
55
|
+
* // optional: true || false, // required
|
|
55
56
|
* // },
|
|
56
57
|
* // ],
|
|
57
58
|
* // },
|
|
@@ -52,6 +52,7 @@ declare const GetToolCommand_base: {
|
|
|
52
52
|
* // { // ToolVariable
|
|
53
53
|
* // name: "STRING_VALUE", // required
|
|
54
54
|
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
55
|
+
* // optional: true || false, // required
|
|
55
56
|
* // },
|
|
56
57
|
* // ],
|
|
57
58
|
* // },
|
|
@@ -126,6 +127,7 @@ declare const GetToolCommand_base: {
|
|
|
126
127
|
* // },
|
|
127
128
|
* // },
|
|
128
129
|
* // },
|
|
130
|
+
* // search: {},
|
|
129
131
|
* // },
|
|
130
132
|
* // },
|
|
131
133
|
* // };
|
|
@@ -52,6 +52,7 @@ declare const ListToolsCommand_base: {
|
|
|
52
52
|
* // { // ToolVariable
|
|
53
53
|
* // name: "STRING_VALUE", // required
|
|
54
54
|
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
55
|
+
* // optional: true || false, // required
|
|
55
56
|
* // },
|
|
56
57
|
* // ],
|
|
57
58
|
* // },
|
|
@@ -126,6 +127,7 @@ declare const ListToolsCommand_base: {
|
|
|
126
127
|
* // },
|
|
127
128
|
* // },
|
|
128
129
|
* // },
|
|
130
|
+
* // search: {},
|
|
129
131
|
* // },
|
|
130
132
|
* // },
|
|
131
133
|
* // ],
|
|
@@ -45,6 +45,7 @@ declare const UpdateToolCommand_base: {
|
|
|
45
45
|
* { // ToolVariable
|
|
46
46
|
* name: "STRING_VALUE", // required
|
|
47
47
|
* type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
48
|
+
* optional: true || false, // required
|
|
48
49
|
* },
|
|
49
50
|
* ],
|
|
50
51
|
* },
|
|
@@ -119,6 +120,7 @@ declare const UpdateToolCommand_base: {
|
|
|
119
120
|
* },
|
|
120
121
|
* },
|
|
121
122
|
* },
|
|
123
|
+
* search: {},
|
|
122
124
|
* },
|
|
123
125
|
* };
|
|
124
126
|
* const command = new UpdateToolCommand(input);
|
|
@@ -135,6 +137,7 @@ declare const UpdateToolCommand_base: {
|
|
|
135
137
|
* // { // ToolVariable
|
|
136
138
|
* // name: "STRING_VALUE", // required
|
|
137
139
|
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
140
|
+
* // optional: true || false, // required
|
|
138
141
|
* // },
|
|
139
142
|
* // ],
|
|
140
143
|
* // },
|
|
@@ -209,6 +212,7 @@ declare const UpdateToolCommand_base: {
|
|
|
209
212
|
* // },
|
|
210
213
|
* // },
|
|
211
214
|
* // },
|
|
215
|
+
* // search: {},
|
|
212
216
|
* // },
|
|
213
217
|
* // },
|
|
214
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;
|
|
@@ -465,6 +485,11 @@ export interface ToolVariable {
|
|
|
465
485
|
* @public
|
|
466
486
|
*/
|
|
467
487
|
type: ToolVariableType;
|
|
488
|
+
/**
|
|
489
|
+
* Whether the variable is optional
|
|
490
|
+
* @public
|
|
491
|
+
*/
|
|
492
|
+
optional: boolean;
|
|
468
493
|
}
|
|
469
494
|
/**
|
|
470
495
|
* @public
|
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.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",
|