@wildix/wim-tools-client 0.0.29 → 0.0.31
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 +26 -36
- package/dist-cjs/protocols/Aws_restJson1.js +7 -10
- package/dist-es/models/models_0.js +24 -34
- package/dist-es/protocols/Aws_restJson1.js +8 -11
- package/dist-types/commands/CreateToolCommand.d.ts +66 -86
- package/dist-types/commands/ExecuteToolCommand.d.ts +0 -4
- package/dist-types/commands/GetToolCommand.d.ts +33 -43
- package/dist-types/commands/ListToolsCommand.d.ts +33 -43
- package/dist-types/commands/UpdateToolCommand.d.ts +66 -86
- package/dist-types/models/models_0.d.ts +131 -141
- package/package.json +1 -1
|
@@ -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.ToolSmsRecipient = 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";
|
|
@@ -15,6 +15,19 @@ class AlreadyExistException extends ToolsServiceException_1.ToolsServiceExceptio
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.AlreadyExistException = AlreadyExistException;
|
|
18
|
+
class ForbiddenException extends ToolsServiceException_1.ToolsServiceException {
|
|
19
|
+
name = "ForbiddenException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ForbiddenException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ForbiddenException = ForbiddenException;
|
|
18
31
|
class NotFoundException extends ToolsServiceException_1.ToolsServiceException {
|
|
19
32
|
name = "NotFoundException";
|
|
20
33
|
$fault = "client";
|
|
@@ -41,18 +54,6 @@ class ValidationException extends ToolsServiceException_1.ToolsServiceException
|
|
|
41
54
|
}
|
|
42
55
|
}
|
|
43
56
|
exports.ValidationException = ValidationException;
|
|
44
|
-
var ToolStringValue;
|
|
45
|
-
(function (ToolStringValue) {
|
|
46
|
-
ToolStringValue.visit = (value, visitor) => {
|
|
47
|
-
if (value.static !== undefined)
|
|
48
|
-
return visitor.static(value.static);
|
|
49
|
-
if (value.variable !== undefined)
|
|
50
|
-
return visitor.variable(value.variable);
|
|
51
|
-
if (value.template !== undefined)
|
|
52
|
-
return visitor.template(value.template);
|
|
53
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
54
|
-
};
|
|
55
|
-
})(ToolStringValue || (exports.ToolStringValue = ToolStringValue = {}));
|
|
56
57
|
var ToolChatRecipient;
|
|
57
58
|
(function (ToolChatRecipient) {
|
|
58
59
|
ToolChatRecipient.visit = (value, visitor) => {
|
|
@@ -63,14 +64,6 @@ var ToolChatRecipient;
|
|
|
63
64
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
64
65
|
};
|
|
65
66
|
})(ToolChatRecipient || (exports.ToolChatRecipient = ToolChatRecipient = {}));
|
|
66
|
-
var ToolChatHandler;
|
|
67
|
-
(function (ToolChatHandler) {
|
|
68
|
-
ToolChatHandler.visit = (value, visitor) => {
|
|
69
|
-
if (value.config !== undefined)
|
|
70
|
-
return visitor.config(value.config);
|
|
71
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
72
|
-
};
|
|
73
|
-
})(ToolChatHandler || (exports.ToolChatHandler = ToolChatHandler = {}));
|
|
74
67
|
var ToolEmailHandler;
|
|
75
68
|
(function (ToolEmailHandler) {
|
|
76
69
|
ToolEmailHandler.visit = (value, visitor) => {
|
|
@@ -81,6 +74,16 @@ var ToolEmailHandler;
|
|
|
81
74
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
82
75
|
};
|
|
83
76
|
})(ToolEmailHandler || (exports.ToolEmailHandler = ToolEmailHandler = {}));
|
|
77
|
+
var ToolSmsRecipient;
|
|
78
|
+
(function (ToolSmsRecipient) {
|
|
79
|
+
ToolSmsRecipient.visit = (value, visitor) => {
|
|
80
|
+
if (value.recipientId !== undefined)
|
|
81
|
+
return visitor.recipientId(value.recipientId);
|
|
82
|
+
if (value.recipientNumber !== undefined)
|
|
83
|
+
return visitor.recipientNumber(value.recipientNumber);
|
|
84
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
85
|
+
};
|
|
86
|
+
})(ToolSmsRecipient || (exports.ToolSmsRecipient = ToolSmsRecipient = {}));
|
|
84
87
|
var ToolWebhookAuth;
|
|
85
88
|
(function (ToolWebhookAuth) {
|
|
86
89
|
ToolWebhookAuth.visit = (value, visitor) => {
|
|
@@ -111,6 +114,8 @@ var ToolHandler;
|
|
|
111
114
|
return visitor.search(value.search);
|
|
112
115
|
if (value.chat !== undefined)
|
|
113
116
|
return visitor.chat(value.chat);
|
|
117
|
+
if (value.sms !== undefined)
|
|
118
|
+
return visitor.sms(value.sms);
|
|
114
119
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
115
120
|
};
|
|
116
121
|
})(ToolHandler || (exports.ToolHandler = ToolHandler = {}));
|
|
@@ -151,18 +156,3 @@ class ToolExecutionServerException extends ToolsServiceException_1.ToolsServiceE
|
|
|
151
156
|
}
|
|
152
157
|
}
|
|
153
158
|
exports.ToolExecutionServerException = ToolExecutionServerException;
|
|
154
|
-
class ForbiddenException extends ToolsServiceException_1.ToolsServiceException {
|
|
155
|
-
name = "ForbiddenException";
|
|
156
|
-
$fault = "client";
|
|
157
|
-
details;
|
|
158
|
-
constructor(opts) {
|
|
159
|
-
super({
|
|
160
|
-
name: "ForbiddenException",
|
|
161
|
-
$fault: "client",
|
|
162
|
-
...opts
|
|
163
|
-
});
|
|
164
|
-
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
165
|
-
this.details = opts.details;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
exports.ForbiddenException = ForbiddenException;
|
|
@@ -269,7 +269,7 @@ const de_CommandError = async (output, context) => {
|
|
|
269
269
|
case "smithy.framework#ValidationException":
|
|
270
270
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
271
271
|
case "ForbiddenException":
|
|
272
|
-
case "
|
|
272
|
+
case "smithy.framework#ForbiddenException":
|
|
273
273
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
274
274
|
default:
|
|
275
275
|
const parsedBody = parsedOutput.body;
|
|
@@ -294,41 +294,40 @@ const de_AlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
|
294
294
|
});
|
|
295
295
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
296
296
|
};
|
|
297
|
-
const
|
|
297
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
298
298
|
const contents = (0, smithy_client_1.map)({});
|
|
299
299
|
const data = parsedOutput.body;
|
|
300
300
|
const doc = (0, smithy_client_1.take)(data, {
|
|
301
301
|
'message': smithy_client_1.expectString,
|
|
302
302
|
});
|
|
303
303
|
Object.assign(contents, doc);
|
|
304
|
-
const exception = new models_0_1.
|
|
304
|
+
const exception = new models_0_1.ForbiddenException({
|
|
305
305
|
$metadata: deserializeMetadata(parsedOutput),
|
|
306
306
|
...contents
|
|
307
307
|
});
|
|
308
308
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
309
309
|
};
|
|
310
|
-
const
|
|
310
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
311
311
|
const contents = (0, smithy_client_1.map)({});
|
|
312
312
|
const data = parsedOutput.body;
|
|
313
313
|
const doc = (0, smithy_client_1.take)(data, {
|
|
314
314
|
'message': smithy_client_1.expectString,
|
|
315
315
|
});
|
|
316
316
|
Object.assign(contents, doc);
|
|
317
|
-
const exception = new models_0_1.
|
|
317
|
+
const exception = new models_0_1.NotFoundException({
|
|
318
318
|
$metadata: deserializeMetadata(parsedOutput),
|
|
319
319
|
...contents
|
|
320
320
|
});
|
|
321
321
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
322
322
|
};
|
|
323
|
-
const
|
|
323
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
324
324
|
const contents = (0, smithy_client_1.map)({});
|
|
325
325
|
const data = parsedOutput.body;
|
|
326
326
|
const doc = (0, smithy_client_1.take)(data, {
|
|
327
|
-
'details': _ => de_Document(_, context),
|
|
328
327
|
'message': smithy_client_1.expectString,
|
|
329
328
|
});
|
|
330
329
|
Object.assign(contents, doc);
|
|
331
|
-
const exception = new models_0_1.
|
|
330
|
+
const exception = new models_0_1.ValidationException({
|
|
332
331
|
$metadata: deserializeMetadata(parsedOutput),
|
|
333
332
|
...contents
|
|
334
333
|
});
|
|
@@ -370,9 +369,7 @@ const de_Document = (output, context) => {
|
|
|
370
369
|
};
|
|
371
370
|
const de_ToolExecutionResult = (output, context) => {
|
|
372
371
|
return (0, smithy_client_1.take)(output, {
|
|
373
|
-
'error': smithy_client_1._json,
|
|
374
372
|
'output': (_) => de_Document(_, context),
|
|
375
|
-
'statusCode': smithy_client_1.expectInt32,
|
|
376
373
|
});
|
|
377
374
|
};
|
|
378
375
|
const deserializeMetadata = (output) => ({
|
|
@@ -11,6 +11,18 @@ export class AlreadyExistException extends __BaseException {
|
|
|
11
11
|
Object.setPrototypeOf(this, AlreadyExistException.prototype);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
export class ForbiddenException extends __BaseException {
|
|
15
|
+
name = "ForbiddenException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "ForbiddenException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
14
26
|
export class NotFoundException extends __BaseException {
|
|
15
27
|
name = "NotFoundException";
|
|
16
28
|
$fault = "client";
|
|
@@ -35,18 +47,6 @@ export class ValidationException extends __BaseException {
|
|
|
35
47
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
36
48
|
}
|
|
37
49
|
}
|
|
38
|
-
export var ToolStringValue;
|
|
39
|
-
(function (ToolStringValue) {
|
|
40
|
-
ToolStringValue.visit = (value, visitor) => {
|
|
41
|
-
if (value.static !== undefined)
|
|
42
|
-
return visitor.static(value.static);
|
|
43
|
-
if (value.variable !== undefined)
|
|
44
|
-
return visitor.variable(value.variable);
|
|
45
|
-
if (value.template !== undefined)
|
|
46
|
-
return visitor.template(value.template);
|
|
47
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
48
|
-
};
|
|
49
|
-
})(ToolStringValue || (ToolStringValue = {}));
|
|
50
50
|
export var ToolChatRecipient;
|
|
51
51
|
(function (ToolChatRecipient) {
|
|
52
52
|
ToolChatRecipient.visit = (value, visitor) => {
|
|
@@ -57,14 +57,6 @@ export var ToolChatRecipient;
|
|
|
57
57
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
58
58
|
};
|
|
59
59
|
})(ToolChatRecipient || (ToolChatRecipient = {}));
|
|
60
|
-
export var ToolChatHandler;
|
|
61
|
-
(function (ToolChatHandler) {
|
|
62
|
-
ToolChatHandler.visit = (value, visitor) => {
|
|
63
|
-
if (value.config !== undefined)
|
|
64
|
-
return visitor.config(value.config);
|
|
65
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
66
|
-
};
|
|
67
|
-
})(ToolChatHandler || (ToolChatHandler = {}));
|
|
68
60
|
export var ToolEmailHandler;
|
|
69
61
|
(function (ToolEmailHandler) {
|
|
70
62
|
ToolEmailHandler.visit = (value, visitor) => {
|
|
@@ -75,6 +67,16 @@ export var ToolEmailHandler;
|
|
|
75
67
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
76
68
|
};
|
|
77
69
|
})(ToolEmailHandler || (ToolEmailHandler = {}));
|
|
70
|
+
export var ToolSmsRecipient;
|
|
71
|
+
(function (ToolSmsRecipient) {
|
|
72
|
+
ToolSmsRecipient.visit = (value, visitor) => {
|
|
73
|
+
if (value.recipientId !== undefined)
|
|
74
|
+
return visitor.recipientId(value.recipientId);
|
|
75
|
+
if (value.recipientNumber !== undefined)
|
|
76
|
+
return visitor.recipientNumber(value.recipientNumber);
|
|
77
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
78
|
+
};
|
|
79
|
+
})(ToolSmsRecipient || (ToolSmsRecipient = {}));
|
|
78
80
|
export var ToolWebhookAuth;
|
|
79
81
|
(function (ToolWebhookAuth) {
|
|
80
82
|
ToolWebhookAuth.visit = (value, visitor) => {
|
|
@@ -105,6 +107,8 @@ export var ToolHandler;
|
|
|
105
107
|
return visitor.search(value.search);
|
|
106
108
|
if (value.chat !== undefined)
|
|
107
109
|
return visitor.chat(value.chat);
|
|
110
|
+
if (value.sms !== undefined)
|
|
111
|
+
return visitor.sms(value.sms);
|
|
108
112
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
109
113
|
};
|
|
110
114
|
})(ToolHandler || (ToolHandler = {}));
|
|
@@ -143,17 +147,3 @@ export class ToolExecutionServerException extends __BaseException {
|
|
|
143
147
|
this.details = opts.details;
|
|
144
148
|
}
|
|
145
149
|
}
|
|
146
|
-
export class ForbiddenException extends __BaseException {
|
|
147
|
-
name = "ForbiddenException";
|
|
148
|
-
$fault = "client";
|
|
149
|
-
details;
|
|
150
|
-
constructor(opts) {
|
|
151
|
-
super({
|
|
152
|
-
name: "ForbiddenException",
|
|
153
|
-
$fault: "client",
|
|
154
|
-
...opts
|
|
155
|
-
});
|
|
156
|
-
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
157
|
-
this.details = opts.details;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
@@ -2,7 +2,7 @@ import { ToolsServiceException as __BaseException } from "../models/ToolsService
|
|
|
2
2
|
import { AlreadyExistException, ForbiddenException, NotFoundException, ToolExecutionException, ToolExecutionServerException, 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,
|
|
5
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
6
6
|
export const se_CreateToolCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
8
8
|
const headers = {
|
|
@@ -252,7 +252,7 @@ const de_CommandError = async (output, context) => {
|
|
|
252
252
|
case "smithy.framework#ValidationException":
|
|
253
253
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
254
254
|
case "ForbiddenException":
|
|
255
|
-
case "
|
|
255
|
+
case "smithy.framework#ForbiddenException":
|
|
256
256
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
257
257
|
default:
|
|
258
258
|
const parsedBody = parsedOutput.body;
|
|
@@ -277,41 +277,40 @@ const de_AlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
|
277
277
|
});
|
|
278
278
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
279
279
|
};
|
|
280
|
-
const
|
|
280
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
281
281
|
const contents = map({});
|
|
282
282
|
const data = parsedOutput.body;
|
|
283
283
|
const doc = take(data, {
|
|
284
284
|
'message': __expectString,
|
|
285
285
|
});
|
|
286
286
|
Object.assign(contents, doc);
|
|
287
|
-
const exception = new
|
|
287
|
+
const exception = new ForbiddenException({
|
|
288
288
|
$metadata: deserializeMetadata(parsedOutput),
|
|
289
289
|
...contents
|
|
290
290
|
});
|
|
291
291
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
292
292
|
};
|
|
293
|
-
const
|
|
293
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
294
294
|
const contents = map({});
|
|
295
295
|
const data = parsedOutput.body;
|
|
296
296
|
const doc = take(data, {
|
|
297
297
|
'message': __expectString,
|
|
298
298
|
});
|
|
299
299
|
Object.assign(contents, doc);
|
|
300
|
-
const exception = new
|
|
300
|
+
const exception = new NotFoundException({
|
|
301
301
|
$metadata: deserializeMetadata(parsedOutput),
|
|
302
302
|
...contents
|
|
303
303
|
});
|
|
304
304
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
305
305
|
};
|
|
306
|
-
const
|
|
306
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
307
307
|
const contents = map({});
|
|
308
308
|
const data = parsedOutput.body;
|
|
309
309
|
const doc = take(data, {
|
|
310
|
-
'details': _ => de_Document(_, context),
|
|
311
310
|
'message': __expectString,
|
|
312
311
|
});
|
|
313
312
|
Object.assign(contents, doc);
|
|
314
|
-
const exception = new
|
|
313
|
+
const exception = new ValidationException({
|
|
315
314
|
$metadata: deserializeMetadata(parsedOutput),
|
|
316
315
|
...contents
|
|
317
316
|
});
|
|
@@ -353,9 +352,7 @@ const de_Document = (output, context) => {
|
|
|
353
352
|
};
|
|
354
353
|
const de_ToolExecutionResult = (output, context) => {
|
|
355
354
|
return take(output, {
|
|
356
|
-
'error': _json,
|
|
357
355
|
'output': (_) => de_Document(_, context),
|
|
358
|
-
'statusCode': __expectInt32,
|
|
359
356
|
});
|
|
360
357
|
};
|
|
361
358
|
const deserializeMetadata = (output) => ({
|
|
@@ -51,21 +51,9 @@ declare const CreateToolCommand_base: {
|
|
|
51
51
|
* handler: { // ToolHandler Union: only one key present
|
|
52
52
|
* email: { // ToolEmailHandler Union: only one key present
|
|
53
53
|
* wns: { // ToolWnsEmailConfig
|
|
54
|
-
* to:
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* template: "STRING_VALUE",
|
|
58
|
-
* },
|
|
59
|
-
* subject: {// Union: only one key present
|
|
60
|
-
* static: "STRING_VALUE",
|
|
61
|
-
* variable: "STRING_VALUE",
|
|
62
|
-
* template: "STRING_VALUE",
|
|
63
|
-
* },
|
|
64
|
-
* text: {// Union: only one key present
|
|
65
|
-
* static: "STRING_VALUE",
|
|
66
|
-
* variable: "STRING_VALUE",
|
|
67
|
-
* template: "STRING_VALUE",
|
|
68
|
-
* },
|
|
54
|
+
* to: "STRING_VALUE", // required
|
|
55
|
+
* subject: "STRING_VALUE", // required
|
|
56
|
+
* text: "STRING_VALUE", // required
|
|
69
57
|
* },
|
|
70
58
|
* custom: { // ToolCustomEmailConfig
|
|
71
59
|
* smtp: { // ToolSmtpConfig
|
|
@@ -75,41 +63,33 @@ declare const CreateToolCommand_base: {
|
|
|
75
63
|
* password: "STRING_VALUE", // required
|
|
76
64
|
* secure: true || false, // required
|
|
77
65
|
* },
|
|
78
|
-
* from:
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* template: "STRING_VALUE",
|
|
87
|
-
* },
|
|
88
|
-
* subject: "<ToolStringValue>", // required
|
|
89
|
-
* text: "<ToolStringValue>", // required
|
|
90
|
-
* html: "<ToolStringValue>",
|
|
91
|
-
* cc: "<ToolStringValue>",
|
|
92
|
-
* bcc: "<ToolStringValue>",
|
|
93
|
-
* replyTo: "<ToolStringValue>",
|
|
66
|
+
* from: "STRING_VALUE", // required
|
|
67
|
+
* to: "STRING_VALUE", // required
|
|
68
|
+
* subject: "STRING_VALUE", // required
|
|
69
|
+
* text: "STRING_VALUE", // required
|
|
70
|
+
* html: "STRING_VALUE",
|
|
71
|
+
* cc: "STRING_VALUE",
|
|
72
|
+
* bcc: "STRING_VALUE",
|
|
73
|
+
* replyTo: "STRING_VALUE",
|
|
94
74
|
* },
|
|
95
75
|
* },
|
|
96
76
|
* webhook: { // ToolWebhookConfig
|
|
97
77
|
* method: "GET" || "POST" || "PUT" || "DELETE" || "PATCH", // required
|
|
98
|
-
* url: "
|
|
78
|
+
* url: "STRING_VALUE", // required
|
|
99
79
|
* headers: [ // ToolWebhookHeadersList
|
|
100
80
|
* { // ToolWebhookHeader
|
|
101
81
|
* name: "STRING_VALUE", // required
|
|
102
|
-
* value: "
|
|
82
|
+
* value: "STRING_VALUE", // required
|
|
103
83
|
* },
|
|
104
84
|
* ],
|
|
105
|
-
* body: "
|
|
85
|
+
* body: "STRING_VALUE",
|
|
106
86
|
* auth: { // ToolWebhookAuth Union: only one key present
|
|
107
87
|
* basic: { // ToolWebhookAuthBasic
|
|
108
|
-
* username: "
|
|
109
|
-
* password: "
|
|
88
|
+
* username: "STRING_VALUE", // required
|
|
89
|
+
* password: "STRING_VALUE", // required
|
|
110
90
|
* },
|
|
111
91
|
* bearer: { // ToolWebhookAuthBearer
|
|
112
|
-
* token: "
|
|
92
|
+
* token: "STRING_VALUE", // required
|
|
113
93
|
* },
|
|
114
94
|
* oauth: { // ToolWebhookAuthOAuth
|
|
115
95
|
* clientId: "STRING_VALUE", // required
|
|
@@ -120,15 +100,25 @@ declare const CreateToolCommand_base: {
|
|
|
120
100
|
* },
|
|
121
101
|
* },
|
|
122
102
|
* search: {},
|
|
123
|
-
* chat: { // ToolChatHandler
|
|
103
|
+
* chat: { // ToolChatHandler
|
|
124
104
|
* config: { // ToolChatConfig
|
|
125
105
|
* recipient: { // ToolChatRecipient Union: only one key present
|
|
126
|
-
* channelId: "
|
|
127
|
-
* userId: "
|
|
106
|
+
* channelId: "STRING_VALUE",
|
|
107
|
+
* userId: "STRING_VALUE",
|
|
108
|
+
* },
|
|
109
|
+
* text: "STRING_VALUE", // required
|
|
110
|
+
* botName: "STRING_VALUE", // required
|
|
111
|
+
* },
|
|
112
|
+
* },
|
|
113
|
+
* sms: { // ToolSmsHandler
|
|
114
|
+
* config: { // ToolSmsConfig
|
|
115
|
+
* serviceUri: "STRING_VALUE", // required
|
|
116
|
+
* recipient: { // ToolSmsRecipient Union: only one key present
|
|
117
|
+
* recipientId: "STRING_VALUE",
|
|
118
|
+
* recipientNumber: "STRING_VALUE",
|
|
128
119
|
* },
|
|
129
|
-
* text: "
|
|
130
|
-
* botName: "
|
|
131
|
-
* botId: "STRING_VALUE",
|
|
120
|
+
* text: "STRING_VALUE", // required
|
|
121
|
+
* botName: "STRING_VALUE", // required
|
|
132
122
|
* },
|
|
133
123
|
* },
|
|
134
124
|
* },
|
|
@@ -154,21 +144,9 @@ declare const CreateToolCommand_base: {
|
|
|
154
144
|
* // handler: { // ToolHandler Union: only one key present
|
|
155
145
|
* // email: { // ToolEmailHandler Union: only one key present
|
|
156
146
|
* // wns: { // ToolWnsEmailConfig
|
|
157
|
-
* // to:
|
|
158
|
-
* //
|
|
159
|
-
* //
|
|
160
|
-
* // template: "STRING_VALUE",
|
|
161
|
-
* // },
|
|
162
|
-
* // subject: {// Union: only one key present
|
|
163
|
-
* // static: "STRING_VALUE",
|
|
164
|
-
* // variable: "STRING_VALUE",
|
|
165
|
-
* // template: "STRING_VALUE",
|
|
166
|
-
* // },
|
|
167
|
-
* // text: {// Union: only one key present
|
|
168
|
-
* // static: "STRING_VALUE",
|
|
169
|
-
* // variable: "STRING_VALUE",
|
|
170
|
-
* // template: "STRING_VALUE",
|
|
171
|
-
* // },
|
|
147
|
+
* // to: "STRING_VALUE", // required
|
|
148
|
+
* // subject: "STRING_VALUE", // required
|
|
149
|
+
* // text: "STRING_VALUE", // required
|
|
172
150
|
* // },
|
|
173
151
|
* // custom: { // ToolCustomEmailConfig
|
|
174
152
|
* // smtp: { // ToolSmtpConfig
|
|
@@ -178,41 +156,33 @@ declare const CreateToolCommand_base: {
|
|
|
178
156
|
* // password: "STRING_VALUE", // required
|
|
179
157
|
* // secure: true || false, // required
|
|
180
158
|
* // },
|
|
181
|
-
* // from:
|
|
182
|
-
* //
|
|
183
|
-
* //
|
|
184
|
-
* //
|
|
185
|
-
* //
|
|
186
|
-
* //
|
|
187
|
-
* //
|
|
188
|
-
* //
|
|
189
|
-
* // template: "STRING_VALUE",
|
|
190
|
-
* // },
|
|
191
|
-
* // subject: "<ToolStringValue>", // required
|
|
192
|
-
* // text: "<ToolStringValue>", // required
|
|
193
|
-
* // html: "<ToolStringValue>",
|
|
194
|
-
* // cc: "<ToolStringValue>",
|
|
195
|
-
* // bcc: "<ToolStringValue>",
|
|
196
|
-
* // replyTo: "<ToolStringValue>",
|
|
159
|
+
* // from: "STRING_VALUE", // required
|
|
160
|
+
* // to: "STRING_VALUE", // required
|
|
161
|
+
* // subject: "STRING_VALUE", // required
|
|
162
|
+
* // text: "STRING_VALUE", // required
|
|
163
|
+
* // html: "STRING_VALUE",
|
|
164
|
+
* // cc: "STRING_VALUE",
|
|
165
|
+
* // bcc: "STRING_VALUE",
|
|
166
|
+
* // replyTo: "STRING_VALUE",
|
|
197
167
|
* // },
|
|
198
168
|
* // },
|
|
199
169
|
* // webhook: { // ToolWebhookConfig
|
|
200
170
|
* // method: "GET" || "POST" || "PUT" || "DELETE" || "PATCH", // required
|
|
201
|
-
* // url: "
|
|
171
|
+
* // url: "STRING_VALUE", // required
|
|
202
172
|
* // headers: [ // ToolWebhookHeadersList
|
|
203
173
|
* // { // ToolWebhookHeader
|
|
204
174
|
* // name: "STRING_VALUE", // required
|
|
205
|
-
* // value: "
|
|
175
|
+
* // value: "STRING_VALUE", // required
|
|
206
176
|
* // },
|
|
207
177
|
* // ],
|
|
208
|
-
* // body: "
|
|
178
|
+
* // body: "STRING_VALUE",
|
|
209
179
|
* // auth: { // ToolWebhookAuth Union: only one key present
|
|
210
180
|
* // basic: { // ToolWebhookAuthBasic
|
|
211
|
-
* // username: "
|
|
212
|
-
* // password: "
|
|
181
|
+
* // username: "STRING_VALUE", // required
|
|
182
|
+
* // password: "STRING_VALUE", // required
|
|
213
183
|
* // },
|
|
214
184
|
* // bearer: { // ToolWebhookAuthBearer
|
|
215
|
-
* // token: "
|
|
185
|
+
* // token: "STRING_VALUE", // required
|
|
216
186
|
* // },
|
|
217
187
|
* // oauth: { // ToolWebhookAuthOAuth
|
|
218
188
|
* // clientId: "STRING_VALUE", // required
|
|
@@ -223,15 +193,25 @@ declare const CreateToolCommand_base: {
|
|
|
223
193
|
* // },
|
|
224
194
|
* // },
|
|
225
195
|
* // search: {},
|
|
226
|
-
* // chat: { // ToolChatHandler
|
|
196
|
+
* // chat: { // ToolChatHandler
|
|
227
197
|
* // config: { // ToolChatConfig
|
|
228
198
|
* // recipient: { // ToolChatRecipient Union: only one key present
|
|
229
|
-
* // channelId: "
|
|
230
|
-
* // userId: "
|
|
199
|
+
* // channelId: "STRING_VALUE",
|
|
200
|
+
* // userId: "STRING_VALUE",
|
|
201
|
+
* // },
|
|
202
|
+
* // text: "STRING_VALUE", // required
|
|
203
|
+
* // botName: "STRING_VALUE", // required
|
|
204
|
+
* // },
|
|
205
|
+
* // },
|
|
206
|
+
* // sms: { // ToolSmsHandler
|
|
207
|
+
* // config: { // ToolSmsConfig
|
|
208
|
+
* // serviceUri: "STRING_VALUE", // required
|
|
209
|
+
* // recipient: { // ToolSmsRecipient Union: only one key present
|
|
210
|
+
* // recipientId: "STRING_VALUE",
|
|
211
|
+
* // recipientNumber: "STRING_VALUE",
|
|
231
212
|
* // },
|
|
232
|
-
* // text: "
|
|
233
|
-
* // botName: "
|
|
234
|
-
* // botId: "STRING_VALUE",
|
|
213
|
+
* // text: "STRING_VALUE", // required
|
|
214
|
+
* // botName: "STRING_VALUE", // required
|
|
235
215
|
* // },
|
|
236
216
|
* // },
|
|
237
217
|
* // },
|
|
@@ -45,11 +45,7 @@ declare const ExecuteToolCommand_base: {
|
|
|
45
45
|
* const response = await client.send(command);
|
|
46
46
|
* // { // ExecuteToolOutput
|
|
47
47
|
* // result: { // ToolExecutionResult
|
|
48
|
-
* // statusCode: Number("int"), // required
|
|
49
48
|
* // output: "DOCUMENT_VALUE", // required
|
|
50
|
-
* // error: { // ToolExecutionError
|
|
51
|
-
* // message: "STRING_VALUE", // required
|
|
52
|
-
* // },
|
|
53
49
|
* // },
|
|
54
50
|
* // };
|
|
55
51
|
*
|