@wildix/wim-voicebots-client 1.0.26 → 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/protocols/Aws_restJson1.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +36 -0
- package/dist-types/commands/GetVoiceBotCommand.d.ts +18 -0
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +18 -0
- package/dist-types/commands/UpdateVoiceBotCommand.d.ts +36 -0
- package/dist-types/models/models_0.d.ts +70 -0
- package/package.json +2 -2
|
@@ -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),
|
|
@@ -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),
|
|
@@ -63,6 +63,24 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
63
63
|
* llm: { // VoiceBotLlmEndpoint
|
|
64
64
|
* prompt: "STRING_VALUE", // required
|
|
65
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,6 +183,24 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
165
183
|
* // llm: { // VoiceBotLlmEndpoint
|
|
166
184
|
* // prompt: "STRING_VALUE", // required
|
|
167
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
|
|
@@ -70,6 +70,24 @@ declare const GetVoiceBotCommand_base: {
|
|
|
70
70
|
* // llm: { // VoiceBotLlmEndpoint
|
|
71
71
|
* // prompt: "STRING_VALUE", // required
|
|
72
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
|
|
@@ -70,6 +70,24 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
70
70
|
* // llm: { // VoiceBotLlmEndpoint
|
|
71
71
|
* // prompt: "STRING_VALUE", // required
|
|
72
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
|
|
@@ -63,6 +63,24 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
63
63
|
* llm: { // VoiceBotLlmEndpoint
|
|
64
64
|
* prompt: "STRING_VALUE", // required
|
|
65
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
|
|
@@ -166,6 +184,24 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
166
184
|
* // llm: { // VoiceBotLlmEndpoint
|
|
167
185
|
* // prompt: "STRING_VALUE", // required
|
|
168
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
|
|
@@ -138,6 +138,71 @@ export interface VoiceBotEmbeddedTool {
|
|
|
138
138
|
*/
|
|
139
139
|
parameters?: __DocumentType | undefined;
|
|
140
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
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
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @public
|
|
168
|
+
*/
|
|
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
|
+
}
|
|
141
206
|
/**
|
|
142
207
|
* @public
|
|
143
208
|
*/
|
|
@@ -320,6 +385,11 @@ export interface VoiceBotLlmEndpoint {
|
|
|
320
385
|
* @public
|
|
321
386
|
*/
|
|
322
387
|
model?: string | undefined;
|
|
388
|
+
/**
|
|
389
|
+
* Metadata configuration to include in the system prompt context.
|
|
390
|
+
* @public
|
|
391
|
+
*/
|
|
392
|
+
metadata?: VoiceBotPromptMetadata | undefined;
|
|
323
393
|
/**
|
|
324
394
|
* Embedded functions to use within voice session.
|
|
325
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
|
+
}
|