@wildix/wim-voicebots-client 1.0.24 → 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.
@@ -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) => {
@@ -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
+ 'model': [],
608
609
  'prompt': [],
609
610
  'tools': _ => se_VoiceBotToolsList(_, context),
610
611
  });
@@ -969,6 +970,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
969
970
  const de_VoiceBotLlmEndpoint = (output, context) => {
970
971
  return (0, smithy_client_1.take)(output, {
971
972
  'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
973
+ 'model': smithy_client_1.expectString,
972
974
  'prompt': smithy_client_1.expectString,
973
975
  'tools': (_) => de_VoiceBotToolsList(_, context),
974
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) => {
@@ -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
+ 'model': [],
577
578
  'prompt': [],
578
579
  'tools': _ => se_VoiceBotToolsList(_, context),
579
580
  });
@@ -938,6 +939,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
938
939
  const de_VoiceBotLlmEndpoint = (output, context) => {
939
940
  return take(output, {
940
941
  'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
942
+ 'model': __expectString,
941
943
  'prompt': __expectString,
942
944
  'tools': (_) => de_VoiceBotToolsList(_, context),
943
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
@@ -163,6 +164,7 @@ declare const CreateVoiceBotCommand_base: {
163
164
  * // endpoint: { // VoiceBotEndpoint Union: only one key present
164
165
  * // llm: { // VoiceBotLlmEndpoint
165
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",
166
168
  * // embeddedTools: [ // VoiceBotEmbeddedToolsList
167
169
  * // { // VoiceBotEmbeddedTool
168
170
  * // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
@@ -445,6 +445,7 @@ declare const DescribeEventCommand_base: {
445
445
  * // },
446
446
  * // },
447
447
  * // ],
448
+ * // model: "STRING_VALUE",
448
449
  * // },
449
450
  * // tool: {// Union: only one key present
450
451
  * // transfer: {
@@ -259,6 +259,7 @@ declare const GetTraceCommand_base: {
259
259
  * // },
260
260
  * // },
261
261
  * // ],
262
+ * // model: "STRING_VALUE",
262
263
  * // },
263
264
  * // tool: {// Union: only one key present
264
265
  * // transfer: {
@@ -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
@@ -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
@@ -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
@@ -164,6 +165,7 @@ declare const UpdateVoiceBotCommand_base: {
164
165
  * // endpoint: { // VoiceBotEndpoint Union: only one key present
165
166
  * // llm: { // VoiceBotLlmEndpoint
166
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",
167
169
  * // embeddedTools: [ // VoiceBotEmbeddedToolsList
168
170
  * // { // VoiceBotEmbeddedTool
169
171
  * // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
@@ -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
  */
@@ -315,6 +331,11 @@ export interface VoiceBotTool {
315
331
  */
316
332
  export interface VoiceBotLlmEndpoint {
317
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;
318
339
  /**
319
340
  * Embedded functions to use within voice session.
320
341
  * @public
@@ -1286,6 +1307,7 @@ export declare namespace TraceSegmentCompletionMessageItem {
1286
1307
  export interface TraceSegmentCompletionInput {
1287
1308
  instructions: string;
1288
1309
  messages: (TraceSegmentCompletionMessageItem)[];
1310
+ model?: string | undefined;
1289
1311
  }
1290
1312
  /**
1291
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.24",
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",