@wildix/wim-tools-client 0.0.6 → 0.0.8
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 +0 -2
- package/dist-cjs/ToolsClient.js +9 -15
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +2 -41
- package/dist-es/Tools.js +0 -2
- package/dist-es/ToolsClient.js +9 -15
- package/dist-es/commands/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +2 -39
- package/dist-types/Tools.d.ts +0 -8
- package/dist-types/ToolsClient.d.ts +6 -8
- package/dist-types/commands/ExecuteToolCommand.d.ts +0 -2
- package/dist-types/commands/UpdateToolCommand.d.ts +4 -4
- package/dist-types/commands/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +4 -39
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -9
- 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 +2 -3
- package/dist-cjs/commands/TestEndpointCommand.js +0 -21
- package/dist-es/commands/TestEndpointCommand.js +0 -17
- package/dist-types/commands/TestEndpointCommand.d.ts +0 -81
package/dist-cjs/Tools.js
CHANGED
|
@@ -7,7 +7,6 @@ const DeleteToolCommand_1 = require("./commands/DeleteToolCommand");
|
|
|
7
7
|
const ExecuteToolCommand_1 = require("./commands/ExecuteToolCommand");
|
|
8
8
|
const GetToolCommand_1 = require("./commands/GetToolCommand");
|
|
9
9
|
const ListToolsCommand_1 = require("./commands/ListToolsCommand");
|
|
10
|
-
const TestEndpointCommand_1 = require("./commands/TestEndpointCommand");
|
|
11
10
|
const UpdateToolCommand_1 = require("./commands/UpdateToolCommand");
|
|
12
11
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
13
12
|
const commands = {
|
|
@@ -16,7 +15,6 @@ const commands = {
|
|
|
16
15
|
ExecuteToolCommand: ExecuteToolCommand_1.ExecuteToolCommand,
|
|
17
16
|
GetToolCommand: GetToolCommand_1.GetToolCommand,
|
|
18
17
|
ListToolsCommand: ListToolsCommand_1.ListToolsCommand,
|
|
19
|
-
TestEndpointCommand: TestEndpointCommand_1.TestEndpointCommand,
|
|
20
18
|
UpdateToolCommand: UpdateToolCommand_1.UpdateToolCommand,
|
|
21
19
|
};
|
|
22
20
|
class Tools extends ToolsClient_1.ToolsClient {
|
package/dist-cjs/ToolsClient.js
CHANGED
|
@@ -3,14 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ToolsClient = exports.__Client = void 0;
|
|
4
4
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
5
5
|
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
6
|
+
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
6
7
|
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
7
8
|
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
8
9
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
10
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
11
|
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
10
12
|
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
11
13
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
12
14
|
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
13
|
-
const smithy_utils_1 = require("@wildix/smithy-utils");
|
|
14
15
|
class ToolsClient extends smithy_client_1.Client {
|
|
15
16
|
config;
|
|
16
17
|
constructor(...[configuration]) {
|
|
@@ -18,23 +19,16 @@ class ToolsClient extends smithy_client_1.Client {
|
|
|
18
19
|
super(_config_0);
|
|
19
20
|
this.initConfig = _config_0;
|
|
20
21
|
let _config_1 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_0);
|
|
21
|
-
let _config_2 = (0,
|
|
22
|
-
let _config_3 = (0,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
protocol: "https",
|
|
28
|
-
port: '443',
|
|
29
|
-
path: '/'
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
_config_3.endpoint = endpoint;
|
|
33
|
-
this.config = _config_3;
|
|
34
|
-
this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
22
|
+
let _config_2 = (0, config_resolver_1.resolveCustomEndpointsConfig)(_config_1);
|
|
23
|
+
let _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
24
|
+
let _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
|
|
25
|
+
let _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
26
|
+
let _config_6 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_5, configuration?.extensions || []);
|
|
27
|
+
this.config = _config_6;
|
|
35
28
|
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
36
29
|
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
37
30
|
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
31
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
38
32
|
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
39
33
|
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
40
34
|
}
|
|
@@ -6,5 +6,4 @@ tslib_1.__exportStar(require("./DeleteToolCommand"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./ExecuteToolCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./GetToolCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./ListToolsCommand"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./TestEndpointCommand"), exports);
|
|
10
9
|
tslib_1.__exportStar(require("./UpdateToolCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateToolCommand = exports.
|
|
3
|
+
exports.de_UpdateToolCommand = exports.de_ListToolsCommand = exports.de_GetToolCommand = exports.de_ExecuteToolCommand = exports.de_DeleteToolCommand = exports.de_AddToolCommand = exports.se_UpdateToolCommand = exports.se_ListToolsCommand = exports.se_GetToolCommand = exports.se_ExecuteToolCommand = exports.se_DeleteToolCommand = exports.se_AddToolCommand = void 0;
|
|
4
4
|
const ToolsServiceException_1 = require("../models/ToolsServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -50,7 +50,7 @@ const se_ExecuteToolCommand = async (input, context) => {
|
|
|
50
50
|
b.bp("/v1/tools/execute");
|
|
51
51
|
let body;
|
|
52
52
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
53
|
-
'context': _ =>
|
|
53
|
+
'context': _ => (0, smithy_client_1._json)(_),
|
|
54
54
|
'parameters': _ => se_Document(_, context),
|
|
55
55
|
'toolId': [],
|
|
56
56
|
}));
|
|
@@ -92,21 +92,6 @@ const se_ListToolsCommand = async (input, context) => {
|
|
|
92
92
|
return b.build();
|
|
93
93
|
};
|
|
94
94
|
exports.se_ListToolsCommand = se_ListToolsCommand;
|
|
95
|
-
const se_TestEndpointCommand = async (input, context) => {
|
|
96
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
97
|
-
const headers = {};
|
|
98
|
-
b.bp("/v1/test");
|
|
99
|
-
const query = (0, smithy_client_1.map)({
|
|
100
|
-
[_c]: [, input[_c]],
|
|
101
|
-
});
|
|
102
|
-
let body;
|
|
103
|
-
b.m("GET")
|
|
104
|
-
.h(headers)
|
|
105
|
-
.q(query)
|
|
106
|
-
.b(body);
|
|
107
|
-
return b.build();
|
|
108
|
-
};
|
|
109
|
-
exports.se_TestEndpointCommand = se_TestEndpointCommand;
|
|
110
95
|
const se_UpdateToolCommand = async (input, context) => {
|
|
111
96
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
112
97
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
@@ -200,22 +185,6 @@ const de_ListToolsCommand = async (output, context) => {
|
|
|
200
185
|
return contents;
|
|
201
186
|
};
|
|
202
187
|
exports.de_ListToolsCommand = de_ListToolsCommand;
|
|
203
|
-
const de_TestEndpointCommand = async (output, context) => {
|
|
204
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
205
|
-
return de_CommandError(output, context);
|
|
206
|
-
}
|
|
207
|
-
const contents = (0, smithy_client_1.map)({
|
|
208
|
-
$metadata: deserializeMetadata(output),
|
|
209
|
-
});
|
|
210
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
211
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
212
|
-
'status': smithy_client_1.expectString,
|
|
213
|
-
'timestamp': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
214
|
-
});
|
|
215
|
-
Object.assign(contents, doc);
|
|
216
|
-
return contents;
|
|
217
|
-
};
|
|
218
|
-
exports.de_TestEndpointCommand = de_TestEndpointCommand;
|
|
219
188
|
const de_UpdateToolCommand = async (output, context) => {
|
|
220
189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
221
190
|
return de_CommandError(output, context);
|
|
@@ -316,14 +285,6 @@ const de_ToolNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
316
285
|
const se_Document = (input, context) => {
|
|
317
286
|
return input;
|
|
318
287
|
};
|
|
319
|
-
const se_ExecutionContext = (input, context) => {
|
|
320
|
-
return (0, smithy_client_1.take)(input, {
|
|
321
|
-
'company': [],
|
|
322
|
-
'metadata': _ => se_Document(_, context),
|
|
323
|
-
'sessionId': [],
|
|
324
|
-
'userId': [],
|
|
325
|
-
});
|
|
326
|
-
};
|
|
327
288
|
const de_Document = (output, context) => {
|
|
328
289
|
return output;
|
|
329
290
|
};
|
package/dist-es/Tools.js
CHANGED
|
@@ -4,7 +4,6 @@ import { DeleteToolCommand, } from "./commands/DeleteToolCommand";
|
|
|
4
4
|
import { ExecuteToolCommand, } from "./commands/ExecuteToolCommand";
|
|
5
5
|
import { GetToolCommand, } from "./commands/GetToolCommand";
|
|
6
6
|
import { ListToolsCommand, } from "./commands/ListToolsCommand";
|
|
7
|
-
import { TestEndpointCommand, } from "./commands/TestEndpointCommand";
|
|
8
7
|
import { UpdateToolCommand, } from "./commands/UpdateToolCommand";
|
|
9
8
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
10
9
|
const commands = {
|
|
@@ -13,7 +12,6 @@ const commands = {
|
|
|
13
12
|
ExecuteToolCommand,
|
|
14
13
|
GetToolCommand,
|
|
15
14
|
ListToolsCommand,
|
|
16
|
-
TestEndpointCommand,
|
|
17
15
|
UpdateToolCommand,
|
|
18
16
|
};
|
|
19
17
|
export class Tools extends ToolsClient {
|
package/dist-es/ToolsClient.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
2
2
|
import { resolveRuntimeExtensions, } from "./runtimeExtensions";
|
|
3
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
3
4
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
4
5
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
5
6
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
7
|
+
import { resolveCustomEndpointsConfig, resolveRegionConfig, } from "@smithy/config-resolver";
|
|
6
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
7
9
|
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
8
10
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
9
|
-
import { authorizationMiddleware } from '@wildix/smithy-utils';
|
|
10
11
|
export { __Client };
|
|
11
12
|
export class ToolsClient extends __Client {
|
|
12
13
|
config;
|
|
@@ -15,23 +16,16 @@ export class ToolsClient extends __Client {
|
|
|
15
16
|
super(_config_0);
|
|
16
17
|
this.initConfig = _config_0;
|
|
17
18
|
let _config_1 = resolveUserAgentConfig(_config_0);
|
|
18
|
-
let _config_2 =
|
|
19
|
-
let _config_3 =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
protocol: "https",
|
|
25
|
-
port: '443',
|
|
26
|
-
path: '/'
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
_config_3.endpoint = endpoint;
|
|
30
|
-
this.config = _config_3;
|
|
31
|
-
this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
19
|
+
let _config_2 = resolveCustomEndpointsConfig(_config_1);
|
|
20
|
+
let _config_3 = resolveRetryConfig(_config_2);
|
|
21
|
+
let _config_4 = resolveRegionConfig(_config_3);
|
|
22
|
+
let _config_5 = resolveHostHeaderConfig(_config_4);
|
|
23
|
+
let _config_6 = resolveRuntimeExtensions(_config_5, configuration?.extensions || []);
|
|
24
|
+
this.config = _config_6;
|
|
32
25
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
26
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
34
27
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
35
29
|
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
36
30
|
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
37
31
|
}
|
|
@@ -2,7 +2,7 @@ import { ToolsServiceException as __BaseException } from "../models/ToolsService
|
|
|
2
2
|
import { ToolAlreadyExistsException, ToolExecutionException, ToolNotFoundException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, collectBody, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, _json, collectBody, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
6
6
|
export const se_AddToolCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
8
8
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -45,7 +45,7 @@ export const se_ExecuteToolCommand = async (input, context) => {
|
|
|
45
45
|
b.bp("/v1/tools/execute");
|
|
46
46
|
let body;
|
|
47
47
|
body = JSON.stringify(take(input, {
|
|
48
|
-
'context': _ =>
|
|
48
|
+
'context': _ => _json(_),
|
|
49
49
|
'parameters': _ => se_Document(_, context),
|
|
50
50
|
'toolId': [],
|
|
51
51
|
}));
|
|
@@ -84,20 +84,6 @@ export const se_ListToolsCommand = async (input, context) => {
|
|
|
84
84
|
.b(body);
|
|
85
85
|
return b.build();
|
|
86
86
|
};
|
|
87
|
-
export const se_TestEndpointCommand = async (input, context) => {
|
|
88
|
-
const b = rb(input, context);
|
|
89
|
-
const headers = {};
|
|
90
|
-
b.bp("/v1/test");
|
|
91
|
-
const query = map({
|
|
92
|
-
[_c]: [, input[_c]],
|
|
93
|
-
});
|
|
94
|
-
let body;
|
|
95
|
-
b.m("GET")
|
|
96
|
-
.h(headers)
|
|
97
|
-
.q(query)
|
|
98
|
-
.b(body);
|
|
99
|
-
return b.build();
|
|
100
|
-
};
|
|
101
87
|
export const se_UpdateToolCommand = async (input, context) => {
|
|
102
88
|
const b = rb(input, context);
|
|
103
89
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -185,21 +171,6 @@ export const de_ListToolsCommand = async (output, context) => {
|
|
|
185
171
|
Object.assign(contents, doc);
|
|
186
172
|
return contents;
|
|
187
173
|
};
|
|
188
|
-
export const de_TestEndpointCommand = async (output, context) => {
|
|
189
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
190
|
-
return de_CommandError(output, context);
|
|
191
|
-
}
|
|
192
|
-
const contents = map({
|
|
193
|
-
$metadata: deserializeMetadata(output),
|
|
194
|
-
});
|
|
195
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
196
|
-
const doc = take(data, {
|
|
197
|
-
'status': __expectString,
|
|
198
|
-
'timestamp': _ => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
199
|
-
});
|
|
200
|
-
Object.assign(contents, doc);
|
|
201
|
-
return contents;
|
|
202
|
-
};
|
|
203
174
|
export const de_UpdateToolCommand = async (output, context) => {
|
|
204
175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
205
176
|
return de_CommandError(output, context);
|
|
@@ -299,14 +270,6 @@ const de_ToolNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
299
270
|
const se_Document = (input, context) => {
|
|
300
271
|
return input;
|
|
301
272
|
};
|
|
302
|
-
const se_ExecutionContext = (input, context) => {
|
|
303
|
-
return take(input, {
|
|
304
|
-
'company': [],
|
|
305
|
-
'metadata': _ => se_Document(_, context),
|
|
306
|
-
'sessionId': [],
|
|
307
|
-
'userId': [],
|
|
308
|
-
});
|
|
309
|
-
};
|
|
310
273
|
const de_Document = (output, context) => {
|
|
311
274
|
return output;
|
|
312
275
|
};
|
package/dist-types/Tools.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { DeleteToolCommandInput, DeleteToolCommandOutput } from "./commands/Dele
|
|
|
4
4
|
import { ExecuteToolCommandInput, ExecuteToolCommandOutput } from "./commands/ExecuteToolCommand";
|
|
5
5
|
import { GetToolCommandInput, GetToolCommandOutput } from "./commands/GetToolCommand";
|
|
6
6
|
import { ListToolsCommandInput, ListToolsCommandOutput } from "./commands/ListToolsCommand";
|
|
7
|
-
import { TestEndpointCommandInput, TestEndpointCommandOutput } from "./commands/TestEndpointCommand";
|
|
8
7
|
import { UpdateToolCommandInput, UpdateToolCommandOutput } from "./commands/UpdateToolCommand";
|
|
9
8
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
10
9
|
export interface Tools {
|
|
@@ -39,13 +38,6 @@ export interface Tools {
|
|
|
39
38
|
listTools(args: ListToolsCommandInput, options?: __HttpHandlerOptions): Promise<ListToolsCommandOutput>;
|
|
40
39
|
listTools(args: ListToolsCommandInput, cb: (err: any, data?: ListToolsCommandOutput) => void): void;
|
|
41
40
|
listTools(args: ListToolsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListToolsCommandOutput) => void): void;
|
|
42
|
-
/**
|
|
43
|
-
* @see {@link TestEndpointCommand}
|
|
44
|
-
*/
|
|
45
|
-
testEndpoint(): Promise<TestEndpointCommandOutput>;
|
|
46
|
-
testEndpoint(args: TestEndpointCommandInput, options?: __HttpHandlerOptions): Promise<TestEndpointCommandOutput>;
|
|
47
|
-
testEndpoint(args: TestEndpointCommandInput, cb: (err: any, data?: TestEndpointCommandOutput) => void): void;
|
|
48
|
-
testEndpoint(args: TestEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TestEndpointCommandOutput) => void): void;
|
|
49
41
|
/**
|
|
50
42
|
* @see {@link UpdateToolCommand}
|
|
51
43
|
*/
|
|
@@ -3,24 +3,24 @@ import { DeleteToolCommandInput, DeleteToolCommandOutput } from "./commands/Dele
|
|
|
3
3
|
import { ExecuteToolCommandInput, ExecuteToolCommandOutput } from "./commands/ExecuteToolCommand";
|
|
4
4
|
import { GetToolCommandInput, GetToolCommandOutput } from "./commands/GetToolCommand";
|
|
5
5
|
import { ListToolsCommandInput, ListToolsCommandOutput } from "./commands/ListToolsCommand";
|
|
6
|
-
import { TestEndpointCommandInput, TestEndpointCommandOutput } from "./commands/TestEndpointCommand";
|
|
7
6
|
import { UpdateToolCommandInput, UpdateToolCommandOutput } from "./commands/UpdateToolCommand";
|
|
8
7
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
8
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
9
9
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
10
|
+
import { CustomEndpointsInputConfig, CustomEndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
10
11
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
11
12
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
12
13
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
13
14
|
import { Provider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
14
|
-
import { TokenProvider } from '@wildix/smithy-utils';
|
|
15
15
|
export { __Client };
|
|
16
16
|
/**
|
|
17
17
|
* @public
|
|
18
18
|
*/
|
|
19
|
-
export type ServiceInputTypes = AddToolCommandInput | DeleteToolCommandInput | ExecuteToolCommandInput | GetToolCommandInput | ListToolsCommandInput |
|
|
19
|
+
export type ServiceInputTypes = AddToolCommandInput | DeleteToolCommandInput | ExecuteToolCommandInput | GetToolCommandInput | ListToolsCommandInput | UpdateToolCommandInput;
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
22
|
*/
|
|
23
|
-
export type ServiceOutputTypes = AddToolCommandOutput | DeleteToolCommandOutput | ExecuteToolCommandOutput | GetToolCommandOutput | ListToolsCommandOutput |
|
|
23
|
+
export type ServiceOutputTypes = AddToolCommandOutput | DeleteToolCommandOutput | ExecuteToolCommandOutput | GetToolCommandOutput | ListToolsCommandOutput | UpdateToolCommandOutput;
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
*/
|
|
@@ -111,20 +111,18 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
111
111
|
/**
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
114
|
-
export type ToolsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig;
|
|
114
|
+
export type ToolsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & CustomEndpointsInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig;
|
|
115
115
|
/**
|
|
116
116
|
* @public
|
|
117
117
|
*
|
|
118
118
|
* The configuration interface of ToolsClient class constructor that set the region, credentials and other options.
|
|
119
119
|
*/
|
|
120
120
|
export interface ToolsClientConfig extends ToolsClientConfigType {
|
|
121
|
-
env?: 'stage' | 'stable' | 'prod';
|
|
122
|
-
token: TokenProvider;
|
|
123
121
|
}
|
|
124
122
|
/**
|
|
125
123
|
* @public
|
|
126
124
|
*/
|
|
127
|
-
export type ToolsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig;
|
|
125
|
+
export type ToolsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & CustomEndpointsResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig;
|
|
128
126
|
/**
|
|
129
127
|
* @public
|
|
130
128
|
*
|
|
@@ -41,8 +41,6 @@ declare const ExecuteToolCommand_base: {
|
|
|
41
41
|
* context: { // ExecutionContext
|
|
42
42
|
* company: "STRING_VALUE", // required
|
|
43
43
|
* sessionId: "STRING_VALUE",
|
|
44
|
-
* userId: "STRING_VALUE",
|
|
45
|
-
* metadata: "DOCUMENT_VALUE",
|
|
46
44
|
* },
|
|
47
45
|
* };
|
|
48
46
|
* const command = new ExecuteToolCommand(input);
|
|
@@ -37,10 +37,10 @@ declare const UpdateToolCommand_base: {
|
|
|
37
37
|
* const input = { // UpdateToolInput
|
|
38
38
|
* company: "STRING_VALUE",
|
|
39
39
|
* toolId: "STRING_VALUE", // required
|
|
40
|
-
* name: "STRING_VALUE",
|
|
41
|
-
* description: "STRING_VALUE",
|
|
42
|
-
* config: "DOCUMENT_VALUE",
|
|
43
|
-
* jsonSchema: "DOCUMENT_VALUE",
|
|
40
|
+
* name: "STRING_VALUE", // required
|
|
41
|
+
* description: "STRING_VALUE", // required
|
|
42
|
+
* config: "DOCUMENT_VALUE", // required
|
|
43
|
+
* jsonSchema: "DOCUMENT_VALUE", // required
|
|
44
44
|
* };
|
|
45
45
|
* const command = new UpdateToolCommand(input);
|
|
46
46
|
* const response = await client.send(command);
|
|
@@ -198,16 +198,6 @@ export interface ExecutionContext {
|
|
|
198
198
|
* @public
|
|
199
199
|
*/
|
|
200
200
|
sessionId?: string | undefined;
|
|
201
|
-
/**
|
|
202
|
-
* User identifier (if applicable)
|
|
203
|
-
* @public
|
|
204
|
-
*/
|
|
205
|
-
userId?: string | undefined;
|
|
206
|
-
/**
|
|
207
|
-
* Additional context data
|
|
208
|
-
* @public
|
|
209
|
-
*/
|
|
210
|
-
metadata?: __DocumentType | undefined;
|
|
211
201
|
}
|
|
212
202
|
/**
|
|
213
203
|
* @public
|
|
@@ -362,31 +352,6 @@ export interface ListToolsOutput {
|
|
|
362
352
|
*/
|
|
363
353
|
llmTools?: (LlmToolDefinition)[] | undefined;
|
|
364
354
|
}
|
|
365
|
-
/**
|
|
366
|
-
* @public
|
|
367
|
-
*/
|
|
368
|
-
export interface TestEndpointInput {
|
|
369
|
-
/**
|
|
370
|
-
* Company identifier for authorization
|
|
371
|
-
* @public
|
|
372
|
-
*/
|
|
373
|
-
company?: string | undefined;
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* @public
|
|
377
|
-
*/
|
|
378
|
-
export interface TestEndpointOutput {
|
|
379
|
-
/**
|
|
380
|
-
* Status message
|
|
381
|
-
* @public
|
|
382
|
-
*/
|
|
383
|
-
status: string;
|
|
384
|
-
/**
|
|
385
|
-
* Timestamp of the response
|
|
386
|
-
* @public
|
|
387
|
-
*/
|
|
388
|
-
timestamp: Date;
|
|
389
|
-
}
|
|
390
355
|
/**
|
|
391
356
|
* @public
|
|
392
357
|
*/
|
|
@@ -405,22 +370,22 @@ export interface UpdateToolInput {
|
|
|
405
370
|
* Updated tool name
|
|
406
371
|
* @public
|
|
407
372
|
*/
|
|
408
|
-
name
|
|
373
|
+
name: string;
|
|
409
374
|
/**
|
|
410
375
|
* Updated description
|
|
411
376
|
* @public
|
|
412
377
|
*/
|
|
413
|
-
description
|
|
378
|
+
description: string;
|
|
414
379
|
/**
|
|
415
380
|
* Updated configuration
|
|
416
381
|
* @public
|
|
417
382
|
*/
|
|
418
|
-
config
|
|
383
|
+
config: __DocumentType;
|
|
419
384
|
/**
|
|
420
385
|
* Updated JSON Schema
|
|
421
386
|
* @public
|
|
422
387
|
*/
|
|
423
|
-
jsonSchema
|
|
388
|
+
jsonSchema: __DocumentType;
|
|
424
389
|
}
|
|
425
390
|
/**
|
|
426
391
|
* @public
|
|
@@ -3,7 +3,6 @@ import { DeleteToolCommandInput, DeleteToolCommandOutput } from "../commands/Del
|
|
|
3
3
|
import { ExecuteToolCommandInput, ExecuteToolCommandOutput } from "../commands/ExecuteToolCommand";
|
|
4
4
|
import { GetToolCommandInput, GetToolCommandOutput } from "../commands/GetToolCommand";
|
|
5
5
|
import { ListToolsCommandInput, ListToolsCommandOutput } from "../commands/ListToolsCommand";
|
|
6
|
-
import { TestEndpointCommandInput, TestEndpointCommandOutput } from "../commands/TestEndpointCommand";
|
|
7
6
|
import { UpdateToolCommandInput, UpdateToolCommandOutput } from "../commands/UpdateToolCommand";
|
|
8
7
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
9
8
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
@@ -27,10 +26,6 @@ export declare const se_GetToolCommand: (input: GetToolCommandInput, context: __
|
|
|
27
26
|
* serializeAws_restJson1ListToolsCommand
|
|
28
27
|
*/
|
|
29
28
|
export declare const se_ListToolsCommand: (input: ListToolsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
30
|
-
/**
|
|
31
|
-
* serializeAws_restJson1TestEndpointCommand
|
|
32
|
-
*/
|
|
33
|
-
export declare const se_TestEndpointCommand: (input: TestEndpointCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
34
29
|
/**
|
|
35
30
|
* serializeAws_restJson1UpdateToolCommand
|
|
36
31
|
*/
|
|
@@ -55,10 +50,6 @@ export declare const de_GetToolCommand: (output: __HttpResponse, context: __Serd
|
|
|
55
50
|
* deserializeAws_restJson1ListToolsCommand
|
|
56
51
|
*/
|
|
57
52
|
export declare const de_ListToolsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListToolsCommandOutput>;
|
|
58
|
-
/**
|
|
59
|
-
* deserializeAws_restJson1TestEndpointCommand
|
|
60
|
-
*/
|
|
61
|
-
export declare const de_TestEndpointCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TestEndpointCommandOutput>;
|
|
62
53
|
/**
|
|
63
54
|
* deserializeAws_restJson1UpdateToolCommand
|
|
64
55
|
*/
|
|
@@ -13,8 +13,6 @@ export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
|
13
13
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
14
14
|
sha256: import("@smithy/types").HashConstructor;
|
|
15
15
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
|
-
env?: "stage" | "stable" | "prod" | undefined;
|
|
17
|
-
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
16
|
apiVersion: string;
|
|
19
17
|
cacheMiddleware?: boolean | undefined;
|
|
20
18
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -27,5 +25,10 @@ export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
|
27
25
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
28
26
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
29
27
|
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
28
|
+
endpoint: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint>;
|
|
29
|
+
tls?: boolean | undefined;
|
|
30
|
+
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean> | undefined;
|
|
30
31
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
32
|
+
region?: string | import("@smithy/types").Provider<string> | undefined;
|
|
33
|
+
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean> | undefined;
|
|
31
34
|
};
|
|
@@ -14,8 +14,6 @@ export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
|
14
14
|
sha256: import("@smithy/types").HashConstructor;
|
|
15
15
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
16
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
17
|
-
env?: "stage" | "stable" | "prod" | undefined;
|
|
18
|
-
token: import("@wildix/smithy-utils").TokenProvider;
|
|
19
17
|
apiVersion: string;
|
|
20
18
|
cacheMiddleware?: boolean | undefined;
|
|
21
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -27,5 +25,10 @@ export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
|
27
25
|
logger: import("@smithy/types").Logger;
|
|
28
26
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
27
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
28
|
+
endpoint: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint>;
|
|
29
|
+
tls?: boolean | undefined;
|
|
30
|
+
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean> | undefined;
|
|
30
31
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
32
|
+
region?: string | import("@smithy/types").Provider<string> | undefined;
|
|
33
|
+
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean> | undefined;
|
|
31
34
|
};
|
|
@@ -5,8 +5,6 @@ import { ToolsClientConfig } from "./ToolsClient";
|
|
|
5
5
|
export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
6
6
|
runtime: string;
|
|
7
7
|
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
-
env?: "stage" | "stable" | "prod" | undefined;
|
|
9
|
-
token: import("@wildix/smithy-utils").TokenProvider;
|
|
10
8
|
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
9
|
apiVersion: string;
|
|
12
10
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -26,5 +24,10 @@ export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
|
26
24
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
27
25
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
28
26
|
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
27
|
+
endpoint: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint>;
|
|
28
|
+
tls?: boolean | undefined;
|
|
29
|
+
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean> | undefined;
|
|
29
30
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
31
|
+
region?: string | import("@smithy/types").Provider<string> | undefined;
|
|
32
|
+
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean> | undefined;
|
|
30
33
|
};
|
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.8",
|
|
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",
|
|
@@ -49,8 +49,7 @@
|
|
|
49
49
|
"@smithy/util-defaults-mode-browser": "^4.0.8",
|
|
50
50
|
"@smithy/util-defaults-mode-node": "^4.0.8",
|
|
51
51
|
"@smithy/util-retry": "^4.0.2",
|
|
52
|
-
"@smithy/util-utf8": "^4.0.0"
|
|
53
|
-
"@wildix/smithy-utils": "^1.0.3"
|
|
52
|
+
"@smithy/util-utf8": "^4.0.0"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
55
|
"@tsconfig/node18": "18.2.4",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestEndpointCommand = exports.$Command = void 0;
|
|
4
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class TestEndpointCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [
|
|
11
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
-
];
|
|
13
|
-
})
|
|
14
|
-
.s("Tools", "TestEndpoint", {})
|
|
15
|
-
.n("ToolsClient", "TestEndpointCommand")
|
|
16
|
-
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.se_TestEndpointCommand)
|
|
18
|
-
.de(Aws_restJson1_1.de_TestEndpointCommand)
|
|
19
|
-
.build() {
|
|
20
|
-
}
|
|
21
|
-
exports.TestEndpointCommand = TestEndpointCommand;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { de_TestEndpointCommand, se_TestEndpointCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
export { $Command };
|
|
5
|
-
export class TestEndpointCommand extends $Command.classBuilder()
|
|
6
|
-
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
-
})
|
|
11
|
-
.s("Tools", "TestEndpoint", {})
|
|
12
|
-
.n("ToolsClient", "TestEndpointCommand")
|
|
13
|
-
.f(void 0, void 0)
|
|
14
|
-
.ser(se_TestEndpointCommand)
|
|
15
|
-
.de(de_TestEndpointCommand)
|
|
16
|
-
.build() {
|
|
17
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
|
|
2
|
-
import { TestEndpointInput, TestEndpointOutput } 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 TestEndpointCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface TestEndpointCommandInput extends TestEndpointInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link TestEndpointCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface TestEndpointCommandOutput extends TestEndpointOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const TestEndpointCommand_base: {
|
|
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
|
-
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @public
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { ToolsClient, TestEndpointCommand } from "@wildix/wim-tools-client"; // ES Modules import
|
|
36
|
-
* // const { ToolsClient, TestEndpointCommand } = require("@wildix/wim-tools-client"); // CommonJS import
|
|
37
|
-
* const client = new ToolsClient(config);
|
|
38
|
-
* const input = { // TestEndpointInput
|
|
39
|
-
* company: "STRING_VALUE",
|
|
40
|
-
* };
|
|
41
|
-
* const command = new TestEndpointCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* // { // TestEndpointOutput
|
|
44
|
-
* // status: "STRING_VALUE", // required
|
|
45
|
-
* // timestamp: new Date("TIMESTAMP"), // required
|
|
46
|
-
* // };
|
|
47
|
-
*
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @param TestEndpointCommandInput - {@link TestEndpointCommandInput}
|
|
51
|
-
* @returns {@link TestEndpointCommandOutput}
|
|
52
|
-
* @see {@link TestEndpointCommandInput} for command's `input` shape.
|
|
53
|
-
* @see {@link TestEndpointCommandOutput} for command's `response` shape.
|
|
54
|
-
* @see {@link ToolsClientResolvedConfig | config} for ToolsClient's `config` shape.
|
|
55
|
-
*
|
|
56
|
-
* @throws {@link ValidationException} (client fault)
|
|
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
|
-
*
|
|
64
|
-
* @throws {@link ToolsServiceException}
|
|
65
|
-
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
export declare class TestEndpointCommand extends TestEndpointCommand_base {
|
|
70
|
-
/** @internal type navigation helper, not in runtime. */
|
|
71
|
-
protected static __types: {
|
|
72
|
-
api: {
|
|
73
|
-
input: TestEndpointInput;
|
|
74
|
-
output: TestEndpointOutput;
|
|
75
|
-
};
|
|
76
|
-
sdk: {
|
|
77
|
-
input: TestEndpointCommandInput;
|
|
78
|
-
output: TestEndpointCommandOutput;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
}
|