@wildix/wilma-voice-client 0.0.47 → 0.0.49

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.
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WilmaVoice = void 0;
4
4
  const client_1 = require("@smithy/core/client");
5
5
  const DescribeVoiceProtocolCommand_1 = require("./commands/DescribeVoiceProtocolCommand");
6
- const GetVoiceDefaultsCommand_1 = require("./commands/GetVoiceDefaultsCommand");
7
6
  const ListVoicesCommand_1 = require("./commands/ListVoicesCommand");
8
7
  const SendHangupCommand_1 = require("./commands/SendHangupCommand");
9
8
  const SendPlayCommand_1 = require("./commands/SendPlayCommand");
@@ -15,7 +14,6 @@ const TextToSpeechCommand_1 = require("./commands/TextToSpeechCommand");
15
14
  const WilmaVoiceClient_1 = require("./WilmaVoiceClient");
16
15
  const commands = {
17
16
  DescribeVoiceProtocolCommand: DescribeVoiceProtocolCommand_1.DescribeVoiceProtocolCommand,
18
- GetVoiceDefaultsCommand: GetVoiceDefaultsCommand_1.GetVoiceDefaultsCommand,
19
17
  ListVoicesCommand: ListVoicesCommand_1.ListVoicesCommand,
20
18
  SendHangupCommand: SendHangupCommand_1.SendHangupCommand,
21
19
  SendPlayCommand: SendPlayCommand_1.SendPlayCommand,
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./DescribeVoiceProtocolCommand"), exports);
5
- tslib_1.__exportStar(require("./GetVoiceDefaultsCommand"), exports);
6
5
  tslib_1.__exportStar(require("./ListVoicesCommand"), exports);
7
6
  tslib_1.__exportStar(require("./SendHangupCommand"), exports);
8
7
  tslib_1.__exportStar(require("./SendPlayCommand"), exports);
@@ -1,15 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MediaVadFrameType = exports.MediaStartFrameType = exports.MediaRunPurpose = exports.MediaAudioEncoding = exports.MediaPlaybackFrameType = exports.MediaPlaybackEvent = exports.MediaPlaybackStopCause = exports.MediaFinishFrameType = exports.MediaFinishReason = exports.MediaDtmfFrameType = exports.MediaTransferFrameType = exports.MediaTranscriptionFrameType = exports.MediaParty = exports.MediaStopFrameType = exports.MediaStartedFrameType = exports.MediaRestoreFrameType = exports.MediaLanguageFrameType = exports.MediaHangupFrameType = exports.MediaFinishedFrameType = exports.MediaErrorFrameType = exports.MediaDuckFrameType = exports.MediaAudioEndFrameType = exports.MediaAudioBeginFrameType = exports.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceTranscriptionDropReason = exports.VoiceCallToolPhase = exports.VoiceCallEndReason = exports.VoiceControlAction = exports.VoiceEventType = exports.VoiceLowConfidenceAction = exports.VoicePronunciationEncoding = void 0;
3
+ exports.MediaVadFrameType = exports.MediaStartFrameType = exports.MediaRunPurpose = exports.MediaAudioEncoding = exports.MediaPlaybackFrameType = exports.MediaPlaybackEvent = exports.MediaPlaybackStopCause = exports.MediaFinishFrameType = exports.MediaFinishReason = exports.MediaDtmfFrameType = exports.MediaTransferFrameType = exports.MediaTranscriptionFrameType = exports.MediaParty = exports.MediaStopFrameType = exports.MediaStartedFrameType = exports.MediaRestoreFrameType = exports.MediaLanguageFrameType = exports.MediaHangupFrameType = exports.MediaFinishedFrameType = exports.MediaErrorFrameType = exports.MediaDuckFrameType = exports.MediaAudioEndFrameType = exports.MediaAudioBeginFrameType = exports.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceTranscriptionDropReason = exports.VoiceCallToolPhase = exports.VoiceCallEndReason = exports.VoiceControlAction = exports.VoiceEventType = exports.VoicePronunciationEncoding = void 0;
4
4
  exports.VoicePronunciationEncoding = {
5
5
  ALIAS: "alias",
6
6
  IPA: "ipa",
7
7
  };
8
- exports.VoiceLowConfidenceAction = {
9
- ANSWER: "answer",
10
- ASK_TO_REPEAT: "ask_to_repeat",
11
- SKIP: "skip",
12
- };
13
8
  exports.VoiceEventType = {
14
9
  AGENT_TRANSCRIPTION: "agentTranscription",
15
10
  AUDIO: "audio",
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MediaVoiceDetection$ = exports.MediaVadFrame$ = exports.MediaTransferFrame$ = exports.MediaTranscriptionFrame$ = exports.MediaStopFrame$ = exports.MediaStartFrame$ = exports.MediaStartedFrame$ = exports.MediaStartedAgent$ = exports.MediaStartCaller$ = exports.MediaStartAgent$ = exports.MediaRestoreFrame$ = exports.MediaProtocolFrames$ = exports.MediaPlaybackFrame$ = exports.MediaPbxFrames$ = exports.MediaLanguageFrame$ = exports.MediaHangupFrame$ = exports.MediaFinishFrame$ = exports.MediaFinishedFrame$ = exports.MediaErrorFrame$ = exports.MediaDuckFrame$ = exports.MediaDtmfFrame$ = exports.MediaCloudFrames$ = exports.MediaAudioFormat$ = exports.MediaAudioEndFrame$ = exports.MediaAudioBeginFrame$ = exports.ListVoicesOutput$ = exports.ListVoicesInput$ = exports.InterruptionWebsocketEvent$ = exports.InterruptionEvent$ = exports.HangupWebsocketCommand$ = exports.HangupCommandData$ = exports.GetVoiceDefaultsOutput$ = exports.GetVoiceDefaultsInput$ = exports.ErrorWebsocketEvent$ = exports.DescribeVoiceProtocolOutput$ = exports.DescribeVoiceProtocolInput$ = exports.ControlWebsocketEvent$ = exports.ControlEvent$ = exports.CompleteWebsocketEvent$ = exports.CompleteEvent$ = exports.AudioWebsocketEvent$ = exports.AudioEvent$ = exports.AgentTranscriptionWebsocketEvent$ = exports.AgentTranscriptionEvent$ = exports.VoicePronunciation$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.WilmaVoiceServiceException$ = void 0;
4
- exports.VoiceSpeechPayload$ = exports.VoiceInterruptionDefaults$ = exports.VoiceErrorEvent$ = exports.VoiceDetectionDefaults$ = exports.VoiceConnectParams$ = exports.VoiceCallTranscriptionEvent$ = exports.VoiceCallToolEvent$ = exports.VoiceCallStartedEvent$ = exports.VoiceCallSayEvent$ = exports.VoiceCallReplyEvent$ = exports.VoiceCallPlaybackEvent$ = exports.VoiceCallLanguageEvent$ = exports.VoiceCallInterruptionEvent$ = exports.VoiceCallEndedEvent$ = exports.VoiceCallAgentTranscriptionEvent$ = exports.VoiceAudioFormat$ = exports.Voice$ = exports.TransferWebsocketCommand$ = exports.TransferCommandData$ = exports.TranscriptionWebsocketEvent$ = exports.TranscriptionEvent$ = exports.TextToSpeechOutput$ = exports.TextToSpeechInput$ = exports.StreamCallEventsOutput$ = exports.StreamCallEventsInput$ = exports.StopWebsocketCommand$ = exports.StopCommandData$ = exports.SessionStartedWebsocketEvent$ = exports.SessionStartedEvent$ = exports.SessionEndedWebsocketEvent$ = exports.SessionEndedEvent$ = exports.SendTransferOutput$ = exports.SendTransferInput$ = exports.SendStopOutput$ = exports.SendStopInput$ = exports.SendSayOutput$ = exports.SendSayInput$ = exports.SendPlayOutput$ = exports.SendPlayInput$ = exports.SendHangupOutput$ = exports.SendHangupInput$ = exports.SayWebsocketCommand$ = exports.SayCommandData$ = exports.SayCommandAudioOptions$ = exports.ReplyWebsocketEvent$ = exports.ReplyEvent$ = exports.PlayWebsocketCommand$ = exports.PlayCommandData$ = exports.PlaybackWebsocketEvent$ = exports.PlaybackEvent$ = void 0;
5
- exports.TextToSpeech$ = exports.StreamCallEvents$ = exports.SendTransfer$ = exports.SendStop$ = exports.SendSay$ = exports.SendPlay$ = exports.SendHangup$ = exports.ListVoices$ = exports.GetVoiceDefaults$ = exports.DescribeVoiceProtocol$ = exports.VoiceCallEvent$ = exports.VoiceTurnEndDefaults$ = void 0;
3
+ exports.PlaybackWebsocketEvent$ = exports.PlaybackEvent$ = exports.MediaVoiceDetection$ = exports.MediaVadFrame$ = exports.MediaTransferFrame$ = exports.MediaTranscriptionFrame$ = exports.MediaStopFrame$ = exports.MediaStartFrame$ = exports.MediaStartedFrame$ = exports.MediaStartedAgent$ = exports.MediaStartCaller$ = exports.MediaStartAgent$ = exports.MediaRestoreFrame$ = exports.MediaProtocolFrames$ = exports.MediaPlaybackFrame$ = exports.MediaPbxFrames$ = exports.MediaLanguageFrame$ = exports.MediaHangupFrame$ = exports.MediaFinishFrame$ = exports.MediaFinishedFrame$ = exports.MediaErrorFrame$ = exports.MediaDuckFrame$ = exports.MediaDtmfFrame$ = exports.MediaCloudFrames$ = exports.MediaAudioFormat$ = exports.MediaAudioEndFrame$ = exports.MediaAudioBeginFrame$ = exports.ListVoicesOutput$ = exports.ListVoicesInput$ = exports.InterruptionWebsocketEvent$ = exports.InterruptionEvent$ = exports.HangupWebsocketCommand$ = exports.HangupCommandData$ = exports.ErrorWebsocketEvent$ = exports.DescribeVoiceProtocolOutput$ = exports.DescribeVoiceProtocolInput$ = exports.ControlWebsocketEvent$ = exports.ControlEvent$ = exports.CompleteWebsocketEvent$ = exports.CompleteEvent$ = exports.AudioWebsocketEvent$ = exports.AudioEvent$ = exports.AgentTranscriptionWebsocketEvent$ = exports.AgentTranscriptionEvent$ = exports.VoicePronunciation$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.WilmaVoiceServiceException$ = void 0;
4
+ exports.SendHangup$ = exports.ListVoices$ = exports.DescribeVoiceProtocol$ = exports.VoiceCallEvent$ = exports.VoiceSpeechPayload$ = exports.VoiceErrorEvent$ = exports.VoiceConnectParams$ = exports.VoiceCallTranscriptionEvent$ = exports.VoiceCallToolEvent$ = exports.VoiceCallStartedEvent$ = exports.VoiceCallSayEvent$ = exports.VoiceCallReplyEvent$ = exports.VoiceCallPlaybackEvent$ = exports.VoiceCallLanguageEvent$ = exports.VoiceCallInterruptionEvent$ = exports.VoiceCallEndedEvent$ = exports.VoiceCallAgentTranscriptionEvent$ = exports.VoiceAudioFormat$ = exports.Voice$ = exports.TransferWebsocketCommand$ = exports.TransferCommandData$ = exports.TranscriptionWebsocketEvent$ = exports.TranscriptionEvent$ = exports.TextToSpeechOutput$ = exports.TextToSpeechInput$ = exports.StreamCallEventsOutput$ = exports.StreamCallEventsInput$ = exports.StopWebsocketCommand$ = exports.StopCommandData$ = exports.SessionStartedWebsocketEvent$ = exports.SessionStartedEvent$ = exports.SessionEndedWebsocketEvent$ = exports.SessionEndedEvent$ = exports.SendTransferOutput$ = exports.SendTransferInput$ = exports.SendStopOutput$ = exports.SendStopInput$ = exports.SendSayOutput$ = exports.SendSayInput$ = exports.SendPlayOutput$ = exports.SendPlayInput$ = exports.SendHangupOutput$ = exports.SendHangupInput$ = exports.SayWebsocketCommand$ = exports.SayCommandData$ = exports.SayCommandAudioOptions$ = exports.ReplyWebsocketEvent$ = exports.ReplyEvent$ = exports.PlayWebsocketCommand$ = exports.PlayCommandData$ = void 0;
5
+ exports.TextToSpeech$ = exports.StreamCallEvents$ = exports.SendTransfer$ = exports.SendStop$ = exports.SendSay$ = exports.SendPlay$ = void 0;
6
6
  const _AE = "AudioEvent";
7
7
  const _ATE = "AgentTranscriptionEvent";
8
8
  const _ATWE = "AgentTranscriptionWebsocketEvent";
@@ -17,9 +17,6 @@ const _DVPI = "DescribeVoiceProtocolInput";
17
17
  const _DVPO = "DescribeVoiceProtocolOutput";
18
18
  const _EWE = "ErrorWebsocketEvent";
19
19
  const _FE = "ForbiddenException";
20
- const _GVD = "GetVoiceDefaults";
21
- const _GVDI = "GetVoiceDefaultsInput";
22
- const _GVDO = "GetVoiceDefaultsOutput";
23
20
  const _HCD = "HangupCommandData";
24
21
  const _HWC = "HangupWebsocketCommand";
25
22
  const _IE = "InterruptionEvent";
@@ -109,15 +106,12 @@ const _VCSE = "VoiceCallSayEvent";
109
106
  const _VCSEo = "VoiceCallStartedEvent";
110
107
  const _VCTE = "VoiceCallToolEvent";
111
108
  const _VCTEo = "VoiceCallTranscriptionEvent";
112
- const _VDD = "VoiceDetectionDefaults";
113
109
  const _VE = "ValidationException";
114
110
  const _VEE = "VoiceErrorEvent";
115
- const _VID = "VoiceInterruptionDefaults";
116
111
  const _VL = "VoiceList";
117
112
  const _VP = "VoicePronunciation";
118
113
  const _VPL = "VoicePronunciationList";
119
114
  const _VSP = "VoiceSpeechPayload";
120
- const _VTED = "VoiceTurnEndDefaults";
121
115
  const _a = "audio/mpeg";
122
116
  const _aB = "audioBegin";
123
117
  const _aD = "autoDetect";
@@ -159,9 +153,7 @@ const _compl = "complete";
159
153
  const _con = "context";
160
154
  const _cr = "credential";
161
155
  const _d = "data";
162
- const _dAM = "duckAfterMs";
163
156
  const _dN = "dialedNumber";
164
- const _dVD = "duckVolumeDb";
165
157
  const _di = "digits";
166
158
  const _dr = "draft";
167
159
  const _dro = "dropped";
@@ -188,7 +180,6 @@ const _gI = "groupId";
188
180
  const _h = "hangup";
189
181
  const _hE = "httpError";
190
182
  const _hH = "httpHeader";
191
- const _hM = "holdMs";
192
183
  const _hQ = "httpQuery";
193
184
  const _hWC = "hangupWebsocketCommand";
194
185
  const _ht = "http";
@@ -197,17 +188,12 @@ const _iA = "inputAudio";
197
188
  const _iM = "initialMessage";
198
189
  const _iMn = "inputMode";
199
190
  const _iWE = "interruptionWebsocketEvent";
200
- const _in = "interruptions";
201
- const _int = "interruptible";
202
- const _inte = "interruption";
191
+ const _in = "interruptible";
192
+ const _int = "interruption";
203
193
  const _l = "language";
204
- const _lC = "lowConfidence";
205
194
  const _la = "languages";
206
195
  const _m = "message";
207
- const _mC = "minConfidence";
208
196
  const _mT = "mediaType";
209
- const _mW = "minWords";
210
- const _mWM = "maxWaitMs";
211
197
  const _me = "media";
212
198
  const _met = "metadata";
213
199
  const _n = "name";
@@ -230,8 +216,8 @@ const _pro = "pronunciations";
230
216
  const _pu = "purpose";
231
217
  const _r = "reason";
232
218
  const _rAM = "resumeAtMs";
233
- const _rAMe = "restoreAfterMs";
234
219
  const _rI = "replyId";
220
+ const _rIu = "runId";
235
221
  const _rM = "rampMs";
236
222
  const _rWE = "replyWebsocketEvent";
237
223
  const _re = "restore";
@@ -262,7 +248,6 @@ const _star = "start";
262
248
  const _sto = "stop";
263
249
  const _t = "type";
264
250
  const _tCI = "toolCallId";
265
- const _tE = "turnEnd";
266
251
  const _tI = "traceId";
267
252
  const _tN = "toolName";
268
253
  const _tWC = "transferWebsocketCommand";
@@ -275,8 +260,8 @@ const _tr = "transcription";
275
260
  const _tra = "transfer";
276
261
  const _u = "uri";
277
262
  const _v = "voices";
278
- const _vD = "voiceDetection";
279
- const _vDo = "volumeDb";
263
+ const _vD = "volumeDb";
264
+ const _vDo = "voiceDetection";
280
265
  const _va = "vad";
281
266
  const _var = "variables";
282
267
  const _ve = "version";
@@ -375,16 +360,6 @@ exports.ErrorWebsocketEvent$ = [3, n1, _EWE,
375
360
  [_t, _ev],
376
361
  [0, () => exports.VoiceErrorEvent$], 2
377
362
  ];
378
- exports.GetVoiceDefaultsInput$ = [3, n1, _GVDI,
379
- 0,
380
- [],
381
- []
382
- ];
383
- exports.GetVoiceDefaultsOutput$ = [3, n1, _GVDO,
384
- 0,
385
- [_vD, _in, _tE],
386
- [() => exports.VoiceDetectionDefaults$, () => exports.VoiceInterruptionDefaults$, () => exports.VoiceTurnEndDefaults$], 3
387
- ];
388
363
  exports.HangupCommandData$ = [3, n1, _HCD,
389
364
  0,
390
365
  [_t, _r],
@@ -442,7 +417,7 @@ exports.MediaDtmfFrame$ = [3, n1, _MDF,
442
417
  ];
443
418
  exports.MediaDuckFrame$ = [3, n1, _MDFe,
444
419
  0,
445
- [_t, _rI, _vDo, _rM],
420
+ [_t, _rI, _vD, _rM],
446
421
  [0, 0, 1, 1], 4
447
422
  ];
448
423
  exports.MediaErrorFrame$ = [3, n1, _MEF,
@@ -507,13 +482,13 @@ exports.MediaStartedAgent$ = [3, n1, _MSAe,
507
482
  ];
508
483
  exports.MediaStartedFrame$ = [3, n1, _MSF,
509
484
  0,
510
- [_t, _sI, _ag, _gI, _bS, _vD],
485
+ [_t, _sI, _ag, _gI, _bS, _vDo],
511
486
  [0, 0, () => exports.MediaStartedAgent$, 0, 0, () => exports.MediaVoiceDetection$], 2
512
487
  ];
513
488
  exports.MediaStartFrame$ = [3, n1, _MSFe,
514
489
  0,
515
- [_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal, _ag, _la, _pL, _aD, _dN, _var],
516
- [0, 0, 0, 1, 0, 2, 1, () => exports.MediaAudioFormat$, () => exports.MediaStartCaller$, () => exports.MediaStartAgent$, 64 | 0, 0, 2, 0, 0], 9
490
+ [_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal, _rIu, _ag, _la, _pL, _aD, _dN, _var],
491
+ [0, 0, 0, 1, 0, 2, 1, () => exports.MediaAudioFormat$, () => exports.MediaStartCaller$, 0, () => exports.MediaStartAgent$, 64 | 0, 0, 2, 0, 0], 9
517
492
  ];
518
493
  exports.MediaStopFrame$ = [3, n1, _MSFed,
519
494
  0,
@@ -577,7 +552,7 @@ exports.SayCommandAudioOptions$ = [3, n1, _SCAO,
577
552
  ];
578
553
  exports.SayCommandData$ = [3, n1, _SCD,
579
554
  0,
580
- [_te, _rI, _t, _int, _vo, _au],
555
+ [_te, _rI, _t, _in, _vo, _au],
581
556
  [0, 0, 0, 2, 0, () => exports.SayCommandAudioOptions$], 3
582
557
  ];
583
558
  exports.SayWebsocketCommand$ = [3, n1, _SWC,
@@ -607,7 +582,7 @@ exports.SendPlayOutput$ = [3, n1, _SPO,
607
582
  ];
608
583
  exports.SendSayInput$ = [3, n1, _SSI,
609
584
  0,
610
- [_te, _rI, _sIe, _int, _vo, _au],
585
+ [_te, _rI, _sIe, _in, _vo, _au],
611
586
  [0, 0, [0, 1], 2, 0, () => exports.SayCommandAudioOptions$], 3
612
587
  ];
613
588
  exports.SendSayOutput$ = [3, n1, _SSO,
@@ -747,7 +722,7 @@ exports.VoiceCallReplyEvent$ = [3, n1, _VCRE,
747
722
  ];
748
723
  exports.VoiceCallSayEvent$ = [3, n1, _VCSE,
749
724
  0,
750
- [_rI, _te, _int],
725
+ [_rI, _te, _in],
751
726
  [0, 0, 2], 3
752
727
  ];
753
728
  exports.VoiceCallStartedEvent$ = [3, n1, _VCSEo,
@@ -770,31 +745,16 @@ exports.VoiceConnectParams$ = [3, n1, _VCP,
770
745
  [_sIe, _aI, _pV, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
771
746
  [0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 2
772
747
  ];
773
- exports.VoiceDetectionDefaults$ = [3, n1, _VDD,
774
- 0,
775
- [_sMi, _sLD, _sLDp],
776
- [1, 1, 1], 3
777
- ];
778
748
  exports.VoiceErrorEvent$ = [3, n1, _VEE,
779
749
  0,
780
750
  [_t, _cod, _m, _ti],
781
751
  [0, 0, 0, 1], 4
782
752
  ];
783
- exports.VoiceInterruptionDefaults$ = [3, n1, _VID,
784
- 0,
785
- [_mW, _dAM, _dVD, _rAMe],
786
- [1, 1, 1, 1], 4
787
- ];
788
753
  exports.VoiceSpeechPayload$ = [3, n1, _VSP,
789
754
  0,
790
755
  [_eng, _la, _pL, _aD],
791
756
  [0, 64 | 0, 0, 2], 4
792
757
  ];
793
- exports.VoiceTurnEndDefaults$ = [3, n1, _VTED,
794
- 0,
795
- [_hM, _mWM, _mC, _lC],
796
- [1, 1, 1, 0], 4
797
- ];
798
758
  var LanguageCodeList = 64 | 0;
799
759
  var VoicePronunciationList = [1, n2, _VPL,
800
760
  0, () => exports.VoicePronunciation$
@@ -805,15 +765,12 @@ var VoiceList = [1, n1, _VL,
805
765
  ];
806
766
  exports.VoiceCallEvent$ = [4, n1, _VCE,
807
767
  0,
808
- [_sta, _tr, _aT, _rep, _sa, _pl, _inte, _l, _too, _end],
768
+ [_sta, _tr, _aT, _rep, _sa, _pl, _int, _l, _too, _end],
809
769
  [() => exports.VoiceCallStartedEvent$, () => exports.VoiceCallTranscriptionEvent$, () => exports.VoiceCallAgentTranscriptionEvent$, () => exports.VoiceCallReplyEvent$, () => exports.VoiceCallSayEvent$, () => exports.VoiceCallPlaybackEvent$, () => exports.VoiceCallInterruptionEvent$, () => exports.VoiceCallLanguageEvent$, () => exports.VoiceCallToolEvent$, () => exports.VoiceCallEndedEvent$]
810
770
  ];
811
771
  exports.DescribeVoiceProtocol$ = [9, n1, _DVP,
812
772
  { [_ht]: ["POST", "/v2/voice/describe", 200] }, () => exports.DescribeVoiceProtocolInput$, () => exports.DescribeVoiceProtocolOutput$
813
773
  ];
814
- exports.GetVoiceDefaults$ = [9, n1, _GVD,
815
- { [_ht]: ["GET", "/v2/voice/defaults", 200] }, () => exports.GetVoiceDefaultsInput$, () => exports.GetVoiceDefaultsOutput$
816
- ];
817
774
  exports.ListVoices$ = [9, n1, _LV,
818
775
  { [_ht]: ["GET", "/v2/voice/voices", 200] }, () => exports.ListVoicesInput$, () => exports.ListVoicesOutput$
819
776
  ];
@@ -1,6 +1,5 @@
1
1
  import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { DescribeVoiceProtocolCommand, } from "./commands/DescribeVoiceProtocolCommand";
3
- import { GetVoiceDefaultsCommand, } from "./commands/GetVoiceDefaultsCommand";
4
3
  import { ListVoicesCommand, } from "./commands/ListVoicesCommand";
5
4
  import { SendHangupCommand, } from "./commands/SendHangupCommand";
6
5
  import { SendPlayCommand } from "./commands/SendPlayCommand";
@@ -12,7 +11,6 @@ import { TextToSpeechCommand, } from "./commands/TextToSpeechCommand";
12
11
  import { WilmaVoiceClient } from "./WilmaVoiceClient";
13
12
  const commands = {
14
13
  DescribeVoiceProtocolCommand,
15
- GetVoiceDefaultsCommand,
16
14
  ListVoicesCommand,
17
15
  SendHangupCommand,
18
16
  SendPlayCommand,
@@ -1,5 +1,4 @@
1
1
  export * from "./DescribeVoiceProtocolCommand";
2
- export * from "./GetVoiceDefaultsCommand";
3
2
  export * from "./ListVoicesCommand";
4
3
  export * from "./SendHangupCommand";
5
4
  export * from "./SendPlayCommand";
@@ -2,11 +2,6 @@ export const VoicePronunciationEncoding = {
2
2
  ALIAS: "alias",
3
3
  IPA: "ipa",
4
4
  };
5
- export const VoiceLowConfidenceAction = {
6
- ANSWER: "answer",
7
- ASK_TO_REPEAT: "ask_to_repeat",
8
- SKIP: "skip",
9
- };
10
5
  export const VoiceEventType = {
11
6
  AGENT_TRANSCRIPTION: "agentTranscription",
12
7
  AUDIO: "audio",
@@ -12,9 +12,6 @@ const _DVPI = "DescribeVoiceProtocolInput";
12
12
  const _DVPO = "DescribeVoiceProtocolOutput";
13
13
  const _EWE = "ErrorWebsocketEvent";
14
14
  const _FE = "ForbiddenException";
15
- const _GVD = "GetVoiceDefaults";
16
- const _GVDI = "GetVoiceDefaultsInput";
17
- const _GVDO = "GetVoiceDefaultsOutput";
18
15
  const _HCD = "HangupCommandData";
19
16
  const _HWC = "HangupWebsocketCommand";
20
17
  const _IE = "InterruptionEvent";
@@ -104,15 +101,12 @@ const _VCSE = "VoiceCallSayEvent";
104
101
  const _VCSEo = "VoiceCallStartedEvent";
105
102
  const _VCTE = "VoiceCallToolEvent";
106
103
  const _VCTEo = "VoiceCallTranscriptionEvent";
107
- const _VDD = "VoiceDetectionDefaults";
108
104
  const _VE = "ValidationException";
109
105
  const _VEE = "VoiceErrorEvent";
110
- const _VID = "VoiceInterruptionDefaults";
111
106
  const _VL = "VoiceList";
112
107
  const _VP = "VoicePronunciation";
113
108
  const _VPL = "VoicePronunciationList";
114
109
  const _VSP = "VoiceSpeechPayload";
115
- const _VTED = "VoiceTurnEndDefaults";
116
110
  const _a = "audio/mpeg";
117
111
  const _aB = "audioBegin";
118
112
  const _aD = "autoDetect";
@@ -154,9 +148,7 @@ const _compl = "complete";
154
148
  const _con = "context";
155
149
  const _cr = "credential";
156
150
  const _d = "data";
157
- const _dAM = "duckAfterMs";
158
151
  const _dN = "dialedNumber";
159
- const _dVD = "duckVolumeDb";
160
152
  const _di = "digits";
161
153
  const _dr = "draft";
162
154
  const _dro = "dropped";
@@ -183,7 +175,6 @@ const _gI = "groupId";
183
175
  const _h = "hangup";
184
176
  const _hE = "httpError";
185
177
  const _hH = "httpHeader";
186
- const _hM = "holdMs";
187
178
  const _hQ = "httpQuery";
188
179
  const _hWC = "hangupWebsocketCommand";
189
180
  const _ht = "http";
@@ -192,17 +183,12 @@ const _iA = "inputAudio";
192
183
  const _iM = "initialMessage";
193
184
  const _iMn = "inputMode";
194
185
  const _iWE = "interruptionWebsocketEvent";
195
- const _in = "interruptions";
196
- const _int = "interruptible";
197
- const _inte = "interruption";
186
+ const _in = "interruptible";
187
+ const _int = "interruption";
198
188
  const _l = "language";
199
- const _lC = "lowConfidence";
200
189
  const _la = "languages";
201
190
  const _m = "message";
202
- const _mC = "minConfidence";
203
191
  const _mT = "mediaType";
204
- const _mW = "minWords";
205
- const _mWM = "maxWaitMs";
206
192
  const _me = "media";
207
193
  const _met = "metadata";
208
194
  const _n = "name";
@@ -225,8 +211,8 @@ const _pro = "pronunciations";
225
211
  const _pu = "purpose";
226
212
  const _r = "reason";
227
213
  const _rAM = "resumeAtMs";
228
- const _rAMe = "restoreAfterMs";
229
214
  const _rI = "replyId";
215
+ const _rIu = "runId";
230
216
  const _rM = "rampMs";
231
217
  const _rWE = "replyWebsocketEvent";
232
218
  const _re = "restore";
@@ -257,7 +243,6 @@ const _star = "start";
257
243
  const _sto = "stop";
258
244
  const _t = "type";
259
245
  const _tCI = "toolCallId";
260
- const _tE = "turnEnd";
261
246
  const _tI = "traceId";
262
247
  const _tN = "toolName";
263
248
  const _tWC = "transferWebsocketCommand";
@@ -270,8 +255,8 @@ const _tr = "transcription";
270
255
  const _tra = "transfer";
271
256
  const _u = "uri";
272
257
  const _v = "voices";
273
- const _vD = "voiceDetection";
274
- const _vDo = "volumeDb";
258
+ const _vD = "volumeDb";
259
+ const _vDo = "voiceDetection";
275
260
  const _va = "vad";
276
261
  const _var = "variables";
277
262
  const _ve = "version";
@@ -370,16 +355,6 @@ export var ErrorWebsocketEvent$ = [3, n1, _EWE,
370
355
  [_t, _ev],
371
356
  [0, () => VoiceErrorEvent$], 2
372
357
  ];
373
- export var GetVoiceDefaultsInput$ = [3, n1, _GVDI,
374
- 0,
375
- [],
376
- []
377
- ];
378
- export var GetVoiceDefaultsOutput$ = [3, n1, _GVDO,
379
- 0,
380
- [_vD, _in, _tE],
381
- [() => VoiceDetectionDefaults$, () => VoiceInterruptionDefaults$, () => VoiceTurnEndDefaults$], 3
382
- ];
383
358
  export var HangupCommandData$ = [3, n1, _HCD,
384
359
  0,
385
360
  [_t, _r],
@@ -437,7 +412,7 @@ export var MediaDtmfFrame$ = [3, n1, _MDF,
437
412
  ];
438
413
  export var MediaDuckFrame$ = [3, n1, _MDFe,
439
414
  0,
440
- [_t, _rI, _vDo, _rM],
415
+ [_t, _rI, _vD, _rM],
441
416
  [0, 0, 1, 1], 4
442
417
  ];
443
418
  export var MediaErrorFrame$ = [3, n1, _MEF,
@@ -502,13 +477,13 @@ export var MediaStartedAgent$ = [3, n1, _MSAe,
502
477
  ];
503
478
  export var MediaStartedFrame$ = [3, n1, _MSF,
504
479
  0,
505
- [_t, _sI, _ag, _gI, _bS, _vD],
480
+ [_t, _sI, _ag, _gI, _bS, _vDo],
506
481
  [0, 0, () => MediaStartedAgent$, 0, 0, () => MediaVoiceDetection$], 2
507
482
  ];
508
483
  export var MediaStartFrame$ = [3, n1, _MSFe,
509
484
  0,
510
- [_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal, _ag, _la, _pL, _aD, _dN, _var],
511
- [0, 0, 0, 1, 0, 2, 1, () => MediaAudioFormat$, () => MediaStartCaller$, () => MediaStartAgent$, 64 | 0, 0, 2, 0, 0], 9
485
+ [_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal, _rIu, _ag, _la, _pL, _aD, _dN, _var],
486
+ [0, 0, 0, 1, 0, 2, 1, () => MediaAudioFormat$, () => MediaStartCaller$, 0, () => MediaStartAgent$, 64 | 0, 0, 2, 0, 0], 9
512
487
  ];
513
488
  export var MediaStopFrame$ = [3, n1, _MSFed,
514
489
  0,
@@ -572,7 +547,7 @@ export var SayCommandAudioOptions$ = [3, n1, _SCAO,
572
547
  ];
573
548
  export var SayCommandData$ = [3, n1, _SCD,
574
549
  0,
575
- [_te, _rI, _t, _int, _vo, _au],
550
+ [_te, _rI, _t, _in, _vo, _au],
576
551
  [0, 0, 0, 2, 0, () => SayCommandAudioOptions$], 3
577
552
  ];
578
553
  export var SayWebsocketCommand$ = [3, n1, _SWC,
@@ -602,7 +577,7 @@ export var SendPlayOutput$ = [3, n1, _SPO,
602
577
  ];
603
578
  export var SendSayInput$ = [3, n1, _SSI,
604
579
  0,
605
- [_te, _rI, _sIe, _int, _vo, _au],
580
+ [_te, _rI, _sIe, _in, _vo, _au],
606
581
  [0, 0, [0, 1], 2, 0, () => SayCommandAudioOptions$], 3
607
582
  ];
608
583
  export var SendSayOutput$ = [3, n1, _SSO,
@@ -742,7 +717,7 @@ export var VoiceCallReplyEvent$ = [3, n1, _VCRE,
742
717
  ];
743
718
  export var VoiceCallSayEvent$ = [3, n1, _VCSE,
744
719
  0,
745
- [_rI, _te, _int],
720
+ [_rI, _te, _in],
746
721
  [0, 0, 2], 3
747
722
  ];
748
723
  export var VoiceCallStartedEvent$ = [3, n1, _VCSEo,
@@ -765,31 +740,16 @@ export var VoiceConnectParams$ = [3, n1, _VCP,
765
740
  [_sIe, _aI, _pV, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
766
741
  [0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
767
742
  ];
768
- export var VoiceDetectionDefaults$ = [3, n1, _VDD,
769
- 0,
770
- [_sMi, _sLD, _sLDp],
771
- [1, 1, 1], 3
772
- ];
773
743
  export var VoiceErrorEvent$ = [3, n1, _VEE,
774
744
  0,
775
745
  [_t, _cod, _m, _ti],
776
746
  [0, 0, 0, 1], 4
777
747
  ];
778
- export var VoiceInterruptionDefaults$ = [3, n1, _VID,
779
- 0,
780
- [_mW, _dAM, _dVD, _rAMe],
781
- [1, 1, 1, 1], 4
782
- ];
783
748
  export var VoiceSpeechPayload$ = [3, n1, _VSP,
784
749
  0,
785
750
  [_eng, _la, _pL, _aD],
786
751
  [0, 64 | 0, 0, 2], 4
787
752
  ];
788
- export var VoiceTurnEndDefaults$ = [3, n1, _VTED,
789
- 0,
790
- [_hM, _mWM, _mC, _lC],
791
- [1, 1, 1, 0], 4
792
- ];
793
753
  var LanguageCodeList = 64 | 0;
794
754
  var VoicePronunciationList = [1, n2, _VPL,
795
755
  0, () => VoicePronunciation$
@@ -800,15 +760,12 @@ var VoiceList = [1, n1, _VL,
800
760
  ];
801
761
  export var VoiceCallEvent$ = [4, n1, _VCE,
802
762
  0,
803
- [_sta, _tr, _aT, _rep, _sa, _pl, _inte, _l, _too, _end],
763
+ [_sta, _tr, _aT, _rep, _sa, _pl, _int, _l, _too, _end],
804
764
  [() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () => VoiceCallEndedEvent$]
805
765
  ];
806
766
  export var DescribeVoiceProtocol$ = [9, n1, _DVP,
807
767
  { [_ht]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
808
768
  ];
809
- export var GetVoiceDefaults$ = [9, n1, _GVD,
810
- { [_ht]: ["GET", "/v2/voice/defaults", 200] }, () => GetVoiceDefaultsInput$, () => GetVoiceDefaultsOutput$
811
- ];
812
769
  export var ListVoices$ = [9, n1, _LV,
813
770
  { [_ht]: ["GET", "/v2/voice/voices", 200] }, () => ListVoicesInput$, () => ListVoicesOutput$
814
771
  ];
@@ -1,6 +1,5 @@
1
1
  import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { type DescribeVoiceProtocolCommandInput, type DescribeVoiceProtocolCommandOutput } from "./commands/DescribeVoiceProtocolCommand";
3
- import { type GetVoiceDefaultsCommandInput, type GetVoiceDefaultsCommandOutput } from "./commands/GetVoiceDefaultsCommand";
4
3
  import { type ListVoicesCommandInput, type ListVoicesCommandOutput } from "./commands/ListVoicesCommand";
5
4
  import { type SendHangupCommandInput, type SendHangupCommandOutput } from "./commands/SendHangupCommand";
6
5
  import { type SendPlayCommandInput, type SendPlayCommandOutput } from "./commands/SendPlayCommand";
@@ -18,13 +17,6 @@ export interface WilmaVoice {
18
17
  describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, options?: __HttpHandlerOptions): Promise<DescribeVoiceProtocolCommandOutput>;
19
18
  describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, cb: (err: any, data?: DescribeVoiceProtocolCommandOutput) => void): void;
20
19
  describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeVoiceProtocolCommandOutput) => void): void;
21
- /**
22
- * @see {@link GetVoiceDefaultsCommand}
23
- */
24
- getVoiceDefaults(): Promise<GetVoiceDefaultsCommandOutput>;
25
- getVoiceDefaults(args: GetVoiceDefaultsCommandInput, options?: __HttpHandlerOptions): Promise<GetVoiceDefaultsCommandOutput>;
26
- getVoiceDefaults(args: GetVoiceDefaultsCommandInput, cb: (err: any, data?: GetVoiceDefaultsCommandOutput) => void): void;
27
- getVoiceDefaults(args: GetVoiceDefaultsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetVoiceDefaultsCommandOutput) => void): void;
28
20
  /**
29
21
  * @see {@link ListVoicesCommand}
30
22
  */
@@ -6,7 +6,6 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
6
6
  import type { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
7
7
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
8
8
  import type { DescribeVoiceProtocolCommandInput, DescribeVoiceProtocolCommandOutput } from "./commands/DescribeVoiceProtocolCommand";
9
- import type { GetVoiceDefaultsCommandInput, GetVoiceDefaultsCommandOutput } from "./commands/GetVoiceDefaultsCommand";
10
9
  import type { ListVoicesCommandInput, ListVoicesCommandOutput } from "./commands/ListVoicesCommand";
11
10
  import type { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
12
11
  import type { SendPlayCommandInput, SendPlayCommandOutput } from "./commands/SendPlayCommand";
@@ -21,11 +20,11 @@ export { __Client };
21
20
  /**
22
21
  * @public
23
22
  */
24
- export type ServiceInputTypes = DescribeVoiceProtocolCommandInput | GetVoiceDefaultsCommandInput | ListVoicesCommandInput | SendHangupCommandInput | SendPlayCommandInput | SendSayCommandInput | SendStopCommandInput | SendTransferCommandInput | StreamCallEventsCommandInput | TextToSpeechCommandInput;
23
+ export type ServiceInputTypes = DescribeVoiceProtocolCommandInput | ListVoicesCommandInput | SendHangupCommandInput | SendPlayCommandInput | SendSayCommandInput | SendStopCommandInput | SendTransferCommandInput | StreamCallEventsCommandInput | TextToSpeechCommandInput;
25
24
  /**
26
25
  * @public
27
26
  */
28
- export type ServiceOutputTypes = DescribeVoiceProtocolCommandOutput | GetVoiceDefaultsCommandOutput | ListVoicesCommandOutput | SendHangupCommandOutput | SendPlayCommandOutput | SendSayCommandOutput | SendStopCommandOutput | SendTransferCommandOutput | StreamCallEventsCommandOutput | TextToSpeechCommandOutput;
27
+ export type ServiceOutputTypes = DescribeVoiceProtocolCommandOutput | ListVoicesCommandOutput | SendHangupCommandOutput | SendPlayCommandOutput | SendSayCommandOutput | SendStopCommandOutput | SendTransferCommandOutput | StreamCallEventsCommandOutput | TextToSpeechCommandOutput;
29
28
  /**
30
29
  * @public
31
30
  */
@@ -313,6 +313,7 @@ declare const DescribeVoiceProtocolCommand_base: {
313
313
  * // sessionId: "STRING_VALUE", // required
314
314
  * // resume: true || false, // required
315
315
  * // resumeAtMs: Number("int"), // required
316
+ * // runId: "STRING_VALUE",
316
317
  * // audio: { // MediaAudioFormat
317
318
  * // encoding: "pcm_s16le", // required
318
319
  * // sampleRate: Number("int"), // required
@@ -1,5 +1,4 @@
1
1
  export * from "./DescribeVoiceProtocolCommand";
2
- export * from "./GetVoiceDefaultsCommand";
3
2
  export * from "./ListVoicesCommand";
4
3
  export * from "./SendHangupCommand";
5
4
  export * from "./SendPlayCommand";
@@ -16,28 +16,6 @@ export declare const VoicePronunciationEncoding: {
16
16
  * @public
17
17
  */
18
18
  export type VoicePronunciationEncoding = (typeof VoicePronunciationEncoding)[keyof typeof VoicePronunciationEncoding];
19
- /**
20
- * @public
21
- * @enum
22
- */
23
- export declare const VoiceLowConfidenceAction: {
24
- /**
25
- * The agent answers the words as they were recognised.
26
- */
27
- readonly ANSWER: "answer";
28
- /**
29
- * The agent asks the caller to repeat.
30
- */
31
- readonly ASK_TO_REPEAT: "ask_to_repeat";
32
- /**
33
- * The agent does not answer the turn.
34
- */
35
- readonly SKIP: "skip";
36
- };
37
- /**
38
- * @public
39
- */
40
- export type VoiceLowConfidenceAction = (typeof VoiceLowConfidenceAction)[keyof typeof VoiceLowConfidenceAction];
41
19
  /**
42
20
  * @public
43
21
  * @enum
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
2
- import type { MediaAudioBeginFrameType, MediaAudioEncoding, MediaAudioEndFrameType, MediaDtmfFrameType, MediaDuckFrameType, MediaErrorFrameType, MediaFinishedFrameType, MediaFinishFrameType, MediaFinishReason, MediaHangupFrameType, MediaLanguageFrameType, MediaParty, MediaPlaybackEvent, MediaPlaybackFrameType, MediaPlaybackStopCause, MediaRestoreFrameType, MediaRunPurpose, MediaStartedFrameType, MediaStartFrameType, MediaStopFrameType, MediaTranscriptionFrameType, MediaTransferFrameType, MediaVadFrameType, VoiceAudioEncoding, VoiceCallEndReason, VoiceCallToolPhase, VoiceCommandType, VoiceControlAction, VoiceEventType, VoiceInputMode, VoiceLowConfidenceAction, VoicePronunciationEncoding, VoiceTranscriptionDropReason } from "./enums";
2
+ import type { MediaAudioBeginFrameType, MediaAudioEncoding, MediaAudioEndFrameType, MediaDtmfFrameType, MediaDuckFrameType, MediaErrorFrameType, MediaFinishedFrameType, MediaFinishFrameType, MediaFinishReason, MediaHangupFrameType, MediaLanguageFrameType, MediaParty, MediaPlaybackEvent, MediaPlaybackFrameType, MediaPlaybackStopCause, MediaRestoreFrameType, MediaRunPurpose, MediaStartedFrameType, MediaStartFrameType, MediaStopFrameType, MediaTranscriptionFrameType, MediaTransferFrameType, MediaVadFrameType, VoiceAudioEncoding, VoiceCallEndReason, VoiceCallToolPhase, VoiceCommandType, VoiceControlAction, VoiceEventType, VoiceInputMode, VoicePronunciationEncoding, VoiceTranscriptionDropReason } from "./enums";
3
3
  /**
4
4
  * A pronunciation rule for one phrase. Belongs to a LANGUAGE, not to the agent: 'Wildix' is
5
5
  * respelled differently for an Italian and a German voice, so one list shared ACROSS languages
@@ -1229,6 +1229,11 @@ export interface MediaStartFrame {
1229
1229
  * @public
1230
1230
  */
1231
1231
  resumeAtMs: number;
1232
+ /**
1233
+ * Id of this run on the PBX. The same on every connection of the run; a later run with the same `sessionId` has another `runId`. Absent: every connection with this `sessionId` belongs to one run.
1234
+ * @public
1235
+ */
1236
+ runId?: string | undefined;
1232
1237
  /**
1233
1238
  * Format of the binary PBX audio (`MediaPbxAudio`). Channel 0 is the caller; channel 1, when present, is the callee. Samples interleave. The cloud accepts only 8000 Hz and one channel at this time; another format closes the socket with 4400.
1234
1239
  * @public
@@ -1864,104 +1869,6 @@ export interface DescribeVoiceProtocolOutput {
1864
1869
  */
1865
1870
  media?: MediaProtocolFrames | undefined;
1866
1871
  }
1867
- /**
1868
- * @public
1869
- */
1870
- export interface GetVoiceDefaultsInput {
1871
- }
1872
- /**
1873
- * Defaults of the tuning members of `VoiceChannelSettings.interruptions`.
1874
- * @public
1875
- */
1876
- export interface VoiceInterruptionDefaults {
1877
- /**
1878
- * Minimum number of caller words that count as an interruption.
1879
- * @public
1880
- */
1881
- minWords: number;
1882
- /**
1883
- * Caller speech in ms before the agent's reply is lowered.
1884
- * @public
1885
- */
1886
- duckAfterMs: number;
1887
- /**
1888
- * Volume in dB of a lowered reply.
1889
- * @public
1890
- */
1891
- duckVolumeDb: number;
1892
- /**
1893
- * Caller silence in ms before a lowered reply gets its volume back.
1894
- * @public
1895
- */
1896
- restoreAfterMs: number;
1897
- }
1898
- /**
1899
- * Defaults of `VoiceChannelSettings.turnEnd`.
1900
- * @public
1901
- */
1902
- export interface VoiceTurnEndDefaults {
1903
- /**
1904
- * Default of `holdMs`.
1905
- * @public
1906
- */
1907
- holdMs: number;
1908
- /**
1909
- * Default of `maxWaitMs`.
1910
- * @public
1911
- */
1912
- maxWaitMs: number;
1913
- /**
1914
- * Default of `minConfidence`. 0: off.
1915
- * @public
1916
- */
1917
- minConfidence: number;
1918
- /**
1919
- * Default of `lowConfidence`.
1920
- * @public
1921
- */
1922
- lowConfidence: VoiceLowConfidenceAction;
1923
- }
1924
- /**
1925
- * Defaults of `VoiceChannelSettings.voiceDetection`.
1926
- * @public
1927
- */
1928
- export interface VoiceDetectionDefaults {
1929
- /**
1930
- * Silence in ms that ends the caller speech.
1931
- * @public
1932
- */
1933
- silenceMs: number;
1934
- /**
1935
- * Mean frame level in dBFS below which caller audio is silence.
1936
- * @public
1937
- */
1938
- silenceLevelDb: number;
1939
- /**
1940
- * Mean frame level in dBFS from which caller audio is speech.
1941
- * @public
1942
- */
1943
- speechLevelDb: number;
1944
- }
1945
- /**
1946
- * @public
1947
- */
1948
- export interface GetVoiceDefaultsOutput {
1949
- /**
1950
- * Defaults of `VoiceChannelSettings.voiceDetection`.
1951
- * @public
1952
- */
1953
- voiceDetection: VoiceDetectionDefaults;
1954
- /**
1955
- * Defaults of the tuning members of `VoiceChannelSettings.interruptions`.
1956
- * @public
1957
- */
1958
- interruptions: VoiceInterruptionDefaults;
1959
- /**
1960
- * Defaults of `VoiceChannelSettings.turnEnd`.
1961
- * @public
1962
- */
1963
- turnEnd: VoiceTurnEndDefaults;
1964
- }
1965
1872
  /**
1966
1873
  * @public
1967
1874
  */
@@ -22,8 +22,6 @@ export declare var ControlWebsocketEvent$: StaticStructureSchema;
22
22
  export declare var DescribeVoiceProtocolInput$: StaticStructureSchema;
23
23
  export declare var DescribeVoiceProtocolOutput$: StaticStructureSchema;
24
24
  export declare var ErrorWebsocketEvent$: StaticStructureSchema;
25
- export declare var GetVoiceDefaultsInput$: StaticStructureSchema;
26
- export declare var GetVoiceDefaultsOutput$: StaticStructureSchema;
27
25
  export declare var HangupCommandData$: StaticStructureSchema;
28
26
  export declare var HangupWebsocketCommand$: StaticStructureSchema;
29
27
  export declare var InterruptionEvent$: StaticStructureSchema;
@@ -101,14 +99,10 @@ export declare var VoiceCallStartedEvent$: StaticStructureSchema;
101
99
  export declare var VoiceCallToolEvent$: StaticStructureSchema;
102
100
  export declare var VoiceCallTranscriptionEvent$: StaticStructureSchema;
103
101
  export declare var VoiceConnectParams$: StaticStructureSchema;
104
- export declare var VoiceDetectionDefaults$: StaticStructureSchema;
105
102
  export declare var VoiceErrorEvent$: StaticStructureSchema;
106
- export declare var VoiceInterruptionDefaults$: StaticStructureSchema;
107
103
  export declare var VoiceSpeechPayload$: StaticStructureSchema;
108
- export declare var VoiceTurnEndDefaults$: StaticStructureSchema;
109
104
  export declare var VoiceCallEvent$: StaticUnionSchema;
110
105
  export declare var DescribeVoiceProtocol$: StaticOperationSchema;
111
- export declare var GetVoiceDefaults$: StaticOperationSchema;
112
106
  export declare var ListVoices$: StaticOperationSchema;
113
107
  export declare var SendHangup$: StaticOperationSchema;
114
108
  export declare var SendPlay$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wilma-voice-client",
3
3
  "description": "@wildix/wilma-voice-client client",
4
- "version": "0.0.47",
4
+ "version": "0.0.49",
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",
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetVoiceDefaultsCommand = exports.$Command = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
- const endpoints_1 = require("@smithy/core/endpoints");
7
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
- const schemas_0_1 = require("../schemas/schemas_0");
9
- class GetVoiceDefaultsCommand extends client_1.Command
10
- .classBuilder()
11
- .ep(EndpointParameters_1.commonParams)
12
- .m(function (Command, cs, config, o) {
13
- return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
14
- })
15
- .s("WilmaVoice", "GetVoiceDefaults", {})
16
- .n("WilmaVoiceClient", "GetVoiceDefaultsCommand")
17
- .sc(schemas_0_1.GetVoiceDefaults$)
18
- .build() {
19
- }
20
- exports.GetVoiceDefaultsCommand = GetVoiceDefaultsCommand;
@@ -1,16 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetVoiceDefaults$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetVoiceDefaultsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("WilmaVoice", "GetVoiceDefaults", {})
13
- .n("WilmaVoiceClient", "GetVoiceDefaultsCommand")
14
- .sc(GetVoiceDefaults$)
15
- .build() {
16
- }
@@ -1,92 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { GetVoiceDefaultsInput, GetVoiceDefaultsOutput } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, WilmaVoiceClientResolvedConfig } from "../WilmaVoiceClient";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link GetVoiceDefaultsCommand}.
14
- */
15
- export interface GetVoiceDefaultsCommandInput extends GetVoiceDefaultsInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link GetVoiceDefaultsCommand}.
21
- */
22
- export interface GetVoiceDefaultsCommandOutput extends GetVoiceDefaultsOutput, __MetadataBearer {
23
- }
24
- declare const GetVoiceDefaultsCommand_base: {
25
- new (input: GetVoiceDefaultsCommandInput): import("@smithy/core/client").CommandImpl<GetVoiceDefaultsCommandInput, GetVoiceDefaultsCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [GetVoiceDefaultsCommandInput]): import("@smithy/core/client").CommandImpl<GetVoiceDefaultsCommandInput, GetVoiceDefaultsCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Returns the voice channel tuning that applies to a call when the agent sets no value. The values can change without an agent change.
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { WilmaVoiceClient, GetVoiceDefaultsCommand } from "@wildix/wilma-voice-client"; // ES Modules import
35
- * // const { WilmaVoiceClient, GetVoiceDefaultsCommand } = require("@wildix/wilma-voice-client"); // CommonJS import
36
- * // import type { WilmaVoiceClientConfig } from "@wildix/wilma-voice-client";
37
- * const config = {}; // type is WilmaVoiceClientConfig
38
- * const client = new WilmaVoiceClient(config);
39
- * const input = {};
40
- * const command = new GetVoiceDefaultsCommand(input);
41
- * const response = await client.send(command);
42
- * // { // GetVoiceDefaultsOutput
43
- * // voiceDetection: { // VoiceDetectionDefaults
44
- * // silenceMs: Number("int"), // required
45
- * // silenceLevelDb: Number("int"), // required
46
- * // speechLevelDb: Number("int"), // required
47
- * // },
48
- * // interruptions: { // VoiceInterruptionDefaults
49
- * // minWords: Number("int"), // required
50
- * // duckAfterMs: Number("int"), // required
51
- * // duckVolumeDb: Number("int"), // required
52
- * // restoreAfterMs: Number("int"), // required
53
- * // },
54
- * // turnEnd: { // VoiceTurnEndDefaults
55
- * // holdMs: Number("int"), // required
56
- * // maxWaitMs: Number("int"), // required
57
- * // minConfidence: Number("double"), // required
58
- * // lowConfidence: "answer" || "ask_to_repeat" || "skip", // required
59
- * // },
60
- * // };
61
- *
62
- * ```
63
- *
64
- * @param GetVoiceDefaultsCommandInput - {@link GetVoiceDefaultsCommandInput}
65
- * @returns {@link GetVoiceDefaultsCommandOutput}
66
- * @see {@link GetVoiceDefaultsCommandInput} for command's `input` shape.
67
- * @see {@link GetVoiceDefaultsCommandOutput} for command's `response` shape.
68
- * @see {@link WilmaVoiceClientResolvedConfig | config} for WilmaVoiceClient's `config` shape.
69
- *
70
- * @throws {@link ValidationException} (client fault)
71
- *
72
- * @throws {@link ForbiddenException} (client fault)
73
- *
74
- * @throws {@link WilmaVoiceServiceException}
75
- * <p>Base exception class for all service exceptions from WilmaVoice service.</p>
76
- *
77
- *
78
- * @public
79
- */
80
- export declare class GetVoiceDefaultsCommand extends GetVoiceDefaultsCommand_base {
81
- /** @internal type navigation helper, not in runtime. */
82
- protected static __types: {
83
- api: {
84
- input: {};
85
- output: GetVoiceDefaultsOutput;
86
- };
87
- sdk: {
88
- input: GetVoiceDefaultsCommandInput;
89
- output: GetVoiceDefaultsCommandOutput;
90
- };
91
- };
92
- }