@wildix/wilma-voice-client 0.0.42 → 0.0.43

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.
@@ -206,6 +206,7 @@ const _m = "message";
206
206
  const _mC = "minConfidence";
207
207
  const _mT = "mediaType";
208
208
  const _mW = "minWords";
209
+ const _mWM = "maxWaitMs";
209
210
  const _me = "media";
210
211
  const _met = "metadata";
211
212
  const _n = "name";
@@ -232,9 +233,10 @@ const _rAMe = "restoreAfterMs";
232
233
  const _rI = "replyId";
233
234
  const _rM = "rampMs";
234
235
  const _rWE = "replyWebsocketEvent";
235
- const _re = "restore";
236
+ const _re = "recogniser";
236
237
  const _rep = "reply";
237
- const _res = "resume";
238
+ const _res = "restore";
239
+ const _resu = "resume";
238
240
  const _ret = "retryable";
239
241
  const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
240
242
  const _sEWE = "sessionEndedWebsocketEvent";
@@ -380,8 +382,8 @@ exports.GetVoiceDefaultsInput$ = [3, n1, _GVDI,
380
382
  ];
381
383
  exports.GetVoiceDefaultsOutput$ = [3, n1, _GVDO,
382
384
  0,
383
- [_vD, _in, _tE],
384
- [() => exports.VoiceDetectionDefaults$, () => exports.VoiceInterruptionDefaults$, () => exports.VoiceTurnEndDefaults$], 3
385
+ [_re, _vD, _in, _tE],
386
+ [0, () => exports.VoiceDetectionDefaults$, () => exports.VoiceInterruptionDefaults$, () => exports.VoiceTurnEndDefaults$], 4
385
387
  ];
386
388
  exports.HangupCommandData$ = [3, n1, _HCD,
387
389
  0,
@@ -430,7 +432,7 @@ exports.MediaAudioFormat$ = [3, n1, _MAF,
430
432
  ];
431
433
  exports.MediaCloudFrames$ = [3, n1, _MCF,
432
434
  0,
433
- [_sta, _tr, _aB, _au, _aE, _sto, _du, _re, _l, _tra, _h, _e, _fi],
435
+ [_sta, _tr, _aB, _au, _aE, _sto, _du, _res, _l, _tra, _h, _e, _fi],
434
436
  [() => exports.MediaStartedFrame$, () => exports.MediaTranscriptionFrame$, () => exports.MediaAudioBeginFrame$, 21, () => exports.MediaAudioEndFrame$, () => exports.MediaStopFrame$, () => exports.MediaDuckFrame$, () => exports.MediaRestoreFrame$, () => exports.MediaLanguageFrame$, () => exports.MediaTransferFrame$, () => exports.MediaHangupFrame$, () => exports.MediaErrorFrame$, () => exports.MediaFinishedFrame$]
435
437
  ];
436
438
  exports.MediaDtmfFrame$ = [3, n1, _MDF,
@@ -510,7 +512,7 @@ exports.MediaStartedFrame$ = [3, n1, _MSF,
510
512
  ];
511
513
  exports.MediaStartFrame$ = [3, n1, _MSFe,
512
514
  0,
513
- [_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal, _ag, _la, _pL, _aD, _dN, _var],
515
+ [_t, _pu, _cI, _fI, _sIe, _resu, _rAM, _au, _cal, _ag, _la, _pL, _aD, _dN, _var],
514
516
  [0, 0, 0, 1, 0, 2, 1, () => exports.MediaAudioFormat$, () => exports.MediaStartCaller$, () => exports.MediaStartAgent$, 64 | 0, 0, 2, 0, 0], 9
515
517
  ];
516
518
  exports.MediaStopFrame$ = [3, n1, _MSFed,
@@ -790,8 +792,8 @@ exports.VoiceSpeechPayload$ = [3, n1, _VSP,
790
792
  ];
791
793
  exports.VoiceTurnEndDefaults$ = [3, n1, _VTED,
792
794
  0,
793
- [_hM],
794
- [1], 1
795
+ [_hM, _mWM],
796
+ [128 | 1, 1], 2
795
797
  ];
796
798
  var LanguageCodeList = 64 | 0;
797
799
  var VoicePronunciationList = [1, n2, _VPL,
@@ -801,6 +803,7 @@ var MediaStartLanguageList = 64 | 0;
801
803
  var VoiceList = [1, n1, _VL,
802
804
  0, () => exports.Voice$
803
805
  ];
806
+ var VoiceHoldByRecogniser = 128 | 1;
804
807
  exports.VoiceCallEvent$ = [4, n1, _VCE,
805
808
  0,
806
809
  [_sta, _tr, _aT, _rep, _sa, _pl, _inte, _l, _too, _end],
@@ -201,6 +201,7 @@ const _m = "message";
201
201
  const _mC = "minConfidence";
202
202
  const _mT = "mediaType";
203
203
  const _mW = "minWords";
204
+ const _mWM = "maxWaitMs";
204
205
  const _me = "media";
205
206
  const _met = "metadata";
206
207
  const _n = "name";
@@ -227,9 +228,10 @@ const _rAMe = "restoreAfterMs";
227
228
  const _rI = "replyId";
228
229
  const _rM = "rampMs";
229
230
  const _rWE = "replyWebsocketEvent";
230
- const _re = "restore";
231
+ const _re = "recogniser";
231
232
  const _rep = "reply";
232
- const _res = "resume";
233
+ const _res = "restore";
234
+ const _resu = "resume";
233
235
  const _ret = "retryable";
234
236
  const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
235
237
  const _sEWE = "sessionEndedWebsocketEvent";
@@ -375,8 +377,8 @@ export var GetVoiceDefaultsInput$ = [3, n1, _GVDI,
375
377
  ];
376
378
  export var GetVoiceDefaultsOutput$ = [3, n1, _GVDO,
377
379
  0,
378
- [_vD, _in, _tE],
379
- [() => VoiceDetectionDefaults$, () => VoiceInterruptionDefaults$, () => VoiceTurnEndDefaults$], 3
380
+ [_re, _vD, _in, _tE],
381
+ [0, () => VoiceDetectionDefaults$, () => VoiceInterruptionDefaults$, () => VoiceTurnEndDefaults$], 4
380
382
  ];
381
383
  export var HangupCommandData$ = [3, n1, _HCD,
382
384
  0,
@@ -425,7 +427,7 @@ export var MediaAudioFormat$ = [3, n1, _MAF,
425
427
  ];
426
428
  export var MediaCloudFrames$ = [3, n1, _MCF,
427
429
  0,
428
- [_sta, _tr, _aB, _au, _aE, _sto, _du, _re, _l, _tra, _h, _e, _fi],
430
+ [_sta, _tr, _aB, _au, _aE, _sto, _du, _res, _l, _tra, _h, _e, _fi],
429
431
  [() => MediaStartedFrame$, () => MediaTranscriptionFrame$, () => MediaAudioBeginFrame$, 21, () => MediaAudioEndFrame$, () => MediaStopFrame$, () => MediaDuckFrame$, () => MediaRestoreFrame$, () => MediaLanguageFrame$, () => MediaTransferFrame$, () => MediaHangupFrame$, () => MediaErrorFrame$, () => MediaFinishedFrame$]
430
432
  ];
431
433
  export var MediaDtmfFrame$ = [3, n1, _MDF,
@@ -505,7 +507,7 @@ export var MediaStartedFrame$ = [3, n1, _MSF,
505
507
  ];
506
508
  export var MediaStartFrame$ = [3, n1, _MSFe,
507
509
  0,
508
- [_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal, _ag, _la, _pL, _aD, _dN, _var],
510
+ [_t, _pu, _cI, _fI, _sIe, _resu, _rAM, _au, _cal, _ag, _la, _pL, _aD, _dN, _var],
509
511
  [0, 0, 0, 1, 0, 2, 1, () => MediaAudioFormat$, () => MediaStartCaller$, () => MediaStartAgent$, 64 | 0, 0, 2, 0, 0], 9
510
512
  ];
511
513
  export var MediaStopFrame$ = [3, n1, _MSFed,
@@ -785,8 +787,8 @@ export var VoiceSpeechPayload$ = [3, n1, _VSP,
785
787
  ];
786
788
  export var VoiceTurnEndDefaults$ = [3, n1, _VTED,
787
789
  0,
788
- [_hM],
789
- [1], 1
790
+ [_hM, _mWM],
791
+ [128 | 1, 1], 2
790
792
  ];
791
793
  var LanguageCodeList = 64 | 0;
792
794
  var VoicePronunciationList = [1, n2, _VPL,
@@ -796,6 +798,7 @@ var MediaStartLanguageList = 64 | 0;
796
798
  var VoiceList = [1, n1, _VL,
797
799
  0, () => Voice$
798
800
  ];
801
+ var VoiceHoldByRecogniser = 128 | 1;
799
802
  export var VoiceCallEvent$ = [4, n1, _VCE,
800
803
  0,
801
804
  [_sta, _tr, _aT, _rep, _sa, _pl, _inte, _l, _too, _end],
@@ -40,6 +40,7 @@ declare const GetVoiceDefaultsCommand_base: {
40
40
  * const command = new GetVoiceDefaultsCommand(input);
41
41
  * const response = await client.send(command);
42
42
  * // { // GetVoiceDefaultsOutput
43
+ * // recogniser: "STRING_VALUE", // required
43
44
  * // voiceDetection: { // VoiceDetectionDefaults
44
45
  * // silenceMs: Number("int"), // required
45
46
  * // silenceLevelDb: Number("int"), // required
@@ -53,7 +54,10 @@ declare const GetVoiceDefaultsCommand_base: {
53
54
  * // restoreAfterMs: Number("int"), // required
54
55
  * // },
55
56
  * // turnEnd: { // VoiceTurnEndDefaults
56
- * // holdMs: Number("int"), // required
57
+ * // holdMs: { // VoiceHoldByRecogniser // required
58
+ * // "<keys>": Number("int"),
59
+ * // },
60
+ * // maxWaitMs: Number("int"), // required
57
61
  * // },
58
62
  * // };
59
63
  *
@@ -1906,10 +1906,15 @@ export interface VoiceInterruptionDefaults {
1906
1906
  */
1907
1907
  export interface VoiceTurnEndDefaults {
1908
1908
  /**
1909
- * Wait in ms after the recogniser marks the end of a caller phrase, before the agent answers.
1909
+ * Default of `holdMs` for each recogniser, by the URI scheme of the recogniser, for example `soniox` and `aws`.
1910
1910
  * @public
1911
1911
  */
1912
- holdMs: number;
1912
+ holdMs: Record<string, number>;
1913
+ /**
1914
+ * Default of `maxWaitMs`.
1915
+ * @public
1916
+ */
1917
+ maxWaitMs: number;
1913
1918
  }
1914
1919
  /**
1915
1920
  * Defaults of `VoiceChannelSettings.voiceDetection`.
@@ -1936,6 +1941,11 @@ export interface VoiceDetectionDefaults {
1936
1941
  * @public
1937
1942
  */
1938
1943
  export interface GetVoiceDefaultsOutput {
1944
+ /**
1945
+ * URI scheme of the recogniser that a call uses when its agent sets none, for example `soniox`.
1946
+ * @public
1947
+ */
1948
+ recogniser: string;
1939
1949
  /**
1940
1950
  * Defaults of `VoiceChannelSettings.voiceDetection`.
1941
1951
  * @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.42",
4
+ "version": "0.0.43",
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",