@wildix/wim-tools-client 0.0.9 → 0.0.10

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.
Files changed (31) hide show
  1. package/dist-cjs/Tools.js +4 -2
  2. package/dist-cjs/ToolsClient.js +6 -11
  3. package/dist-cjs/commands/{AddToolCommand.js → CreateToolCommand.js} +7 -7
  4. package/dist-cjs/commands/DescribeToolsCommand.js +21 -0
  5. package/dist-cjs/commands/index.js +2 -1
  6. package/dist-cjs/models/models_0.js +85 -22
  7. package/dist-cjs/protocols/Aws_restJson1.js +70 -84
  8. package/dist-es/Tools.js +4 -2
  9. package/dist-es/ToolsClient.js +6 -11
  10. package/dist-es/commands/{AddToolCommand.js → CreateToolCommand.js} +6 -6
  11. package/dist-es/commands/DescribeToolsCommand.js +17 -0
  12. package/dist-es/commands/index.js +2 -1
  13. package/dist-es/models/models_0.js +82 -19
  14. package/dist-es/protocols/Aws_restJson1.js +67 -83
  15. package/dist-types/Tools.d.ts +12 -5
  16. package/dist-types/ToolsClient.d.ts +5 -3
  17. package/dist-types/commands/CreateToolCommand.d.ts +303 -0
  18. package/dist-types/commands/DeleteToolCommand.d.ts +5 -5
  19. package/dist-types/commands/DescribeToolsCommand.d.ts +97 -0
  20. package/dist-types/commands/ExecuteToolCommand.d.ts +13 -16
  21. package/dist-types/commands/GetToolCommand.d.ts +114 -11
  22. package/dist-types/commands/ListToolsCommand.d.ts +114 -22
  23. package/dist-types/commands/UpdateToolCommand.d.ts +222 -13
  24. package/dist-types/commands/index.d.ts +2 -1
  25. package/dist-types/models/models_0.d.ts +380 -273
  26. package/dist-types/protocols/Aws_restJson1.d.ts +14 -5
  27. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  28. package/dist-types/runtimeConfig.d.ts +1 -0
  29. package/dist-types/runtimeConfig.native.d.ts +1 -0
  30. package/package.json +1 -1
  31. package/dist-types/commands/AddToolCommand.d.ts +0 -98
@@ -27,7 +27,8 @@ declare const ListToolsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * List all tools for a company in LLM-compatible format
30
+ * @public
31
+ *
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -36,31 +37,123 @@ declare const ListToolsCommand_base: {
36
37
  * const client = new ToolsClient(config);
37
38
  * const input = { // ListToolsInput
38
39
  * company: "STRING_VALUE",
39
- * format: "STRING_VALUE",
40
40
  * };
41
41
  * const command = new ListToolsCommand(input);
42
42
  * const response = await client.send(command);
43
43
  * // { // ListToolsOutput
44
- * // tools: [ // ToolsList
44
+ * // tools: [ // ToolsList // required
45
45
  * // { // Tool
46
46
  * // id: "STRING_VALUE", // required
47
47
  * // company: "STRING_VALUE", // required
48
48
  * // name: "STRING_VALUE", // required
49
- * // description: "STRING_VALUE", // required
50
- * // type: "EMAIL", // required
51
- * // config: "DOCUMENT_VALUE", // required
52
- * // jsonSchema: "DOCUMENT_VALUE", // required
53
- * // createdAt: new Date("TIMESTAMP"), // required
54
- * // updatedAt: new Date("TIMESTAMP"),
55
- * // },
56
- * // ],
57
- * // llmTools: [ // LlmToolDefinitionsList
58
- * // { // LlmToolDefinition
59
- * // type: "STRING_VALUE", // required
60
- * // function: { // LlmFunctionDefinition
61
- * // name: "STRING_VALUE", // required
62
- * // description: "STRING_VALUE", // required
63
- * // parameters: "DOCUMENT_VALUE", // required
49
+ * // description: "STRING_VALUE",
50
+ * // input: { // ToolInput
51
+ * // variables: [ // ToolVariableList // required
52
+ * // { // ToolVariable
53
+ * // name: "STRING_VALUE", // required
54
+ * // type: "string" || "number" || "boolean" || "string_array" || "number_array" || "object", // required
55
+ * // description: "STRING_VALUE", // required
56
+ * // required: true || false,
57
+ * // },
58
+ * // ],
59
+ * // },
60
+ * // handler: { // ToolHandler Union: only one key present
61
+ * // email: { // ToolEmailHandler Union: only one key present
62
+ * // wns: { // ToolWnsEmailConfig
63
+ * // to: { // ToolStringValue Union: only one key present
64
+ * // static: "STRING_VALUE",
65
+ * // variable: "STRING_VALUE",
66
+ * // template: "STRING_VALUE",
67
+ * // },
68
+ * // subject: {// Union: only one key present
69
+ * // static: "STRING_VALUE",
70
+ * // variable: "STRING_VALUE",
71
+ * // template: "STRING_VALUE",
72
+ * // },
73
+ * // text: {// Union: only one key present
74
+ * // static: "STRING_VALUE",
75
+ * // variable: "STRING_VALUE",
76
+ * // template: "STRING_VALUE",
77
+ * // },
78
+ * // },
79
+ * // custom: { // ToolCustomEmailConfig
80
+ * // smtp: { // ToolSmtpConfig
81
+ * // host: "STRING_VALUE", // required
82
+ * // port: Number("int"), // required
83
+ * // username: "STRING_VALUE",
84
+ * // password: "STRING_VALUE",
85
+ * // secure: true || false,
86
+ * // },
87
+ * // from: {// Union: only one key present
88
+ * // static: "STRING_VALUE",
89
+ * // variable: "STRING_VALUE",
90
+ * // template: "STRING_VALUE",
91
+ * // },
92
+ * // to: {// Union: only one key present
93
+ * // static: "STRING_VALUE",
94
+ * // variable: "STRING_VALUE",
95
+ * // template: "STRING_VALUE",
96
+ * // },
97
+ * // subject: "<ToolStringValue>", // required
98
+ * // text: "<ToolStringValue>", // required
99
+ * // html: "<ToolStringValue>",
100
+ * // cc: "<ToolStringValue>",
101
+ * // bcc: "<ToolStringValue>",
102
+ * // replyTo: "<ToolStringValue>",
103
+ * // },
104
+ * // },
105
+ * // sms: { // ToolSmsHandler
106
+ * // serviceUri: "<ToolStringValue>", // required
107
+ * // recipientId: "<ToolStringValue>",
108
+ * // recipientNumber: "<ToolStringValue>", // required
109
+ * // message: "<ToolStringValue>", // required
110
+ * // },
111
+ * // chat: { // ToolChatHandler Union: only one key present
112
+ * // direct: { // ToolDirectMessageConfig
113
+ * // memberEmail: "<ToolStringValue>",
114
+ * // memberPhone: "<ToolStringValue>",
115
+ * // memberId: "<ToolStringValue>",
116
+ * // text: "<ToolStringValue>", // required
117
+ * // },
118
+ * // channel: { // ToolChannelMessageConfig
119
+ * // channelId: "<ToolStringValue>", // required
120
+ * // text: "<ToolStringValue>", // required
121
+ * // },
122
+ * // },
123
+ * // webhook: { // ToolWebhookHandler
124
+ * // url: "<ToolStringValue>", // required
125
+ * // body: "<ToolStringValue>", // required
126
+ * // key: "<ToolStringValue>",
127
+ * // secret: "<ToolStringValue>", // required
128
+ * // timeout: Number("int"),
129
+ * // },
130
+ * // mcp: { // ToolMcpHandler
131
+ * // serverUrl: "STRING_VALUE", // required
132
+ * // transport: "http" || "stdio" || "sse", // required
133
+ * // authentication: { // ToolAuthentication
134
+ * // type: "Bearer" || "Basic" || "ApiKey", // required
135
+ * // token: "STRING_VALUE", // required
136
+ * // },
137
+ * // timeout: Number("int"),
138
+ * // tools: [ // ToolMcpToolList // required
139
+ * // { // ToolMcpTool
140
+ * // name: "STRING_VALUE", // required
141
+ * // input: {
142
+ * // variables: [ // required
143
+ * // {
144
+ * // name: "STRING_VALUE", // required
145
+ * // type: "string" || "number" || "boolean" || "string_array" || "number_array" || "object", // required
146
+ * // description: "STRING_VALUE", // required
147
+ * // required: true || false,
148
+ * // },
149
+ * // ],
150
+ * // },
151
+ * // params: { // ToolMcpToolParams // required
152
+ * // "<keys>": "<ToolStringValue>",
153
+ * // },
154
+ * // },
155
+ * // ],
156
+ * // },
64
157
  * // },
65
158
  * // },
66
159
  * // ],
@@ -76,17 +169,16 @@ declare const ListToolsCommand_base: {
76
169
  *
77
170
  * @throws {@link ValidationException} (client fault)
78
171
  *
79
- * @throws {@link ToolNotFoundException} (client fault)
80
- * Tool not found error
172
+ * @throws {@link NotFoundException} (client fault)
173
+ *
174
+ * @throws {@link AlreadyExistException} (client fault)
81
175
  *
82
176
  * @throws {@link ToolExecutionException} (server fault)
83
- * Tool execution failed error
84
177
  *
85
178
  * @throws {@link ToolsServiceException}
86
179
  * <p>Base exception class for all service exceptions from Tools service.</p>
87
180
  *
88
181
  *
89
- * @public
90
182
  */
91
183
  export declare class ListToolsCommand extends ListToolsCommand_base {
92
184
  /** @internal type navigation helper, not in runtime. */
@@ -27,7 +27,8 @@ declare const UpdateToolCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Update an existing tool
30
+ * @public
31
+ *
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -39,8 +40,114 @@ declare const UpdateToolCommand_base: {
39
40
  * toolId: "STRING_VALUE", // required
40
41
  * name: "STRING_VALUE", // required
41
42
  * description: "STRING_VALUE", // required
42
- * config: "DOCUMENT_VALUE", // required
43
- * jsonSchema: "DOCUMENT_VALUE", // required
43
+ * input: { // ToolInput
44
+ * variables: [ // ToolVariableList // required
45
+ * { // ToolVariable
46
+ * name: "STRING_VALUE", // required
47
+ * type: "string" || "number" || "boolean" || "string_array" || "number_array" || "object", // required
48
+ * description: "STRING_VALUE", // required
49
+ * required: true || false,
50
+ * },
51
+ * ],
52
+ * },
53
+ * handler: { // ToolHandler Union: only one key present
54
+ * email: { // ToolEmailHandler Union: only one key present
55
+ * wns: { // ToolWnsEmailConfig
56
+ * to: { // ToolStringValue Union: only one key present
57
+ * static: "STRING_VALUE",
58
+ * variable: "STRING_VALUE",
59
+ * template: "STRING_VALUE",
60
+ * },
61
+ * subject: {// Union: only one key present
62
+ * static: "STRING_VALUE",
63
+ * variable: "STRING_VALUE",
64
+ * template: "STRING_VALUE",
65
+ * },
66
+ * text: {// Union: only one key present
67
+ * static: "STRING_VALUE",
68
+ * variable: "STRING_VALUE",
69
+ * template: "STRING_VALUE",
70
+ * },
71
+ * },
72
+ * custom: { // ToolCustomEmailConfig
73
+ * smtp: { // ToolSmtpConfig
74
+ * host: "STRING_VALUE", // required
75
+ * port: Number("int"), // required
76
+ * username: "STRING_VALUE",
77
+ * password: "STRING_VALUE",
78
+ * secure: true || false,
79
+ * },
80
+ * from: {// Union: only one key present
81
+ * static: "STRING_VALUE",
82
+ * variable: "STRING_VALUE",
83
+ * template: "STRING_VALUE",
84
+ * },
85
+ * to: {// Union: only one key present
86
+ * static: "STRING_VALUE",
87
+ * variable: "STRING_VALUE",
88
+ * template: "STRING_VALUE",
89
+ * },
90
+ * subject: "<ToolStringValue>", // required
91
+ * text: "<ToolStringValue>", // required
92
+ * html: "<ToolStringValue>",
93
+ * cc: "<ToolStringValue>",
94
+ * bcc: "<ToolStringValue>",
95
+ * replyTo: "<ToolStringValue>",
96
+ * },
97
+ * },
98
+ * sms: { // ToolSmsHandler
99
+ * serviceUri: "<ToolStringValue>", // required
100
+ * recipientId: "<ToolStringValue>",
101
+ * recipientNumber: "<ToolStringValue>", // required
102
+ * message: "<ToolStringValue>", // required
103
+ * },
104
+ * chat: { // ToolChatHandler Union: only one key present
105
+ * direct: { // ToolDirectMessageConfig
106
+ * memberEmail: "<ToolStringValue>",
107
+ * memberPhone: "<ToolStringValue>",
108
+ * memberId: "<ToolStringValue>",
109
+ * text: "<ToolStringValue>", // required
110
+ * },
111
+ * channel: { // ToolChannelMessageConfig
112
+ * channelId: "<ToolStringValue>", // required
113
+ * text: "<ToolStringValue>", // required
114
+ * },
115
+ * },
116
+ * webhook: { // ToolWebhookHandler
117
+ * url: "<ToolStringValue>", // required
118
+ * body: "<ToolStringValue>", // required
119
+ * key: "<ToolStringValue>",
120
+ * secret: "<ToolStringValue>", // required
121
+ * timeout: Number("int"),
122
+ * },
123
+ * mcp: { // ToolMcpHandler
124
+ * serverUrl: "STRING_VALUE", // required
125
+ * transport: "http" || "stdio" || "sse", // required
126
+ * authentication: { // ToolAuthentication
127
+ * type: "Bearer" || "Basic" || "ApiKey", // required
128
+ * token: "STRING_VALUE", // required
129
+ * },
130
+ * timeout: Number("int"),
131
+ * tools: [ // ToolMcpToolList // required
132
+ * { // ToolMcpTool
133
+ * name: "STRING_VALUE", // required
134
+ * input: {
135
+ * variables: [ // required
136
+ * {
137
+ * name: "STRING_VALUE", // required
138
+ * type: "string" || "number" || "boolean" || "string_array" || "number_array" || "object", // required
139
+ * description: "STRING_VALUE", // required
140
+ * required: true || false,
141
+ * },
142
+ * ],
143
+ * },
144
+ * params: { // ToolMcpToolParams // required
145
+ * "<keys>": "<ToolStringValue>",
146
+ * },
147
+ * },
148
+ * ],
149
+ * },
150
+ * },
44
151
  * };
45
152
  * const command = new UpdateToolCommand(input);
46
153
  * const response = await client.send(command);
@@ -49,12 +156,115 @@ declare const UpdateToolCommand_base: {
49
156
  * // id: "STRING_VALUE", // required
50
157
  * // company: "STRING_VALUE", // required
51
158
  * // name: "STRING_VALUE", // required
52
- * // description: "STRING_VALUE", // required
53
- * // type: "EMAIL", // required
54
- * // config: "DOCUMENT_VALUE", // required
55
- * // jsonSchema: "DOCUMENT_VALUE", // required
56
- * // createdAt: new Date("TIMESTAMP"), // required
57
- * // updatedAt: new Date("TIMESTAMP"),
159
+ * // description: "STRING_VALUE",
160
+ * // input: { // ToolInput
161
+ * // variables: [ // ToolVariableList // required
162
+ * // { // ToolVariable
163
+ * // name: "STRING_VALUE", // required
164
+ * // type: "string" || "number" || "boolean" || "string_array" || "number_array" || "object", // required
165
+ * // description: "STRING_VALUE", // required
166
+ * // required: true || false,
167
+ * // },
168
+ * // ],
169
+ * // },
170
+ * // handler: { // ToolHandler Union: only one key present
171
+ * // email: { // ToolEmailHandler Union: only one key present
172
+ * // wns: { // ToolWnsEmailConfig
173
+ * // to: { // ToolStringValue Union: only one key present
174
+ * // static: "STRING_VALUE",
175
+ * // variable: "STRING_VALUE",
176
+ * // template: "STRING_VALUE",
177
+ * // },
178
+ * // subject: {// Union: only one key present
179
+ * // static: "STRING_VALUE",
180
+ * // variable: "STRING_VALUE",
181
+ * // template: "STRING_VALUE",
182
+ * // },
183
+ * // text: {// Union: only one key present
184
+ * // static: "STRING_VALUE",
185
+ * // variable: "STRING_VALUE",
186
+ * // template: "STRING_VALUE",
187
+ * // },
188
+ * // },
189
+ * // custom: { // ToolCustomEmailConfig
190
+ * // smtp: { // ToolSmtpConfig
191
+ * // host: "STRING_VALUE", // required
192
+ * // port: Number("int"), // required
193
+ * // username: "STRING_VALUE",
194
+ * // password: "STRING_VALUE",
195
+ * // secure: true || false,
196
+ * // },
197
+ * // from: {// Union: only one key present
198
+ * // static: "STRING_VALUE",
199
+ * // variable: "STRING_VALUE",
200
+ * // template: "STRING_VALUE",
201
+ * // },
202
+ * // to: {// Union: only one key present
203
+ * // static: "STRING_VALUE",
204
+ * // variable: "STRING_VALUE",
205
+ * // template: "STRING_VALUE",
206
+ * // },
207
+ * // subject: "<ToolStringValue>", // required
208
+ * // text: "<ToolStringValue>", // required
209
+ * // html: "<ToolStringValue>",
210
+ * // cc: "<ToolStringValue>",
211
+ * // bcc: "<ToolStringValue>",
212
+ * // replyTo: "<ToolStringValue>",
213
+ * // },
214
+ * // },
215
+ * // sms: { // ToolSmsHandler
216
+ * // serviceUri: "<ToolStringValue>", // required
217
+ * // recipientId: "<ToolStringValue>",
218
+ * // recipientNumber: "<ToolStringValue>", // required
219
+ * // message: "<ToolStringValue>", // required
220
+ * // },
221
+ * // chat: { // ToolChatHandler Union: only one key present
222
+ * // direct: { // ToolDirectMessageConfig
223
+ * // memberEmail: "<ToolStringValue>",
224
+ * // memberPhone: "<ToolStringValue>",
225
+ * // memberId: "<ToolStringValue>",
226
+ * // text: "<ToolStringValue>", // required
227
+ * // },
228
+ * // channel: { // ToolChannelMessageConfig
229
+ * // channelId: "<ToolStringValue>", // required
230
+ * // text: "<ToolStringValue>", // required
231
+ * // },
232
+ * // },
233
+ * // webhook: { // ToolWebhookHandler
234
+ * // url: "<ToolStringValue>", // required
235
+ * // body: "<ToolStringValue>", // required
236
+ * // key: "<ToolStringValue>",
237
+ * // secret: "<ToolStringValue>", // required
238
+ * // timeout: Number("int"),
239
+ * // },
240
+ * // mcp: { // ToolMcpHandler
241
+ * // serverUrl: "STRING_VALUE", // required
242
+ * // transport: "http" || "stdio" || "sse", // required
243
+ * // authentication: { // ToolAuthentication
244
+ * // type: "Bearer" || "Basic" || "ApiKey", // required
245
+ * // token: "STRING_VALUE", // required
246
+ * // },
247
+ * // timeout: Number("int"),
248
+ * // tools: [ // ToolMcpToolList // required
249
+ * // { // ToolMcpTool
250
+ * // name: "STRING_VALUE", // required
251
+ * // input: {
252
+ * // variables: [ // required
253
+ * // {
254
+ * // name: "STRING_VALUE", // required
255
+ * // type: "string" || "number" || "boolean" || "string_array" || "number_array" || "object", // required
256
+ * // description: "STRING_VALUE", // required
257
+ * // required: true || false,
258
+ * // },
259
+ * // ],
260
+ * // },
261
+ * // params: { // ToolMcpToolParams // required
262
+ * // "<keys>": "<ToolStringValue>",
263
+ * // },
264
+ * // },
265
+ * // ],
266
+ * // },
267
+ * // },
58
268
  * // },
59
269
  * // };
60
270
  *
@@ -68,17 +278,16 @@ declare const UpdateToolCommand_base: {
68
278
  *
69
279
  * @throws {@link ValidationException} (client fault)
70
280
  *
71
- * @throws {@link ToolNotFoundException} (client fault)
72
- * Tool not found error
281
+ * @throws {@link NotFoundException} (client fault)
282
+ *
283
+ * @throws {@link AlreadyExistException} (client fault)
73
284
  *
74
285
  * @throws {@link ToolExecutionException} (server fault)
75
- * Tool execution failed error
76
286
  *
77
287
  * @throws {@link ToolsServiceException}
78
288
  * <p>Base exception class for all service exceptions from Tools service.</p>
79
289
  *
80
290
  *
81
- * @public
82
291
  */
83
292
  export declare class UpdateToolCommand extends UpdateToolCommand_base {
84
293
  /** @internal type navigation helper, not in runtime. */
@@ -1,5 +1,6 @@
1
- export * from "./AddToolCommand";
1
+ export * from "./CreateToolCommand";
2
2
  export * from "./DeleteToolCommand";
3
+ export * from "./DescribeToolsCommand";
3
4
  export * from "./ExecuteToolCommand";
4
5
  export * from "./GetToolCommand";
5
6
  export * from "./ListToolsCommand";