@wildix/wim-tools-client 0.0.16 → 0.0.18
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 +31 -44
- package/dist-cjs/protocols/Aws_restJson1.js +30 -111
- package/dist-es/models/models_0.js +28 -42
- package/dist-es/protocols/Aws_restJson1.js +32 -113
- package/dist-types/commands/CreateToolCommand.d.ts +16 -98
- package/dist-types/commands/DeleteToolCommand.d.ts +6 -4
- package/dist-types/commands/DescribeToolsCommand.d.ts +6 -5
- package/dist-types/commands/ExecuteToolCommand.d.ts +6 -5
- package/dist-types/commands/GetToolCommand.d.ts +11 -51
- package/dist-types/commands/ListToolsCommand.d.ts +11 -51
- package/dist-types/commands/UpdateToolCommand.d.ts +16 -98
- package/dist-types/models/models_0.d.ts +326 -199
- package/dist-types/runtimeConfig.browser.d.ts +6 -1
- package/dist-types/runtimeConfig.d.ts +6 -1
- package/dist-types/runtimeConfig.native.d.ts +6 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToolsServiceException as __BaseException } from "../models/ToolsServiceException";
|
|
2
|
-
import { AlreadyExistException, NotFoundException, ToolExecutionException,
|
|
3
|
-
import {
|
|
2
|
+
import { AlreadyExistException, NotFoundException, ToolExecutionException, ToolExecutionServerException, ValidationException, } from "../models/models_0";
|
|
3
|
+
import { 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, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
6
6
|
export const se_CreateToolCommand = async (input, context) => {
|
|
@@ -10,13 +10,13 @@ export const se_CreateToolCommand = async (input, context) => {
|
|
|
10
10
|
};
|
|
11
11
|
b.bp("/v1/tools");
|
|
12
12
|
const query = map({
|
|
13
|
-
[_c]: [, input[
|
|
13
|
+
[_c]: [, input[_cI]],
|
|
14
14
|
});
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify(take(input, {
|
|
17
17
|
'category': [],
|
|
18
18
|
'description': [],
|
|
19
|
-
'handler': _ =>
|
|
19
|
+
'handler': _ => _json(_),
|
|
20
20
|
'input': _ => _json(_),
|
|
21
21
|
'name': [],
|
|
22
22
|
}));
|
|
@@ -32,7 +32,7 @@ export const se_DeleteToolCommand = async (input, context) => {
|
|
|
32
32
|
b.bp("/v1/tools/{toolId}");
|
|
33
33
|
b.p('toolId', () => input.toolId, '{toolId}', false);
|
|
34
34
|
const query = map({
|
|
35
|
-
[_c]: [, input[
|
|
35
|
+
[_c]: [, input[_cI]],
|
|
36
36
|
});
|
|
37
37
|
let body;
|
|
38
38
|
b.m("DELETE")
|
|
@@ -48,7 +48,7 @@ export const se_DescribeToolsCommand = async (input, context) => {
|
|
|
48
48
|
};
|
|
49
49
|
b.bp("/v1/tools/describe");
|
|
50
50
|
const query = map({
|
|
51
|
-
[_c]: [, input[
|
|
51
|
+
[_c]: [, input[_cI]],
|
|
52
52
|
});
|
|
53
53
|
let body;
|
|
54
54
|
body = JSON.stringify(take(input, {
|
|
@@ -67,7 +67,7 @@ export const se_ExecuteToolCommand = async (input, context) => {
|
|
|
67
67
|
};
|
|
68
68
|
b.bp("/v1/tools/execute");
|
|
69
69
|
const query = map({
|
|
70
|
-
[_c]: [, input[
|
|
70
|
+
[_c]: [, input[_cI]],
|
|
71
71
|
});
|
|
72
72
|
let body;
|
|
73
73
|
body = JSON.stringify(take(input, {
|
|
@@ -88,7 +88,7 @@ export const se_GetToolCommand = async (input, context) => {
|
|
|
88
88
|
b.bp("/v1/tools/{toolId}");
|
|
89
89
|
b.p('toolId', () => input.toolId, '{toolId}', false);
|
|
90
90
|
const query = map({
|
|
91
|
-
[_c]: [, input[
|
|
91
|
+
[_c]: [, input[_cI]],
|
|
92
92
|
});
|
|
93
93
|
let body;
|
|
94
94
|
b.m("GET")
|
|
@@ -102,7 +102,7 @@ export const se_ListToolsCommand = async (input, context) => {
|
|
|
102
102
|
const headers = {};
|
|
103
103
|
b.bp("/v1/tools");
|
|
104
104
|
const query = map({
|
|
105
|
-
[_c]: [, input[
|
|
105
|
+
[_c]: [, input[_cI]],
|
|
106
106
|
});
|
|
107
107
|
let body;
|
|
108
108
|
b.m("GET")
|
|
@@ -119,13 +119,13 @@ export const se_UpdateToolCommand = async (input, context) => {
|
|
|
119
119
|
b.bp("/v1/tools/{toolId}");
|
|
120
120
|
b.p('toolId', () => input.toolId, '{toolId}', false);
|
|
121
121
|
const query = map({
|
|
122
|
-
[_c]: [, input[
|
|
122
|
+
[_c]: [, input[_cI]],
|
|
123
123
|
});
|
|
124
124
|
let body;
|
|
125
125
|
body = JSON.stringify(take(input, {
|
|
126
126
|
'category': [],
|
|
127
127
|
'description': [],
|
|
128
|
-
'handler': _ =>
|
|
128
|
+
'handler': _ => _json(_),
|
|
129
129
|
'input': _ => _json(_),
|
|
130
130
|
'name': [],
|
|
131
131
|
}));
|
|
@@ -144,7 +144,7 @@ export const de_CreateToolCommand = async (output, context) => {
|
|
|
144
144
|
});
|
|
145
145
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
146
146
|
const doc = take(data, {
|
|
147
|
-
'tool':
|
|
147
|
+
'tool': _json,
|
|
148
148
|
});
|
|
149
149
|
Object.assign(contents, doc);
|
|
150
150
|
return contents;
|
|
@@ -183,7 +183,6 @@ export const de_ExecuteToolCommand = async (output, context) => {
|
|
|
183
183
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
184
184
|
const doc = take(data, {
|
|
185
185
|
'result': _ => de_ToolExecutionResult(_, context),
|
|
186
|
-
'traceId': __expectString,
|
|
187
186
|
});
|
|
188
187
|
Object.assign(contents, doc);
|
|
189
188
|
return contents;
|
|
@@ -197,7 +196,7 @@ export const de_GetToolCommand = async (output, context) => {
|
|
|
197
196
|
});
|
|
198
197
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
199
198
|
const doc = take(data, {
|
|
200
|
-
'tool':
|
|
199
|
+
'tool': _json,
|
|
201
200
|
});
|
|
202
201
|
Object.assign(contents, doc);
|
|
203
202
|
return contents;
|
|
@@ -211,7 +210,7 @@ export const de_ListToolsCommand = async (output, context) => {
|
|
|
211
210
|
});
|
|
212
211
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
213
212
|
const doc = take(data, {
|
|
214
|
-
'tools':
|
|
213
|
+
'tools': _json,
|
|
215
214
|
});
|
|
216
215
|
Object.assign(contents, doc);
|
|
217
216
|
return contents;
|
|
@@ -225,7 +224,7 @@ export const de_UpdateToolCommand = async (output, context) => {
|
|
|
225
224
|
});
|
|
226
225
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
227
226
|
const doc = take(data, {
|
|
228
|
-
'tool':
|
|
227
|
+
'tool': _json,
|
|
229
228
|
});
|
|
230
229
|
Object.assign(contents, doc);
|
|
231
230
|
return contents;
|
|
@@ -246,6 +245,9 @@ const de_CommandError = async (output, context) => {
|
|
|
246
245
|
case "ToolExecutionException":
|
|
247
246
|
case "wildix.wim.tools#ToolExecutionException":
|
|
248
247
|
throw await de_ToolExecutionExceptionRes(parsedOutput, context);
|
|
248
|
+
case "ToolExecutionServerException":
|
|
249
|
+
case "wildix.wim.tools#ToolExecutionServerException":
|
|
250
|
+
throw await de_ToolExecutionServerExceptionRes(parsedOutput, context);
|
|
249
251
|
case "ValidationException":
|
|
250
252
|
case "smithy.framework#ValidationException":
|
|
251
253
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -312,54 +314,26 @@ const de_ToolExecutionExceptionRes = async (parsedOutput, context) => {
|
|
|
312
314
|
});
|
|
313
315
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
314
316
|
};
|
|
315
|
-
const
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
const
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
email: value => ({ "email": _json(value) }),
|
|
322
|
-
mcp: value => ({ "mcp": se_ToolMcpHandler(value, context) }),
|
|
323
|
-
sms: value => ({ "sms": _json(value) }),
|
|
324
|
-
webhook: value => ({ "webhook": _json(value) }),
|
|
325
|
-
_: (name, value) => ({ [name]: value })
|
|
326
|
-
});
|
|
327
|
-
};
|
|
328
|
-
const se_ToolMcpHandler = (input, context) => {
|
|
329
|
-
return take(input, {
|
|
330
|
-
'authentication': _json,
|
|
331
|
-
'serverUrl': [],
|
|
332
|
-
'timeout': [],
|
|
333
|
-
'tools': _ => se_ToolMcpToolConfigList(_, context),
|
|
334
|
-
'transport': [],
|
|
317
|
+
const de_ToolExecutionServerExceptionRes = async (parsedOutput, context) => {
|
|
318
|
+
const contents = map({});
|
|
319
|
+
const data = parsedOutput.body;
|
|
320
|
+
const doc = take(data, {
|
|
321
|
+
'details': _ => de_Document(_, context),
|
|
322
|
+
'message': __expectString,
|
|
335
323
|
});
|
|
336
|
-
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
'mcpToolId': [],
|
|
341
|
-
'parameters': _ => se_Document(_, context),
|
|
324
|
+
Object.assign(contents, doc);
|
|
325
|
+
const exception = new ToolExecutionServerException({
|
|
326
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
327
|
+
...contents
|
|
342
328
|
});
|
|
329
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
343
330
|
};
|
|
344
|
-
const
|
|
345
|
-
return input
|
|
346
|
-
return se_ToolMcpToolConfig(entry, context);
|
|
347
|
-
});
|
|
331
|
+
const se_Document = (input, context) => {
|
|
332
|
+
return input;
|
|
348
333
|
};
|
|
349
334
|
const de_Document = (output, context) => {
|
|
350
335
|
return output;
|
|
351
336
|
};
|
|
352
|
-
const de_Tool = (output, context) => {
|
|
353
|
-
return take(output, {
|
|
354
|
-
'category': __expectString,
|
|
355
|
-
'company': __expectString,
|
|
356
|
-
'description': __expectString,
|
|
357
|
-
'handler': (_) => de_ToolHandler(__expectUnion(_), context),
|
|
358
|
-
'id': __expectString,
|
|
359
|
-
'input': _json,
|
|
360
|
-
'name': __expectString,
|
|
361
|
-
});
|
|
362
|
-
};
|
|
363
337
|
const de_ToolExecutionResult = (output, context) => {
|
|
364
338
|
return take(output, {
|
|
365
339
|
'error': _json,
|
|
@@ -367,62 +341,6 @@ const de_ToolExecutionResult = (output, context) => {
|
|
|
367
341
|
'statusCode': __expectInt32,
|
|
368
342
|
});
|
|
369
343
|
};
|
|
370
|
-
const de_ToolHandler = (output, context) => {
|
|
371
|
-
if (output.chat != null) {
|
|
372
|
-
return {
|
|
373
|
-
chat: _json(__expectUnion(output.chat))
|
|
374
|
-
};
|
|
375
|
-
}
|
|
376
|
-
if (output.email != null) {
|
|
377
|
-
return {
|
|
378
|
-
email: _json(__expectUnion(output.email))
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
if (output.mcp != null) {
|
|
382
|
-
return {
|
|
383
|
-
mcp: de_ToolMcpHandler(output.mcp, context)
|
|
384
|
-
};
|
|
385
|
-
}
|
|
386
|
-
if (output.sms != null) {
|
|
387
|
-
return {
|
|
388
|
-
sms: _json(output.sms)
|
|
389
|
-
};
|
|
390
|
-
}
|
|
391
|
-
if (output.webhook != null) {
|
|
392
|
-
return {
|
|
393
|
-
webhook: _json(output.webhook)
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
return { $unknown: Object.entries(output)[0] };
|
|
397
|
-
};
|
|
398
|
-
const de_ToolMcpHandler = (output, context) => {
|
|
399
|
-
return take(output, {
|
|
400
|
-
'authentication': _json,
|
|
401
|
-
'serverUrl': __expectString,
|
|
402
|
-
'timeout': __expectInt32,
|
|
403
|
-
'tools': (_) => de_ToolMcpToolConfigList(_, context),
|
|
404
|
-
'transport': __expectString,
|
|
405
|
-
});
|
|
406
|
-
};
|
|
407
|
-
const de_ToolMcpToolConfig = (output, context) => {
|
|
408
|
-
return take(output, {
|
|
409
|
-
'description': __expectString,
|
|
410
|
-
'mcpToolId': __expectString,
|
|
411
|
-
'parameters': (_) => de_Document(_, context),
|
|
412
|
-
});
|
|
413
|
-
};
|
|
414
|
-
const de_ToolMcpToolConfigList = (output, context) => {
|
|
415
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
416
|
-
return de_ToolMcpToolConfig(entry, context);
|
|
417
|
-
});
|
|
418
|
-
return retVal;
|
|
419
|
-
};
|
|
420
|
-
const de_ToolsList = (output, context) => {
|
|
421
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
422
|
-
return de_Tool(entry, context);
|
|
423
|
-
});
|
|
424
|
-
return retVal;
|
|
425
|
-
};
|
|
426
344
|
const deserializeMetadata = (output) => ({
|
|
427
345
|
httpStatusCode: output.statusCode,
|
|
428
346
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -431,3 +349,4 @@ const deserializeMetadata = (output) => ({
|
|
|
431
349
|
});
|
|
432
350
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
433
351
|
const _c = "company";
|
|
352
|
+
const _cI = "companyId";
|
|
@@ -27,8 +27,7 @@ declare const CreateToolCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* Create a new tool.
|
|
32
31
|
* @example
|
|
33
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
33
|
* ```javascript
|
|
@@ -36,16 +35,15 @@ declare const CreateToolCommand_base: {
|
|
|
36
35
|
* // const { ToolsClient, CreateToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
|
|
37
36
|
* const client = new ToolsClient(config);
|
|
38
37
|
* const input = { // CreateToolInput
|
|
39
|
-
*
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
40
39
|
* name: "STRING_VALUE", // required
|
|
41
40
|
* category: "STRING_VALUE", // required
|
|
42
|
-
* description: "STRING_VALUE",
|
|
41
|
+
* description: "STRING_VALUE", // required
|
|
43
42
|
* input: { // ToolInput
|
|
44
43
|
* variables: [ // ToolVariableList // required
|
|
45
44
|
* { // ToolVariable
|
|
46
45
|
* name: "STRING_VALUE", // required
|
|
47
46
|
* type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
48
|
-
* required: true || false,
|
|
49
47
|
* },
|
|
50
48
|
* ],
|
|
51
49
|
* },
|
|
@@ -72,9 +70,9 @@ declare const CreateToolCommand_base: {
|
|
|
72
70
|
* smtp: { // ToolSmtpConfig
|
|
73
71
|
* host: "STRING_VALUE", // required
|
|
74
72
|
* port: Number("int"), // required
|
|
75
|
-
* username: "STRING_VALUE",
|
|
76
|
-
* password: "STRING_VALUE",
|
|
77
|
-
* secure: true || false,
|
|
73
|
+
* username: "STRING_VALUE", // required
|
|
74
|
+
* password: "STRING_VALUE", // required
|
|
75
|
+
* secure: true || false, // required
|
|
78
76
|
* },
|
|
79
77
|
* from: {// Union: only one key present
|
|
80
78
|
* static: "STRING_VALUE",
|
|
@@ -88,53 +86,12 @@ declare const CreateToolCommand_base: {
|
|
|
88
86
|
* },
|
|
89
87
|
* subject: "<ToolStringValue>", // required
|
|
90
88
|
* text: "<ToolStringValue>", // required
|
|
91
|
-
* html: "<ToolStringValue>",
|
|
89
|
+
* html: "<ToolStringValue>", // required
|
|
92
90
|
* cc: "<ToolStringValue>",
|
|
93
91
|
* bcc: "<ToolStringValue>",
|
|
94
92
|
* replyTo: "<ToolStringValue>",
|
|
95
93
|
* },
|
|
96
94
|
* },
|
|
97
|
-
* sms: { // ToolSmsHandler
|
|
98
|
-
* serviceUri: "<ToolStringValue>", // required
|
|
99
|
-
* recipientId: "<ToolStringValue>",
|
|
100
|
-
* recipientNumber: "<ToolStringValue>", // required
|
|
101
|
-
* message: "<ToolStringValue>", // required
|
|
102
|
-
* },
|
|
103
|
-
* chat: { // ToolChatHandler Union: only one key present
|
|
104
|
-
* direct: { // ToolDirectMessageConfig
|
|
105
|
-
* memberEmail: "<ToolStringValue>",
|
|
106
|
-
* memberPhone: "<ToolStringValue>",
|
|
107
|
-
* memberId: "<ToolStringValue>",
|
|
108
|
-
* text: "<ToolStringValue>", // required
|
|
109
|
-
* },
|
|
110
|
-
* channel: { // ToolChannelMessageConfig
|
|
111
|
-
* channelId: "<ToolStringValue>", // required
|
|
112
|
-
* text: "<ToolStringValue>", // required
|
|
113
|
-
* },
|
|
114
|
-
* },
|
|
115
|
-
* webhook: { // ToolWebhookHandler
|
|
116
|
-
* url: "<ToolStringValue>", // required
|
|
117
|
-
* body: "<ToolStringValue>", // required
|
|
118
|
-
* key: "<ToolStringValue>",
|
|
119
|
-
* secret: "<ToolStringValue>", // required
|
|
120
|
-
* timeout: Number("int"),
|
|
121
|
-
* },
|
|
122
|
-
* mcp: { // ToolMcpHandler
|
|
123
|
-
* serverUrl: "STRING_VALUE", // required
|
|
124
|
-
* transport: "http" || "stdio" || "sse", // required
|
|
125
|
-
* authentication: { // ToolAuthentication
|
|
126
|
-
* type: "Bearer" || "Basic" || "ApiKey", // required
|
|
127
|
-
* token: "STRING_VALUE", // required
|
|
128
|
-
* },
|
|
129
|
-
* timeout: Number("int"),
|
|
130
|
-
* tools: [ // ToolMcpToolConfigList
|
|
131
|
-
* { // ToolMcpToolConfig
|
|
132
|
-
* mcpToolId: "STRING_VALUE", // required
|
|
133
|
-
* description: "STRING_VALUE",
|
|
134
|
-
* parameters: "DOCUMENT_VALUE",
|
|
135
|
-
* },
|
|
136
|
-
* ],
|
|
137
|
-
* },
|
|
138
95
|
* },
|
|
139
96
|
* };
|
|
140
97
|
* const command = new CreateToolCommand(input);
|
|
@@ -145,13 +102,12 @@ declare const CreateToolCommand_base: {
|
|
|
145
102
|
* // company: "STRING_VALUE", // required
|
|
146
103
|
* // name: "STRING_VALUE", // required
|
|
147
104
|
* // category: "STRING_VALUE", // required
|
|
148
|
-
* // description: "STRING_VALUE",
|
|
105
|
+
* // description: "STRING_VALUE", // required
|
|
149
106
|
* // input: { // ToolInput
|
|
150
107
|
* // variables: [ // ToolVariableList // required
|
|
151
108
|
* // { // ToolVariable
|
|
152
109
|
* // name: "STRING_VALUE", // required
|
|
153
110
|
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
154
|
-
* // required: true || false,
|
|
155
111
|
* // },
|
|
156
112
|
* // ],
|
|
157
113
|
* // },
|
|
@@ -178,9 +134,9 @@ declare const CreateToolCommand_base: {
|
|
|
178
134
|
* // smtp: { // ToolSmtpConfig
|
|
179
135
|
* // host: "STRING_VALUE", // required
|
|
180
136
|
* // port: Number("int"), // required
|
|
181
|
-
* // username: "STRING_VALUE",
|
|
182
|
-
* // password: "STRING_VALUE",
|
|
183
|
-
* // secure: true || false,
|
|
137
|
+
* // username: "STRING_VALUE", // required
|
|
138
|
+
* // password: "STRING_VALUE", // required
|
|
139
|
+
* // secure: true || false, // required
|
|
184
140
|
* // },
|
|
185
141
|
* // from: {// Union: only one key present
|
|
186
142
|
* // static: "STRING_VALUE",
|
|
@@ -194,53 +150,12 @@ declare const CreateToolCommand_base: {
|
|
|
194
150
|
* // },
|
|
195
151
|
* // subject: "<ToolStringValue>", // required
|
|
196
152
|
* // text: "<ToolStringValue>", // required
|
|
197
|
-
* // html: "<ToolStringValue>",
|
|
153
|
+
* // html: "<ToolStringValue>", // required
|
|
198
154
|
* // cc: "<ToolStringValue>",
|
|
199
155
|
* // bcc: "<ToolStringValue>",
|
|
200
156
|
* // replyTo: "<ToolStringValue>",
|
|
201
157
|
* // },
|
|
202
158
|
* // },
|
|
203
|
-
* // sms: { // ToolSmsHandler
|
|
204
|
-
* // serviceUri: "<ToolStringValue>", // required
|
|
205
|
-
* // recipientId: "<ToolStringValue>",
|
|
206
|
-
* // recipientNumber: "<ToolStringValue>", // required
|
|
207
|
-
* // message: "<ToolStringValue>", // required
|
|
208
|
-
* // },
|
|
209
|
-
* // chat: { // ToolChatHandler Union: only one key present
|
|
210
|
-
* // direct: { // ToolDirectMessageConfig
|
|
211
|
-
* // memberEmail: "<ToolStringValue>",
|
|
212
|
-
* // memberPhone: "<ToolStringValue>",
|
|
213
|
-
* // memberId: "<ToolStringValue>",
|
|
214
|
-
* // text: "<ToolStringValue>", // required
|
|
215
|
-
* // },
|
|
216
|
-
* // channel: { // ToolChannelMessageConfig
|
|
217
|
-
* // channelId: "<ToolStringValue>", // required
|
|
218
|
-
* // text: "<ToolStringValue>", // required
|
|
219
|
-
* // },
|
|
220
|
-
* // },
|
|
221
|
-
* // webhook: { // ToolWebhookHandler
|
|
222
|
-
* // url: "<ToolStringValue>", // required
|
|
223
|
-
* // body: "<ToolStringValue>", // required
|
|
224
|
-
* // key: "<ToolStringValue>",
|
|
225
|
-
* // secret: "<ToolStringValue>", // required
|
|
226
|
-
* // timeout: Number("int"),
|
|
227
|
-
* // },
|
|
228
|
-
* // mcp: { // ToolMcpHandler
|
|
229
|
-
* // serverUrl: "STRING_VALUE", // required
|
|
230
|
-
* // transport: "http" || "stdio" || "sse", // required
|
|
231
|
-
* // authentication: { // ToolAuthentication
|
|
232
|
-
* // type: "Bearer" || "Basic" || "ApiKey", // required
|
|
233
|
-
* // token: "STRING_VALUE", // required
|
|
234
|
-
* // },
|
|
235
|
-
* // timeout: Number("int"),
|
|
236
|
-
* // tools: [ // ToolMcpToolConfigList
|
|
237
|
-
* // { // ToolMcpToolConfig
|
|
238
|
-
* // mcpToolId: "STRING_VALUE", // required
|
|
239
|
-
* // description: "STRING_VALUE",
|
|
240
|
-
* // parameters: "DOCUMENT_VALUE",
|
|
241
|
-
* // },
|
|
242
|
-
* // ],
|
|
243
|
-
* // },
|
|
244
159
|
* // },
|
|
245
160
|
* // },
|
|
246
161
|
* // };
|
|
@@ -259,12 +174,15 @@ declare const CreateToolCommand_base: {
|
|
|
259
174
|
*
|
|
260
175
|
* @throws {@link NotFoundException} (client fault)
|
|
261
176
|
*
|
|
262
|
-
* @throws {@link ToolExecutionException} (
|
|
177
|
+
* @throws {@link ToolExecutionException} (client fault)
|
|
178
|
+
*
|
|
179
|
+
* @throws {@link ToolExecutionServerException} (server fault)
|
|
263
180
|
*
|
|
264
181
|
* @throws {@link ToolsServiceException}
|
|
265
182
|
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
266
183
|
*
|
|
267
184
|
*
|
|
185
|
+
* @public
|
|
268
186
|
*/
|
|
269
187
|
export declare class CreateToolCommand extends CreateToolCommand_base {
|
|
270
188
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -27,8 +27,7 @@ declare const DeleteToolCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* Delete a tool by its ID.
|
|
32
31
|
* @example
|
|
33
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
33
|
* ```javascript
|
|
@@ -36,7 +35,7 @@ declare const DeleteToolCommand_base: {
|
|
|
36
35
|
* // const { ToolsClient, DeleteToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
|
|
37
36
|
* const client = new ToolsClient(config);
|
|
38
37
|
* const input = { // DeleteToolInput
|
|
39
|
-
*
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
40
39
|
* toolId: "STRING_VALUE", // required
|
|
41
40
|
* };
|
|
42
41
|
* const command = new DeleteToolCommand(input);
|
|
@@ -57,12 +56,15 @@ declare const DeleteToolCommand_base: {
|
|
|
57
56
|
*
|
|
58
57
|
* @throws {@link AlreadyExistException} (client fault)
|
|
59
58
|
*
|
|
60
|
-
* @throws {@link ToolExecutionException} (
|
|
59
|
+
* @throws {@link ToolExecutionException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ToolExecutionServerException} (server fault)
|
|
61
62
|
*
|
|
62
63
|
* @throws {@link ToolsServiceException}
|
|
63
64
|
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
64
65
|
*
|
|
65
66
|
*
|
|
67
|
+
* @public
|
|
66
68
|
*/
|
|
67
69
|
export declare class DeleteToolCommand extends DeleteToolCommand_base {
|
|
68
70
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -27,8 +27,7 @@ declare const DescribeToolsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* Describe multiple tools by their IDs.
|
|
32
31
|
* @example
|
|
33
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
33
|
* ```javascript
|
|
@@ -36,7 +35,7 @@ declare const DescribeToolsCommand_base: {
|
|
|
36
35
|
* // const { ToolsClient, DescribeToolsCommand } = require("@wildix/wim-tools-client"); // CommonJS import
|
|
37
36
|
* const client = new ToolsClient(config);
|
|
38
37
|
* const input = { // DescribeToolsInput
|
|
39
|
-
*
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
40
39
|
* ids: [ // ToolIdList // required
|
|
41
40
|
* "STRING_VALUE",
|
|
42
41
|
* ],
|
|
@@ -53,7 +52,6 @@ declare const DescribeToolsCommand_base: {
|
|
|
53
52
|
* // { // ToolVariable
|
|
54
53
|
* // name: "STRING_VALUE", // required
|
|
55
54
|
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
56
|
-
* // required: true || false,
|
|
57
55
|
* // },
|
|
58
56
|
* // ],
|
|
59
57
|
* // },
|
|
@@ -74,12 +72,15 @@ declare const DescribeToolsCommand_base: {
|
|
|
74
72
|
*
|
|
75
73
|
* @throws {@link AlreadyExistException} (client fault)
|
|
76
74
|
*
|
|
77
|
-
* @throws {@link ToolExecutionException} (
|
|
75
|
+
* @throws {@link ToolExecutionException} (client fault)
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ToolExecutionServerException} (server fault)
|
|
78
78
|
*
|
|
79
79
|
* @throws {@link ToolsServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
81
81
|
*
|
|
82
82
|
*
|
|
83
|
+
* @public
|
|
83
84
|
*/
|
|
84
85
|
export declare class DescribeToolsCommand extends DescribeToolsCommand_base {
|
|
85
86
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -27,8 +27,7 @@ declare const ExecuteToolCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* Execute a tool with the provided input.
|
|
32
31
|
* @example
|
|
33
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
33
|
* ```javascript
|
|
@@ -36,7 +35,7 @@ declare const ExecuteToolCommand_base: {
|
|
|
36
35
|
* // const { ToolsClient, ExecuteToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
|
|
37
36
|
* const client = new ToolsClient(config);
|
|
38
37
|
* const input = { // ExecuteToolInput
|
|
39
|
-
*
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
40
39
|
* id: "STRING_VALUE", // required
|
|
41
40
|
* input: "DOCUMENT_VALUE", // required
|
|
42
41
|
* service: "STRING_VALUE",
|
|
@@ -52,7 +51,6 @@ declare const ExecuteToolCommand_base: {
|
|
|
52
51
|
* // message: "STRING_VALUE", // required
|
|
53
52
|
* // },
|
|
54
53
|
* // },
|
|
55
|
-
* // traceId: "STRING_VALUE", // required
|
|
56
54
|
* // };
|
|
57
55
|
*
|
|
58
56
|
* ```
|
|
@@ -67,7 +65,9 @@ declare const ExecuteToolCommand_base: {
|
|
|
67
65
|
*
|
|
68
66
|
* @throws {@link NotFoundException} (client fault)
|
|
69
67
|
*
|
|
70
|
-
* @throws {@link ToolExecutionException} (
|
|
68
|
+
* @throws {@link ToolExecutionException} (client fault)
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ToolExecutionServerException} (server fault)
|
|
71
71
|
*
|
|
72
72
|
* @throws {@link AlreadyExistException} (client fault)
|
|
73
73
|
*
|
|
@@ -75,6 +75,7 @@ declare const ExecuteToolCommand_base: {
|
|
|
75
75
|
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
76
76
|
*
|
|
77
77
|
*
|
|
78
|
+
* @public
|
|
78
79
|
*/
|
|
79
80
|
export declare class ExecuteToolCommand extends ExecuteToolCommand_base {
|
|
80
81
|
/** @internal type navigation helper, not in runtime. */
|