@wildix/wim-tools-client 0.0.17 → 0.0.18
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 +18 -31
- package/dist-cjs/protocols/Aws_restJson1.js +30 -110
- package/dist-es/models/models_0.js +16 -30
- package/dist-es/protocols/Aws_restJson1.js +32 -112
- package/dist-types/commands/CreateToolCommand.d.ts +16 -98
- package/dist-types/commands/DeleteToolCommand.d.ts +6 -4
- package/dist-types/commands/DescribeToolsCommand.d.ts +6 -5
- package/dist-types/commands/ExecuteToolCommand.d.ts +6 -4
- package/dist-types/commands/GetToolCommand.d.ts +11 -51
- package/dist-types/commands/ListToolsCommand.d.ts +11 -51
- package/dist-types/commands/UpdateToolCommand.d.ts +16 -98
- package/dist-types/models/models_0.d.ts +317 -189
- package/dist-types/runtimeConfig.browser.d.ts +6 -1
- package/dist-types/runtimeConfig.d.ts +6 -1
- package/dist-types/runtimeConfig.native.d.ts +6 -1
- package/package.json +1 -1
|
@@ -42,18 +42,30 @@ export type ToolStringValue = ToolStringValue.StaticMember | ToolStringValue.Tem
|
|
|
42
42
|
* @public
|
|
43
43
|
*/
|
|
44
44
|
export declare namespace ToolStringValue {
|
|
45
|
+
/**
|
|
46
|
+
* A static string value like: 'text'
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
45
49
|
interface StaticMember {
|
|
46
50
|
static: string;
|
|
47
51
|
variable?: never;
|
|
48
52
|
template?: never;
|
|
49
53
|
$unknown?: never;
|
|
50
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* A variable value like: \{\{variable_name\}\}
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
51
59
|
interface VariableMember {
|
|
52
60
|
static?: never;
|
|
53
61
|
variable: string;
|
|
54
62
|
template?: never;
|
|
55
63
|
$unknown?: never;
|
|
56
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* A template string value like: some text with \{\{variable_name\}\}
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
57
69
|
interface TemplateMember {
|
|
58
70
|
static?: never;
|
|
59
71
|
variable?: never;
|
|
@@ -80,82 +92,101 @@ export declare namespace ToolStringValue {
|
|
|
80
92
|
/**
|
|
81
93
|
* @public
|
|
82
94
|
*/
|
|
83
|
-
export interface
|
|
84
|
-
channelId: ToolStringValue;
|
|
85
|
-
text: ToolStringValue;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* @public
|
|
89
|
-
*/
|
|
90
|
-
export interface ToolDirectMessageConfig {
|
|
91
|
-
memberEmail?: ToolStringValue | undefined;
|
|
92
|
-
memberPhone?: ToolStringValue | undefined;
|
|
93
|
-
memberId?: ToolStringValue | undefined;
|
|
94
|
-
text: ToolStringValue;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* @public
|
|
98
|
-
*/
|
|
99
|
-
export type ToolChatHandler = ToolChatHandler.ChannelMember | ToolChatHandler.DirectMember | ToolChatHandler.$UnknownMember;
|
|
100
|
-
/**
|
|
101
|
-
* @public
|
|
102
|
-
*/
|
|
103
|
-
export declare namespace ToolChatHandler {
|
|
104
|
-
interface DirectMember {
|
|
105
|
-
direct: ToolDirectMessageConfig;
|
|
106
|
-
channel?: never;
|
|
107
|
-
$unknown?: never;
|
|
108
|
-
}
|
|
109
|
-
interface ChannelMember {
|
|
110
|
-
direct?: never;
|
|
111
|
-
channel: ToolChannelMessageConfig;
|
|
112
|
-
$unknown?: never;
|
|
113
|
-
}
|
|
95
|
+
export interface ToolSmtpConfig {
|
|
114
96
|
/**
|
|
97
|
+
* SMTP server host, e.g.: 'smtp.gmail.com'
|
|
115
98
|
* @public
|
|
116
99
|
*/
|
|
117
|
-
interface $UnknownMember {
|
|
118
|
-
direct?: never;
|
|
119
|
-
channel?: never;
|
|
120
|
-
$unknown: [string, any];
|
|
121
|
-
}
|
|
122
|
-
interface Visitor<T> {
|
|
123
|
-
direct: (value: ToolDirectMessageConfig) => T;
|
|
124
|
-
channel: (value: ToolChannelMessageConfig) => T;
|
|
125
|
-
_: (name: string, value: any) => T;
|
|
126
|
-
}
|
|
127
|
-
const visit: <T>(value: ToolChatHandler, visitor: Visitor<T>) => T;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* @public
|
|
131
|
-
*/
|
|
132
|
-
export interface ToolSmtpConfig {
|
|
133
100
|
host: string;
|
|
101
|
+
/**
|
|
102
|
+
* SMTP server port, e.g.: '587'
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
134
105
|
port: number;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
106
|
+
/**
|
|
107
|
+
* SMTP server username for authentication, e.g.: 'john.doe@gmail.com'
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
username: string;
|
|
111
|
+
/**
|
|
112
|
+
* SMTP server password
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
password: string;
|
|
116
|
+
/**
|
|
117
|
+
* SMTP server secure connection
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
secure: boolean;
|
|
138
121
|
}
|
|
139
122
|
/**
|
|
140
123
|
* @public
|
|
141
124
|
*/
|
|
142
125
|
export interface ToolCustomEmailConfig {
|
|
126
|
+
/**
|
|
127
|
+
* SMTP server provider configuration.
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
143
130
|
smtp: ToolSmtpConfig;
|
|
131
|
+
/**
|
|
132
|
+
* From email address associated with the SMTP server, e.g.: 'john.doe@gmail.com'
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
144
135
|
from: ToolStringValue;
|
|
136
|
+
/**
|
|
137
|
+
* To email address, e.g.: 'jane.doe@example.com'
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
145
140
|
to: ToolStringValue;
|
|
141
|
+
/**
|
|
142
|
+
* Subject of the email.
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
146
145
|
subject: ToolStringValue;
|
|
146
|
+
/**
|
|
147
|
+
* Text of the email.
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
147
150
|
text: ToolStringValue;
|
|
148
|
-
|
|
151
|
+
/**
|
|
152
|
+
* HTML content of the email
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
html: ToolStringValue;
|
|
156
|
+
/**
|
|
157
|
+
* CC email addresses
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
149
160
|
cc?: ToolStringValue | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* BCC email addresses
|
|
163
|
+
* @public
|
|
164
|
+
*/
|
|
150
165
|
bcc?: ToolStringValue | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* Reply-to email address
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
151
170
|
replyTo?: ToolStringValue | undefined;
|
|
152
171
|
}
|
|
153
172
|
/**
|
|
154
173
|
* @public
|
|
155
174
|
*/
|
|
156
175
|
export interface ToolWnsEmailConfig {
|
|
176
|
+
/**
|
|
177
|
+
* To email address, e.g.: 'jane.doe@example.com'.
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
157
180
|
to: ToolStringValue;
|
|
181
|
+
/**
|
|
182
|
+
* Subject of the email.
|
|
183
|
+
* @public
|
|
184
|
+
*/
|
|
158
185
|
subject: ToolStringValue;
|
|
186
|
+
/**
|
|
187
|
+
* Text of the email.
|
|
188
|
+
* @public
|
|
189
|
+
*/
|
|
159
190
|
text: ToolStringValue;
|
|
160
191
|
}
|
|
161
192
|
/**
|
|
@@ -166,11 +197,19 @@ export type ToolEmailHandler = ToolEmailHandler.CustomMember | ToolEmailHandler.
|
|
|
166
197
|
* @public
|
|
167
198
|
*/
|
|
168
199
|
export declare namespace ToolEmailHandler {
|
|
200
|
+
/**
|
|
201
|
+
* Wildix Notifications Service email handler of the tool.
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
169
204
|
interface WnsMember {
|
|
170
205
|
wns: ToolWnsEmailConfig;
|
|
171
206
|
custom?: never;
|
|
172
207
|
$unknown?: never;
|
|
173
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* Custom SMTP server as a service email handler of the tool.
|
|
211
|
+
* @public
|
|
212
|
+
*/
|
|
174
213
|
interface CustomMember {
|
|
175
214
|
wns?: never;
|
|
176
215
|
custom: ToolCustomEmailConfig;
|
|
@@ -191,134 +230,20 @@ export declare namespace ToolEmailHandler {
|
|
|
191
230
|
}
|
|
192
231
|
const visit: <T>(value: ToolEmailHandler, visitor: Visitor<T>) => T;
|
|
193
232
|
}
|
|
194
|
-
/**
|
|
195
|
-
* @public
|
|
196
|
-
* @enum
|
|
197
|
-
*/
|
|
198
|
-
export declare const ToolAuthorizationType: {
|
|
199
|
-
readonly API_KEY: "ApiKey";
|
|
200
|
-
readonly BASIC: "Basic";
|
|
201
|
-
readonly BEARER: "Bearer";
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* @public
|
|
205
|
-
*/
|
|
206
|
-
export type ToolAuthorizationType = typeof ToolAuthorizationType[keyof typeof ToolAuthorizationType];
|
|
207
|
-
/**
|
|
208
|
-
* @public
|
|
209
|
-
*/
|
|
210
|
-
export interface ToolAuthentication {
|
|
211
|
-
type: ToolAuthorizationType;
|
|
212
|
-
token: string;
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* @public
|
|
216
|
-
*/
|
|
217
|
-
export interface ToolMcpToolConfig {
|
|
218
|
-
mcpToolId: string;
|
|
219
|
-
/**
|
|
220
|
-
* Optional description override for the tool
|
|
221
|
-
* @public
|
|
222
|
-
*/
|
|
223
|
-
description?: string | undefined;
|
|
224
|
-
/**
|
|
225
|
-
* Parameter mappings for the MCP tool
|
|
226
|
-
* @public
|
|
227
|
-
*/
|
|
228
|
-
parameters?: __DocumentType | undefined;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* @public
|
|
232
|
-
* @enum
|
|
233
|
-
*/
|
|
234
|
-
export declare const ToolMcpTransport: {
|
|
235
|
-
readonly HTTP: "http";
|
|
236
|
-
readonly SSE: "sse";
|
|
237
|
-
readonly STDIO: "stdio";
|
|
238
|
-
};
|
|
239
233
|
/**
|
|
240
234
|
* @public
|
|
241
235
|
*/
|
|
242
|
-
export type
|
|
236
|
+
export type ToolHandler = ToolHandler.EmailMember | ToolHandler.$UnknownMember;
|
|
243
237
|
/**
|
|
244
238
|
* @public
|
|
245
239
|
*/
|
|
246
|
-
export
|
|
247
|
-
serverUrl: string;
|
|
248
|
-
transport: ToolMcpTransport;
|
|
249
|
-
authentication?: ToolAuthentication | undefined;
|
|
250
|
-
timeout?: number | undefined;
|
|
240
|
+
export declare namespace ToolHandler {
|
|
251
241
|
/**
|
|
252
|
-
*
|
|
242
|
+
* Email handler of the tool.
|
|
253
243
|
* @public
|
|
254
244
|
*/
|
|
255
|
-
tools?: (ToolMcpToolConfig)[] | undefined;
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* @public
|
|
259
|
-
*/
|
|
260
|
-
export interface ToolSmsHandler {
|
|
261
|
-
serviceUri: ToolStringValue;
|
|
262
|
-
recipientId?: ToolStringValue | undefined;
|
|
263
|
-
recipientNumber: ToolStringValue;
|
|
264
|
-
message: ToolStringValue;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* @public
|
|
268
|
-
*/
|
|
269
|
-
export interface ToolWebhookHandler {
|
|
270
|
-
url: ToolStringValue;
|
|
271
|
-
body: ToolStringValue;
|
|
272
|
-
key?: ToolStringValue | undefined;
|
|
273
|
-
secret: ToolStringValue;
|
|
274
|
-
timeout?: number | undefined;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* @public
|
|
278
|
-
*/
|
|
279
|
-
export type ToolHandler = ToolHandler.ChatMember | ToolHandler.EmailMember | ToolHandler.McpMember | ToolHandler.SmsMember | ToolHandler.WebhookMember | ToolHandler.$UnknownMember;
|
|
280
|
-
/**
|
|
281
|
-
* @public
|
|
282
|
-
*/
|
|
283
|
-
export declare namespace ToolHandler {
|
|
284
245
|
interface EmailMember {
|
|
285
246
|
email: ToolEmailHandler;
|
|
286
|
-
sms?: never;
|
|
287
|
-
chat?: never;
|
|
288
|
-
webhook?: never;
|
|
289
|
-
mcp?: never;
|
|
290
|
-
$unknown?: never;
|
|
291
|
-
}
|
|
292
|
-
interface SmsMember {
|
|
293
|
-
email?: never;
|
|
294
|
-
sms: ToolSmsHandler;
|
|
295
|
-
chat?: never;
|
|
296
|
-
webhook?: never;
|
|
297
|
-
mcp?: never;
|
|
298
|
-
$unknown?: never;
|
|
299
|
-
}
|
|
300
|
-
interface ChatMember {
|
|
301
|
-
email?: never;
|
|
302
|
-
sms?: never;
|
|
303
|
-
chat: ToolChatHandler;
|
|
304
|
-
webhook?: never;
|
|
305
|
-
mcp?: never;
|
|
306
|
-
$unknown?: never;
|
|
307
|
-
}
|
|
308
|
-
interface WebhookMember {
|
|
309
|
-
email?: never;
|
|
310
|
-
sms?: never;
|
|
311
|
-
chat?: never;
|
|
312
|
-
webhook: ToolWebhookHandler;
|
|
313
|
-
mcp?: never;
|
|
314
|
-
$unknown?: never;
|
|
315
|
-
}
|
|
316
|
-
interface McpMember {
|
|
317
|
-
email?: never;
|
|
318
|
-
sms?: never;
|
|
319
|
-
chat?: never;
|
|
320
|
-
webhook?: never;
|
|
321
|
-
mcp: ToolMcpHandler;
|
|
322
247
|
$unknown?: never;
|
|
323
248
|
}
|
|
324
249
|
/**
|
|
@@ -326,18 +251,10 @@ export declare namespace ToolHandler {
|
|
|
326
251
|
*/
|
|
327
252
|
interface $UnknownMember {
|
|
328
253
|
email?: never;
|
|
329
|
-
sms?: never;
|
|
330
|
-
chat?: never;
|
|
331
|
-
webhook?: never;
|
|
332
|
-
mcp?: never;
|
|
333
254
|
$unknown: [string, any];
|
|
334
255
|
}
|
|
335
256
|
interface Visitor<T> {
|
|
336
257
|
email: (value: ToolEmailHandler) => T;
|
|
337
|
-
sms: (value: ToolSmsHandler) => T;
|
|
338
|
-
chat: (value: ToolChatHandler) => T;
|
|
339
|
-
webhook: (value: ToolWebhookHandler) => T;
|
|
340
|
-
mcp: (value: ToolMcpHandler) => T;
|
|
341
258
|
_: (name: string, value: any) => T;
|
|
342
259
|
}
|
|
343
260
|
const visit: <T>(value: ToolHandler, visitor: Visitor<T>) => T;
|
|
@@ -361,37 +278,100 @@ export type ToolVariableType = typeof ToolVariableType[keyof typeof ToolVariable
|
|
|
361
278
|
* @public
|
|
362
279
|
*/
|
|
363
280
|
export interface ToolVariable {
|
|
281
|
+
/**
|
|
282
|
+
* Name of the tool variable, e.g.: 'myvar'
|
|
283
|
+
* @public
|
|
284
|
+
*/
|
|
364
285
|
name: string;
|
|
286
|
+
/**
|
|
287
|
+
* Type of the tool variable, e.g.: 'string', 'number', 'boolean', 'string_array', 'number_array'
|
|
288
|
+
* @public
|
|
289
|
+
*/
|
|
365
290
|
type: ToolVariableType;
|
|
366
|
-
required?: boolean | undefined;
|
|
367
291
|
}
|
|
368
292
|
/**
|
|
369
293
|
* @public
|
|
370
294
|
*/
|
|
371
295
|
export interface ToolInput {
|
|
296
|
+
/**
|
|
297
|
+
* List of tool variables, used to pass data to the tool
|
|
298
|
+
* @public
|
|
299
|
+
*/
|
|
372
300
|
variables: (ToolVariable)[];
|
|
373
301
|
}
|
|
374
302
|
/**
|
|
375
303
|
* @public
|
|
376
304
|
*/
|
|
377
305
|
export interface CreateToolInput {
|
|
378
|
-
|
|
306
|
+
/**
|
|
307
|
+
* The unique identifier of the tenant when a service token is used.
|
|
308
|
+
* @public
|
|
309
|
+
*/
|
|
310
|
+
companyId?: string | undefined;
|
|
311
|
+
/**
|
|
312
|
+
* Name of the tool, e.g.: 'send_email'
|
|
313
|
+
* @public
|
|
314
|
+
*/
|
|
379
315
|
name: string;
|
|
316
|
+
/**
|
|
317
|
+
* Category of the tool, e.g.: 'Support'
|
|
318
|
+
* @public
|
|
319
|
+
*/
|
|
380
320
|
category: string;
|
|
381
|
-
|
|
321
|
+
/**
|
|
322
|
+
* Description of the tool, used by AI to understand the purpose of the tool.
|
|
323
|
+
* @public
|
|
324
|
+
*/
|
|
325
|
+
description: string;
|
|
326
|
+
/**
|
|
327
|
+
* Input of the tool, used to pass data to the tool.
|
|
328
|
+
* @public
|
|
329
|
+
*/
|
|
382
330
|
input: ToolInput;
|
|
331
|
+
/**
|
|
332
|
+
* Handler of the tool, used to execute the tool.
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
383
335
|
handler: ToolHandler;
|
|
384
336
|
}
|
|
385
337
|
/**
|
|
386
338
|
* @public
|
|
387
339
|
*/
|
|
388
340
|
export interface Tool {
|
|
341
|
+
/**
|
|
342
|
+
* Unique identifier of the tool
|
|
343
|
+
* @public
|
|
344
|
+
*/
|
|
389
345
|
id: string;
|
|
346
|
+
/**
|
|
347
|
+
* Company ID that owns this tool
|
|
348
|
+
* @public
|
|
349
|
+
*/
|
|
390
350
|
company: string;
|
|
351
|
+
/**
|
|
352
|
+
* Name of the tool, e.g.: 'send_email'
|
|
353
|
+
* @public
|
|
354
|
+
*/
|
|
391
355
|
name: string;
|
|
356
|
+
/**
|
|
357
|
+
* Category of the tool, e.g.: 'Support'
|
|
358
|
+
* @public
|
|
359
|
+
*/
|
|
392
360
|
category: string;
|
|
393
|
-
|
|
361
|
+
/**
|
|
362
|
+
* Description of the tool, used by AI to understand the purpose of the tool
|
|
363
|
+
* @public
|
|
364
|
+
*/
|
|
365
|
+
description: string;
|
|
366
|
+
/**
|
|
367
|
+
* Input of the tool, used to pass data to the tool
|
|
368
|
+
* @public
|
|
369
|
+
*/
|
|
394
370
|
input: ToolInput;
|
|
371
|
+
/**
|
|
372
|
+
* Handler of the tool, used to execute the tool
|
|
373
|
+
* @public
|
|
374
|
+
*/
|
|
395
375
|
handler: ToolHandler;
|
|
396
376
|
}
|
|
397
377
|
/**
|
|
@@ -405,18 +385,46 @@ export interface CreateToolOutput {
|
|
|
405
385
|
*/
|
|
406
386
|
export declare class ToolExecutionException extends __BaseException {
|
|
407
387
|
readonly name: "ToolExecutionException";
|
|
408
|
-
readonly $fault: "
|
|
388
|
+
readonly $fault: "client";
|
|
389
|
+
/**
|
|
390
|
+
* Details about the execution error, typically related to invalid configuration or input
|
|
391
|
+
* @public
|
|
392
|
+
*/
|
|
409
393
|
details?: __DocumentType | undefined;
|
|
410
394
|
/**
|
|
411
395
|
* @internal
|
|
412
396
|
*/
|
|
413
397
|
constructor(opts: __ExceptionOptionType<ToolExecutionException, __BaseException>);
|
|
414
398
|
}
|
|
399
|
+
/**
|
|
400
|
+
* @public
|
|
401
|
+
*/
|
|
402
|
+
export declare class ToolExecutionServerException extends __BaseException {
|
|
403
|
+
readonly name: "ToolExecutionServerException";
|
|
404
|
+
readonly $fault: "server";
|
|
405
|
+
/**
|
|
406
|
+
* Details about the server failure during tool execution
|
|
407
|
+
* @public
|
|
408
|
+
*/
|
|
409
|
+
details?: __DocumentType | undefined;
|
|
410
|
+
/**
|
|
411
|
+
* @internal
|
|
412
|
+
*/
|
|
413
|
+
constructor(opts: __ExceptionOptionType<ToolExecutionServerException, __BaseException>);
|
|
414
|
+
}
|
|
415
415
|
/**
|
|
416
416
|
* @public
|
|
417
417
|
*/
|
|
418
418
|
export interface DeleteToolInput {
|
|
419
|
-
|
|
419
|
+
/**
|
|
420
|
+
* The unique identifier of the tenant when a service token is used.
|
|
421
|
+
* @public
|
|
422
|
+
*/
|
|
423
|
+
companyId?: string | undefined;
|
|
424
|
+
/**
|
|
425
|
+
* Unique identifier of the tool.
|
|
426
|
+
* @public
|
|
427
|
+
*/
|
|
420
428
|
toolId: string;
|
|
421
429
|
}
|
|
422
430
|
/**
|
|
@@ -428,94 +436,214 @@ export interface DeleteToolOutput {
|
|
|
428
436
|
* @public
|
|
429
437
|
*/
|
|
430
438
|
export interface DescribeToolsInput {
|
|
431
|
-
|
|
439
|
+
/**
|
|
440
|
+
* The unique identifier of the tenant when a service token is used.
|
|
441
|
+
* @public
|
|
442
|
+
*/
|
|
443
|
+
companyId?: string | undefined;
|
|
444
|
+
/**
|
|
445
|
+
* List of tool IDs.
|
|
446
|
+
* @public
|
|
447
|
+
*/
|
|
432
448
|
ids: (string)[];
|
|
433
449
|
}
|
|
434
450
|
/**
|
|
435
451
|
* @public
|
|
436
452
|
*/
|
|
437
453
|
export interface ToolDescription {
|
|
454
|
+
/**
|
|
455
|
+
* Unique identifier of the tool
|
|
456
|
+
* @public
|
|
457
|
+
*/
|
|
438
458
|
id: string;
|
|
459
|
+
/**
|
|
460
|
+
* Name of the tool, e.g.: 'send_email'
|
|
461
|
+
* @public
|
|
462
|
+
*/
|
|
439
463
|
name: string;
|
|
464
|
+
/**
|
|
465
|
+
* Description of the tool, used by AI to understand the purpose of the tool
|
|
466
|
+
* @public
|
|
467
|
+
*/
|
|
440
468
|
description: string;
|
|
469
|
+
/**
|
|
470
|
+
* List of tool variables, used to pass data to the tool
|
|
471
|
+
* @public
|
|
472
|
+
*/
|
|
441
473
|
variables: (ToolVariable)[];
|
|
442
474
|
}
|
|
443
475
|
/**
|
|
444
476
|
* @public
|
|
445
477
|
*/
|
|
446
478
|
export interface DescribeToolsOutput {
|
|
479
|
+
/**
|
|
480
|
+
* List of tool descriptions.
|
|
481
|
+
* @public
|
|
482
|
+
*/
|
|
447
483
|
descriptions: (ToolDescription)[];
|
|
448
484
|
}
|
|
449
485
|
/**
|
|
450
486
|
* @public
|
|
451
487
|
*/
|
|
452
488
|
export interface ExecuteToolInput {
|
|
453
|
-
|
|
489
|
+
/**
|
|
490
|
+
* The unique identifier of the tenant when a service token is used.
|
|
491
|
+
* @public
|
|
492
|
+
*/
|
|
493
|
+
companyId?: string | undefined;
|
|
494
|
+
/**
|
|
495
|
+
* Unique identifier of the tool.
|
|
496
|
+
* @public
|
|
497
|
+
*/
|
|
454
498
|
id: string;
|
|
499
|
+
/**
|
|
500
|
+
* Input of the tool, used to pass data to the tool.
|
|
501
|
+
* @public
|
|
502
|
+
*/
|
|
455
503
|
input: __DocumentType;
|
|
504
|
+
/**
|
|
505
|
+
* Optional parameter, by which service the tool is executed, e.g. chatbots.
|
|
506
|
+
* @public
|
|
507
|
+
*/
|
|
456
508
|
service?: string | undefined;
|
|
509
|
+
/**
|
|
510
|
+
* Optional parameter, for which user the tool is executed, e.g. john.doe@example.com.
|
|
511
|
+
* @public
|
|
512
|
+
*/
|
|
457
513
|
user?: string | undefined;
|
|
458
514
|
}
|
|
459
515
|
/**
|
|
460
516
|
* @public
|
|
461
517
|
*/
|
|
462
518
|
export interface ToolExecutionError {
|
|
519
|
+
/**
|
|
520
|
+
* Message of the tool execution error
|
|
521
|
+
* @public
|
|
522
|
+
*/
|
|
463
523
|
message: string;
|
|
464
524
|
}
|
|
465
525
|
/**
|
|
466
526
|
* @public
|
|
467
527
|
*/
|
|
468
528
|
export interface ToolExecutionResult {
|
|
529
|
+
/**
|
|
530
|
+
* Response status code of the tool execution
|
|
531
|
+
* @public
|
|
532
|
+
*/
|
|
469
533
|
statusCode: number;
|
|
534
|
+
/**
|
|
535
|
+
* Output of the tool execution
|
|
536
|
+
* @public
|
|
537
|
+
*/
|
|
470
538
|
output: __DocumentType;
|
|
471
|
-
|
|
539
|
+
/**
|
|
540
|
+
* Error of the tool execution
|
|
541
|
+
* @public
|
|
542
|
+
*/
|
|
543
|
+
error: ToolExecutionError;
|
|
472
544
|
}
|
|
473
545
|
/**
|
|
474
546
|
* @public
|
|
475
547
|
*/
|
|
476
548
|
export interface ExecuteToolOutput {
|
|
549
|
+
/**
|
|
550
|
+
* Result of the tool execution.
|
|
551
|
+
* @public
|
|
552
|
+
*/
|
|
477
553
|
result: ToolExecutionResult;
|
|
478
554
|
}
|
|
479
555
|
/**
|
|
480
556
|
* @public
|
|
481
557
|
*/
|
|
482
558
|
export interface GetToolInput {
|
|
483
|
-
|
|
559
|
+
/**
|
|
560
|
+
* The unique identifier of the tenant when a service token is used.
|
|
561
|
+
* @public
|
|
562
|
+
*/
|
|
563
|
+
companyId?: string | undefined;
|
|
564
|
+
/**
|
|
565
|
+
* Unique identifier of the tool.
|
|
566
|
+
* @public
|
|
567
|
+
*/
|
|
484
568
|
toolId: string;
|
|
485
569
|
}
|
|
486
570
|
/**
|
|
487
571
|
* @public
|
|
488
572
|
*/
|
|
489
573
|
export interface GetToolOutput {
|
|
574
|
+
/**
|
|
575
|
+
* Tool object with configuration.
|
|
576
|
+
* @public
|
|
577
|
+
*/
|
|
490
578
|
tool: Tool;
|
|
491
579
|
}
|
|
492
580
|
/**
|
|
493
581
|
* @public
|
|
494
582
|
*/
|
|
495
583
|
export interface ListToolsInput {
|
|
496
|
-
|
|
584
|
+
/**
|
|
585
|
+
* The unique identifier of the tenant when a service token is used.
|
|
586
|
+
* @public
|
|
587
|
+
*/
|
|
588
|
+
companyId?: string | undefined;
|
|
497
589
|
}
|
|
498
590
|
/**
|
|
499
591
|
* @public
|
|
500
592
|
*/
|
|
501
593
|
export interface ListToolsOutput {
|
|
594
|
+
/**
|
|
595
|
+
* List of tools.
|
|
596
|
+
* @public
|
|
597
|
+
*/
|
|
502
598
|
tools: (Tool)[];
|
|
503
599
|
}
|
|
504
600
|
/**
|
|
505
601
|
* @public
|
|
506
602
|
*/
|
|
507
603
|
export interface UpdateToolInput {
|
|
508
|
-
|
|
604
|
+
/**
|
|
605
|
+
* The unique identifier of the tenant when a service token is used.
|
|
606
|
+
* @public
|
|
607
|
+
*/
|
|
608
|
+
companyId?: string | undefined;
|
|
609
|
+
/**
|
|
610
|
+
* Unique identifier of the tool.
|
|
611
|
+
* @public
|
|
612
|
+
*/
|
|
509
613
|
toolId: string;
|
|
614
|
+
/**
|
|
615
|
+
* Name of the tool, e.g.: 'send_email'
|
|
616
|
+
* @public
|
|
617
|
+
*/
|
|
510
618
|
name: string;
|
|
619
|
+
/**
|
|
620
|
+
* Category of the tool, e.g.: 'Support'
|
|
621
|
+
* @public
|
|
622
|
+
*/
|
|
511
623
|
category: string;
|
|
512
|
-
|
|
624
|
+
/**
|
|
625
|
+
* Description of the tool, used by AI to understand the purpose of the tool.
|
|
626
|
+
* @public
|
|
627
|
+
*/
|
|
628
|
+
description: string;
|
|
629
|
+
/**
|
|
630
|
+
* Input of the tool, used to pass data to the tool.
|
|
631
|
+
* @public
|
|
632
|
+
*/
|
|
513
633
|
input: ToolInput;
|
|
634
|
+
/**
|
|
635
|
+
* Handler of the tool, used to execute the tool.
|
|
636
|
+
* @public
|
|
637
|
+
*/
|
|
514
638
|
handler: ToolHandler;
|
|
515
639
|
}
|
|
516
640
|
/**
|
|
517
641
|
* @public
|
|
518
642
|
*/
|
|
519
643
|
export interface UpdateToolOutput {
|
|
644
|
+
/**
|
|
645
|
+
* Updated tool object with configuration.
|
|
646
|
+
* @public
|
|
647
|
+
*/
|
|
520
648
|
tool: Tool;
|
|
521
649
|
}
|