@wildix/wim-tools-client 0.0.14 → 0.0.17
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/models/models_0.js +14 -14
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/models/models_0.js +12 -12
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/CreateToolCommand.d.ts +2 -2
- package/dist-types/commands/ExecuteToolCommand.d.ts +2 -0
- package/dist-types/commands/GetToolCommand.d.ts +1 -1
- package/dist-types/commands/ListToolsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateToolCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +14 -12
- package/package.json +1 -1
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToolExecutionException = exports.ToolVariableType = exports.ToolHandler = exports.ToolMcpTransport = exports.ToolAuthorizationType = exports.ToolEmailHandler = exports.ToolChatHandler = exports.ToolStringValue = exports.
|
|
3
|
+
exports.ToolExecutionException = exports.ToolVariableType = exports.ToolHandler = exports.ToolMcpTransport = exports.ToolAuthorizationType = exports.ToolEmailHandler = exports.ToolChatHandler = exports.ToolStringValue = exports.ValidationException = exports.NotFoundException = exports.AlreadyExistException = void 0;
|
|
4
4
|
const ToolsServiceException_1 = require("./ToolsServiceException");
|
|
5
|
+
class AlreadyExistException extends ToolsServiceException_1.ToolsServiceException {
|
|
6
|
+
name = "AlreadyExistException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "AlreadyExistException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, AlreadyExistException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AlreadyExistException = AlreadyExistException;
|
|
5
18
|
class NotFoundException extends ToolsServiceException_1.ToolsServiceException {
|
|
6
19
|
name = "NotFoundException";
|
|
7
20
|
$fault = "client";
|
|
@@ -28,19 +41,6 @@ class ValidationException extends ToolsServiceException_1.ToolsServiceException
|
|
|
28
41
|
}
|
|
29
42
|
}
|
|
30
43
|
exports.ValidationException = ValidationException;
|
|
31
|
-
class AlreadyExistException extends ToolsServiceException_1.ToolsServiceException {
|
|
32
|
-
name = "AlreadyExistException";
|
|
33
|
-
$fault = "client";
|
|
34
|
-
constructor(opts) {
|
|
35
|
-
super({
|
|
36
|
-
name: "AlreadyExistException",
|
|
37
|
-
$fault: "client",
|
|
38
|
-
...opts
|
|
39
|
-
});
|
|
40
|
-
Object.setPrototypeOf(this, AlreadyExistException.prototype);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.AlreadyExistException = AlreadyExistException;
|
|
44
44
|
var ToolStringValue;
|
|
45
45
|
(function (ToolStringValue) {
|
|
46
46
|
ToolStringValue.visit = (value, visitor) => {
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { ToolsServiceException as __BaseException } from "./ToolsServiceException";
|
|
2
|
-
export class
|
|
3
|
-
name = "
|
|
2
|
+
export class AlreadyExistException extends __BaseException {
|
|
3
|
+
name = "AlreadyExistException";
|
|
4
4
|
$fault = "client";
|
|
5
5
|
constructor(opts) {
|
|
6
6
|
super({
|
|
7
|
-
name: "
|
|
7
|
+
name: "AlreadyExistException",
|
|
8
8
|
$fault: "client",
|
|
9
9
|
...opts
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, AlreadyExistException.prototype);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export class
|
|
15
|
-
name = "
|
|
14
|
+
export class NotFoundException extends __BaseException {
|
|
15
|
+
name = "NotFoundException";
|
|
16
16
|
$fault = "client";
|
|
17
17
|
constructor(opts) {
|
|
18
18
|
super({
|
|
19
|
-
name: "
|
|
19
|
+
name: "NotFoundException",
|
|
20
20
|
$fault: "client",
|
|
21
21
|
...opts
|
|
22
22
|
});
|
|
23
|
-
Object.setPrototypeOf(this,
|
|
23
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
export class
|
|
27
|
-
name = "
|
|
26
|
+
export class ValidationException extends __BaseException {
|
|
27
|
+
name = "ValidationException";
|
|
28
28
|
$fault = "client";
|
|
29
29
|
constructor(opts) {
|
|
30
30
|
super({
|
|
31
|
-
name: "
|
|
31
|
+
name: "ValidationException",
|
|
32
32
|
$fault: "client",
|
|
33
33
|
...opts
|
|
34
34
|
});
|
|
35
|
-
Object.setPrototypeOf(this,
|
|
35
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
export var ToolStringValue;
|
|
@@ -38,7 +38,7 @@ declare const CreateToolCommand_base: {
|
|
|
38
38
|
* const input = { // CreateToolInput
|
|
39
39
|
* company: "STRING_VALUE",
|
|
40
40
|
* name: "STRING_VALUE", // required
|
|
41
|
-
* category: "STRING_VALUE",
|
|
41
|
+
* category: "STRING_VALUE", // required
|
|
42
42
|
* description: "STRING_VALUE",
|
|
43
43
|
* input: { // ToolInput
|
|
44
44
|
* variables: [ // ToolVariableList // required
|
|
@@ -144,7 +144,7 @@ declare const CreateToolCommand_base: {
|
|
|
144
144
|
* // id: "STRING_VALUE", // required
|
|
145
145
|
* // company: "STRING_VALUE", // required
|
|
146
146
|
* // name: "STRING_VALUE", // required
|
|
147
|
-
* // category: "STRING_VALUE",
|
|
147
|
+
* // category: "STRING_VALUE", // required
|
|
148
148
|
* // description: "STRING_VALUE",
|
|
149
149
|
* // input: { // ToolInput
|
|
150
150
|
* // variables: [ // ToolVariableList // required
|
|
@@ -39,6 +39,8 @@ declare const ExecuteToolCommand_base: {
|
|
|
39
39
|
* company: "STRING_VALUE",
|
|
40
40
|
* id: "STRING_VALUE", // required
|
|
41
41
|
* input: "DOCUMENT_VALUE", // required
|
|
42
|
+
* service: "STRING_VALUE",
|
|
43
|
+
* user: "STRING_VALUE",
|
|
42
44
|
* };
|
|
43
45
|
* const command = new ExecuteToolCommand(input);
|
|
44
46
|
* const response = await client.send(command);
|
|
@@ -46,7 +46,7 @@ declare const GetToolCommand_base: {
|
|
|
46
46
|
* // id: "STRING_VALUE", // required
|
|
47
47
|
* // company: "STRING_VALUE", // required
|
|
48
48
|
* // name: "STRING_VALUE", // required
|
|
49
|
-
* // category: "STRING_VALUE",
|
|
49
|
+
* // category: "STRING_VALUE", // required
|
|
50
50
|
* // description: "STRING_VALUE",
|
|
51
51
|
* // input: { // ToolInput
|
|
52
52
|
* // variables: [ // ToolVariableList // required
|
|
@@ -46,7 +46,7 @@ declare const ListToolsCommand_base: {
|
|
|
46
46
|
* // id: "STRING_VALUE", // required
|
|
47
47
|
* // company: "STRING_VALUE", // required
|
|
48
48
|
* // name: "STRING_VALUE", // required
|
|
49
|
-
* // category: "STRING_VALUE",
|
|
49
|
+
* // category: "STRING_VALUE", // required
|
|
50
50
|
* // description: "STRING_VALUE",
|
|
51
51
|
* // input: { // ToolInput
|
|
52
52
|
* // variables: [ // ToolVariableList // required
|
|
@@ -39,7 +39,7 @@ declare const UpdateToolCommand_base: {
|
|
|
39
39
|
* company: "STRING_VALUE",
|
|
40
40
|
* toolId: "STRING_VALUE", // required
|
|
41
41
|
* name: "STRING_VALUE", // required
|
|
42
|
-
* category: "STRING_VALUE",
|
|
42
|
+
* category: "STRING_VALUE", // required
|
|
43
43
|
* description: "STRING_VALUE",
|
|
44
44
|
* input: { // ToolInput
|
|
45
45
|
* variables: [ // ToolVariableList // required
|
|
@@ -145,7 +145,7 @@ declare const UpdateToolCommand_base: {
|
|
|
145
145
|
* // id: "STRING_VALUE", // required
|
|
146
146
|
* // company: "STRING_VALUE", // required
|
|
147
147
|
* // name: "STRING_VALUE", // required
|
|
148
|
-
* // category: "STRING_VALUE",
|
|
148
|
+
* // category: "STRING_VALUE", // required
|
|
149
149
|
* // description: "STRING_VALUE",
|
|
150
150
|
* // input: { // ToolInput
|
|
151
151
|
* // variables: [ // ToolVariableList // required
|
|
@@ -4,35 +4,35 @@ import { DocumentType as __DocumentType } from "@smithy/types";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare class
|
|
8
|
-
readonly name: "
|
|
7
|
+
export declare class AlreadyExistException extends __BaseException {
|
|
8
|
+
readonly name: "AlreadyExistException";
|
|
9
9
|
readonly $fault: "client";
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
|
-
constructor(opts: __ExceptionOptionType<
|
|
13
|
+
constructor(opts: __ExceptionOptionType<AlreadyExistException, __BaseException>);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
export declare class
|
|
19
|
-
readonly name: "
|
|
18
|
+
export declare class NotFoundException extends __BaseException {
|
|
19
|
+
readonly name: "NotFoundException";
|
|
20
20
|
readonly $fault: "client";
|
|
21
21
|
/**
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
|
-
constructor(opts: __ExceptionOptionType<
|
|
24
|
+
constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* @public
|
|
28
28
|
*/
|
|
29
|
-
export declare class
|
|
30
|
-
readonly name: "
|
|
29
|
+
export declare class ValidationException extends __BaseException {
|
|
30
|
+
readonly name: "ValidationException";
|
|
31
31
|
readonly $fault: "client";
|
|
32
32
|
/**
|
|
33
33
|
* @internal
|
|
34
34
|
*/
|
|
35
|
-
constructor(opts: __ExceptionOptionType<
|
|
35
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* @public
|
|
@@ -377,7 +377,7 @@ export interface ToolInput {
|
|
|
377
377
|
export interface CreateToolInput {
|
|
378
378
|
company?: string | undefined;
|
|
379
379
|
name: string;
|
|
380
|
-
category
|
|
380
|
+
category: string;
|
|
381
381
|
description?: string | undefined;
|
|
382
382
|
input: ToolInput;
|
|
383
383
|
handler: ToolHandler;
|
|
@@ -389,7 +389,7 @@ export interface Tool {
|
|
|
389
389
|
id: string;
|
|
390
390
|
company: string;
|
|
391
391
|
name: string;
|
|
392
|
-
category
|
|
392
|
+
category: string;
|
|
393
393
|
description?: string | undefined;
|
|
394
394
|
input: ToolInput;
|
|
395
395
|
handler: ToolHandler;
|
|
@@ -453,6 +453,8 @@ export interface ExecuteToolInput {
|
|
|
453
453
|
company?: string | undefined;
|
|
454
454
|
id: string;
|
|
455
455
|
input: __DocumentType;
|
|
456
|
+
service?: string | undefined;
|
|
457
|
+
user?: string | undefined;
|
|
456
458
|
}
|
|
457
459
|
/**
|
|
458
460
|
* @public
|
|
@@ -506,7 +508,7 @@ export interface UpdateToolInput {
|
|
|
506
508
|
company?: string | undefined;
|
|
507
509
|
toolId: string;
|
|
508
510
|
name: string;
|
|
509
|
-
category
|
|
511
|
+
category: string;
|
|
510
512
|
description?: string | undefined;
|
|
511
513
|
input: ToolInput;
|
|
512
514
|
handler: ToolHandler;
|
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.17",
|
|
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",
|