@wildix/wim-tools-client 0.0.5 → 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/commands/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +2 -41
- package/dist-es/Tools.js +0 -2
- 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 +2 -3
- 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/package.json +1 -1
- 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 {
|
|
@@ -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 {
|
|
@@ -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,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 { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
@@ -17,11 +16,11 @@ export { __Client };
|
|
|
17
16
|
/**
|
|
18
17
|
* @public
|
|
19
18
|
*/
|
|
20
|
-
export type ServiceInputTypes = AddToolCommandInput | DeleteToolCommandInput | ExecuteToolCommandInput | GetToolCommandInput | ListToolsCommandInput |
|
|
19
|
+
export type ServiceInputTypes = AddToolCommandInput | DeleteToolCommandInput | ExecuteToolCommandInput | GetToolCommandInput | ListToolsCommandInput | UpdateToolCommandInput;
|
|
21
20
|
/**
|
|
22
21
|
* @public
|
|
23
22
|
*/
|
|
24
|
-
export type ServiceOutputTypes = AddToolCommandOutput | DeleteToolCommandOutput | ExecuteToolCommandOutput | GetToolCommandOutput | ListToolsCommandOutput |
|
|
23
|
+
export type ServiceOutputTypes = AddToolCommandOutput | DeleteToolCommandOutput | ExecuteToolCommandOutput | GetToolCommandOutput | ListToolsCommandOutput | UpdateToolCommandOutput;
|
|
25
24
|
/**
|
|
26
25
|
* @public
|
|
27
26
|
*/
|
|
@@ -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
|
*/
|
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",
|
|
@@ -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
|
-
}
|