@wildix/wim-tools-client 0.0.9 → 0.0.11
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 +4 -2
- package/dist-cjs/ToolsClient.js +6 -11
- package/dist-cjs/commands/{AddToolCommand.js → CreateToolCommand.js} +7 -7
- package/dist-cjs/commands/DescribeToolsCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -1
- package/dist-cjs/models/models_0.js +85 -22
- package/dist-cjs/protocols/Aws_restJson1.js +70 -84
- package/dist-es/Tools.js +4 -2
- package/dist-es/ToolsClient.js +6 -11
- package/dist-es/commands/{AddToolCommand.js → CreateToolCommand.js} +6 -6
- package/dist-es/commands/DescribeToolsCommand.js +17 -0
- package/dist-es/commands/index.js +2 -1
- package/dist-es/models/models_0.js +82 -19
- package/dist-es/protocols/Aws_restJson1.js +67 -83
- package/dist-types/Tools.d.ts +12 -5
- package/dist-types/ToolsClient.d.ts +5 -3
- package/dist-types/commands/CreateToolCommand.d.ts +303 -0
- package/dist-types/commands/DeleteToolCommand.d.ts +5 -5
- package/dist-types/commands/DescribeToolsCommand.d.ts +97 -0
- package/dist-types/commands/ExecuteToolCommand.d.ts +13 -16
- package/dist-types/commands/GetToolCommand.d.ts +114 -11
- package/dist-types/commands/ListToolsCommand.d.ts +114 -22
- package/dist-types/commands/UpdateToolCommand.d.ts +222 -13
- package/dist-types/commands/index.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +380 -273
- package/dist-types/protocols/Aws_restJson1.d.ts +14 -5
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/package.json +2 -2
- package/dist-types/commands/AddToolCommand.d.ts +0 -98
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateToolCommandInput, CreateToolCommandOutput } from "../commands/CreateToolCommand";
|
|
2
2
|
import { DeleteToolCommandInput, DeleteToolCommandOutput } from "../commands/DeleteToolCommand";
|
|
3
|
+
import { DescribeToolsCommandInput, DescribeToolsCommandOutput } from "../commands/DescribeToolsCommand";
|
|
3
4
|
import { ExecuteToolCommandInput, ExecuteToolCommandOutput } from "../commands/ExecuteToolCommand";
|
|
4
5
|
import { GetToolCommandInput, GetToolCommandOutput } from "../commands/GetToolCommand";
|
|
5
6
|
import { ListToolsCommandInput, ListToolsCommandOutput } from "../commands/ListToolsCommand";
|
|
@@ -7,13 +8,17 @@ import { UpdateToolCommandInput, UpdateToolCommandOutput } from "../commands/Upd
|
|
|
7
8
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
8
9
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
9
10
|
/**
|
|
10
|
-
*
|
|
11
|
+
* serializeAws_restJson1CreateToolCommand
|
|
11
12
|
*/
|
|
12
|
-
export declare const
|
|
13
|
+
export declare const se_CreateToolCommand: (input: CreateToolCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
14
|
/**
|
|
14
15
|
* serializeAws_restJson1DeleteToolCommand
|
|
15
16
|
*/
|
|
16
17
|
export declare const se_DeleteToolCommand: (input: DeleteToolCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
18
|
+
/**
|
|
19
|
+
* serializeAws_restJson1DescribeToolsCommand
|
|
20
|
+
*/
|
|
21
|
+
export declare const se_DescribeToolsCommand: (input: DescribeToolsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
17
22
|
/**
|
|
18
23
|
* serializeAws_restJson1ExecuteToolCommand
|
|
19
24
|
*/
|
|
@@ -31,13 +36,17 @@ export declare const se_ListToolsCommand: (input: ListToolsCommandInput, context
|
|
|
31
36
|
*/
|
|
32
37
|
export declare const se_UpdateToolCommand: (input: UpdateToolCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
33
38
|
/**
|
|
34
|
-
*
|
|
39
|
+
* deserializeAws_restJson1CreateToolCommand
|
|
35
40
|
*/
|
|
36
|
-
export declare const
|
|
41
|
+
export declare const de_CreateToolCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateToolCommandOutput>;
|
|
37
42
|
/**
|
|
38
43
|
* deserializeAws_restJson1DeleteToolCommand
|
|
39
44
|
*/
|
|
40
45
|
export declare const de_DeleteToolCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteToolCommandOutput>;
|
|
46
|
+
/**
|
|
47
|
+
* deserializeAws_restJson1DescribeToolsCommand
|
|
48
|
+
*/
|
|
49
|
+
export declare const de_DescribeToolsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeToolsCommandOutput>;
|
|
41
50
|
/**
|
|
42
51
|
* deserializeAws_restJson1ExecuteToolCommand
|
|
43
52
|
*/
|
|
@@ -15,6 +15,7 @@ export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
|
15
15
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
16
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
17
17
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
|
+
endpoint?: (() => Record<string, string>) | undefined;
|
|
18
19
|
apiVersion: string;
|
|
19
20
|
cacheMiddleware?: boolean | undefined;
|
|
20
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -16,6 +16,7 @@ export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
|
16
16
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
17
17
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
18
18
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
19
|
+
endpoint?: (() => Record<string, string>) | undefined;
|
|
19
20
|
apiVersion: string;
|
|
20
21
|
cacheMiddleware?: boolean | undefined;
|
|
21
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -7,6 +7,7 @@ export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
|
7
7
|
sha256: import("@smithy/types").HashConstructor;
|
|
8
8
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
9
9
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
10
|
+
endpoint?: (() => Record<string, string>) | undefined;
|
|
10
11
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
11
12
|
apiVersion: string;
|
|
12
13
|
cacheMiddleware?: boolean | undefined;
|
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.11",
|
|
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",
|
|
@@ -79,4 +79,4 @@
|
|
|
79
79
|
"react-native": {
|
|
80
80
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
81
81
|
}
|
|
82
|
-
}
|
|
82
|
+
}
|
|
@@ -1,98 +0,0 @@
|
|
|
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",
|
|
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
|
-
}
|