@wildix/wim-tools-client 0.0.35 → 0.0.36
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 +2 -12
- package/dist-cjs/commands/{ListMcpToolsCommand.js → DiscoverToolsCommand.js} +7 -7
- package/dist-cjs/commands/index.js +1 -6
- package/dist-cjs/models/models_0.js +46 -61
- package/dist-cjs/protocols/Aws_restJson1.js +105 -211
- package/dist-es/Tools.js +2 -12
- package/dist-es/commands/{ListMcpToolsCommand.js → DiscoverToolsCommand.js} +6 -6
- package/dist-es/commands/index.js +1 -6
- package/dist-es/models/models_0.js +43 -57
- package/dist-es/protocols/Aws_restJson1.js +103 -199
- package/dist-types/Tools.d.ts +7 -43
- package/dist-types/ToolsClient.d.ts +3 -8
- package/dist-types/commands/CreateToolCommand.d.ts +46 -18
- package/dist-types/commands/DeleteToolCommand.d.ts +0 -2
- package/dist-types/commands/DescribeToolsCommand.d.ts +2 -7
- package/dist-types/commands/DiscoverToolsCommand.d.ts +101 -0
- package/dist-types/commands/ExecuteToolCommand.d.ts +0 -2
- package/dist-types/commands/GetToolCommand.d.ts +23 -10
- package/dist-types/commands/ListToolsCommand.d.ts +23 -10
- package/dist-types/commands/UpdateToolCommand.d.ts +46 -18
- package/dist-types/commands/index.d.ts +1 -6
- package/dist-types/models/models_0.d.ts +191 -421
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -54
- package/package.json +1 -1
- package/dist-cjs/commands/CreateMcpConnectionCommand.js +0 -21
- package/dist-cjs/commands/DeleteMcpConnectionCommand.js +0 -21
- package/dist-cjs/commands/GetMcpConnectionCommand.js +0 -21
- package/dist-cjs/commands/ListMcpConnectionsCommand.js +0 -21
- package/dist-cjs/commands/UpdateMcpConnectionCommand.js +0 -21
- package/dist-es/commands/CreateMcpConnectionCommand.js +0 -17
- package/dist-es/commands/DeleteMcpConnectionCommand.js +0 -17
- package/dist-es/commands/GetMcpConnectionCommand.js +0 -17
- package/dist-es/commands/ListMcpConnectionsCommand.js +0 -17
- package/dist-es/commands/UpdateMcpConnectionCommand.js +0 -17
- package/dist-types/commands/CreateMcpConnectionCommand.d.ts +0 -123
- package/dist-types/commands/DeleteMcpConnectionCommand.d.ts +0 -83
- package/dist-types/commands/GetMcpConnectionCommand.d.ts +0 -107
- package/dist-types/commands/ListMcpConnectionsCommand.d.ts +0 -108
- package/dist-types/commands/ListMcpToolsCommand.d.ts +0 -91
- package/dist-types/commands/UpdateMcpConnectionCommand.d.ts +0 -124
package/dist-cjs/Tools.js
CHANGED
|
@@ -2,33 +2,23 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Tools = void 0;
|
|
4
4
|
const ToolsClient_1 = require("./ToolsClient");
|
|
5
|
-
const CreateMcpConnectionCommand_1 = require("./commands/CreateMcpConnectionCommand");
|
|
6
5
|
const CreateToolCommand_1 = require("./commands/CreateToolCommand");
|
|
7
|
-
const DeleteMcpConnectionCommand_1 = require("./commands/DeleteMcpConnectionCommand");
|
|
8
6
|
const DeleteToolCommand_1 = require("./commands/DeleteToolCommand");
|
|
9
7
|
const DescribeToolsCommand_1 = require("./commands/DescribeToolsCommand");
|
|
8
|
+
const DiscoverToolsCommand_1 = require("./commands/DiscoverToolsCommand");
|
|
10
9
|
const ExecuteToolCommand_1 = require("./commands/ExecuteToolCommand");
|
|
11
|
-
const GetMcpConnectionCommand_1 = require("./commands/GetMcpConnectionCommand");
|
|
12
10
|
const GetToolCommand_1 = require("./commands/GetToolCommand");
|
|
13
|
-
const ListMcpConnectionsCommand_1 = require("./commands/ListMcpConnectionsCommand");
|
|
14
|
-
const ListMcpToolsCommand_1 = require("./commands/ListMcpToolsCommand");
|
|
15
11
|
const ListToolsCommand_1 = require("./commands/ListToolsCommand");
|
|
16
|
-
const UpdateMcpConnectionCommand_1 = require("./commands/UpdateMcpConnectionCommand");
|
|
17
12
|
const UpdateToolCommand_1 = require("./commands/UpdateToolCommand");
|
|
18
13
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
19
14
|
const commands = {
|
|
20
|
-
CreateMcpConnectionCommand: CreateMcpConnectionCommand_1.CreateMcpConnectionCommand,
|
|
21
15
|
CreateToolCommand: CreateToolCommand_1.CreateToolCommand,
|
|
22
|
-
DeleteMcpConnectionCommand: DeleteMcpConnectionCommand_1.DeleteMcpConnectionCommand,
|
|
23
16
|
DeleteToolCommand: DeleteToolCommand_1.DeleteToolCommand,
|
|
24
17
|
DescribeToolsCommand: DescribeToolsCommand_1.DescribeToolsCommand,
|
|
18
|
+
DiscoverToolsCommand: DiscoverToolsCommand_1.DiscoverToolsCommand,
|
|
25
19
|
ExecuteToolCommand: ExecuteToolCommand_1.ExecuteToolCommand,
|
|
26
|
-
GetMcpConnectionCommand: GetMcpConnectionCommand_1.GetMcpConnectionCommand,
|
|
27
20
|
GetToolCommand: GetToolCommand_1.GetToolCommand,
|
|
28
|
-
ListMcpConnectionsCommand: ListMcpConnectionsCommand_1.ListMcpConnectionsCommand,
|
|
29
|
-
ListMcpToolsCommand: ListMcpToolsCommand_1.ListMcpToolsCommand,
|
|
30
21
|
ListToolsCommand: ListToolsCommand_1.ListToolsCommand,
|
|
31
|
-
UpdateMcpConnectionCommand: UpdateMcpConnectionCommand_1.UpdateMcpConnectionCommand,
|
|
32
22
|
UpdateToolCommand: UpdateToolCommand_1.UpdateToolCommand,
|
|
33
23
|
};
|
|
34
24
|
class Tools extends ToolsClient_1.ToolsClient {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DiscoverToolsCommand = exports.$Command = void 0;
|
|
4
4
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class
|
|
8
|
+
class DiscoverToolsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [
|
|
11
11
|
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
12
|
];
|
|
13
13
|
})
|
|
14
|
-
.s("Tools", "
|
|
15
|
-
.n("ToolsClient", "
|
|
14
|
+
.s("Tools", "DiscoverTools", {})
|
|
15
|
+
.n("ToolsClient", "DiscoverToolsCommand")
|
|
16
16
|
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.
|
|
18
|
-
.de(Aws_restJson1_1.
|
|
17
|
+
.ser(Aws_restJson1_1.se_DiscoverToolsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_DiscoverToolsCommand)
|
|
19
19
|
.build() {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.DiscoverToolsCommand = DiscoverToolsCommand;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./CreateMcpConnectionCommand"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./CreateToolCommand"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./DeleteMcpConnectionCommand"), exports);
|
|
7
5
|
tslib_1.__exportStar(require("./DeleteToolCommand"), exports);
|
|
8
6
|
tslib_1.__exportStar(require("./DescribeToolsCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DiscoverToolsCommand"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("./ExecuteToolCommand"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./GetMcpConnectionCommand"), exports);
|
|
11
9
|
tslib_1.__exportStar(require("./GetToolCommand"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./ListMcpConnectionsCommand"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./ListMcpToolsCommand"), exports);
|
|
14
10
|
tslib_1.__exportStar(require("./ListToolsCommand"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./UpdateMcpConnectionCommand"), exports);
|
|
16
11
|
tslib_1.__exportStar(require("./UpdateToolCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ToolExecutionServerException = exports.ToolExecutionException = exports.ToolVariableType = exports.ToolHandler = exports.ToolWebhookMethod = exports.ToolWebhookAuth = exports.ToolMcpAuthorization = exports.ToolEmailHandler = exports.ToolChatRecipient = exports.ValidationException = exports.NotFoundException = exports.ForbiddenException = exports.AlreadyExistException = void 0;
|
|
4
4
|
const ToolsServiceException_1 = require("./ToolsServiceException");
|
|
5
5
|
class AlreadyExistException extends ToolsServiceException_1.ToolsServiceException {
|
|
6
6
|
name = "AlreadyExistException";
|
|
@@ -54,61 +54,6 @@ class ValidationException extends ToolsServiceException_1.ToolsServiceException
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
exports.ValidationException = ValidationException;
|
|
57
|
-
var ToolMcpAuthorization;
|
|
58
|
-
(function (ToolMcpAuthorization) {
|
|
59
|
-
ToolMcpAuthorization.visit = (value, visitor) => {
|
|
60
|
-
if (value.apiKey !== undefined)
|
|
61
|
-
return visitor.apiKey(value.apiKey);
|
|
62
|
-
if (value.bearerToken !== undefined)
|
|
63
|
-
return visitor.bearerToken(value.bearerToken);
|
|
64
|
-
if (value.customHeaders !== undefined)
|
|
65
|
-
return visitor.customHeaders(value.customHeaders);
|
|
66
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
67
|
-
};
|
|
68
|
-
})(ToolMcpAuthorization || (exports.ToolMcpAuthorization = ToolMcpAuthorization = {}));
|
|
69
|
-
class McpConnectionException extends ToolsServiceException_1.ToolsServiceException {
|
|
70
|
-
name = "McpConnectionException";
|
|
71
|
-
$fault = "server";
|
|
72
|
-
constructor(opts) {
|
|
73
|
-
super({
|
|
74
|
-
name: "McpConnectionException",
|
|
75
|
-
$fault: "server",
|
|
76
|
-
...opts
|
|
77
|
-
});
|
|
78
|
-
Object.setPrototypeOf(this, McpConnectionException.prototype);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.McpConnectionException = McpConnectionException;
|
|
82
|
-
class ToolExecutionException extends ToolsServiceException_1.ToolsServiceException {
|
|
83
|
-
name = "ToolExecutionException";
|
|
84
|
-
$fault = "client";
|
|
85
|
-
details;
|
|
86
|
-
constructor(opts) {
|
|
87
|
-
super({
|
|
88
|
-
name: "ToolExecutionException",
|
|
89
|
-
$fault: "client",
|
|
90
|
-
...opts
|
|
91
|
-
});
|
|
92
|
-
Object.setPrototypeOf(this, ToolExecutionException.prototype);
|
|
93
|
-
this.details = opts.details;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
exports.ToolExecutionException = ToolExecutionException;
|
|
97
|
-
class ToolExecutionServerException extends ToolsServiceException_1.ToolsServiceException {
|
|
98
|
-
name = "ToolExecutionServerException";
|
|
99
|
-
$fault = "server";
|
|
100
|
-
details;
|
|
101
|
-
constructor(opts) {
|
|
102
|
-
super({
|
|
103
|
-
name: "ToolExecutionServerException",
|
|
104
|
-
$fault: "server",
|
|
105
|
-
...opts
|
|
106
|
-
});
|
|
107
|
-
Object.setPrototypeOf(this, ToolExecutionServerException.prototype);
|
|
108
|
-
this.details = opts.details;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
exports.ToolExecutionServerException = ToolExecutionServerException;
|
|
112
57
|
var ToolChatRecipient;
|
|
113
58
|
(function (ToolChatRecipient) {
|
|
114
59
|
ToolChatRecipient.visit = (value, visitor) => {
|
|
@@ -129,6 +74,18 @@ var ToolEmailHandler;
|
|
|
129
74
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
130
75
|
};
|
|
131
76
|
})(ToolEmailHandler || (exports.ToolEmailHandler = ToolEmailHandler = {}));
|
|
77
|
+
var ToolMcpAuthorization;
|
|
78
|
+
(function (ToolMcpAuthorization) {
|
|
79
|
+
ToolMcpAuthorization.visit = (value, visitor) => {
|
|
80
|
+
if (value.apiKey !== undefined)
|
|
81
|
+
return visitor.apiKey(value.apiKey);
|
|
82
|
+
if (value.bearer !== undefined)
|
|
83
|
+
return visitor.bearer(value.bearer);
|
|
84
|
+
if (value.customHeaders !== undefined)
|
|
85
|
+
return visitor.customHeaders(value.customHeaders);
|
|
86
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
87
|
+
};
|
|
88
|
+
})(ToolMcpAuthorization || (exports.ToolMcpAuthorization = ToolMcpAuthorization = {}));
|
|
132
89
|
var ToolWebhookAuth;
|
|
133
90
|
(function (ToolWebhookAuth) {
|
|
134
91
|
ToolWebhookAuth.visit = (value, visitor) => {
|
|
@@ -163,18 +120,46 @@ var ToolHandler;
|
|
|
163
120
|
return visitor.sms(value.sms);
|
|
164
121
|
if (value.mcp !== undefined)
|
|
165
122
|
return visitor.mcp(value.mcp);
|
|
123
|
+
if (value.mcpTool !== undefined)
|
|
124
|
+
return visitor.mcpTool(value.mcpTool);
|
|
166
125
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
167
126
|
};
|
|
168
127
|
})(ToolHandler || (exports.ToolHandler = ToolHandler = {}));
|
|
169
|
-
exports.ToolVariableInstructionType = {
|
|
170
|
-
AUTO: "auto",
|
|
171
|
-
GUIDED: "guided",
|
|
172
|
-
PREDEFINED: "predefined",
|
|
173
|
-
};
|
|
174
128
|
exports.ToolVariableType = {
|
|
175
129
|
BOOLEAN: "boolean",
|
|
176
130
|
NUMBER: "number",
|
|
177
131
|
NUMBER_ARRAY: "number_array",
|
|
132
|
+
SCHEMA: "schema",
|
|
178
133
|
STRING: "string",
|
|
179
134
|
STRING_ARRAY: "string_array",
|
|
180
135
|
};
|
|
136
|
+
class ToolExecutionException extends ToolsServiceException_1.ToolsServiceException {
|
|
137
|
+
name = "ToolExecutionException";
|
|
138
|
+
$fault = "client";
|
|
139
|
+
details;
|
|
140
|
+
constructor(opts) {
|
|
141
|
+
super({
|
|
142
|
+
name: "ToolExecutionException",
|
|
143
|
+
$fault: "client",
|
|
144
|
+
...opts
|
|
145
|
+
});
|
|
146
|
+
Object.setPrototypeOf(this, ToolExecutionException.prototype);
|
|
147
|
+
this.details = opts.details;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.ToolExecutionException = ToolExecutionException;
|
|
151
|
+
class ToolExecutionServerException extends ToolsServiceException_1.ToolsServiceException {
|
|
152
|
+
name = "ToolExecutionServerException";
|
|
153
|
+
$fault = "server";
|
|
154
|
+
details;
|
|
155
|
+
constructor(opts) {
|
|
156
|
+
super({
|
|
157
|
+
name: "ToolExecutionServerException",
|
|
158
|
+
$fault: "server",
|
|
159
|
+
...opts
|
|
160
|
+
});
|
|
161
|
+
Object.setPrototypeOf(this, ToolExecutionServerException.prototype);
|
|
162
|
+
this.details = opts.details;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
exports.ToolExecutionServerException = ToolExecutionServerException;
|