@wildix/wilma-voice-client 0.0.51 → 0.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,65 +1,16 @@
1
- const _AE = "AudioEvent";
2
- const _ATE = "AgentTranscriptionEvent";
3
- const _ATWE = "AgentTranscriptionWebsocketEvent";
4
- const _AWE = "AudioWebsocketEvent";
5
- const _CE = "CompleteEvent";
6
- const _CEo = "ControlEvent";
7
1
  const _CT = "Content-Type";
8
- const _CWE = "CompleteWebsocketEvent";
9
- const _CWEo = "ControlWebsocketEvent";
10
2
  const _DVP = "DescribeVoiceProtocol";
11
3
  const _DVPI = "DescribeVoiceProtocolInput";
12
4
  const _DVPO = "DescribeVoiceProtocolOutput";
13
- const _EWE = "ErrorWebsocketEvent";
14
5
  const _FE = "ForbiddenException";
15
- const _HCD = "HangupCommandData";
16
- const _HWC = "HangupWebsocketCommand";
17
- const _IE = "InterruptionEvent";
18
- const _IWE = "InterruptionWebsocketEvent";
19
6
  const _LV = "ListVoices";
20
7
  const _LVI = "ListVoicesInput";
21
8
  const _LVO = "ListVoicesOutput";
22
9
  const _MA = "Mp3Audio";
23
- const _MABF = "MediaAudioBeginFrame";
24
- const _MAEF = "MediaAudioEndFrame";
25
- const _MAF = "MediaAudioFormat";
26
- const _MCF = "MediaCloudFrames";
27
- const _MDF = "MediaDtmfFrame";
28
- const _MDFe = "MediaDuckFrame";
29
- const _MEF = "MediaErrorFrame";
30
- const _MFF = "MediaFinishedFrame";
31
- const _MFFe = "MediaFinishFrame";
32
- const _MHF = "MediaHangupFrame";
33
- const _MLF = "MediaLanguageFrame";
34
- const _MPF = "MediaPbxFrames";
35
- const _MPFe = "MediaPlaybackFrame";
36
- const _MPFed = "MediaProtocolFrames";
37
- const _MRF = "MediaRestoreFrame";
38
- const _MSA = "MediaStartAgent";
39
- const _MSAe = "MediaStartedAgent";
40
- const _MSC = "MediaStartCaller";
41
- const _MSF = "MediaStartedFrame";
42
- const _MSFe = "MediaStartFrame";
43
- const _MSFed = "MediaStopFrame";
44
- const _MTF = "MediaTranscriptionFrame";
45
- const _MTFe = "MediaTransferFrame";
46
- const _MVD = "MediaVoiceDetection";
47
- const _MVF = "MediaVadFrame";
48
10
  const _NFE = "NotFoundException";
49
- const _PCD = "PlayCommandData";
50
- const _PE = "PlaybackEvent";
51
- const _PWC = "PlayWebsocketCommand";
52
- const _PWE = "PlaybackWebsocketEvent";
53
- const _RE = "ReplyEvent";
54
- const _RWE = "ReplyWebsocketEvent";
55
- const _SCAO = "SayCommandAudioOptions";
56
- const _SCD = "SayCommandData";
57
- const _SCDt = "StopCommandData";
58
11
  const _SCE = "StreamCallEvents";
59
12
  const _SCEI = "StreamCallEventsInput";
60
13
  const _SCEO = "StreamCallEventsOutput";
61
- const _SEE = "SessionEndedEvent";
62
- const _SEWE = "SessionEndedWebsocketEvent";
63
14
  const _SH = "SendHangup";
64
15
  const _SHI = "SendHangupInput";
65
16
  const _SHO = "SendHangupOutput";
@@ -67,46 +18,78 @@ const _SP = "SendPlay";
67
18
  const _SPI = "SendPlayInput";
68
19
  const _SPO = "SendPlayOutput";
69
20
  const _SS = "SendSay";
70
- const _SSE = "SessionStartedEvent";
71
21
  const _SSI = "SendSayInput";
72
22
  const _SSIe = "SendStopInput";
73
23
  const _SSO = "SendSayOutput";
74
24
  const _SSOe = "SendStopOutput";
75
- const _SSWE = "SessionStartedWebsocketEvent";
76
25
  const _SSe = "SendStop";
77
26
  const _ST = "SendTransfer";
78
27
  const _STI = "SendTransferInput";
79
28
  const _STO = "SendTransferOutput";
80
- const _SWC = "SayWebsocketCommand";
81
- const _SWCt = "StopWebsocketCommand";
82
- const _TCD = "TransferCommandData";
83
- const _TE = "TranscriptionEvent";
84
29
  const _TTS = "TextToSpeech";
85
30
  const _TTSI = "TextToSpeechInput";
86
31
  const _TTSO = "TextToSpeechOutput";
87
- const _TWC = "TransferWebsocketCommand";
88
- const _TWE = "TranscriptionWebsocketEvent";
89
32
  const _V = "Voice";
90
- const _VAF = "VoiceAudioFormat";
33
+ const _VATE = "VoiceAgentTranscriptionEvent";
34
+ const _VCABF = "VoiceCallAudioBeginFrame";
35
+ const _VCAEF = "VoiceCallAudioEndFrame";
91
36
  const _VCATE = "VoiceCallAgentTranscriptionEvent";
92
- const _VCE = "VoiceCallEvent";
37
+ const _VCCF = "VoiceCallClientFrames";
38
+ const _VCDF = "VoiceCallDtmfFrame";
39
+ const _VCDFo = "VoiceCallDuckFrame";
40
+ const _VCE = "VoiceCompleteEvent";
93
41
  const _VCEE = "VoiceCallEndedEvent";
42
+ const _VCEF = "VoiceCallEndedFrame";
43
+ const _VCEFo = "VoiceCallEndFrame";
44
+ const _VCEFoi = "VoiceCallErrorFrame";
94
45
  const _VCESB = "VoiceCallEventStreamBody";
46
+ const _VCEo = "VoiceCallEvent";
47
+ const _VCHF = "VoiceCallHangupFrame";
95
48
  const _VCIE = "VoiceCallInterruptionEvent";
96
49
  const _VCLE = "VoiceCallLanguageEvent";
50
+ const _VCLF = "VoiceCallLanguageFrame";
97
51
  const _VCP = "VoiceConnectParams";
98
52
  const _VCPE = "VoiceCallPlaybackEvent";
53
+ const _VCPF = "VoiceCallPlaybackFrame";
54
+ const _VCPFo = "VoiceCallProtocolFrames";
99
55
  const _VCRE = "VoiceCallReplyEvent";
56
+ const _VCSA = "VoiceCallStartAgent";
57
+ const _VCSAo = "VoiceCallStartedAgent";
58
+ const _VCSC = "VoiceCallStartCaller";
100
59
  const _VCSE = "VoiceCallSayEvent";
101
60
  const _VCSEo = "VoiceCallStartedEvent";
61
+ const _VCSF = "VoiceCallServerFrames";
62
+ const _VCSFo = "VoiceCallStartedFrame";
63
+ const _VCSFoi = "VoiceCallStartFrame";
64
+ const _VCSFoic = "VoiceCallStopFrame";
102
65
  const _VCTE = "VoiceCallToolEvent";
103
66
  const _VCTEo = "VoiceCallTranscriptionEvent";
67
+ const _VCTF = "VoiceCallTranscriptionFrame";
68
+ const _VCTFo = "VoiceCallTransferFrame";
69
+ const _VCVF = "VoiceCallVadFrame";
70
+ const _VDS = "VoiceDetectionSettings";
104
71
  const _VE = "ValidationException";
105
72
  const _VEE = "VoiceErrorEvent";
73
+ const _VHC = "VoiceHangupCommand";
74
+ const _VHCo = "VoiceHealthcheckCommand";
75
+ const _VIE = "VoiceInterruptionEvent";
106
76
  const _VL = "VoiceList";
107
77
  const _VP = "VoicePronunciation";
78
+ const _VPC = "VoicePlayCommand";
79
+ const _VPE = "VoicePlaybackEvent";
108
80
  const _VPL = "VoicePronunciationList";
81
+ const _VRE = "VoiceReplyEvent";
82
+ const _VSC = "VoiceSayCommand";
83
+ const _VSCAO = "VoiceSayCommandAudioOptions";
84
+ const _VSCo = "VoiceStopCommand";
85
+ const _VSEE = "VoiceSessionEndedEvent";
109
86
  const _VSP = "VoiceSpeechPayload";
87
+ const _VSSE = "VoiceSessionStartedEvent";
88
+ const _VTC = "VoiceTransferCommand";
89
+ const _VTCF = "VoiceTextClientFrames";
90
+ const _VTE = "VoiceTranscriptionEvent";
91
+ const _VTPF = "VoiceTextProtocolFrames";
92
+ const _VTSF = "VoiceTextServerFrames";
110
93
  const _a = "audio/mpeg";
111
94
  const _aB = "audioBegin";
112
95
  const _aD = "autoDetect";
@@ -116,10 +99,7 @@ const _aI = "agentId";
116
99
  const _aM = "atMs";
117
100
  const _aN = "agentName";
118
101
  const _aT = "agentTranscription";
119
- const _aTWE = "agentTranscriptionWebsocketEvent";
120
102
  const _aV = "agentVersion";
121
- const _aWE = "audioWebsocketEvent";
122
- const _ac = "action";
123
103
  const _ag = "agent";
124
104
  const _as = "as";
125
105
  const _au = "audio";
@@ -129,124 +109,104 @@ const _cC = "callerCompany";
129
109
  const _cE = "callEvent";
130
110
  const _cEa = "callerEmail";
131
111
  const _cI = "callId";
112
+ const _cIo = "connectionId";
132
113
  const _cN = "callerName";
133
114
  const _cNa = "callerNumber";
134
115
  const _cP = "connectParams";
116
+ const _cS = "callSocket";
135
117
  const _cT = "contentType";
136
- const _cWE = "completeWebsocketEvent";
137
- const _cWEo = "controlWebsocketEvent";
138
- const _ca = "cause";
118
+ const _ca = "category";
139
119
  const _cal = "caller";
140
- const _cat = "category";
141
- const _ch = "channels";
142
- const _cl = "cloud";
143
120
  const _co = "confidence";
144
121
  const _cod = "code";
145
- const _com = "command";
122
+ const _com = "complete";
146
123
  const _comp = "company";
147
- const _compl = "complete";
148
124
  const _con = "context";
149
125
  const _cr = "credential";
150
126
  const _d = "data";
151
127
  const _dN = "dialedNumber";
152
128
  const _di = "digits";
153
- const _dr = "draft";
154
- const _dro = "dropped";
129
+ const _dr = "dropped";
130
+ const _dra = "draft";
155
131
  const _dt = "dtmf";
156
132
  const _du = "duck";
157
133
  const _e = "error";
158
134
  const _eD = "energyDb";
159
135
  const _eM = "endMs";
160
136
  const _eT = "endTime";
161
- const _eWE = "errorWebsocketEvent";
162
137
  const _em = "email";
163
138
  const _en = "encoding";
164
- const _end = "ended";
139
+ const _end = "end";
140
+ const _ende = "ended";
165
141
  const _eng = "engine";
166
- const _ev = "event";
167
- const _eve = "events";
142
+ const _ev = "events";
143
+ const _eve = "event";
168
144
  const _ex = "extension";
169
145
  const _f = "final";
146
+ const _fDR = "finalDropReason";
170
147
  const _fI = "flowIndex";
171
- const _fi = "finished";
172
- const _fin = "finish";
173
148
  const _fr = "from";
174
149
  const _gI = "groupId";
175
150
  const _h = "hangup";
176
151
  const _hE = "httpError";
177
152
  const _hH = "httpHeader";
178
153
  const _hQ = "httpQuery";
179
- const _hWC = "hangupWebsocketCommand";
154
+ const _he = "healthcheck";
180
155
  const _ht = "http";
181
156
  const _i = "id";
182
- const _iA = "inputAudio";
183
157
  const _iM = "initialMessage";
184
158
  const _iMn = "inputMode";
185
- const _iWE = "interruptionWebsocketEvent";
186
159
  const _in = "interruptible";
187
160
  const _int = "interruption";
188
161
  const _l = "language";
189
162
  const _la = "languages";
190
163
  const _m = "message";
191
164
  const _mT = "mediaType";
192
- const _me = "media";
193
- const _met = "metadata";
165
+ const _me = "metadata";
194
166
  const _n = "name";
195
167
  const _nu = "number";
196
- const _oA = "outputAudio";
197
168
  const _oT = "originalText";
198
169
  const _p = "phrase";
199
170
  const _pL = "preferredLanguage";
200
171
  const _pM = "playedMs";
201
172
  const _pT = "playedText";
202
173
  const _pV = "protocolVersion";
203
- const _pWC = "playWebsocketCommand";
204
- const _pWE = "playbackWebsocketEvent";
205
174
  const _pa = "party";
206
- const _pb = "pbx";
207
175
  const _ph = "phase";
208
176
  const _pl = "playback";
177
+ const _pla = "play";
209
178
  const _pr = "provider";
210
179
  const _pro = "pronunciations";
211
- const _pu = "purpose";
212
180
  const _r = "reason";
213
181
  const _rAM = "resumeAtMs";
214
182
  const _rI = "replyId";
215
183
  const _rM = "rampMs";
216
- const _rWE = "replyWebsocketEvent";
217
- const _re = "restore";
218
- const _rec = "reconnect";
184
+ const _re = "retryable";
219
185
  const _rep = "reply";
220
186
  const _res = "resume";
221
- const _ret = "retryable";
222
187
  const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
223
- const _sEWE = "sessionEndedWebsocketEvent";
224
188
  const _sI = "streamId";
225
189
  const _sIe = "sessionId";
226
190
  const _sLD = "silenceLevelDb";
227
191
  const _sLDp = "speechLevelDb";
228
- const _sM = "startMs";
229
- const _sMi = "silenceMs";
192
+ const _sM = "silenceMs";
230
193
  const _sMt = "startMessage";
194
+ const _sMta = "startMs";
231
195
  const _sR = "sampleRate";
232
- const _sSWE = "sessionStartedWebsocketEvent";
233
196
  const _sT = "startTime";
234
- const _sWC = "sayWebsocketCommand";
235
- const _sWCt = "stopWebsocketCommand";
236
197
  const _sa = "say";
237
- const _se = "seq";
238
- const _sp = "speaking";
239
- const _spe = "speech";
198
+ const _se = "server";
199
+ const _sp = "speech";
200
+ const _spe = "speaking";
240
201
  const _st = "streaming";
241
- const _sta = "started";
242
- const _star = "start";
202
+ const _sta = "start";
203
+ const _star = "started";
243
204
  const _sto = "stop";
244
205
  const _t = "type";
245
206
  const _tCI = "toolCallId";
246
207
  const _tI = "traceId";
247
208
  const _tN = "toolName";
248
- const _tWC = "transferWebsocketCommand";
249
- const _tWE = "transcriptionWebsocketEvent";
209
+ const _tS = "textSocket";
250
210
  const _te = "text";
251
211
  const _ti = "time";
252
212
  const _to = "to";
@@ -254,6 +214,7 @@ const _too = "tool";
254
214
  const _tr = "transcription";
255
215
  const _tra = "transfer";
256
216
  const _u = "uri";
217
+ const _us = "user";
257
218
  const _v = "voices";
258
219
  const _vD = "volumeDb";
259
220
  const _vDo = "voiceDetection";
@@ -264,6 +225,7 @@ const _vo = "voice";
264
225
  const n0 = "smithy.framework";
265
226
  const n1 = "wildix.wilma.voice";
266
227
  const n2 = "wildix.wilma.agents";
228
+ const n3 = "wildix.wilma.common";
267
229
  import { TypeRegistry } from "@smithy/core/schema";
268
230
  import { ForbiddenException, NotFoundException, ValidationException } from "../models/errors";
269
231
  import { WilmaVoiceServiceException } from "../models/WilmaVoiceServiceException";
@@ -295,265 +257,120 @@ export const errorTypeRegistries = [
295
257
  ];
296
258
  var Mp3Audio = [0, n1, _MA, { [_mT]: _a }, 21];
297
259
  var VoiceCallEventStreamBody = [0, n1, _VCESB, { [_st]: 1 }, 42];
260
+ export var VoiceDetectionSettings$ = [3, n2, _VDS,
261
+ 0,
262
+ [_sM, _sLD, _sLDp],
263
+ [1, 1, 1]
264
+ ];
298
265
  export var VoicePronunciation$ = [3, n2, _VP,
299
266
  0,
300
267
  [_p, _as, _en],
301
268
  [0, 0, 0], 2
302
269
  ];
303
- export var AgentTranscriptionEvent$ = [3, n1, _ATE,
304
- 0,
305
- [_t, _i, _te, _ti, _co, _f, _l],
306
- [0, 0, 0, 1, 1, 2, 0], 4
307
- ];
308
- export var AgentTranscriptionWebsocketEvent$ = [3, n1, _ATWE,
309
- 0,
310
- [_t, _ev],
311
- [0, () => AgentTranscriptionEvent$], 2
312
- ];
313
- export var AudioEvent$ = [3, n1, _AE,
314
- 0,
315
- [_t, _d, _se],
316
- [0, 0, 1], 2
317
- ];
318
- export var AudioWebsocketEvent$ = [3, n1, _AWE,
270
+ export var VoiceAgentTranscriptionEvent$ = [3, n3, _VATE,
319
271
  0,
320
- [_t, _ev],
321
- [0, () => AudioEvent$], 2
272
+ [_t, _te, _i, _co, _f, _l, _ti],
273
+ [0, 0, 0, 1, 2, 0, 1], 2
322
274
  ];
323
- export var CompleteEvent$ = [3, n1, _CE,
275
+ export var VoiceCompleteEvent$ = [3, n3, _VCE,
324
276
  0,
325
277
  [_t, _r, _ti],
326
- [0, 0, 1], 3
327
- ];
328
- export var CompleteWebsocketEvent$ = [3, n1, _CWE,
329
- 0,
330
- [_t, _ev],
331
- [0, () => CompleteEvent$], 2
332
- ];
333
- export var ControlEvent$ = [3, n1, _CEo,
334
- 0,
335
- [_t, _ac],
336
- [0, 0], 2
337
- ];
338
- export var ControlWebsocketEvent$ = [3, n1, _CWEo,
339
- 0,
340
- [_t, _ev],
341
- [0, () => ControlEvent$], 2
342
- ];
343
- export var DescribeVoiceProtocolInput$ = [3, n1, _DVPI,
344
- 0,
345
- [],
346
- []
347
- ];
348
- export var DescribeVoiceProtocolOutput$ = [3, n1, _DVPO,
349
- 0,
350
- [_cP, _aWE, _tWE, _aTWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC, _cE, _me],
351
- [() => VoiceConnectParams$, () => AudioWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => AgentTranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => ControlWebsocketEvent$, () => SessionStartedWebsocketEvent$, () => SessionEndedWebsocketEvent$, () => ErrorWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$, () => VoiceCallEvent$, () => MediaProtocolFrames$]
352
- ];
353
- export var ErrorWebsocketEvent$ = [3, n1, _EWE,
354
- 0,
355
- [_t, _ev],
356
- [0, () => VoiceErrorEvent$], 2
357
- ];
358
- export var HangupCommandData$ = [3, n1, _HCD,
359
- 0,
360
- [_t, _r],
361
- [0, 0], 1
362
- ];
363
- export var HangupWebsocketCommand$ = [3, n1, _HWC,
364
- 0,
365
- [_t, _com],
366
- [0, () => HangupCommandData$], 2
367
- ];
368
- export var InterruptionEvent$ = [3, n1, _IE,
369
- 0,
370
- [_t, _rI, _pT, _oT, _ti],
371
- [0, 0, 0, 0, 1], 5
278
+ [0, 0, 1], 1
372
279
  ];
373
- export var InterruptionWebsocketEvent$ = [3, n1, _IWE,
280
+ export var VoiceErrorEvent$ = [3, n3, _VEE,
374
281
  0,
375
- [_t, _ev],
376
- [0, () => InterruptionEvent$], 2
377
- ];
378
- export var ListVoicesInput$ = [3, n1, _LVI,
379
- 0,
380
- [_pr, _l, _cr],
381
- [[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _cr }]], 1
382
- ];
383
- export var ListVoicesOutput$ = [3, n1, _LVO,
384
- 0,
385
- [_v],
386
- [() => VoiceList], 1
387
- ];
388
- export var MediaAudioBeginFrame$ = [3, n1, _MABF,
389
- 0,
390
- [_t, _rI, _sI, _sR],
282
+ [_t, _cod, _m, _ti],
391
283
  [0, 0, 0, 1], 4
392
284
  ];
393
- export var MediaAudioEndFrame$ = [3, n1, _MAEF,
394
- 0,
395
- [_t, _sI],
396
- [0, 0], 2
397
- ];
398
- export var MediaAudioFormat$ = [3, n1, _MAF,
399
- 0,
400
- [_en, _sR, _ch],
401
- [0, 1, 1], 3
402
- ];
403
- export var MediaCloudFrames$ = [3, n1, _MCF,
404
- 0,
405
- [_sta, _tr, _aB, _au, _aE, _sto, _du, _re, _l, _tra, _h, _e, _fi],
406
- [() => MediaStartedFrame$, () => MediaTranscriptionFrame$, () => MediaAudioBeginFrame$, 21, () => MediaAudioEndFrame$, () => MediaStopFrame$, () => MediaDuckFrame$, () => MediaRestoreFrame$, () => MediaLanguageFrame$, () => MediaTransferFrame$, () => MediaHangupFrame$, () => MediaErrorFrame$, () => MediaFinishedFrame$]
407
- ];
408
- export var MediaDtmfFrame$ = [3, n1, _MDF,
409
- 0,
410
- [_t, _i, _di],
411
- [0, 0, 0], 3
412
- ];
413
- export var MediaDuckFrame$ = [3, n1, _MDFe,
414
- 0,
415
- [_t, _rI, _vD, _rM],
416
- [0, 0, 1, 1], 4
417
- ];
418
- export var MediaErrorFrame$ = [3, n1, _MEF,
419
- 0,
420
- [_t, _cod, _ret, _m],
421
- [0, 0, 2, 0], 4
422
- ];
423
- export var MediaFinishedFrame$ = [3, n1, _MFF,
424
- 0,
425
- [_t],
426
- [0], 1
427
- ];
428
- export var MediaFinishFrame$ = [3, n1, _MFFe,
285
+ export var VoiceHangupCommand$ = [3, n3, _VHC,
429
286
  0,
430
287
  [_t, _r],
431
- [0, 0], 2
288
+ [0, 0], 1
432
289
  ];
433
- export var MediaHangupFrame$ = [3, n1, _MHF,
290
+ export var VoiceHealthcheckCommand$ = [3, n3, _VHCo,
434
291
  0,
435
292
  [_t],
436
293
  [0], 1
437
294
  ];
438
- export var MediaLanguageFrame$ = [3, n1, _MLF,
295
+ export var VoiceInterruptionEvent$ = [3, n3, _VIE,
439
296
  0,
440
- [_t, _l],
441
- [0, 0], 2
442
- ];
443
- export var MediaPbxFrames$ = [3, n1, _MPF,
444
- 0,
445
- [_star, _au, _va, _dt, _pl, _fin],
446
- [() => MediaStartFrame$, 21, () => MediaVadFrame$, () => MediaDtmfFrame$, () => MediaPlaybackFrame$, () => MediaFinishFrame$]
297
+ [_t, _rI, _pT, _oT, _ti],
298
+ [0, 0, 0, 0, 1], 1
447
299
  ];
448
- export var MediaPlaybackFrame$ = [3, n1, _MPFe,
300
+ export var VoicePlaybackEvent$ = [3, n3, _VPE,
449
301
  0,
450
- [_t, _rI, _sI, _ev, _aM, _pM, _ca],
451
- [0, 0, 0, 0, 1, 1, 0], 5
302
+ [_t, _com, _rI, _te, _sT, _eT],
303
+ [0, 2, 0, 0, 1, 1], 2
452
304
  ];
453
- export var MediaProtocolFrames$ = [3, n1, _MPFed,
305
+ export var VoicePlayCommand$ = [3, n3, _VPC,
454
306
  0,
455
- [_pb, _cl],
456
- [() => MediaPbxFrames$, () => MediaCloudFrames$]
307
+ [_rI, _sI, _d, _t],
308
+ [0, 0, 0, 0], 4
457
309
  ];
458
- export var MediaRestoreFrame$ = [3, n1, _MRF,
310
+ export var VoiceReplyEvent$ = [3, n3, _VRE,
459
311
  0,
460
- [_t, _rI, _rM],
461
- [0, 0, 1], 3
312
+ [_t, _te, _i, _ti, _l, _co, _sT, _eT],
313
+ [0, 0, 0, 1, 0, 1, 1, 1], 2
462
314
  ];
463
- export var MediaStartAgent$ = [3, n1, _MSA,
315
+ export var VoiceSayCommand$ = [3, n3, _VSC,
464
316
  0,
465
- [_i, _dr, _ve],
466
- [0, 2, 1], 1
317
+ [_te, _rI, _t, _in, _au],
318
+ [0, 0, 0, 2, () => VoiceSayCommandAudioOptions$], 3
467
319
  ];
468
- export var MediaStartCaller$ = [3, n1, _MSC,
320
+ export var VoiceSayCommandAudioOptions$ = [3, n3, _VSCAO,
469
321
  0,
470
- [_n, _nu, _em, _comp],
471
- [0, 0, 0, 0]
322
+ [_sI, _sR],
323
+ [0, 1], 2
472
324
  ];
473
- export var MediaStartedAgent$ = [3, n1, _MSAe,
325
+ export var VoiceSessionEndedEvent$ = [3, n3, _VSEE,
474
326
  0,
475
- [_n],
476
- [0], 1
327
+ [_t, _ti, _r, _e],
328
+ [0, 1, 0, 0], 2
477
329
  ];
478
- export var MediaStartedFrame$ = [3, n1, _MSF,
330
+ export var VoiceSessionStartedEvent$ = [3, n3, _VSSE,
479
331
  0,
480
- [_t, _sI, _ag, _gI, _bS, _vDo],
481
- [0, 0, () => MediaStartedAgent$, 0, 0, () => MediaVoiceDetection$], 2
332
+ [_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _sp, _bS],
333
+ [0, 1, 0, 0, 1, 0, 0, 0, 0, () => VoiceSpeechPayload$, 0], 4
482
334
  ];
483
- export var MediaStartFrame$ = [3, n1, _MSFe,
335
+ export var VoiceSpeechPayload$ = [3, n3, _VSP,
484
336
  0,
485
- [_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal, _ag, _la, _pL, _aD, _dN, _var],
486
- [0, 0, 0, 1, 0, 2, 1, () => MediaAudioFormat$, () => MediaStartCaller$, () => MediaStartAgent$, 64 | 0, 0, 2, 0, 0], 9
337
+ [_eng, _la, _pL, _aD],
338
+ [0, 64 | 0, 0, 2], 4
487
339
  ];
488
- export var MediaStopFrame$ = [3, n1, _MSFed,
340
+ export var VoiceStopCommand$ = [3, n3, _VSCo,
489
341
  0,
490
342
  [_t],
491
343
  [0], 1
492
344
  ];
493
- export var MediaTranscriptionFrame$ = [3, n1, _MTF,
345
+ export var VoiceTranscriptionEvent$ = [3, n3, _VTE,
494
346
  0,
495
- [_t, _pa, _i, _f, _te, _sM, _eM, _l, _co],
496
- [0, 0, 0, 2, 0, 1, 1, 0, 1], 8
347
+ [_t, _te, _i, _co, _f, _l, _ti],
348
+ [0, 0, 0, 1, 2, 0, 1], 2
497
349
  ];
498
- export var MediaTransferFrame$ = [3, n1, _MTFe,
350
+ export var VoiceTransferCommand$ = [3, n3, _VTC,
499
351
  0,
500
- [_t, _con, _ex],
352
+ [_con, _ex, _t],
501
353
  [0, 0, 0], 3
502
354
  ];
503
- export var MediaVadFrame$ = [3, n1, _MVF,
504
- 0,
505
- [_t, _pa, _sp, _eD, _aM],
506
- [0, 0, 2, 1, 1], 5
507
- ];
508
- export var MediaVoiceDetection$ = [3, n1, _MVD,
509
- 0,
510
- [_sMi, _sLD, _sLDp],
511
- [1, 1, 1], 3
512
- ];
513
- export var PlaybackEvent$ = [3, n1, _PE,
514
- 0,
515
- [_t, _rI, _te, _compl, _sT, _eT],
516
- [0, 0, 0, 2, 1, 1], 5
517
- ];
518
- export var PlaybackWebsocketEvent$ = [3, n1, _PWE,
519
- 0,
520
- [_t, _ev],
521
- [0, () => PlaybackEvent$], 2
522
- ];
523
- export var PlayCommandData$ = [3, n1, _PCD,
524
- 0,
525
- [_rI, _sI, _d, _t],
526
- [0, 0, 0, 0], 4
527
- ];
528
- export var PlayWebsocketCommand$ = [3, n1, _PWC,
529
- 0,
530
- [_t, _com],
531
- [0, () => PlayCommandData$], 2
532
- ];
533
- export var ReplyEvent$ = [3, n1, _RE,
534
- 0,
535
- [_t, _i, _te, _sT, _eT, _l],
536
- [0, 0, 0, 1, 1, 0], 5
537
- ];
538
- export var ReplyWebsocketEvent$ = [3, n1, _RWE,
355
+ export var DescribeVoiceProtocolInput$ = [3, n1, _DVPI,
539
356
  0,
540
- [_t, _ev],
541
- [0, () => ReplyEvent$], 2
357
+ [],
358
+ []
542
359
  ];
543
- export var SayCommandAudioOptions$ = [3, n1, _SCAO,
360
+ export var DescribeVoiceProtocolOutput$ = [3, n1, _DVPO,
544
361
  0,
545
- [_sI, _sR],
546
- [0, 1], 2
362
+ [_tS, _cS, _cE],
363
+ [() => VoiceTextProtocolFrames$, () => VoiceCallProtocolFrames$, () => VoiceCallEvent$]
547
364
  ];
548
- export var SayCommandData$ = [3, n1, _SCD,
365
+ export var ListVoicesInput$ = [3, n1, _LVI,
549
366
  0,
550
- [_te, _rI, _t, _in, _vo, _au],
551
- [0, 0, 0, 2, 0, () => SayCommandAudioOptions$], 3
367
+ [_pr, _l, _cr],
368
+ [[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _cr }]], 1
552
369
  ];
553
- export var SayWebsocketCommand$ = [3, n1, _SWC,
370
+ export var ListVoicesOutput$ = [3, n1, _LVO,
554
371
  0,
555
- [_t, _com],
556
- [0, () => SayCommandData$], 2
372
+ [_v],
373
+ [() => VoiceList], 1
557
374
  ];
558
375
  export var SendHangupInput$ = [3, n1, _SHI,
559
376
  0,
@@ -577,8 +394,8 @@ export var SendPlayOutput$ = [3, n1, _SPO,
577
394
  ];
578
395
  export var SendSayInput$ = [3, n1, _SSI,
579
396
  0,
580
- [_te, _rI, _sIe, _in, _vo, _au],
581
- [0, 0, [0, 1], 2, 0, () => SayCommandAudioOptions$], 3
397
+ [_te, _rI, _sIe, _in, _au],
398
+ [0, 0, [0, 1], 2, () => VoiceSayCommandAudioOptions$], 3
582
399
  ];
583
400
  export var SendSayOutput$ = [3, n1, _SSO,
584
401
  0,
@@ -605,36 +422,6 @@ export var SendTransferOutput$ = [3, n1, _STO,
605
422
  [],
606
423
  []
607
424
  ];
608
- export var SessionEndedEvent$ = [3, n1, _SEE,
609
- 0,
610
- [_t, _ti, _r, _e],
611
- [0, 1, 0, 0], 2
612
- ];
613
- export var SessionEndedWebsocketEvent$ = [3, n1, _SEWE,
614
- 0,
615
- [_t, _ev],
616
- [0, () => SessionEndedEvent$], 2
617
- ];
618
- export var SessionStartedEvent$ = [3, n1, _SSE,
619
- 0,
620
- [_t, _ti, _sIe, _aI, _aV, _tI, _aN, _cat, _gI, _spe, _bS, _iA, _oA],
621
- [0, 1, 0, 0, 1, 0, 0, 0, 0, () => VoiceSpeechPayload$, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 4
622
- ];
623
- export var SessionStartedWebsocketEvent$ = [3, n1, _SSWE,
624
- 0,
625
- [_t, _ev],
626
- [0, () => SessionStartedEvent$], 2
627
- ];
628
- export var StopCommandData$ = [3, n1, _SCDt,
629
- 0,
630
- [_t],
631
- [0], 1
632
- ];
633
- export var StopWebsocketCommand$ = [3, n1, _SWCt,
634
- 0,
635
- [_t, _com],
636
- [0, () => StopCommandData$], 2
637
- ];
638
425
  export var StreamCallEventsInput$ = [3, n1, _SCEI,
639
426
  0,
640
427
  [_cI, _comp],
@@ -642,7 +429,7 @@ export var StreamCallEventsInput$ = [3, n1, _SCEI,
642
429
  ];
643
430
  export var StreamCallEventsOutput$ = [3, n1, _SCEO,
644
431
  0,
645
- [_eve, _cT],
432
+ [_ev, _cT],
646
433
  [[() => VoiceCallEventStreamBody, 16], [0, { [_hH]: _CT }]], 2
647
434
  ];
648
435
  export var TextToSpeechInput$ = [3, n1, _TTSI,
@@ -655,46 +442,66 @@ export var TextToSpeechOutput$ = [3, n1, _TTSO,
655
442
  [_au],
656
443
  [[() => Mp3Audio, 16]], 1
657
444
  ];
658
- export var TranscriptionEvent$ = [3, n1, _TE,
445
+ export var Voice$ = [3, n1, _V,
659
446
  0,
660
- [_t, _i, _te, _ti, _co, _f, _l],
661
- [0, 0, 0, 1, 1, 2, 0], 4
447
+ [_u, _n, _me],
448
+ [0, 0, 15], 2
662
449
  ];
663
- export var TranscriptionWebsocketEvent$ = [3, n1, _TWE,
450
+ export var VoiceCallAgentTranscriptionEvent$ = [3, n1, _VCATE,
664
451
  0,
665
- [_t, _ev],
666
- [0, () => TranscriptionEvent$], 2
452
+ [_i, _te, _f, _l, _ti],
453
+ [0, 0, 2, 0, 1], 3
667
454
  ];
668
- export var TransferCommandData$ = [3, n1, _TCD,
455
+ export var VoiceCallAudioBeginFrame$ = [3, n1, _VCABF,
669
456
  0,
670
- [_con, _ex, _t],
671
- [0, 0, 0], 3
457
+ [_t, _rI, _sI, _sR],
458
+ [0, 0, 0, 1], 4
672
459
  ];
673
- export var TransferWebsocketCommand$ = [3, n1, _TWC,
460
+ export var VoiceCallAudioEndFrame$ = [3, n1, _VCAEF,
674
461
  0,
675
- [_t, _com],
676
- [0, () => TransferCommandData$], 2
462
+ [_t, _sI],
463
+ [0, 0], 2
677
464
  ];
678
- export var Voice$ = [3, n1, _V,
465
+ export var VoiceCallClientFrames$ = [3, n1, _VCCF,
679
466
  0,
680
- [_u, _n, _met],
681
- [0, 0, 15], 2
467
+ [_sta, _va, _dt, _pl, _end],
468
+ [() => VoiceCallStartFrame$, () => VoiceCallVadFrame$, () => VoiceCallDtmfFrame$, () => VoiceCallPlaybackFrame$, () => VoiceCallEndFrame$]
682
469
  ];
683
- export var VoiceAudioFormat$ = [3, n1, _VAF,
470
+ export var VoiceCallDtmfFrame$ = [3, n1, _VCDF,
684
471
  0,
685
- [_en, _sR, _ch],
686
- [0, 1, 1], 2
472
+ [_t, _i, _di],
473
+ [0, 0, 0], 3
687
474
  ];
688
- export var VoiceCallAgentTranscriptionEvent$ = [3, n1, _VCATE,
475
+ export var VoiceCallDuckFrame$ = [3, n1, _VCDFo,
689
476
  0,
690
- [_i, _te, _f, _l, _ti],
691
- [0, 0, 2, 0, 1], 3
477
+ [_t, _rI, _vD, _rM],
478
+ [0, 0, 1, 1], 4
692
479
  ];
693
480
  export var VoiceCallEndedEvent$ = [3, n1, _VCEE,
694
481
  0,
695
482
  [_sIe, _r],
696
483
  [0, 0], 2
697
484
  ];
485
+ export var VoiceCallEndedFrame$ = [3, n1, _VCEF,
486
+ 0,
487
+ [_t],
488
+ [0], 1
489
+ ];
490
+ export var VoiceCallEndFrame$ = [3, n1, _VCEFo,
491
+ 0,
492
+ [_t, _r],
493
+ [0, 0], 2
494
+ ];
495
+ export var VoiceCallErrorFrame$ = [3, n1, _VCEFoi,
496
+ 0,
497
+ [_t, _cod, _re, _m],
498
+ [0, 0, 2, 0], 4
499
+ ];
500
+ export var VoiceCallHangupFrame$ = [3, n1, _VCHF,
501
+ 0,
502
+ [_t],
503
+ [0], 1
504
+ ];
698
505
  export var VoiceCallInterruptionEvent$ = [3, n1, _VCIE,
699
506
  0,
700
507
  [_rI, _pT, _oT],
@@ -705,11 +512,26 @@ export var VoiceCallLanguageEvent$ = [3, n1, _VCLE,
705
512
  [_to, _r, _fr],
706
513
  [0, 0, 0], 2
707
514
  ];
515
+ export var VoiceCallLanguageFrame$ = [3, n1, _VCLF,
516
+ 0,
517
+ [_t, _l],
518
+ [0, 0], 2
519
+ ];
708
520
  export var VoiceCallPlaybackEvent$ = [3, n1, _VCPE,
709
521
  0,
710
- [_rI, _compl],
522
+ [_rI, _com],
711
523
  [0, 2], 2
712
524
  ];
525
+ export var VoiceCallPlaybackFrame$ = [3, n1, _VCPF,
526
+ 0,
527
+ [_t, _rI, _sI, _eve, _aM, _pM, _dr],
528
+ [0, 0, 0, 0, 1, 1, 2], 5
529
+ ];
530
+ export var VoiceCallProtocolFrames$ = [3, n1, _VCPFo,
531
+ 0,
532
+ [_c, _se],
533
+ [() => VoiceCallClientFrames$, () => VoiceCallServerFrames$]
534
+ ];
713
535
  export var VoiceCallReplyEvent$ = [3, n1, _VCRE,
714
536
  0,
715
537
  [_i, _te, _l],
@@ -720,11 +542,46 @@ export var VoiceCallSayEvent$ = [3, n1, _VCSE,
720
542
  [_rI, _te, _in],
721
543
  [0, 0, 2], 3
722
544
  ];
545
+ export var VoiceCallServerFrames$ = [3, n1, _VCSF,
546
+ 0,
547
+ [_star, _tr, _aB, _aE, _sto, _du, _l, _tra, _h, _e, _ende],
548
+ [() => VoiceCallStartedFrame$, () => VoiceCallTranscriptionFrame$, () => VoiceCallAudioBeginFrame$, () => VoiceCallAudioEndFrame$, () => VoiceCallStopFrame$, () => VoiceCallDuckFrame$, () => VoiceCallLanguageFrame$, () => VoiceCallTransferFrame$, () => VoiceCallHangupFrame$, () => VoiceCallErrorFrame$, () => VoiceCallEndedFrame$]
549
+ ];
550
+ export var VoiceCallStartAgent$ = [3, n1, _VCSA,
551
+ 0,
552
+ [_i, _dra, _ve],
553
+ [0, 2, 1], 1
554
+ ];
555
+ export var VoiceCallStartCaller$ = [3, n1, _VCSC,
556
+ 0,
557
+ [_n, _nu, _em, _comp],
558
+ [0, 0, 0, 0]
559
+ ];
560
+ export var VoiceCallStartedAgent$ = [3, n1, _VCSAo,
561
+ 0,
562
+ [_i, _n, _gI],
563
+ [0, 0, 0], 2
564
+ ];
723
565
  export var VoiceCallStartedEvent$ = [3, n1, _VCSEo,
724
566
  0,
725
567
  [_sIe, _aI, _tI, _aN, _aV, _aDg, _l],
726
568
  [0, 0, 0, 0, 1, 2, 0], 2
727
569
  ];
570
+ export var VoiceCallStartedFrame$ = [3, n1, _VCSFo,
571
+ 0,
572
+ [_t, _cIo, _ag, _bS, _vDo],
573
+ [0, 0, () => VoiceCallStartedAgent$, 0, () => VoiceDetectionSettings$], 3
574
+ ];
575
+ export var VoiceCallStartFrame$ = [3, n1, _VCSFoi,
576
+ 0,
577
+ [_t, _cI, _fI, _sIe, _res, _rAM, _ag, _l, _cal, _dN, _var],
578
+ [0, 0, 1, 0, 2, 1, () => VoiceCallStartAgent$, 0, () => VoiceCallStartCaller$, 0, 0], 9
579
+ ];
580
+ export var VoiceCallStopFrame$ = [3, n1, _VCSFoic,
581
+ 0,
582
+ [_t],
583
+ [0], 1
584
+ ];
728
585
  export var VoiceCallToolEvent$ = [3, n1, _VCTE,
729
586
  0,
730
587
  [_tCI, _tN, _ph, _sMt],
@@ -732,35 +589,54 @@ export var VoiceCallToolEvent$ = [3, n1, _VCTE,
732
589
  ];
733
590
  export var VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
734
591
  0,
735
- [_i, _te, _f, _l, _ti, _dro],
592
+ [_i, _te, _f, _l, _ti, _fDR],
736
593
  [0, 0, 2, 0, 1, 0], 3
737
594
  ];
595
+ export var VoiceCallTranscriptionFrame$ = [3, n1, _VCTF,
596
+ 0,
597
+ [_t, _pa, _i, _f, _te, _sMta, _eM, _l, _co],
598
+ [0, 0, 0, 2, 0, 1, 1, 0, 1], 8
599
+ ];
600
+ export var VoiceCallTransferFrame$ = [3, n1, _VCTFo,
601
+ 0,
602
+ [_con, _ex, _t],
603
+ [0, 0, 0], 3
604
+ ];
605
+ export var VoiceCallVadFrame$ = [3, n1, _VCVF,
606
+ 0,
607
+ [_t, _spe, _eD, _aM],
608
+ [0, 2, 1, 1], 4
609
+ ];
738
610
  export var VoiceConnectParams$ = [3, n1, _VCP,
739
611
  0,
740
- [_sIe, _aI, _pV, _res, _rec, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
741
- [0, 0, 1, 2, 2, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
612
+ [_sIe, _aI, _pV, _res, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _us, _comp],
613
+ [0, 0, 1, 2, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 2
742
614
  ];
743
- export var VoiceErrorEvent$ = [3, n1, _VEE,
615
+ export var VoiceTextClientFrames$ = [3, n1, _VTCF,
744
616
  0,
745
- [_t, _cod, _m, _ti],
746
- [0, 0, 0, 1], 4
617
+ [_he, _tr, _aT, _rep, _pl, _int, _com],
618
+ [() => VoiceHealthcheckCommand$, () => VoiceTranscriptionEvent$, () => VoiceAgentTranscriptionEvent$, () => VoiceReplyEvent$, () => VoicePlaybackEvent$, () => VoiceInterruptionEvent$, () => VoiceCompleteEvent$]
747
619
  ];
748
- export var VoiceSpeechPayload$ = [3, n1, _VSP,
620
+ export var VoiceTextProtocolFrames$ = [3, n1, _VTPF,
749
621
  0,
750
- [_eng, _la, _pL, _aD],
751
- [0, 64 | 0, 0, 2], 4
622
+ [_cP, _c, _se],
623
+ [() => VoiceConnectParams$, () => VoiceTextClientFrames$, () => VoiceTextServerFrames$]
624
+ ];
625
+ export var VoiceTextServerFrames$ = [3, n1, _VTSF,
626
+ 0,
627
+ [_star, _ende, _e, _sa, _pla, _sto, _h, _tra],
628
+ [() => VoiceSessionStartedEvent$, () => VoiceSessionEndedEvent$, () => VoiceErrorEvent$, () => VoiceSayCommand$, () => VoicePlayCommand$, () => VoiceStopCommand$, () => VoiceHangupCommand$, () => VoiceTransferCommand$]
752
629
  ];
753
630
  var LanguageCodeList = 64 | 0;
754
631
  var VoicePronunciationList = [1, n2, _VPL,
755
632
  0, () => VoicePronunciation$
756
633
  ];
757
- var MediaStartLanguageList = 64 | 0;
758
634
  var VoiceList = [1, n1, _VL,
759
635
  0, () => Voice$
760
636
  ];
761
- export var VoiceCallEvent$ = [4, n1, _VCE,
637
+ export var VoiceCallEvent$ = [4, n1, _VCEo,
762
638
  0,
763
- [_sta, _tr, _aT, _rep, _sa, _pl, _int, _l, _too, _end],
639
+ [_star, _tr, _aT, _rep, _sa, _pl, _int, _l, _too, _ende],
764
640
  [() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () => VoiceCallEndedEvent$]
765
641
  ];
766
642
  export var DescribeVoiceProtocol$ = [9, n1, _DVP,