@wildix/wim-tools-client 0.0.3 → 0.0.4
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/Tools.js +12 -0
- package/dist-cjs/ToolsClient.js +13 -15
- package/dist-cjs/commands/AddToolCommand.js +21 -0
- package/dist-cjs/commands/DeleteToolCommand.js +21 -0
- package/dist-cjs/commands/ExecuteToolCommand.js +21 -0
- package/dist-cjs/commands/GetToolCommand.js +21 -0
- package/dist-cjs/commands/ListToolsCommand.js +21 -0
- package/dist-cjs/commands/UpdateToolCommand.js +21 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +45 -1
- package/dist-cjs/protocols/Aws_restJson1.js +306 -1
- package/dist-es/Tools.js +12 -0
- package/dist-es/ToolsClient.js +13 -15
- package/dist-es/commands/AddToolCommand.js +17 -0
- package/dist-es/commands/DeleteToolCommand.js +17 -0
- package/dist-es/commands/ExecuteToolCommand.js +17 -0
- package/dist-es/commands/GetToolCommand.js +17 -0
- package/dist-es/commands/ListToolsCommand.js +17 -0
- package/dist-es/commands/UpdateToolCommand.js +17 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +41 -0
- package/dist-es/protocols/Aws_restJson1.js +295 -2
- package/dist-types/Tools.d.ts +42 -0
- package/dist-types/ToolsClient.d.ts +12 -7
- package/dist-types/commands/AddToolCommand.d.ts +98 -0
- package/dist-types/commands/DeleteToolCommand.d.ts +79 -0
- package/dist-types/commands/ExecuteToolCommand.d.ts +93 -0
- package/dist-types/commands/GetToolCommand.d.ts +91 -0
- package/dist-types/commands/ListToolsCommand.d.ts +103 -0
- package/dist-types/commands/TestEndpointCommand.d.ts +9 -3
- package/dist-types/commands/UpdateToolCommand.d.ts +95 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +396 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/dist-types/runtimeConfig.browser.d.ts +5 -2
- package/dist-types/runtimeConfig.d.ts +5 -2
- package/dist-types/runtimeConfig.native.d.ts +5 -2
- package/package.json +3 -4
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
|
|
2
|
+
import { AddToolInput, AddToolOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link AddToolCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AddToolCommandInput extends AddToolInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AddToolCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AddToolCommandOutput extends AddToolOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AddToolCommand_base: {
|
|
25
|
+
new (input: AddToolCommandInput): import("@smithy/smithy-client").CommandImpl<AddToolCommandInput, AddToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: AddToolCommandInput): import("@smithy/smithy-client").CommandImpl<AddToolCommandInput, AddToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Add a new tool
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ToolsClient, AddToolCommand } from "@wildix/wim-tools-client"; // ES Modules import
|
|
35
|
+
* // const { ToolsClient, AddToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
|
|
36
|
+
* const client = new ToolsClient(config);
|
|
37
|
+
* const input = { // AddToolInput
|
|
38
|
+
* company: "STRING_VALUE", // required
|
|
39
|
+
* name: "STRING_VALUE", // required
|
|
40
|
+
* description: "STRING_VALUE", // required
|
|
41
|
+
* type: "EMAIL", // required
|
|
42
|
+
* config: "DOCUMENT_VALUE", // required
|
|
43
|
+
* jsonSchema: "DOCUMENT_VALUE", // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new AddToolCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // AddToolOutput
|
|
48
|
+
* // tool: { // Tool
|
|
49
|
+
* // id: "STRING_VALUE", // required
|
|
50
|
+
* // company: "STRING_VALUE", // required
|
|
51
|
+
* // name: "STRING_VALUE", // required
|
|
52
|
+
* // description: "STRING_VALUE", // required
|
|
53
|
+
* // type: "EMAIL", // required
|
|
54
|
+
* // config: "DOCUMENT_VALUE", // required
|
|
55
|
+
* // jsonSchema: "DOCUMENT_VALUE", // required
|
|
56
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
57
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
58
|
+
* // },
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param AddToolCommandInput - {@link AddToolCommandInput}
|
|
64
|
+
* @returns {@link AddToolCommandOutput}
|
|
65
|
+
* @see {@link AddToolCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link AddToolCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link ToolsClientResolvedConfig | config} for ToolsClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ToolAlreadyExistsException} (client fault)
|
|
72
|
+
* Tool already exists error
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ToolNotFoundException} (client fault)
|
|
75
|
+
* Tool not found error
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ToolExecutionException} (server fault)
|
|
78
|
+
* Tool execution failed error
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ToolsServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class AddToolCommand extends AddToolCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: AddToolInput;
|
|
91
|
+
output: AddToolOutput;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: AddToolCommandInput;
|
|
95
|
+
output: AddToolCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
|
|
2
|
+
import { DeleteToolInput, DeleteToolOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteToolCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteToolCommandInput extends DeleteToolInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteToolCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteToolCommandOutput extends DeleteToolOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteToolCommand_base: {
|
|
25
|
+
new (input: DeleteToolCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteToolCommandInput, DeleteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteToolCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteToolCommandInput, DeleteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Delete a tool
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ToolsClient, DeleteToolCommand } from "@wildix/wim-tools-client"; // ES Modules import
|
|
35
|
+
* // const { ToolsClient, DeleteToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
|
|
36
|
+
* const client = new ToolsClient(config);
|
|
37
|
+
* const input = { // DeleteToolInput
|
|
38
|
+
* company: "STRING_VALUE", // required
|
|
39
|
+
* toolId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new DeleteToolCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // {};
|
|
44
|
+
*
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param DeleteToolCommandInput - {@link DeleteToolCommandInput}
|
|
48
|
+
* @returns {@link DeleteToolCommandOutput}
|
|
49
|
+
* @see {@link DeleteToolCommandInput} for command's `input` shape.
|
|
50
|
+
* @see {@link DeleteToolCommandOutput} for command's `response` shape.
|
|
51
|
+
* @see {@link ToolsClientResolvedConfig | config} for ToolsClient's `config` shape.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link ValidationException} (client fault)
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ToolNotFoundException} (client fault)
|
|
56
|
+
* Tool not found error
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ToolExecutionException} (server fault)
|
|
59
|
+
* Tool execution failed error
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ToolsServiceException}
|
|
62
|
+
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
63
|
+
*
|
|
64
|
+
*
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export declare class DeleteToolCommand extends DeleteToolCommand_base {
|
|
68
|
+
/** @internal type navigation helper, not in runtime. */
|
|
69
|
+
protected static __types: {
|
|
70
|
+
api: {
|
|
71
|
+
input: DeleteToolInput;
|
|
72
|
+
output: {};
|
|
73
|
+
};
|
|
74
|
+
sdk: {
|
|
75
|
+
input: DeleteToolCommandInput;
|
|
76
|
+
output: DeleteToolCommandOutput;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
|
|
2
|
+
import { ExecuteToolInput, ExecuteToolOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ExecuteToolCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ExecuteToolCommandInput extends ExecuteToolInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ExecuteToolCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ExecuteToolCommandOutput extends ExecuteToolOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ExecuteToolCommand_base: {
|
|
25
|
+
new (input: ExecuteToolCommandInput): import("@smithy/smithy-client").CommandImpl<ExecuteToolCommandInput, ExecuteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ExecuteToolCommandInput): import("@smithy/smithy-client").CommandImpl<ExecuteToolCommandInput, ExecuteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Execute a tool with provided parameters
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ToolsClient, ExecuteToolCommand } from "@wildix/wim-tools-client"; // ES Modules import
|
|
35
|
+
* // const { ToolsClient, ExecuteToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
|
|
36
|
+
* const client = new ToolsClient(config);
|
|
37
|
+
* const input = { // ExecuteToolInput
|
|
38
|
+
* company: "STRING_VALUE", // required
|
|
39
|
+
* toolId: "STRING_VALUE", // required
|
|
40
|
+
* parameters: "DOCUMENT_VALUE", // required
|
|
41
|
+
* context: { // ExecutionContext
|
|
42
|
+
* company: "STRING_VALUE", // required
|
|
43
|
+
* sessionId: "STRING_VALUE",
|
|
44
|
+
* userId: "STRING_VALUE",
|
|
45
|
+
* metadata: "DOCUMENT_VALUE",
|
|
46
|
+
* },
|
|
47
|
+
* };
|
|
48
|
+
* const command = new ExecuteToolCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // ExecuteToolOutput
|
|
51
|
+
* // result: { // ExecutionResult
|
|
52
|
+
* // success: true || false, // required
|
|
53
|
+
* // result: "DOCUMENT_VALUE",
|
|
54
|
+
* // error: "STRING_VALUE",
|
|
55
|
+
* // traceId: "STRING_VALUE",
|
|
56
|
+
* // },
|
|
57
|
+
* // };
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param ExecuteToolCommandInput - {@link ExecuteToolCommandInput}
|
|
62
|
+
* @returns {@link ExecuteToolCommandOutput}
|
|
63
|
+
* @see {@link ExecuteToolCommandInput} for command's `input` shape.
|
|
64
|
+
* @see {@link ExecuteToolCommandOutput} for command's `response` shape.
|
|
65
|
+
* @see {@link ToolsClientResolvedConfig | config} for ToolsClient's `config` shape.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ValidationException} (client fault)
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ToolNotFoundException} (client fault)
|
|
70
|
+
* Tool not found error
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ToolExecutionException} (server fault)
|
|
73
|
+
* Tool execution failed error
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ToolsServiceException}
|
|
76
|
+
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export declare class ExecuteToolCommand extends ExecuteToolCommand_base {
|
|
82
|
+
/** @internal type navigation helper, not in runtime. */
|
|
83
|
+
protected static __types: {
|
|
84
|
+
api: {
|
|
85
|
+
input: ExecuteToolInput;
|
|
86
|
+
output: ExecuteToolOutput;
|
|
87
|
+
};
|
|
88
|
+
sdk: {
|
|
89
|
+
input: ExecuteToolCommandInput;
|
|
90
|
+
output: ExecuteToolCommandOutput;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
|
|
2
|
+
import { GetToolInput, GetToolOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetToolCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetToolCommandInput extends GetToolInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetToolCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetToolCommandOutput extends GetToolOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetToolCommand_base: {
|
|
25
|
+
new (input: GetToolCommandInput): import("@smithy/smithy-client").CommandImpl<GetToolCommandInput, GetToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetToolCommandInput): import("@smithy/smithy-client").CommandImpl<GetToolCommandInput, GetToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Get a specific tool by ID
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ToolsClient, GetToolCommand } from "@wildix/wim-tools-client"; // ES Modules import
|
|
35
|
+
* // const { ToolsClient, GetToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
|
|
36
|
+
* const client = new ToolsClient(config);
|
|
37
|
+
* const input = { // GetToolInput
|
|
38
|
+
* company: "STRING_VALUE", // required
|
|
39
|
+
* toolId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetToolCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetToolOutput
|
|
44
|
+
* // tool: { // Tool
|
|
45
|
+
* // id: "STRING_VALUE", // required
|
|
46
|
+
* // company: "STRING_VALUE", // required
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // description: "STRING_VALUE", // required
|
|
49
|
+
* // type: "EMAIL", // required
|
|
50
|
+
* // config: "DOCUMENT_VALUE", // required
|
|
51
|
+
* // jsonSchema: "DOCUMENT_VALUE", // required
|
|
52
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
53
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
54
|
+
* // },
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param GetToolCommandInput - {@link GetToolCommandInput}
|
|
60
|
+
* @returns {@link GetToolCommandOutput}
|
|
61
|
+
* @see {@link GetToolCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link GetToolCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link ToolsClientResolvedConfig | config} for ToolsClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ValidationException} (client fault)
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ToolNotFoundException} (client fault)
|
|
68
|
+
* Tool not found error
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ToolExecutionException} (server fault)
|
|
71
|
+
* Tool execution failed error
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ToolsServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class GetToolCommand extends GetToolCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: GetToolInput;
|
|
84
|
+
output: GetToolOutput;
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: GetToolCommandInput;
|
|
88
|
+
output: GetToolCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
|
|
2
|
+
import { ListToolsInput, ListToolsOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListToolsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListToolsCommandInput extends ListToolsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListToolsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListToolsCommandOutput extends ListToolsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListToolsCommand_base: {
|
|
25
|
+
new (input: ListToolsCommandInput): import("@smithy/smithy-client").CommandImpl<ListToolsCommandInput, ListToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListToolsCommandInput): import("@smithy/smithy-client").CommandImpl<ListToolsCommandInput, ListToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* List all tools for a company in LLM-compatible format
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ToolsClient, ListToolsCommand } from "@wildix/wim-tools-client"; // ES Modules import
|
|
35
|
+
* // const { ToolsClient, ListToolsCommand } = require("@wildix/wim-tools-client"); // CommonJS import
|
|
36
|
+
* const client = new ToolsClient(config);
|
|
37
|
+
* const input = { // ListToolsInput
|
|
38
|
+
* company: "STRING_VALUE", // required
|
|
39
|
+
* format: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListToolsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListToolsOutput
|
|
44
|
+
* // tools: [ // ToolsList
|
|
45
|
+
* // { // Tool
|
|
46
|
+
* // id: "STRING_VALUE", // required
|
|
47
|
+
* // company: "STRING_VALUE", // required
|
|
48
|
+
* // name: "STRING_VALUE", // required
|
|
49
|
+
* // description: "STRING_VALUE", // required
|
|
50
|
+
* // type: "EMAIL", // required
|
|
51
|
+
* // config: "DOCUMENT_VALUE", // required
|
|
52
|
+
* // jsonSchema: "DOCUMENT_VALUE", // required
|
|
53
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
54
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // llmTools: [ // LlmToolDefinitionsList
|
|
58
|
+
* // { // LlmToolDefinition
|
|
59
|
+
* // type: "STRING_VALUE", // required
|
|
60
|
+
* // function: { // LlmFunctionDefinition
|
|
61
|
+
* // name: "STRING_VALUE", // required
|
|
62
|
+
* // description: "STRING_VALUE", // required
|
|
63
|
+
* // parameters: "DOCUMENT_VALUE", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // };
|
|
68
|
+
*
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @param ListToolsCommandInput - {@link ListToolsCommandInput}
|
|
72
|
+
* @returns {@link ListToolsCommandOutput}
|
|
73
|
+
* @see {@link ListToolsCommandInput} for command's `input` shape.
|
|
74
|
+
* @see {@link ListToolsCommandOutput} for command's `response` shape.
|
|
75
|
+
* @see {@link ToolsClientResolvedConfig | config} for ToolsClient's `config` shape.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ToolNotFoundException} (client fault)
|
|
80
|
+
* Tool not found error
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ToolExecutionException} (server fault)
|
|
83
|
+
* Tool execution failed error
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ToolsServiceException}
|
|
86
|
+
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export declare class ListToolsCommand extends ListToolsCommand_base {
|
|
92
|
+
/** @internal type navigation helper, not in runtime. */
|
|
93
|
+
protected static __types: {
|
|
94
|
+
api: {
|
|
95
|
+
input: ListToolsInput;
|
|
96
|
+
output: ListToolsOutput;
|
|
97
|
+
};
|
|
98
|
+
sdk: {
|
|
99
|
+
input: ListToolsCommandInput;
|
|
100
|
+
output: ListToolsCommandOutput;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ToolsClientResolvedConfig } from "../ToolsClient";
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
|
|
2
2
|
import { TestEndpointInput, TestEndpointOutput } from "../models/models_0";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
@@ -22,8 +22,8 @@ export interface TestEndpointCommandInput extends TestEndpointInput {
|
|
|
22
22
|
export interface TestEndpointCommandOutput extends TestEndpointOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const TestEndpointCommand_base: {
|
|
25
|
-
new (input: TestEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<TestEndpointCommandInput, TestEndpointCommandOutput, ToolsClientResolvedConfig,
|
|
26
|
-
new (...[input]: [
|
|
25
|
+
new (input: TestEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<TestEndpointCommandInput, TestEndpointCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [TestEndpointCommandInput]): import("@smithy/smithy-client").CommandImpl<TestEndpointCommandInput, TestEndpointCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
@@ -55,6 +55,12 @@ declare const TestEndpointCommand_base: {
|
|
|
55
55
|
*
|
|
56
56
|
* @throws {@link ValidationException} (client fault)
|
|
57
57
|
*
|
|
58
|
+
* @throws {@link ToolNotFoundException} (client fault)
|
|
59
|
+
* Tool not found error
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ToolExecutionException} (server fault)
|
|
62
|
+
* Tool execution failed error
|
|
63
|
+
*
|
|
58
64
|
* @throws {@link ToolsServiceException}
|
|
59
65
|
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
60
66
|
*
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
|
|
2
|
+
import { UpdateToolInput, UpdateToolOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateToolCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateToolCommandInput extends UpdateToolInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateToolCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateToolCommandOutput extends UpdateToolOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateToolCommand_base: {
|
|
25
|
+
new (input: UpdateToolCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateToolCommandInput, UpdateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateToolCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateToolCommandInput, UpdateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Update an existing tool
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ToolsClient, UpdateToolCommand } from "@wildix/wim-tools-client"; // ES Modules import
|
|
35
|
+
* // const { ToolsClient, UpdateToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
|
|
36
|
+
* const client = new ToolsClient(config);
|
|
37
|
+
* const input = { // UpdateToolInput
|
|
38
|
+
* company: "STRING_VALUE", // required
|
|
39
|
+
* toolId: "STRING_VALUE", // required
|
|
40
|
+
* name: "STRING_VALUE",
|
|
41
|
+
* description: "STRING_VALUE",
|
|
42
|
+
* config: "DOCUMENT_VALUE",
|
|
43
|
+
* jsonSchema: "DOCUMENT_VALUE",
|
|
44
|
+
* };
|
|
45
|
+
* const command = new UpdateToolCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // UpdateToolOutput
|
|
48
|
+
* // tool: { // Tool
|
|
49
|
+
* // id: "STRING_VALUE", // required
|
|
50
|
+
* // company: "STRING_VALUE", // required
|
|
51
|
+
* // name: "STRING_VALUE", // required
|
|
52
|
+
* // description: "STRING_VALUE", // required
|
|
53
|
+
* // type: "EMAIL", // required
|
|
54
|
+
* // config: "DOCUMENT_VALUE", // required
|
|
55
|
+
* // jsonSchema: "DOCUMENT_VALUE", // required
|
|
56
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
57
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
58
|
+
* // },
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param UpdateToolCommandInput - {@link UpdateToolCommandInput}
|
|
64
|
+
* @returns {@link UpdateToolCommandOutput}
|
|
65
|
+
* @see {@link UpdateToolCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link UpdateToolCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link ToolsClientResolvedConfig | config} for ToolsClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ToolNotFoundException} (client fault)
|
|
72
|
+
* Tool not found error
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ToolExecutionException} (server fault)
|
|
75
|
+
* Tool execution failed error
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ToolsServiceException}
|
|
78
|
+
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
79
|
+
*
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export declare class UpdateToolCommand extends UpdateToolCommand_base {
|
|
84
|
+
/** @internal type navigation helper, not in runtime. */
|
|
85
|
+
protected static __types: {
|
|
86
|
+
api: {
|
|
87
|
+
input: UpdateToolInput;
|
|
88
|
+
output: UpdateToolOutput;
|
|
89
|
+
};
|
|
90
|
+
sdk: {
|
|
91
|
+
input: UpdateToolCommandInput;
|
|
92
|
+
output: UpdateToolCommandOutput;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}
|