@wildix/wim-tools-client 0.0.13 → 0.0.16
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/protocols/Aws_restJson1.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/CreateToolCommand.d.ts +2 -4
- package/dist-types/commands/DescribeToolsCommand.d.ts +0 -1
- package/dist-types/commands/ExecuteToolCommand.d.ts +3 -0
- package/dist-types/commands/GetToolCommand.d.ts +1 -2
- package/dist-types/commands/ListToolsCommand.d.ts +1 -2
- package/dist-types/commands/UpdateToolCommand.d.ts +2 -4
- package/dist-types/models/models_0.d.ts +6 -4
- package/package.json +1 -1
|
@@ -79,6 +79,8 @@ const se_ExecuteToolCommand = async (input, context) => {
|
|
|
79
79
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
80
80
|
'id': [],
|
|
81
81
|
'input': _ => se_Document(_, context),
|
|
82
|
+
'service': [],
|
|
83
|
+
'user': [],
|
|
82
84
|
}));
|
|
83
85
|
b.m("POST")
|
|
84
86
|
.h(headers)
|
|
@@ -194,6 +196,7 @@ const de_ExecuteToolCommand = async (output, context) => {
|
|
|
194
196
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
195
197
|
const doc = (0, smithy_client_1.take)(data, {
|
|
196
198
|
'result': _ => de_ToolExecutionResult(_, context),
|
|
199
|
+
'traceId': smithy_client_1.expectString,
|
|
197
200
|
});
|
|
198
201
|
Object.assign(contents, doc);
|
|
199
202
|
return contents;
|
|
@@ -73,6 +73,8 @@ export const se_ExecuteToolCommand = async (input, context) => {
|
|
|
73
73
|
body = JSON.stringify(take(input, {
|
|
74
74
|
'id': [],
|
|
75
75
|
'input': _ => se_Document(_, context),
|
|
76
|
+
'service': [],
|
|
77
|
+
'user': [],
|
|
76
78
|
}));
|
|
77
79
|
b.m("POST")
|
|
78
80
|
.h(headers)
|
|
@@ -181,6 +183,7 @@ export const de_ExecuteToolCommand = async (output, context) => {
|
|
|
181
183
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
182
184
|
const doc = take(data, {
|
|
183
185
|
'result': _ => de_ToolExecutionResult(_, context),
|
|
186
|
+
'traceId': __expectString,
|
|
184
187
|
});
|
|
185
188
|
Object.assign(contents, doc);
|
|
186
189
|
return contents;
|
|
@@ -38,14 +38,13 @@ declare const CreateToolCommand_base: {
|
|
|
38
38
|
* const input = { // CreateToolInput
|
|
39
39
|
* company: "STRING_VALUE",
|
|
40
40
|
* name: "STRING_VALUE", // required
|
|
41
|
-
* category: "STRING_VALUE",
|
|
41
|
+
* category: "STRING_VALUE", // required
|
|
42
42
|
* description: "STRING_VALUE",
|
|
43
43
|
* input: { // ToolInput
|
|
44
44
|
* variables: [ // ToolVariableList // required
|
|
45
45
|
* { // ToolVariable
|
|
46
46
|
* name: "STRING_VALUE", // required
|
|
47
47
|
* type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
48
|
-
* description: "STRING_VALUE", // required
|
|
49
48
|
* required: true || false,
|
|
50
49
|
* },
|
|
51
50
|
* ],
|
|
@@ -145,14 +144,13 @@ declare const CreateToolCommand_base: {
|
|
|
145
144
|
* // id: "STRING_VALUE", // required
|
|
146
145
|
* // company: "STRING_VALUE", // required
|
|
147
146
|
* // name: "STRING_VALUE", // required
|
|
148
|
-
* // category: "STRING_VALUE",
|
|
147
|
+
* // category: "STRING_VALUE", // required
|
|
149
148
|
* // description: "STRING_VALUE",
|
|
150
149
|
* // input: { // ToolInput
|
|
151
150
|
* // variables: [ // ToolVariableList // required
|
|
152
151
|
* // { // ToolVariable
|
|
153
152
|
* // name: "STRING_VALUE", // required
|
|
154
153
|
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
155
|
-
* // description: "STRING_VALUE", // required
|
|
156
154
|
* // required: true || false,
|
|
157
155
|
* // },
|
|
158
156
|
* // ],
|
|
@@ -53,7 +53,6 @@ declare const DescribeToolsCommand_base: {
|
|
|
53
53
|
* // { // ToolVariable
|
|
54
54
|
* // name: "STRING_VALUE", // required
|
|
55
55
|
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
56
|
-
* // description: "STRING_VALUE", // required
|
|
57
56
|
* // required: true || false,
|
|
58
57
|
* // },
|
|
59
58
|
* // ],
|
|
@@ -39,6 +39,8 @@ declare const ExecuteToolCommand_base: {
|
|
|
39
39
|
* company: "STRING_VALUE",
|
|
40
40
|
* id: "STRING_VALUE", // required
|
|
41
41
|
* input: "DOCUMENT_VALUE", // required
|
|
42
|
+
* service: "STRING_VALUE",
|
|
43
|
+
* user: "STRING_VALUE",
|
|
42
44
|
* };
|
|
43
45
|
* const command = new ExecuteToolCommand(input);
|
|
44
46
|
* const response = await client.send(command);
|
|
@@ -50,6 +52,7 @@ declare const ExecuteToolCommand_base: {
|
|
|
50
52
|
* // message: "STRING_VALUE", // required
|
|
51
53
|
* // },
|
|
52
54
|
* // },
|
|
55
|
+
* // traceId: "STRING_VALUE", // required
|
|
53
56
|
* // };
|
|
54
57
|
*
|
|
55
58
|
* ```
|
|
@@ -46,14 +46,13 @@ declare const GetToolCommand_base: {
|
|
|
46
46
|
* // id: "STRING_VALUE", // required
|
|
47
47
|
* // company: "STRING_VALUE", // required
|
|
48
48
|
* // name: "STRING_VALUE", // required
|
|
49
|
-
* // category: "STRING_VALUE",
|
|
49
|
+
* // category: "STRING_VALUE", // required
|
|
50
50
|
* // description: "STRING_VALUE",
|
|
51
51
|
* // input: { // ToolInput
|
|
52
52
|
* // variables: [ // ToolVariableList // required
|
|
53
53
|
* // { // ToolVariable
|
|
54
54
|
* // name: "STRING_VALUE", // required
|
|
55
55
|
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
56
|
-
* // description: "STRING_VALUE", // required
|
|
57
56
|
* // required: true || false,
|
|
58
57
|
* // },
|
|
59
58
|
* // ],
|
|
@@ -46,14 +46,13 @@ declare const ListToolsCommand_base: {
|
|
|
46
46
|
* // id: "STRING_VALUE", // required
|
|
47
47
|
* // company: "STRING_VALUE", // required
|
|
48
48
|
* // name: "STRING_VALUE", // required
|
|
49
|
-
* // category: "STRING_VALUE",
|
|
49
|
+
* // category: "STRING_VALUE", // required
|
|
50
50
|
* // description: "STRING_VALUE",
|
|
51
51
|
* // input: { // ToolInput
|
|
52
52
|
* // variables: [ // ToolVariableList // required
|
|
53
53
|
* // { // ToolVariable
|
|
54
54
|
* // name: "STRING_VALUE", // required
|
|
55
55
|
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
56
|
-
* // description: "STRING_VALUE", // required
|
|
57
56
|
* // required: true || false,
|
|
58
57
|
* // },
|
|
59
58
|
* // ],
|
|
@@ -39,14 +39,13 @@ declare const UpdateToolCommand_base: {
|
|
|
39
39
|
* company: "STRING_VALUE",
|
|
40
40
|
* toolId: "STRING_VALUE", // required
|
|
41
41
|
* name: "STRING_VALUE", // required
|
|
42
|
-
* category: "STRING_VALUE",
|
|
42
|
+
* category: "STRING_VALUE", // required
|
|
43
43
|
* description: "STRING_VALUE",
|
|
44
44
|
* input: { // ToolInput
|
|
45
45
|
* variables: [ // ToolVariableList // required
|
|
46
46
|
* { // ToolVariable
|
|
47
47
|
* name: "STRING_VALUE", // required
|
|
48
48
|
* type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
49
|
-
* description: "STRING_VALUE", // required
|
|
50
49
|
* required: true || false,
|
|
51
50
|
* },
|
|
52
51
|
* ],
|
|
@@ -146,14 +145,13 @@ declare const UpdateToolCommand_base: {
|
|
|
146
145
|
* // id: "STRING_VALUE", // required
|
|
147
146
|
* // company: "STRING_VALUE", // required
|
|
148
147
|
* // name: "STRING_VALUE", // required
|
|
149
|
-
* // category: "STRING_VALUE",
|
|
148
|
+
* // category: "STRING_VALUE", // required
|
|
150
149
|
* // description: "STRING_VALUE",
|
|
151
150
|
* // input: { // ToolInput
|
|
152
151
|
* // variables: [ // ToolVariableList // required
|
|
153
152
|
* // { // ToolVariable
|
|
154
153
|
* // name: "STRING_VALUE", // required
|
|
155
154
|
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
156
|
-
* // description: "STRING_VALUE", // required
|
|
157
155
|
* // required: true || false,
|
|
158
156
|
* // },
|
|
159
157
|
* // ],
|
|
@@ -363,7 +363,6 @@ export type ToolVariableType = typeof ToolVariableType[keyof typeof ToolVariable
|
|
|
363
363
|
export interface ToolVariable {
|
|
364
364
|
name: string;
|
|
365
365
|
type: ToolVariableType;
|
|
366
|
-
description: string;
|
|
367
366
|
required?: boolean | undefined;
|
|
368
367
|
}
|
|
369
368
|
/**
|
|
@@ -378,7 +377,7 @@ export interface ToolInput {
|
|
|
378
377
|
export interface CreateToolInput {
|
|
379
378
|
company?: string | undefined;
|
|
380
379
|
name: string;
|
|
381
|
-
category
|
|
380
|
+
category: string;
|
|
382
381
|
description?: string | undefined;
|
|
383
382
|
input: ToolInput;
|
|
384
383
|
handler: ToolHandler;
|
|
@@ -390,7 +389,7 @@ export interface Tool {
|
|
|
390
389
|
id: string;
|
|
391
390
|
company: string;
|
|
392
391
|
name: string;
|
|
393
|
-
category
|
|
392
|
+
category: string;
|
|
394
393
|
description?: string | undefined;
|
|
395
394
|
input: ToolInput;
|
|
396
395
|
handler: ToolHandler;
|
|
@@ -454,6 +453,8 @@ export interface ExecuteToolInput {
|
|
|
454
453
|
company?: string | undefined;
|
|
455
454
|
id: string;
|
|
456
455
|
input: __DocumentType;
|
|
456
|
+
service?: string | undefined;
|
|
457
|
+
user?: string | undefined;
|
|
457
458
|
}
|
|
458
459
|
/**
|
|
459
460
|
* @public
|
|
@@ -474,6 +475,7 @@ export interface ToolExecutionResult {
|
|
|
474
475
|
*/
|
|
475
476
|
export interface ExecuteToolOutput {
|
|
476
477
|
result: ToolExecutionResult;
|
|
478
|
+
traceId: string;
|
|
477
479
|
}
|
|
478
480
|
/**
|
|
479
481
|
* @public
|
|
@@ -507,7 +509,7 @@ export interface UpdateToolInput {
|
|
|
507
509
|
company?: string | undefined;
|
|
508
510
|
toolId: string;
|
|
509
511
|
name: string;
|
|
510
|
-
category
|
|
512
|
+
category: string;
|
|
511
513
|
description?: string | undefined;
|
|
512
514
|
input: ToolInput;
|
|
513
515
|
handler: ToolHandler;
|
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.16",
|
|
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",
|