@wildix/wim-voicebots-client 1.1.1 → 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 +23 -1
- package/dist-cjs/protocols/Aws_restJson1.js +5 -0
- package/dist-es/models/models_0.js +22 -0
- package/dist-es/protocols/Aws_restJson1.js +5 -0
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +100 -0
- package/dist-types/commands/GetVoiceBotCommand.d.ts +50 -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 +130 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
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.VoiceBotEventType = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
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
5
|
class ForbiddenException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -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': [],
|
|
@@ -232,6 +233,7 @@ const se_UpdateVoiceBotCommand = async (input, context) => {
|
|
|
232
233
|
});
|
|
233
234
|
let body;
|
|
234
235
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
236
|
+
'capabilities': _ => (0, smithy_client_1._json)(_),
|
|
235
237
|
'endpoint': _ => se_VoiceBotEndpoint(_, context),
|
|
236
238
|
'message': [],
|
|
237
239
|
'name': [],
|
|
@@ -605,6 +607,7 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
|
|
|
605
607
|
};
|
|
606
608
|
const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
607
609
|
return (0, smithy_client_1.take)(input, {
|
|
610
|
+
'capabilities': smithy_client_1._json,
|
|
608
611
|
'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
|
|
609
612
|
'metadata': smithy_client_1._json,
|
|
610
613
|
'model': [],
|
|
@@ -891,6 +894,7 @@ const de_TraceTimings = (output, context) => {
|
|
|
891
894
|
};
|
|
892
895
|
const de_VoiceBot = (output, context) => {
|
|
893
896
|
return (0, smithy_client_1.take)(output, {
|
|
897
|
+
'capabilities': smithy_client_1._json,
|
|
894
898
|
'createdAt': smithy_client_1.expectString,
|
|
895
899
|
'endpoint': (_) => de_VoiceBotEndpoint((0, core_1.awsExpectUnion)(_), context),
|
|
896
900
|
'id': smithy_client_1.expectString,
|
|
@@ -971,6 +975,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
|
|
|
971
975
|
};
|
|
972
976
|
const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
973
977
|
return (0, smithy_client_1.take)(output, {
|
|
978
|
+
'capabilities': smithy_client_1._json,
|
|
974
979
|
'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
|
|
975
980
|
'metadata': smithy_client_1._json,
|
|
976
981
|
'model': smithy_client_1.expectString,
|
|
@@ -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': [],
|
|
@@ -216,6 +217,7 @@ export const se_UpdateVoiceBotCommand = async (input, context) => {
|
|
|
216
217
|
});
|
|
217
218
|
let body;
|
|
218
219
|
body = JSON.stringify(take(input, {
|
|
220
|
+
'capabilities': _ => _json(_),
|
|
219
221
|
'endpoint': _ => se_VoiceBotEndpoint(_, context),
|
|
220
222
|
'message': [],
|
|
221
223
|
'name': [],
|
|
@@ -574,6 +576,7 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
|
|
|
574
576
|
};
|
|
575
577
|
const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
576
578
|
return take(input, {
|
|
579
|
+
'capabilities': _json,
|
|
577
580
|
'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
|
|
578
581
|
'metadata': _json,
|
|
579
582
|
'model': [],
|
|
@@ -860,6 +863,7 @@ const de_TraceTimings = (output, context) => {
|
|
|
860
863
|
};
|
|
861
864
|
const de_VoiceBot = (output, context) => {
|
|
862
865
|
return take(output, {
|
|
866
|
+
'capabilities': _json,
|
|
863
867
|
'createdAt': __expectString,
|
|
864
868
|
'endpoint': (_) => de_VoiceBotEndpoint(__expectUnion(_), context),
|
|
865
869
|
'id': __expectString,
|
|
@@ -940,6 +944,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
|
|
|
940
944
|
};
|
|
941
945
|
const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
942
946
|
return take(output, {
|
|
947
|
+
'capabilities': _json,
|
|
943
948
|
'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
|
|
944
949
|
'metadata': _json,
|
|
945
950
|
'model': __expectString,
|
|
@@ -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",
|
|
@@ -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",
|
|
@@ -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;
|
|
@@ -1925,6 +2054,7 @@ export interface UpdateVoiceBotInput {
|
|
|
1925
2054
|
* @public
|
|
1926
2055
|
*/
|
|
1927
2056
|
endpoint: VoiceBotEndpoint;
|
|
2057
|
+
capabilities?: (VoiceBotCapability)[] | undefined;
|
|
1928
2058
|
company?: string | undefined;
|
|
1929
2059
|
botId: string;
|
|
1930
2060
|
}
|
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",
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
"react-native": {
|
|
81
81
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
}
|