@vonage/client-sdk 2.4.0-alpha.2 → 2.4.0-alpha.3

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.
@@ -34479,13 +34479,6 @@ function requireClientsdkClientcore () {
34479
34479
  initMetadataForCompanion(Companion_149);
34480
34480
  initMetadataForObject($serializer_174, '$serializer', VOID, VOID, [GeneratedSerializer]);
34481
34481
  initMetadataForClass(SessionTerminatedEvent, 'SessionTerminatedEvent', VOID, VOID, [SocketEvent], VOID, VOID, {0: $serializer_getInstance_174});
34482
- function onRTCHangup(conversationId, legId, hangup) {
34483
- }
34484
- function onRTCTransfer(conversationId, legId) {
34485
- }
34486
- function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
34487
- }
34488
- initMetadataForInterface(RTCEventListener, 'RTCEventListener');
34489
34482
  function onAudioSay() {
34490
34483
  }
34491
34484
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -34498,7 +34491,14 @@ function requireClientsdkClientcore () {
34498
34491
  function onConversationEvent(event) {
34499
34492
  }
34500
34493
  initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
34501
- initMetadataForClass(ChatAPIImpl$1, VOID, VOID, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
34494
+ function onRTCHangup(conversationId, legId, hangup) {
34495
+ }
34496
+ function onRTCTransfer(conversationId, legId) {
34497
+ }
34498
+ function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
34499
+ }
34500
+ initMetadataForInterface(RTCEventListener, 'RTCEventListener');
34501
+ initMetadataForClass(ChatAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
34502
34502
  initMetadataForClass(ChatAPIImpl, 'ChatAPIImpl', VOID, VOID, [ChatAPI]);
34503
34503
  initMetadataForClass(LoggingLevel, 'LoggingLevel', VOID, Enum);
34504
34504
  initMetadataForObject(DefaultConfig, 'DefaultConfig');
@@ -34654,7 +34654,7 @@ function requireClientsdkClientcore () {
34654
34654
  initMetadataForClass(HangupReason, 'HangupReason', VOID, Enum);
34655
34655
  initMetadataForClass(LegStatus, 'LegStatus', VOID, Enum);
34656
34656
  initMetadataForClass(CallDisconnectReason, 'CallDisconnectReason', VOID, Enum);
34657
- initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
34657
+ initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
34658
34658
  initMetadataForClass(VoiceAPIImpl, 'VoiceAPIImpl');
34659
34659
  initMetadataForInterface(CallEvent, 'CallEvent');
34660
34660
  initMetadataForClass(SetupOutboundCall, 'SetupOutboundCall', VOID, VOID, [CallEvent]);
@@ -34873,7 +34873,7 @@ function requireClientsdkClientcore () {
34873
34873
  initMetadataForClass(runAfterDelay$1);
34874
34874
  //endregion
34875
34875
  function BuildKonfig() {
34876
- this.t1e_1 = '2.4.0-alpha.2';
34876
+ this.t1e_1 = '2.4.0-alpha.3';
34877
34877
  }
34878
34878
  var BuildKonfig_instance;
34879
34879
  function BuildKonfig_getInstance() {
@@ -81913,6 +81913,24 @@ function requireClientsdkClientcore_js () {
81913
81913
  function disableEarmuff(callId) {
81914
81914
  return new Promise(IVoiceClientJS$disableEarmuff$lambda(this, callId));
81915
81915
  }
81916
+ function enableNoiseSuppression(callId) {
81917
+ return new Promise(IVoiceClientJS$enableNoiseSuppression$lambda(this, callId));
81918
+ }
81919
+ function disableNoiseSuppression(callId) {
81920
+ return new Promise(IVoiceClientJS$disableNoiseSuppression$lambda(this, callId));
81921
+ }
81922
+ function enableAutoGainControl(callId) {
81923
+ return new Promise(IVoiceClientJS$enableAutoGainControl$lambda(this, callId));
81924
+ }
81925
+ function disableAutoGainControl(callId) {
81926
+ return new Promise(IVoiceClientJS$disableAutoGainControl$lambda(this, callId));
81927
+ }
81928
+ function enableEchoCancellation(callId) {
81929
+ return new Promise(IVoiceClientJS$enableEchoCancellation$lambda(this, callId));
81930
+ }
81931
+ function disableEchoCancellation(callId) {
81932
+ return new Promise(IVoiceClientJS$disableEchoCancellation$lambda(this, callId));
81933
+ }
81916
81934
  function sendDTMF(callId, digits) {
81917
81935
  return new Promise(IVoiceClientJS$sendDTMF$lambda(this, callId, digits));
81918
81936
  }
@@ -82012,7 +82030,7 @@ function requireClientsdkClientcore_js () {
82012
82030
  initMetadataForObject(SessionErrorCodesJS, 'SessionErrorCodesJS');
82013
82031
  initMetadataForClass(VonageErrorJS, 'VonageErrorJS', VOID, Error);
82014
82032
  initMetadataForObject(VonageErrorTypeJsObject, 'VonageErrorTypeJsObject');
82015
- initMetadataForClass(MediaClientErrorJS, 'MediaClientErrorJS');
82033
+ initMetadataForClass(MediaClientErrorJS, 'MediaClientErrorJS', VOID, Error);
82016
82034
  initMetadataForClass(PeerConnectionNotFoundJS, 'PeerConnectionNotFoundJS', VOID, MediaClientErrorJS);
82017
82035
  initMetadataForClass(TrackNotFoundJS, 'TrackNotFoundJS', VOID, MediaClientErrorJS);
82018
82036
  initMetadataForClass(ProcessAnswerErrorJS, 'ProcessAnswerErrorJS', VOID, MediaClientErrorJS);
@@ -84802,6 +84820,8 @@ function requireClientsdkClientcore_js () {
84802
84820
  return VonageErrorTypeJsObject_instance;
84803
84821
  }
84804
84822
  function MediaClientErrorJS() {
84823
+ extendThrowable(this);
84824
+ captureStack(this, MediaClientErrorJS);
84805
84825
  }
84806
84826
  protoOf(MediaClientErrorJS).r44 = function () {
84807
84827
  var tmp;
@@ -84830,20 +84850,21 @@ function requireClientsdkClientcore_js () {
84830
84850
  };
84831
84851
  function PeerConnectionNotFoundJS(legId) {
84832
84852
  MediaClientErrorJS.call(this);
84853
+ captureStack(this, PeerConnectionNotFoundJS);
84833
84854
  this.legId = legId;
84834
84855
  }
84835
- protoOf(PeerConnectionNotFoundJS).s44 = function () {
84856
+ protoOf(PeerConnectionNotFoundJS).t44 = function () {
84836
84857
  return this.legId;
84837
84858
  };
84838
84859
  protoOf(PeerConnectionNotFoundJS).r8 = function () {
84839
84860
  return this.legId;
84840
84861
  };
84841
- protoOf(PeerConnectionNotFoundJS).t44 = function (legId) {
84862
+ protoOf(PeerConnectionNotFoundJS).u44 = function (legId) {
84842
84863
  return new PeerConnectionNotFoundJS(legId);
84843
84864
  };
84844
84865
  protoOf(PeerConnectionNotFoundJS).copy = function (legId, $super) {
84845
84866
  legId = legId === VOID ? this.legId : legId;
84846
- return this.t44(legId);
84867
+ return this.u44(legId);
84847
84868
  };
84848
84869
  protoOf(PeerConnectionNotFoundJS).toString = function () {
84849
84870
  return 'PeerConnectionNotFoundJS(legId=' + this.legId + ')';
@@ -84863,20 +84884,21 @@ function requireClientsdkClientcore_js () {
84863
84884
  };
84864
84885
  function TrackNotFoundJS(legId) {
84865
84886
  MediaClientErrorJS.call(this);
84887
+ captureStack(this, TrackNotFoundJS);
84866
84888
  this.legId = legId;
84867
84889
  }
84868
- protoOf(TrackNotFoundJS).s44 = function () {
84890
+ protoOf(TrackNotFoundJS).t44 = function () {
84869
84891
  return this.legId;
84870
84892
  };
84871
84893
  protoOf(TrackNotFoundJS).r8 = function () {
84872
84894
  return this.legId;
84873
84895
  };
84874
- protoOf(TrackNotFoundJS).t44 = function (legId) {
84896
+ protoOf(TrackNotFoundJS).u44 = function (legId) {
84875
84897
  return new TrackNotFoundJS(legId);
84876
84898
  };
84877
84899
  protoOf(TrackNotFoundJS).copy = function (legId, $super) {
84878
84900
  legId = legId === VOID ? this.legId : legId;
84879
- return this.t44(legId);
84901
+ return this.u44(legId);
84880
84902
  };
84881
84903
  protoOf(TrackNotFoundJS).toString = function () {
84882
84904
  return 'TrackNotFoundJS(legId=' + this.legId + ')';
@@ -84897,35 +84919,36 @@ function requireClientsdkClientcore_js () {
84897
84919
  function ProcessAnswerErrorJS(legId, message) {
84898
84920
  message = message === VOID ? null : message;
84899
84921
  MediaClientErrorJS.call(this);
84922
+ captureStack(this, ProcessAnswerErrorJS);
84900
84923
  this.legId = legId;
84901
- this.message = message;
84924
+ this.s44_1 = message;
84902
84925
  }
84903
- protoOf(ProcessAnswerErrorJS).s44 = function () {
84926
+ protoOf(ProcessAnswerErrorJS).t44 = function () {
84904
84927
  return this.legId;
84905
84928
  };
84906
84929
  protoOf(ProcessAnswerErrorJS).n8 = function () {
84907
- return this.message;
84930
+ return this.s44_1;
84908
84931
  };
84909
84932
  protoOf(ProcessAnswerErrorJS).r8 = function () {
84910
84933
  return this.legId;
84911
84934
  };
84912
84935
  protoOf(ProcessAnswerErrorJS).s8 = function () {
84913
- return this.message;
84936
+ return this.s44_1;
84914
84937
  };
84915
- protoOf(ProcessAnswerErrorJS).u44 = function (legId, message) {
84938
+ protoOf(ProcessAnswerErrorJS).v44 = function (legId, message) {
84916
84939
  return new ProcessAnswerErrorJS(legId, message);
84917
84940
  };
84918
84941
  protoOf(ProcessAnswerErrorJS).copy = function (legId, message, $super) {
84919
84942
  legId = legId === VOID ? this.legId : legId;
84920
- message = message === VOID ? this.message : message;
84921
- return this.u44(legId, message);
84943
+ message = message === VOID ? this.s44_1 : message;
84944
+ return this.v44(legId, message);
84922
84945
  };
84923
84946
  protoOf(ProcessAnswerErrorJS).toString = function () {
84924
- return 'ProcessAnswerErrorJS(legId=' + this.legId + ', message=' + this.message + ')';
84947
+ return 'ProcessAnswerErrorJS(legId=' + this.legId + ', message=' + this.s44_1 + ')';
84925
84948
  };
84926
84949
  protoOf(ProcessAnswerErrorJS).hashCode = function () {
84927
84950
  var result = getStringHashCode(this.legId);
84928
- result = imul(result, 31) + (this.message == null ? 0 : getStringHashCode(this.message)) | 0;
84951
+ result = imul(result, 31) + (this.s44_1 == null ? 0 : getStringHashCode(this.s44_1)) | 0;
84929
84952
  return result;
84930
84953
  };
84931
84954
  protoOf(ProcessAnswerErrorJS).equals = function (other) {
@@ -84936,33 +84959,34 @@ function requireClientsdkClientcore_js () {
84936
84959
  var tmp0_other_with_cast = other instanceof ProcessAnswerErrorJS ? other : THROW_CCE();
84937
84960
  if (!(this.legId === tmp0_other_with_cast.legId))
84938
84961
  return false;
84939
- if (!(this.message == tmp0_other_with_cast.message))
84962
+ if (!(this.s44_1 == tmp0_other_with_cast.s44_1))
84940
84963
  return false;
84941
84964
  return true;
84942
84965
  };
84943
84966
  function CreateAnswerErrorJS(message) {
84944
84967
  message = message === VOID ? null : message;
84945
84968
  MediaClientErrorJS.call(this);
84946
- this.message = message;
84969
+ captureStack(this, CreateAnswerErrorJS);
84970
+ this.w44_1 = message;
84947
84971
  }
84948
84972
  protoOf(CreateAnswerErrorJS).n8 = function () {
84949
- return this.message;
84973
+ return this.w44_1;
84950
84974
  };
84951
84975
  protoOf(CreateAnswerErrorJS).r8 = function () {
84952
- return this.message;
84976
+ return this.w44_1;
84953
84977
  };
84954
- protoOf(CreateAnswerErrorJS).v44 = function (message) {
84978
+ protoOf(CreateAnswerErrorJS).x44 = function (message) {
84955
84979
  return new CreateAnswerErrorJS(message);
84956
84980
  };
84957
84981
  protoOf(CreateAnswerErrorJS).copy = function (message, $super) {
84958
- message = message === VOID ? this.message : message;
84959
- return this.v44(message);
84982
+ message = message === VOID ? this.w44_1 : message;
84983
+ return this.x44(message);
84960
84984
  };
84961
84985
  protoOf(CreateAnswerErrorJS).toString = function () {
84962
- return 'CreateAnswerErrorJS(message=' + this.message + ')';
84986
+ return 'CreateAnswerErrorJS(message=' + this.w44_1 + ')';
84963
84987
  };
84964
84988
  protoOf(CreateAnswerErrorJS).hashCode = function () {
84965
- return this.message == null ? 0 : getStringHashCode(this.message);
84989
+ return this.w44_1 == null ? 0 : getStringHashCode(this.w44_1);
84966
84990
  };
84967
84991
  protoOf(CreateAnswerErrorJS).equals = function (other) {
84968
84992
  if (this === other)
@@ -84970,33 +84994,34 @@ function requireClientsdkClientcore_js () {
84970
84994
  if (!(other instanceof CreateAnswerErrorJS))
84971
84995
  return false;
84972
84996
  var tmp0_other_with_cast = other instanceof CreateAnswerErrorJS ? other : THROW_CCE();
84973
- if (!(this.message == tmp0_other_with_cast.message))
84997
+ if (!(this.w44_1 == tmp0_other_with_cast.w44_1))
84974
84998
  return false;
84975
84999
  return true;
84976
85000
  };
84977
85001
  function CreateOfferErrorJS(message) {
84978
85002
  message = message === VOID ? null : message;
84979
85003
  MediaClientErrorJS.call(this);
84980
- this.message = message;
85004
+ captureStack(this, CreateOfferErrorJS);
85005
+ this.y44_1 = message;
84981
85006
  }
84982
85007
  protoOf(CreateOfferErrorJS).n8 = function () {
84983
- return this.message;
85008
+ return this.y44_1;
84984
85009
  };
84985
85010
  protoOf(CreateOfferErrorJS).r8 = function () {
84986
- return this.message;
85011
+ return this.y44_1;
84987
85012
  };
84988
- protoOf(CreateOfferErrorJS).v44 = function (message) {
85013
+ protoOf(CreateOfferErrorJS).x44 = function (message) {
84989
85014
  return new CreateOfferErrorJS(message);
84990
85015
  };
84991
85016
  protoOf(CreateOfferErrorJS).copy = function (message, $super) {
84992
- message = message === VOID ? this.message : message;
84993
- return this.v44(message);
85017
+ message = message === VOID ? this.y44_1 : message;
85018
+ return this.x44(message);
84994
85019
  };
84995
85020
  protoOf(CreateOfferErrorJS).toString = function () {
84996
- return 'CreateOfferErrorJS(message=' + this.message + ')';
85021
+ return 'CreateOfferErrorJS(message=' + this.y44_1 + ')';
84997
85022
  };
84998
85023
  protoOf(CreateOfferErrorJS).hashCode = function () {
84999
- return this.message == null ? 0 : getStringHashCode(this.message);
85024
+ return this.y44_1 == null ? 0 : getStringHashCode(this.y44_1);
85000
85025
  };
85001
85026
  protoOf(CreateOfferErrorJS).equals = function (other) {
85002
85027
  if (this === other)
@@ -85004,7 +85029,7 @@ function requireClientsdkClientcore_js () {
85004
85029
  if (!(other instanceof CreateOfferErrorJS))
85005
85030
  return false;
85006
85031
  var tmp0_other_with_cast = other instanceof CreateOfferErrorJS ? other : THROW_CCE();
85007
- if (!(this.message == tmp0_other_with_cast.message))
85032
+ if (!(this.y44_1 == tmp0_other_with_cast.y44_1))
85008
85033
  return false;
85009
85034
  return true;
85010
85035
  };
@@ -86112,66 +86137,66 @@ function requireClientsdkClientcore_js () {
86112
86137
  this.coreRegion = coreRegion;
86113
86138
  this.emergencyRegion = emergencyRegion;
86114
86139
  }
86115
- protoOf(CoreClientConfigRegionJS).y44 = function () {
86140
+ protoOf(CoreClientConfigRegionJS).b45 = function () {
86116
86141
  return this.coreRegion;
86117
86142
  };
86118
- protoOf(CoreClientConfigRegionJS).z44 = function () {
86143
+ protoOf(CoreClientConfigRegionJS).c45 = function () {
86119
86144
  return this.emergencyRegion;
86120
86145
  };
86121
86146
  function CoreClientConfigJS(region) {
86122
86147
  region = region === VOID ? get_DEFAULT_REGION() : region;
86123
86148
  this.region = region;
86124
- this.a45_1 = this.region.coreRegion.j37_1;
86125
- this.b45_1 = this.region.coreRegion.k37_1;
86126
- this.c45_1 = '/v2/rtc';
86127
- this.d45_1 = true;
86128
- this.e45_1 = false;
86129
- this.f45_1 = false;
86130
- this.g45_1 = this.region.emergencyRegion.j1h_1;
86131
- this.h45_1 = this.region.emergencyRegion.k1h_1;
86132
- }
86133
- protoOf(CoreClientConfigJS).i45 = function () {
86149
+ this.d45_1 = this.region.coreRegion.j37_1;
86150
+ this.e45_1 = this.region.coreRegion.k37_1;
86151
+ this.f45_1 = '/v2/rtc';
86152
+ this.g45_1 = true;
86153
+ this.h45_1 = false;
86154
+ this.i45_1 = false;
86155
+ this.j45_1 = this.region.emergencyRegion.j1h_1;
86156
+ this.k45_1 = this.region.emergencyRegion.k1h_1;
86157
+ }
86158
+ protoOf(CoreClientConfigJS).l45 = function () {
86134
86159
  return this.region;
86135
86160
  };
86136
- protoOf(CoreClientConfigJS).j45 = function (_set____db54di) {
86137
- this.a45_1 = _set____db54di;
86138
- };
86139
- protoOf(CoreClientConfigJS).k45 = function () {
86140
- return this.a45_1;
86141
- };
86142
- protoOf(CoreClientConfigJS).l45 = function (_set____db54di) {
86143
- this.b45_1 = _set____db54di;
86144
- };
86145
- protoOf(CoreClientConfigJS).m45 = function () {
86146
- return this.b45_1;
86147
- };
86148
- protoOf(CoreClientConfigJS).n45 = function (_set____db54di) {
86149
- this.c45_1 = _set____db54di;
86150
- };
86151
- protoOf(CoreClientConfigJS).o45 = function () {
86152
- return this.c45_1;
86153
- };
86154
- protoOf(CoreClientConfigJS).p45 = function (_set____db54di) {
86161
+ protoOf(CoreClientConfigJS).m45 = function (_set____db54di) {
86155
86162
  this.d45_1 = _set____db54di;
86156
86163
  };
86157
- protoOf(CoreClientConfigJS).q45 = function () {
86164
+ protoOf(CoreClientConfigJS).n45 = function () {
86158
86165
  return this.d45_1;
86159
86166
  };
86160
- protoOf(CoreClientConfigJS).r45 = function (_set____db54di) {
86167
+ protoOf(CoreClientConfigJS).o45 = function (_set____db54di) {
86161
86168
  this.e45_1 = _set____db54di;
86162
86169
  };
86163
- protoOf(CoreClientConfigJS).s45 = function () {
86170
+ protoOf(CoreClientConfigJS).p45 = function () {
86164
86171
  return this.e45_1;
86165
86172
  };
86166
- protoOf(CoreClientConfigJS).t45 = function () {
86173
+ protoOf(CoreClientConfigJS).q45 = function (_set____db54di) {
86174
+ this.f45_1 = _set____db54di;
86175
+ };
86176
+ protoOf(CoreClientConfigJS).r45 = function () {
86167
86177
  return this.f45_1;
86168
86178
  };
86169
- protoOf(CoreClientConfigJS).u45 = function () {
86179
+ protoOf(CoreClientConfigJS).s45 = function (_set____db54di) {
86180
+ this.g45_1 = _set____db54di;
86181
+ };
86182
+ protoOf(CoreClientConfigJS).t45 = function () {
86170
86183
  return this.g45_1;
86171
86184
  };
86185
+ protoOf(CoreClientConfigJS).u45 = function (_set____db54di) {
86186
+ this.h45_1 = _set____db54di;
86187
+ };
86172
86188
  protoOf(CoreClientConfigJS).v45 = function () {
86173
86189
  return this.h45_1;
86174
86190
  };
86191
+ protoOf(CoreClientConfigJS).w45 = function () {
86192
+ return this.i45_1;
86193
+ };
86194
+ protoOf(CoreClientConfigJS).x45 = function () {
86195
+ return this.j45_1;
86196
+ };
86197
+ protoOf(CoreClientConfigJS).y45 = function () {
86198
+ return this.k45_1;
86199
+ };
86175
86200
  function TopicJS(name, tag) {
86176
86201
  this.name = name;
86177
86202
  this.tag = tag;
@@ -86179,7 +86204,7 @@ function requireClientsdkClientcore_js () {
86179
86204
  protoOf(TopicJS).f2 = function () {
86180
86205
  return this.name;
86181
86206
  };
86182
- protoOf(TopicJS).w45 = function () {
86207
+ protoOf(TopicJS).z45 = function () {
86183
86208
  return this.tag;
86184
86209
  };
86185
86210
  protoOf(TopicJS).r8 = function () {
@@ -86188,13 +86213,13 @@ function requireClientsdkClientcore_js () {
86188
86213
  protoOf(TopicJS).s8 = function () {
86189
86214
  return this.tag;
86190
86215
  };
86191
- protoOf(TopicJS).x45 = function (name, tag) {
86216
+ protoOf(TopicJS).a46 = function (name, tag) {
86192
86217
  return new TopicJS(name, tag);
86193
86218
  };
86194
86219
  protoOf(TopicJS).copy = function (name, tag, $super) {
86195
86220
  name = name === VOID ? this.name : name;
86196
86221
  tag = tag === VOID ? this.tag : tag;
86197
- return this.x45(name, tag);
86222
+ return this.a46(name, tag);
86198
86223
  };
86199
86224
  protoOf(TopicJS).toString = function () {
86200
86225
  return 'TopicJS(name=' + this.name + ', tag=' + this.tag + ')';
@@ -86335,10 +86360,10 @@ function requireClientsdkClientcore_js () {
86335
86360
  protoOf(SessionErrorReasonJsObject).c44 = function () {
86336
86361
  return this.EXPIRED_TOKEN;
86337
86362
  };
86338
- protoOf(SessionErrorReasonJsObject).c46 = function () {
86363
+ protoOf(SessionErrorReasonJsObject).f46 = function () {
86339
86364
  return this.TRANSPORT_CLOSED;
86340
86365
  };
86341
- protoOf(SessionErrorReasonJsObject).d46 = function () {
86366
+ protoOf(SessionErrorReasonJsObject).g46 = function () {
86342
86367
  return this.PING_TIMEOUT;
86343
86368
  };
86344
86369
  protoOf(SessionErrorReasonJsObject).toString = function () {
@@ -86777,22 +86802,22 @@ function requireClientsdkClientcore_js () {
86777
86802
  return _this__u8e3s4 == null ? null : equals(_this__u8e3s4, undefined) ? null : _this__u8e3s4;
86778
86803
  }
86779
86804
  function createVonageLoggerJS$1($name, $minLogLevel, $topics, $onLog) {
86780
- this.h46_1 = $onLog;
86781
- this.e46_1 = $name;
86782
- this.f46_1 = $minLogLevel;
86783
- this.g46_1 = $topics;
86805
+ this.k46_1 = $onLog;
86806
+ this.h46_1 = $name;
86807
+ this.i46_1 = $minLogLevel;
86808
+ this.j46_1 = $topics;
86784
86809
  }
86785
86810
  protoOf(createVonageLoggerJS$1).f2 = function () {
86786
- return this.e46_1;
86811
+ return this.h46_1;
86787
86812
  };
86788
86813
  protoOf(createVonageLoggerJS$1).h3p = function () {
86789
- return this.f46_1;
86814
+ return this.i46_1;
86790
86815
  };
86791
86816
  protoOf(createVonageLoggerJS$1).z3o = function () {
86792
- return this.g46_1;
86817
+ return this.j46_1;
86793
86818
  };
86794
86819
  protoOf(createVonageLoggerJS$1).onLog = function (logLevel, topic, message) {
86795
- this.h46_1(logLevel, topic, message);
86820
+ this.k46_1(logLevel, topic, message);
86796
86821
  };
86797
86822
  function vonageLogger$lambda($logger) {
86798
86823
  return function (logLevel, topic, message, _anonymous_parameter_3__qggqen) {
@@ -86881,13 +86906,13 @@ function requireClientsdkClientcore_js () {
86881
86906
  this.ANSWERED = 'ANSWERED';
86882
86907
  this.COMPLETED = 'COMPLETED';
86883
86908
  }
86884
- protoOf(LegStatusJSObject).i46 = function () {
86909
+ protoOf(LegStatusJSObject).l46 = function () {
86885
86910
  return this.RINGING;
86886
86911
  };
86887
- protoOf(LegStatusJSObject).j46 = function () {
86912
+ protoOf(LegStatusJSObject).m46 = function () {
86888
86913
  return this.ANSWERED;
86889
86914
  };
86890
- protoOf(LegStatusJSObject).k46 = function () {
86915
+ protoOf(LegStatusJSObject).n46 = function () {
86891
86916
  return this.COMPLETED;
86892
86917
  };
86893
86918
  protoOf(LegStatusJSObject).toString = function () {
@@ -86911,7 +86936,7 @@ function requireClientsdkClientcore_js () {
86911
86936
  function CallDisconnectReasonJSObject() {
86912
86937
  this.NetworkChange = 'networkChange';
86913
86938
  }
86914
- protoOf(CallDisconnectReasonJSObject).l46 = function () {
86939
+ protoOf(CallDisconnectReasonJSObject).o46 = function () {
86915
86940
  return this.NetworkChange;
86916
86941
  };
86917
86942
  protoOf(CallDisconnectReasonJSObject).toString = function () {
@@ -86939,19 +86964,19 @@ function requireClientsdkClientcore_js () {
86939
86964
  this.LOCAL_HANGUP = 'LOCAL_HANGUP';
86940
86965
  this.MEDIA_TIMEOUT = 'MEDIA_TIMEOUT';
86941
86966
  }
86942
- protoOf(HangupReasonJSObject).m46 = function () {
86967
+ protoOf(HangupReasonJSObject).p46 = function () {
86943
86968
  return this.REMOTE_HANGUP;
86944
86969
  };
86945
- protoOf(HangupReasonJSObject).n46 = function () {
86970
+ protoOf(HangupReasonJSObject).q46 = function () {
86946
86971
  return this.REMOTE_REJECT;
86947
86972
  };
86948
- protoOf(HangupReasonJSObject).o46 = function () {
86973
+ protoOf(HangupReasonJSObject).r46 = function () {
86949
86974
  return this.REMOTE_NO_ANSWER_TIMEOUT;
86950
86975
  };
86951
- protoOf(HangupReasonJSObject).p46 = function () {
86976
+ protoOf(HangupReasonJSObject).s46 = function () {
86952
86977
  return this.LOCAL_HANGUP;
86953
86978
  };
86954
- protoOf(HangupReasonJSObject).q46 = function () {
86979
+ protoOf(HangupReasonJSObject).t46 = function () {
86955
86980
  return this.MEDIA_TIMEOUT;
86956
86981
  };
86957
86982
  protoOf(HangupReasonJSObject).toString = function () {
@@ -87513,6 +87538,270 @@ function requireClientsdkClientcore_js () {
87513
87538
  return Unit_instance;
87514
87539
  };
87515
87540
  }
87541
+ function IVoiceClientJS$enableNoiseSuppression$lambda$lambda($reject, $resolve) {
87542
+ return function (err) {
87543
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
87544
+ var tmp;
87545
+ if (tmp0_safe_receiver == null) {
87546
+ tmp = null;
87547
+ } else {
87548
+ // Inline function 'kotlin.let' call
87549
+ // Inline function 'kotlin.contracts.contract' call
87550
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
87551
+ tmp = Unit_instance;
87552
+ }
87553
+ var tmp2_elvis_lhs = tmp;
87554
+ var tmp_0;
87555
+ if (tmp2_elvis_lhs == null) {
87556
+ var tmp_1;
87557
+ if (err == null) {
87558
+ tmp_1 = null;
87559
+ } else {
87560
+ // Inline function 'kotlin.let' call
87561
+ // Inline function 'kotlin.contracts.contract' call
87562
+ $reject(err);
87563
+ tmp_1 = Unit_instance;
87564
+ }
87565
+ tmp_0 = tmp_1;
87566
+ } else {
87567
+ tmp_0 = tmp2_elvis_lhs;
87568
+ }
87569
+ var tmp_2;
87570
+ if (tmp_0 == null) {
87571
+ tmp_2 = $resolve(null);
87572
+ } else {
87573
+ tmp_2 = Unit_instance;
87574
+ }
87575
+ return Unit_instance;
87576
+ };
87577
+ }
87578
+ function IVoiceClientJS$enableNoiseSuppression$lambda(this$0, $callId) {
87579
+ return function (resolve, reject) {
87580
+ var tmp = this$0.media;
87581
+ tmp.enableNoiseSuppression($callId, IVoiceClientJS$enableNoiseSuppression$lambda$lambda(reject, resolve));
87582
+ return Unit_instance;
87583
+ };
87584
+ }
87585
+ function IVoiceClientJS$disableNoiseSuppression$lambda$lambda($reject, $resolve) {
87586
+ return function (err) {
87587
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
87588
+ var tmp;
87589
+ if (tmp0_safe_receiver == null) {
87590
+ tmp = null;
87591
+ } else {
87592
+ // Inline function 'kotlin.let' call
87593
+ // Inline function 'kotlin.contracts.contract' call
87594
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
87595
+ tmp = Unit_instance;
87596
+ }
87597
+ var tmp2_elvis_lhs = tmp;
87598
+ var tmp_0;
87599
+ if (tmp2_elvis_lhs == null) {
87600
+ var tmp_1;
87601
+ if (err == null) {
87602
+ tmp_1 = null;
87603
+ } else {
87604
+ // Inline function 'kotlin.let' call
87605
+ // Inline function 'kotlin.contracts.contract' call
87606
+ $reject(err);
87607
+ tmp_1 = Unit_instance;
87608
+ }
87609
+ tmp_0 = tmp_1;
87610
+ } else {
87611
+ tmp_0 = tmp2_elvis_lhs;
87612
+ }
87613
+ var tmp_2;
87614
+ if (tmp_0 == null) {
87615
+ tmp_2 = $resolve(null);
87616
+ } else {
87617
+ tmp_2 = Unit_instance;
87618
+ }
87619
+ return Unit_instance;
87620
+ };
87621
+ }
87622
+ function IVoiceClientJS$disableNoiseSuppression$lambda(this$0, $callId) {
87623
+ return function (resolve, reject) {
87624
+ var tmp = this$0.media;
87625
+ tmp.disableNoiseSuppression($callId, IVoiceClientJS$disableNoiseSuppression$lambda$lambda(reject, resolve));
87626
+ return Unit_instance;
87627
+ };
87628
+ }
87629
+ function IVoiceClientJS$enableAutoGainControl$lambda$lambda($reject, $resolve) {
87630
+ return function (err) {
87631
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
87632
+ var tmp;
87633
+ if (tmp0_safe_receiver == null) {
87634
+ tmp = null;
87635
+ } else {
87636
+ // Inline function 'kotlin.let' call
87637
+ // Inline function 'kotlin.contracts.contract' call
87638
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
87639
+ tmp = Unit_instance;
87640
+ }
87641
+ var tmp2_elvis_lhs = tmp;
87642
+ var tmp_0;
87643
+ if (tmp2_elvis_lhs == null) {
87644
+ var tmp_1;
87645
+ if (err == null) {
87646
+ tmp_1 = null;
87647
+ } else {
87648
+ // Inline function 'kotlin.let' call
87649
+ // Inline function 'kotlin.contracts.contract' call
87650
+ $reject(err);
87651
+ tmp_1 = Unit_instance;
87652
+ }
87653
+ tmp_0 = tmp_1;
87654
+ } else {
87655
+ tmp_0 = tmp2_elvis_lhs;
87656
+ }
87657
+ var tmp_2;
87658
+ if (tmp_0 == null) {
87659
+ tmp_2 = $resolve(null);
87660
+ } else {
87661
+ tmp_2 = Unit_instance;
87662
+ }
87663
+ return Unit_instance;
87664
+ };
87665
+ }
87666
+ function IVoiceClientJS$enableAutoGainControl$lambda(this$0, $callId) {
87667
+ return function (resolve, reject) {
87668
+ var tmp = this$0.media;
87669
+ tmp.enableAutoGainControl($callId, IVoiceClientJS$enableAutoGainControl$lambda$lambda(reject, resolve));
87670
+ return Unit_instance;
87671
+ };
87672
+ }
87673
+ function IVoiceClientJS$disableAutoGainControl$lambda$lambda($reject, $resolve) {
87674
+ return function (err) {
87675
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
87676
+ var tmp;
87677
+ if (tmp0_safe_receiver == null) {
87678
+ tmp = null;
87679
+ } else {
87680
+ // Inline function 'kotlin.let' call
87681
+ // Inline function 'kotlin.contracts.contract' call
87682
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
87683
+ tmp = Unit_instance;
87684
+ }
87685
+ var tmp2_elvis_lhs = tmp;
87686
+ var tmp_0;
87687
+ if (tmp2_elvis_lhs == null) {
87688
+ var tmp_1;
87689
+ if (err == null) {
87690
+ tmp_1 = null;
87691
+ } else {
87692
+ // Inline function 'kotlin.let' call
87693
+ // Inline function 'kotlin.contracts.contract' call
87694
+ $reject(err);
87695
+ tmp_1 = Unit_instance;
87696
+ }
87697
+ tmp_0 = tmp_1;
87698
+ } else {
87699
+ tmp_0 = tmp2_elvis_lhs;
87700
+ }
87701
+ var tmp_2;
87702
+ if (tmp_0 == null) {
87703
+ tmp_2 = $resolve(null);
87704
+ } else {
87705
+ tmp_2 = Unit_instance;
87706
+ }
87707
+ return Unit_instance;
87708
+ };
87709
+ }
87710
+ function IVoiceClientJS$disableAutoGainControl$lambda(this$0, $callId) {
87711
+ return function (resolve, reject) {
87712
+ var tmp = this$0.media;
87713
+ tmp.disableAutoGainControl($callId, IVoiceClientJS$disableAutoGainControl$lambda$lambda(reject, resolve));
87714
+ return Unit_instance;
87715
+ };
87716
+ }
87717
+ function IVoiceClientJS$enableEchoCancellation$lambda$lambda($reject, $resolve) {
87718
+ return function (err) {
87719
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
87720
+ var tmp;
87721
+ if (tmp0_safe_receiver == null) {
87722
+ tmp = null;
87723
+ } else {
87724
+ // Inline function 'kotlin.let' call
87725
+ // Inline function 'kotlin.contracts.contract' call
87726
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
87727
+ tmp = Unit_instance;
87728
+ }
87729
+ var tmp2_elvis_lhs = tmp;
87730
+ var tmp_0;
87731
+ if (tmp2_elvis_lhs == null) {
87732
+ var tmp_1;
87733
+ if (err == null) {
87734
+ tmp_1 = null;
87735
+ } else {
87736
+ // Inline function 'kotlin.let' call
87737
+ // Inline function 'kotlin.contracts.contract' call
87738
+ $reject(err);
87739
+ tmp_1 = Unit_instance;
87740
+ }
87741
+ tmp_0 = tmp_1;
87742
+ } else {
87743
+ tmp_0 = tmp2_elvis_lhs;
87744
+ }
87745
+ var tmp_2;
87746
+ if (tmp_0 == null) {
87747
+ tmp_2 = $resolve(null);
87748
+ } else {
87749
+ tmp_2 = Unit_instance;
87750
+ }
87751
+ return Unit_instance;
87752
+ };
87753
+ }
87754
+ function IVoiceClientJS$enableEchoCancellation$lambda(this$0, $callId) {
87755
+ return function (resolve, reject) {
87756
+ var tmp = this$0.media;
87757
+ tmp.enableEchoCancellation($callId, IVoiceClientJS$enableEchoCancellation$lambda$lambda(reject, resolve));
87758
+ return Unit_instance;
87759
+ };
87760
+ }
87761
+ function IVoiceClientJS$disableEchoCancellation$lambda$lambda($reject, $resolve) {
87762
+ return function (err) {
87763
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
87764
+ var tmp;
87765
+ if (tmp0_safe_receiver == null) {
87766
+ tmp = null;
87767
+ } else {
87768
+ // Inline function 'kotlin.let' call
87769
+ // Inline function 'kotlin.contracts.contract' call
87770
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
87771
+ tmp = Unit_instance;
87772
+ }
87773
+ var tmp2_elvis_lhs = tmp;
87774
+ var tmp_0;
87775
+ if (tmp2_elvis_lhs == null) {
87776
+ var tmp_1;
87777
+ if (err == null) {
87778
+ tmp_1 = null;
87779
+ } else {
87780
+ // Inline function 'kotlin.let' call
87781
+ // Inline function 'kotlin.contracts.contract' call
87782
+ $reject(err);
87783
+ tmp_1 = Unit_instance;
87784
+ }
87785
+ tmp_0 = tmp_1;
87786
+ } else {
87787
+ tmp_0 = tmp2_elvis_lhs;
87788
+ }
87789
+ var tmp_2;
87790
+ if (tmp_0 == null) {
87791
+ tmp_2 = $resolve(null);
87792
+ } else {
87793
+ tmp_2 = Unit_instance;
87794
+ }
87795
+ return Unit_instance;
87796
+ };
87797
+ }
87798
+ function IVoiceClientJS$disableEchoCancellation$lambda(this$0, $callId) {
87799
+ return function (resolve, reject) {
87800
+ var tmp = this$0.media;
87801
+ tmp.disableEchoCancellation($callId, IVoiceClientJS$disableEchoCancellation$lambda$lambda(reject, resolve));
87802
+ return Unit_instance;
87803
+ };
87804
+ }
87516
87805
  function IVoiceClientJS$sendDTMF$lambda$lambda($reject, $resolve) {
87517
87806
  return function (err) {
87518
87807
  var tmp0_safe_receiver = err instanceof VonageError ? err : null;
@@ -87575,13 +87864,13 @@ function requireClientsdkClientcore_js () {
87575
87864
  protoOf(VoiceInviteFromInfoJS).s8 = function () {
87576
87865
  return this.type;
87577
87866
  };
87578
- protoOf(VoiceInviteFromInfoJS).r46 = function (id, type) {
87867
+ protoOf(VoiceInviteFromInfoJS).u46 = function (id, type) {
87579
87868
  return new VoiceInviteFromInfoJS(id, type);
87580
87869
  };
87581
87870
  protoOf(VoiceInviteFromInfoJS).copy = function (id, type, $super) {
87582
87871
  id = id === VOID ? this.id : id;
87583
87872
  type = type === VOID ? this.type : type;
87584
- return this.r46(id, type);
87873
+ return this.u46(id, type);
87585
87874
  };
87586
87875
  protoOf(VoiceInviteFromInfoJS).toString = function () {
87587
87876
  return 'VoiceInviteFromInfoJS(id=' + this.id + ', type=' + this.type + ')';
@@ -87659,41 +87948,41 @@ function requireClientsdkClientcore_js () {
87659
87948
  cause = cause === VOID ? null : cause;
87660
87949
  extendThrowable(this);
87661
87950
  captureStack(this, HttpClientErrorJS);
87662
- this.s46_1 = message;
87663
- this.t46_1 = cause;
87951
+ this.v46_1 = message;
87952
+ this.w46_1 = cause;
87664
87953
  }
87665
87954
  protoOf(HttpClientErrorJS).n8 = function () {
87666
- return this.s46_1;
87955
+ return this.v46_1;
87667
87956
  };
87668
87957
  protoOf(HttpClientErrorJS).o8 = function () {
87669
- return this.t46_1;
87958
+ return this.w46_1;
87670
87959
  };
87671
- protoOf(HttpClientErrorJS).u46 = function () {
87672
- var tmp0_elvis_lhs = this.s46_1;
87960
+ protoOf(HttpClientErrorJS).x46 = function () {
87961
+ var tmp0_elvis_lhs = this.v46_1;
87673
87962
  var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
87674
- var tmp_0 = this.t46_1;
87963
+ var tmp_0 = this.w46_1;
87675
87964
  return new HTTPClientError(tmp, tmp_0 instanceof Exception ? tmp_0 : null);
87676
87965
  };
87677
87966
  protoOf(HttpClientErrorJS).r8 = function () {
87678
- return this.s46_1;
87967
+ return this.v46_1;
87679
87968
  };
87680
87969
  protoOf(HttpClientErrorJS).s8 = function () {
87681
- return this.t46_1;
87970
+ return this.w46_1;
87682
87971
  };
87683
- protoOf(HttpClientErrorJS).v46 = function (message, cause) {
87972
+ protoOf(HttpClientErrorJS).y46 = function (message, cause) {
87684
87973
  return new HttpClientErrorJS(message, cause);
87685
87974
  };
87686
87975
  protoOf(HttpClientErrorJS).copy = function (message, cause, $super) {
87687
- message = message === VOID ? this.s46_1 : message;
87688
- cause = cause === VOID ? this.t46_1 : cause;
87689
- return this.v46(message, cause);
87976
+ message = message === VOID ? this.v46_1 : message;
87977
+ cause = cause === VOID ? this.w46_1 : cause;
87978
+ return this.y46(message, cause);
87690
87979
  };
87691
87980
  protoOf(HttpClientErrorJS).toString = function () {
87692
- return 'HttpClientErrorJS(message=' + this.s46_1 + ', cause=' + toString_0(this.t46_1) + ')';
87981
+ return 'HttpClientErrorJS(message=' + this.v46_1 + ', cause=' + toString_0(this.w46_1) + ')';
87693
87982
  };
87694
87983
  protoOf(HttpClientErrorJS).hashCode = function () {
87695
- var result = this.s46_1 == null ? 0 : getStringHashCode(this.s46_1);
87696
- result = imul(result, 31) + (this.t46_1 == null ? 0 : hashCode(this.t46_1)) | 0;
87984
+ var result = this.v46_1 == null ? 0 : getStringHashCode(this.v46_1);
87985
+ result = imul(result, 31) + (this.w46_1 == null ? 0 : hashCode(this.w46_1)) | 0;
87697
87986
  return result;
87698
87987
  };
87699
87988
  protoOf(HttpClientErrorJS).equals = function (other) {
@@ -87702,9 +87991,9 @@ function requireClientsdkClientcore_js () {
87702
87991
  if (!(other instanceof HttpClientErrorJS))
87703
87992
  return false;
87704
87993
  var tmp0_other_with_cast = other instanceof HttpClientErrorJS ? other : THROW_CCE();
87705
- if (!(this.s46_1 == tmp0_other_with_cast.s46_1))
87994
+ if (!(this.v46_1 == tmp0_other_with_cast.v46_1))
87706
87995
  return false;
87707
- if (!equals(this.t46_1, tmp0_other_with_cast.t46_1))
87996
+ if (!equals(this.w46_1, tmp0_other_with_cast.w46_1))
87708
87997
  return false;
87709
87998
  return true;
87710
87999
  };
@@ -87713,7 +88002,7 @@ function requireClientsdkClientcore_js () {
87713
88002
  this.statusCode = statusCode;
87714
88003
  this.body = body;
87715
88004
  }
87716
- protoOf(HttpClientResponseJS).w46 = function () {
88005
+ protoOf(HttpClientResponseJS).z46 = function () {
87717
88006
  return this.statusCode;
87718
88007
  };
87719
88008
  protoOf(HttpClientResponseJS).i40 = function () {
@@ -87725,13 +88014,13 @@ function requireClientsdkClientcore_js () {
87725
88014
  protoOf(HttpClientResponseJS).s8 = function () {
87726
88015
  return this.body;
87727
88016
  };
87728
- protoOf(HttpClientResponseJS).x46 = function (statusCode, body) {
88017
+ protoOf(HttpClientResponseJS).a47 = function (statusCode, body) {
87729
88018
  return new HttpClientResponseJS(statusCode, body);
87730
88019
  };
87731
88020
  protoOf(HttpClientResponseJS).copy = function (statusCode, body, $super) {
87732
88021
  statusCode = statusCode === VOID ? this.statusCode : statusCode;
87733
88022
  body = body === VOID ? this.body : body;
87734
- return this.x46(statusCode, body);
88023
+ return this.a47(statusCode, body);
87735
88024
  };
87736
88025
  protoOf(HttpClientResponseJS).toString = function () {
87737
88026
  return 'HttpClientResponseJS(statusCode=' + this.statusCode + ', body=' + this.body + ')';
@@ -87787,16 +88076,16 @@ function requireClientsdkClientcore_js () {
87787
88076
  this.RejectedElsewhere = 'RejectedElsewhere';
87788
88077
  this.RemoteTimeout = 'RemoteTimeout';
87789
88078
  }
87790
- protoOf(CancelReasonJSObject).y46 = function () {
88079
+ protoOf(CancelReasonJSObject).b47 = function () {
87791
88080
  return this.RemoteCancel;
87792
88081
  };
87793
- protoOf(CancelReasonJSObject).z46 = function () {
88082
+ protoOf(CancelReasonJSObject).c47 = function () {
87794
88083
  return this.AnsweredElsewhere;
87795
88084
  };
87796
- protoOf(CancelReasonJSObject).a47 = function () {
88085
+ protoOf(CancelReasonJSObject).d47 = function () {
87797
88086
  return this.RejectedElsewhere;
87798
88087
  };
87799
- protoOf(CancelReasonJSObject).b47 = function () {
88088
+ protoOf(CancelReasonJSObject).e47 = function () {
87800
88089
  return this.RemoteTimeout;
87801
88090
  };
87802
88091
  protoOf(CancelReasonJSObject).toString = function () {
@@ -87828,31 +88117,31 @@ function requireClientsdkClientcore_js () {
87828
88117
  this.packet_cnt = packet_cnt;
87829
88118
  this.packet_loss_perc = packet_loss_perc;
87830
88119
  }
87831
- protoOf(RTCQualityJS).c47 = function () {
88120
+ protoOf(RTCQualityJS).f47 = function () {
87832
88121
  return this.mos_score;
87833
88122
  };
87834
- protoOf(RTCQualityJS).d47 = function () {
88123
+ protoOf(RTCQualityJS).g47 = function () {
87835
88124
  return this.quality_percentage;
87836
88125
  };
87837
- protoOf(RTCQualityJS).e47 = function () {
88126
+ protoOf(RTCQualityJS).h47 = function () {
87838
88127
  return this.jitter_min_var;
87839
88128
  };
87840
- protoOf(RTCQualityJS).f47 = function () {
88129
+ protoOf(RTCQualityJS).i47 = function () {
87841
88130
  return this.jitter_max_var;
87842
88131
  };
87843
- protoOf(RTCQualityJS).g47 = function () {
88132
+ protoOf(RTCQualityJS).j47 = function () {
87844
88133
  return this.jitter_loss_rate;
87845
88134
  };
87846
- protoOf(RTCQualityJS).h47 = function () {
88135
+ protoOf(RTCQualityJS).k47 = function () {
87847
88136
  return this.jitter_burst_rate;
87848
88137
  };
87849
- protoOf(RTCQualityJS).i47 = function () {
88138
+ protoOf(RTCQualityJS).l47 = function () {
87850
88139
  return this.flaw_total;
87851
88140
  };
87852
- protoOf(RTCQualityJS).j47 = function () {
88141
+ protoOf(RTCQualityJS).m47 = function () {
87853
88142
  return this.packet_cnt;
87854
88143
  };
87855
- protoOf(RTCQualityJS).k47 = function () {
88144
+ protoOf(RTCQualityJS).n47 = function () {
87856
88145
  return this.packet_loss_perc;
87857
88146
  };
87858
88147
  protoOf(RTCQualityJS).r8 = function () {
@@ -87861,28 +88150,28 @@ function requireClientsdkClientcore_js () {
87861
88150
  protoOf(RTCQualityJS).s8 = function () {
87862
88151
  return this.quality_percentage;
87863
88152
  };
87864
- protoOf(RTCQualityJS).l47 = function () {
88153
+ protoOf(RTCQualityJS).o47 = function () {
87865
88154
  return this.jitter_min_var;
87866
88155
  };
87867
- protoOf(RTCQualityJS).m47 = function () {
88156
+ protoOf(RTCQualityJS).p47 = function () {
87868
88157
  return this.jitter_max_var;
87869
88158
  };
87870
- protoOf(RTCQualityJS).n47 = function () {
88159
+ protoOf(RTCQualityJS).q47 = function () {
87871
88160
  return this.jitter_loss_rate;
87872
88161
  };
87873
- protoOf(RTCQualityJS).o47 = function () {
88162
+ protoOf(RTCQualityJS).r47 = function () {
87874
88163
  return this.jitter_burst_rate;
87875
88164
  };
87876
- protoOf(RTCQualityJS).p47 = function () {
88165
+ protoOf(RTCQualityJS).s47 = function () {
87877
88166
  return this.flaw_total;
87878
88167
  };
87879
- protoOf(RTCQualityJS).q47 = function () {
88168
+ protoOf(RTCQualityJS).t47 = function () {
87880
88169
  return this.packet_cnt;
87881
88170
  };
87882
- protoOf(RTCQualityJS).r47 = function () {
88171
+ protoOf(RTCQualityJS).u47 = function () {
87883
88172
  return this.packet_loss_perc;
87884
88173
  };
87885
- protoOf(RTCQualityJS).s47 = function (mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc) {
88174
+ protoOf(RTCQualityJS).v47 = function (mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc) {
87886
88175
  return new RTCQualityJS(mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc);
87887
88176
  };
87888
88177
  protoOf(RTCQualityJS).copy = function (mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc, $super) {
@@ -87895,7 +88184,7 @@ function requireClientsdkClientcore_js () {
87895
88184
  flaw_total = flaw_total === VOID ? this.flaw_total : flaw_total;
87896
88185
  packet_cnt = packet_cnt === VOID ? this.packet_cnt : packet_cnt;
87897
88186
  packet_loss_perc = packet_loss_perc === VOID ? this.packet_loss_perc : packet_loss_perc;
87898
- return this.s47(mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc);
88187
+ return this.v47(mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc);
87899
88188
  };
87900
88189
  protoOf(RTCQualityJS).toString = function () {
87901
88190
  return 'RTCQualityJS(mos_score=' + this.mos_score + ', quality_percentage=' + this.quality_percentage + ', jitter_min_var=' + this.jitter_min_var + ', jitter_max_var=' + this.jitter_max_var + ', jitter_loss_rate=' + this.jitter_loss_rate + ', jitter_burst_rate=' + this.jitter_burst_rate + ', flaw_total=' + this.flaw_total + ', packet_cnt=' + this.packet_cnt + ', packet_loss_perc=' + this.packet_loss_perc + ')';
@@ -87958,34 +88247,34 @@ function requireClientsdkClientcore_js () {
87958
88247
  this.audioRtt = audioRtt;
87959
88248
  this.audioSentJitter = audioSentJitter;
87960
88249
  }
87961
- protoOf(RTCStatsJS).t47 = function () {
88250
+ protoOf(RTCStatsJS).w47 = function () {
87962
88251
  return this.audioRecvPackets;
87963
88252
  };
87964
- protoOf(RTCStatsJS).u47 = function () {
88253
+ protoOf(RTCStatsJS).x47 = function () {
87965
88254
  return this.audioRecvPacketsLost;
87966
88255
  };
87967
- protoOf(RTCStatsJS).v47 = function () {
88256
+ protoOf(RTCStatsJS).y47 = function () {
87968
88257
  return this.audioRecvBytes;
87969
88258
  };
87970
- protoOf(RTCStatsJS).w47 = function () {
88259
+ protoOf(RTCStatsJS).z47 = function () {
87971
88260
  return this.audioRecvJitter;
87972
88261
  };
87973
- protoOf(RTCStatsJS).x47 = function () {
88262
+ protoOf(RTCStatsJS).a48 = function () {
87974
88263
  return this.audioSentPackets;
87975
88264
  };
87976
- protoOf(RTCStatsJS).y47 = function () {
88265
+ protoOf(RTCStatsJS).b48 = function () {
87977
88266
  return this.audioSentBytes;
87978
88267
  };
87979
- protoOf(RTCStatsJS).z47 = function () {
88268
+ protoOf(RTCStatsJS).c48 = function () {
87980
88269
  return this.audioSentPacketsLost;
87981
88270
  };
87982
- protoOf(RTCStatsJS).a48 = function () {
88271
+ protoOf(RTCStatsJS).d48 = function () {
87983
88272
  return this.audioRtt;
87984
88273
  };
87985
- protoOf(RTCStatsJS).b48 = function () {
88274
+ protoOf(RTCStatsJS).e48 = function () {
87986
88275
  return this.audioSentJitter;
87987
88276
  };
87988
- protoOf(RTCStatsJS).c48 = function () {
88277
+ protoOf(RTCStatsJS).f48 = function () {
87989
88278
  return new RTCStats(numberToLong(this.audioRecvPackets), numberToInt(this.audioRecvPacketsLost), numberToLong(this.audioRecvBytes), numberToDouble(this.audioRecvJitter), numberToLong(this.audioSentPackets), numberToLong(this.audioSentBytes), numberToInt(this.audioSentPacketsLost), numberToDouble(this.audioRtt), numberToDouble(this.audioSentJitter));
87990
88279
  };
87991
88280
  protoOf(RTCStatsJS).r8 = function () {
@@ -87994,28 +88283,28 @@ function requireClientsdkClientcore_js () {
87994
88283
  protoOf(RTCStatsJS).s8 = function () {
87995
88284
  return this.audioRecvPacketsLost;
87996
88285
  };
87997
- protoOf(RTCStatsJS).l47 = function () {
88286
+ protoOf(RTCStatsJS).o47 = function () {
87998
88287
  return this.audioRecvBytes;
87999
88288
  };
88000
- protoOf(RTCStatsJS).m47 = function () {
88289
+ protoOf(RTCStatsJS).p47 = function () {
88001
88290
  return this.audioRecvJitter;
88002
88291
  };
88003
- protoOf(RTCStatsJS).n47 = function () {
88292
+ protoOf(RTCStatsJS).q47 = function () {
88004
88293
  return this.audioSentPackets;
88005
88294
  };
88006
- protoOf(RTCStatsJS).o47 = function () {
88295
+ protoOf(RTCStatsJS).r47 = function () {
88007
88296
  return this.audioSentBytes;
88008
88297
  };
88009
- protoOf(RTCStatsJS).p47 = function () {
88298
+ protoOf(RTCStatsJS).s47 = function () {
88010
88299
  return this.audioSentPacketsLost;
88011
88300
  };
88012
- protoOf(RTCStatsJS).q47 = function () {
88301
+ protoOf(RTCStatsJS).t47 = function () {
88013
88302
  return this.audioRtt;
88014
88303
  };
88015
- protoOf(RTCStatsJS).r47 = function () {
88304
+ protoOf(RTCStatsJS).u47 = function () {
88016
88305
  return this.audioSentJitter;
88017
88306
  };
88018
- protoOf(RTCStatsJS).d48 = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
88307
+ protoOf(RTCStatsJS).g48 = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
88019
88308
  return new RTCStatsJS(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
88020
88309
  };
88021
88310
  protoOf(RTCStatsJS).copy = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, $super) {
@@ -88028,7 +88317,7 @@ function requireClientsdkClientcore_js () {
88028
88317
  audioSentPacketsLost = audioSentPacketsLost === VOID ? this.audioSentPacketsLost : audioSentPacketsLost;
88029
88318
  audioRtt = audioRtt === VOID ? this.audioRtt : audioRtt;
88030
88319
  audioSentJitter = audioSentJitter === VOID ? this.audioSentJitter : audioSentJitter;
88031
- return this.d48(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
88320
+ return this.g48(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
88032
88321
  };
88033
88322
  protoOf(RTCStatsJS).toString = function () {
88034
88323
  return 'RTCStatsJS(audioRecvPackets=' + toString(this.audioRecvPackets) + ', audioRecvPacketsLost=' + toString(this.audioRecvPacketsLost) + ', audioRecvBytes=' + toString(this.audioRecvBytes) + ', audioRecvJitter=' + toString(this.audioRecvJitter) + ', audioSentPackets=' + toString(this.audioSentPackets) + ', audioSentBytes=' + toString(this.audioSentBytes) + ', audioSentPacketsLost=' + toString(this.audioSentPacketsLost) + ', audioRtt=' + toString(this.audioRtt) + ', audioSentJitter=' + toString(this.audioSentJitter) + ')';
@@ -88148,7 +88437,7 @@ function requireClientsdkClientcore_js () {
88148
88437
  };
88149
88438
  }
88150
88439
  function HttpClientJSAdapter$1($js) {
88151
- this.e48_1 = $js;
88440
+ this.h48_1 = $js;
88152
88441
  }
88153
88442
  protoOf(HttpClientJSAdapter$1).s3q = function (verb, url, headers, body, callback) {
88154
88443
  var tmp = verb.toString();
@@ -88156,7 +88445,7 @@ function requireClientsdkClientcore_js () {
88156
88445
  // Inline function 'kotlin.contracts.contract' call
88157
88446
  // Inline function 'vonage.<no name provided>.request.<anonymous>' call
88158
88447
  var tmp_0 = fromMap(JSON, headers);
88159
- this.e48_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
88448
+ this.h48_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
88160
88449
  };
88161
88450
  function SocketClientJSAdapter$o$emit$lambda($callback) {
88162
88451
  return function (err, response) {
@@ -88174,11 +88463,11 @@ function requireClientsdkClientcore_js () {
88174
88463
  };
88175
88464
  }
88176
88465
  function SocketClientJSAdapter$adapter$1($js) {
88177
- this.g48_1 = $js;
88178
- this.f48_1 = null;
88466
+ this.j48_1 = $js;
88467
+ this.i48_1 = null;
88179
88468
  }
88180
88469
  protoOf(SocketClientJSAdapter$adapter$1).w3q = function (_set____db54di) {
88181
- this.f48_1 = _set____db54di;
88470
+ this.i48_1 = _set____db54di;
88182
88471
  };
88183
88472
  protoOf(SocketClientJSAdapter$adapter$1).x3q = function (type, msg, callback) {
88184
88473
  var tmp;
@@ -88191,28 +88480,28 @@ function requireClientsdkClientcore_js () {
88191
88480
  tmp = fromMap(JSON, msg);
88192
88481
  }
88193
88482
  var tmp_0 = tmp;
88194
- this.g48_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
88483
+ this.j48_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
88195
88484
  };
88196
88485
  protoOf(SocketClientJSAdapter$adapter$1).y3q = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query) {
88197
- this.g48_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
88486
+ this.j48_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
88198
88487
  };
88199
88488
  protoOf(SocketClientJSAdapter$adapter$1).z3q = function () {
88200
- this.g48_1.disconnect();
88489
+ this.j48_1.disconnect();
88201
88490
  };
88202
88491
  protoOf(SocketClientJSAdapter$adapter$1).a3r = function (sessionId, token) {
88203
- this.g48_1.setConnectParamsSocketConfig(sessionId, token);
88492
+ this.j48_1.setConnectParamsSocketConfig(sessionId, token);
88204
88493
  };
88205
88494
  protoOf(SocketClientJSAdapter$adapter$1).b3r = function (sessionId) {
88206
- this.g48_1.setSocketSessionId(sessionId);
88495
+ this.j48_1.setSocketSessionId(sessionId);
88207
88496
  };
88208
88497
  protoOf(SocketClientJSAdapter$adapter$1).c3r = function (milliseconds, callback) {
88209
- this.g48_1.startVerifyResponseTimer(milliseconds, callback);
88498
+ this.j48_1.startVerifyResponseTimer(milliseconds, callback);
88210
88499
  };
88211
88500
  function SocketClientJSAdapter$1($adapter) {
88212
- this.h48_1 = $adapter;
88501
+ this.k48_1 = $adapter;
88213
88502
  }
88214
88503
  protoOf(SocketClientJSAdapter$1).didReceiveNewSocketEvent = function (body) {
88215
- var tmp0_safe_receiver = this.h48_1.f48_1;
88504
+ var tmp0_safe_receiver = this.k48_1.i48_1;
88216
88505
  if (tmp0_safe_receiver == null)
88217
88506
  null;
88218
88507
  else {
@@ -88245,7 +88534,7 @@ function requireClientsdkClientcore_js () {
88245
88534
  var tmp;
88246
88535
  switch (reason) {
88247
88536
  case 'NXMCORE_REASON_SERVER_DISCONNECTED':
88248
- var tmp1_safe_receiver_0 = this.h48_1.f48_1;
88537
+ var tmp1_safe_receiver_0 = this.k48_1.i48_1;
88249
88538
  var tmp_0;
88250
88539
  if (tmp1_safe_receiver_0 == null) {
88251
88540
  tmp_0 = null;
@@ -88257,7 +88546,7 @@ function requireClientsdkClientcore_js () {
88257
88546
  tmp = tmp_0;
88258
88547
  break;
88259
88548
  case 'NXMCORE_REASON_CLIENT_DISCONNECTED':
88260
- var tmp2_safe_receiver = this.h48_1.f48_1;
88549
+ var tmp2_safe_receiver = this.k48_1.i48_1;
88261
88550
  var tmp_1;
88262
88551
  if (tmp2_safe_receiver == null) {
88263
88552
  tmp_1 = null;
@@ -88269,7 +88558,7 @@ function requireClientsdkClientcore_js () {
88269
88558
  tmp = tmp_1;
88270
88559
  break;
88271
88560
  case 'NXMCORE_CLIENT_NETWORK_ERROR':
88272
- var tmp3_safe_receiver = this.h48_1.f48_1;
88561
+ var tmp3_safe_receiver = this.k48_1.i48_1;
88273
88562
  var tmp_2;
88274
88563
  if (tmp3_safe_receiver == null) {
88275
88564
  tmp_2 = null;
@@ -88281,7 +88570,7 @@ function requireClientsdkClientcore_js () {
88281
88570
  tmp = tmp_2;
88282
88571
  break;
88283
88572
  case 'NXMCORE_REASON_PING_TIMEOUT':
88284
- var tmp4_safe_receiver = this.h48_1.f48_1;
88573
+ var tmp4_safe_receiver = this.k48_1.i48_1;
88285
88574
  var tmp_3;
88286
88575
  if (tmp4_safe_receiver == null) {
88287
88576
  tmp_3 = null;
@@ -88293,7 +88582,7 @@ function requireClientsdkClientcore_js () {
88293
88582
  tmp = tmp_3;
88294
88583
  break;
88295
88584
  default:
88296
- var tmp5_safe_receiver = this.h48_1.f48_1;
88585
+ var tmp5_safe_receiver = this.k48_1.i48_1;
88297
88586
  var tmp_4;
88298
88587
  if (tmp5_safe_receiver == null) {
88299
88588
  tmp_4 = null;
@@ -88331,6 +88620,18 @@ function requireClientsdkClientcore_js () {
88331
88620
  return Unit_instance;
88332
88621
  };
88333
88622
  }
88623
+ function MediaClientJSAdapter$o$enableNoiseSuppression$lambda($closure) {
88624
+ return function (it) {
88625
+ $closure(it == null ? null : it.r44());
88626
+ return Unit_instance;
88627
+ };
88628
+ }
88629
+ function MediaClientJSAdapter$o$disableNoiseSuppression$lambda($closure) {
88630
+ return function (it) {
88631
+ $closure(it == null ? null : it.r44());
88632
+ return Unit_instance;
88633
+ };
88634
+ }
88334
88635
  function MediaClientJSAdapter$o$enableEarmuff$lambda($closure) {
88335
88636
  return function (it) {
88336
88637
  $closure(it == null ? null : it.r44());
@@ -88350,65 +88651,67 @@ function requireClientsdkClientcore_js () {
88350
88651
  };
88351
88652
  }
88352
88653
  function MediaClientJSAdapter$adapter$1($js) {
88353
- this.j48_1 = $js;
88354
- this.i48_1 = null;
88654
+ this.m48_1 = $js;
88655
+ this.l48_1 = null;
88355
88656
  }
88356
88657
  protoOf(MediaClientJSAdapter$adapter$1).d1j = function (_set____db54di) {
88357
- this.i48_1 = _set____db54di;
88658
+ this.l48_1 = _set____db54di;
88358
88659
  };
88359
88660
  protoOf(MediaClientJSAdapter$adapter$1).c1j = function () {
88360
- return this.i48_1;
88661
+ return this.l48_1;
88361
88662
  };
88362
88663
  protoOf(MediaClientJSAdapter$adapter$1).b1k = function (closure) {
88363
- this.j48_1.enableMediaOutbound(closure);
88664
+ this.m48_1.enableMediaOutbound(closure);
88364
88665
  };
88365
- protoOf(MediaClientJSAdapter$adapter$1).k48 = function (rtcId, offerSDP, closure) {
88366
- this.j48_1.enableMediaInbound(rtcId, offerSDP, closure);
88666
+ protoOf(MediaClientJSAdapter$adapter$1).n48 = function (rtcId, offerSDP, closure) {
88667
+ this.m48_1.enableMediaInbound(rtcId, offerSDP, closure);
88367
88668
  };
88368
88669
  protoOf(MediaClientJSAdapter$adapter$1).f3r = function (rtcId, offerSDP, closure) {
88369
- return this.k48(rtcId, offerSDP, closure);
88670
+ return this.n48(rtcId, offerSDP, closure);
88370
88671
  };
88371
88672
  protoOf(MediaClientJSAdapter$adapter$1).p1j = function (id, sdp, closure) {
88372
- this.j48_1.processAnswer(id, sdp, MediaClientJSAdapter$o$processAnswer$lambda(closure));
88673
+ this.m48_1.processAnswer(id, sdp, MediaClientJSAdapter$o$processAnswer$lambda(closure));
88373
88674
  };
88374
88675
  protoOf(MediaClientJSAdapter$adapter$1).a1k = function (id, closure) {
88375
- this.j48_1.disableMedia(id, MediaClientJSAdapter$o$disableMedia$lambda(closure));
88676
+ this.m48_1.disableMedia(id, MediaClientJSAdapter$o$disableMedia$lambda(closure));
88376
88677
  };
88377
88678
  protoOf(MediaClientJSAdapter$adapter$1).z1j = function (id, closure) {
88378
- this.j48_1.mute(id, MediaClientJSAdapter$o$mute$lambda(closure));
88679
+ this.m48_1.mute(id, MediaClientJSAdapter$o$mute$lambda(closure));
88379
88680
  };
88380
88681
  protoOf(MediaClientJSAdapter$adapter$1).x1j = function (id, closure) {
88381
- this.j48_1.unmute(id, MediaClientJSAdapter$o$unmute$lambda(closure));
88682
+ this.m48_1.unmute(id, MediaClientJSAdapter$o$unmute$lambda(closure));
88382
88683
  };
88383
88684
  protoOf(MediaClientJSAdapter$adapter$1).g3r = function (id, closure) {
88685
+ this.m48_1.enableNoiseSuppression(id, MediaClientJSAdapter$o$enableNoiseSuppression$lambda(closure));
88384
88686
  };
88385
88687
  protoOf(MediaClientJSAdapter$adapter$1).h3r = function (id, closure) {
88688
+ this.m48_1.disableNoiseSuppression(id, MediaClientJSAdapter$o$disableNoiseSuppression$lambda(closure));
88386
88689
  };
88387
88690
  protoOf(MediaClientJSAdapter$adapter$1).v1j = function (id, closure) {
88388
- this.j48_1.enableEarmuff(id, MediaClientJSAdapter$o$enableEarmuff$lambda(closure));
88691
+ this.m48_1.enableEarmuff(id, MediaClientJSAdapter$o$enableEarmuff$lambda(closure));
88389
88692
  };
88390
88693
  protoOf(MediaClientJSAdapter$adapter$1).t1j = function (id, closure) {
88391
- this.j48_1.disableEarmuff(id, MediaClientJSAdapter$o$disableEarmuff$lambda(closure));
88694
+ this.m48_1.disableEarmuff(id, MediaClientJSAdapter$o$disableEarmuff$lambda(closure));
88392
88695
  };
88393
88696
  protoOf(MediaClientJSAdapter$adapter$1).q1j = function (id, interval, closure) {
88394
- this.j48_1.enableRtcStatsCollection(id, interval, MediaClientJSAdapter$o$enableRtcStatsCollection$lambda(closure));
88697
+ this.m48_1.enableRtcStatsCollection(id, interval, MediaClientJSAdapter$o$enableRtcStatsCollection$lambda(closure));
88395
88698
  };
88396
88699
  protoOf(MediaClientJSAdapter$adapter$1).i3r = function (id) {
88397
- return coreConnectionState(this.j48_1.getMediaConnectionState(id));
88700
+ return coreConnectionState(this.m48_1.getMediaConnectionState(id));
88398
88701
  };
88399
88702
  function MediaClientJSAdapter$1($adapter) {
88400
- this.l48_1 = $adapter;
88703
+ this.o48_1 = $adapter;
88401
88704
  }
88402
88705
  protoOf(MediaClientJSAdapter$1).onRtcStats = function (id, rtcStats) {
88403
- var tmp0_safe_receiver = this.l48_1.i48_1;
88706
+ var tmp0_safe_receiver = this.o48_1.l48_1;
88404
88707
  if (tmp0_safe_receiver == null)
88405
88708
  null;
88406
88709
  else {
88407
- tmp0_safe_receiver.g1j(id, rtcStats.c48());
88710
+ tmp0_safe_receiver.g1j(id, rtcStats.f48());
88408
88711
  }
88409
88712
  };
88410
88713
  protoOf(MediaClientJSAdapter$1).onConnectionChange = function (id, state) {
88411
- var tmp0_safe_receiver = this.l48_1.i48_1;
88714
+ var tmp0_safe_receiver = this.o48_1.l48_1;
88412
88715
  if (tmp0_safe_receiver == null)
88413
88716
  null;
88414
88717
  else {
@@ -88416,7 +88719,7 @@ function requireClientsdkClientcore_js () {
88416
88719
  }
88417
88720
  };
88418
88721
  protoOf(MediaClientJSAdapter$1).onMediaError = function (id, error) {
88419
- var tmp0_safe_receiver = this.l48_1.i48_1;
88722
+ var tmp0_safe_receiver = this.o48_1.l48_1;
88420
88723
  if (tmp0_safe_receiver == null)
88421
88724
  null;
88422
88725
  else {
@@ -88835,10 +89138,10 @@ function requireClientsdkClientcore_js () {
88835
89138
  this.callId = callId;
88836
89139
  this.reconnectToken = reconnectToken;
88837
89140
  }
88838
- protoOf(EmergencyCallDataJS).m48 = function () {
89141
+ protoOf(EmergencyCallDataJS).p48 = function () {
88839
89142
  return this.callId;
88840
89143
  };
88841
- protoOf(EmergencyCallDataJS).n48 = function () {
89144
+ protoOf(EmergencyCallDataJS).q48 = function () {
88842
89145
  return this.reconnectToken;
88843
89146
  };
88844
89147
  protoOf(EmergencyCallDataJS).r8 = function () {
@@ -88847,13 +89150,13 @@ function requireClientsdkClientcore_js () {
88847
89150
  protoOf(EmergencyCallDataJS).s8 = function () {
88848
89151
  return this.reconnectToken;
88849
89152
  };
88850
- protoOf(EmergencyCallDataJS).x45 = function (callId, reconnectToken) {
89153
+ protoOf(EmergencyCallDataJS).a46 = function (callId, reconnectToken) {
88851
89154
  return new EmergencyCallDataJS(callId, reconnectToken);
88852
89155
  };
88853
89156
  protoOf(EmergencyCallDataJS).copy = function (callId, reconnectToken, $super) {
88854
89157
  callId = callId === VOID ? this.callId : callId;
88855
89158
  reconnectToken = reconnectToken === VOID ? this.reconnectToken : reconnectToken;
88856
- return this.x45(callId, reconnectToken);
89159
+ return this.a46(callId, reconnectToken);
88857
89160
  };
88858
89161
  protoOf(EmergencyCallDataJS).toString = function () {
88859
89162
  return 'EmergencyCallDataJS(callId=' + this.callId + ', reconnectToken=' + this.reconnectToken + ')';
@@ -89007,12 +89310,12 @@ function requireClientsdkClientcore_js () {
89007
89310
  protoOf(Some).r8 = function () {
89008
89311
  return this.value;
89009
89312
  };
89010
- protoOf(Some).o48 = function (value) {
89313
+ protoOf(Some).r48 = function (value) {
89011
89314
  return new Some(value);
89012
89315
  };
89013
89316
  protoOf(Some).copy = function (value, $super) {
89014
89317
  value = value === VOID ? this.value : value;
89015
- return this.o48(value);
89318
+ return this.r48(value);
89016
89319
  };
89017
89320
  protoOf(Some).toString = function () {
89018
89321
  return 'Some(value=' + toString_0(this.value) + ')';
@@ -89225,6 +89528,12 @@ function requireClientsdkClientcore_js () {
89225
89528
  protoOf(CombinedClientJS).unmute = unmute;
89226
89529
  protoOf(CombinedClientJS).enableEarmuff = enableEarmuff;
89227
89530
  protoOf(CombinedClientJS).disableEarmuff = disableEarmuff;
89531
+ protoOf(CombinedClientJS).enableNoiseSuppression = enableNoiseSuppression;
89532
+ protoOf(CombinedClientJS).disableNoiseSuppression = disableNoiseSuppression;
89533
+ protoOf(CombinedClientJS).enableAutoGainControl = enableAutoGainControl;
89534
+ protoOf(CombinedClientJS).disableAutoGainControl = disableAutoGainControl;
89535
+ protoOf(CombinedClientJS).enableEchoCancellation = enableEchoCancellation;
89536
+ protoOf(CombinedClientJS).disableEchoCancellation = disableEchoCancellation;
89228
89537
  protoOf(CombinedClientJS).sendDTMF = sendDTMF;
89229
89538
  protoOf(CombinedClientJS).emergencyCall = emergencyCall;
89230
89539
  protoOf(CombinedClientJS).reconnectEmergencyCall = reconnectEmergencyCall;
@@ -89248,41 +89557,50 @@ function requireClientsdkClientcore_js () {
89248
89557
  defineProp(protoOf(PresentingOrderJS), 'ordinal', protoOf(PresentingOrderJS).g2);
89249
89558
  defineProp(protoOf(OrderByJS), 'name', protoOf(OrderByJS).f2);
89250
89559
  defineProp(protoOf(OrderByJS), 'ordinal', protoOf(OrderByJS).g2);
89560
+ defineProp(protoOf(ProcessAnswerErrorJS), 'message', function () {
89561
+ return this.n8();
89562
+ });
89563
+ defineProp(protoOf(CreateAnswerErrorJS), 'message', function () {
89564
+ return this.n8();
89565
+ });
89566
+ defineProp(protoOf(CreateOfferErrorJS), 'message', function () {
89567
+ return this.n8();
89568
+ });
89251
89569
  defineProp(protoOf(CoreClientConfigRegionJS), 'name', protoOf(CoreClientConfigRegionJS).f2);
89252
89570
  defineProp(protoOf(CoreClientConfigRegionJS), 'ordinal', protoOf(CoreClientConfigRegionJS).g2);
89253
89571
  defineProp(protoOf(CoreClientConfigJS), 'apiUrl', function () {
89254
- return this.k45();
89572
+ return this.n45();
89255
89573
  }, function (value) {
89256
- this.j45(value);
89574
+ this.m45(value);
89257
89575
  });
89258
89576
  defineProp(protoOf(CoreClientConfigJS), 'websocketUrl', function () {
89259
- return this.m45();
89577
+ return this.p45();
89260
89578
  }, function (value) {
89261
- this.l45(value);
89579
+ this.o45(value);
89262
89580
  });
89263
89581
  defineProp(protoOf(CoreClientConfigJS), 'websocketPath', function () {
89264
- return this.o45();
89582
+ return this.r45();
89265
89583
  }, function (value) {
89266
- this.n45(value);
89584
+ this.q45(value);
89267
89585
  });
89268
89586
  defineProp(protoOf(CoreClientConfigJS), 'rtcStatsTelemetry', function () {
89269
- return this.q45();
89587
+ return this.t45();
89270
89588
  }, function (value) {
89271
- this.p45(value);
89589
+ this.s45(value);
89272
89590
  });
89273
89591
  defineProp(protoOf(CoreClientConfigJS), 'autoReconnectMedia', function () {
89274
- return this.s45();
89592
+ return this.v45();
89275
89593
  }, function (value) {
89276
- this.r45(value);
89594
+ this.u45(value);
89277
89595
  });
89278
89596
  defineProp(protoOf(CoreClientConfigJS), 'noiseSuppression', function () {
89279
- return this.t45();
89597
+ return this.w45();
89280
89598
  });
89281
89599
  defineProp(protoOf(CoreClientConfigJS), 'emergencyPrimaryRegion', function () {
89282
- return this.u45();
89600
+ return this.x45();
89283
89601
  });
89284
89602
  defineProp(protoOf(CoreClientConfigJS), 'emergencySecondaryRegion', function () {
89285
- return this.v45();
89603
+ return this.y45();
89286
89604
  });
89287
89605
  defineProp(protoOf(Topics), 'name', protoOf(Topics).f2);
89288
89606
  defineProp(protoOf(Topics), 'ordinal', protoOf(Topics).g2);
@@ -89303,7 +89621,7 @@ function requireClientsdkClientcore_js () {
89303
89621
  defineProp(protoOf(HttpClientErrorJS), 'cause', function () {
89304
89622
  return this.o8();
89305
89623
  });
89306
- defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).u46);
89624
+ defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).x46);
89307
89625
  protoOf(HttpClientJSAdapter$1).t3q = clear;
89308
89626
  //endregion
89309
89627
  //region block: init
@@ -89979,17 +90297,167 @@ class MediaClient {
89979
90297
  this.closePeerConnection(pc);
89980
90298
  closure(null);
89981
90299
  }
90300
+ enableNoiseSuppression(id, closure) {
90301
+ return __awaiter(this, void 0, void 0, function* () {
90302
+ try {
90303
+ yield this.setAudioConstraint(id, 'noiseSuppression', true);
90304
+ closure(null);
90305
+ }
90306
+ catch (_a) {
90307
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
90308
+ }
90309
+ });
90310
+ }
89982
90311
  disableNoiseSuppression(id, closure) {
89983
- console.log(id);
89984
- // TODO: Not yet implemented
89985
- closure(null);
90312
+ return __awaiter(this, void 0, void 0, function* () {
90313
+ try {
90314
+ yield this.setAudioConstraint(id, 'noiseSuppression', false);
90315
+ closure(null);
90316
+ }
90317
+ catch (_a) {
90318
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
90319
+ }
90320
+ });
89986
90321
  }
89987
- enableNoiseSuppression(id, closure) {
89988
- console.log(id);
89989
- // TODO: Not yet implemented
89990
- closure(null);
90322
+ enableAutoGainControl(id, closure) {
90323
+ return __awaiter(this, void 0, void 0, function* () {
90324
+ try {
90325
+ yield this.setAudioConstraint(id, 'autoGainControl', true);
90326
+ closure(null);
90327
+ }
90328
+ catch (_a) {
90329
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
90330
+ }
90331
+ });
90332
+ }
90333
+ disableAutoGainControl(id, closure) {
90334
+ return __awaiter(this, void 0, void 0, function* () {
90335
+ try {
90336
+ yield this.setAudioConstraint(id, 'autoGainControl', false);
90337
+ closure(null);
90338
+ }
90339
+ catch (_a) {
90340
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
90341
+ }
90342
+ });
90343
+ }
90344
+ enableEchoCancellation(id, closure) {
90345
+ return __awaiter(this, void 0, void 0, function* () {
90346
+ try {
90347
+ yield this.setAudioConstraint(id, 'echoCancellation', true);
90348
+ closure(null);
90349
+ }
90350
+ catch (_a) {
90351
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
90352
+ }
90353
+ });
90354
+ }
90355
+ disableEchoCancellation(id, closure) {
90356
+ return __awaiter(this, void 0, void 0, function* () {
90357
+ try {
90358
+ yield this.setAudioConstraint(id, 'echoCancellation', false);
90359
+ closure(null);
90360
+ }
90361
+ catch (_a) {
90362
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
90363
+ }
90364
+ });
89991
90365
  }
89992
90366
  // Private Methods
90367
+ /**
90368
+ * Sets an audio processing constraint on the active call's audio track.
90369
+ *
90370
+ * Strategy:
90371
+ * 1. Try {@link MediaStreamTrack.applyConstraints} with all three audio
90372
+ * processing flags on the existing track (in-place, no replacement).
90373
+ * 2. If the constraint didn't take effect, stop the old track to release
90374
+ * the browser's audio capture pipeline, then acquire a fresh track via
90375
+ * {@link MediaDevices.getUserMedia} using {@code exact} for every flag
90376
+ * and swap it onto the {@link RTCRtpSender} with
90377
+ * {@link RTCRtpSender.replaceTrack}.
90378
+ *
90379
+ * Stopping the old track before getUserMedia is critical: Chrome reuses the
90380
+ * active audio pipeline and silently ignores constraint changes otherwise.
90381
+ * Using {@code exact} for all three flags prevents the browser from treating
90382
+ * non-target constraints as {@code ideal} (preferences) and dropping them.
90383
+ */
90384
+ setAudioConstraint(id, constraintName, value) {
90385
+ var _a, _b, _c;
90386
+ return __awaiter(this, void 0, void 0, function* () {
90387
+ const pc = this.pcs.get(id);
90388
+ if (!pc) {
90389
+ throw new Error('Peer connection not found');
90390
+ }
90391
+ const sender = pc.getSenders().find((s) => { var _a; return ((_a = s.track) === null || _a === void 0 ? void 0 : _a.kind) === 'audio'; });
90392
+ if (!(sender === null || sender === void 0 ? void 0 : sender.track)) {
90393
+ throw new Error('Audio sender track not found');
90394
+ }
90395
+ const oldTrack = sender.track;
90396
+ const currentSettings = oldTrack.getSettings();
90397
+ const wasEnabled = oldTrack.enabled;
90398
+ // Build the full desired state: preserve non-target constraints, set target.
90399
+ const desired = {
90400
+ autoGainControl: (_a = currentSettings.autoGainControl) !== null && _a !== void 0 ? _a : true,
90401
+ echoCancellation: (_b = currentSettings.echoCancellation) !== null && _b !== void 0 ? _b : true,
90402
+ noiseSuppression: (_c = currentSettings.noiseSuppression) !== null && _c !== void 0 ? _c : true
90403
+ };
90404
+ desired[constraintName] = value;
90405
+ // Tier 1 – applyConstraints (in-place, no track replacement)
90406
+ try {
90407
+ yield oldTrack.applyConstraints({
90408
+ autoGainControl: desired.autoGainControl,
90409
+ echoCancellation: desired.echoCancellation,
90410
+ noiseSuppression: desired.noiseSuppression
90411
+ });
90412
+ const afterSettings = oldTrack.getSettings();
90413
+ if (afterSettings[constraintName] === value) {
90414
+ return;
90415
+ }
90416
+ }
90417
+ catch (_d) {
90418
+ // applyConstraints not supported or overconstrained – fall through
90419
+ }
90420
+ // Tier 2 – Stop old track → getUserMedia (exact) → replaceTrack
90421
+ // Stopping first forces the browser to create a fresh audio pipeline.
90422
+ oldTrack.stop();
90423
+ const exactConstraints = {
90424
+ autoGainControl: { exact: desired.autoGainControl },
90425
+ echoCancellation: { exact: desired.echoCancellation },
90426
+ noiseSuppression: { exact: desired.noiseSuppression }
90427
+ };
90428
+ if (currentSettings.deviceId) {
90429
+ exactConstraints.deviceId = { exact: currentSettings.deviceId };
90430
+ }
90431
+ let newStream;
90432
+ try {
90433
+ newStream = yield navigator.mediaDevices.getUserMedia({
90434
+ audio: exactConstraints,
90435
+ video: false
90436
+ });
90437
+ }
90438
+ catch (_e) {
90439
+ // Fallback: if exact constraints are overconstrained, use ideal values
90440
+ // so the call never loses audio.
90441
+ const idealConstraints = {
90442
+ autoGainControl: desired.autoGainControl,
90443
+ echoCancellation: desired.echoCancellation,
90444
+ noiseSuppression: desired.noiseSuppression
90445
+ };
90446
+ if (currentSettings.deviceId) {
90447
+ idealConstraints.deviceId = { exact: currentSettings.deviceId };
90448
+ }
90449
+ newStream = yield navigator.mediaDevices.getUserMedia({
90450
+ audio: idealConstraints,
90451
+ video: false
90452
+ });
90453
+ }
90454
+ const newTrack = newStream.getAudioTracks()[0];
90455
+ if (!newTrack)
90456
+ throw new Error('Failed to get new audio track');
90457
+ newTrack.enabled = wasEnabled;
90458
+ yield sender.replaceTrack(newTrack);
90459
+ });
90460
+ }
89993
90461
  closePeerConnection(pc) {
89994
90462
  var _a;
89995
90463
  this.removeAllPCListeners(pc);
@@ -90607,6 +91075,96 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
90607
91075
  getAudioOutputElement() {
90608
91076
  return super.getAudioOutputElement();
90609
91077
  }
91078
+ /**
91079
+ * Enable noise suppression on a call's audio track.
91080
+ *
91081
+ * @experimental
91082
+ * @group Voice
91083
+ * @param id - The Call Id
91084
+ */
91085
+ enableNoiseSuppression(id) {
91086
+ const _super = Object.create(null, {
91087
+ enableNoiseSuppression: { get: () => super.enableNoiseSuppression }
91088
+ });
91089
+ return __awaiter(this, void 0, void 0, function* () {
91090
+ return _super.enableNoiseSuppression.call(this, id);
91091
+ });
91092
+ }
91093
+ /**
91094
+ * Disable noise suppression on a call's audio track.
91095
+ *
91096
+ * @experimental
91097
+ * @group Voice
91098
+ * @param id - The Call Id
91099
+ */
91100
+ disableNoiseSuppression(id) {
91101
+ const _super = Object.create(null, {
91102
+ disableNoiseSuppression: { get: () => super.disableNoiseSuppression }
91103
+ });
91104
+ return __awaiter(this, void 0, void 0, function* () {
91105
+ return _super.disableNoiseSuppression.call(this, id);
91106
+ });
91107
+ }
91108
+ /**
91109
+ * Enable auto gain control on a call's audio track.
91110
+ *
91111
+ * @experimental
91112
+ * @group Voice
91113
+ * @param id - The Call Id
91114
+ */
91115
+ enableAutoGainControl(id) {
91116
+ const _super = Object.create(null, {
91117
+ enableAutoGainControl: { get: () => super.enableAutoGainControl }
91118
+ });
91119
+ return __awaiter(this, void 0, void 0, function* () {
91120
+ return _super.enableAutoGainControl.call(this, id);
91121
+ });
91122
+ }
91123
+ /**
91124
+ * Disable auto gain control on a call's audio track.
91125
+ *
91126
+ * @experimental
91127
+ * @group Voice
91128
+ * @param id - The Call Id
91129
+ */
91130
+ disableAutoGainControl(id) {
91131
+ const _super = Object.create(null, {
91132
+ disableAutoGainControl: { get: () => super.disableAutoGainControl }
91133
+ });
91134
+ return __awaiter(this, void 0, void 0, function* () {
91135
+ return _super.disableAutoGainControl.call(this, id);
91136
+ });
91137
+ }
91138
+ /**
91139
+ * Enable echo cancellation on a call's audio track.
91140
+ *
91141
+ * @experimental
91142
+ * @group Voice
91143
+ * @param id - The Call Id
91144
+ */
91145
+ enableEchoCancellation(id) {
91146
+ const _super = Object.create(null, {
91147
+ enableEchoCancellation: { get: () => super.enableEchoCancellation }
91148
+ });
91149
+ return __awaiter(this, void 0, void 0, function* () {
91150
+ return _super.enableEchoCancellation.call(this, id);
91151
+ });
91152
+ }
91153
+ /**
91154
+ * Disable echo cancellation on a call's audio track.
91155
+ *
91156
+ * @experimental
91157
+ * @group Voice
91158
+ * @param id - The Call Id
91159
+ */
91160
+ disableEchoCancellation(id) {
91161
+ const _super = Object.create(null, {
91162
+ disableEchoCancellation: { get: () => super.disableEchoCancellation }
91163
+ });
91164
+ return __awaiter(this, void 0, void 0, function* () {
91165
+ return _super.disableEchoCancellation.call(this, id);
91166
+ });
91167
+ }
90610
91168
  /**
90611
91169
  * Get the Leg for a call
90612
91170
  *