@wildix/wim-voicebots-client 1.0.25 → 1.0.27
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 +1 -9
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/models/models_0.js +0 -8
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +38 -2
- package/dist-types/commands/GetVoiceBotCommand.d.ts +19 -1
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +19 -1
- package/dist-types/commands/UpdateVoiceBotCommand.d.ts +38 -2
- package/dist-types/models/models_0.d.ts +65 -11
- 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.
|
|
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;
|
|
4
4
|
const VoiceBotsServiceException_1 = require("./VoiceBotsServiceException");
|
|
5
5
|
class ValidationException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
6
6
|
name = "ValidationException";
|
|
@@ -44,14 +44,6 @@ 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
|
-
};
|
|
55
47
|
var VoiceBotFunctionIntegrationWebhookAuthorization;
|
|
56
48
|
(function (VoiceBotFunctionIntegrationWebhookAuthorization) {
|
|
57
49
|
VoiceBotFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
|
|
@@ -605,6 +605,7 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
|
|
|
605
605
|
const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
606
606
|
return (0, smithy_client_1.take)(input, {
|
|
607
607
|
'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
|
|
608
|
+
'metadata': smithy_client_1._json,
|
|
608
609
|
'model': [],
|
|
609
610
|
'prompt': [],
|
|
610
611
|
'tools': _ => se_VoiceBotToolsList(_, context),
|
|
@@ -970,6 +971,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
|
|
|
970
971
|
const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
971
972
|
return (0, smithy_client_1.take)(output, {
|
|
972
973
|
'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
|
|
974
|
+
'metadata': smithy_client_1._json,
|
|
973
975
|
'model': smithy_client_1.expectString,
|
|
974
976
|
'prompt': smithy_client_1.expectString,
|
|
975
977
|
'tools': (_) => de_VoiceBotToolsList(_, context),
|
|
@@ -39,14 +39,6 @@ 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
|
-
};
|
|
50
42
|
export var VoiceBotFunctionIntegrationWebhookAuthorization;
|
|
51
43
|
(function (VoiceBotFunctionIntegrationWebhookAuthorization) {
|
|
52
44
|
VoiceBotFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
|
|
@@ -574,6 +574,7 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
|
|
|
574
574
|
const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
575
575
|
return take(input, {
|
|
576
576
|
'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
|
|
577
|
+
'metadata': _json,
|
|
577
578
|
'model': [],
|
|
578
579
|
'prompt': [],
|
|
579
580
|
'tools': _ => se_VoiceBotToolsList(_, context),
|
|
@@ -939,6 +940,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
|
|
|
939
940
|
const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
940
941
|
return take(output, {
|
|
941
942
|
'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
|
|
943
|
+
'metadata': _json,
|
|
942
944
|
'model': __expectString,
|
|
943
945
|
'prompt': __expectString,
|
|
944
946
|
'tools': (_) => de_VoiceBotToolsList(_, context),
|
|
@@ -62,7 +62,25 @@ 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: "
|
|
65
|
+
* model: "STRING_VALUE",
|
|
66
|
+
* metadata: { // VoiceBotPromptMetadata
|
|
67
|
+
* userName: { // VoiceBotPromptMetadataEnabled
|
|
68
|
+
* enabled: true || false, // required
|
|
69
|
+
* },
|
|
70
|
+
* userPhoneNumber: {
|
|
71
|
+
* enabled: true || false, // required
|
|
72
|
+
* },
|
|
73
|
+
* userEmail: { // VoiceBotPromptMetadataDisabled
|
|
74
|
+
* enabled: true || false, // required
|
|
75
|
+
* },
|
|
76
|
+
* userCompany: {
|
|
77
|
+
* enabled: true || false, // required
|
|
78
|
+
* },
|
|
79
|
+
* time: { // VoiceBotPromptMetadataTime
|
|
80
|
+
* enabled: true || false, // required
|
|
81
|
+
* timeZone: "STRING_VALUE", // required
|
|
82
|
+
* },
|
|
83
|
+
* },
|
|
66
84
|
* embeddedTools: [ // VoiceBotEmbeddedToolsList
|
|
67
85
|
* { // VoiceBotEmbeddedTool
|
|
68
86
|
* type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
@@ -164,7 +182,25 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
164
182
|
* // endpoint: { // VoiceBotEndpoint Union: only one key present
|
|
165
183
|
* // llm: { // VoiceBotLlmEndpoint
|
|
166
184
|
* // prompt: "STRING_VALUE", // required
|
|
167
|
-
* // model: "
|
|
185
|
+
* // model: "STRING_VALUE",
|
|
186
|
+
* // metadata: { // VoiceBotPromptMetadata
|
|
187
|
+
* // userName: { // VoiceBotPromptMetadataEnabled
|
|
188
|
+
* // enabled: true || false, // required
|
|
189
|
+
* // },
|
|
190
|
+
* // userPhoneNumber: {
|
|
191
|
+
* // enabled: true || false, // required
|
|
192
|
+
* // },
|
|
193
|
+
* // userEmail: { // VoiceBotPromptMetadataDisabled
|
|
194
|
+
* // enabled: true || false, // required
|
|
195
|
+
* // },
|
|
196
|
+
* // userCompany: {
|
|
197
|
+
* // enabled: true || false, // required
|
|
198
|
+
* // },
|
|
199
|
+
* // time: { // VoiceBotPromptMetadataTime
|
|
200
|
+
* // enabled: true || false, // required
|
|
201
|
+
* // timeZone: "STRING_VALUE", // required
|
|
202
|
+
* // },
|
|
203
|
+
* // },
|
|
168
204
|
* // embeddedTools: [ // VoiceBotEmbeddedToolsList
|
|
169
205
|
* // { // VoiceBotEmbeddedTool
|
|
170
206
|
* // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
@@ -69,7 +69,25 @@ 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: "
|
|
72
|
+
* // model: "STRING_VALUE",
|
|
73
|
+
* // metadata: { // VoiceBotPromptMetadata
|
|
74
|
+
* // userName: { // VoiceBotPromptMetadataEnabled
|
|
75
|
+
* // enabled: true || false, // required
|
|
76
|
+
* // },
|
|
77
|
+
* // userPhoneNumber: {
|
|
78
|
+
* // enabled: true || false, // required
|
|
79
|
+
* // },
|
|
80
|
+
* // userEmail: { // VoiceBotPromptMetadataDisabled
|
|
81
|
+
* // enabled: true || false, // required
|
|
82
|
+
* // },
|
|
83
|
+
* // userCompany: {
|
|
84
|
+
* // enabled: true || false, // required
|
|
85
|
+
* // },
|
|
86
|
+
* // time: { // VoiceBotPromptMetadataTime
|
|
87
|
+
* // enabled: true || false, // required
|
|
88
|
+
* // timeZone: "STRING_VALUE", // required
|
|
89
|
+
* // },
|
|
90
|
+
* // },
|
|
73
91
|
* // embeddedTools: [ // VoiceBotEmbeddedToolsList
|
|
74
92
|
* // { // VoiceBotEmbeddedTool
|
|
75
93
|
* // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
@@ -69,7 +69,25 @@ 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: "
|
|
72
|
+
* // model: "STRING_VALUE",
|
|
73
|
+
* // metadata: { // VoiceBotPromptMetadata
|
|
74
|
+
* // userName: { // VoiceBotPromptMetadataEnabled
|
|
75
|
+
* // enabled: true || false, // required
|
|
76
|
+
* // },
|
|
77
|
+
* // userPhoneNumber: {
|
|
78
|
+
* // enabled: true || false, // required
|
|
79
|
+
* // },
|
|
80
|
+
* // userEmail: { // VoiceBotPromptMetadataDisabled
|
|
81
|
+
* // enabled: true || false, // required
|
|
82
|
+
* // },
|
|
83
|
+
* // userCompany: {
|
|
84
|
+
* // enabled: true || false, // required
|
|
85
|
+
* // },
|
|
86
|
+
* // time: { // VoiceBotPromptMetadataTime
|
|
87
|
+
* // enabled: true || false, // required
|
|
88
|
+
* // timeZone: "STRING_VALUE", // required
|
|
89
|
+
* // },
|
|
90
|
+
* // },
|
|
73
91
|
* // embeddedTools: [ // VoiceBotEmbeddedToolsList
|
|
74
92
|
* // { // VoiceBotEmbeddedTool
|
|
75
93
|
* // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
@@ -62,7 +62,25 @@ 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: "
|
|
65
|
+
* model: "STRING_VALUE",
|
|
66
|
+
* metadata: { // VoiceBotPromptMetadata
|
|
67
|
+
* userName: { // VoiceBotPromptMetadataEnabled
|
|
68
|
+
* enabled: true || false, // required
|
|
69
|
+
* },
|
|
70
|
+
* userPhoneNumber: {
|
|
71
|
+
* enabled: true || false, // required
|
|
72
|
+
* },
|
|
73
|
+
* userEmail: { // VoiceBotPromptMetadataDisabled
|
|
74
|
+
* enabled: true || false, // required
|
|
75
|
+
* },
|
|
76
|
+
* userCompany: {
|
|
77
|
+
* enabled: true || false, // required
|
|
78
|
+
* },
|
|
79
|
+
* time: { // VoiceBotPromptMetadataTime
|
|
80
|
+
* enabled: true || false, // required
|
|
81
|
+
* timeZone: "STRING_VALUE", // required
|
|
82
|
+
* },
|
|
83
|
+
* },
|
|
66
84
|
* embeddedTools: [ // VoiceBotEmbeddedToolsList
|
|
67
85
|
* { // VoiceBotEmbeddedTool
|
|
68
86
|
* type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
@@ -165,7 +183,25 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
165
183
|
* // endpoint: { // VoiceBotEndpoint Union: only one key present
|
|
166
184
|
* // llm: { // VoiceBotLlmEndpoint
|
|
167
185
|
* // prompt: "STRING_VALUE", // required
|
|
168
|
-
* // model: "
|
|
186
|
+
* // model: "STRING_VALUE",
|
|
187
|
+
* // metadata: { // VoiceBotPromptMetadata
|
|
188
|
+
* // userName: { // VoiceBotPromptMetadataEnabled
|
|
189
|
+
* // enabled: true || false, // required
|
|
190
|
+
* // },
|
|
191
|
+
* // userPhoneNumber: {
|
|
192
|
+
* // enabled: true || false, // required
|
|
193
|
+
* // },
|
|
194
|
+
* // userEmail: { // VoiceBotPromptMetadataDisabled
|
|
195
|
+
* // enabled: true || false, // required
|
|
196
|
+
* // },
|
|
197
|
+
* // userCompany: {
|
|
198
|
+
* // enabled: true || false, // required
|
|
199
|
+
* // },
|
|
200
|
+
* // time: { // VoiceBotPromptMetadataTime
|
|
201
|
+
* // enabled: true || false, // required
|
|
202
|
+
* // timeZone: "STRING_VALUE", // required
|
|
203
|
+
* // },
|
|
204
|
+
* // },
|
|
169
205
|
* // embeddedTools: [ // VoiceBotEmbeddedToolsList
|
|
170
206
|
* // { // VoiceBotEmbeddedTool
|
|
171
207
|
* // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
@@ -140,20 +140,69 @@ export interface VoiceBotEmbeddedTool {
|
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
142
|
* @public
|
|
143
|
-
* @enum
|
|
144
143
|
*/
|
|
145
|
-
export
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
144
|
+
export interface VoiceBotPromptMetadataTime {
|
|
145
|
+
/**
|
|
146
|
+
* Whether this metadata field is enabled
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
enabled: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Timezone for time formatting (e.g., 'Europe/Rome', 'UTC')
|
|
152
|
+
* @public
|
|
153
|
+
*/
|
|
154
|
+
timeZone: string;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
export interface VoiceBotPromptMetadataDisabled {
|
|
160
|
+
/**
|
|
161
|
+
* Whether this metadata field is enabled
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
enabled: boolean;
|
|
165
|
+
}
|
|
153
166
|
/**
|
|
154
167
|
* @public
|
|
155
168
|
*/
|
|
156
|
-
export
|
|
169
|
+
export interface VoiceBotPromptMetadataEnabled {
|
|
170
|
+
/**
|
|
171
|
+
* Whether this metadata field is enabled
|
|
172
|
+
* @public
|
|
173
|
+
*/
|
|
174
|
+
enabled: boolean;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @public
|
|
178
|
+
*/
|
|
179
|
+
export interface VoiceBotPromptMetadata {
|
|
180
|
+
/**
|
|
181
|
+
* Enable/disable user name in context (enabled by default)
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
userName?: VoiceBotPromptMetadataEnabled | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* Enable/disable user phone number in context (enabled by default)
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
userPhoneNumber?: VoiceBotPromptMetadataEnabled | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* Enable/disable user email in context
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
194
|
+
userEmail?: VoiceBotPromptMetadataDisabled | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* Enable/disable user company in context
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
userCompany?: VoiceBotPromptMetadataDisabled | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* Time metadata with timezone configuration
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
time?: VoiceBotPromptMetadataTime | undefined;
|
|
205
|
+
}
|
|
157
206
|
/**
|
|
158
207
|
* @public
|
|
159
208
|
*/
|
|
@@ -335,7 +384,12 @@ export interface VoiceBotLlmEndpoint {
|
|
|
335
384
|
* The AI model to use for generating responses. If not specified, uses the default model.
|
|
336
385
|
* @public
|
|
337
386
|
*/
|
|
338
|
-
model?:
|
|
387
|
+
model?: string | undefined;
|
|
388
|
+
/**
|
|
389
|
+
* Metadata configuration to include in the system prompt context.
|
|
390
|
+
* @public
|
|
391
|
+
*/
|
|
392
|
+
metadata?: VoiceBotPromptMetadata | undefined;
|
|
339
393
|
/**
|
|
340
394
|
* Embedded functions to use within voice session.
|
|
341
395
|
* @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.27",
|
|
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
|
+
}
|