@wildix/wim-voicebots-client 1.0.26 → 1.1.0

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.
@@ -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),
@@ -27,8 +27,7 @@ declare const CreateVoiceBotCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Creates a new voice bot with the specified configuration for the company.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -63,6 +62,24 @@ declare const CreateVoiceBotCommand_base: {
63
62
  * llm: { // VoiceBotLlmEndpoint
64
63
  * prompt: "STRING_VALUE", // required
65
64
  * model: "STRING_VALUE",
65
+ * metadata: { // VoiceBotPromptMetadata
66
+ * userName: { // VoiceBotPromptMetadataEnabled
67
+ * enabled: true || false, // required
68
+ * },
69
+ * userPhoneNumber: {
70
+ * enabled: true || false, // required
71
+ * },
72
+ * userEmail: { // VoiceBotPromptMetadataDisabled
73
+ * enabled: true || false, // required
74
+ * },
75
+ * userCompany: {
76
+ * enabled: true || false, // required
77
+ * },
78
+ * time: { // VoiceBotPromptMetadataTime
79
+ * enabled: true || false, // required
80
+ * timeZone: "STRING_VALUE", // required
81
+ * },
82
+ * },
66
83
  * embeddedTools: [ // VoiceBotEmbeddedToolsList
67
84
  * { // VoiceBotEmbeddedTool
68
85
  * type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
@@ -165,6 +182,24 @@ declare const CreateVoiceBotCommand_base: {
165
182
  * // llm: { // VoiceBotLlmEndpoint
166
183
  * // prompt: "STRING_VALUE", // required
167
184
  * // model: "STRING_VALUE",
185
+ * // metadata: { // VoiceBotPromptMetadata
186
+ * // userName: { // VoiceBotPromptMetadataEnabled
187
+ * // enabled: true || false, // required
188
+ * // },
189
+ * // userPhoneNumber: {
190
+ * // enabled: true || false, // required
191
+ * // },
192
+ * // userEmail: { // VoiceBotPromptMetadataDisabled
193
+ * // enabled: true || false, // required
194
+ * // },
195
+ * // userCompany: {
196
+ * // enabled: true || false, // required
197
+ * // },
198
+ * // time: { // VoiceBotPromptMetadataTime
199
+ * // enabled: true || false, // required
200
+ * // timeZone: "STRING_VALUE", // required
201
+ * // },
202
+ * // },
168
203
  * // embeddedTools: [ // VoiceBotEmbeddedToolsList
169
204
  * // { // VoiceBotEmbeddedTool
170
205
  * // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
@@ -258,6 +293,7 @@ declare const CreateVoiceBotCommand_base: {
258
293
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
259
294
  *
260
295
  *
296
+ * @public
261
297
  */
262
298
  export declare class CreateVoiceBotCommand extends CreateVoiceBotCommand_base {
263
299
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const DeleteVoiceBotCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Deletes an existing voice bot and all its associated data.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -59,6 +58,7 @@ declare const DeleteVoiceBotCommand_base: {
59
58
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
60
59
  *
61
60
  *
61
+ * @public
62
62
  */
63
63
  export declare class DeleteVoiceBotCommand extends DeleteVoiceBotCommand_base {
64
64
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const GetTraceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Retrieves detailed trace information for a specific voice bot session.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -356,6 +355,7 @@ declare const GetTraceCommand_base: {
356
355
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
357
356
  *
358
357
  *
358
+ * @public
359
359
  */
360
360
  export declare class GetTraceCommand extends GetTraceCommand_base {
361
361
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const GetVoiceBotCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Retrieves details of a specific voice bot by its unique identifier.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -70,6 +69,24 @@ declare const GetVoiceBotCommand_base: {
70
69
  * // llm: { // VoiceBotLlmEndpoint
71
70
  * // prompt: "STRING_VALUE", // required
72
71
  * // model: "STRING_VALUE",
72
+ * // metadata: { // VoiceBotPromptMetadata
73
+ * // userName: { // VoiceBotPromptMetadataEnabled
74
+ * // enabled: true || false, // required
75
+ * // },
76
+ * // userPhoneNumber: {
77
+ * // enabled: true || false, // required
78
+ * // },
79
+ * // userEmail: { // VoiceBotPromptMetadataDisabled
80
+ * // enabled: true || false, // required
81
+ * // },
82
+ * // userCompany: {
83
+ * // enabled: true || false, // required
84
+ * // },
85
+ * // time: { // VoiceBotPromptMetadataTime
86
+ * // enabled: true || false, // required
87
+ * // timeZone: "STRING_VALUE", // required
88
+ * // },
89
+ * // },
73
90
  * // embeddedTools: [ // VoiceBotEmbeddedToolsList
74
91
  * // { // VoiceBotEmbeddedTool
75
92
  * // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
@@ -163,6 +180,7 @@ declare const GetVoiceBotCommand_base: {
163
180
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
164
181
  *
165
182
  *
183
+ * @public
166
184
  */
167
185
  export declare class GetVoiceBotCommand extends GetVoiceBotCommand_base {
168
186
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const ListTracesCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Retrieves a list of voice bot trace sessions for the specified company.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -76,6 +75,7 @@ declare const ListTracesCommand_base: {
76
75
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
77
76
  *
78
77
  *
78
+ * @public
79
79
  */
80
80
  export declare class ListTracesCommand extends ListTracesCommand_base {
81
81
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const ListVoiceBotsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Retrieves a list of all voice bots for the specified company.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -70,6 +69,24 @@ declare const ListVoiceBotsCommand_base: {
70
69
  * // llm: { // VoiceBotLlmEndpoint
71
70
  * // prompt: "STRING_VALUE", // required
72
71
  * // model: "STRING_VALUE",
72
+ * // metadata: { // VoiceBotPromptMetadata
73
+ * // userName: { // VoiceBotPromptMetadataEnabled
74
+ * // enabled: true || false, // required
75
+ * // },
76
+ * // userPhoneNumber: {
77
+ * // enabled: true || false, // required
78
+ * // },
79
+ * // userEmail: { // VoiceBotPromptMetadataDisabled
80
+ * // enabled: true || false, // required
81
+ * // },
82
+ * // userCompany: {
83
+ * // enabled: true || false, // required
84
+ * // },
85
+ * // time: { // VoiceBotPromptMetadataTime
86
+ * // enabled: true || false, // required
87
+ * // timeZone: "STRING_VALUE", // required
88
+ * // },
89
+ * // },
73
90
  * // embeddedTools: [ // VoiceBotEmbeddedToolsList
74
91
  * // { // VoiceBotEmbeddedTool
75
92
  * // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
@@ -162,6 +179,7 @@ declare const ListVoiceBotsCommand_base: {
162
179
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
163
180
  *
164
181
  *
182
+ * @public
165
183
  */
166
184
  export declare class ListVoiceBotsCommand extends ListVoiceBotsCommand_base {
167
185
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const ListVoiceBotsNamesCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Retrieves a list of voice bot names and basic information for the specified company.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -65,6 +64,7 @@ declare const ListVoiceBotsNamesCommand_base: {
65
64
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
66
65
  *
67
66
  *
67
+ * @public
68
68
  */
69
69
  export declare class ListVoiceBotsNamesCommand extends ListVoiceBotsNamesCommand_base {
70
70
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const UpdateVoiceBotCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Updates the configuration of an existing voice bot with new settings.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -63,6 +62,24 @@ declare const UpdateVoiceBotCommand_base: {
63
62
  * llm: { // VoiceBotLlmEndpoint
64
63
  * prompt: "STRING_VALUE", // required
65
64
  * model: "STRING_VALUE",
65
+ * metadata: { // VoiceBotPromptMetadata
66
+ * userName: { // VoiceBotPromptMetadataEnabled
67
+ * enabled: true || false, // required
68
+ * },
69
+ * userPhoneNumber: {
70
+ * enabled: true || false, // required
71
+ * },
72
+ * userEmail: { // VoiceBotPromptMetadataDisabled
73
+ * enabled: true || false, // required
74
+ * },
75
+ * userCompany: {
76
+ * enabled: true || false, // required
77
+ * },
78
+ * time: { // VoiceBotPromptMetadataTime
79
+ * enabled: true || false, // required
80
+ * timeZone: "STRING_VALUE", // required
81
+ * },
82
+ * },
66
83
  * embeddedTools: [ // VoiceBotEmbeddedToolsList
67
84
  * { // VoiceBotEmbeddedTool
68
85
  * type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
@@ -166,6 +183,24 @@ declare const UpdateVoiceBotCommand_base: {
166
183
  * // llm: { // VoiceBotLlmEndpoint
167
184
  * // prompt: "STRING_VALUE", // required
168
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
+ * // },
169
204
  * // embeddedTools: [ // VoiceBotEmbeddedToolsList
170
205
  * // { // VoiceBotEmbeddedTool
171
206
  * // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
@@ -261,6 +296,7 @@ declare const UpdateVoiceBotCommand_base: {
261
296
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
262
297
  *
263
298
  *
299
+ * @public
264
300
  */
265
301
  export declare class UpdateVoiceBotCommand extends UpdateVoiceBotCommand_base {
266
302
  /** @internal type navigation helper, not in runtime. */
@@ -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.26",
4
+ "version": "1.1.0",
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
+ }