@wildix/wilma-voice-client 0.0.40 → 0.0.41

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.
@@ -12,6 +12,9 @@ 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";
15
18
  const _HCD = "HangupCommandData";
16
19
  const _HWC = "HangupWebsocketCommand";
17
20
  const _IE = "InterruptionEvent";
@@ -20,6 +23,31 @@ const _LV = "ListVoices";
20
23
  const _LVI = "ListVoicesInput";
21
24
  const _LVO = "ListVoicesOutput";
22
25
  const _MA = "Mp3Audio";
26
+ const _MABF = "MediaAudioBeginFrame";
27
+ const _MAEF = "MediaAudioEndFrame";
28
+ const _MAF = "MediaAudioFormat";
29
+ const _MCF = "MediaCloudFrames";
30
+ const _MDF = "MediaDtmfFrame";
31
+ const _MDFe = "MediaDuckFrame";
32
+ const _MEF = "MediaErrorFrame";
33
+ const _MFF = "MediaFinishedFrame";
34
+ const _MFFe = "MediaFinishFrame";
35
+ const _MHF = "MediaHangupFrame";
36
+ const _MLF = "MediaLanguageFrame";
37
+ const _MPF = "MediaPbxFrames";
38
+ const _MPFe = "MediaPlaybackFrame";
39
+ const _MPFed = "MediaProtocolFrames";
40
+ const _MRF = "MediaRestoreFrame";
41
+ const _MSA = "MediaStartAgent";
42
+ const _MSAe = "MediaStartedAgent";
43
+ const _MSC = "MediaStartCaller";
44
+ const _MSF = "MediaStartedFrame";
45
+ const _MSFe = "MediaStartFrame";
46
+ const _MSFed = "MediaStopFrame";
47
+ const _MTF = "MediaTranscriptionFrame";
48
+ const _MTFe = "MediaTransferFrame";
49
+ const _MVD = "MediaVoiceDetection";
50
+ const _MVF = "MediaVadFrame";
23
51
  const _NFE = "NotFoundException";
24
52
  const _PCD = "PlayCommandData";
25
53
  const _PE = "PlaybackEvent";
@@ -76,22 +104,29 @@ const _VCSE = "VoiceCallSayEvent";
76
104
  const _VCSEo = "VoiceCallStartedEvent";
77
105
  const _VCTE = "VoiceCallToolEvent";
78
106
  const _VCTEo = "VoiceCallTranscriptionEvent";
107
+ const _VDD = "VoiceDetectionDefaults";
79
108
  const _VE = "ValidationException";
80
109
  const _VEE = "VoiceErrorEvent";
110
+ const _VID = "VoiceInterruptionDefaults";
81
111
  const _VL = "VoiceList";
82
112
  const _VP = "VoicePronunciation";
83
113
  const _VPL = "VoicePronunciationList";
84
114
  const _VSP = "VoiceSpeechPayload";
115
+ const _VTED = "VoiceTurnEndDefaults";
85
116
  const _a = "audio/mpeg";
86
- const _aD = "agentDraft";
87
- const _aDu = "autoDetect";
117
+ const _aB = "audioBegin";
118
+ const _aD = "autoDetect";
119
+ const _aDg = "agentDraft";
120
+ const _aE = "audioEnd";
88
121
  const _aI = "agentId";
122
+ const _aM = "atMs";
89
123
  const _aN = "agentName";
90
124
  const _aT = "agentTranscription";
91
125
  const _aTWE = "agentTranscriptionWebsocketEvent";
92
126
  const _aV = "agentVersion";
93
127
  const _aWE = "audioWebsocketEvent";
94
128
  const _ac = "action";
129
+ const _ag = "agent";
95
130
  const _as = "as";
96
131
  const _au = "audio";
97
132
  const _bS = "backgroundSound";
@@ -106,20 +141,32 @@ const _cP = "connectParams";
106
141
  const _cT = "contentType";
107
142
  const _cWE = "completeWebsocketEvent";
108
143
  const _cWEo = "controlWebsocketEvent";
109
- const _ca = "category";
144
+ const _ca = "cause";
145
+ const _cal = "caller";
146
+ const _cat = "category";
110
147
  const _ch = "channels";
148
+ const _cl = "cloud";
111
149
  const _co = "confidence";
112
150
  const _cod = "code";
113
151
  const _com = "command";
114
- const _comp = "complete";
115
- const _compa = "company";
152
+ const _comp = "company";
153
+ const _compl = "complete";
116
154
  const _con = "context";
117
155
  const _cr = "credential";
118
156
  const _d = "data";
157
+ const _dAM = "duckAfterMs";
119
158
  const _dN = "dialedNumber";
159
+ const _dVD = "duckVolumeDb";
160
+ const _di = "digits";
161
+ const _dr = "draft";
162
+ const _dt = "dtmf";
163
+ const _du = "duck";
120
164
  const _e = "error";
165
+ const _eD = "energyDb";
166
+ const _eM = "endMs";
121
167
  const _eT = "endTime";
122
168
  const _eWE = "errorWebsocketEvent";
169
+ const _em = "email";
123
170
  const _en = "encoding";
124
171
  const _end = "ended";
125
172
  const _eng = "engine";
@@ -128,47 +175,70 @@ const _eve = "events";
128
175
  const _ex = "extension";
129
176
  const _f = "final";
130
177
  const _fI = "flowIndex";
178
+ const _fi = "finished";
179
+ const _fin = "finish";
131
180
  const _fr = "from";
132
181
  const _gI = "groupId";
133
- const _h = "http";
182
+ const _h = "hangup";
134
183
  const _hE = "httpError";
135
184
  const _hH = "httpHeader";
185
+ const _hM = "holdMs";
136
186
  const _hQ = "httpQuery";
137
187
  const _hWC = "hangupWebsocketCommand";
188
+ const _ht = "http";
138
189
  const _i = "id";
139
190
  const _iA = "inputAudio";
140
191
  const _iM = "initialMessage";
141
192
  const _iMn = "inputMode";
142
193
  const _iWE = "interruptionWebsocketEvent";
143
- const _in = "interruptible";
144
- const _int = "interruption";
194
+ const _in = "interruptions";
195
+ const _int = "interruptible";
196
+ const _inte = "interruption";
145
197
  const _l = "language";
146
198
  const _la = "languages";
147
199
  const _m = "message";
200
+ const _mC = "minConfidence";
148
201
  const _mT = "mediaType";
149
- const _me = "metadata";
202
+ const _mW = "minWords";
203
+ const _me = "media";
204
+ const _met = "metadata";
150
205
  const _n = "name";
206
+ const _nu = "number";
151
207
  const _oA = "outputAudio";
152
208
  const _oT = "originalText";
153
209
  const _p = "phrase";
154
210
  const _pL = "preferredLanguage";
211
+ const _pM = "playedMs";
155
212
  const _pT = "playedText";
156
213
  const _pV = "protocolVersion";
157
214
  const _pWC = "playWebsocketCommand";
158
215
  const _pWE = "playbackWebsocketEvent";
216
+ const _pa = "party";
217
+ const _pb = "pbx";
159
218
  const _ph = "phase";
160
219
  const _pl = "playback";
161
220
  const _pr = "provider";
162
221
  const _pro = "pronunciations";
222
+ const _pu = "purpose";
163
223
  const _r = "reason";
224
+ const _rAM = "resumeAtMs";
225
+ const _rAMe = "restoreAfterMs";
164
226
  const _rI = "replyId";
227
+ const _rM = "rampMs";
165
228
  const _rWE = "replyWebsocketEvent";
166
- const _re = "reply";
229
+ const _re = "restore";
230
+ const _rep = "reply";
231
+ const _res = "resume";
232
+ const _ret = "retryable";
167
233
  const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
168
234
  const _sEWE = "sessionEndedWebsocketEvent";
169
235
  const _sI = "streamId";
170
236
  const _sIe = "sessionId";
171
- const _sM = "startMessage";
237
+ const _sLD = "silenceLevelDb";
238
+ const _sLDp = "speechLevelDb";
239
+ const _sM = "startMs";
240
+ const _sMi = "silenceMs";
241
+ const _sMt = "startMessage";
172
242
  const _sR = "sampleRate";
173
243
  const _sSWE = "sessionStartedWebsocketEvent";
174
244
  const _sT = "startTime";
@@ -176,11 +246,15 @@ const _sWC = "sayWebsocketCommand";
176
246
  const _sWCt = "stopWebsocketCommand";
177
247
  const _sa = "say";
178
248
  const _se = "seq";
179
- const _sp = "speech";
249
+ const _sp = "speaking";
250
+ const _spe = "speech";
180
251
  const _st = "streaming";
181
252
  const _sta = "started";
253
+ const _star = "start";
254
+ const _sto = "stop";
182
255
  const _t = "type";
183
256
  const _tCI = "toolCallId";
257
+ const _tE = "turnEnd";
184
258
  const _tI = "traceId";
185
259
  const _tN = "toolName";
186
260
  const _tWC = "transferWebsocketCommand";
@@ -190,9 +264,14 @@ const _ti = "time";
190
264
  const _to = "to";
191
265
  const _too = "tool";
192
266
  const _tr = "transcription";
267
+ const _tra = "transfer";
193
268
  const _u = "uri";
194
269
  const _v = "voices";
195
- const _va = "variables";
270
+ const _vD = "voiceDetection";
271
+ const _vDo = "volumeDb";
272
+ const _va = "vad";
273
+ const _var = "variables";
274
+ const _ve = "version";
196
275
  const _vo = "voice";
197
276
  const n0 = "smithy.framework";
198
277
  const n1 = "wildix.wilma.voice";
@@ -280,14 +359,24 @@ export var DescribeVoiceProtocolInput$ = [3, n1, _DVPI,
280
359
  ];
281
360
  export var DescribeVoiceProtocolOutput$ = [3, n1, _DVPO,
282
361
  0,
283
- [_cP, _aWE, _tWE, _aTWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC, _cE],
284
- [() => VoiceConnectParams$, () => AudioWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => AgentTranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => ControlWebsocketEvent$, () => SessionStartedWebsocketEvent$, () => SessionEndedWebsocketEvent$, () => ErrorWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$, () => VoiceCallEvent$]
362
+ [_cP, _aWE, _tWE, _aTWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC, _cE, _me],
363
+ [() => VoiceConnectParams$, () => AudioWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => AgentTranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => ControlWebsocketEvent$, () => SessionStartedWebsocketEvent$, () => SessionEndedWebsocketEvent$, () => ErrorWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$, () => VoiceCallEvent$, () => MediaProtocolFrames$]
285
364
  ];
286
365
  export var ErrorWebsocketEvent$ = [3, n1, _EWE,
287
366
  0,
288
367
  [_t, _ev],
289
368
  [0, () => VoiceErrorEvent$], 2
290
369
  ];
370
+ export var GetVoiceDefaultsInput$ = [3, n1, _GVDI,
371
+ 0,
372
+ [],
373
+ []
374
+ ];
375
+ export var GetVoiceDefaultsOutput$ = [3, n1, _GVDO,
376
+ 0,
377
+ [_vD, _in, _tE],
378
+ [() => VoiceDetectionDefaults$, () => VoiceInterruptionDefaults$, () => VoiceTurnEndDefaults$], 3
379
+ ];
291
380
  export var HangupCommandData$ = [3, n1, _HCD,
292
381
  0,
293
382
  [_t, _r],
@@ -318,9 +407,134 @@ export var ListVoicesOutput$ = [3, n1, _LVO,
318
407
  [_v],
319
408
  [() => VoiceList], 1
320
409
  ];
410
+ export var MediaAudioBeginFrame$ = [3, n1, _MABF,
411
+ 0,
412
+ [_t, _rI, _sI, _sR],
413
+ [0, 0, 0, 1], 4
414
+ ];
415
+ export var MediaAudioEndFrame$ = [3, n1, _MAEF,
416
+ 0,
417
+ [_t, _sI],
418
+ [0, 0], 2
419
+ ];
420
+ export var MediaAudioFormat$ = [3, n1, _MAF,
421
+ 0,
422
+ [_en, _sR, _ch],
423
+ [0, 1, 1], 3
424
+ ];
425
+ export var MediaCloudFrames$ = [3, n1, _MCF,
426
+ 0,
427
+ [_sta, _tr, _aB, _au, _aE, _sto, _du, _re, _l, _tra, _h, _e, _fi],
428
+ [() => MediaStartedFrame$, () => MediaTranscriptionFrame$, () => MediaAudioBeginFrame$, 21, () => MediaAudioEndFrame$, () => MediaStopFrame$, () => MediaDuckFrame$, () => MediaRestoreFrame$, () => MediaLanguageFrame$, () => MediaTransferFrame$, () => MediaHangupFrame$, () => MediaErrorFrame$, () => MediaFinishedFrame$]
429
+ ];
430
+ export var MediaDtmfFrame$ = [3, n1, _MDF,
431
+ 0,
432
+ [_t, _i, _di],
433
+ [0, 0, 0], 3
434
+ ];
435
+ export var MediaDuckFrame$ = [3, n1, _MDFe,
436
+ 0,
437
+ [_t, _rI, _vDo, _rM],
438
+ [0, 0, 1, 1], 4
439
+ ];
440
+ export var MediaErrorFrame$ = [3, n1, _MEF,
441
+ 0,
442
+ [_t, _cod, _ret, _m],
443
+ [0, 0, 2, 0], 4
444
+ ];
445
+ export var MediaFinishedFrame$ = [3, n1, _MFF,
446
+ 0,
447
+ [_t],
448
+ [0], 1
449
+ ];
450
+ export var MediaFinishFrame$ = [3, n1, _MFFe,
451
+ 0,
452
+ [_t, _r],
453
+ [0, 0], 2
454
+ ];
455
+ export var MediaHangupFrame$ = [3, n1, _MHF,
456
+ 0,
457
+ [_t],
458
+ [0], 1
459
+ ];
460
+ export var MediaLanguageFrame$ = [3, n1, _MLF,
461
+ 0,
462
+ [_t, _l],
463
+ [0, 0], 2
464
+ ];
465
+ export var MediaPbxFrames$ = [3, n1, _MPF,
466
+ 0,
467
+ [_star, _au, _va, _dt, _pl, _fin],
468
+ [() => MediaStartFrame$, 21, () => MediaVadFrame$, () => MediaDtmfFrame$, () => MediaPlaybackFrame$, () => MediaFinishFrame$]
469
+ ];
470
+ export var MediaPlaybackFrame$ = [3, n1, _MPFe,
471
+ 0,
472
+ [_t, _rI, _sI, _ev, _aM, _pM, _ca],
473
+ [0, 0, 0, 0, 1, 1, 0], 5
474
+ ];
475
+ export var MediaProtocolFrames$ = [3, n1, _MPFed,
476
+ 0,
477
+ [_pb, _cl],
478
+ [() => MediaPbxFrames$, () => MediaCloudFrames$]
479
+ ];
480
+ export var MediaRestoreFrame$ = [3, n1, _MRF,
481
+ 0,
482
+ [_t, _rI, _rM],
483
+ [0, 0, 1], 3
484
+ ];
485
+ export var MediaStartAgent$ = [3, n1, _MSA,
486
+ 0,
487
+ [_i, _dr, _ve],
488
+ [0, 2, 1], 1
489
+ ];
490
+ export var MediaStartCaller$ = [3, n1, _MSC,
491
+ 0,
492
+ [_n, _nu, _em, _comp],
493
+ [0, 0, 0, 0]
494
+ ];
495
+ export var MediaStartedAgent$ = [3, n1, _MSAe,
496
+ 0,
497
+ [_n],
498
+ [0], 1
499
+ ];
500
+ export var MediaStartedFrame$ = [3, n1, _MSF,
501
+ 0,
502
+ [_t, _sI, _ag, _gI, _bS, _vD],
503
+ [0, 0, () => MediaStartedAgent$, 0, 0, () => MediaVoiceDetection$], 2
504
+ ];
505
+ export var MediaStartFrame$ = [3, n1, _MSFe,
506
+ 0,
507
+ [_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal, _ag, _la, _pL, _aD, _dN, _var],
508
+ [0, 0, 0, 1, 0, 2, 1, () => MediaAudioFormat$, () => MediaStartCaller$, () => MediaStartAgent$, 64 | 0, 0, 2, 0, 0], 9
509
+ ];
510
+ export var MediaStopFrame$ = [3, n1, _MSFed,
511
+ 0,
512
+ [_t],
513
+ [0], 1
514
+ ];
515
+ export var MediaTranscriptionFrame$ = [3, n1, _MTF,
516
+ 0,
517
+ [_t, _pa, _i, _f, _te, _sM, _eM, _l, _co],
518
+ [0, 0, 0, 2, 0, 1, 1, 0, 1], 8
519
+ ];
520
+ export var MediaTransferFrame$ = [3, n1, _MTFe,
521
+ 0,
522
+ [_t, _con, _ex],
523
+ [0, 0, 0], 3
524
+ ];
525
+ export var MediaVadFrame$ = [3, n1, _MVF,
526
+ 0,
527
+ [_t, _pa, _sp, _eD, _aM],
528
+ [0, 0, 2, 1, 1], 5
529
+ ];
530
+ export var MediaVoiceDetection$ = [3, n1, _MVD,
531
+ 0,
532
+ [_sMi, _sLD, _sLDp],
533
+ [1, 1, 1], 3
534
+ ];
321
535
  export var PlaybackEvent$ = [3, n1, _PE,
322
536
  0,
323
- [_t, _rI, _te, _comp, _sT, _eT],
537
+ [_t, _rI, _te, _compl, _sT, _eT],
324
538
  [0, 0, 0, 2, 1, 1], 5
325
539
  ];
326
540
  export var PlaybackWebsocketEvent$ = [3, n1, _PWE,
@@ -355,7 +569,7 @@ export var SayCommandAudioOptions$ = [3, n1, _SCAO,
355
569
  ];
356
570
  export var SayCommandData$ = [3, n1, _SCD,
357
571
  0,
358
- [_te, _rI, _t, _in, _vo, _au],
572
+ [_te, _rI, _t, _int, _vo, _au],
359
573
  [0, 0, 0, 2, 0, () => SayCommandAudioOptions$], 3
360
574
  ];
361
575
  export var SayWebsocketCommand$ = [3, n1, _SWC,
@@ -385,7 +599,7 @@ export var SendPlayOutput$ = [3, n1, _SPO,
385
599
  ];
386
600
  export var SendSayInput$ = [3, n1, _SSI,
387
601
  0,
388
- [_te, _rI, _sIe, _in, _vo, _au],
602
+ [_te, _rI, _sIe, _int, _vo, _au],
389
603
  [0, 0, [0, 1], 2, 0, () => SayCommandAudioOptions$], 3
390
604
  ];
391
605
  export var SendSayOutput$ = [3, n1, _SSO,
@@ -425,7 +639,7 @@ export var SessionEndedWebsocketEvent$ = [3, n1, _SEWE,
425
639
  ];
426
640
  export var SessionStartedEvent$ = [3, n1, _SSE,
427
641
  0,
428
- [_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _sp, _bS, _iA, _oA],
642
+ [_t, _ti, _sIe, _aI, _aV, _tI, _aN, _cat, _gI, _spe, _bS, _iA, _oA],
429
643
  [0, 1, 0, 0, 1, 0, 0, 0, 0, () => VoiceSpeechPayload$, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 4
430
644
  ];
431
645
  export var SessionStartedWebsocketEvent$ = [3, n1, _SSWE,
@@ -445,8 +659,8 @@ export var StopWebsocketCommand$ = [3, n1, _SWCt,
445
659
  ];
446
660
  export var StreamCallEventsInput$ = [3, n1, _SCEI,
447
661
  0,
448
- [_cI, _compa],
449
- [[0, 1], [0, { [_hQ]: _compa }]], 1
662
+ [_cI, _comp],
663
+ [[0, 1], [0, { [_hQ]: _comp }]], 1
450
664
  ];
451
665
  export var StreamCallEventsOutput$ = [3, n1, _SCEO,
452
666
  0,
@@ -485,7 +699,7 @@ export var TransferWebsocketCommand$ = [3, n1, _TWC,
485
699
  ];
486
700
  export var Voice$ = [3, n1, _V,
487
701
  0,
488
- [_u, _n, _me],
702
+ [_u, _n, _met],
489
703
  [0, 0, 15], 2
490
704
  ];
491
705
  export var VoiceAudioFormat$ = [3, n1, _VAF,
@@ -515,7 +729,7 @@ export var VoiceCallLanguageEvent$ = [3, n1, _VCLE,
515
729
  ];
516
730
  export var VoiceCallPlaybackEvent$ = [3, n1, _VCPE,
517
731
  0,
518
- [_rI, _comp],
732
+ [_rI, _compl],
519
733
  [0, 2], 2
520
734
  ];
521
735
  export var VoiceCallReplyEvent$ = [3, n1, _VCRE,
@@ -525,17 +739,17 @@ export var VoiceCallReplyEvent$ = [3, n1, _VCRE,
525
739
  ];
526
740
  export var VoiceCallSayEvent$ = [3, n1, _VCSE,
527
741
  0,
528
- [_rI, _te, _in],
742
+ [_rI, _te, _int],
529
743
  [0, 0, 2], 3
530
744
  ];
531
745
  export var VoiceCallStartedEvent$ = [3, n1, _VCSEo,
532
746
  0,
533
- [_sIe, _aI, _tI, _aN, _aV, _aD, _l],
747
+ [_sIe, _aI, _tI, _aN, _aV, _aDg, _l],
534
748
  [0, 0, 0, 0, 1, 2, 0], 2
535
749
  ];
536
750
  export var VoiceCallToolEvent$ = [3, n1, _VCTE,
537
751
  0,
538
- [_tCI, _tN, _ph, _sM],
752
+ [_tCI, _tN, _ph, _sMt],
539
753
  [0, 0, 0, 0], 3
540
754
  ];
541
755
  export var VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
@@ -545,55 +759,74 @@ export var VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
545
759
  ];
546
760
  export var VoiceConnectParams$ = [3, n1, _VCP,
547
761
  0,
548
- [_sIe, _aI, _pV, _aV, _aD, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
762
+ [_sIe, _aI, _pV, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
549
763
  [0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
550
764
  ];
765
+ export var VoiceDetectionDefaults$ = [3, n1, _VDD,
766
+ 0,
767
+ [_sMi, _sLD, _sLDp],
768
+ [1, 1, 1], 3
769
+ ];
551
770
  export var VoiceErrorEvent$ = [3, n1, _VEE,
552
771
  0,
553
772
  [_t, _cod, _m, _ti],
554
773
  [0, 0, 0, 1], 4
555
774
  ];
775
+ export var VoiceInterruptionDefaults$ = [3, n1, _VID,
776
+ 0,
777
+ [_mW, _mC, _dAM, _dVD, _rAMe],
778
+ [1, 1, 1, 1, 1], 5
779
+ ];
556
780
  export var VoiceSpeechPayload$ = [3, n1, _VSP,
557
781
  0,
558
- [_eng, _la, _pL, _aDu],
782
+ [_eng, _la, _pL, _aD],
559
783
  [0, 64 | 0, 0, 2], 4
560
784
  ];
785
+ export var VoiceTurnEndDefaults$ = [3, n1, _VTED,
786
+ 0,
787
+ [_hM],
788
+ [1], 1
789
+ ];
561
790
  var LanguageCodeList = 64 | 0;
562
791
  var VoicePronunciationList = [1, n2, _VPL,
563
792
  0, () => VoicePronunciation$
564
793
  ];
794
+ var MediaStartLanguageList = 64 | 0;
565
795
  var VoiceList = [1, n1, _VL,
566
796
  0, () => Voice$
567
797
  ];
568
798
  export var VoiceCallEvent$ = [4, n1, _VCE,
569
799
  0,
570
- [_sta, _tr, _aT, _re, _sa, _pl, _int, _l, _too, _end],
800
+ [_sta, _tr, _aT, _rep, _sa, _pl, _inte, _l, _too, _end],
571
801
  [() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () => VoiceCallEndedEvent$]
572
802
  ];
573
803
  export var DescribeVoiceProtocol$ = [9, n1, _DVP,
574
- { [_h]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
804
+ { [_ht]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
805
+ ];
806
+ export var GetVoiceDefaults$ = [9, n1, _GVD,
807
+ { [_ht]: ["GET", "/v2/voice/defaults", 200] }, () => GetVoiceDefaultsInput$, () => GetVoiceDefaultsOutput$
575
808
  ];
576
809
  export var ListVoices$ = [9, n1, _LV,
577
- { [_h]: ["GET", "/v2/voice/voices", 200] }, () => ListVoicesInput$, () => ListVoicesOutput$
810
+ { [_ht]: ["GET", "/v2/voice/voices", 200] }, () => ListVoicesInput$, () => ListVoicesOutput$
578
811
  ];
579
812
  export var SendHangup$ = [9, n1, _SH,
580
- { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => SendHangupInput$, () => SendHangupOutput$
813
+ { [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => SendHangupInput$, () => SendHangupOutput$
581
814
  ];
582
815
  export var SendPlay$ = [9, n1, _SP,
583
- { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/play", 200] }, () => SendPlayInput$, () => SendPlayOutput$
816
+ { [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/play", 200] }, () => SendPlayInput$, () => SendPlayOutput$
584
817
  ];
585
818
  export var SendSay$ = [9, n1, _SS,
586
- { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/say", 200] }, () => SendSayInput$, () => SendSayOutput$
819
+ { [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/say", 200] }, () => SendSayInput$, () => SendSayOutput$
587
820
  ];
588
821
  export var SendStop$ = [9, n1, _SSe,
589
- { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/stop", 200] }, () => SendStopInput$, () => SendStopOutput$
822
+ { [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/stop", 200] }, () => SendStopInput$, () => SendStopOutput$
590
823
  ];
591
824
  export var SendTransfer$ = [9, n1, _ST,
592
- { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => SendTransferInput$, () => SendTransferOutput$
825
+ { [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => SendTransferInput$, () => SendTransferOutput$
593
826
  ];
594
827
  export var StreamCallEvents$ = [9, n1, _SCE,
595
- { [_h]: ["GET", "/v2/voice/calls/{callId}/events", 200] }, () => StreamCallEventsInput$, () => StreamCallEventsOutput$
828
+ { [_ht]: ["GET", "/v2/voice/calls/{callId}/events", 200] }, () => StreamCallEventsInput$, () => StreamCallEventsOutput$
596
829
  ];
597
830
  export var TextToSpeech$ = [9, n1, _TTS,
598
- { [_h]: ["POST", "/v2/voice/text-to-speech", 200] }, () => TextToSpeechInput$, () => TextToSpeechOutput$
831
+ { [_ht]: ["POST", "/v2/voice/text-to-speech", 200] }, () => TextToSpeechInput$, () => TextToSpeechOutput$
599
832
  ];
@@ -1,5 +1,6 @@
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";
3
4
  import { type ListVoicesCommandInput, type ListVoicesCommandOutput } from "./commands/ListVoicesCommand";
4
5
  import { type SendHangupCommandInput, type SendHangupCommandOutput } from "./commands/SendHangupCommand";
5
6
  import { type SendPlayCommandInput, type SendPlayCommandOutput } from "./commands/SendPlayCommand";
@@ -17,6 +18,13 @@ export interface WilmaVoice {
17
18
  describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, options?: __HttpHandlerOptions): Promise<DescribeVoiceProtocolCommandOutput>;
18
19
  describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, cb: (err: any, data?: DescribeVoiceProtocolCommandOutput) => void): void;
19
20
  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;
20
28
  /**
21
29
  * @see {@link ListVoicesCommand}
22
30
  */
@@ -76,11 +84,13 @@ export interface WilmaVoice {
76
84
  * On the WebSocket (transport host `wilma-voice-ws.wildix.com`), PBX clients transcribe caller
77
85
  * speech themselves and send `transcription` / `reply` text, while web/app clients connect with
78
86
  * inputMode=AUDIO and push raw caller `audio` chunks that the service transcribes server-side;
79
- * the service returns `say` / `play` / `stop` / `hangup` / `transfer`. Every WebSocket message
80
- * shape (connect params, events and commands) is declared as a structure and enumerated by
81
- * DescribeVoiceProtocol so the generated SDKs carry the types and (de)serializers; the WebSocket
82
- * transport itself is hand-coded. The HTTP Send* operations push the same commands into a live
83
- * session out-of-band.
87
+ * the service returns `say` / `play` / `stop` / `hangup` / `transfer`. On the PBX media socket
88
+ * (`/v2/voice/media/ws`, subprotocol `wilma-media-v2`), the PBX sends raw caller audio and the
89
+ * service answers with audio and the text frames listed under DescribeVoiceProtocol `media`.
90
+ * Every WebSocket message shape (connect params, events and commands) is declared as a structure
91
+ * and enumerated by DescribeVoiceProtocol so the generated SDKs carry the types and
92
+ * (de)serializers; the WebSocket transport itself is hand-coded. The HTTP Send* operations push
93
+ * the same commands into a live session out-of-band.
84
94
  *
85
95
  * Session observability and history are recorded in wilma-traces; this service does not expose
86
96
  * bot configuration, traces or listing.
@@ -6,6 +6,7 @@ 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";
9
10
  import type { ListVoicesCommandInput, ListVoicesCommandOutput } from "./commands/ListVoicesCommand";
10
11
  import type { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
11
12
  import type { SendPlayCommandInput, SendPlayCommandOutput } from "./commands/SendPlayCommand";
@@ -20,11 +21,11 @@ export { __Client };
20
21
  /**
21
22
  * @public
22
23
  */
23
- export type ServiceInputTypes = DescribeVoiceProtocolCommandInput | ListVoicesCommandInput | SendHangupCommandInput | SendPlayCommandInput | SendSayCommandInput | SendStopCommandInput | SendTransferCommandInput | StreamCallEventsCommandInput | TextToSpeechCommandInput;
24
+ export type ServiceInputTypes = DescribeVoiceProtocolCommandInput | GetVoiceDefaultsCommandInput | ListVoicesCommandInput | SendHangupCommandInput | SendPlayCommandInput | SendSayCommandInput | SendStopCommandInput | SendTransferCommandInput | StreamCallEventsCommandInput | TextToSpeechCommandInput;
24
25
  /**
25
26
  * @public
26
27
  */
27
- export type ServiceOutputTypes = DescribeVoiceProtocolCommandOutput | ListVoicesCommandOutput | SendHangupCommandOutput | SendPlayCommandOutput | SendSayCommandOutput | SendStopCommandOutput | SendTransferCommandOutput | StreamCallEventsCommandOutput | TextToSpeechCommandOutput;
28
+ export type ServiceOutputTypes = DescribeVoiceProtocolCommandOutput | GetVoiceDefaultsCommandOutput | ListVoicesCommandOutput | SendHangupCommandOutput | SendPlayCommandOutput | SendSayCommandOutput | SendStopCommandOutput | SendTransferCommandOutput | StreamCallEventsCommandOutput | TextToSpeechCommandOutput;
28
29
  /**
29
30
  * @public
30
31
  */
@@ -167,11 +168,13 @@ export interface WilmaVoiceClientResolvedConfig extends WilmaVoiceClientResolved
167
168
  * On the WebSocket (transport host `wilma-voice-ws.wildix.com`), PBX clients transcribe caller
168
169
  * speech themselves and send `transcription` / `reply` text, while web/app clients connect with
169
170
  * inputMode=AUDIO and push raw caller `audio` chunks that the service transcribes server-side;
170
- * the service returns `say` / `play` / `stop` / `hangup` / `transfer`. Every WebSocket message
171
- * shape (connect params, events and commands) is declared as a structure and enumerated by
172
- * DescribeVoiceProtocol so the generated SDKs carry the types and (de)serializers; the WebSocket
173
- * transport itself is hand-coded. The HTTP Send* operations push the same commands into a live
174
- * session out-of-band.
171
+ * the service returns `say` / `play` / `stop` / `hangup` / `transfer`. On the PBX media socket
172
+ * (`/v2/voice/media/ws`, subprotocol `wilma-media-v2`), the PBX sends raw caller audio and the
173
+ * service answers with audio and the text frames listed under DescribeVoiceProtocol `media`.
174
+ * Every WebSocket message shape (connect params, events and commands) is declared as a structure
175
+ * and enumerated by DescribeVoiceProtocol so the generated SDKs carry the types and
176
+ * (de)serializers; the WebSocket transport itself is hand-coded. The HTTP Send* operations push
177
+ * the same commands into a live session out-of-band.
175
178
  *
176
179
  * Session observability and history are recorded in wilma-traces; this service does not expose
177
180
  * bot configuration, traces or listing.