@wildix/wilma-voice-client 0.0.31 → 0.0.34

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,7 +1,10 @@
1
1
  const _AE = "AudioEvent";
2
+ const _ATE = "AgentTranscriptionEvent";
3
+ const _ATWE = "AgentTranscriptionWebsocketEvent";
2
4
  const _AWE = "AudioWebsocketEvent";
3
5
  const _CE = "CompleteEvent";
4
6
  const _CEo = "ControlEvent";
7
+ const _CT = "Content-Type";
5
8
  const _CWE = "CompleteWebsocketEvent";
6
9
  const _CWEo = "ControlWebsocketEvent";
7
10
  const _DVP = "DescribeVoiceProtocol";
@@ -27,6 +30,9 @@ const _RWE = "ReplyWebsocketEvent";
27
30
  const _SCAO = "SayCommandAudioOptions";
28
31
  const _SCD = "SayCommandData";
29
32
  const _SCDt = "StopCommandData";
33
+ const _SCE = "StreamCallEvents";
34
+ const _SCEI = "StreamCallEventsInput";
35
+ const _SCEO = "StreamCallEventsOutput";
30
36
  const _SEE = "SessionEndedEvent";
31
37
  const _SEWE = "SessionEndedWebsocketEvent";
32
38
  const _SH = "SendHangup";
@@ -57,7 +63,19 @@ const _TWC = "TransferWebsocketCommand";
57
63
  const _TWE = "TranscriptionWebsocketEvent";
58
64
  const _V = "Voice";
59
65
  const _VAF = "VoiceAudioFormat";
66
+ const _VCATE = "VoiceCallAgentTranscriptionEvent";
67
+ const _VCE = "VoiceCallEvent";
68
+ const _VCEE = "VoiceCallEndedEvent";
69
+ const _VCESB = "VoiceCallEventStreamBody";
70
+ const _VCIE = "VoiceCallInterruptionEvent";
71
+ const _VCLE = "VoiceCallLanguageEvent";
60
72
  const _VCP = "VoiceConnectParams";
73
+ const _VCPE = "VoiceCallPlaybackEvent";
74
+ const _VCRE = "VoiceCallReplyEvent";
75
+ const _VCSE = "VoiceCallSayEvent";
76
+ const _VCSEo = "VoiceCallStartedEvent";
77
+ const _VCTE = "VoiceCallToolEvent";
78
+ const _VCTEo = "VoiceCallTranscriptionEvent";
61
79
  const _VE = "ValidationException";
62
80
  const _VEE = "VoiceErrorEvent";
63
81
  const _VL = "VoiceList";
@@ -69,6 +87,8 @@ const _aD = "agentDraft";
69
87
  const _aDu = "autoDetect";
70
88
  const _aI = "agentId";
71
89
  const _aN = "agentName";
90
+ const _aT = "agentTranscription";
91
+ const _aTWE = "agentTranscriptionWebsocketEvent";
72
92
  const _aV = "agentVersion";
73
93
  const _aWE = "audioWebsocketEvent";
74
94
  const _ac = "action";
@@ -77,33 +97,42 @@ const _au = "audio";
77
97
  const _bS = "backgroundSound";
78
98
  const _c = "client";
79
99
  const _cC = "callerCompany";
80
- const _cE = "callerEmail";
100
+ const _cE = "callEvent";
101
+ const _cEa = "callerEmail";
81
102
  const _cI = "callId";
82
103
  const _cN = "callerName";
83
104
  const _cNa = "callerNumber";
84
105
  const _cP = "connectParams";
106
+ const _cT = "contentType";
85
107
  const _cWE = "completeWebsocketEvent";
86
108
  const _cWEo = "controlWebsocketEvent";
87
109
  const _ca = "category";
88
110
  const _ch = "channels";
89
- const _co = "command";
111
+ const _co = "confidence";
90
112
  const _cod = "code";
91
- const _com = "complete";
113
+ const _com = "command";
114
+ const _comp = "complete";
115
+ const _compa = "company";
92
116
  const _con = "context";
93
- const _conf = "confidence";
94
117
  const _cr = "credential";
95
118
  const _d = "data";
119
+ const _dN = "dialedNumber";
96
120
  const _e = "error";
97
121
  const _eT = "endTime";
98
122
  const _eWE = "errorWebsocketEvent";
99
123
  const _en = "encoding";
124
+ const _end = "ended";
100
125
  const _eng = "engine";
101
126
  const _ev = "event";
127
+ const _eve = "events";
102
128
  const _ex = "extension";
103
129
  const _f = "final";
130
+ const _fI = "flowIndex";
131
+ const _fr = "from";
104
132
  const _gI = "groupId";
105
133
  const _h = "http";
106
134
  const _hE = "httpError";
135
+ const _hH = "httpHeader";
107
136
  const _hQ = "httpQuery";
108
137
  const _hWC = "hangupWebsocketCommand";
109
138
  const _i = "id";
@@ -112,6 +141,8 @@ const _iM = "initialMessage";
112
141
  const _iMn = "inputMode";
113
142
  const _iWE = "interruptionWebsocketEvent";
114
143
  const _in = "interruptible";
144
+ const _inc = "include";
145
+ const _int = "interruption";
115
146
  const _l = "language";
116
147
  const _la = "languages";
117
148
  const _m = "message";
@@ -126,28 +157,39 @@ const _pT = "playedText";
126
157
  const _pV = "protocolVersion";
127
158
  const _pWC = "playWebsocketCommand";
128
159
  const _pWE = "playbackWebsocketEvent";
160
+ const _ph = "phase";
161
+ const _pl = "playback";
129
162
  const _pr = "provider";
130
163
  const _pro = "pronunciations";
131
164
  const _r = "reason";
132
165
  const _rI = "replyId";
133
166
  const _rWE = "replyWebsocketEvent";
167
+ const _re = "reply";
134
168
  const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
135
169
  const _sEWE = "sessionEndedWebsocketEvent";
136
170
  const _sI = "streamId";
137
171
  const _sIe = "sessionId";
172
+ const _sM = "startMessage";
138
173
  const _sR = "sampleRate";
139
174
  const _sSWE = "sessionStartedWebsocketEvent";
140
175
  const _sT = "startTime";
141
176
  const _sWC = "sayWebsocketCommand";
142
177
  const _sWCt = "stopWebsocketCommand";
178
+ const _sa = "say";
143
179
  const _se = "seq";
144
180
  const _sp = "speech";
181
+ const _st = "streaming";
182
+ const _sta = "started";
145
183
  const _t = "type";
146
184
  const _tI = "traceId";
185
+ const _tN = "toolName";
147
186
  const _tWC = "transferWebsocketCommand";
148
187
  const _tWE = "transcriptionWebsocketEvent";
149
188
  const _te = "text";
150
189
  const _ti = "time";
190
+ const _to = "to";
191
+ const _too = "tool";
192
+ const _tr = "transcription";
151
193
  const _u = "uri";
152
194
  const _v = "voices";
153
195
  const _va = "variables";
@@ -185,11 +227,22 @@ export const errorTypeRegistries = [
185
227
  n0_registry,
186
228
  ];
187
229
  var Mp3Audio = [0, n1, _MA, { [_mT]: _a }, 21];
230
+ var VoiceCallEventStreamBody = [0, n1, _VCESB, { [_st]: 1 }, 42];
188
231
  export var VoicePronunciation$ = [3, n2, _VP,
189
232
  0,
190
233
  [_p, _as, _en],
191
234
  [0, 0, 0], 2
192
235
  ];
236
+ export var AgentTranscriptionEvent$ = [3, n1, _ATE,
237
+ 0,
238
+ [_t, _i, _te, _ti, _co, _f, _l],
239
+ [0, 0, 0, 1, 1, 2, 0], 4
240
+ ];
241
+ export var AgentTranscriptionWebsocketEvent$ = [3, n1, _ATWE,
242
+ 0,
243
+ [_t, _ev],
244
+ [0, () => AgentTranscriptionEvent$], 2
245
+ ];
193
246
  export var AudioEvent$ = [3, n1, _AE,
194
247
  0,
195
248
  [_t, _d, _se],
@@ -227,8 +280,8 @@ export var DescribeVoiceProtocolInput$ = [3, n1, _DVPI,
227
280
  ];
228
281
  export var DescribeVoiceProtocolOutput$ = [3, n1, _DVPO,
229
282
  0,
230
- [_cP, _aWE, _tWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC],
231
- [() => VoiceConnectParams$, () => AudioWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => ControlWebsocketEvent$, () => SessionStartedWebsocketEvent$, () => SessionEndedWebsocketEvent$, () => ErrorWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$]
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$]
232
285
  ];
233
286
  export var ErrorWebsocketEvent$ = [3, n1, _EWE,
234
287
  0,
@@ -242,7 +295,7 @@ export var HangupCommandData$ = [3, n1, _HCD,
242
295
  ];
243
296
  export var HangupWebsocketCommand$ = [3, n1, _HWC,
244
297
  0,
245
- [_t, _co],
298
+ [_t, _com],
246
299
  [0, () => HangupCommandData$], 2
247
300
  ];
248
301
  export var InterruptionEvent$ = [3, n1, _IE,
@@ -267,7 +320,7 @@ export var ListVoicesOutput$ = [3, n1, _LVO,
267
320
  ];
268
321
  export var PlaybackEvent$ = [3, n1, _PE,
269
322
  0,
270
- [_t, _rI, _te, _com, _sT, _eT],
323
+ [_t, _rI, _te, _comp, _sT, _eT],
271
324
  [0, 0, 0, 2, 1, 1], 5
272
325
  ];
273
326
  export var PlaybackWebsocketEvent$ = [3, n1, _PWE,
@@ -282,7 +335,7 @@ export var PlayCommandData$ = [3, n1, _PCD,
282
335
  ];
283
336
  export var PlayWebsocketCommand$ = [3, n1, _PWC,
284
337
  0,
285
- [_t, _co],
338
+ [_t, _com],
286
339
  [0, () => PlayCommandData$], 2
287
340
  ];
288
341
  export var ReplyEvent$ = [3, n1, _RE,
@@ -307,7 +360,7 @@ export var SayCommandData$ = [3, n1, _SCD,
307
360
  ];
308
361
  export var SayWebsocketCommand$ = [3, n1, _SWC,
309
362
  0,
310
- [_t, _co],
363
+ [_t, _com],
311
364
  [0, () => SayCommandData$], 2
312
365
  ];
313
366
  export var SendHangupInput$ = [3, n1, _SHI,
@@ -387,9 +440,19 @@ export var StopCommandData$ = [3, n1, _SCDt,
387
440
  ];
388
441
  export var StopWebsocketCommand$ = [3, n1, _SWCt,
389
442
  0,
390
- [_t, _co],
443
+ [_t, _com],
391
444
  [0, () => StopCommandData$], 2
392
445
  ];
446
+ export var StreamCallEventsInput$ = [3, n1, _SCEI,
447
+ 0,
448
+ [_cI, _compa, _inc],
449
+ [[0, 1], [0, { [_hQ]: _compa }], [64 | 0, { [_hQ]: _inc }]], 1
450
+ ];
451
+ export var StreamCallEventsOutput$ = [3, n1, _SCEO,
452
+ 0,
453
+ [_eve, _cT],
454
+ [[() => VoiceCallEventStreamBody, 16], [0, { [_hH]: _CT }]], 2
455
+ ];
393
456
  export var TextToSpeechInput$ = [3, n1, _TTSI,
394
457
  0,
395
458
  [_vo, _l, _te, _pro],
@@ -402,7 +465,7 @@ export var TextToSpeechOutput$ = [3, n1, _TTSO,
402
465
  ];
403
466
  export var TranscriptionEvent$ = [3, n1, _TE,
404
467
  0,
405
- [_t, _i, _te, _ti, _conf, _f, _l],
468
+ [_t, _i, _te, _ti, _co, _f, _l],
406
469
  [0, 0, 0, 1, 1, 2, 0], 4
407
470
  ];
408
471
  export var TranscriptionWebsocketEvent$ = [3, n1, _TWE,
@@ -417,7 +480,7 @@ export var TransferCommandData$ = [3, n1, _TCD,
417
480
  ];
418
481
  export var TransferWebsocketCommand$ = [3, n1, _TWC,
419
482
  0,
420
- [_t, _co],
483
+ [_t, _com],
421
484
  [0, () => TransferCommandData$], 2
422
485
  ];
423
486
  export var Voice$ = [3, n1, _V,
@@ -430,10 +493,60 @@ export var VoiceAudioFormat$ = [3, n1, _VAF,
430
493
  [_en, _sR, _ch],
431
494
  [0, 1, 1], 2
432
495
  ];
496
+ export var VoiceCallAgentTranscriptionEvent$ = [3, n1, _VCATE,
497
+ 0,
498
+ [_i, _te, _f, _l, _ti],
499
+ [0, 0, 2, 0, 1], 3
500
+ ];
501
+ export var VoiceCallEndedEvent$ = [3, n1, _VCEE,
502
+ 0,
503
+ [_sIe, _r],
504
+ [0, 0], 2
505
+ ];
506
+ export var VoiceCallInterruptionEvent$ = [3, n1, _VCIE,
507
+ 0,
508
+ [_rI, _pT, _oT],
509
+ [0, 0, 0]
510
+ ];
511
+ export var VoiceCallLanguageEvent$ = [3, n1, _VCLE,
512
+ 0,
513
+ [_to, _r, _fr],
514
+ [0, 0, 0], 2
515
+ ];
516
+ export var VoiceCallPlaybackEvent$ = [3, n1, _VCPE,
517
+ 0,
518
+ [_rI, _comp],
519
+ [0, 2], 2
520
+ ];
521
+ export var VoiceCallReplyEvent$ = [3, n1, _VCRE,
522
+ 0,
523
+ [_i, _te, _l],
524
+ [0, 0, 0], 2
525
+ ];
526
+ export var VoiceCallSayEvent$ = [3, n1, _VCSE,
527
+ 0,
528
+ [_rI, _te, _in],
529
+ [0, 0, 2], 3
530
+ ];
531
+ export var VoiceCallStartedEvent$ = [3, n1, _VCSEo,
532
+ 0,
533
+ [_sIe, _aI, _tI, _aN, _aV, _aD, _l],
534
+ [0, 0, 0, 0, 1, 2, 0], 2
535
+ ];
536
+ export var VoiceCallToolEvent$ = [3, n1, _VCTE,
537
+ 0,
538
+ [_cI, _tN, _ph, _sM],
539
+ [0, 0, 0, 0], 3
540
+ ];
541
+ export var VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
542
+ 0,
543
+ [_i, _te, _f, _l, _ti],
544
+ [0, 0, 2, 0, 1], 3
545
+ ];
433
546
  export var VoiceConnectParams$ = [3, n1, _VCP,
434
547
  0,
435
- [_sIe, _aI, _pV, _aV, _aD, _cI, _l, _cN, _cNa, _cE, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
436
- [0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
548
+ [_sIe, _aI, _pV, _aV, _aD, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
549
+ [0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
437
550
  ];
438
551
  export var VoiceErrorEvent$ = [3, n1, _VEE,
439
552
  0,
@@ -449,9 +562,15 @@ var LanguageCodeList = 64 | 0;
449
562
  var VoicePronunciationList = [1, n2, _VPL,
450
563
  0, () => VoicePronunciation$
451
564
  ];
565
+ var VoiceCallEventIncludeList = 64 | 0;
452
566
  var VoiceList = [1, n1, _VL,
453
567
  0, () => Voice$
454
568
  ];
569
+ export var VoiceCallEvent$ = [4, n1, _VCE,
570
+ 0,
571
+ [_sta, _tr, _aT, _re, _sa, _pl, _int, _l, _too, _end],
572
+ [() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () => VoiceCallEndedEvent$]
573
+ ];
455
574
  export var DescribeVoiceProtocol$ = [9, n1, _DVP,
456
575
  { [_h]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
457
576
  ];
@@ -473,6 +592,9 @@ export var SendStop$ = [9, n1, _SSe,
473
592
  export var SendTransfer$ = [9, n1, _ST,
474
593
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => SendTransferInput$, () => SendTransferOutput$
475
594
  ];
595
+ export var StreamCallEvents$ = [9, n1, _SCE,
596
+ { [_h]: ["GET", "/v2/voice/calls/{callId}/events", 200] }, () => StreamCallEventsInput$, () => StreamCallEventsOutput$
597
+ ];
476
598
  export var TextToSpeech$ = [9, n1, _TTS,
477
599
  { [_h]: ["POST", "/v2/voice/text-to-speech", 200] }, () => TextToSpeechInput$, () => TextToSpeechOutput$
478
600
  ];
@@ -6,6 +6,7 @@ import { type SendPlayCommandInput, type SendPlayCommandOutput } from "./command
6
6
  import { type SendSayCommandInput, type SendSayCommandOutput } from "./commands/SendSayCommand";
7
7
  import { type SendStopCommandInput, type SendStopCommandOutput } from "./commands/SendStopCommand";
8
8
  import { type SendTransferCommandInput, type SendTransferCommandOutput } from "./commands/SendTransferCommand";
9
+ import { type StreamCallEventsCommandInput, type StreamCallEventsCommandOutput } from "./commands/StreamCallEventsCommand";
9
10
  import { type TextToSpeechCommandInput, type TextToSpeechCommandOutput } from "./commands/TextToSpeechCommand";
10
11
  import { WilmaVoiceClient } from "./WilmaVoiceClient";
11
12
  export interface WilmaVoice {
@@ -52,6 +53,12 @@ export interface WilmaVoice {
52
53
  sendTransfer(args: SendTransferCommandInput, options?: __HttpHandlerOptions): Promise<SendTransferCommandOutput>;
53
54
  sendTransfer(args: SendTransferCommandInput, cb: (err: any, data?: SendTransferCommandOutput) => void): void;
54
55
  sendTransfer(args: SendTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendTransferCommandOutput) => void): void;
56
+ /**
57
+ * @see {@link StreamCallEventsCommand}
58
+ */
59
+ streamCallEvents(args: StreamCallEventsCommandInput, options?: __HttpHandlerOptions): Promise<StreamCallEventsCommandOutput>;
60
+ streamCallEvents(args: StreamCallEventsCommandInput, cb: (err: any, data?: StreamCallEventsCommandOutput) => void): void;
61
+ streamCallEvents(args: StreamCallEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StreamCallEventsCommandOutput) => void): void;
55
62
  /**
56
63
  * @see {@link TextToSpeechCommand}
57
64
  */
@@ -3,7 +3,7 @@ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __Smit
3
3
  import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
4
4
  import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
5
5
  import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
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, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
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
9
  import type { ListVoicesCommandInput, ListVoicesCommandOutput } from "./commands/ListVoicesCommand";
@@ -12,6 +12,7 @@ import type { SendPlayCommandInput, SendPlayCommandOutput } from "./commands/Sen
12
12
  import type { SendSayCommandInput, SendSayCommandOutput } from "./commands/SendSayCommand";
13
13
  import type { SendStopCommandInput, SendStopCommandOutput } from "./commands/SendStopCommand";
14
14
  import type { SendTransferCommandInput, SendTransferCommandOutput } from "./commands/SendTransferCommand";
15
+ import type { StreamCallEventsCommandInput, StreamCallEventsCommandOutput } from "./commands/StreamCallEventsCommand";
15
16
  import type { TextToSpeechCommandInput, TextToSpeechCommandOutput } from "./commands/TextToSpeechCommand";
16
17
  import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
17
18
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
@@ -19,11 +20,11 @@ export { __Client };
19
20
  /**
20
21
  * @public
21
22
  */
22
- export type ServiceInputTypes = DescribeVoiceProtocolCommandInput | ListVoicesCommandInput | SendHangupCommandInput | SendPlayCommandInput | SendSayCommandInput | SendStopCommandInput | SendTransferCommandInput | TextToSpeechCommandInput;
23
+ export type ServiceInputTypes = DescribeVoiceProtocolCommandInput | ListVoicesCommandInput | SendHangupCommandInput | SendPlayCommandInput | SendSayCommandInput | SendStopCommandInput | SendTransferCommandInput | StreamCallEventsCommandInput | TextToSpeechCommandInput;
23
24
  /**
24
25
  * @public
25
26
  */
26
- export type ServiceOutputTypes = DescribeVoiceProtocolCommandOutput | ListVoicesCommandOutput | SendHangupCommandOutput | SendPlayCommandOutput | SendSayCommandOutput | SendStopCommandOutput | SendTransferCommandOutput | TextToSpeechCommandOutput;
27
+ export type ServiceOutputTypes = DescribeVoiceProtocolCommandOutput | ListVoicesCommandOutput | SendHangupCommandOutput | SendPlayCommandOutput | SendSayCommandOutput | SendStopCommandOutput | SendTransferCommandOutput | StreamCallEventsCommandOutput | TextToSpeechCommandOutput;
27
28
  /**
28
29
  * @public
29
30
  */
@@ -128,6 +129,11 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
128
129
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
129
130
  */
130
131
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
132
+ /**
133
+ * The internal function that inject utilities to runtime-specific stream to help users consume the data
134
+ * @internal
135
+ */
136
+ sdkStreamMixin?: __SdkStreamMixinInjector;
131
137
  }
132
138
  /**
133
139
  * @public
@@ -47,6 +47,8 @@ declare const DescribeVoiceProtocolCommand_base: {
47
47
  * // agentVersion: Number("int"),
48
48
  * // agentDraft: true || false,
49
49
  * // callId: "STRING_VALUE",
50
+ * // flowIndex: Number("int"),
51
+ * // dialedNumber: "STRING_VALUE",
50
52
  * // language: "STRING_VALUE",
51
53
  * // callerName: "STRING_VALUE",
52
54
  * // callerNumber: "STRING_VALUE",
@@ -70,7 +72,7 @@ declare const DescribeVoiceProtocolCommand_base: {
70
72
  * // audioWebsocketEvent: { // AudioWebsocketEvent
71
73
  * // type: "STRING_VALUE", // required
72
74
  * // event: { // AudioEvent
73
- * // type: "started" || "ended" || "error" || "audio" || "transcription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
75
+ * // type: "started" || "ended" || "error" || "audio" || "transcription" || "agentTranscription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
74
76
  * // data: "STRING_VALUE", // required
75
77
  * // seq: Number("int"),
76
78
  * // },
@@ -78,7 +80,19 @@ declare const DescribeVoiceProtocolCommand_base: {
78
80
  * // transcriptionWebsocketEvent: { // TranscriptionWebsocketEvent
79
81
  * // type: "STRING_VALUE", // required
80
82
  * // event: { // TranscriptionEvent
81
- * // type: "started" || "ended" || "error" || "audio" || "transcription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
83
+ * // type: "started" || "ended" || "error" || "audio" || "transcription" || "agentTranscription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
84
+ * // id: "STRING_VALUE", // required
85
+ * // text: "STRING_VALUE", // required
86
+ * // confidence: Number("double"),
87
+ * // final: true || false,
88
+ * // language: "STRING_VALUE",
89
+ * // time: Number("long"), // required
90
+ * // },
91
+ * // },
92
+ * // agentTranscriptionWebsocketEvent: { // AgentTranscriptionWebsocketEvent
93
+ * // type: "STRING_VALUE", // required
94
+ * // event: { // AgentTranscriptionEvent
95
+ * // type: "started" || "ended" || "error" || "audio" || "transcription" || "agentTranscription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
82
96
  * // id: "STRING_VALUE", // required
83
97
  * // text: "STRING_VALUE", // required
84
98
  * // confidence: Number("double"),
@@ -90,7 +104,7 @@ declare const DescribeVoiceProtocolCommand_base: {
90
104
  * // replyWebsocketEvent: { // ReplyWebsocketEvent
91
105
  * // type: "STRING_VALUE", // required
92
106
  * // event: { // ReplyEvent
93
- * // type: "started" || "ended" || "error" || "audio" || "transcription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
107
+ * // type: "started" || "ended" || "error" || "audio" || "transcription" || "agentTranscription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
94
108
  * // id: "STRING_VALUE", // required
95
109
  * // text: "STRING_VALUE", // required
96
110
  * // language: "STRING_VALUE",
@@ -101,7 +115,7 @@ declare const DescribeVoiceProtocolCommand_base: {
101
115
  * // playbackWebsocketEvent: { // PlaybackWebsocketEvent
102
116
  * // type: "STRING_VALUE", // required
103
117
  * // event: { // PlaybackEvent
104
- * // type: "started" || "ended" || "error" || "audio" || "transcription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
118
+ * // type: "started" || "ended" || "error" || "audio" || "transcription" || "agentTranscription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
105
119
  * // replyId: "STRING_VALUE", // required
106
120
  * // text: "STRING_VALUE", // required
107
121
  * // complete: true || false, // required
@@ -112,7 +126,7 @@ declare const DescribeVoiceProtocolCommand_base: {
112
126
  * // interruptionWebsocketEvent: { // InterruptionWebsocketEvent
113
127
  * // type: "STRING_VALUE", // required
114
128
  * // event: { // InterruptionEvent
115
- * // type: "started" || "ended" || "error" || "audio" || "transcription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
129
+ * // type: "started" || "ended" || "error" || "audio" || "transcription" || "agentTranscription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
116
130
  * // replyId: "STRING_VALUE", // required
117
131
  * // playedText: "STRING_VALUE", // required
118
132
  * // originalText: "STRING_VALUE", // required
@@ -122,7 +136,7 @@ declare const DescribeVoiceProtocolCommand_base: {
122
136
  * // completeWebsocketEvent: { // CompleteWebsocketEvent
123
137
  * // type: "STRING_VALUE", // required
124
138
  * // event: { // CompleteEvent
125
- * // type: "started" || "ended" || "error" || "audio" || "transcription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
139
+ * // type: "started" || "ended" || "error" || "audio" || "transcription" || "agentTranscription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
126
140
  * // reason: "STRING_VALUE", // required
127
141
  * // time: Number("long"), // required
128
142
  * // },
@@ -130,14 +144,14 @@ declare const DescribeVoiceProtocolCommand_base: {
130
144
  * // controlWebsocketEvent: { // ControlWebsocketEvent
131
145
  * // type: "STRING_VALUE", // required
132
146
  * // event: { // ControlEvent
133
- * // type: "started" || "ended" || "error" || "audio" || "transcription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
147
+ * // type: "started" || "ended" || "error" || "audio" || "transcription" || "agentTranscription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
134
148
  * // action: "end_of_turn" || "clear" || "keepalive", // required
135
149
  * // },
136
150
  * // },
137
151
  * // sessionStartedWebsocketEvent: { // SessionStartedWebsocketEvent
138
152
  * // type: "STRING_VALUE", // required
139
153
  * // event: { // SessionStartedEvent
140
- * // type: "started" || "ended" || "error" || "audio" || "transcription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
154
+ * // type: "started" || "ended" || "error" || "audio" || "transcription" || "agentTranscription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
141
155
  * // time: Number("long"), // required
142
156
  * // sessionId: "STRING_VALUE", // required
143
157
  * // agentId: "STRING_VALUE", // required
@@ -170,7 +184,7 @@ declare const DescribeVoiceProtocolCommand_base: {
170
184
  * // sessionEndedWebsocketEvent: { // SessionEndedWebsocketEvent
171
185
  * // type: "STRING_VALUE", // required
172
186
  * // event: { // SessionEndedEvent
173
- * // type: "started" || "ended" || "error" || "audio" || "transcription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
187
+ * // type: "started" || "ended" || "error" || "audio" || "transcription" || "agentTranscription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
174
188
  * // reason: "STRING_VALUE",
175
189
  * // error: "STRING_VALUE",
176
190
  * // time: Number("long"), // required
@@ -179,7 +193,7 @@ declare const DescribeVoiceProtocolCommand_base: {
179
193
  * // errorWebsocketEvent: { // ErrorWebsocketEvent
180
194
  * // type: "STRING_VALUE", // required
181
195
  * // event: { // VoiceErrorEvent
182
- * // type: "started" || "ended" || "error" || "audio" || "transcription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
196
+ * // type: "started" || "ended" || "error" || "audio" || "transcription" || "agentTranscription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
183
197
  * // code: "STRING_VALUE", // required
184
198
  * // message: "STRING_VALUE", // required
185
199
  * // time: Number("long"), // required
@@ -229,6 +243,65 @@ declare const DescribeVoiceProtocolCommand_base: {
229
243
  * // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
230
244
  * // },
231
245
  * // },
246
+ * // callEvent: { // VoiceCallEvent Union: only one key present
247
+ * // started: { // VoiceCallStartedEvent
248
+ * // sessionId: "STRING_VALUE", // required
249
+ * // traceId: "STRING_VALUE",
250
+ * // agentId: "STRING_VALUE", // required
251
+ * // agentName: "STRING_VALUE",
252
+ * // agentVersion: Number("int"),
253
+ * // agentDraft: true || false,
254
+ * // language: "STRING_VALUE",
255
+ * // },
256
+ * // transcription: { // VoiceCallTranscriptionEvent
257
+ * // id: "STRING_VALUE", // required
258
+ * // text: "STRING_VALUE", // required
259
+ * // final: true || false, // required
260
+ * // language: "STRING_VALUE",
261
+ * // time: Number("long"),
262
+ * // },
263
+ * // agentTranscription: { // VoiceCallAgentTranscriptionEvent
264
+ * // id: "STRING_VALUE", // required
265
+ * // text: "STRING_VALUE", // required
266
+ * // final: true || false, // required
267
+ * // language: "STRING_VALUE",
268
+ * // time: Number("long"),
269
+ * // },
270
+ * // reply: { // VoiceCallReplyEvent
271
+ * // id: "STRING_VALUE", // required
272
+ * // text: "STRING_VALUE", // required
273
+ * // language: "STRING_VALUE",
274
+ * // },
275
+ * // say: { // VoiceCallSayEvent
276
+ * // replyId: "STRING_VALUE", // required
277
+ * // text: "STRING_VALUE", // required
278
+ * // interruptible: true || false, // required
279
+ * // },
280
+ * // playback: { // VoiceCallPlaybackEvent
281
+ * // replyId: "STRING_VALUE", // required
282
+ * // complete: true || false, // required
283
+ * // },
284
+ * // interruption: { // VoiceCallInterruptionEvent
285
+ * // replyId: "STRING_VALUE",
286
+ * // playedText: "STRING_VALUE",
287
+ * // originalText: "STRING_VALUE",
288
+ * // },
289
+ * // language: { // VoiceCallLanguageEvent
290
+ * // from: "STRING_VALUE",
291
+ * // to: "STRING_VALUE", // required
292
+ * // reason: "STRING_VALUE", // required
293
+ * // },
294
+ * // tool: { // VoiceCallToolEvent
295
+ * // callId: "STRING_VALUE", // required
296
+ * // toolName: "STRING_VALUE", // required
297
+ * // phase: "started" || "finished", // required
298
+ * // startMessage: "STRING_VALUE",
299
+ * // },
300
+ * // ended: { // VoiceCallEndedEvent
301
+ * // sessionId: "STRING_VALUE", // required
302
+ * // reason: "hangup" || "transfer" || "timeout" || "error" || "complete", // required
303
+ * // },
304
+ * // },
232
305
  * // };
233
306
  *
234
307
  * ```