@wildix/wilma-voice-client 0.0.49 → 0.0.51
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.
|
@@ -217,10 +217,10 @@ const _pu = "purpose";
|
|
|
217
217
|
const _r = "reason";
|
|
218
218
|
const _rAM = "resumeAtMs";
|
|
219
219
|
const _rI = "replyId";
|
|
220
|
-
const _rIu = "runId";
|
|
221
220
|
const _rM = "rampMs";
|
|
222
221
|
const _rWE = "replyWebsocketEvent";
|
|
223
222
|
const _re = "restore";
|
|
223
|
+
const _rec = "reconnect";
|
|
224
224
|
const _rep = "reply";
|
|
225
225
|
const _res = "resume";
|
|
226
226
|
const _ret = "retryable";
|
|
@@ -487,8 +487,8 @@ exports.MediaStartedFrame$ = [3, n1, _MSF,
|
|
|
487
487
|
];
|
|
488
488
|
exports.MediaStartFrame$ = [3, n1, _MSFe,
|
|
489
489
|
0,
|
|
490
|
-
[_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal,
|
|
491
|
-
[0, 0, 0, 1, 0, 2, 1, () => exports.MediaAudioFormat$, () => exports.MediaStartCaller$,
|
|
490
|
+
[_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal, _ag, _la, _pL, _aD, _dN, _var],
|
|
491
|
+
[0, 0, 0, 1, 0, 2, 1, () => exports.MediaAudioFormat$, () => exports.MediaStartCaller$, () => exports.MediaStartAgent$, 64 | 0, 0, 2, 0, 0], 9
|
|
492
492
|
];
|
|
493
493
|
exports.MediaStopFrame$ = [3, n1, _MSFed,
|
|
494
494
|
0,
|
|
@@ -742,8 +742,8 @@ exports.VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
|
|
|
742
742
|
];
|
|
743
743
|
exports.VoiceConnectParams$ = [3, n1, _VCP,
|
|
744
744
|
0,
|
|
745
|
-
[_sIe, _aI, _pV, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
|
|
746
|
-
[0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 2
|
|
745
|
+
[_sIe, _aI, _pV, _res, _rec, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
|
|
746
|
+
[0, 0, 1, 2, 2, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 2
|
|
747
747
|
];
|
|
748
748
|
exports.VoiceErrorEvent$ = [3, n1, _VEE,
|
|
749
749
|
0,
|
|
@@ -212,10 +212,10 @@ const _pu = "purpose";
|
|
|
212
212
|
const _r = "reason";
|
|
213
213
|
const _rAM = "resumeAtMs";
|
|
214
214
|
const _rI = "replyId";
|
|
215
|
-
const _rIu = "runId";
|
|
216
215
|
const _rM = "rampMs";
|
|
217
216
|
const _rWE = "replyWebsocketEvent";
|
|
218
217
|
const _re = "restore";
|
|
218
|
+
const _rec = "reconnect";
|
|
219
219
|
const _rep = "reply";
|
|
220
220
|
const _res = "resume";
|
|
221
221
|
const _ret = "retryable";
|
|
@@ -482,8 +482,8 @@ export var MediaStartedFrame$ = [3, n1, _MSF,
|
|
|
482
482
|
];
|
|
483
483
|
export var MediaStartFrame$ = [3, n1, _MSFe,
|
|
484
484
|
0,
|
|
485
|
-
[_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal,
|
|
486
|
-
[0, 0, 0, 1, 0, 2, 1, () => MediaAudioFormat$, () => MediaStartCaller$,
|
|
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
|
|
487
487
|
];
|
|
488
488
|
export var MediaStopFrame$ = [3, n1, _MSFed,
|
|
489
489
|
0,
|
|
@@ -737,8 +737,8 @@ export var VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
|
|
|
737
737
|
];
|
|
738
738
|
export var VoiceConnectParams$ = [3, n1, _VCP,
|
|
739
739
|
0,
|
|
740
|
-
[_sIe, _aI, _pV, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
|
|
741
|
-
[0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
|
|
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
|
|
742
742
|
];
|
|
743
743
|
export var VoiceErrorEvent$ = [3, n1, _VEE,
|
|
744
744
|
0,
|
|
@@ -43,6 +43,8 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
43
43
|
* // connectParams: { // VoiceConnectParams
|
|
44
44
|
* // protocolVersion: Number("int"),
|
|
45
45
|
* // sessionId: "STRING_VALUE", // required
|
|
46
|
+
* // resume: true || false,
|
|
47
|
+
* // reconnect: true || false,
|
|
46
48
|
* // agentId: "STRING_VALUE", // required
|
|
47
49
|
* // agentVersion: Number("int"),
|
|
48
50
|
* // agentDraft: true || false,
|
|
@@ -313,7 +315,6 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
313
315
|
* // sessionId: "STRING_VALUE", // required
|
|
314
316
|
* // resume: true || false, // required
|
|
315
317
|
* // resumeAtMs: Number("int"), // required
|
|
316
|
-
* // runId: "STRING_VALUE",
|
|
317
318
|
* // audio: { // MediaAudioFormat
|
|
318
319
|
* // encoding: "pcm_s16le", // required
|
|
319
320
|
* // sampleRate: Number("int"), // required
|
|
@@ -606,6 +606,16 @@ export interface VoiceConnectParams {
|
|
|
606
606
|
* @public
|
|
607
607
|
*/
|
|
608
608
|
sessionId: string;
|
|
609
|
+
/**
|
|
610
|
+
* Attach the running session `sessionId` again after a close with code `1001` or a lost connection. The session keeps its history and does not play the greeting again.
|
|
611
|
+
* @public
|
|
612
|
+
*/
|
|
613
|
+
resume?: boolean | undefined;
|
|
614
|
+
/**
|
|
615
|
+
* The client connects again with `resume` after a close with code `1001`. Only then can the service move a PBX text-socket call to another server while the call runs; without it the socket stays open until the call ends or the server stops.
|
|
616
|
+
* @public
|
|
617
|
+
*/
|
|
618
|
+
reconnect?: boolean | undefined;
|
|
609
619
|
/**
|
|
610
620
|
* Agent to run on this session.
|
|
611
621
|
* @public
|
|
@@ -1229,11 +1239,6 @@ export interface MediaStartFrame {
|
|
|
1229
1239
|
* @public
|
|
1230
1240
|
*/
|
|
1231
1241
|
resumeAtMs: number;
|
|
1232
|
-
/**
|
|
1233
|
-
* Id of this run on the PBX. The same on every connection of the run; a later run with the same `sessionId` has another `runId`. Absent: every connection with this `sessionId` belongs to one run.
|
|
1234
|
-
* @public
|
|
1235
|
-
*/
|
|
1236
|
-
runId?: string | undefined;
|
|
1237
1242
|
/**
|
|
1238
1243
|
* Format of the binary PBX audio (`MediaPbxAudio`). Channel 0 is the caller; channel 1, when present, is the callee. Samples interleave. The cloud accepts only 8000 Hz and one channel at this time; another format closes the socket with 4400.
|
|
1239
1244
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wilma-voice-client",
|
|
3
3
|
"description": "@wildix/wilma-voice-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.51",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|