@wildix/wim-voicebots-client 1.0.23 → 1.0.25
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 +9 -1
- package/dist-cjs/protocols/Aws_restJson1.js +6 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +6 -0
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +6 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +1 -0
- package/dist-types/commands/GetTraceCommand.d.ts +1 -0
- package/dist-types/commands/GetVoiceBotCommand.d.ts +3 -0
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +3 -0
- package/dist-types/commands/UpdateVoiceBotCommand.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +32 -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.ForbiddenException = exports.ValidationException = 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.VoiceBotModel = exports.VoiceBotEmbeddedToolType = exports.VoiceBotEventType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const VoiceBotsServiceException_1 = require("./VoiceBotsServiceException");
|
|
5
5
|
class ValidationException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
6
6
|
name = "ValidationException";
|
|
@@ -44,6 +44,14 @@ exports.VoiceBotEmbeddedToolType = {
|
|
|
44
44
|
TRANSFER: "TRANSFER",
|
|
45
45
|
WAIT: "WAIT",
|
|
46
46
|
};
|
|
47
|
+
exports.VoiceBotModel = {
|
|
48
|
+
DEFAULT: "default",
|
|
49
|
+
OPENAI_GPT_4O: "openai:gpt-4o",
|
|
50
|
+
OPENAI_GPT_4_1: "openai:gpt-4.1",
|
|
51
|
+
OPENAI_GPT_4_1_MINI: "openai:gpt-4.1-mini",
|
|
52
|
+
OPENAI_GPT_5: "openai:gpt-5",
|
|
53
|
+
OPENAI_GPT_5_MINI: "openai:gpt-5-mini",
|
|
54
|
+
};
|
|
47
55
|
var VoiceBotFunctionIntegrationWebhookAuthorization;
|
|
48
56
|
(function (VoiceBotFunctionIntegrationWebhookAuthorization) {
|
|
49
57
|
VoiceBotFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
|
|
@@ -597,12 +597,15 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
|
|
|
597
597
|
'headers': smithy_client_1._json,
|
|
598
598
|
'method': [],
|
|
599
599
|
'parameters': _ => se_Document(_, context),
|
|
600
|
+
'startMessage': [],
|
|
601
|
+
'timeout': [],
|
|
600
602
|
'url': [],
|
|
601
603
|
});
|
|
602
604
|
};
|
|
603
605
|
const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
604
606
|
return (0, smithy_client_1.take)(input, {
|
|
605
607
|
'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
|
|
608
|
+
'model': [],
|
|
606
609
|
'prompt': [],
|
|
607
610
|
'tools': _ => se_VoiceBotToolsList(_, context),
|
|
608
611
|
});
|
|
@@ -959,12 +962,15 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
|
|
|
959
962
|
'headers': smithy_client_1._json,
|
|
960
963
|
'method': smithy_client_1.expectString,
|
|
961
964
|
'parameters': (_) => de_Document(_, context),
|
|
965
|
+
'startMessage': smithy_client_1.expectString,
|
|
966
|
+
'timeout': smithy_client_1.expectInt32,
|
|
962
967
|
'url': smithy_client_1.expectString,
|
|
963
968
|
});
|
|
964
969
|
};
|
|
965
970
|
const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
966
971
|
return (0, smithy_client_1.take)(output, {
|
|
967
972
|
'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
|
|
973
|
+
'model': smithy_client_1.expectString,
|
|
968
974
|
'prompt': smithy_client_1.expectString,
|
|
969
975
|
'tools': (_) => de_VoiceBotToolsList(_, context),
|
|
970
976
|
});
|
|
@@ -39,6 +39,14 @@ export const VoiceBotEmbeddedToolType = {
|
|
|
39
39
|
TRANSFER: "TRANSFER",
|
|
40
40
|
WAIT: "WAIT",
|
|
41
41
|
};
|
|
42
|
+
export const VoiceBotModel = {
|
|
43
|
+
DEFAULT: "default",
|
|
44
|
+
OPENAI_GPT_4O: "openai:gpt-4o",
|
|
45
|
+
OPENAI_GPT_4_1: "openai:gpt-4.1",
|
|
46
|
+
OPENAI_GPT_4_1_MINI: "openai:gpt-4.1-mini",
|
|
47
|
+
OPENAI_GPT_5: "openai:gpt-5",
|
|
48
|
+
OPENAI_GPT_5_MINI: "openai:gpt-5-mini",
|
|
49
|
+
};
|
|
42
50
|
export var VoiceBotFunctionIntegrationWebhookAuthorization;
|
|
43
51
|
(function (VoiceBotFunctionIntegrationWebhookAuthorization) {
|
|
44
52
|
VoiceBotFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
|
|
@@ -566,12 +566,15 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
|
|
|
566
566
|
'headers': _json,
|
|
567
567
|
'method': [],
|
|
568
568
|
'parameters': _ => se_Document(_, context),
|
|
569
|
+
'startMessage': [],
|
|
570
|
+
'timeout': [],
|
|
569
571
|
'url': [],
|
|
570
572
|
});
|
|
571
573
|
};
|
|
572
574
|
const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
573
575
|
return take(input, {
|
|
574
576
|
'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
|
|
577
|
+
'model': [],
|
|
575
578
|
'prompt': [],
|
|
576
579
|
'tools': _ => se_VoiceBotToolsList(_, context),
|
|
577
580
|
});
|
|
@@ -928,12 +931,15 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
|
|
|
928
931
|
'headers': _json,
|
|
929
932
|
'method': __expectString,
|
|
930
933
|
'parameters': (_) => de_Document(_, context),
|
|
934
|
+
'startMessage': __expectString,
|
|
935
|
+
'timeout': __expectInt32,
|
|
931
936
|
'url': __expectString,
|
|
932
937
|
});
|
|
933
938
|
};
|
|
934
939
|
const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
935
940
|
return take(output, {
|
|
936
941
|
'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
|
|
942
|
+
'model': __expectString,
|
|
937
943
|
'prompt': __expectString,
|
|
938
944
|
'tools': (_) => de_VoiceBotToolsList(_, context),
|
|
939
945
|
});
|
|
@@ -62,6 +62,7 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
62
62
|
* endpoint: { // VoiceBotEndpoint Union: only one key present
|
|
63
63
|
* llm: { // VoiceBotLlmEndpoint
|
|
64
64
|
* prompt: "STRING_VALUE", // required
|
|
65
|
+
* model: "default" || "openai:gpt-5" || "openai:gpt-5-mini" || "openai:gpt-4.1" || "openai:gpt-4.1-mini" || "openai:gpt-4o",
|
|
65
66
|
* embeddedTools: [ // VoiceBotEmbeddedToolsList
|
|
66
67
|
* { // VoiceBotEmbeddedTool
|
|
67
68
|
* type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
@@ -102,6 +103,8 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
102
103
|
* value: "STRING_VALUE", // required
|
|
103
104
|
* },
|
|
104
105
|
* ],
|
|
106
|
+
* timeout: Number("int"),
|
|
107
|
+
* startMessage: "STRING_VALUE",
|
|
105
108
|
* parameters: "DOCUMENT_VALUE",
|
|
106
109
|
* },
|
|
107
110
|
* },
|
|
@@ -161,6 +164,7 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
161
164
|
* // endpoint: { // VoiceBotEndpoint Union: only one key present
|
|
162
165
|
* // llm: { // VoiceBotLlmEndpoint
|
|
163
166
|
* // prompt: "STRING_VALUE", // required
|
|
167
|
+
* // model: "default" || "openai:gpt-5" || "openai:gpt-5-mini" || "openai:gpt-4.1" || "openai:gpt-4.1-mini" || "openai:gpt-4o",
|
|
164
168
|
* // embeddedTools: [ // VoiceBotEmbeddedToolsList
|
|
165
169
|
* // { // VoiceBotEmbeddedTool
|
|
166
170
|
* // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
@@ -201,6 +205,8 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
201
205
|
* // value: "STRING_VALUE", // required
|
|
202
206
|
* // },
|
|
203
207
|
* // ],
|
|
208
|
+
* // timeout: Number("int"),
|
|
209
|
+
* // startMessage: "STRING_VALUE",
|
|
204
210
|
* // parameters: "DOCUMENT_VALUE",
|
|
205
211
|
* // },
|
|
206
212
|
* // },
|
|
@@ -69,6 +69,7 @@ declare const GetVoiceBotCommand_base: {
|
|
|
69
69
|
* // endpoint: { // VoiceBotEndpoint Union: only one key present
|
|
70
70
|
* // llm: { // VoiceBotLlmEndpoint
|
|
71
71
|
* // prompt: "STRING_VALUE", // required
|
|
72
|
+
* // model: "default" || "openai:gpt-5" || "openai:gpt-5-mini" || "openai:gpt-4.1" || "openai:gpt-4.1-mini" || "openai:gpt-4o",
|
|
72
73
|
* // embeddedTools: [ // VoiceBotEmbeddedToolsList
|
|
73
74
|
* // { // VoiceBotEmbeddedTool
|
|
74
75
|
* // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
@@ -109,6 +110,8 @@ declare const GetVoiceBotCommand_base: {
|
|
|
109
110
|
* // value: "STRING_VALUE", // required
|
|
110
111
|
* // },
|
|
111
112
|
* // ],
|
|
113
|
+
* // timeout: Number("int"),
|
|
114
|
+
* // startMessage: "STRING_VALUE",
|
|
112
115
|
* // parameters: "DOCUMENT_VALUE",
|
|
113
116
|
* // },
|
|
114
117
|
* // },
|
|
@@ -69,6 +69,7 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
69
69
|
* // endpoint: { // VoiceBotEndpoint Union: only one key present
|
|
70
70
|
* // llm: { // VoiceBotLlmEndpoint
|
|
71
71
|
* // prompt: "STRING_VALUE", // required
|
|
72
|
+
* // model: "default" || "openai:gpt-5" || "openai:gpt-5-mini" || "openai:gpt-4.1" || "openai:gpt-4.1-mini" || "openai:gpt-4o",
|
|
72
73
|
* // embeddedTools: [ // VoiceBotEmbeddedToolsList
|
|
73
74
|
* // { // VoiceBotEmbeddedTool
|
|
74
75
|
* // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
@@ -109,6 +110,8 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
109
110
|
* // value: "STRING_VALUE", // required
|
|
110
111
|
* // },
|
|
111
112
|
* // ],
|
|
113
|
+
* // timeout: Number("int"),
|
|
114
|
+
* // startMessage: "STRING_VALUE",
|
|
112
115
|
* // parameters: "DOCUMENT_VALUE",
|
|
113
116
|
* // },
|
|
114
117
|
* // },
|
|
@@ -62,6 +62,7 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
62
62
|
* endpoint: { // VoiceBotEndpoint Union: only one key present
|
|
63
63
|
* llm: { // VoiceBotLlmEndpoint
|
|
64
64
|
* prompt: "STRING_VALUE", // required
|
|
65
|
+
* model: "default" || "openai:gpt-5" || "openai:gpt-5-mini" || "openai:gpt-4.1" || "openai:gpt-4.1-mini" || "openai:gpt-4o",
|
|
65
66
|
* embeddedTools: [ // VoiceBotEmbeddedToolsList
|
|
66
67
|
* { // VoiceBotEmbeddedTool
|
|
67
68
|
* type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
@@ -102,6 +103,8 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
102
103
|
* value: "STRING_VALUE", // required
|
|
103
104
|
* },
|
|
104
105
|
* ],
|
|
106
|
+
* timeout: Number("int"),
|
|
107
|
+
* startMessage: "STRING_VALUE",
|
|
105
108
|
* parameters: "DOCUMENT_VALUE",
|
|
106
109
|
* },
|
|
107
110
|
* },
|
|
@@ -162,6 +165,7 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
162
165
|
* // endpoint: { // VoiceBotEndpoint Union: only one key present
|
|
163
166
|
* // llm: { // VoiceBotLlmEndpoint
|
|
164
167
|
* // prompt: "STRING_VALUE", // required
|
|
168
|
+
* // model: "default" || "openai:gpt-5" || "openai:gpt-5-mini" || "openai:gpt-4.1" || "openai:gpt-4.1-mini" || "openai:gpt-4o",
|
|
165
169
|
* // embeddedTools: [ // VoiceBotEmbeddedToolsList
|
|
166
170
|
* // { // VoiceBotEmbeddedTool
|
|
167
171
|
* // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
@@ -202,6 +206,8 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
202
206
|
* // value: "STRING_VALUE", // required
|
|
203
207
|
* // },
|
|
204
208
|
* // ],
|
|
209
|
+
* // timeout: Number("int"),
|
|
210
|
+
* // startMessage: "STRING_VALUE",
|
|
205
211
|
* // parameters: "DOCUMENT_VALUE",
|
|
206
212
|
* // },
|
|
207
213
|
* // },
|
|
@@ -138,6 +138,22 @@ export interface VoiceBotEmbeddedTool {
|
|
|
138
138
|
*/
|
|
139
139
|
parameters?: __DocumentType | undefined;
|
|
140
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* @public
|
|
143
|
+
* @enum
|
|
144
|
+
*/
|
|
145
|
+
export declare const VoiceBotModel: {
|
|
146
|
+
readonly DEFAULT: "default";
|
|
147
|
+
readonly OPENAI_GPT_4O: "openai:gpt-4o";
|
|
148
|
+
readonly OPENAI_GPT_4_1: "openai:gpt-4.1";
|
|
149
|
+
readonly OPENAI_GPT_4_1_MINI: "openai:gpt-4.1-mini";
|
|
150
|
+
readonly OPENAI_GPT_5: "openai:gpt-5";
|
|
151
|
+
readonly OPENAI_GPT_5_MINI: "openai:gpt-5-mini";
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
156
|
+
export type VoiceBotModel = typeof VoiceBotModel[keyof typeof VoiceBotModel];
|
|
141
157
|
/**
|
|
142
158
|
* @public
|
|
143
159
|
*/
|
|
@@ -234,6 +250,16 @@ export interface VoiceBotFunctionIntegrationWebhook {
|
|
|
234
250
|
async?: boolean | undefined;
|
|
235
251
|
authorization?: VoiceBotFunctionIntegrationWebhookAuthorization | undefined;
|
|
236
252
|
headers?: (VoiceBotFunctionIntegrationWebhookHeader)[] | undefined;
|
|
253
|
+
/**
|
|
254
|
+
* Timeout in milliseconds for the webhook request.
|
|
255
|
+
* @public
|
|
256
|
+
*/
|
|
257
|
+
timeout?: number | undefined;
|
|
258
|
+
/**
|
|
259
|
+
* Message spoken when the function call starts.
|
|
260
|
+
* @public
|
|
261
|
+
*/
|
|
262
|
+
startMessage?: string | undefined;
|
|
237
263
|
parameters?: __DocumentType | undefined;
|
|
238
264
|
}
|
|
239
265
|
/**
|
|
@@ -305,6 +331,11 @@ export interface VoiceBotTool {
|
|
|
305
331
|
*/
|
|
306
332
|
export interface VoiceBotLlmEndpoint {
|
|
307
333
|
prompt: string;
|
|
334
|
+
/**
|
|
335
|
+
* The AI model to use for generating responses. If not specified, uses the default model.
|
|
336
|
+
* @public
|
|
337
|
+
*/
|
|
338
|
+
model?: VoiceBotModel | undefined;
|
|
308
339
|
/**
|
|
309
340
|
* Embedded functions to use within voice session.
|
|
310
341
|
* @public
|
|
@@ -1276,6 +1307,7 @@ export declare namespace TraceSegmentCompletionMessageItem {
|
|
|
1276
1307
|
export interface TraceSegmentCompletionInput {
|
|
1277
1308
|
instructions: string;
|
|
1278
1309
|
messages: (TraceSegmentCompletionMessageItem)[];
|
|
1310
|
+
model?: string | undefined;
|
|
1279
1311
|
}
|
|
1280
1312
|
/**
|
|
1281
1313
|
* @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.0.
|
|
4
|
+
"version": "1.0.25",
|
|
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
|
+
}
|