@wildix/wilma-voice-client 0.0.40 → 0.0.42

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.
@@ -31,6 +31,10 @@ export const VoiceCallToolPhase = {
31
31
  FINISHED: "finished",
32
32
  STARTED: "started",
33
33
  };
34
+ export const VoiceTranscriptionDropReason = {
35
+ LOW_CONFIDENCE: "low_confidence",
36
+ OTHER_SPEAKER: "other_speaker",
37
+ };
34
38
  export const VoiceAudioEncoding = {
35
39
  ALAW: "alaw",
36
40
  MULAW: "mulaw",
@@ -48,3 +52,82 @@ export const VoiceCommandType = {
48
52
  STOP: "stop",
49
53
  TRANSFER: "transfer",
50
54
  };
55
+ export const MediaAudioBeginFrameType = {
56
+ AUDIO_BEGIN: "audio.begin",
57
+ };
58
+ export const MediaAudioEndFrameType = {
59
+ AUDIO_END: "audio.end",
60
+ };
61
+ export const MediaDuckFrameType = {
62
+ DUCK: "duck",
63
+ };
64
+ export const MediaErrorFrameType = {
65
+ ERROR: "error",
66
+ };
67
+ export const MediaFinishedFrameType = {
68
+ FINISHED: "finished",
69
+ };
70
+ export const MediaHangupFrameType = {
71
+ HANGUP: "hangup",
72
+ };
73
+ export const MediaLanguageFrameType = {
74
+ LANGUAGE: "language",
75
+ };
76
+ export const MediaRestoreFrameType = {
77
+ RESTORE: "restore",
78
+ };
79
+ export const MediaStartedFrameType = {
80
+ STARTED: "started",
81
+ };
82
+ export const MediaStopFrameType = {
83
+ STOP: "stop",
84
+ };
85
+ export const MediaParty = {
86
+ CALLEE: "callee",
87
+ CALLER: "caller",
88
+ };
89
+ export const MediaTranscriptionFrameType = {
90
+ TRANSCRIPTION: "transcription",
91
+ };
92
+ export const MediaTransferFrameType = {
93
+ TRANSFER: "transfer",
94
+ };
95
+ export const MediaDtmfFrameType = {
96
+ DTMF: "dtmf",
97
+ };
98
+ export const MediaFinishReason = {
99
+ AGENT_HANGUP: "agent-hangup",
100
+ AGENT_TRANSFER: "agent-transfer",
101
+ CALLEE_HANGUP: "callee-hangup",
102
+ CALLER_HANGUP: "caller-hangup",
103
+ TIMEOUT: "timeout",
104
+ };
105
+ export const MediaFinishFrameType = {
106
+ FINISH: "finish",
107
+ };
108
+ export const MediaPlaybackStopCause = {
109
+ CALLER: "caller",
110
+ CLOUD: "cloud",
111
+ DROP: "drop",
112
+ };
113
+ export const MediaPlaybackEvent = {
114
+ FINISHED: "finished",
115
+ STARTED: "started",
116
+ STOPPED: "stopped",
117
+ };
118
+ export const MediaPlaybackFrameType = {
119
+ PLAYBACK: "playback",
120
+ };
121
+ export const MediaAudioEncoding = {
122
+ PCM_S16LE: "pcm_s16le",
123
+ };
124
+ export const MediaRunPurpose = {
125
+ AGENT: "agent",
126
+ TRANSCRIPTION: "transcription",
127
+ };
128
+ export const MediaStartFrameType = {
129
+ START: "start",
130
+ };
131
+ export const MediaVadFrameType = {
132
+ VAD: "vad",
133
+ };
@@ -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,33 @@ 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 _dro = "dropped";
163
+ const _dt = "dtmf";
164
+ const _du = "duck";
120
165
  const _e = "error";
166
+ const _eD = "energyDb";
167
+ const _eM = "endMs";
121
168
  const _eT = "endTime";
122
169
  const _eWE = "errorWebsocketEvent";
170
+ const _em = "email";
123
171
  const _en = "encoding";
124
172
  const _end = "ended";
125
173
  const _eng = "engine";
@@ -128,47 +176,70 @@ const _eve = "events";
128
176
  const _ex = "extension";
129
177
  const _f = "final";
130
178
  const _fI = "flowIndex";
179
+ const _fi = "finished";
180
+ const _fin = "finish";
131
181
  const _fr = "from";
132
182
  const _gI = "groupId";
133
- const _h = "http";
183
+ const _h = "hangup";
134
184
  const _hE = "httpError";
135
185
  const _hH = "httpHeader";
186
+ const _hM = "holdMs";
136
187
  const _hQ = "httpQuery";
137
188
  const _hWC = "hangupWebsocketCommand";
189
+ const _ht = "http";
138
190
  const _i = "id";
139
191
  const _iA = "inputAudio";
140
192
  const _iM = "initialMessage";
141
193
  const _iMn = "inputMode";
142
194
  const _iWE = "interruptionWebsocketEvent";
143
- const _in = "interruptible";
144
- const _int = "interruption";
195
+ const _in = "interruptions";
196
+ const _int = "interruptible";
197
+ const _inte = "interruption";
145
198
  const _l = "language";
146
199
  const _la = "languages";
147
200
  const _m = "message";
201
+ const _mC = "minConfidence";
148
202
  const _mT = "mediaType";
149
- const _me = "metadata";
203
+ const _mW = "minWords";
204
+ const _me = "media";
205
+ const _met = "metadata";
150
206
  const _n = "name";
207
+ const _nu = "number";
151
208
  const _oA = "outputAudio";
152
209
  const _oT = "originalText";
153
210
  const _p = "phrase";
154
211
  const _pL = "preferredLanguage";
212
+ const _pM = "playedMs";
155
213
  const _pT = "playedText";
156
214
  const _pV = "protocolVersion";
157
215
  const _pWC = "playWebsocketCommand";
158
216
  const _pWE = "playbackWebsocketEvent";
217
+ const _pa = "party";
218
+ const _pb = "pbx";
159
219
  const _ph = "phase";
160
220
  const _pl = "playback";
161
221
  const _pr = "provider";
162
222
  const _pro = "pronunciations";
223
+ const _pu = "purpose";
163
224
  const _r = "reason";
225
+ const _rAM = "resumeAtMs";
226
+ const _rAMe = "restoreAfterMs";
164
227
  const _rI = "replyId";
228
+ const _rM = "rampMs";
165
229
  const _rWE = "replyWebsocketEvent";
166
- const _re = "reply";
230
+ const _re = "restore";
231
+ const _rep = "reply";
232
+ const _res = "resume";
233
+ const _ret = "retryable";
167
234
  const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
168
235
  const _sEWE = "sessionEndedWebsocketEvent";
169
236
  const _sI = "streamId";
170
237
  const _sIe = "sessionId";
171
- const _sM = "startMessage";
238
+ const _sLD = "silenceLevelDb";
239
+ const _sLDp = "speechLevelDb";
240
+ const _sM = "startMs";
241
+ const _sMi = "silenceMs";
242
+ const _sMt = "startMessage";
172
243
  const _sR = "sampleRate";
173
244
  const _sSWE = "sessionStartedWebsocketEvent";
174
245
  const _sT = "startTime";
@@ -176,11 +247,15 @@ const _sWC = "sayWebsocketCommand";
176
247
  const _sWCt = "stopWebsocketCommand";
177
248
  const _sa = "say";
178
249
  const _se = "seq";
179
- const _sp = "speech";
250
+ const _sp = "speaking";
251
+ const _spe = "speech";
180
252
  const _st = "streaming";
181
253
  const _sta = "started";
254
+ const _star = "start";
255
+ const _sto = "stop";
182
256
  const _t = "type";
183
257
  const _tCI = "toolCallId";
258
+ const _tE = "turnEnd";
184
259
  const _tI = "traceId";
185
260
  const _tN = "toolName";
186
261
  const _tWC = "transferWebsocketCommand";
@@ -190,9 +265,14 @@ const _ti = "time";
190
265
  const _to = "to";
191
266
  const _too = "tool";
192
267
  const _tr = "transcription";
268
+ const _tra = "transfer";
193
269
  const _u = "uri";
194
270
  const _v = "voices";
195
- const _va = "variables";
271
+ const _vD = "voiceDetection";
272
+ const _vDo = "volumeDb";
273
+ const _va = "vad";
274
+ const _var = "variables";
275
+ const _ve = "version";
196
276
  const _vo = "voice";
197
277
  const n0 = "smithy.framework";
198
278
  const n1 = "wildix.wilma.voice";
@@ -280,14 +360,24 @@ export var DescribeVoiceProtocolInput$ = [3, n1, _DVPI,
280
360
  ];
281
361
  export var DescribeVoiceProtocolOutput$ = [3, n1, _DVPO,
282
362
  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$]
363
+ [_cP, _aWE, _tWE, _aTWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC, _cE, _me],
364
+ [() => VoiceConnectParams$, () => AudioWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => AgentTranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => ControlWebsocketEvent$, () => SessionStartedWebsocketEvent$, () => SessionEndedWebsocketEvent$, () => ErrorWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$, () => VoiceCallEvent$, () => MediaProtocolFrames$]
285
365
  ];
286
366
  export var ErrorWebsocketEvent$ = [3, n1, _EWE,
287
367
  0,
288
368
  [_t, _ev],
289
369
  [0, () => VoiceErrorEvent$], 2
290
370
  ];
371
+ export var GetVoiceDefaultsInput$ = [3, n1, _GVDI,
372
+ 0,
373
+ [],
374
+ []
375
+ ];
376
+ export var GetVoiceDefaultsOutput$ = [3, n1, _GVDO,
377
+ 0,
378
+ [_vD, _in, _tE],
379
+ [() => VoiceDetectionDefaults$, () => VoiceInterruptionDefaults$, () => VoiceTurnEndDefaults$], 3
380
+ ];
291
381
  export var HangupCommandData$ = [3, n1, _HCD,
292
382
  0,
293
383
  [_t, _r],
@@ -318,9 +408,134 @@ export var ListVoicesOutput$ = [3, n1, _LVO,
318
408
  [_v],
319
409
  [() => VoiceList], 1
320
410
  ];
411
+ export var MediaAudioBeginFrame$ = [3, n1, _MABF,
412
+ 0,
413
+ [_t, _rI, _sI, _sR],
414
+ [0, 0, 0, 1], 4
415
+ ];
416
+ export var MediaAudioEndFrame$ = [3, n1, _MAEF,
417
+ 0,
418
+ [_t, _sI],
419
+ [0, 0], 2
420
+ ];
421
+ export var MediaAudioFormat$ = [3, n1, _MAF,
422
+ 0,
423
+ [_en, _sR, _ch],
424
+ [0, 1, 1], 3
425
+ ];
426
+ export var MediaCloudFrames$ = [3, n1, _MCF,
427
+ 0,
428
+ [_sta, _tr, _aB, _au, _aE, _sto, _du, _re, _l, _tra, _h, _e, _fi],
429
+ [() => MediaStartedFrame$, () => MediaTranscriptionFrame$, () => MediaAudioBeginFrame$, 21, () => MediaAudioEndFrame$, () => MediaStopFrame$, () => MediaDuckFrame$, () => MediaRestoreFrame$, () => MediaLanguageFrame$, () => MediaTransferFrame$, () => MediaHangupFrame$, () => MediaErrorFrame$, () => MediaFinishedFrame$]
430
+ ];
431
+ export var MediaDtmfFrame$ = [3, n1, _MDF,
432
+ 0,
433
+ [_t, _i, _di],
434
+ [0, 0, 0], 3
435
+ ];
436
+ export var MediaDuckFrame$ = [3, n1, _MDFe,
437
+ 0,
438
+ [_t, _rI, _vDo, _rM],
439
+ [0, 0, 1, 1], 4
440
+ ];
441
+ export var MediaErrorFrame$ = [3, n1, _MEF,
442
+ 0,
443
+ [_t, _cod, _ret, _m],
444
+ [0, 0, 2, 0], 4
445
+ ];
446
+ export var MediaFinishedFrame$ = [3, n1, _MFF,
447
+ 0,
448
+ [_t],
449
+ [0], 1
450
+ ];
451
+ export var MediaFinishFrame$ = [3, n1, _MFFe,
452
+ 0,
453
+ [_t, _r],
454
+ [0, 0], 2
455
+ ];
456
+ export var MediaHangupFrame$ = [3, n1, _MHF,
457
+ 0,
458
+ [_t],
459
+ [0], 1
460
+ ];
461
+ export var MediaLanguageFrame$ = [3, n1, _MLF,
462
+ 0,
463
+ [_t, _l],
464
+ [0, 0], 2
465
+ ];
466
+ export var MediaPbxFrames$ = [3, n1, _MPF,
467
+ 0,
468
+ [_star, _au, _va, _dt, _pl, _fin],
469
+ [() => MediaStartFrame$, 21, () => MediaVadFrame$, () => MediaDtmfFrame$, () => MediaPlaybackFrame$, () => MediaFinishFrame$]
470
+ ];
471
+ export var MediaPlaybackFrame$ = [3, n1, _MPFe,
472
+ 0,
473
+ [_t, _rI, _sI, _ev, _aM, _pM, _ca],
474
+ [0, 0, 0, 0, 1, 1, 0], 5
475
+ ];
476
+ export var MediaProtocolFrames$ = [3, n1, _MPFed,
477
+ 0,
478
+ [_pb, _cl],
479
+ [() => MediaPbxFrames$, () => MediaCloudFrames$]
480
+ ];
481
+ export var MediaRestoreFrame$ = [3, n1, _MRF,
482
+ 0,
483
+ [_t, _rI, _rM],
484
+ [0, 0, 1], 3
485
+ ];
486
+ export var MediaStartAgent$ = [3, n1, _MSA,
487
+ 0,
488
+ [_i, _dr, _ve],
489
+ [0, 2, 1], 1
490
+ ];
491
+ export var MediaStartCaller$ = [3, n1, _MSC,
492
+ 0,
493
+ [_n, _nu, _em, _comp],
494
+ [0, 0, 0, 0]
495
+ ];
496
+ export var MediaStartedAgent$ = [3, n1, _MSAe,
497
+ 0,
498
+ [_n],
499
+ [0], 1
500
+ ];
501
+ export var MediaStartedFrame$ = [3, n1, _MSF,
502
+ 0,
503
+ [_t, _sI, _ag, _gI, _bS, _vD],
504
+ [0, 0, () => MediaStartedAgent$, 0, 0, () => MediaVoiceDetection$], 2
505
+ ];
506
+ export var MediaStartFrame$ = [3, n1, _MSFe,
507
+ 0,
508
+ [_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal, _ag, _la, _pL, _aD, _dN, _var],
509
+ [0, 0, 0, 1, 0, 2, 1, () => MediaAudioFormat$, () => MediaStartCaller$, () => MediaStartAgent$, 64 | 0, 0, 2, 0, 0], 9
510
+ ];
511
+ export var MediaStopFrame$ = [3, n1, _MSFed,
512
+ 0,
513
+ [_t],
514
+ [0], 1
515
+ ];
516
+ export var MediaTranscriptionFrame$ = [3, n1, _MTF,
517
+ 0,
518
+ [_t, _pa, _i, _f, _te, _sM, _eM, _l, _co],
519
+ [0, 0, 0, 2, 0, 1, 1, 0, 1], 8
520
+ ];
521
+ export var MediaTransferFrame$ = [3, n1, _MTFe,
522
+ 0,
523
+ [_t, _con, _ex],
524
+ [0, 0, 0], 3
525
+ ];
526
+ export var MediaVadFrame$ = [3, n1, _MVF,
527
+ 0,
528
+ [_t, _pa, _sp, _eD, _aM],
529
+ [0, 0, 2, 1, 1], 5
530
+ ];
531
+ export var MediaVoiceDetection$ = [3, n1, _MVD,
532
+ 0,
533
+ [_sMi, _sLD, _sLDp],
534
+ [1, 1, 1], 3
535
+ ];
321
536
  export var PlaybackEvent$ = [3, n1, _PE,
322
537
  0,
323
- [_t, _rI, _te, _comp, _sT, _eT],
538
+ [_t, _rI, _te, _compl, _sT, _eT],
324
539
  [0, 0, 0, 2, 1, 1], 5
325
540
  ];
326
541
  export var PlaybackWebsocketEvent$ = [3, n1, _PWE,
@@ -355,7 +570,7 @@ export var SayCommandAudioOptions$ = [3, n1, _SCAO,
355
570
  ];
356
571
  export var SayCommandData$ = [3, n1, _SCD,
357
572
  0,
358
- [_te, _rI, _t, _in, _vo, _au],
573
+ [_te, _rI, _t, _int, _vo, _au],
359
574
  [0, 0, 0, 2, 0, () => SayCommandAudioOptions$], 3
360
575
  ];
361
576
  export var SayWebsocketCommand$ = [3, n1, _SWC,
@@ -385,7 +600,7 @@ export var SendPlayOutput$ = [3, n1, _SPO,
385
600
  ];
386
601
  export var SendSayInput$ = [3, n1, _SSI,
387
602
  0,
388
- [_te, _rI, _sIe, _in, _vo, _au],
603
+ [_te, _rI, _sIe, _int, _vo, _au],
389
604
  [0, 0, [0, 1], 2, 0, () => SayCommandAudioOptions$], 3
390
605
  ];
391
606
  export var SendSayOutput$ = [3, n1, _SSO,
@@ -425,7 +640,7 @@ export var SessionEndedWebsocketEvent$ = [3, n1, _SEWE,
425
640
  ];
426
641
  export var SessionStartedEvent$ = [3, n1, _SSE,
427
642
  0,
428
- [_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _sp, _bS, _iA, _oA],
643
+ [_t, _ti, _sIe, _aI, _aV, _tI, _aN, _cat, _gI, _spe, _bS, _iA, _oA],
429
644
  [0, 1, 0, 0, 1, 0, 0, 0, 0, () => VoiceSpeechPayload$, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 4
430
645
  ];
431
646
  export var SessionStartedWebsocketEvent$ = [3, n1, _SSWE,
@@ -445,8 +660,8 @@ export var StopWebsocketCommand$ = [3, n1, _SWCt,
445
660
  ];
446
661
  export var StreamCallEventsInput$ = [3, n1, _SCEI,
447
662
  0,
448
- [_cI, _compa],
449
- [[0, 1], [0, { [_hQ]: _compa }]], 1
663
+ [_cI, _comp],
664
+ [[0, 1], [0, { [_hQ]: _comp }]], 1
450
665
  ];
451
666
  export var StreamCallEventsOutput$ = [3, n1, _SCEO,
452
667
  0,
@@ -485,7 +700,7 @@ export var TransferWebsocketCommand$ = [3, n1, _TWC,
485
700
  ];
486
701
  export var Voice$ = [3, n1, _V,
487
702
  0,
488
- [_u, _n, _me],
703
+ [_u, _n, _met],
489
704
  [0, 0, 15], 2
490
705
  ];
491
706
  export var VoiceAudioFormat$ = [3, n1, _VAF,
@@ -515,7 +730,7 @@ export var VoiceCallLanguageEvent$ = [3, n1, _VCLE,
515
730
  ];
516
731
  export var VoiceCallPlaybackEvent$ = [3, n1, _VCPE,
517
732
  0,
518
- [_rI, _comp],
733
+ [_rI, _compl],
519
734
  [0, 2], 2
520
735
  ];
521
736
  export var VoiceCallReplyEvent$ = [3, n1, _VCRE,
@@ -525,75 +740,94 @@ export var VoiceCallReplyEvent$ = [3, n1, _VCRE,
525
740
  ];
526
741
  export var VoiceCallSayEvent$ = [3, n1, _VCSE,
527
742
  0,
528
- [_rI, _te, _in],
743
+ [_rI, _te, _int],
529
744
  [0, 0, 2], 3
530
745
  ];
531
746
  export var VoiceCallStartedEvent$ = [3, n1, _VCSEo,
532
747
  0,
533
- [_sIe, _aI, _tI, _aN, _aV, _aD, _l],
748
+ [_sIe, _aI, _tI, _aN, _aV, _aDg, _l],
534
749
  [0, 0, 0, 0, 1, 2, 0], 2
535
750
  ];
536
751
  export var VoiceCallToolEvent$ = [3, n1, _VCTE,
537
752
  0,
538
- [_tCI, _tN, _ph, _sM],
753
+ [_tCI, _tN, _ph, _sMt],
539
754
  [0, 0, 0, 0], 3
540
755
  ];
541
756
  export var VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
542
757
  0,
543
- [_i, _te, _f, _l, _ti],
544
- [0, 0, 2, 0, 1], 3
758
+ [_i, _te, _f, _l, _ti, _dro],
759
+ [0, 0, 2, 0, 1, 0], 3
545
760
  ];
546
761
  export var VoiceConnectParams$ = [3, n1, _VCP,
547
762
  0,
548
- [_sIe, _aI, _pV, _aV, _aD, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
763
+ [_sIe, _aI, _pV, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
549
764
  [0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
550
765
  ];
766
+ export var VoiceDetectionDefaults$ = [3, n1, _VDD,
767
+ 0,
768
+ [_sMi, _sLD, _sLDp],
769
+ [1, 1, 1], 3
770
+ ];
551
771
  export var VoiceErrorEvent$ = [3, n1, _VEE,
552
772
  0,
553
773
  [_t, _cod, _m, _ti],
554
774
  [0, 0, 0, 1], 4
555
775
  ];
776
+ export var VoiceInterruptionDefaults$ = [3, n1, _VID,
777
+ 0,
778
+ [_mW, _mC, _dAM, _dVD, _rAMe],
779
+ [1, 1, 1, 1, 1], 5
780
+ ];
556
781
  export var VoiceSpeechPayload$ = [3, n1, _VSP,
557
782
  0,
558
- [_eng, _la, _pL, _aDu],
783
+ [_eng, _la, _pL, _aD],
559
784
  [0, 64 | 0, 0, 2], 4
560
785
  ];
786
+ export var VoiceTurnEndDefaults$ = [3, n1, _VTED,
787
+ 0,
788
+ [_hM],
789
+ [1], 1
790
+ ];
561
791
  var LanguageCodeList = 64 | 0;
562
792
  var VoicePronunciationList = [1, n2, _VPL,
563
793
  0, () => VoicePronunciation$
564
794
  ];
795
+ var MediaStartLanguageList = 64 | 0;
565
796
  var VoiceList = [1, n1, _VL,
566
797
  0, () => Voice$
567
798
  ];
568
799
  export var VoiceCallEvent$ = [4, n1, _VCE,
569
800
  0,
570
- [_sta, _tr, _aT, _re, _sa, _pl, _int, _l, _too, _end],
801
+ [_sta, _tr, _aT, _rep, _sa, _pl, _inte, _l, _too, _end],
571
802
  [() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () => VoiceCallEndedEvent$]
572
803
  ];
573
804
  export var DescribeVoiceProtocol$ = [9, n1, _DVP,
574
- { [_h]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
805
+ { [_ht]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
806
+ ];
807
+ export var GetVoiceDefaults$ = [9, n1, _GVD,
808
+ { [_ht]: ["GET", "/v2/voice/defaults", 200] }, () => GetVoiceDefaultsInput$, () => GetVoiceDefaultsOutput$
575
809
  ];
576
810
  export var ListVoices$ = [9, n1, _LV,
577
- { [_h]: ["GET", "/v2/voice/voices", 200] }, () => ListVoicesInput$, () => ListVoicesOutput$
811
+ { [_ht]: ["GET", "/v2/voice/voices", 200] }, () => ListVoicesInput$, () => ListVoicesOutput$
578
812
  ];
579
813
  export var SendHangup$ = [9, n1, _SH,
580
- { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => SendHangupInput$, () => SendHangupOutput$
814
+ { [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => SendHangupInput$, () => SendHangupOutput$
581
815
  ];
582
816
  export var SendPlay$ = [9, n1, _SP,
583
- { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/play", 200] }, () => SendPlayInput$, () => SendPlayOutput$
817
+ { [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/play", 200] }, () => SendPlayInput$, () => SendPlayOutput$
584
818
  ];
585
819
  export var SendSay$ = [9, n1, _SS,
586
- { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/say", 200] }, () => SendSayInput$, () => SendSayOutput$
820
+ { [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/say", 200] }, () => SendSayInput$, () => SendSayOutput$
587
821
  ];
588
822
  export var SendStop$ = [9, n1, _SSe,
589
- { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/stop", 200] }, () => SendStopInput$, () => SendStopOutput$
823
+ { [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/stop", 200] }, () => SendStopInput$, () => SendStopOutput$
590
824
  ];
591
825
  export var SendTransfer$ = [9, n1, _ST,
592
- { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => SendTransferInput$, () => SendTransferOutput$
826
+ { [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => SendTransferInput$, () => SendTransferOutput$
593
827
  ];
594
828
  export var StreamCallEvents$ = [9, n1, _SCE,
595
- { [_h]: ["GET", "/v2/voice/calls/{callId}/events", 200] }, () => StreamCallEventsInput$, () => StreamCallEventsOutput$
829
+ { [_ht]: ["GET", "/v2/voice/calls/{callId}/events", 200] }, () => StreamCallEventsInput$, () => StreamCallEventsOutput$
596
830
  ];
597
831
  export var TextToSpeech$ = [9, n1, _TTS,
598
- { [_h]: ["POST", "/v2/voice/text-to-speech", 200] }, () => TextToSpeechInput$, () => TextToSpeechOutput$
832
+ { [_ht]: ["POST", "/v2/voice/text-to-speech", 200] }, () => TextToSpeechInput$, () => TextToSpeechOutput$
599
833
  ];
@@ -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.