@wildix/wilma-voice-client 0.0.32 → 0.0.35
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.
- package/dist-cjs/WilmaVoice.js +2 -0
- package/dist-cjs/commands/StreamCallEventsCommand.js +20 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/enums.js +17 -1
- package/dist-cjs/runtimeConfig.shared.js +1 -0
- package/dist-cjs/schemas/schemas_0.js +137 -16
- package/dist-es/WilmaVoice.js +2 -0
- package/dist-es/commands/StreamCallEventsCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +16 -0
- package/dist-es/runtimeConfig.shared.js +2 -1
- package/dist-es/schemas/schemas_0.js +135 -14
- package/dist-types/WilmaVoice.d.ts +7 -0
- package/dist-types/WilmaVoiceClient.d.ts +9 -3
- package/dist-types/commands/DescribeVoiceProtocolCommand.d.ts +81 -10
- package/dist-types/commands/StreamCallEventsCommand.d.ts +91 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +40 -0
- package/dist-types/models/models_0.d.ts +490 -3
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +17 -1
- package/package.json +2 -2
|
@@ -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,20 +97,23 @@ const _au = "audio";
|
|
|
77
97
|
const _bS = "backgroundSound";
|
|
78
98
|
const _c = "client";
|
|
79
99
|
const _cC = "callerCompany";
|
|
80
|
-
const _cE = "
|
|
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 = "
|
|
111
|
+
const _co = "confidence";
|
|
90
112
|
const _cod = "code";
|
|
91
|
-
const _com = "
|
|
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";
|
|
96
119
|
const _dN = "dialedNumber";
|
|
@@ -98,14 +121,18 @@ const _e = "error";
|
|
|
98
121
|
const _eT = "endTime";
|
|
99
122
|
const _eWE = "errorWebsocketEvent";
|
|
100
123
|
const _en = "encoding";
|
|
124
|
+
const _end = "ended";
|
|
101
125
|
const _eng = "engine";
|
|
102
126
|
const _ev = "event";
|
|
127
|
+
const _eve = "events";
|
|
103
128
|
const _ex = "extension";
|
|
104
129
|
const _f = "final";
|
|
105
130
|
const _fI = "flowIndex";
|
|
131
|
+
const _fr = "from";
|
|
106
132
|
const _gI = "groupId";
|
|
107
133
|
const _h = "http";
|
|
108
134
|
const _hE = "httpError";
|
|
135
|
+
const _hH = "httpHeader";
|
|
109
136
|
const _hQ = "httpQuery";
|
|
110
137
|
const _hWC = "hangupWebsocketCommand";
|
|
111
138
|
const _i = "id";
|
|
@@ -114,6 +141,8 @@ const _iM = "initialMessage";
|
|
|
114
141
|
const _iMn = "inputMode";
|
|
115
142
|
const _iWE = "interruptionWebsocketEvent";
|
|
116
143
|
const _in = "interruptible";
|
|
144
|
+
const _inc = "include";
|
|
145
|
+
const _int = "interruption";
|
|
117
146
|
const _l = "language";
|
|
118
147
|
const _la = "languages";
|
|
119
148
|
const _m = "message";
|
|
@@ -128,28 +157,40 @@ const _pT = "playedText";
|
|
|
128
157
|
const _pV = "protocolVersion";
|
|
129
158
|
const _pWC = "playWebsocketCommand";
|
|
130
159
|
const _pWE = "playbackWebsocketEvent";
|
|
160
|
+
const _ph = "phase";
|
|
161
|
+
const _pl = "playback";
|
|
131
162
|
const _pr = "provider";
|
|
132
163
|
const _pro = "pronunciations";
|
|
133
164
|
const _r = "reason";
|
|
134
165
|
const _rI = "replyId";
|
|
135
166
|
const _rWE = "replyWebsocketEvent";
|
|
167
|
+
const _re = "reply";
|
|
136
168
|
const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
|
|
137
169
|
const _sEWE = "sessionEndedWebsocketEvent";
|
|
138
170
|
const _sI = "streamId";
|
|
139
171
|
const _sIe = "sessionId";
|
|
172
|
+
const _sM = "startMessage";
|
|
140
173
|
const _sR = "sampleRate";
|
|
141
174
|
const _sSWE = "sessionStartedWebsocketEvent";
|
|
142
175
|
const _sT = "startTime";
|
|
143
176
|
const _sWC = "sayWebsocketCommand";
|
|
144
177
|
const _sWCt = "stopWebsocketCommand";
|
|
178
|
+
const _sa = "say";
|
|
145
179
|
const _se = "seq";
|
|
146
180
|
const _sp = "speech";
|
|
181
|
+
const _st = "streaming";
|
|
182
|
+
const _sta = "started";
|
|
147
183
|
const _t = "type";
|
|
184
|
+
const _tCI = "toolCallId";
|
|
148
185
|
const _tI = "traceId";
|
|
186
|
+
const _tN = "toolName";
|
|
149
187
|
const _tWC = "transferWebsocketCommand";
|
|
150
188
|
const _tWE = "transcriptionWebsocketEvent";
|
|
151
189
|
const _te = "text";
|
|
152
190
|
const _ti = "time";
|
|
191
|
+
const _to = "to";
|
|
192
|
+
const _too = "tool";
|
|
193
|
+
const _tr = "transcription";
|
|
153
194
|
const _u = "uri";
|
|
154
195
|
const _v = "voices";
|
|
155
196
|
const _va = "variables";
|
|
@@ -187,11 +228,22 @@ export const errorTypeRegistries = [
|
|
|
187
228
|
n0_registry,
|
|
188
229
|
];
|
|
189
230
|
var Mp3Audio = [0, n1, _MA, { [_mT]: _a }, 21];
|
|
231
|
+
var VoiceCallEventStreamBody = [0, n1, _VCESB, { [_st]: 1 }, 42];
|
|
190
232
|
export var VoicePronunciation$ = [3, n2, _VP,
|
|
191
233
|
0,
|
|
192
234
|
[_p, _as, _en],
|
|
193
235
|
[0, 0, 0], 2
|
|
194
236
|
];
|
|
237
|
+
export var AgentTranscriptionEvent$ = [3, n1, _ATE,
|
|
238
|
+
0,
|
|
239
|
+
[_t, _i, _te, _ti, _co, _f, _l],
|
|
240
|
+
[0, 0, 0, 1, 1, 2, 0], 4
|
|
241
|
+
];
|
|
242
|
+
export var AgentTranscriptionWebsocketEvent$ = [3, n1, _ATWE,
|
|
243
|
+
0,
|
|
244
|
+
[_t, _ev],
|
|
245
|
+
[0, () => AgentTranscriptionEvent$], 2
|
|
246
|
+
];
|
|
195
247
|
export var AudioEvent$ = [3, n1, _AE,
|
|
196
248
|
0,
|
|
197
249
|
[_t, _d, _se],
|
|
@@ -229,8 +281,8 @@ export var DescribeVoiceProtocolInput$ = [3, n1, _DVPI,
|
|
|
229
281
|
];
|
|
230
282
|
export var DescribeVoiceProtocolOutput$ = [3, n1, _DVPO,
|
|
231
283
|
0,
|
|
232
|
-
[_cP, _aWE, _tWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC],
|
|
233
|
-
[() => VoiceConnectParams$, () => AudioWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => ControlWebsocketEvent$, () => SessionStartedWebsocketEvent$, () => SessionEndedWebsocketEvent$, () => ErrorWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$]
|
|
284
|
+
[_cP, _aWE, _tWE, _aTWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC, _cE],
|
|
285
|
+
[() => VoiceConnectParams$, () => AudioWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => AgentTranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => ControlWebsocketEvent$, () => SessionStartedWebsocketEvent$, () => SessionEndedWebsocketEvent$, () => ErrorWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$, () => VoiceCallEvent$]
|
|
234
286
|
];
|
|
235
287
|
export var ErrorWebsocketEvent$ = [3, n1, _EWE,
|
|
236
288
|
0,
|
|
@@ -244,7 +296,7 @@ export var HangupCommandData$ = [3, n1, _HCD,
|
|
|
244
296
|
];
|
|
245
297
|
export var HangupWebsocketCommand$ = [3, n1, _HWC,
|
|
246
298
|
0,
|
|
247
|
-
[_t,
|
|
299
|
+
[_t, _com],
|
|
248
300
|
[0, () => HangupCommandData$], 2
|
|
249
301
|
];
|
|
250
302
|
export var InterruptionEvent$ = [3, n1, _IE,
|
|
@@ -269,7 +321,7 @@ export var ListVoicesOutput$ = [3, n1, _LVO,
|
|
|
269
321
|
];
|
|
270
322
|
export var PlaybackEvent$ = [3, n1, _PE,
|
|
271
323
|
0,
|
|
272
|
-
[_t, _rI, _te,
|
|
324
|
+
[_t, _rI, _te, _comp, _sT, _eT],
|
|
273
325
|
[0, 0, 0, 2, 1, 1], 5
|
|
274
326
|
];
|
|
275
327
|
export var PlaybackWebsocketEvent$ = [3, n1, _PWE,
|
|
@@ -284,7 +336,7 @@ export var PlayCommandData$ = [3, n1, _PCD,
|
|
|
284
336
|
];
|
|
285
337
|
export var PlayWebsocketCommand$ = [3, n1, _PWC,
|
|
286
338
|
0,
|
|
287
|
-
[_t,
|
|
339
|
+
[_t, _com],
|
|
288
340
|
[0, () => PlayCommandData$], 2
|
|
289
341
|
];
|
|
290
342
|
export var ReplyEvent$ = [3, n1, _RE,
|
|
@@ -309,7 +361,7 @@ export var SayCommandData$ = [3, n1, _SCD,
|
|
|
309
361
|
];
|
|
310
362
|
export var SayWebsocketCommand$ = [3, n1, _SWC,
|
|
311
363
|
0,
|
|
312
|
-
[_t,
|
|
364
|
+
[_t, _com],
|
|
313
365
|
[0, () => SayCommandData$], 2
|
|
314
366
|
];
|
|
315
367
|
export var SendHangupInput$ = [3, n1, _SHI,
|
|
@@ -389,9 +441,19 @@ export var StopCommandData$ = [3, n1, _SCDt,
|
|
|
389
441
|
];
|
|
390
442
|
export var StopWebsocketCommand$ = [3, n1, _SWCt,
|
|
391
443
|
0,
|
|
392
|
-
[_t,
|
|
444
|
+
[_t, _com],
|
|
393
445
|
[0, () => StopCommandData$], 2
|
|
394
446
|
];
|
|
447
|
+
export var StreamCallEventsInput$ = [3, n1, _SCEI,
|
|
448
|
+
0,
|
|
449
|
+
[_cI, _compa, _inc],
|
|
450
|
+
[[0, 1], [0, { [_hQ]: _compa }], [64 | 0, { [_hQ]: _inc }]], 1
|
|
451
|
+
];
|
|
452
|
+
export var StreamCallEventsOutput$ = [3, n1, _SCEO,
|
|
453
|
+
0,
|
|
454
|
+
[_eve, _cT],
|
|
455
|
+
[[() => VoiceCallEventStreamBody, 16], [0, { [_hH]: _CT }]], 2
|
|
456
|
+
];
|
|
395
457
|
export var TextToSpeechInput$ = [3, n1, _TTSI,
|
|
396
458
|
0,
|
|
397
459
|
[_vo, _l, _te, _pro],
|
|
@@ -404,7 +466,7 @@ export var TextToSpeechOutput$ = [3, n1, _TTSO,
|
|
|
404
466
|
];
|
|
405
467
|
export var TranscriptionEvent$ = [3, n1, _TE,
|
|
406
468
|
0,
|
|
407
|
-
[_t, _i, _te, _ti,
|
|
469
|
+
[_t, _i, _te, _ti, _co, _f, _l],
|
|
408
470
|
[0, 0, 0, 1, 1, 2, 0], 4
|
|
409
471
|
];
|
|
410
472
|
export var TranscriptionWebsocketEvent$ = [3, n1, _TWE,
|
|
@@ -419,7 +481,7 @@ export var TransferCommandData$ = [3, n1, _TCD,
|
|
|
419
481
|
];
|
|
420
482
|
export var TransferWebsocketCommand$ = [3, n1, _TWC,
|
|
421
483
|
0,
|
|
422
|
-
[_t,
|
|
484
|
+
[_t, _com],
|
|
423
485
|
[0, () => TransferCommandData$], 2
|
|
424
486
|
];
|
|
425
487
|
export var Voice$ = [3, n1, _V,
|
|
@@ -432,9 +494,59 @@ export var VoiceAudioFormat$ = [3, n1, _VAF,
|
|
|
432
494
|
[_en, _sR, _ch],
|
|
433
495
|
[0, 1, 1], 2
|
|
434
496
|
];
|
|
497
|
+
export var VoiceCallAgentTranscriptionEvent$ = [3, n1, _VCATE,
|
|
498
|
+
0,
|
|
499
|
+
[_i, _te, _f, _l, _ti],
|
|
500
|
+
[0, 0, 2, 0, 1], 3
|
|
501
|
+
];
|
|
502
|
+
export var VoiceCallEndedEvent$ = [3, n1, _VCEE,
|
|
503
|
+
0,
|
|
504
|
+
[_sIe, _r],
|
|
505
|
+
[0, 0], 2
|
|
506
|
+
];
|
|
507
|
+
export var VoiceCallInterruptionEvent$ = [3, n1, _VCIE,
|
|
508
|
+
0,
|
|
509
|
+
[_rI, _pT, _oT],
|
|
510
|
+
[0, 0, 0]
|
|
511
|
+
];
|
|
512
|
+
export var VoiceCallLanguageEvent$ = [3, n1, _VCLE,
|
|
513
|
+
0,
|
|
514
|
+
[_to, _r, _fr],
|
|
515
|
+
[0, 0, 0], 2
|
|
516
|
+
];
|
|
517
|
+
export var VoiceCallPlaybackEvent$ = [3, n1, _VCPE,
|
|
518
|
+
0,
|
|
519
|
+
[_rI, _comp],
|
|
520
|
+
[0, 2], 2
|
|
521
|
+
];
|
|
522
|
+
export var VoiceCallReplyEvent$ = [3, n1, _VCRE,
|
|
523
|
+
0,
|
|
524
|
+
[_i, _te, _l],
|
|
525
|
+
[0, 0, 0], 2
|
|
526
|
+
];
|
|
527
|
+
export var VoiceCallSayEvent$ = [3, n1, _VCSE,
|
|
528
|
+
0,
|
|
529
|
+
[_rI, _te, _in],
|
|
530
|
+
[0, 0, 2], 3
|
|
531
|
+
];
|
|
532
|
+
export var VoiceCallStartedEvent$ = [3, n1, _VCSEo,
|
|
533
|
+
0,
|
|
534
|
+
[_sIe, _aI, _tI, _aN, _aV, _aD, _l],
|
|
535
|
+
[0, 0, 0, 0, 1, 2, 0], 2
|
|
536
|
+
];
|
|
537
|
+
export var VoiceCallToolEvent$ = [3, n1, _VCTE,
|
|
538
|
+
0,
|
|
539
|
+
[_tCI, _tN, _ph, _sM],
|
|
540
|
+
[0, 0, 0, 0], 3
|
|
541
|
+
];
|
|
542
|
+
export var VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
|
|
543
|
+
0,
|
|
544
|
+
[_i, _te, _f, _l, _ti],
|
|
545
|
+
[0, 0, 2, 0, 1], 3
|
|
546
|
+
];
|
|
435
547
|
export var VoiceConnectParams$ = [3, n1, _VCP,
|
|
436
548
|
0,
|
|
437
|
-
[_sIe, _aI, _pV, _aV, _aD, _cI, _fI, _dN, _l, _cN, _cNa,
|
|
549
|
+
[_sIe, _aI, _pV, _aV, _aD, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
|
|
438
550
|
[0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
|
|
439
551
|
];
|
|
440
552
|
export var VoiceErrorEvent$ = [3, n1, _VEE,
|
|
@@ -451,9 +563,15 @@ var LanguageCodeList = 64 | 0;
|
|
|
451
563
|
var VoicePronunciationList = [1, n2, _VPL,
|
|
452
564
|
0, () => VoicePronunciation$
|
|
453
565
|
];
|
|
566
|
+
var VoiceCallEventIncludeList = 64 | 0;
|
|
454
567
|
var VoiceList = [1, n1, _VL,
|
|
455
568
|
0, () => Voice$
|
|
456
569
|
];
|
|
570
|
+
export var VoiceCallEvent$ = [4, n1, _VCE,
|
|
571
|
+
0,
|
|
572
|
+
[_sta, _tr, _aT, _re, _sa, _pl, _int, _l, _too, _end],
|
|
573
|
+
[() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () => VoiceCallEndedEvent$]
|
|
574
|
+
];
|
|
457
575
|
export var DescribeVoiceProtocol$ = [9, n1, _DVP,
|
|
458
576
|
{ [_h]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
|
|
459
577
|
];
|
|
@@ -475,6 +593,9 @@ export var SendStop$ = [9, n1, _SSe,
|
|
|
475
593
|
export var SendTransfer$ = [9, n1, _ST,
|
|
476
594
|
{ [_h]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => SendTransferInput$, () => SendTransferOutput$
|
|
477
595
|
];
|
|
596
|
+
export var StreamCallEvents$ = [9, n1, _SCE,
|
|
597
|
+
{ [_h]: ["GET", "/v2/voice/calls/{callId}/events", 200] }, () => StreamCallEventsInput$, () => StreamCallEventsOutput$
|
|
598
|
+
];
|
|
478
599
|
export var TextToSpeech$ = [9, n1, _TTS,
|
|
479
600
|
{ [_h]: ["POST", "/v2/voice/text-to-speech", 200] }, () => TextToSpeechInput$, () => TextToSpeechOutput$
|
|
480
601
|
];
|
|
@@ -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
|
|
@@ -72,7 +72,7 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
72
72
|
* // audioWebsocketEvent: { // AudioWebsocketEvent
|
|
73
73
|
* // type: "STRING_VALUE", // required
|
|
74
74
|
* // event: { // AudioEvent
|
|
75
|
-
* // 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
|
|
76
76
|
* // data: "STRING_VALUE", // required
|
|
77
77
|
* // seq: Number("int"),
|
|
78
78
|
* // },
|
|
@@ -80,7 +80,19 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
80
80
|
* // transcriptionWebsocketEvent: { // TranscriptionWebsocketEvent
|
|
81
81
|
* // type: "STRING_VALUE", // required
|
|
82
82
|
* // event: { // TranscriptionEvent
|
|
83
|
-
* // 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
|
|
84
96
|
* // id: "STRING_VALUE", // required
|
|
85
97
|
* // text: "STRING_VALUE", // required
|
|
86
98
|
* // confidence: Number("double"),
|
|
@@ -92,7 +104,7 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
92
104
|
* // replyWebsocketEvent: { // ReplyWebsocketEvent
|
|
93
105
|
* // type: "STRING_VALUE", // required
|
|
94
106
|
* // event: { // ReplyEvent
|
|
95
|
-
* // 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
|
|
96
108
|
* // id: "STRING_VALUE", // required
|
|
97
109
|
* // text: "STRING_VALUE", // required
|
|
98
110
|
* // language: "STRING_VALUE",
|
|
@@ -103,7 +115,7 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
103
115
|
* // playbackWebsocketEvent: { // PlaybackWebsocketEvent
|
|
104
116
|
* // type: "STRING_VALUE", // required
|
|
105
117
|
* // event: { // PlaybackEvent
|
|
106
|
-
* // 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
|
|
107
119
|
* // replyId: "STRING_VALUE", // required
|
|
108
120
|
* // text: "STRING_VALUE", // required
|
|
109
121
|
* // complete: true || false, // required
|
|
@@ -114,7 +126,7 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
114
126
|
* // interruptionWebsocketEvent: { // InterruptionWebsocketEvent
|
|
115
127
|
* // type: "STRING_VALUE", // required
|
|
116
128
|
* // event: { // InterruptionEvent
|
|
117
|
-
* // 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
|
|
118
130
|
* // replyId: "STRING_VALUE", // required
|
|
119
131
|
* // playedText: "STRING_VALUE", // required
|
|
120
132
|
* // originalText: "STRING_VALUE", // required
|
|
@@ -124,7 +136,7 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
124
136
|
* // completeWebsocketEvent: { // CompleteWebsocketEvent
|
|
125
137
|
* // type: "STRING_VALUE", // required
|
|
126
138
|
* // event: { // CompleteEvent
|
|
127
|
-
* // 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
|
|
128
140
|
* // reason: "STRING_VALUE", // required
|
|
129
141
|
* // time: Number("long"), // required
|
|
130
142
|
* // },
|
|
@@ -132,14 +144,14 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
132
144
|
* // controlWebsocketEvent: { // ControlWebsocketEvent
|
|
133
145
|
* // type: "STRING_VALUE", // required
|
|
134
146
|
* // event: { // ControlEvent
|
|
135
|
-
* // 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
|
|
136
148
|
* // action: "end_of_turn" || "clear" || "keepalive", // required
|
|
137
149
|
* // },
|
|
138
150
|
* // },
|
|
139
151
|
* // sessionStartedWebsocketEvent: { // SessionStartedWebsocketEvent
|
|
140
152
|
* // type: "STRING_VALUE", // required
|
|
141
153
|
* // event: { // SessionStartedEvent
|
|
142
|
-
* // 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
|
|
143
155
|
* // time: Number("long"), // required
|
|
144
156
|
* // sessionId: "STRING_VALUE", // required
|
|
145
157
|
* // agentId: "STRING_VALUE", // required
|
|
@@ -172,7 +184,7 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
172
184
|
* // sessionEndedWebsocketEvent: { // SessionEndedWebsocketEvent
|
|
173
185
|
* // type: "STRING_VALUE", // required
|
|
174
186
|
* // event: { // SessionEndedEvent
|
|
175
|
-
* // 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
|
|
176
188
|
* // reason: "STRING_VALUE",
|
|
177
189
|
* // error: "STRING_VALUE",
|
|
178
190
|
* // time: Number("long"), // required
|
|
@@ -181,7 +193,7 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
181
193
|
* // errorWebsocketEvent: { // ErrorWebsocketEvent
|
|
182
194
|
* // type: "STRING_VALUE", // required
|
|
183
195
|
* // event: { // VoiceErrorEvent
|
|
184
|
-
* // 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
|
|
185
197
|
* // code: "STRING_VALUE", // required
|
|
186
198
|
* // message: "STRING_VALUE", // required
|
|
187
199
|
* // time: Number("long"), // required
|
|
@@ -231,6 +243,65 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
231
243
|
* // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
|
|
232
244
|
* // },
|
|
233
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
|
+
* // toolCallId: "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
|
+
* // },
|
|
234
305
|
* // };
|
|
235
306
|
*
|
|
236
307
|
* ```
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer, StreamingBlobPayloadOutputTypes } from "@smithy/types";
|
|
3
|
+
import type { StreamCallEventsInput, StreamCallEventsOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WilmaVoiceClientResolvedConfig } from "../WilmaVoiceClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StreamCallEventsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StreamCallEventsCommandInput extends StreamCallEventsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StreamCallEventsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StreamCallEventsCommandOutput extends Omit<StreamCallEventsOutput, "events">, __MetadataBearer {
|
|
23
|
+
events: StreamingBlobPayloadOutputTypes;
|
|
24
|
+
}
|
|
25
|
+
declare const StreamCallEventsCommand_base: {
|
|
26
|
+
new (input: StreamCallEventsCommandInput): import("@smithy/core/client").CommandImpl<StreamCallEventsCommandInput, StreamCallEventsCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
new (input: StreamCallEventsCommandInput): import("@smithy/core/client").CommandImpl<StreamCallEventsCommandInput, StreamCallEventsCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
28
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Tails a live call's events as Server-Sent Events (`text/event-stream`): the caller's recognised speech, the agent's spoken sentences, playback, interruptions, language switches and the session lifecycle. Live only — nothing before the subscription is replayed, and the stream is not a record of the call (the session trace is). Ends after an `ended` event whose reason is not `transfer`; after a transfer it stays open briefly for the next session of the same call. `include=tools` adds tool events and is honoured only for management-class callers.
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { WilmaVoiceClient, StreamCallEventsCommand } from "@wildix/wilma-voice-client"; // ES Modules import
|
|
36
|
+
* // const { WilmaVoiceClient, StreamCallEventsCommand } = require("@wildix/wilma-voice-client"); // CommonJS import
|
|
37
|
+
* // import type { WilmaVoiceClientConfig } from "@wildix/wilma-voice-client";
|
|
38
|
+
* const config = {}; // type is WilmaVoiceClientConfig
|
|
39
|
+
* const client = new WilmaVoiceClient(config);
|
|
40
|
+
* const input = { // StreamCallEventsInput
|
|
41
|
+
* callId: "STRING_VALUE", // required
|
|
42
|
+
* company: "STRING_VALUE",
|
|
43
|
+
* include: [ // VoiceCallEventIncludeList
|
|
44
|
+
* "commands" || "tools",
|
|
45
|
+
* ],
|
|
46
|
+
* };
|
|
47
|
+
* const command = new StreamCallEventsCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // consume or destroy the stream to free the socket.
|
|
50
|
+
* const bytes = await response.events.transformToByteArray();
|
|
51
|
+
* // const str = await response.events.transformToString();
|
|
52
|
+
* // response.events.destroy(); // only applicable to Node.js Readable streams.
|
|
53
|
+
*
|
|
54
|
+
* // { // StreamCallEventsOutput
|
|
55
|
+
* // events: "<SdkStream>", // see \@smithy/types -> StreamingBlobPayloadOutputTypes // required
|
|
56
|
+
* // contentType: "STRING_VALUE", // required
|
|
57
|
+
* // };
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param StreamCallEventsCommandInput - {@link StreamCallEventsCommandInput}
|
|
62
|
+
* @returns {@link StreamCallEventsCommandOutput}
|
|
63
|
+
* @see {@link StreamCallEventsCommandInput} for command's `input` shape.
|
|
64
|
+
* @see {@link StreamCallEventsCommandOutput} for command's `response` shape.
|
|
65
|
+
* @see {@link WilmaVoiceClientResolvedConfig | config} for WilmaVoiceClient's `config` shape.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link NotFoundException} (client fault)
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link WilmaVoiceServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from WilmaVoice service.</p>
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class StreamCallEventsCommand extends StreamCallEventsCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: StreamCallEventsInput;
|
|
84
|
+
output: StreamCallEventsOutput;
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: StreamCallEventsCommandInput;
|
|
88
|
+
output: StreamCallEventsCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|