@wildix/wim-tools-client 0.0.6 → 0.0.9

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 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 {
@@ -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.de_TestEndpointCommand = exports.de_ListToolsCommand = exports.de_GetToolCommand = exports.de_ExecuteToolCommand = exports.de_DeleteToolCommand = exports.de_AddToolCommand = exports.se_UpdateToolCommand = exports.se_TestEndpointCommand = exports.se_ListToolsCommand = exports.se_GetToolCommand = exports.se_ExecuteToolCommand = exports.se_DeleteToolCommand = exports.se_AddToolCommand = void 0;
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': _ => se_ExecutionContext(_, 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 {
@@ -3,5 +3,4 @@ export * from "./DeleteToolCommand";
3
3
  export * from "./ExecuteToolCommand";
4
4
  export * from "./GetToolCommand";
5
5
  export * from "./ListToolsCommand";
6
- export * from "./TestEndpointCommand";
7
6
  export * from "./UpdateToolCommand";
@@ -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': _ => se_ExecutionContext(_, 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
  };
@@ -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,7 +3,6 @@ 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";
9
8
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
@@ -16,11 +15,11 @@ export { __Client };
16
15
  /**
17
16
  * @public
18
17
  */
19
- export type ServiceInputTypes = AddToolCommandInput | DeleteToolCommandInput | ExecuteToolCommandInput | GetToolCommandInput | ListToolsCommandInput | TestEndpointCommandInput | UpdateToolCommandInput;
18
+ export type ServiceInputTypes = AddToolCommandInput | DeleteToolCommandInput | ExecuteToolCommandInput | GetToolCommandInput | ListToolsCommandInput | UpdateToolCommandInput;
20
19
  /**
21
20
  * @public
22
21
  */
23
- export type ServiceOutputTypes = AddToolCommandOutput | DeleteToolCommandOutput | ExecuteToolCommandOutput | GetToolCommandOutput | ListToolsCommandOutput | TestEndpointCommandOutput | UpdateToolCommandOutput;
22
+ export type ServiceOutputTypes = AddToolCommandOutput | DeleteToolCommandOutput | ExecuteToolCommandOutput | GetToolCommandOutput | ListToolsCommandOutput | UpdateToolCommandOutput;
24
23
  /**
25
24
  * @public
26
25
  */
@@ -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);
@@ -3,5 +3,4 @@ export * from "./DeleteToolCommand";
3
3
  export * from "./ExecuteToolCommand";
4
4
  export * from "./GetToolCommand";
5
5
  export * from "./ListToolsCommand";
6
- export * from "./TestEndpointCommand";
7
6
  export * from "./UpdateToolCommand";
@@ -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?: string | undefined;
373
+ name: string;
409
374
  /**
410
375
  * Updated description
411
376
  * @public
412
377
  */
413
- description?: string | undefined;
378
+ description: string;
414
379
  /**
415
380
  * Updated configuration
416
381
  * @public
417
382
  */
418
- config?: __DocumentType | undefined;
383
+ config: __DocumentType;
419
384
  /**
420
385
  * Updated JSON Schema
421
386
  * @public
422
387
  */
423
- jsonSchema?: __DocumentType | undefined;
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
  */
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.6",
4
+ "version": "0.0.9",
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
- }