@wildix/wim-voicebots-client 1.1.3 → 1.1.5
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 +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +4 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +4 -0
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +28 -1
- package/dist-types/commands/GetVoiceBotCommand.d.ts +14 -1
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +14 -1
- package/dist-types/commands/UpdateVoiceBotCommand.d.ts +28 -1
- package/dist-types/models/models_0.d.ts +60 -5
- package/package.json +1 -1
|
@@ -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.VoiceBotCapability = exports.VoiceBotToolVariableHandler = 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.VoiceBotCapabilityToolPipelineType = 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,12 @@ exports.VoiceBotEventType = {
|
|
|
38
38
|
STARTED: "started",
|
|
39
39
|
TRANSCRIPTION: "transcription",
|
|
40
40
|
};
|
|
41
|
+
exports.VoiceBotCapabilityToolPipelineType = {
|
|
42
|
+
ASYNC_REQUEST: "async_request",
|
|
43
|
+
ASYNC_REQUEST_GUIDED: "async_request_guided",
|
|
44
|
+
BLOCKING_REQUEST: "blocking_request",
|
|
45
|
+
BLOCKING_REQUEST_GUIDED: "blocking_request_guided",
|
|
46
|
+
};
|
|
41
47
|
var VoiceBotToolVariableHandler;
|
|
42
48
|
(function (VoiceBotToolVariableHandler) {
|
|
43
49
|
VoiceBotToolVariableHandler.visit = (value, visitor) => {
|
|
@@ -18,6 +18,7 @@ const se_CreateVoiceBotCommand = async (input, context) => {
|
|
|
18
18
|
let body;
|
|
19
19
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
20
|
'capabilities': _ => (0, smithy_client_1._json)(_),
|
|
21
|
+
'category': [],
|
|
21
22
|
'endpoint': _ => se_VoiceBotEndpoint(_, context),
|
|
22
23
|
'message': [],
|
|
23
24
|
'name': [],
|
|
@@ -234,6 +235,7 @@ const se_UpdateVoiceBotCommand = async (input, context) => {
|
|
|
234
235
|
let body;
|
|
235
236
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
236
237
|
'capabilities': _ => (0, smithy_client_1._json)(_),
|
|
238
|
+
'category': [],
|
|
237
239
|
'endpoint': _ => se_VoiceBotEndpoint(_, context),
|
|
238
240
|
'message': [],
|
|
239
241
|
'name': [],
|
|
@@ -613,6 +615,7 @@ const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
|
613
615
|
'model': [],
|
|
614
616
|
'prompt': [],
|
|
615
617
|
'tools': _ => se_VoiceBotToolsList(_, context),
|
|
618
|
+
'variables': smithy_client_1._json,
|
|
616
619
|
});
|
|
617
620
|
};
|
|
618
621
|
const se_VoiceBotTool = (input, context) => {
|
|
@@ -982,6 +985,7 @@ const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
|
982
985
|
'model': smithy_client_1.expectString,
|
|
983
986
|
'prompt': smithy_client_1.expectString,
|
|
984
987
|
'tools': (_) => de_VoiceBotToolsList(_, context),
|
|
988
|
+
'variables': smithy_client_1._json,
|
|
985
989
|
});
|
|
986
990
|
};
|
|
987
991
|
const de_VoiceBotsList = (output, context) => {
|
|
@@ -33,6 +33,12 @@ export const VoiceBotEventType = {
|
|
|
33
33
|
STARTED: "started",
|
|
34
34
|
TRANSCRIPTION: "transcription",
|
|
35
35
|
};
|
|
36
|
+
export const VoiceBotCapabilityToolPipelineType = {
|
|
37
|
+
ASYNC_REQUEST: "async_request",
|
|
38
|
+
ASYNC_REQUEST_GUIDED: "async_request_guided",
|
|
39
|
+
BLOCKING_REQUEST: "blocking_request",
|
|
40
|
+
BLOCKING_REQUEST_GUIDED: "blocking_request_guided",
|
|
41
|
+
};
|
|
36
42
|
export var VoiceBotToolVariableHandler;
|
|
37
43
|
(function (VoiceBotToolVariableHandler) {
|
|
38
44
|
VoiceBotToolVariableHandler.visit = (value, visitor) => {
|
|
@@ -15,6 +15,7 @@ export const se_CreateVoiceBotCommand = async (input, context) => {
|
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify(take(input, {
|
|
17
17
|
'capabilities': _ => _json(_),
|
|
18
|
+
'category': [],
|
|
18
19
|
'endpoint': _ => se_VoiceBotEndpoint(_, context),
|
|
19
20
|
'message': [],
|
|
20
21
|
'name': [],
|
|
@@ -218,6 +219,7 @@ export const se_UpdateVoiceBotCommand = async (input, context) => {
|
|
|
218
219
|
let body;
|
|
219
220
|
body = JSON.stringify(take(input, {
|
|
220
221
|
'capabilities': _ => _json(_),
|
|
222
|
+
'category': [],
|
|
221
223
|
'endpoint': _ => se_VoiceBotEndpoint(_, context),
|
|
222
224
|
'message': [],
|
|
223
225
|
'name': [],
|
|
@@ -582,6 +584,7 @@ const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
|
582
584
|
'model': [],
|
|
583
585
|
'prompt': [],
|
|
584
586
|
'tools': _ => se_VoiceBotToolsList(_, context),
|
|
587
|
+
'variables': _json,
|
|
585
588
|
});
|
|
586
589
|
};
|
|
587
590
|
const se_VoiceBotTool = (input, context) => {
|
|
@@ -951,6 +954,7 @@ const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
|
951
954
|
'model': __expectString,
|
|
952
955
|
'prompt': __expectString,
|
|
953
956
|
'tools': (_) => de_VoiceBotToolsList(_, context),
|
|
957
|
+
'variables': _json,
|
|
954
958
|
});
|
|
955
959
|
};
|
|
956
960
|
const de_VoiceBotsList = (output, context) => {
|
|
@@ -36,6 +36,7 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
36
36
|
* const client = new VoiceBotsClient(config);
|
|
37
37
|
* const input = { // CreateVoiceBotInput
|
|
38
38
|
* name: "STRING_VALUE", // required
|
|
39
|
+
* category: "STRING_VALUE",
|
|
39
40
|
* message: "STRING_VALUE",
|
|
40
41
|
* pipeline: { // VoiceBotPipelineSettings
|
|
41
42
|
* interuptionsEnabled: true || false,
|
|
@@ -147,6 +148,10 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
147
148
|
* },
|
|
148
149
|
* ],
|
|
149
150
|
* startMessage: "STRING_VALUE",
|
|
151
|
+
* pipeline: { // VoiceBotCapabilityToolPipeline
|
|
152
|
+
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
153
|
+
* instructions: "STRING_VALUE",
|
|
154
|
+
* },
|
|
150
155
|
* },
|
|
151
156
|
* kb: { // VoiceBotKnowledgeBase
|
|
152
157
|
* knowledgeBaseId: "STRING_VALUE",
|
|
@@ -154,6 +159,11 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
154
159
|
* },
|
|
155
160
|
* },
|
|
156
161
|
* ],
|
|
162
|
+
* variables: [ // VoiceBotVariablesList
|
|
163
|
+
* { // VoiceBotVariable
|
|
164
|
+
* name: "STRING_VALUE", // required
|
|
165
|
+
* },
|
|
166
|
+
* ],
|
|
157
167
|
* },
|
|
158
168
|
* dialogflowCx: { // BotDialogflowCxEndpoint
|
|
159
169
|
* credentials: "DOCUMENT_VALUE", // required
|
|
@@ -194,6 +204,10 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
194
204
|
* },
|
|
195
205
|
* ],
|
|
196
206
|
* startMessage: "STRING_VALUE",
|
|
207
|
+
* pipeline: {
|
|
208
|
+
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
209
|
+
* instructions: "STRING_VALUE",
|
|
210
|
+
* },
|
|
197
211
|
* },
|
|
198
212
|
* kb: {
|
|
199
213
|
* knowledgeBaseId: "STRING_VALUE",
|
|
@@ -208,6 +222,7 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
208
222
|
* // { // CreateVoiceBotOutput
|
|
209
223
|
* // bot: { // VoiceBot
|
|
210
224
|
* // name: "STRING_VALUE", // required
|
|
225
|
+
* // category: "STRING_VALUE",
|
|
211
226
|
* // message: "STRING_VALUE",
|
|
212
227
|
* // pipeline: { // VoiceBotPipelineSettings
|
|
213
228
|
* // interuptionsEnabled: true || false,
|
|
@@ -319,6 +334,10 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
319
334
|
* // },
|
|
320
335
|
* // ],
|
|
321
336
|
* // startMessage: "STRING_VALUE",
|
|
337
|
+
* // pipeline: { // VoiceBotCapabilityToolPipeline
|
|
338
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
339
|
+
* // instructions: "STRING_VALUE",
|
|
340
|
+
* // },
|
|
322
341
|
* // },
|
|
323
342
|
* // kb: { // VoiceBotKnowledgeBase
|
|
324
343
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -326,6 +345,11 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
326
345
|
* // },
|
|
327
346
|
* // },
|
|
328
347
|
* // ],
|
|
348
|
+
* // variables: [ // VoiceBotVariablesList
|
|
349
|
+
* // { // VoiceBotVariable
|
|
350
|
+
* // name: "STRING_VALUE", // required
|
|
351
|
+
* // },
|
|
352
|
+
* // ],
|
|
329
353
|
* // },
|
|
330
354
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
331
355
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
@@ -366,6 +390,10 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
366
390
|
* // },
|
|
367
391
|
* // ],
|
|
368
392
|
* // startMessage: "STRING_VALUE",
|
|
393
|
+
* // pipeline: {
|
|
394
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
395
|
+
* // instructions: "STRING_VALUE",
|
|
396
|
+
* // },
|
|
369
397
|
* // },
|
|
370
398
|
* // kb: {
|
|
371
399
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -374,7 +402,6 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
374
402
|
* // },
|
|
375
403
|
* // ],
|
|
376
404
|
* // id: "STRING_VALUE", // required
|
|
377
|
-
* // category: "STRING_VALUE",
|
|
378
405
|
* // createdAt: "STRING_VALUE", // required
|
|
379
406
|
* // updatedAt: "STRING_VALUE",
|
|
380
407
|
* // },
|
|
@@ -43,6 +43,7 @@ declare const GetVoiceBotCommand_base: {
|
|
|
43
43
|
* // { // GetVoiceBotOutput
|
|
44
44
|
* // bot: { // VoiceBot
|
|
45
45
|
* // name: "STRING_VALUE", // required
|
|
46
|
+
* // category: "STRING_VALUE",
|
|
46
47
|
* // message: "STRING_VALUE",
|
|
47
48
|
* // pipeline: { // VoiceBotPipelineSettings
|
|
48
49
|
* // interuptionsEnabled: true || false,
|
|
@@ -154,6 +155,10 @@ declare const GetVoiceBotCommand_base: {
|
|
|
154
155
|
* // },
|
|
155
156
|
* // ],
|
|
156
157
|
* // startMessage: "STRING_VALUE",
|
|
158
|
+
* // pipeline: { // VoiceBotCapabilityToolPipeline
|
|
159
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
160
|
+
* // instructions: "STRING_VALUE",
|
|
161
|
+
* // },
|
|
157
162
|
* // },
|
|
158
163
|
* // kb: { // VoiceBotKnowledgeBase
|
|
159
164
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -161,6 +166,11 @@ declare const GetVoiceBotCommand_base: {
|
|
|
161
166
|
* // },
|
|
162
167
|
* // },
|
|
163
168
|
* // ],
|
|
169
|
+
* // variables: [ // VoiceBotVariablesList
|
|
170
|
+
* // { // VoiceBotVariable
|
|
171
|
+
* // name: "STRING_VALUE", // required
|
|
172
|
+
* // },
|
|
173
|
+
* // ],
|
|
164
174
|
* // },
|
|
165
175
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
166
176
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
@@ -201,6 +211,10 @@ declare const GetVoiceBotCommand_base: {
|
|
|
201
211
|
* // },
|
|
202
212
|
* // ],
|
|
203
213
|
* // startMessage: "STRING_VALUE",
|
|
214
|
+
* // pipeline: {
|
|
215
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
216
|
+
* // instructions: "STRING_VALUE",
|
|
217
|
+
* // },
|
|
204
218
|
* // },
|
|
205
219
|
* // kb: {
|
|
206
220
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -209,7 +223,6 @@ declare const GetVoiceBotCommand_base: {
|
|
|
209
223
|
* // },
|
|
210
224
|
* // ],
|
|
211
225
|
* // id: "STRING_VALUE", // required
|
|
212
|
-
* // category: "STRING_VALUE",
|
|
213
226
|
* // createdAt: "STRING_VALUE", // required
|
|
214
227
|
* // updatedAt: "STRING_VALUE",
|
|
215
228
|
* // },
|
|
@@ -43,6 +43,7 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
43
43
|
* // bots: [ // VoiceBotsList // required
|
|
44
44
|
* // { // VoiceBot
|
|
45
45
|
* // name: "STRING_VALUE", // required
|
|
46
|
+
* // category: "STRING_VALUE",
|
|
46
47
|
* // message: "STRING_VALUE",
|
|
47
48
|
* // pipeline: { // VoiceBotPipelineSettings
|
|
48
49
|
* // interuptionsEnabled: true || false,
|
|
@@ -154,6 +155,10 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
154
155
|
* // },
|
|
155
156
|
* // ],
|
|
156
157
|
* // startMessage: "STRING_VALUE",
|
|
158
|
+
* // pipeline: { // VoiceBotCapabilityToolPipeline
|
|
159
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
160
|
+
* // instructions: "STRING_VALUE",
|
|
161
|
+
* // },
|
|
157
162
|
* // },
|
|
158
163
|
* // kb: { // VoiceBotKnowledgeBase
|
|
159
164
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -161,6 +166,11 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
161
166
|
* // },
|
|
162
167
|
* // },
|
|
163
168
|
* // ],
|
|
169
|
+
* // variables: [ // VoiceBotVariablesList
|
|
170
|
+
* // { // VoiceBotVariable
|
|
171
|
+
* // name: "STRING_VALUE", // required
|
|
172
|
+
* // },
|
|
173
|
+
* // ],
|
|
164
174
|
* // },
|
|
165
175
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
166
176
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
@@ -201,6 +211,10 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
201
211
|
* // },
|
|
202
212
|
* // ],
|
|
203
213
|
* // startMessage: "STRING_VALUE",
|
|
214
|
+
* // pipeline: {
|
|
215
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
216
|
+
* // instructions: "STRING_VALUE",
|
|
217
|
+
* // },
|
|
204
218
|
* // },
|
|
205
219
|
* // kb: {
|
|
206
220
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -209,7 +223,6 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
209
223
|
* // },
|
|
210
224
|
* // ],
|
|
211
225
|
* // id: "STRING_VALUE", // required
|
|
212
|
-
* // category: "STRING_VALUE",
|
|
213
226
|
* // createdAt: "STRING_VALUE", // required
|
|
214
227
|
* // updatedAt: "STRING_VALUE",
|
|
215
228
|
* // },
|
|
@@ -36,6 +36,7 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
36
36
|
* const client = new VoiceBotsClient(config);
|
|
37
37
|
* const input = { // UpdateVoiceBotInput
|
|
38
38
|
* name: "STRING_VALUE", // required
|
|
39
|
+
* category: "STRING_VALUE",
|
|
39
40
|
* message: "STRING_VALUE",
|
|
40
41
|
* pipeline: { // VoiceBotPipelineSettings
|
|
41
42
|
* interuptionsEnabled: true || false,
|
|
@@ -147,6 +148,10 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
147
148
|
* },
|
|
148
149
|
* ],
|
|
149
150
|
* startMessage: "STRING_VALUE",
|
|
151
|
+
* pipeline: { // VoiceBotCapabilityToolPipeline
|
|
152
|
+
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
153
|
+
* instructions: "STRING_VALUE",
|
|
154
|
+
* },
|
|
150
155
|
* },
|
|
151
156
|
* kb: { // VoiceBotKnowledgeBase
|
|
152
157
|
* knowledgeBaseId: "STRING_VALUE",
|
|
@@ -154,6 +159,11 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
154
159
|
* },
|
|
155
160
|
* },
|
|
156
161
|
* ],
|
|
162
|
+
* variables: [ // VoiceBotVariablesList
|
|
163
|
+
* { // VoiceBotVariable
|
|
164
|
+
* name: "STRING_VALUE", // required
|
|
165
|
+
* },
|
|
166
|
+
* ],
|
|
157
167
|
* },
|
|
158
168
|
* dialogflowCx: { // BotDialogflowCxEndpoint
|
|
159
169
|
* credentials: "DOCUMENT_VALUE", // required
|
|
@@ -194,6 +204,10 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
194
204
|
* },
|
|
195
205
|
* ],
|
|
196
206
|
* startMessage: "STRING_VALUE",
|
|
207
|
+
* pipeline: {
|
|
208
|
+
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
209
|
+
* instructions: "STRING_VALUE",
|
|
210
|
+
* },
|
|
197
211
|
* },
|
|
198
212
|
* kb: {
|
|
199
213
|
* knowledgeBaseId: "STRING_VALUE",
|
|
@@ -209,6 +223,7 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
209
223
|
* // { // UpdateVoiceBotOutput
|
|
210
224
|
* // bot: { // VoiceBot
|
|
211
225
|
* // name: "STRING_VALUE", // required
|
|
226
|
+
* // category: "STRING_VALUE",
|
|
212
227
|
* // message: "STRING_VALUE",
|
|
213
228
|
* // pipeline: { // VoiceBotPipelineSettings
|
|
214
229
|
* // interuptionsEnabled: true || false,
|
|
@@ -320,6 +335,10 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
320
335
|
* // },
|
|
321
336
|
* // ],
|
|
322
337
|
* // startMessage: "STRING_VALUE",
|
|
338
|
+
* // pipeline: { // VoiceBotCapabilityToolPipeline
|
|
339
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
340
|
+
* // instructions: "STRING_VALUE",
|
|
341
|
+
* // },
|
|
323
342
|
* // },
|
|
324
343
|
* // kb: { // VoiceBotKnowledgeBase
|
|
325
344
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -327,6 +346,11 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
327
346
|
* // },
|
|
328
347
|
* // },
|
|
329
348
|
* // ],
|
|
349
|
+
* // variables: [ // VoiceBotVariablesList
|
|
350
|
+
* // { // VoiceBotVariable
|
|
351
|
+
* // name: "STRING_VALUE", // required
|
|
352
|
+
* // },
|
|
353
|
+
* // ],
|
|
330
354
|
* // },
|
|
331
355
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
332
356
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
@@ -367,6 +391,10 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
367
391
|
* // },
|
|
368
392
|
* // ],
|
|
369
393
|
* // startMessage: "STRING_VALUE",
|
|
394
|
+
* // pipeline: {
|
|
395
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
396
|
+
* // instructions: "STRING_VALUE",
|
|
397
|
+
* // },
|
|
370
398
|
* // },
|
|
371
399
|
* // kb: {
|
|
372
400
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -375,7 +403,6 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
375
403
|
* // },
|
|
376
404
|
* // ],
|
|
377
405
|
* // id: "STRING_VALUE", // required
|
|
378
|
-
* // category: "STRING_VALUE",
|
|
379
406
|
* // createdAt: "STRING_VALUE", // required
|
|
380
407
|
* // updatedAt: "STRING_VALUE",
|
|
381
408
|
* // },
|
|
@@ -98,6 +98,35 @@ export interface VoiceBotKnowledgeBase {
|
|
|
98
98
|
*/
|
|
99
99
|
instructions?: string | undefined;
|
|
100
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* @public
|
|
103
|
+
* @enum
|
|
104
|
+
*/
|
|
105
|
+
export declare const VoiceBotCapabilityToolPipelineType: {
|
|
106
|
+
readonly ASYNC_REQUEST: "async_request";
|
|
107
|
+
readonly ASYNC_REQUEST_GUIDED: "async_request_guided";
|
|
108
|
+
readonly BLOCKING_REQUEST: "blocking_request";
|
|
109
|
+
readonly BLOCKING_REQUEST_GUIDED: "blocking_request_guided";
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
export type VoiceBotCapabilityToolPipelineType = typeof VoiceBotCapabilityToolPipelineType[keyof typeof VoiceBotCapabilityToolPipelineType];
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export interface VoiceBotCapabilityToolPipeline {
|
|
119
|
+
/**
|
|
120
|
+
* Pipeline type for tool execution. Determines whether to wait for response and how to handle the reply.
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
type?: VoiceBotCapabilityToolPipelineType | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* Instructions for generating a reply when using guided pipeline types. Use \{\{response\}\} to reference the tool response.
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
instructions?: string | undefined;
|
|
129
|
+
}
|
|
101
130
|
/**
|
|
102
131
|
* @public
|
|
103
132
|
*/
|
|
@@ -184,6 +213,11 @@ export interface VoiceBotCapabilityTool {
|
|
|
184
213
|
* @public
|
|
185
214
|
*/
|
|
186
215
|
startMessage?: string | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* Pipeline configuration for tool execution, similar to third-party function pipelines.
|
|
218
|
+
* @public
|
|
219
|
+
*/
|
|
220
|
+
pipeline?: VoiceBotCapabilityToolPipeline | undefined;
|
|
187
221
|
}
|
|
188
222
|
/**
|
|
189
223
|
* @public
|
|
@@ -506,6 +540,12 @@ export interface VoiceBotTool {
|
|
|
506
540
|
type: VoiceBotToolType;
|
|
507
541
|
function?: VoiceBotFunctionDefinition | undefined;
|
|
508
542
|
}
|
|
543
|
+
/**
|
|
544
|
+
* @public
|
|
545
|
+
*/
|
|
546
|
+
export interface VoiceBotVariable {
|
|
547
|
+
name: string;
|
|
548
|
+
}
|
|
509
549
|
/**
|
|
510
550
|
* @public
|
|
511
551
|
*/
|
|
@@ -532,6 +572,11 @@ export interface VoiceBotLlmEndpoint {
|
|
|
532
572
|
*/
|
|
533
573
|
tools?: (VoiceBotTool)[] | undefined;
|
|
534
574
|
capabilities?: (VoiceBotCapability)[] | undefined;
|
|
575
|
+
/**
|
|
576
|
+
* Variables such as dialplan variables that can be used in the bot.
|
|
577
|
+
* @public
|
|
578
|
+
*/
|
|
579
|
+
variables?: (VoiceBotVariable)[] | undefined;
|
|
535
580
|
}
|
|
536
581
|
/**
|
|
537
582
|
* @public
|
|
@@ -714,6 +759,11 @@ export interface VoiceBotPipelineSettings {
|
|
|
714
759
|
*/
|
|
715
760
|
export interface CreateVoiceBotInput {
|
|
716
761
|
name: string;
|
|
762
|
+
/**
|
|
763
|
+
* Category of the bot
|
|
764
|
+
* @public
|
|
765
|
+
*/
|
|
766
|
+
category?: string | undefined;
|
|
717
767
|
/**
|
|
718
768
|
* The initial message that will be played at the start of the session.
|
|
719
769
|
* @public
|
|
@@ -733,6 +783,11 @@ export interface CreateVoiceBotInput {
|
|
|
733
783
|
*/
|
|
734
784
|
export interface VoiceBot {
|
|
735
785
|
name: string;
|
|
786
|
+
/**
|
|
787
|
+
* Category of the bot
|
|
788
|
+
* @public
|
|
789
|
+
*/
|
|
790
|
+
category?: string | undefined;
|
|
736
791
|
/**
|
|
737
792
|
* The initial message that will be played at the start of the session.
|
|
738
793
|
* @public
|
|
@@ -746,11 +801,6 @@ export interface VoiceBot {
|
|
|
746
801
|
endpoint: VoiceBotEndpoint;
|
|
747
802
|
capabilities?: (VoiceBotCapability)[] | undefined;
|
|
748
803
|
id: string;
|
|
749
|
-
/**
|
|
750
|
-
* Category of the bot
|
|
751
|
-
* @public
|
|
752
|
-
*/
|
|
753
|
-
category?: string | undefined;
|
|
754
804
|
createdAt: string;
|
|
755
805
|
updatedAt?: string | undefined;
|
|
756
806
|
}
|
|
@@ -2053,6 +2103,11 @@ export interface SendTransferOutput {
|
|
|
2053
2103
|
*/
|
|
2054
2104
|
export interface UpdateVoiceBotInput {
|
|
2055
2105
|
name: string;
|
|
2106
|
+
/**
|
|
2107
|
+
* Category of the bot
|
|
2108
|
+
* @public
|
|
2109
|
+
*/
|
|
2110
|
+
category?: string | undefined;
|
|
2056
2111
|
/**
|
|
2057
2112
|
* The initial message that will be played at the start of the session.
|
|
2058
2113
|
* @public
|
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.5",
|
|
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",
|