@wildix/wim-voicebots-client 1.1.0 → 1.1.2
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 +33 -11
- package/dist-cjs/protocols/Aws_restJson1.js +7 -0
- package/dist-es/models/models_0.js +30 -8
- package/dist-es/protocols/Aws_restJson1.js +7 -0
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +100 -0
- package/dist-types/commands/GetVoiceBotCommand.d.ts +50 -0
- package/dist-types/commands/ListTracesCommand.d.ts +1 -0
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +50 -0
- package/dist-types/commands/UpdateVoiceBotCommand.d.ts +100 -0
- package/dist-types/models/models_0.d.ts +141 -6
- 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
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VoiceSessionNotFoundException = exports.VoiceBotNotFoundException = exports.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceSegmentResult = exports.TraceSegmentInput = exports.TraceGenericInputBlockContent = exports.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = exports.TraceToolCall = exports.TraceActivityTrigger = exports.TraceActivityStatus = exports.TraceActivityResult = exports.VoiceBotCommandType = exports.VoiceBotNonUniqueNameException = exports.VoiceBotPipelineTerminateAction = exports.VoiceBotEndpoint = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegration = exports.VoiceBotFunctionIntegrationMethod = exports.VoiceBotFunctionIntegrationWebhookAuthorization = exports.VoiceBotEmbeddedToolType = exports.
|
|
3
|
+
exports.VoiceSessionNotFoundException = exports.VoiceBotNotFoundException = exports.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceSegmentResult = exports.TraceSegmentInput = exports.TraceGenericInputBlockContent = exports.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = exports.TraceToolCall = exports.TraceActivityTrigger = exports.TraceActivityStatus = exports.TraceActivityResult = exports.VoiceBotCommandType = exports.VoiceBotNonUniqueNameException = exports.VoiceBotPipelineTerminateAction = exports.VoiceBotEndpoint = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegration = exports.VoiceBotFunctionIntegrationMethod = exports.VoiceBotFunctionIntegrationWebhookAuthorization = exports.VoiceBotEmbeddedToolType = exports.VoiceBotCapability = exports.VoiceBotToolVariableHandler = exports.VoiceBotEventType = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
4
|
const VoiceBotsServiceException_1 = require("./VoiceBotsServiceException");
|
|
5
|
-
class
|
|
6
|
-
name = "
|
|
5
|
+
class ForbiddenException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
6
|
+
name = "ForbiddenException";
|
|
7
7
|
$fault = "client";
|
|
8
8
|
constructor(opts) {
|
|
9
9
|
super({
|
|
10
|
-
name: "
|
|
10
|
+
name: "ForbiddenException",
|
|
11
11
|
$fault: "client",
|
|
12
12
|
...opts
|
|
13
13
|
});
|
|
14
|
-
Object.setPrototypeOf(this,
|
|
14
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
exports.
|
|
18
|
-
class
|
|
19
|
-
name = "
|
|
17
|
+
exports.ForbiddenException = ForbiddenException;
|
|
18
|
+
class ValidationException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
19
|
+
name = "ValidationException";
|
|
20
20
|
$fault = "client";
|
|
21
21
|
constructor(opts) {
|
|
22
22
|
super({
|
|
23
|
-
name: "
|
|
23
|
+
name: "ValidationException",
|
|
24
24
|
$fault: "client",
|
|
25
25
|
...opts
|
|
26
26
|
});
|
|
27
|
-
Object.setPrototypeOf(this,
|
|
27
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
exports.
|
|
30
|
+
exports.ValidationException = ValidationException;
|
|
31
31
|
exports.VoiceBotEventType = {
|
|
32
32
|
AUDIO: "audio",
|
|
33
33
|
COMPLETE: "complete",
|
|
@@ -38,6 +38,28 @@ exports.VoiceBotEventType = {
|
|
|
38
38
|
STARTED: "started",
|
|
39
39
|
TRANSCRIPTION: "transcription",
|
|
40
40
|
};
|
|
41
|
+
var VoiceBotToolVariableHandler;
|
|
42
|
+
(function (VoiceBotToolVariableHandler) {
|
|
43
|
+
VoiceBotToolVariableHandler.visit = (value, visitor) => {
|
|
44
|
+
if (value.auto !== undefined)
|
|
45
|
+
return visitor.auto(value.auto);
|
|
46
|
+
if (value.guided !== undefined)
|
|
47
|
+
return visitor.guided(value.guided);
|
|
48
|
+
if (value.predefined !== undefined)
|
|
49
|
+
return visitor.predefined(value.predefined);
|
|
50
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
51
|
+
};
|
|
52
|
+
})(VoiceBotToolVariableHandler || (exports.VoiceBotToolVariableHandler = VoiceBotToolVariableHandler = {}));
|
|
53
|
+
var VoiceBotCapability;
|
|
54
|
+
(function (VoiceBotCapability) {
|
|
55
|
+
VoiceBotCapability.visit = (value, visitor) => {
|
|
56
|
+
if (value.tool !== undefined)
|
|
57
|
+
return visitor.tool(value.tool);
|
|
58
|
+
if (value.kb !== undefined)
|
|
59
|
+
return visitor.kb(value.kb);
|
|
60
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
61
|
+
};
|
|
62
|
+
})(VoiceBotCapability || (exports.VoiceBotCapability = VoiceBotCapability = {}));
|
|
41
63
|
exports.VoiceBotEmbeddedToolType = {
|
|
42
64
|
DELEGATE: "DELEGATE",
|
|
43
65
|
HANGUP: "HANGUP",
|
|
@@ -17,6 +17,7 @@ const se_CreateVoiceBotCommand = async (input, context) => {
|
|
|
17
17
|
});
|
|
18
18
|
let body;
|
|
19
19
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
|
+
'capabilities': _ => (0, smithy_client_1._json)(_),
|
|
20
21
|
'endpoint': _ => se_VoiceBotEndpoint(_, context),
|
|
21
22
|
'message': [],
|
|
22
23
|
'name': [],
|
|
@@ -94,6 +95,7 @@ const se_ListTracesCommand = async (input, context) => {
|
|
|
94
95
|
b.bp("/v2/voicebots/traces");
|
|
95
96
|
const query = (0, smithy_client_1.map)({
|
|
96
97
|
[_c]: [, input[_c]],
|
|
98
|
+
[_s]: [, input[_s]],
|
|
97
99
|
});
|
|
98
100
|
let body;
|
|
99
101
|
b.m("GET")
|
|
@@ -231,6 +233,7 @@ const se_UpdateVoiceBotCommand = async (input, context) => {
|
|
|
231
233
|
});
|
|
232
234
|
let body;
|
|
233
235
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
236
|
+
'capabilities': _ => (0, smithy_client_1._json)(_),
|
|
234
237
|
'endpoint': _ => se_VoiceBotEndpoint(_, context),
|
|
235
238
|
'message': [],
|
|
236
239
|
'name': [],
|
|
@@ -604,6 +607,7 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
|
|
|
604
607
|
};
|
|
605
608
|
const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
606
609
|
return (0, smithy_client_1.take)(input, {
|
|
610
|
+
'capabilities': smithy_client_1._json,
|
|
607
611
|
'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
|
|
608
612
|
'metadata': smithy_client_1._json,
|
|
609
613
|
'model': [],
|
|
@@ -890,6 +894,7 @@ const de_TraceTimings = (output, context) => {
|
|
|
890
894
|
};
|
|
891
895
|
const de_VoiceBot = (output, context) => {
|
|
892
896
|
return (0, smithy_client_1.take)(output, {
|
|
897
|
+
'capabilities': smithy_client_1._json,
|
|
893
898
|
'createdAt': smithy_client_1.expectString,
|
|
894
899
|
'endpoint': (_) => de_VoiceBotEndpoint((0, core_1.awsExpectUnion)(_), context),
|
|
895
900
|
'id': smithy_client_1.expectString,
|
|
@@ -970,6 +975,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
|
|
|
970
975
|
};
|
|
971
976
|
const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
972
977
|
return (0, smithy_client_1.take)(output, {
|
|
978
|
+
'capabilities': smithy_client_1._json,
|
|
973
979
|
'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
|
|
974
980
|
'metadata': smithy_client_1._json,
|
|
975
981
|
'model': smithy_client_1.expectString,
|
|
@@ -1011,3 +1017,4 @@ const deserializeMetadata = (output) => ({
|
|
|
1011
1017
|
});
|
|
1012
1018
|
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
|
|
1013
1019
|
const _c = "company";
|
|
1020
|
+
const _s = "search";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { VoiceBotsServiceException as __BaseException } from "./VoiceBotsServiceException";
|
|
2
|
-
export class
|
|
3
|
-
name = "
|
|
2
|
+
export class ForbiddenException extends __BaseException {
|
|
3
|
+
name = "ForbiddenException";
|
|
4
4
|
$fault = "client";
|
|
5
5
|
constructor(opts) {
|
|
6
6
|
super({
|
|
7
|
-
name: "
|
|
7
|
+
name: "ForbiddenException",
|
|
8
8
|
$fault: "client",
|
|
9
9
|
...opts
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export class
|
|
15
|
-
name = "
|
|
14
|
+
export class ValidationException extends __BaseException {
|
|
15
|
+
name = "ValidationException";
|
|
16
16
|
$fault = "client";
|
|
17
17
|
constructor(opts) {
|
|
18
18
|
super({
|
|
19
|
-
name: "
|
|
19
|
+
name: "ValidationException",
|
|
20
20
|
$fault: "client",
|
|
21
21
|
...opts
|
|
22
22
|
});
|
|
23
|
-
Object.setPrototypeOf(this,
|
|
23
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
export const VoiceBotEventType = {
|
|
@@ -33,6 +33,28 @@ export const VoiceBotEventType = {
|
|
|
33
33
|
STARTED: "started",
|
|
34
34
|
TRANSCRIPTION: "transcription",
|
|
35
35
|
};
|
|
36
|
+
export var VoiceBotToolVariableHandler;
|
|
37
|
+
(function (VoiceBotToolVariableHandler) {
|
|
38
|
+
VoiceBotToolVariableHandler.visit = (value, visitor) => {
|
|
39
|
+
if (value.auto !== undefined)
|
|
40
|
+
return visitor.auto(value.auto);
|
|
41
|
+
if (value.guided !== undefined)
|
|
42
|
+
return visitor.guided(value.guided);
|
|
43
|
+
if (value.predefined !== undefined)
|
|
44
|
+
return visitor.predefined(value.predefined);
|
|
45
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
46
|
+
};
|
|
47
|
+
})(VoiceBotToolVariableHandler || (VoiceBotToolVariableHandler = {}));
|
|
48
|
+
export var VoiceBotCapability;
|
|
49
|
+
(function (VoiceBotCapability) {
|
|
50
|
+
VoiceBotCapability.visit = (value, visitor) => {
|
|
51
|
+
if (value.tool !== undefined)
|
|
52
|
+
return visitor.tool(value.tool);
|
|
53
|
+
if (value.kb !== undefined)
|
|
54
|
+
return visitor.kb(value.kb);
|
|
55
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
56
|
+
};
|
|
57
|
+
})(VoiceBotCapability || (VoiceBotCapability = {}));
|
|
36
58
|
export const VoiceBotEmbeddedToolType = {
|
|
37
59
|
DELEGATE: "DELEGATE",
|
|
38
60
|
HANGUP: "HANGUP",
|
|
@@ -14,6 +14,7 @@ export const se_CreateVoiceBotCommand = async (input, context) => {
|
|
|
14
14
|
});
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify(take(input, {
|
|
17
|
+
'capabilities': _ => _json(_),
|
|
17
18
|
'endpoint': _ => se_VoiceBotEndpoint(_, context),
|
|
18
19
|
'message': [],
|
|
19
20
|
'name': [],
|
|
@@ -86,6 +87,7 @@ export const se_ListTracesCommand = async (input, context) => {
|
|
|
86
87
|
b.bp("/v2/voicebots/traces");
|
|
87
88
|
const query = map({
|
|
88
89
|
[_c]: [, input[_c]],
|
|
90
|
+
[_s]: [, input[_s]],
|
|
89
91
|
});
|
|
90
92
|
let body;
|
|
91
93
|
b.m("GET")
|
|
@@ -215,6 +217,7 @@ export const se_UpdateVoiceBotCommand = async (input, context) => {
|
|
|
215
217
|
});
|
|
216
218
|
let body;
|
|
217
219
|
body = JSON.stringify(take(input, {
|
|
220
|
+
'capabilities': _ => _json(_),
|
|
218
221
|
'endpoint': _ => se_VoiceBotEndpoint(_, context),
|
|
219
222
|
'message': [],
|
|
220
223
|
'name': [],
|
|
@@ -573,6 +576,7 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
|
|
|
573
576
|
};
|
|
574
577
|
const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
575
578
|
return take(input, {
|
|
579
|
+
'capabilities': _json,
|
|
576
580
|
'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
|
|
577
581
|
'metadata': _json,
|
|
578
582
|
'model': [],
|
|
@@ -859,6 +863,7 @@ const de_TraceTimings = (output, context) => {
|
|
|
859
863
|
};
|
|
860
864
|
const de_VoiceBot = (output, context) => {
|
|
861
865
|
return take(output, {
|
|
866
|
+
'capabilities': _json,
|
|
862
867
|
'createdAt': __expectString,
|
|
863
868
|
'endpoint': (_) => de_VoiceBotEndpoint(__expectUnion(_), context),
|
|
864
869
|
'id': __expectString,
|
|
@@ -939,6 +944,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
|
|
|
939
944
|
};
|
|
940
945
|
const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
941
946
|
return take(output, {
|
|
947
|
+
'capabilities': _json,
|
|
942
948
|
'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
|
|
943
949
|
'metadata': _json,
|
|
944
950
|
'model': __expectString,
|
|
@@ -980,3 +986,4 @@ const deserializeMetadata = (output) => ({
|
|
|
980
986
|
});
|
|
981
987
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
982
988
|
const _c = "company";
|
|
989
|
+
const _s = "search";
|
|
@@ -128,6 +128,31 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
128
128
|
* },
|
|
129
129
|
* },
|
|
130
130
|
* ],
|
|
131
|
+
* capabilities: [ // VoiceBotCapabilitiesList
|
|
132
|
+
* { // VoiceBotCapability Union: only one key present
|
|
133
|
+
* tool: { // VoiceBotCapabilityTool
|
|
134
|
+
* id: "STRING_VALUE", // required
|
|
135
|
+
* variables: [ // VoiceBotToolVariablesList
|
|
136
|
+
* { // VoiceBotToolVariable
|
|
137
|
+
* name: "STRING_VALUE", // required
|
|
138
|
+
* handler: { // VoiceBotToolVariableHandler Union: only one key present
|
|
139
|
+
* auto: {},
|
|
140
|
+
* guided: { // VoiceBotToolVariableGuidedHandler
|
|
141
|
+
* description: "STRING_VALUE", // required
|
|
142
|
+
* },
|
|
143
|
+
* predefined: { // VoiceBotToolVariablePredefinedHandler
|
|
144
|
+
* description: "STRING_VALUE", // required
|
|
145
|
+
* },
|
|
146
|
+
* },
|
|
147
|
+
* },
|
|
148
|
+
* ],
|
|
149
|
+
* },
|
|
150
|
+
* kb: { // VoiceBotKnowledgeBase
|
|
151
|
+
* knowledgeBaseId: "STRING_VALUE",
|
|
152
|
+
* instructions: "STRING_VALUE",
|
|
153
|
+
* },
|
|
154
|
+
* },
|
|
155
|
+
* ],
|
|
131
156
|
* },
|
|
132
157
|
* dialogflowCx: { // BotDialogflowCxEndpoint
|
|
133
158
|
* credentials: "DOCUMENT_VALUE", // required
|
|
@@ -149,6 +174,31 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
149
174
|
* secret: "STRING_VALUE", // required
|
|
150
175
|
* },
|
|
151
176
|
* },
|
|
177
|
+
* capabilities: [
|
|
178
|
+
* {// Union: only one key present
|
|
179
|
+
* tool: {
|
|
180
|
+
* id: "STRING_VALUE", // required
|
|
181
|
+
* variables: [
|
|
182
|
+
* {
|
|
183
|
+
* name: "STRING_VALUE", // required
|
|
184
|
+
* handler: {// Union: only one key present
|
|
185
|
+
* auto: {},
|
|
186
|
+
* guided: {
|
|
187
|
+
* description: "STRING_VALUE", // required
|
|
188
|
+
* },
|
|
189
|
+
* predefined: {
|
|
190
|
+
* description: "STRING_VALUE", // required
|
|
191
|
+
* },
|
|
192
|
+
* },
|
|
193
|
+
* },
|
|
194
|
+
* ],
|
|
195
|
+
* },
|
|
196
|
+
* kb: {
|
|
197
|
+
* knowledgeBaseId: "STRING_VALUE",
|
|
198
|
+
* instructions: "STRING_VALUE",
|
|
199
|
+
* },
|
|
200
|
+
* },
|
|
201
|
+
* ],
|
|
152
202
|
* company: "STRING_VALUE",
|
|
153
203
|
* };
|
|
154
204
|
* const command = new CreateVoiceBotCommand(input);
|
|
@@ -248,6 +298,31 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
248
298
|
* // },
|
|
249
299
|
* // },
|
|
250
300
|
* // ],
|
|
301
|
+
* // capabilities: [ // VoiceBotCapabilitiesList
|
|
302
|
+
* // { // VoiceBotCapability Union: only one key present
|
|
303
|
+
* // tool: { // VoiceBotCapabilityTool
|
|
304
|
+
* // id: "STRING_VALUE", // required
|
|
305
|
+
* // variables: [ // VoiceBotToolVariablesList
|
|
306
|
+
* // { // VoiceBotToolVariable
|
|
307
|
+
* // name: "STRING_VALUE", // required
|
|
308
|
+
* // handler: { // VoiceBotToolVariableHandler Union: only one key present
|
|
309
|
+
* // auto: {},
|
|
310
|
+
* // guided: { // VoiceBotToolVariableGuidedHandler
|
|
311
|
+
* // description: "STRING_VALUE", // required
|
|
312
|
+
* // },
|
|
313
|
+
* // predefined: { // VoiceBotToolVariablePredefinedHandler
|
|
314
|
+
* // description: "STRING_VALUE", // required
|
|
315
|
+
* // },
|
|
316
|
+
* // },
|
|
317
|
+
* // },
|
|
318
|
+
* // ],
|
|
319
|
+
* // },
|
|
320
|
+
* // kb: { // VoiceBotKnowledgeBase
|
|
321
|
+
* // knowledgeBaseId: "STRING_VALUE",
|
|
322
|
+
* // instructions: "STRING_VALUE",
|
|
323
|
+
* // },
|
|
324
|
+
* // },
|
|
325
|
+
* // ],
|
|
251
326
|
* // },
|
|
252
327
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
253
328
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
@@ -269,6 +344,31 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
269
344
|
* // secret: "STRING_VALUE", // required
|
|
270
345
|
* // },
|
|
271
346
|
* // },
|
|
347
|
+
* // capabilities: [
|
|
348
|
+
* // {// Union: only one key present
|
|
349
|
+
* // tool: {
|
|
350
|
+
* // id: "STRING_VALUE", // required
|
|
351
|
+
* // variables: [
|
|
352
|
+
* // {
|
|
353
|
+
* // name: "STRING_VALUE", // required
|
|
354
|
+
* // handler: {// Union: only one key present
|
|
355
|
+
* // auto: {},
|
|
356
|
+
* // guided: {
|
|
357
|
+
* // description: "STRING_VALUE", // required
|
|
358
|
+
* // },
|
|
359
|
+
* // predefined: {
|
|
360
|
+
* // description: "STRING_VALUE", // required
|
|
361
|
+
* // },
|
|
362
|
+
* // },
|
|
363
|
+
* // },
|
|
364
|
+
* // ],
|
|
365
|
+
* // },
|
|
366
|
+
* // kb: {
|
|
367
|
+
* // knowledgeBaseId: "STRING_VALUE",
|
|
368
|
+
* // instructions: "STRING_VALUE",
|
|
369
|
+
* // },
|
|
370
|
+
* // },
|
|
371
|
+
* // ],
|
|
272
372
|
* // id: "STRING_VALUE", // required
|
|
273
373
|
* // createdAt: "STRING_VALUE", // required
|
|
274
374
|
* // updatedAt: "STRING_VALUE",
|
|
@@ -135,6 +135,31 @@ declare const GetVoiceBotCommand_base: {
|
|
|
135
135
|
* // },
|
|
136
136
|
* // },
|
|
137
137
|
* // ],
|
|
138
|
+
* // capabilities: [ // VoiceBotCapabilitiesList
|
|
139
|
+
* // { // VoiceBotCapability Union: only one key present
|
|
140
|
+
* // tool: { // VoiceBotCapabilityTool
|
|
141
|
+
* // id: "STRING_VALUE", // required
|
|
142
|
+
* // variables: [ // VoiceBotToolVariablesList
|
|
143
|
+
* // { // VoiceBotToolVariable
|
|
144
|
+
* // name: "STRING_VALUE", // required
|
|
145
|
+
* // handler: { // VoiceBotToolVariableHandler Union: only one key present
|
|
146
|
+
* // auto: {},
|
|
147
|
+
* // guided: { // VoiceBotToolVariableGuidedHandler
|
|
148
|
+
* // description: "STRING_VALUE", // required
|
|
149
|
+
* // },
|
|
150
|
+
* // predefined: { // VoiceBotToolVariablePredefinedHandler
|
|
151
|
+
* // description: "STRING_VALUE", // required
|
|
152
|
+
* // },
|
|
153
|
+
* // },
|
|
154
|
+
* // },
|
|
155
|
+
* // ],
|
|
156
|
+
* // },
|
|
157
|
+
* // kb: { // VoiceBotKnowledgeBase
|
|
158
|
+
* // knowledgeBaseId: "STRING_VALUE",
|
|
159
|
+
* // instructions: "STRING_VALUE",
|
|
160
|
+
* // },
|
|
161
|
+
* // },
|
|
162
|
+
* // ],
|
|
138
163
|
* // },
|
|
139
164
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
140
165
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
@@ -156,6 +181,31 @@ declare const GetVoiceBotCommand_base: {
|
|
|
156
181
|
* // secret: "STRING_VALUE", // required
|
|
157
182
|
* // },
|
|
158
183
|
* // },
|
|
184
|
+
* // capabilities: [
|
|
185
|
+
* // {// Union: only one key present
|
|
186
|
+
* // tool: {
|
|
187
|
+
* // id: "STRING_VALUE", // required
|
|
188
|
+
* // variables: [
|
|
189
|
+
* // {
|
|
190
|
+
* // name: "STRING_VALUE", // required
|
|
191
|
+
* // handler: {// Union: only one key present
|
|
192
|
+
* // auto: {},
|
|
193
|
+
* // guided: {
|
|
194
|
+
* // description: "STRING_VALUE", // required
|
|
195
|
+
* // },
|
|
196
|
+
* // predefined: {
|
|
197
|
+
* // description: "STRING_VALUE", // required
|
|
198
|
+
* // },
|
|
199
|
+
* // },
|
|
200
|
+
* // },
|
|
201
|
+
* // ],
|
|
202
|
+
* // },
|
|
203
|
+
* // kb: {
|
|
204
|
+
* // knowledgeBaseId: "STRING_VALUE",
|
|
205
|
+
* // instructions: "STRING_VALUE",
|
|
206
|
+
* // },
|
|
207
|
+
* // },
|
|
208
|
+
* // ],
|
|
159
209
|
* // id: "STRING_VALUE", // required
|
|
160
210
|
* // createdAt: "STRING_VALUE", // required
|
|
161
211
|
* // updatedAt: "STRING_VALUE",
|
|
@@ -36,6 +36,7 @@ declare const ListTracesCommand_base: {
|
|
|
36
36
|
* const client = new VoiceBotsClient(config);
|
|
37
37
|
* const input = { // ListTracesInput
|
|
38
38
|
* company: "STRING_VALUE",
|
|
39
|
+
* search: "STRING_VALUE",
|
|
39
40
|
* };
|
|
40
41
|
* const command = new ListTracesCommand(input);
|
|
41
42
|
* const response = await client.send(command);
|
|
@@ -135,6 +135,31 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
135
135
|
* // },
|
|
136
136
|
* // },
|
|
137
137
|
* // ],
|
|
138
|
+
* // capabilities: [ // VoiceBotCapabilitiesList
|
|
139
|
+
* // { // VoiceBotCapability Union: only one key present
|
|
140
|
+
* // tool: { // VoiceBotCapabilityTool
|
|
141
|
+
* // id: "STRING_VALUE", // required
|
|
142
|
+
* // variables: [ // VoiceBotToolVariablesList
|
|
143
|
+
* // { // VoiceBotToolVariable
|
|
144
|
+
* // name: "STRING_VALUE", // required
|
|
145
|
+
* // handler: { // VoiceBotToolVariableHandler Union: only one key present
|
|
146
|
+
* // auto: {},
|
|
147
|
+
* // guided: { // VoiceBotToolVariableGuidedHandler
|
|
148
|
+
* // description: "STRING_VALUE", // required
|
|
149
|
+
* // },
|
|
150
|
+
* // predefined: { // VoiceBotToolVariablePredefinedHandler
|
|
151
|
+
* // description: "STRING_VALUE", // required
|
|
152
|
+
* // },
|
|
153
|
+
* // },
|
|
154
|
+
* // },
|
|
155
|
+
* // ],
|
|
156
|
+
* // },
|
|
157
|
+
* // kb: { // VoiceBotKnowledgeBase
|
|
158
|
+
* // knowledgeBaseId: "STRING_VALUE",
|
|
159
|
+
* // instructions: "STRING_VALUE",
|
|
160
|
+
* // },
|
|
161
|
+
* // },
|
|
162
|
+
* // ],
|
|
138
163
|
* // },
|
|
139
164
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
140
165
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
@@ -156,6 +181,31 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
156
181
|
* // secret: "STRING_VALUE", // required
|
|
157
182
|
* // },
|
|
158
183
|
* // },
|
|
184
|
+
* // capabilities: [
|
|
185
|
+
* // {// Union: only one key present
|
|
186
|
+
* // tool: {
|
|
187
|
+
* // id: "STRING_VALUE", // required
|
|
188
|
+
* // variables: [
|
|
189
|
+
* // {
|
|
190
|
+
* // name: "STRING_VALUE", // required
|
|
191
|
+
* // handler: {// Union: only one key present
|
|
192
|
+
* // auto: {},
|
|
193
|
+
* // guided: {
|
|
194
|
+
* // description: "STRING_VALUE", // required
|
|
195
|
+
* // },
|
|
196
|
+
* // predefined: {
|
|
197
|
+
* // description: "STRING_VALUE", // required
|
|
198
|
+
* // },
|
|
199
|
+
* // },
|
|
200
|
+
* // },
|
|
201
|
+
* // ],
|
|
202
|
+
* // },
|
|
203
|
+
* // kb: {
|
|
204
|
+
* // knowledgeBaseId: "STRING_VALUE",
|
|
205
|
+
* // instructions: "STRING_VALUE",
|
|
206
|
+
* // },
|
|
207
|
+
* // },
|
|
208
|
+
* // ],
|
|
159
209
|
* // id: "STRING_VALUE", // required
|
|
160
210
|
* // createdAt: "STRING_VALUE", // required
|
|
161
211
|
* // updatedAt: "STRING_VALUE",
|
|
@@ -128,6 +128,31 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
128
128
|
* },
|
|
129
129
|
* },
|
|
130
130
|
* ],
|
|
131
|
+
* capabilities: [ // VoiceBotCapabilitiesList
|
|
132
|
+
* { // VoiceBotCapability Union: only one key present
|
|
133
|
+
* tool: { // VoiceBotCapabilityTool
|
|
134
|
+
* id: "STRING_VALUE", // required
|
|
135
|
+
* variables: [ // VoiceBotToolVariablesList
|
|
136
|
+
* { // VoiceBotToolVariable
|
|
137
|
+
* name: "STRING_VALUE", // required
|
|
138
|
+
* handler: { // VoiceBotToolVariableHandler Union: only one key present
|
|
139
|
+
* auto: {},
|
|
140
|
+
* guided: { // VoiceBotToolVariableGuidedHandler
|
|
141
|
+
* description: "STRING_VALUE", // required
|
|
142
|
+
* },
|
|
143
|
+
* predefined: { // VoiceBotToolVariablePredefinedHandler
|
|
144
|
+
* description: "STRING_VALUE", // required
|
|
145
|
+
* },
|
|
146
|
+
* },
|
|
147
|
+
* },
|
|
148
|
+
* ],
|
|
149
|
+
* },
|
|
150
|
+
* kb: { // VoiceBotKnowledgeBase
|
|
151
|
+
* knowledgeBaseId: "STRING_VALUE",
|
|
152
|
+
* instructions: "STRING_VALUE",
|
|
153
|
+
* },
|
|
154
|
+
* },
|
|
155
|
+
* ],
|
|
131
156
|
* },
|
|
132
157
|
* dialogflowCx: { // BotDialogflowCxEndpoint
|
|
133
158
|
* credentials: "DOCUMENT_VALUE", // required
|
|
@@ -149,6 +174,31 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
149
174
|
* secret: "STRING_VALUE", // required
|
|
150
175
|
* },
|
|
151
176
|
* },
|
|
177
|
+
* capabilities: [
|
|
178
|
+
* {// Union: only one key present
|
|
179
|
+
* tool: {
|
|
180
|
+
* id: "STRING_VALUE", // required
|
|
181
|
+
* variables: [
|
|
182
|
+
* {
|
|
183
|
+
* name: "STRING_VALUE", // required
|
|
184
|
+
* handler: {// Union: only one key present
|
|
185
|
+
* auto: {},
|
|
186
|
+
* guided: {
|
|
187
|
+
* description: "STRING_VALUE", // required
|
|
188
|
+
* },
|
|
189
|
+
* predefined: {
|
|
190
|
+
* description: "STRING_VALUE", // required
|
|
191
|
+
* },
|
|
192
|
+
* },
|
|
193
|
+
* },
|
|
194
|
+
* ],
|
|
195
|
+
* },
|
|
196
|
+
* kb: {
|
|
197
|
+
* knowledgeBaseId: "STRING_VALUE",
|
|
198
|
+
* instructions: "STRING_VALUE",
|
|
199
|
+
* },
|
|
200
|
+
* },
|
|
201
|
+
* ],
|
|
152
202
|
* company: "STRING_VALUE",
|
|
153
203
|
* botId: "STRING_VALUE", // required
|
|
154
204
|
* };
|
|
@@ -249,6 +299,31 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
249
299
|
* // },
|
|
250
300
|
* // },
|
|
251
301
|
* // ],
|
|
302
|
+
* // capabilities: [ // VoiceBotCapabilitiesList
|
|
303
|
+
* // { // VoiceBotCapability Union: only one key present
|
|
304
|
+
* // tool: { // VoiceBotCapabilityTool
|
|
305
|
+
* // id: "STRING_VALUE", // required
|
|
306
|
+
* // variables: [ // VoiceBotToolVariablesList
|
|
307
|
+
* // { // VoiceBotToolVariable
|
|
308
|
+
* // name: "STRING_VALUE", // required
|
|
309
|
+
* // handler: { // VoiceBotToolVariableHandler Union: only one key present
|
|
310
|
+
* // auto: {},
|
|
311
|
+
* // guided: { // VoiceBotToolVariableGuidedHandler
|
|
312
|
+
* // description: "STRING_VALUE", // required
|
|
313
|
+
* // },
|
|
314
|
+
* // predefined: { // VoiceBotToolVariablePredefinedHandler
|
|
315
|
+
* // description: "STRING_VALUE", // required
|
|
316
|
+
* // },
|
|
317
|
+
* // },
|
|
318
|
+
* // },
|
|
319
|
+
* // ],
|
|
320
|
+
* // },
|
|
321
|
+
* // kb: { // VoiceBotKnowledgeBase
|
|
322
|
+
* // knowledgeBaseId: "STRING_VALUE",
|
|
323
|
+
* // instructions: "STRING_VALUE",
|
|
324
|
+
* // },
|
|
325
|
+
* // },
|
|
326
|
+
* // ],
|
|
252
327
|
* // },
|
|
253
328
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
254
329
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
@@ -270,6 +345,31 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
270
345
|
* // secret: "STRING_VALUE", // required
|
|
271
346
|
* // },
|
|
272
347
|
* // },
|
|
348
|
+
* // capabilities: [
|
|
349
|
+
* // {// Union: only one key present
|
|
350
|
+
* // tool: {
|
|
351
|
+
* // id: "STRING_VALUE", // required
|
|
352
|
+
* // variables: [
|
|
353
|
+
* // {
|
|
354
|
+
* // name: "STRING_VALUE", // required
|
|
355
|
+
* // handler: {// Union: only one key present
|
|
356
|
+
* // auto: {},
|
|
357
|
+
* // guided: {
|
|
358
|
+
* // description: "STRING_VALUE", // required
|
|
359
|
+
* // },
|
|
360
|
+
* // predefined: {
|
|
361
|
+
* // description: "STRING_VALUE", // required
|
|
362
|
+
* // },
|
|
363
|
+
* // },
|
|
364
|
+
* // },
|
|
365
|
+
* // ],
|
|
366
|
+
* // },
|
|
367
|
+
* // kb: {
|
|
368
|
+
* // knowledgeBaseId: "STRING_VALUE",
|
|
369
|
+
* // instructions: "STRING_VALUE",
|
|
370
|
+
* // },
|
|
371
|
+
* // },
|
|
372
|
+
* // ],
|
|
273
373
|
* // id: "STRING_VALUE", // required
|
|
274
374
|
* // createdAt: "STRING_VALUE", // required
|
|
275
375
|
* // updatedAt: "STRING_VALUE",
|
|
@@ -4,24 +4,24 @@ 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 ForbiddenException extends __BaseException {
|
|
8
|
+
readonly name: "ForbiddenException";
|
|
9
9
|
readonly $fault: "client";
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
|
-
constructor(opts: __ExceptionOptionType<
|
|
13
|
+
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
export declare class
|
|
19
|
-
readonly name: "
|
|
18
|
+
export declare class ValidationException extends __BaseException {
|
|
19
|
+
readonly name: "ValidationException";
|
|
20
20
|
readonly $fault: "client";
|
|
21
21
|
/**
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
|
-
constructor(opts: __ExceptionOptionType<
|
|
24
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* @public
|
|
@@ -87,6 +87,132 @@ export interface CompleteWebsocketEvent {
|
|
|
87
87
|
type: string;
|
|
88
88
|
event: CompleteEvent;
|
|
89
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export interface VoiceBotKnowledgeBase {
|
|
94
|
+
knowledgeBaseId?: string | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Additional instructions for when the bot should use this knowledge base.
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
instructions?: string | undefined;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export interface VoiceBotToolVariableAutoHandler {
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
export interface VoiceBotToolVariableGuidedHandler {
|
|
110
|
+
description: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
export interface VoiceBotToolVariablePredefinedHandler {
|
|
116
|
+
description: string;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
export type VoiceBotToolVariableHandler = VoiceBotToolVariableHandler.AutoMember | VoiceBotToolVariableHandler.GuidedMember | VoiceBotToolVariableHandler.PredefinedMember | VoiceBotToolVariableHandler.$UnknownMember;
|
|
122
|
+
/**
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
export declare namespace VoiceBotToolVariableHandler {
|
|
126
|
+
interface AutoMember {
|
|
127
|
+
auto: VoiceBotToolVariableAutoHandler;
|
|
128
|
+
guided?: never;
|
|
129
|
+
predefined?: never;
|
|
130
|
+
$unknown?: never;
|
|
131
|
+
}
|
|
132
|
+
interface GuidedMember {
|
|
133
|
+
auto?: never;
|
|
134
|
+
guided: VoiceBotToolVariableGuidedHandler;
|
|
135
|
+
predefined?: never;
|
|
136
|
+
$unknown?: never;
|
|
137
|
+
}
|
|
138
|
+
interface PredefinedMember {
|
|
139
|
+
auto?: never;
|
|
140
|
+
guided?: never;
|
|
141
|
+
predefined: VoiceBotToolVariablePredefinedHandler;
|
|
142
|
+
$unknown?: never;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
interface $UnknownMember {
|
|
148
|
+
auto?: never;
|
|
149
|
+
guided?: never;
|
|
150
|
+
predefined?: never;
|
|
151
|
+
$unknown: [string, any];
|
|
152
|
+
}
|
|
153
|
+
interface Visitor<T> {
|
|
154
|
+
auto: (value: VoiceBotToolVariableAutoHandler) => T;
|
|
155
|
+
guided: (value: VoiceBotToolVariableGuidedHandler) => T;
|
|
156
|
+
predefined: (value: VoiceBotToolVariablePredefinedHandler) => T;
|
|
157
|
+
_: (name: string, value: any) => T;
|
|
158
|
+
}
|
|
159
|
+
const visit: <T>(value: VoiceBotToolVariableHandler, visitor: Visitor<T>) => T;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
export interface VoiceBotToolVariable {
|
|
165
|
+
/**
|
|
166
|
+
* Name of the tool variable, e.g.: 'myvar'
|
|
167
|
+
* @public
|
|
168
|
+
*/
|
|
169
|
+
name: string;
|
|
170
|
+
handler?: VoiceBotToolVariableHandler | undefined;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* @public
|
|
174
|
+
*/
|
|
175
|
+
export interface VoiceBotCapabilityTool {
|
|
176
|
+
/**
|
|
177
|
+
* Unique identifier of the tool using nanoid format
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
180
|
+
id: string;
|
|
181
|
+
variables?: (VoiceBotToolVariable)[] | undefined;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @public
|
|
185
|
+
*/
|
|
186
|
+
export type VoiceBotCapability = VoiceBotCapability.KbMember | VoiceBotCapability.ToolMember | VoiceBotCapability.$UnknownMember;
|
|
187
|
+
/**
|
|
188
|
+
* @public
|
|
189
|
+
*/
|
|
190
|
+
export declare namespace VoiceBotCapability {
|
|
191
|
+
interface ToolMember {
|
|
192
|
+
tool: VoiceBotCapabilityTool;
|
|
193
|
+
kb?: never;
|
|
194
|
+
$unknown?: never;
|
|
195
|
+
}
|
|
196
|
+
interface KbMember {
|
|
197
|
+
tool?: never;
|
|
198
|
+
kb: VoiceBotKnowledgeBase;
|
|
199
|
+
$unknown?: never;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
interface $UnknownMember {
|
|
205
|
+
tool?: never;
|
|
206
|
+
kb?: never;
|
|
207
|
+
$unknown: [string, any];
|
|
208
|
+
}
|
|
209
|
+
interface Visitor<T> {
|
|
210
|
+
tool: (value: VoiceBotCapabilityTool) => T;
|
|
211
|
+
kb: (value: VoiceBotKnowledgeBase) => T;
|
|
212
|
+
_: (name: string, value: any) => T;
|
|
213
|
+
}
|
|
214
|
+
const visit: <T>(value: VoiceBotCapability, visitor: Visitor<T>) => T;
|
|
215
|
+
}
|
|
90
216
|
/**
|
|
91
217
|
* @public
|
|
92
218
|
*/
|
|
@@ -400,6 +526,7 @@ export interface VoiceBotLlmEndpoint {
|
|
|
400
526
|
* @public
|
|
401
527
|
*/
|
|
402
528
|
tools?: (VoiceBotTool)[] | undefined;
|
|
529
|
+
capabilities?: (VoiceBotCapability)[] | undefined;
|
|
403
530
|
}
|
|
404
531
|
/**
|
|
405
532
|
* @public
|
|
@@ -593,6 +720,7 @@ export interface CreateVoiceBotInput {
|
|
|
593
720
|
* @public
|
|
594
721
|
*/
|
|
595
722
|
endpoint: VoiceBotEndpoint;
|
|
723
|
+
capabilities?: (VoiceBotCapability)[] | undefined;
|
|
596
724
|
company?: string | undefined;
|
|
597
725
|
}
|
|
598
726
|
/**
|
|
@@ -611,6 +739,7 @@ export interface VoiceBot {
|
|
|
611
739
|
* @public
|
|
612
740
|
*/
|
|
613
741
|
endpoint: VoiceBotEndpoint;
|
|
742
|
+
capabilities?: (VoiceBotCapability)[] | undefined;
|
|
614
743
|
id: string;
|
|
615
744
|
createdAt: string;
|
|
616
745
|
updatedAt?: string | undefined;
|
|
@@ -1785,6 +1914,11 @@ export interface GetVoiceBotOutput {
|
|
|
1785
1914
|
*/
|
|
1786
1915
|
export interface ListTracesInput {
|
|
1787
1916
|
company?: string | undefined;
|
|
1917
|
+
/**
|
|
1918
|
+
* Optional search query to filter traces by caller name, bot name, or session ID.
|
|
1919
|
+
* @public
|
|
1920
|
+
*/
|
|
1921
|
+
search?: string | undefined;
|
|
1788
1922
|
}
|
|
1789
1923
|
/**
|
|
1790
1924
|
* @public
|
|
@@ -1920,6 +2054,7 @@ export interface UpdateVoiceBotInput {
|
|
|
1920
2054
|
* @public
|
|
1921
2055
|
*/
|
|
1922
2056
|
endpoint: VoiceBotEndpoint;
|
|
2057
|
+
capabilities?: (VoiceBotCapability)[] | undefined;
|
|
1923
2058
|
company?: string | undefined;
|
|
1924
2059
|
botId: string;
|
|
1925
2060
|
}
|
|
@@ -15,8 +15,13 @@ export declare const getRuntimeConfig: (config: VoiceBotsClientConfig) => {
|
|
|
15
15
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
16
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
17
17
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
|
-
apiVersion: string;
|
|
19
18
|
cacheMiddleware?: boolean | undefined;
|
|
19
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
20
|
+
protocolSettings?: {
|
|
21
|
+
[setting: string]: unknown;
|
|
22
|
+
defaultNamespace?: string | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
apiVersion: string;
|
|
20
25
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
26
|
base64Decoder: import("@smithy/types").Decoder;
|
|
22
27
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -16,8 +16,13 @@ export declare const getRuntimeConfig: (config: VoiceBotsClientConfig) => {
|
|
|
16
16
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
17
17
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
18
18
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
19
|
-
apiVersion: string;
|
|
20
19
|
cacheMiddleware?: boolean | undefined;
|
|
20
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
21
|
+
protocolSettings?: {
|
|
22
|
+
[setting: string]: unknown;
|
|
23
|
+
defaultNamespace?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
apiVersion: string;
|
|
21
26
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
27
|
base64Decoder: import("@smithy/types").Decoder;
|
|
23
28
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -8,8 +8,13 @@ export declare const getRuntimeConfig: (config: VoiceBotsClientConfig) => {
|
|
|
8
8
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
9
9
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
10
10
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
11
|
-
apiVersion: string;
|
|
12
11
|
cacheMiddleware?: boolean | undefined;
|
|
12
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
13
|
+
protocolSettings?: {
|
|
14
|
+
[setting: string]: unknown;
|
|
15
|
+
defaultNamespace?: string | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
apiVersion: string;
|
|
13
18
|
urlParser: import("@smithy/types").UrlParser;
|
|
14
19
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
15
20
|
streamCollector: import("@smithy/types").StreamCollector;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-voicebots-client",
|
|
3
3
|
"description": "@wildix/wim-voicebots-client client",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.2",
|
|
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",
|