@wildix/wim-voicebots-client 4.0.1 → 4.0.2

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,12 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceActivityStatus = exports.VoiceBotCommandType = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegrationMethod = exports.VoiceBotEmbeddedToolType = exports.VoiceBotCapabilityToolPipelineType = exports.VoiceBotEventType = exports.AnnotationSourceType = void 0;
3
+ exports.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceActivityStatus = exports.VoiceBotCommandType = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegrationMethod = exports.VoiceBotEmbeddedToolType = exports.VoiceBotCapabilityToolPipelineType = exports.VoiceBotEventType = exports.SearchThresholdValue = exports.SearchStrategy = exports.AnnotationSourceType = void 0;
4
4
  exports.AnnotationSourceType = {
5
5
  CHATBOT: "chatbot",
6
6
  SYSTEM: "system",
7
7
  USER: "user",
8
8
  VOICEBOT: "voicebot",
9
9
  };
10
+ exports.SearchStrategy = {
11
+ BM25: "bm25",
12
+ HYBRID: "hybrid",
13
+ VECTOR: "vector",
14
+ };
15
+ exports.SearchThresholdValue = {
16
+ HIGH: "high",
17
+ LOW: "low",
18
+ MEDIUM: "medium",
19
+ };
10
20
  exports.VoiceBotEventType = {
11
21
  AUDIO: "audio",
12
22
  COMPLETE: "complete",
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ReplyWebhookEvent$ = exports.ReplyEvent$ = exports.PubSubUnsubscribeWebsocketCommand$ = exports.PubSubUnsubscribedWebsocketEvent$ = exports.PubSubSubscribeWebsocketCommand$ = exports.PubSubSubscribedWebsocketEvent$ = exports.PubSubBroadcastWebsocketEvent$ = exports.PubSubBroadcastItem$ = exports.PlayWebsocketCommandData$ = exports.PlayWebsocketCommand$ = exports.PlaybackWebsocketEvent$ = exports.PlaybackWebhookEvent$ = exports.PlaybackEvent$ = exports.ListVoiceBotsOutput$ = exports.ListVoiceBotsNamesOutput$ = exports.ListVoiceBotsNamesInput$ = exports.ListVoiceBotsInput$ = exports.ListTracesOutput$ = exports.ListTracesInput$ = exports.InterruptionWebsocketEvent$ = exports.InterruptionWebhookEvent$ = exports.InterruptionEvent$ = exports.HangupWebsocketCommandData$ = exports.HangupWebsocketCommand$ = exports.GetVoiceBotOutput$ = exports.GetVoiceBotInput$ = exports.GetTraceOutput$ = exports.GetTraceInput$ = exports.DescribeEventOutput$ = exports.DescribeEventInput$ = exports.DeleteVoiceBotOutput$ = exports.DeleteVoiceBotInput$ = exports.CreateVoiceBotOutput$ = exports.CreateVoiceBotInput$ = exports.CompleteWebsocketEvent$ = exports.CompleteWebhookEvent$ = exports.CompleteEvent$ = exports.AudioWebhookEvent$ = exports.AudioEvent$ = exports.AnnotationVariablesValue$ = exports.AnnotationSource$ = exports.AnnotationResultValue$ = exports.Annotation$ = exports.errorTypeRegistries = exports.VoiceSessionNotFoundException$ = exports.VoiceBotNotFoundException$ = exports.VoiceBotNonUniqueNameException$ = exports.ValidationException$ = exports.ForbiddenException$ = exports.VoiceBotsServiceException$ = void 0;
4
- exports.TranscriptionWebsocketEvent$ = exports.TranscriptionWebhookEvent$ = exports.TranscriptionEvent$ = exports.TraceWaitToolCall$ = exports.TraceUsage$ = exports.TraceTransferToolCall$ = exports.TraceTranscribeUsage$ = exports.TraceSilenceTimeoutTaskTrigger$ = exports.TraceSession$ = exports.TraceSegmentCompletionToolMessage$ = exports.TraceSegmentCompletionInput$ = exports.TraceSegment$ = exports.TracePlaybackUsage$ = exports.TraceOAuthInput$ = exports.TraceHangupToolCall$ = exports.TraceGenericInputBlock$ = exports.TraceGenericInput$ = exports.TraceGenerationUsage$ = exports.TraceFunctionToolCallRequest$ = exports.TraceFunctionToolCall$ = exports.TraceErrorResult$ = exports.TraceDurationTimeoutTaskTrigger$ = exports.TraceDisconnectEventTrigger$ = exports.TraceDelegationToolCall$ = exports.TraceConnectEventTrigger$ = exports.TraceCapabilityToolCall$ = exports.TraceCapabilityKbCall$ = exports.TraceAnnotationCommand$ = exports.TraceActivity$ = exports.Trace$ = exports.StopWebsocketCommandData$ = exports.StopWebsocketCommand$ = exports.SessionStartedWebhookEvent$ = exports.SessionStartedEvent$ = exports.SessionEndedWebhookEvent$ = exports.SessionEndedEvent$ = exports.SendTransferOutput$ = exports.SendTransferInput$ = exports.SendStopOutput$ = exports.SendStopInput$ = exports.SendSayOutput$ = exports.SendSayInput$ = exports.SendPlayOutput$ = exports.SendPlayInput$ = exports.SendHangupOutput$ = exports.SendHangupInput$ = exports.SayWebsocketCommandData$ = exports.SayWebsocketCommand$ = exports.SayCommandAudioOptions$ = exports.ReplyWebsocketEvent$ = void 0;
5
- exports.VoiceBotFunctionIntegration$ = exports.VoiceBotEndpoint$ = exports.VoiceBotCapability$ = exports.TraceToolCall$ = exports.TraceSegmentResult$ = exports.TraceSegmentInput$ = exports.TraceSegmentCompletionMessageItem$ = exports.TraceSegmentCompletionMessage$ = exports.TraceGenericInputBlockContent$ = exports.TraceActivityTrigger$ = exports.TraceActivityResult$ = exports.AnnotationPayload$ = exports.BotWebhookEndpoint$ = exports.BotSqsEndpoint$ = exports.BotOpenAiAssistantEndpoint$ = exports.BotDialogflowCxEndpoint$ = exports.VoiceBotVariable$ = exports.VoiceBotToolVariablesAnnotation$ = exports.VoiceBotToolVariablePredefinedHandler$ = exports.VoiceBotToolVariableGuidedHandler$ = exports.VoiceBotToolVariableAutoHandler$ = exports.VoiceBotToolVariable$ = exports.VoiceBotToolTagAnnotation$ = exports.VoiceBotToolResultAnnotation$ = exports.VoiceBotToolCommentAnnotation$ = exports.VoiceBotTool$ = exports.VoiceBotTerminateTransferAction$ = exports.VoiceBotTerminateHangupAction$ = exports.VoiceBotPromptMetadataTime$ = exports.VoiceBotPromptMetadataEnabled$ = exports.VoiceBotPromptMetadataDisabled$ = exports.VoiceBotPromptMetadata$ = exports.VoiceBotPipelineSettings$ = exports.VoiceBotLlmEndpoint$ = exports.VoiceBotKnowledgeBase$ = exports.VoiceBotInfo$ = exports.VoiceBotFunctionIntegrationWebhookHeader$ = exports.VoiceBotFunctionIntegrationWebhookAuthorizationOAuth$ = exports.VoiceBotFunctionIntegrationWebhookAuthorizationBearer$ = exports.VoiceBotFunctionIntegrationWebhookAuthorizationBasic$ = exports.VoiceBotFunctionIntegrationWebhook$ = exports.VoiceBotFunctionDefinition$ = exports.VoiceBotEmbeddedTool$ = exports.VoiceBotCapabilityToolPipeline$ = exports.VoiceBotCapabilityTool$ = exports.VoiceBot$ = exports.UpdateVoiceBotOutput$ = exports.UpdateVoiceBotInput$ = exports.TransferWebsocketCommandData$ = exports.TransferWebsocketCommand$ = void 0;
6
- exports.UpdateVoiceBot$ = exports.SendTransfer$ = exports.SendStop$ = exports.SendSay$ = exports.SendPlay$ = exports.SendHangup$ = exports.ListVoiceBotsNames$ = exports.ListVoiceBots$ = exports.ListTraces$ = exports.GetVoiceBot$ = exports.GetTrace$ = exports.DescribeEvent$ = exports.DeleteVoiceBot$ = exports.CreateVoiceBot$ = exports.VoiceBotToolVariableHandler$ = exports.VoiceBotToolAnnotation$ = exports.VoiceBotPipelineTerminateAction$ = exports.VoiceBotFunctionIntegrationWebhookAuthorization$ = void 0;
4
+ exports.TranscriptionEvent$ = exports.TraceWaitToolCall$ = exports.TraceUsage$ = exports.TraceTransferToolCall$ = exports.TraceTranscribeUsage$ = exports.TraceSilenceTimeoutTaskTrigger$ = exports.TraceSession$ = exports.TraceSegmentCompletionToolMessage$ = exports.TraceSegmentCompletionInput$ = exports.TraceSegment$ = exports.TracePlaybackUsage$ = exports.TraceOAuthInput$ = exports.TraceHangupToolCall$ = exports.TraceGenericInputBlock$ = exports.TraceGenericInput$ = exports.TraceGenerationUsage$ = exports.TraceFunctionToolCallRequest$ = exports.TraceFunctionToolCall$ = exports.TraceErrorResult$ = exports.TraceDurationTimeoutTaskTrigger$ = exports.TraceDisconnectEventTrigger$ = exports.TraceDelegationToolCall$ = exports.TraceConnectEventTrigger$ = exports.TraceCapabilityToolCall$ = exports.TraceCapabilityKbCall$ = exports.TraceAnnotationCommand$ = exports.TraceActivity$ = exports.Trace$ = exports.StopWebsocketCommandData$ = exports.StopWebsocketCommand$ = exports.SessionStartedWebsocketEventData$ = exports.SessionStartedWebsocketEvent$ = exports.SessionStartedWebhookEvent$ = exports.SessionStartedEvent$ = exports.SessionEndedWebhookEvent$ = exports.SessionEndedEvent$ = exports.SendTransferOutput$ = exports.SendTransferInput$ = exports.SendStopOutput$ = exports.SendStopInput$ = exports.SendSayOutput$ = exports.SendSayInput$ = exports.SendPlayOutput$ = exports.SendPlayInput$ = exports.SendHangupOutput$ = exports.SendHangupInput$ = exports.SayWebsocketCommandData$ = exports.SayWebsocketCommand$ = exports.SayCommandAudioOptions$ = exports.ReplyWebsocketEvent$ = void 0;
5
+ exports.VoiceBotCapability$ = exports.TraceToolCall$ = exports.TraceSegmentResult$ = exports.TraceSegmentInput$ = exports.TraceSegmentCompletionMessageItem$ = exports.TraceSegmentCompletionMessage$ = exports.TraceGenericInputBlockContent$ = exports.TraceActivityTrigger$ = exports.TraceActivityResult$ = exports.AnnotationPayload$ = exports.BotWebhookEndpoint$ = exports.BotSqsEndpoint$ = exports.BotOpenAiAssistantEndpoint$ = exports.BotDialogflowCxEndpoint$ = exports.VoiceBotVariable$ = exports.VoiceBotToolVariablesAnnotation$ = exports.VoiceBotToolVariablePredefinedHandler$ = exports.VoiceBotToolVariableGuidedHandler$ = exports.VoiceBotToolVariableAutoHandler$ = exports.VoiceBotToolVariable$ = exports.VoiceBotToolTagAnnotation$ = exports.VoiceBotToolResultAnnotation$ = exports.VoiceBotToolCommentAnnotation$ = exports.VoiceBotTool$ = exports.VoiceBotTerminateTransferAction$ = exports.VoiceBotTerminateHangupAction$ = exports.VoiceBotPromptMetadataTime$ = exports.VoiceBotPromptMetadataEnabled$ = exports.VoiceBotPromptMetadataDisabled$ = exports.VoiceBotPromptMetadata$ = exports.VoiceBotPipelineSettings$ = exports.VoiceBotLlmEndpoint$ = exports.VoiceBotKnowledgeBase$ = exports.VoiceBotInfo$ = exports.VoiceBotFunctionIntegrationWebhookHeader$ = exports.VoiceBotFunctionIntegrationWebhookAuthorizationOAuth$ = exports.VoiceBotFunctionIntegrationWebhookAuthorizationBearer$ = exports.VoiceBotFunctionIntegrationWebhookAuthorizationBasic$ = exports.VoiceBotFunctionIntegrationWebhook$ = exports.VoiceBotFunctionDefinition$ = exports.VoiceBotEmbeddedTool$ = exports.VoiceBotCapabilityToolPipeline$ = exports.VoiceBotCapabilityTool$ = exports.VoiceBot$ = exports.UpdateVoiceBotOutput$ = exports.UpdateVoiceBotInput$ = exports.TransferWebsocketCommandData$ = exports.TransferWebsocketCommand$ = exports.TranscriptionWebsocketEvent$ = exports.TranscriptionWebhookEvent$ = void 0;
6
+ exports.UpdateVoiceBot$ = exports.SendTransfer$ = exports.SendStop$ = exports.SendSay$ = exports.SendPlay$ = exports.SendHangup$ = exports.ListVoiceBotsNames$ = exports.ListVoiceBots$ = exports.ListTraces$ = exports.GetVoiceBot$ = exports.GetTrace$ = exports.DescribeEvent$ = exports.DeleteVoiceBot$ = exports.CreateVoiceBot$ = exports.VoiceBotToolVariableHandler$ = exports.VoiceBotToolAnnotation$ = exports.VoiceBotPipelineTerminateAction$ = exports.VoiceBotFunctionIntegrationWebhookAuthorization$ = exports.VoiceBotFunctionIntegration$ = exports.VoiceBotEndpoint$ = void 0;
7
7
  const _A = "Annotation";
8
8
  const _AE = "AudioEvent";
9
9
  const _AP = "AnnotationPayload";
@@ -78,7 +78,9 @@ const _SSI = "SendSayInput";
78
78
  const _SSIe = "SendStopInput";
79
79
  const _SSO = "SendSayOutput";
80
80
  const _SSOe = "SendStopOutput";
81
- const _SSWE = "SessionStartedWebhookEvent";
81
+ const _SSWE = "SessionStartedWebsocketEvent";
82
+ const _SSWED = "SessionStartedWebsocketEventData";
83
+ const _SSWEe = "SessionStartedWebhookEvent";
82
84
  const _SSe = "SendStop";
83
85
  const _ST = "SendTransfer";
84
86
  const _STI = "SendTransferInput";
@@ -316,11 +318,14 @@ const _s = "smithy.ts.sdk.synthetic.wildix.wim.voicebots";
316
318
  const _sC = "sayCommand";
317
319
  const _sI = "sessionId";
318
320
  const _sIt = "streamId";
321
+ const _sL = "searchLimit";
319
322
  const _sM = "startMessage";
320
323
  const _sR = "sampleRate";
324
+ const _sS = "searchStrategy";
321
325
  const _sT = "startTime";
322
326
  const _sTA = "silenceTimeoutAction";
323
327
  const _sTT = "silenceTimeoutTask";
328
+ const _sTe = "searchThreshold";
324
329
  const _sTi = "silenceTimeout";
325
330
  const _sc = "scope";
326
331
  const _se = "search";
@@ -486,8 +491,8 @@ exports.DescribeEventInput$ = [3, n1, _DEI,
486
491
  ];
487
492
  exports.DescribeEventOutput$ = [3, n1, _DEO,
488
493
  0,
489
- [_TWE, _RWE, _PWE, _IWE, _CWEo, _SWC, _PWC, _SWCt, _HWC, _TWC, _SSWE, _SEWE, _TWEr, _AWE, _RWEe, _PWEl, _IWEn, _CWE, _PSBWE, _PSSWC, _PSSWE, _PSUWC, _PSUWE],
490
- [() => exports.TranscriptionWebsocketEvent$, () => exports.ReplyWebsocketEvent$, () => exports.PlaybackWebsocketEvent$, () => exports.InterruptionWebsocketEvent$, () => exports.CompleteWebsocketEvent$, () => exports.SayWebsocketCommand$, () => exports.PlayWebsocketCommand$, () => exports.StopWebsocketCommand$, () => exports.HangupWebsocketCommand$, () => exports.TransferWebsocketCommand$, () => exports.SessionStartedWebhookEvent$, () => exports.SessionEndedWebhookEvent$, () => exports.TranscriptionWebhookEvent$, () => exports.AudioWebhookEvent$, () => exports.ReplyWebhookEvent$, () => exports.PlaybackWebhookEvent$, () => exports.InterruptionWebhookEvent$, () => exports.CompleteWebhookEvent$, () => exports.PubSubBroadcastWebsocketEvent$, () => exports.PubSubSubscribeWebsocketCommand$, () => exports.PubSubSubscribedWebsocketEvent$, () => exports.PubSubUnsubscribeWebsocketCommand$, () => exports.PubSubUnsubscribedWebsocketEvent$]
494
+ [_SSWE, _TWE, _RWE, _PWE, _IWE, _CWEo, _SWC, _PWC, _SWCt, _HWC, _TWC, _SSWEe, _SEWE, _TWEr, _AWE, _RWEe, _PWEl, _IWEn, _CWE, _PSBWE, _PSSWC, _PSSWE, _PSUWC, _PSUWE],
495
+ [() => exports.SessionStartedWebsocketEvent$, () => exports.TranscriptionWebsocketEvent$, () => exports.ReplyWebsocketEvent$, () => exports.PlaybackWebsocketEvent$, () => exports.InterruptionWebsocketEvent$, () => exports.CompleteWebsocketEvent$, () => exports.SayWebsocketCommand$, () => exports.PlayWebsocketCommand$, () => exports.StopWebsocketCommand$, () => exports.HangupWebsocketCommand$, () => exports.TransferWebsocketCommand$, () => exports.SessionStartedWebhookEvent$, () => exports.SessionEndedWebhookEvent$, () => exports.TranscriptionWebhookEvent$, () => exports.AudioWebhookEvent$, () => exports.ReplyWebhookEvent$, () => exports.PlaybackWebhookEvent$, () => exports.InterruptionWebhookEvent$, () => exports.CompleteWebhookEvent$, () => exports.PubSubBroadcastWebsocketEvent$, () => exports.PubSubSubscribeWebsocketCommand$, () => exports.PubSubSubscribedWebsocketEvent$, () => exports.PubSubUnsubscribeWebsocketCommand$, () => exports.PubSubUnsubscribedWebsocketEvent$]
491
496
  ];
492
497
  exports.GetTraceInput$ = [3, n1, _GTI,
493
498
  0,
@@ -714,11 +719,21 @@ exports.SessionStartedEvent$ = [3, n1, _SSE,
714
719
  [_t, _l, _ti],
715
720
  [0, 0, 1], 3
716
721
  ];
717
- exports.SessionStartedWebhookEvent$ = [3, n1, _SSWE,
722
+ exports.SessionStartedWebhookEvent$ = [3, n1, _SSWEe,
718
723
  0,
719
724
  [_sI, _bI, _cI, _fI, _ev],
720
725
  [0, 0, 0, 1, () => exports.SessionStartedEvent$], 5
721
726
  ];
727
+ exports.SessionStartedWebsocketEvent$ = [3, n1, _SSWE,
728
+ 0,
729
+ [_t, _ev],
730
+ [0, () => exports.SessionStartedWebsocketEventData$], 2
731
+ ];
732
+ exports.SessionStartedWebsocketEventData$ = [3, n1, _SSWED,
733
+ 0,
734
+ [_t, _bI, _bN, _ti, _ca, _gI],
735
+ [0, 0, 0, 1, 0, 0], 4
736
+ ];
722
737
  exports.StopWebsocketCommand$ = [3, n1, _SWCt,
723
738
  0,
724
739
  [_t, _com],
@@ -956,8 +971,8 @@ exports.VoiceBotInfo$ = [3, n1, _VBI,
956
971
  ];
957
972
  exports.VoiceBotKnowledgeBase$ = [3, n1, _VBKB,
958
973
  0,
959
- [_kBI, _ins, _ann],
960
- [0, 0, () => VoiceBotToolAnnotationsList]
974
+ [_kBI, _ins, _sS, _sTe, _sL, _ann],
975
+ [0, 0, 0, 0, 1, () => VoiceBotToolAnnotationsList]
961
976
  ];
962
977
  exports.VoiceBotLlmEndpoint$ = [3, n1, _VBLE,
963
978
  0,
@@ -4,6 +4,16 @@ export const AnnotationSourceType = {
4
4
  USER: "user",
5
5
  VOICEBOT: "voicebot",
6
6
  };
7
+ export const SearchStrategy = {
8
+ BM25: "bm25",
9
+ HYBRID: "hybrid",
10
+ VECTOR: "vector",
11
+ };
12
+ export const SearchThresholdValue = {
13
+ HIGH: "high",
14
+ LOW: "low",
15
+ MEDIUM: "medium",
16
+ };
7
17
  export const VoiceBotEventType = {
8
18
  AUDIO: "audio",
9
19
  COMPLETE: "complete",
@@ -72,7 +72,9 @@ const _SSI = "SendSayInput";
72
72
  const _SSIe = "SendStopInput";
73
73
  const _SSO = "SendSayOutput";
74
74
  const _SSOe = "SendStopOutput";
75
- const _SSWE = "SessionStartedWebhookEvent";
75
+ const _SSWE = "SessionStartedWebsocketEvent";
76
+ const _SSWED = "SessionStartedWebsocketEventData";
77
+ const _SSWEe = "SessionStartedWebhookEvent";
76
78
  const _SSe = "SendStop";
77
79
  const _ST = "SendTransfer";
78
80
  const _STI = "SendTransferInput";
@@ -310,11 +312,14 @@ const _s = "smithy.ts.sdk.synthetic.wildix.wim.voicebots";
310
312
  const _sC = "sayCommand";
311
313
  const _sI = "sessionId";
312
314
  const _sIt = "streamId";
315
+ const _sL = "searchLimit";
313
316
  const _sM = "startMessage";
314
317
  const _sR = "sampleRate";
318
+ const _sS = "searchStrategy";
315
319
  const _sT = "startTime";
316
320
  const _sTA = "silenceTimeoutAction";
317
321
  const _sTT = "silenceTimeoutTask";
322
+ const _sTe = "searchThreshold";
318
323
  const _sTi = "silenceTimeout";
319
324
  const _sc = "scope";
320
325
  const _se = "search";
@@ -480,8 +485,8 @@ export var DescribeEventInput$ = [3, n1, _DEI,
480
485
  ];
481
486
  export var DescribeEventOutput$ = [3, n1, _DEO,
482
487
  0,
483
- [_TWE, _RWE, _PWE, _IWE, _CWEo, _SWC, _PWC, _SWCt, _HWC, _TWC, _SSWE, _SEWE, _TWEr, _AWE, _RWEe, _PWEl, _IWEn, _CWE, _PSBWE, _PSSWC, _PSSWE, _PSUWC, _PSUWE],
484
- [() => TranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$, () => SessionStartedWebhookEvent$, () => SessionEndedWebhookEvent$, () => TranscriptionWebhookEvent$, () => AudioWebhookEvent$, () => ReplyWebhookEvent$, () => PlaybackWebhookEvent$, () => InterruptionWebhookEvent$, () => CompleteWebhookEvent$, () => PubSubBroadcastWebsocketEvent$, () => PubSubSubscribeWebsocketCommand$, () => PubSubSubscribedWebsocketEvent$, () => PubSubUnsubscribeWebsocketCommand$, () => PubSubUnsubscribedWebsocketEvent$]
488
+ [_SSWE, _TWE, _RWE, _PWE, _IWE, _CWEo, _SWC, _PWC, _SWCt, _HWC, _TWC, _SSWEe, _SEWE, _TWEr, _AWE, _RWEe, _PWEl, _IWEn, _CWE, _PSBWE, _PSSWC, _PSSWE, _PSUWC, _PSUWE],
489
+ [() => SessionStartedWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$, () => SessionStartedWebhookEvent$, () => SessionEndedWebhookEvent$, () => TranscriptionWebhookEvent$, () => AudioWebhookEvent$, () => ReplyWebhookEvent$, () => PlaybackWebhookEvent$, () => InterruptionWebhookEvent$, () => CompleteWebhookEvent$, () => PubSubBroadcastWebsocketEvent$, () => PubSubSubscribeWebsocketCommand$, () => PubSubSubscribedWebsocketEvent$, () => PubSubUnsubscribeWebsocketCommand$, () => PubSubUnsubscribedWebsocketEvent$]
485
490
  ];
486
491
  export var GetTraceInput$ = [3, n1, _GTI,
487
492
  0,
@@ -708,11 +713,21 @@ export var SessionStartedEvent$ = [3, n1, _SSE,
708
713
  [_t, _l, _ti],
709
714
  [0, 0, 1], 3
710
715
  ];
711
- export var SessionStartedWebhookEvent$ = [3, n1, _SSWE,
716
+ export var SessionStartedWebhookEvent$ = [3, n1, _SSWEe,
712
717
  0,
713
718
  [_sI, _bI, _cI, _fI, _ev],
714
719
  [0, 0, 0, 1, () => SessionStartedEvent$], 5
715
720
  ];
721
+ export var SessionStartedWebsocketEvent$ = [3, n1, _SSWE,
722
+ 0,
723
+ [_t, _ev],
724
+ [0, () => SessionStartedWebsocketEventData$], 2
725
+ ];
726
+ export var SessionStartedWebsocketEventData$ = [3, n1, _SSWED,
727
+ 0,
728
+ [_t, _bI, _bN, _ti, _ca, _gI],
729
+ [0, 0, 0, 1, 0, 0], 4
730
+ ];
716
731
  export var StopWebsocketCommand$ = [3, n1, _SWCt,
717
732
  0,
718
733
  [_t, _com],
@@ -950,8 +965,8 @@ export var VoiceBotInfo$ = [3, n1, _VBI,
950
965
  ];
951
966
  export var VoiceBotKnowledgeBase$ = [3, n1, _VBKB,
952
967
  0,
953
- [_kBI, _ins, _ann],
954
- [0, 0, () => VoiceBotToolAnnotationsList]
968
+ [_kBI, _ins, _sS, _sTe, _sL, _ann],
969
+ [0, 0, 0, 0, 1, () => VoiceBotToolAnnotationsList]
955
970
  ];
956
971
  export var VoiceBotLlmEndpoint$ = [3, n1, _VBLE,
957
972
  0,
@@ -24,9 +24,7 @@ export interface CreateVoiceBotCommandOutput extends CreateVoiceBotOutput, __Met
24
24
  declare const CreateVoiceBotCommand_base: {
25
25
  new (input: CreateVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<CreateVoiceBotCommandInput, CreateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: CreateVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<CreateVoiceBotCommandInput, CreateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Creates a new voice bot with the specified configuration for the company.
@@ -211,6 +209,9 @@ declare const CreateVoiceBotCommand_base: {
211
209
  * kb: { // VoiceBotKnowledgeBase
212
210
  * knowledgeBaseId: "STRING_VALUE",
213
211
  * instructions: "STRING_VALUE",
212
+ * searchStrategy: "bm25" || "vector" || "hybrid",
213
+ * searchThreshold: "low" || "medium" || "high",
214
+ * searchLimit: Number("int"),
214
215
  * annotations: [
215
216
  * {// Union: only one key present
216
217
  * tag: {
@@ -284,6 +285,9 @@ declare const CreateVoiceBotCommand_base: {
284
285
  * kb: {
285
286
  * knowledgeBaseId: "STRING_VALUE",
286
287
  * instructions: "STRING_VALUE",
288
+ * searchStrategy: "bm25" || "vector" || "hybrid",
289
+ * searchThreshold: "low" || "medium" || "high",
290
+ * searchLimit: Number("int"),
287
291
  * annotations: "<VoiceBotToolAnnotationsList>",
288
292
  * },
289
293
  * },
@@ -467,6 +471,9 @@ declare const CreateVoiceBotCommand_base: {
467
471
  * // kb: { // VoiceBotKnowledgeBase
468
472
  * // knowledgeBaseId: "STRING_VALUE",
469
473
  * // instructions: "STRING_VALUE",
474
+ * // searchStrategy: "bm25" || "vector" || "hybrid",
475
+ * // searchThreshold: "low" || "medium" || "high",
476
+ * // searchLimit: Number("int"),
470
477
  * // annotations: [
471
478
  * // {// Union: only one key present
472
479
  * // tag: {
@@ -540,6 +547,9 @@ declare const CreateVoiceBotCommand_base: {
540
547
  * // kb: {
541
548
  * // knowledgeBaseId: "STRING_VALUE",
542
549
  * // instructions: "STRING_VALUE",
550
+ * // searchStrategy: "bm25" || "vector" || "hybrid",
551
+ * // searchThreshold: "low" || "medium" || "high",
552
+ * // searchLimit: Number("int"),
543
553
  * // annotations: "<VoiceBotToolAnnotationsList>",
544
554
  * // },
545
555
  * // },
@@ -24,9 +24,7 @@ export interface DeleteVoiceBotCommandOutput extends DeleteVoiceBotOutput, __Met
24
24
  declare const DeleteVoiceBotCommand_base: {
25
25
  new (input: DeleteVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<DeleteVoiceBotCommandInput, DeleteVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: DeleteVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<DeleteVoiceBotCommandInput, DeleteVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Deletes an existing voice bot and all its associated data.
@@ -24,9 +24,7 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
24
24
  declare const DescribeEventCommand_base: {
25
25
  new (input: DescribeEventCommandInput): import("@smithy/core/client").CommandImpl<DescribeEventCommandInput, DescribeEventCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (...[input]: [] | [DescribeEventCommandInput]): import("@smithy/core/client").CommandImpl<DescribeEventCommandInput, DescribeEventCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Utility method to describe available events for websocket and webhook events.
@@ -42,6 +40,17 @@ declare const DescribeEventCommand_base: {
42
40
  * const command = new DescribeEventCommand(input);
43
41
  * const response = await client.send(command);
44
42
  * // { // DescribeEventOutput
43
+ * // SessionStartedWebsocketEvent: { // SessionStartedWebsocketEvent
44
+ * // type: "STRING_VALUE", // required
45
+ * // event: { // SessionStartedWebsocketEventData
46
+ * // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
47
+ * // botId: "STRING_VALUE", // required
48
+ * // botName: "STRING_VALUE", // required
49
+ * // category: "STRING_VALUE",
50
+ * // groupId: "STRING_VALUE",
51
+ * // time: Number("long"), // required
52
+ * // },
53
+ * // },
45
54
  * // TranscriptionWebsocketEvent: { // TranscriptionWebsocketEvent
46
55
  * // type: "STRING_VALUE", // required
47
56
  * // event: { // TranscriptionEvent
@@ -24,9 +24,7 @@ export interface GetTraceCommandOutput extends GetTraceOutput, __MetadataBearer
24
24
  declare const GetTraceCommand_base: {
25
25
  new (input: GetTraceCommandInput): import("@smithy/core/client").CommandImpl<GetTraceCommandInput, GetTraceCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: GetTraceCommandInput): import("@smithy/core/client").CommandImpl<GetTraceCommandInput, GetTraceCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Retrieves detailed trace information for a specific voice bot session.
@@ -24,9 +24,7 @@ export interface GetVoiceBotCommandOutput extends GetVoiceBotOutput, __MetadataB
24
24
  declare const GetVoiceBotCommand_base: {
25
25
  new (input: GetVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<GetVoiceBotCommandInput, GetVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: GetVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<GetVoiceBotCommandInput, GetVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Retrieves details of a specific voice bot by its unique identifier.
@@ -218,6 +216,9 @@ declare const GetVoiceBotCommand_base: {
218
216
  * // kb: { // VoiceBotKnowledgeBase
219
217
  * // knowledgeBaseId: "STRING_VALUE",
220
218
  * // instructions: "STRING_VALUE",
219
+ * // searchStrategy: "bm25" || "vector" || "hybrid",
220
+ * // searchThreshold: "low" || "medium" || "high",
221
+ * // searchLimit: Number("int"),
221
222
  * // annotations: [
222
223
  * // {// Union: only one key present
223
224
  * // tag: {
@@ -291,6 +292,9 @@ declare const GetVoiceBotCommand_base: {
291
292
  * // kb: {
292
293
  * // knowledgeBaseId: "STRING_VALUE",
293
294
  * // instructions: "STRING_VALUE",
295
+ * // searchStrategy: "bm25" || "vector" || "hybrid",
296
+ * // searchThreshold: "low" || "medium" || "high",
297
+ * // searchLimit: Number("int"),
294
298
  * // annotations: "<VoiceBotToolAnnotationsList>",
295
299
  * // },
296
300
  * // },
@@ -24,9 +24,7 @@ export interface ListTracesCommandOutput extends ListTracesOutput, __MetadataBea
24
24
  declare const ListTracesCommand_base: {
25
25
  new (input: ListTracesCommandInput): import("@smithy/core/client").CommandImpl<ListTracesCommandInput, ListTracesCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (...[input]: [] | [ListTracesCommandInput]): import("@smithy/core/client").CommandImpl<ListTracesCommandInput, ListTracesCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Retrieves a list of voice bot trace sessions for the specified company.
@@ -24,9 +24,7 @@ export interface ListVoiceBotsCommandOutput extends ListVoiceBotsOutput, __Metad
24
24
  declare const ListVoiceBotsCommand_base: {
25
25
  new (input: ListVoiceBotsCommandInput): import("@smithy/core/client").CommandImpl<ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (...[input]: [] | [ListVoiceBotsCommandInput]): import("@smithy/core/client").CommandImpl<ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Retrieves a list of all voice bots for the specified company.
@@ -218,6 +216,9 @@ declare const ListVoiceBotsCommand_base: {
218
216
  * // kb: { // VoiceBotKnowledgeBase
219
217
  * // knowledgeBaseId: "STRING_VALUE",
220
218
  * // instructions: "STRING_VALUE",
219
+ * // searchStrategy: "bm25" || "vector" || "hybrid",
220
+ * // searchThreshold: "low" || "medium" || "high",
221
+ * // searchLimit: Number("int"),
221
222
  * // annotations: [
222
223
  * // {// Union: only one key present
223
224
  * // tag: {
@@ -291,6 +292,9 @@ declare const ListVoiceBotsCommand_base: {
291
292
  * // kb: {
292
293
  * // knowledgeBaseId: "STRING_VALUE",
293
294
  * // instructions: "STRING_VALUE",
295
+ * // searchStrategy: "bm25" || "vector" || "hybrid",
296
+ * // searchThreshold: "low" || "medium" || "high",
297
+ * // searchLimit: Number("int"),
294
298
  * // annotations: "<VoiceBotToolAnnotationsList>",
295
299
  * // },
296
300
  * // },
@@ -24,9 +24,7 @@ export interface ListVoiceBotsNamesCommandOutput extends ListVoiceBotsNamesOutpu
24
24
  declare const ListVoiceBotsNamesCommand_base: {
25
25
  new (input: ListVoiceBotsNamesCommandInput): import("@smithy/core/client").CommandImpl<ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (...[input]: [] | [ListVoiceBotsNamesCommandInput]): import("@smithy/core/client").CommandImpl<ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Retrieves a list of voice bot names and basic information for the specified company.
@@ -24,9 +24,7 @@ export interface SendHangupCommandOutput extends SendHangupOutput, __MetadataBea
24
24
  declare const SendHangupCommand_base: {
25
25
  new (input: SendHangupCommandInput): import("@smithy/core/client").CommandImpl<SendHangupCommandInput, SendHangupCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: SendHangupCommandInput): import("@smithy/core/client").CommandImpl<SendHangupCommandInput, SendHangupCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Terminates the voice session and the call.
@@ -24,9 +24,7 @@ export interface SendPlayCommandOutput extends SendPlayOutput, __MetadataBearer
24
24
  declare const SendPlayCommand_base: {
25
25
  new (input: SendPlayCommandInput): import("@smithy/core/client").CommandImpl<SendPlayCommandInput, SendPlayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: SendPlayCommandInput): import("@smithy/core/client").CommandImpl<SendPlayCommandInput, SendPlayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Plays the specified audio chunk through the audio stream of the voice session.
@@ -24,9 +24,7 @@ export interface SendSayCommandOutput extends SendSayOutput, __MetadataBearer {
24
24
  declare const SendSayCommand_base: {
25
25
  new (input: SendSayCommandInput): import("@smithy/core/client").CommandImpl<SendSayCommandInput, SendSayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: SendSayCommandInput): import("@smithy/core/client").CommandImpl<SendSayCommandInput, SendSayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Generates and plays the specified text through the audio stream of the voice session.
@@ -24,9 +24,7 @@ export interface SendStopCommandOutput extends SendStopOutput, __MetadataBearer
24
24
  declare const SendStopCommand_base: {
25
25
  new (input: SendStopCommandInput): import("@smithy/core/client").CommandImpl<SendStopCommandInput, SendStopCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: SendStopCommandInput): import("@smithy/core/client").CommandImpl<SendStopCommandInput, SendStopCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Stop playing and ongoing audio from the voice bot.
@@ -24,9 +24,7 @@ export interface SendTransferCommandOutput extends SendTransferOutput, __Metadat
24
24
  declare const SendTransferCommand_base: {
25
25
  new (input: SendTransferCommandInput): import("@smithy/core/client").CommandImpl<SendTransferCommandInput, SendTransferCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: SendTransferCommandInput): import("@smithy/core/client").CommandImpl<SendTransferCommandInput, SendTransferCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Transfers the call to the specified context and extension, and terminates the voice bot session.
@@ -24,9 +24,7 @@ export interface UpdateVoiceBotCommandOutput extends UpdateVoiceBotOutput, __Met
24
24
  declare const UpdateVoiceBotCommand_base: {
25
25
  new (input: UpdateVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: UpdateVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Updates the configuration of an existing voice bot with new settings.
@@ -211,6 +209,9 @@ declare const UpdateVoiceBotCommand_base: {
211
209
  * kb: { // VoiceBotKnowledgeBase
212
210
  * knowledgeBaseId: "STRING_VALUE",
213
211
  * instructions: "STRING_VALUE",
212
+ * searchStrategy: "bm25" || "vector" || "hybrid",
213
+ * searchThreshold: "low" || "medium" || "high",
214
+ * searchLimit: Number("int"),
214
215
  * annotations: [
215
216
  * {// Union: only one key present
216
217
  * tag: {
@@ -284,6 +285,9 @@ declare const UpdateVoiceBotCommand_base: {
284
285
  * kb: {
285
286
  * knowledgeBaseId: "STRING_VALUE",
286
287
  * instructions: "STRING_VALUE",
288
+ * searchStrategy: "bm25" || "vector" || "hybrid",
289
+ * searchThreshold: "low" || "medium" || "high",
290
+ * searchLimit: Number("int"),
287
291
  * annotations: "<VoiceBotToolAnnotationsList>",
288
292
  * },
289
293
  * },
@@ -468,6 +472,9 @@ declare const UpdateVoiceBotCommand_base: {
468
472
  * // kb: { // VoiceBotKnowledgeBase
469
473
  * // knowledgeBaseId: "STRING_VALUE",
470
474
  * // instructions: "STRING_VALUE",
475
+ * // searchStrategy: "bm25" || "vector" || "hybrid",
476
+ * // searchThreshold: "low" || "medium" || "high",
477
+ * // searchLimit: Number("int"),
471
478
  * // annotations: [
472
479
  * // {// Union: only one key present
473
480
  * // tag: {
@@ -541,6 +548,9 @@ declare const UpdateVoiceBotCommand_base: {
541
548
  * // kb: {
542
549
  * // knowledgeBaseId: "STRING_VALUE",
543
550
  * // instructions: "STRING_VALUE",
551
+ * // searchStrategy: "bm25" || "vector" || "hybrid",
552
+ * // searchThreshold: "low" || "medium" || "high",
553
+ * // searchLimit: Number("int"),
544
554
  * // annotations: "<VoiceBotToolAnnotationsList>",
545
555
  * // },
546
556
  * // },
@@ -12,6 +12,32 @@ export declare const AnnotationSourceType: {
12
12
  * @public
13
13
  */
14
14
  export type AnnotationSourceType = (typeof AnnotationSourceType)[keyof typeof AnnotationSourceType];
15
+ /**
16
+ * @public
17
+ * @enum
18
+ */
19
+ export declare const SearchStrategy: {
20
+ readonly BM25: "bm25";
21
+ readonly HYBRID: "hybrid";
22
+ readonly VECTOR: "vector";
23
+ };
24
+ /**
25
+ * @public
26
+ */
27
+ export type SearchStrategy = (typeof SearchStrategy)[keyof typeof SearchStrategy];
28
+ /**
29
+ * @public
30
+ * @enum
31
+ */
32
+ export declare const SearchThresholdValue: {
33
+ readonly HIGH: "high";
34
+ readonly LOW: "low";
35
+ readonly MEDIUM: "medium";
36
+ };
37
+ /**
38
+ * @public
39
+ */
40
+ export type SearchThresholdValue = (typeof SearchThresholdValue)[keyof typeof SearchThresholdValue];
15
41
  /**
16
42
  * @public
17
43
  * @enum
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
- import type { AnnotationSourceType, TraceActivityStatus, TraceSegmentStatus, TraceSessionStatus, VoiceBotCapabilityToolPipelineType, VoiceBotCommandType, VoiceBotEmbeddedToolType, VoiceBotEventType, VoiceBotFunctionIntegrationMethod, VoiceBotToolType } from "./enums";
2
+ import type { AnnotationSourceType, SearchStrategy, SearchThresholdValue, TraceActivityStatus, TraceSegmentStatus, TraceSessionStatus, VoiceBotCapabilityToolPipelineType, VoiceBotCommandType, VoiceBotEmbeddedToolType, VoiceBotEventType, VoiceBotFunctionIntegrationMethod, VoiceBotToolType } from "./enums";
3
3
  /**
4
4
  * Tool result captured for an annotation. Runtime services enforce serialized payload size limits.
5
5
  * @public
@@ -295,6 +295,21 @@ export interface VoiceBotKnowledgeBase {
295
295
  * @public
296
296
  */
297
297
  instructions?: string | undefined;
298
+ /**
299
+ * Search algorithm strategy used for this knowledge base capability.
300
+ * @public
301
+ */
302
+ searchStrategy?: SearchStrategy | undefined;
303
+ /**
304
+ * Minimum similarity threshold used for this knowledge base capability.
305
+ * @public
306
+ */
307
+ searchThreshold?: SearchThresholdValue | undefined;
308
+ /**
309
+ * Maximum number of search results returned by this knowledge base capability.
310
+ * @public
311
+ */
312
+ searchLimit?: number | undefined;
298
313
  annotations?: VoiceBotToolAnnotation[] | undefined;
299
314
  }
300
315
  /**
@@ -2108,6 +2123,24 @@ export interface SessionStartedWebhookEvent {
2108
2123
  flowIndex: number;
2109
2124
  event: SessionStartedEvent;
2110
2125
  }
2126
+ /**
2127
+ * @public
2128
+ */
2129
+ export interface SessionStartedWebsocketEventData {
2130
+ type: VoiceBotEventType;
2131
+ botId: string;
2132
+ botName: string;
2133
+ category?: string | undefined;
2134
+ groupId?: string | undefined;
2135
+ time: number;
2136
+ }
2137
+ /**
2138
+ * @public
2139
+ */
2140
+ export interface SessionStartedWebsocketEvent {
2141
+ type: string;
2142
+ event: SessionStartedWebsocketEventData;
2143
+ }
2111
2144
  /**
2112
2145
  * @public
2113
2146
  */
@@ -2135,6 +2168,7 @@ export interface TranscriptionWebhookEvent {
2135
2168
  * @public
2136
2169
  */
2137
2170
  export interface DescribeEventOutput {
2171
+ SessionStartedWebsocketEvent?: SessionStartedWebsocketEvent | undefined;
2138
2172
  TranscriptionWebsocketEvent?: TranscriptionWebsocketEvent | undefined;
2139
2173
  ReplyWebsocketEvent?: ReplyWebsocketEvent | undefined;
2140
2174
  PlaybackWebsocketEvent?: PlaybackWebsocketEvent | undefined;
@@ -73,6 +73,8 @@ export declare var SessionEndedEvent$: StaticStructureSchema;
73
73
  export declare var SessionEndedWebhookEvent$: StaticStructureSchema;
74
74
  export declare var SessionStartedEvent$: StaticStructureSchema;
75
75
  export declare var SessionStartedWebhookEvent$: StaticStructureSchema;
76
+ export declare var SessionStartedWebsocketEvent$: StaticStructureSchema;
77
+ export declare var SessionStartedWebsocketEventData$: StaticStructureSchema;
76
78
  export declare var StopWebsocketCommand$: StaticStructureSchema;
77
79
  export declare var StopWebsocketCommandData$: StaticStructureSchema;
78
80
  export declare var Trace$: StaticStructureSchema;
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": "4.0.1",
4
+ "version": "4.0.2",
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",