@wildix/wilma-voice-client 0.0.50 → 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.
@@ -220,6 +220,7 @@ const _rI = "replyId";
220
220
  const _rM = "rampMs";
221
221
  const _rWE = "replyWebsocketEvent";
222
222
  const _re = "restore";
223
+ const _rec = "reconnect";
223
224
  const _rep = "reply";
224
225
  const _res = "resume";
225
226
  const _ret = "retryable";
@@ -741,8 +742,8 @@ exports.VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
741
742
  ];
742
743
  exports.VoiceConnectParams$ = [3, n1, _VCP,
743
744
  0,
744
- [_sIe, _aI, _pV, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
745
- [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
746
747
  ];
747
748
  exports.VoiceErrorEvent$ = [3, n1, _VEE,
748
749
  0,
@@ -215,6 +215,7 @@ const _rI = "replyId";
215
215
  const _rM = "rampMs";
216
216
  const _rWE = "replyWebsocketEvent";
217
217
  const _re = "restore";
218
+ const _rec = "reconnect";
218
219
  const _rep = "reply";
219
220
  const _res = "resume";
220
221
  const _ret = "retryable";
@@ -736,8 +737,8 @@ export var VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
736
737
  ];
737
738
  export var VoiceConnectParams$ = [3, n1, _VCP,
738
739
  0,
739
- [_sIe, _aI, _pV, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
740
- [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
741
742
  ];
742
743
  export var VoiceErrorEvent$ = [3, n1, _VEE,
743
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,
@@ -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
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.50",
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",