@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.
@@ -34503,13 +34503,6 @@ function requireClientsdkClientcore () {
34503
34503
  initMetadataForCompanion(Companion_149);
34504
34504
  initMetadataForObject($serializer_174, '$serializer', VOID, VOID, [GeneratedSerializer]);
34505
34505
  initMetadataForClass(SessionTerminatedEvent, 'SessionTerminatedEvent', VOID, VOID, [SocketEvent], VOID, VOID, {0: $serializer_getInstance_174});
34506
- function onRTCHangup(conversationId, legId, hangup) {
34507
- }
34508
- function onRTCTransfer(conversationId, legId) {
34509
- }
34510
- function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
34511
- }
34512
- initMetadataForInterface(RTCEventListener, 'RTCEventListener');
34513
34506
  function onAudioSay() {
34514
34507
  }
34515
34508
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -34522,7 +34515,14 @@ function requireClientsdkClientcore () {
34522
34515
  function onConversationEvent(event) {
34523
34516
  }
34524
34517
  initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
34525
- initMetadataForClass(ChatAPIImpl$1, VOID, VOID, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
34518
+ function onRTCHangup(conversationId, legId, hangup) {
34519
+ }
34520
+ function onRTCTransfer(conversationId, legId) {
34521
+ }
34522
+ function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
34523
+ }
34524
+ initMetadataForInterface(RTCEventListener, 'RTCEventListener');
34525
+ initMetadataForClass(ChatAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
34526
34526
  initMetadataForClass(ChatAPIImpl, 'ChatAPIImpl', VOID, VOID, [ChatAPI]);
34527
34527
  initMetadataForClass(LoggingLevel, 'LoggingLevel', VOID, Enum);
34528
34528
  initMetadataForObject(DefaultConfig, 'DefaultConfig');
@@ -34678,7 +34678,7 @@ function requireClientsdkClientcore () {
34678
34678
  initMetadataForClass(HangupReason, 'HangupReason', VOID, Enum);
34679
34679
  initMetadataForClass(LegStatus, 'LegStatus', VOID, Enum);
34680
34680
  initMetadataForClass(CallDisconnectReason, 'CallDisconnectReason', VOID, Enum);
34681
- initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
34681
+ initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
34682
34682
  initMetadataForClass(VoiceAPIImpl, 'VoiceAPIImpl');
34683
34683
  initMetadataForInterface(CallEvent, 'CallEvent');
34684
34684
  initMetadataForClass(SetupOutboundCall, 'SetupOutboundCall', VOID, VOID, [CallEvent]);
@@ -34897,7 +34897,7 @@ function requireClientsdkClientcore () {
34897
34897
  initMetadataForClass(runAfterDelay$1);
34898
34898
  //endregion
34899
34899
  function BuildKonfig() {
34900
- this.t1e_1 = '2.4.0-alpha.2';
34900
+ this.t1e_1 = '2.4.0-alpha.3';
34901
34901
  }
34902
34902
  var BuildKonfig_instance;
34903
34903
  function BuildKonfig_getInstance() {
@@ -81937,6 +81937,24 @@ function requireClientsdkClientcore_js () {
81937
81937
  function disableEarmuff(callId) {
81938
81938
  return new Promise(IVoiceClientJS$disableEarmuff$lambda(this, callId));
81939
81939
  }
81940
+ function enableNoiseSuppression(callId) {
81941
+ return new Promise(IVoiceClientJS$enableNoiseSuppression$lambda(this, callId));
81942
+ }
81943
+ function disableNoiseSuppression(callId) {
81944
+ return new Promise(IVoiceClientJS$disableNoiseSuppression$lambda(this, callId));
81945
+ }
81946
+ function enableAutoGainControl(callId) {
81947
+ return new Promise(IVoiceClientJS$enableAutoGainControl$lambda(this, callId));
81948
+ }
81949
+ function disableAutoGainControl(callId) {
81950
+ return new Promise(IVoiceClientJS$disableAutoGainControl$lambda(this, callId));
81951
+ }
81952
+ function enableEchoCancellation(callId) {
81953
+ return new Promise(IVoiceClientJS$enableEchoCancellation$lambda(this, callId));
81954
+ }
81955
+ function disableEchoCancellation(callId) {
81956
+ return new Promise(IVoiceClientJS$disableEchoCancellation$lambda(this, callId));
81957
+ }
81940
81958
  function sendDTMF(callId, digits) {
81941
81959
  return new Promise(IVoiceClientJS$sendDTMF$lambda(this, callId, digits));
81942
81960
  }
@@ -82036,7 +82054,7 @@ function requireClientsdkClientcore_js () {
82036
82054
  initMetadataForObject(SessionErrorCodesJS, 'SessionErrorCodesJS');
82037
82055
  initMetadataForClass(VonageErrorJS, 'VonageErrorJS', VOID, Error);
82038
82056
  initMetadataForObject(VonageErrorTypeJsObject, 'VonageErrorTypeJsObject');
82039
- initMetadataForClass(MediaClientErrorJS, 'MediaClientErrorJS');
82057
+ initMetadataForClass(MediaClientErrorJS, 'MediaClientErrorJS', VOID, Error);
82040
82058
  initMetadataForClass(PeerConnectionNotFoundJS, 'PeerConnectionNotFoundJS', VOID, MediaClientErrorJS);
82041
82059
  initMetadataForClass(TrackNotFoundJS, 'TrackNotFoundJS', VOID, MediaClientErrorJS);
82042
82060
  initMetadataForClass(ProcessAnswerErrorJS, 'ProcessAnswerErrorJS', VOID, MediaClientErrorJS);
@@ -84826,6 +84844,8 @@ function requireClientsdkClientcore_js () {
84826
84844
  return VonageErrorTypeJsObject_instance;
84827
84845
  }
84828
84846
  function MediaClientErrorJS() {
84847
+ extendThrowable(this);
84848
+ captureStack(this, MediaClientErrorJS);
84829
84849
  }
84830
84850
  protoOf(MediaClientErrorJS).r44 = function () {
84831
84851
  var tmp;
@@ -84854,20 +84874,21 @@ function requireClientsdkClientcore_js () {
84854
84874
  };
84855
84875
  function PeerConnectionNotFoundJS(legId) {
84856
84876
  MediaClientErrorJS.call(this);
84877
+ captureStack(this, PeerConnectionNotFoundJS);
84857
84878
  this.legId = legId;
84858
84879
  }
84859
- protoOf(PeerConnectionNotFoundJS).s44 = function () {
84880
+ protoOf(PeerConnectionNotFoundJS).t44 = function () {
84860
84881
  return this.legId;
84861
84882
  };
84862
84883
  protoOf(PeerConnectionNotFoundJS).r8 = function () {
84863
84884
  return this.legId;
84864
84885
  };
84865
- protoOf(PeerConnectionNotFoundJS).t44 = function (legId) {
84886
+ protoOf(PeerConnectionNotFoundJS).u44 = function (legId) {
84866
84887
  return new PeerConnectionNotFoundJS(legId);
84867
84888
  };
84868
84889
  protoOf(PeerConnectionNotFoundJS).copy = function (legId, $super) {
84869
84890
  legId = legId === VOID ? this.legId : legId;
84870
- return this.t44(legId);
84891
+ return this.u44(legId);
84871
84892
  };
84872
84893
  protoOf(PeerConnectionNotFoundJS).toString = function () {
84873
84894
  return 'PeerConnectionNotFoundJS(legId=' + this.legId + ')';
@@ -84887,20 +84908,21 @@ function requireClientsdkClientcore_js () {
84887
84908
  };
84888
84909
  function TrackNotFoundJS(legId) {
84889
84910
  MediaClientErrorJS.call(this);
84911
+ captureStack(this, TrackNotFoundJS);
84890
84912
  this.legId = legId;
84891
84913
  }
84892
- protoOf(TrackNotFoundJS).s44 = function () {
84914
+ protoOf(TrackNotFoundJS).t44 = function () {
84893
84915
  return this.legId;
84894
84916
  };
84895
84917
  protoOf(TrackNotFoundJS).r8 = function () {
84896
84918
  return this.legId;
84897
84919
  };
84898
- protoOf(TrackNotFoundJS).t44 = function (legId) {
84920
+ protoOf(TrackNotFoundJS).u44 = function (legId) {
84899
84921
  return new TrackNotFoundJS(legId);
84900
84922
  };
84901
84923
  protoOf(TrackNotFoundJS).copy = function (legId, $super) {
84902
84924
  legId = legId === VOID ? this.legId : legId;
84903
- return this.t44(legId);
84925
+ return this.u44(legId);
84904
84926
  };
84905
84927
  protoOf(TrackNotFoundJS).toString = function () {
84906
84928
  return 'TrackNotFoundJS(legId=' + this.legId + ')';
@@ -84921,35 +84943,36 @@ function requireClientsdkClientcore_js () {
84921
84943
  function ProcessAnswerErrorJS(legId, message) {
84922
84944
  message = message === VOID ? null : message;
84923
84945
  MediaClientErrorJS.call(this);
84946
+ captureStack(this, ProcessAnswerErrorJS);
84924
84947
  this.legId = legId;
84925
- this.message = message;
84948
+ this.s44_1 = message;
84926
84949
  }
84927
- protoOf(ProcessAnswerErrorJS).s44 = function () {
84950
+ protoOf(ProcessAnswerErrorJS).t44 = function () {
84928
84951
  return this.legId;
84929
84952
  };
84930
84953
  protoOf(ProcessAnswerErrorJS).n8 = function () {
84931
- return this.message;
84954
+ return this.s44_1;
84932
84955
  };
84933
84956
  protoOf(ProcessAnswerErrorJS).r8 = function () {
84934
84957
  return this.legId;
84935
84958
  };
84936
84959
  protoOf(ProcessAnswerErrorJS).s8 = function () {
84937
- return this.message;
84960
+ return this.s44_1;
84938
84961
  };
84939
- protoOf(ProcessAnswerErrorJS).u44 = function (legId, message) {
84962
+ protoOf(ProcessAnswerErrorJS).v44 = function (legId, message) {
84940
84963
  return new ProcessAnswerErrorJS(legId, message);
84941
84964
  };
84942
84965
  protoOf(ProcessAnswerErrorJS).copy = function (legId, message, $super) {
84943
84966
  legId = legId === VOID ? this.legId : legId;
84944
- message = message === VOID ? this.message : message;
84945
- return this.u44(legId, message);
84967
+ message = message === VOID ? this.s44_1 : message;
84968
+ return this.v44(legId, message);
84946
84969
  };
84947
84970
  protoOf(ProcessAnswerErrorJS).toString = function () {
84948
- return 'ProcessAnswerErrorJS(legId=' + this.legId + ', message=' + this.message + ')';
84971
+ return 'ProcessAnswerErrorJS(legId=' + this.legId + ', message=' + this.s44_1 + ')';
84949
84972
  };
84950
84973
  protoOf(ProcessAnswerErrorJS).hashCode = function () {
84951
84974
  var result = getStringHashCode(this.legId);
84952
- result = imul(result, 31) + (this.message == null ? 0 : getStringHashCode(this.message)) | 0;
84975
+ result = imul(result, 31) + (this.s44_1 == null ? 0 : getStringHashCode(this.s44_1)) | 0;
84953
84976
  return result;
84954
84977
  };
84955
84978
  protoOf(ProcessAnswerErrorJS).equals = function (other) {
@@ -84960,33 +84983,34 @@ function requireClientsdkClientcore_js () {
84960
84983
  var tmp0_other_with_cast = other instanceof ProcessAnswerErrorJS ? other : THROW_CCE();
84961
84984
  if (!(this.legId === tmp0_other_with_cast.legId))
84962
84985
  return false;
84963
- if (!(this.message == tmp0_other_with_cast.message))
84986
+ if (!(this.s44_1 == tmp0_other_with_cast.s44_1))
84964
84987
  return false;
84965
84988
  return true;
84966
84989
  };
84967
84990
  function CreateAnswerErrorJS(message) {
84968
84991
  message = message === VOID ? null : message;
84969
84992
  MediaClientErrorJS.call(this);
84970
- this.message = message;
84993
+ captureStack(this, CreateAnswerErrorJS);
84994
+ this.w44_1 = message;
84971
84995
  }
84972
84996
  protoOf(CreateAnswerErrorJS).n8 = function () {
84973
- return this.message;
84997
+ return this.w44_1;
84974
84998
  };
84975
84999
  protoOf(CreateAnswerErrorJS).r8 = function () {
84976
- return this.message;
85000
+ return this.w44_1;
84977
85001
  };
84978
- protoOf(CreateAnswerErrorJS).v44 = function (message) {
85002
+ protoOf(CreateAnswerErrorJS).x44 = function (message) {
84979
85003
  return new CreateAnswerErrorJS(message);
84980
85004
  };
84981
85005
  protoOf(CreateAnswerErrorJS).copy = function (message, $super) {
84982
- message = message === VOID ? this.message : message;
84983
- return this.v44(message);
85006
+ message = message === VOID ? this.w44_1 : message;
85007
+ return this.x44(message);
84984
85008
  };
84985
85009
  protoOf(CreateAnswerErrorJS).toString = function () {
84986
- return 'CreateAnswerErrorJS(message=' + this.message + ')';
85010
+ return 'CreateAnswerErrorJS(message=' + this.w44_1 + ')';
84987
85011
  };
84988
85012
  protoOf(CreateAnswerErrorJS).hashCode = function () {
84989
- return this.message == null ? 0 : getStringHashCode(this.message);
85013
+ return this.w44_1 == null ? 0 : getStringHashCode(this.w44_1);
84990
85014
  };
84991
85015
  protoOf(CreateAnswerErrorJS).equals = function (other) {
84992
85016
  if (this === other)
@@ -84994,33 +85018,34 @@ function requireClientsdkClientcore_js () {
84994
85018
  if (!(other instanceof CreateAnswerErrorJS))
84995
85019
  return false;
84996
85020
  var tmp0_other_with_cast = other instanceof CreateAnswerErrorJS ? other : THROW_CCE();
84997
- if (!(this.message == tmp0_other_with_cast.message))
85021
+ if (!(this.w44_1 == tmp0_other_with_cast.w44_1))
84998
85022
  return false;
84999
85023
  return true;
85000
85024
  };
85001
85025
  function CreateOfferErrorJS(message) {
85002
85026
  message = message === VOID ? null : message;
85003
85027
  MediaClientErrorJS.call(this);
85004
- this.message = message;
85028
+ captureStack(this, CreateOfferErrorJS);
85029
+ this.y44_1 = message;
85005
85030
  }
85006
85031
  protoOf(CreateOfferErrorJS).n8 = function () {
85007
- return this.message;
85032
+ return this.y44_1;
85008
85033
  };
85009
85034
  protoOf(CreateOfferErrorJS).r8 = function () {
85010
- return this.message;
85035
+ return this.y44_1;
85011
85036
  };
85012
- protoOf(CreateOfferErrorJS).v44 = function (message) {
85037
+ protoOf(CreateOfferErrorJS).x44 = function (message) {
85013
85038
  return new CreateOfferErrorJS(message);
85014
85039
  };
85015
85040
  protoOf(CreateOfferErrorJS).copy = function (message, $super) {
85016
- message = message === VOID ? this.message : message;
85017
- return this.v44(message);
85041
+ message = message === VOID ? this.y44_1 : message;
85042
+ return this.x44(message);
85018
85043
  };
85019
85044
  protoOf(CreateOfferErrorJS).toString = function () {
85020
- return 'CreateOfferErrorJS(message=' + this.message + ')';
85045
+ return 'CreateOfferErrorJS(message=' + this.y44_1 + ')';
85021
85046
  };
85022
85047
  protoOf(CreateOfferErrorJS).hashCode = function () {
85023
- return this.message == null ? 0 : getStringHashCode(this.message);
85048
+ return this.y44_1 == null ? 0 : getStringHashCode(this.y44_1);
85024
85049
  };
85025
85050
  protoOf(CreateOfferErrorJS).equals = function (other) {
85026
85051
  if (this === other)
@@ -85028,7 +85053,7 @@ function requireClientsdkClientcore_js () {
85028
85053
  if (!(other instanceof CreateOfferErrorJS))
85029
85054
  return false;
85030
85055
  var tmp0_other_with_cast = other instanceof CreateOfferErrorJS ? other : THROW_CCE();
85031
- if (!(this.message == tmp0_other_with_cast.message))
85056
+ if (!(this.y44_1 == tmp0_other_with_cast.y44_1))
85032
85057
  return false;
85033
85058
  return true;
85034
85059
  };
@@ -86136,66 +86161,66 @@ function requireClientsdkClientcore_js () {
86136
86161
  this.coreRegion = coreRegion;
86137
86162
  this.emergencyRegion = emergencyRegion;
86138
86163
  }
86139
- protoOf(CoreClientConfigRegionJS).y44 = function () {
86164
+ protoOf(CoreClientConfigRegionJS).b45 = function () {
86140
86165
  return this.coreRegion;
86141
86166
  };
86142
- protoOf(CoreClientConfigRegionJS).z44 = function () {
86167
+ protoOf(CoreClientConfigRegionJS).c45 = function () {
86143
86168
  return this.emergencyRegion;
86144
86169
  };
86145
86170
  function CoreClientConfigJS(region) {
86146
86171
  region = region === VOID ? get_DEFAULT_REGION() : region;
86147
86172
  this.region = region;
86148
- this.a45_1 = this.region.coreRegion.j37_1;
86149
- this.b45_1 = this.region.coreRegion.k37_1;
86150
- this.c45_1 = '/v2/rtc';
86151
- this.d45_1 = true;
86152
- this.e45_1 = false;
86153
- this.f45_1 = false;
86154
- this.g45_1 = this.region.emergencyRegion.j1h_1;
86155
- this.h45_1 = this.region.emergencyRegion.k1h_1;
86156
- }
86157
- protoOf(CoreClientConfigJS).i45 = function () {
86173
+ this.d45_1 = this.region.coreRegion.j37_1;
86174
+ this.e45_1 = this.region.coreRegion.k37_1;
86175
+ this.f45_1 = '/v2/rtc';
86176
+ this.g45_1 = true;
86177
+ this.h45_1 = false;
86178
+ this.i45_1 = false;
86179
+ this.j45_1 = this.region.emergencyRegion.j1h_1;
86180
+ this.k45_1 = this.region.emergencyRegion.k1h_1;
86181
+ }
86182
+ protoOf(CoreClientConfigJS).l45 = function () {
86158
86183
  return this.region;
86159
86184
  };
86160
- protoOf(CoreClientConfigJS).j45 = function (_set____db54di) {
86161
- this.a45_1 = _set____db54di;
86162
- };
86163
- protoOf(CoreClientConfigJS).k45 = function () {
86164
- return this.a45_1;
86165
- };
86166
- protoOf(CoreClientConfigJS).l45 = function (_set____db54di) {
86167
- this.b45_1 = _set____db54di;
86168
- };
86169
- protoOf(CoreClientConfigJS).m45 = function () {
86170
- return this.b45_1;
86171
- };
86172
- protoOf(CoreClientConfigJS).n45 = function (_set____db54di) {
86173
- this.c45_1 = _set____db54di;
86174
- };
86175
- protoOf(CoreClientConfigJS).o45 = function () {
86176
- return this.c45_1;
86177
- };
86178
- protoOf(CoreClientConfigJS).p45 = function (_set____db54di) {
86185
+ protoOf(CoreClientConfigJS).m45 = function (_set____db54di) {
86179
86186
  this.d45_1 = _set____db54di;
86180
86187
  };
86181
- protoOf(CoreClientConfigJS).q45 = function () {
86188
+ protoOf(CoreClientConfigJS).n45 = function () {
86182
86189
  return this.d45_1;
86183
86190
  };
86184
- protoOf(CoreClientConfigJS).r45 = function (_set____db54di) {
86191
+ protoOf(CoreClientConfigJS).o45 = function (_set____db54di) {
86185
86192
  this.e45_1 = _set____db54di;
86186
86193
  };
86187
- protoOf(CoreClientConfigJS).s45 = function () {
86194
+ protoOf(CoreClientConfigJS).p45 = function () {
86188
86195
  return this.e45_1;
86189
86196
  };
86190
- protoOf(CoreClientConfigJS).t45 = function () {
86197
+ protoOf(CoreClientConfigJS).q45 = function (_set____db54di) {
86198
+ this.f45_1 = _set____db54di;
86199
+ };
86200
+ protoOf(CoreClientConfigJS).r45 = function () {
86191
86201
  return this.f45_1;
86192
86202
  };
86193
- protoOf(CoreClientConfigJS).u45 = function () {
86203
+ protoOf(CoreClientConfigJS).s45 = function (_set____db54di) {
86204
+ this.g45_1 = _set____db54di;
86205
+ };
86206
+ protoOf(CoreClientConfigJS).t45 = function () {
86194
86207
  return this.g45_1;
86195
86208
  };
86209
+ protoOf(CoreClientConfigJS).u45 = function (_set____db54di) {
86210
+ this.h45_1 = _set____db54di;
86211
+ };
86196
86212
  protoOf(CoreClientConfigJS).v45 = function () {
86197
86213
  return this.h45_1;
86198
86214
  };
86215
+ protoOf(CoreClientConfigJS).w45 = function () {
86216
+ return this.i45_1;
86217
+ };
86218
+ protoOf(CoreClientConfigJS).x45 = function () {
86219
+ return this.j45_1;
86220
+ };
86221
+ protoOf(CoreClientConfigJS).y45 = function () {
86222
+ return this.k45_1;
86223
+ };
86199
86224
  function TopicJS(name, tag) {
86200
86225
  this.name = name;
86201
86226
  this.tag = tag;
@@ -86203,7 +86228,7 @@ function requireClientsdkClientcore_js () {
86203
86228
  protoOf(TopicJS).f2 = function () {
86204
86229
  return this.name;
86205
86230
  };
86206
- protoOf(TopicJS).w45 = function () {
86231
+ protoOf(TopicJS).z45 = function () {
86207
86232
  return this.tag;
86208
86233
  };
86209
86234
  protoOf(TopicJS).r8 = function () {
@@ -86212,13 +86237,13 @@ function requireClientsdkClientcore_js () {
86212
86237
  protoOf(TopicJS).s8 = function () {
86213
86238
  return this.tag;
86214
86239
  };
86215
- protoOf(TopicJS).x45 = function (name, tag) {
86240
+ protoOf(TopicJS).a46 = function (name, tag) {
86216
86241
  return new TopicJS(name, tag);
86217
86242
  };
86218
86243
  protoOf(TopicJS).copy = function (name, tag, $super) {
86219
86244
  name = name === VOID ? this.name : name;
86220
86245
  tag = tag === VOID ? this.tag : tag;
86221
- return this.x45(name, tag);
86246
+ return this.a46(name, tag);
86222
86247
  };
86223
86248
  protoOf(TopicJS).toString = function () {
86224
86249
  return 'TopicJS(name=' + this.name + ', tag=' + this.tag + ')';
@@ -86359,10 +86384,10 @@ function requireClientsdkClientcore_js () {
86359
86384
  protoOf(SessionErrorReasonJsObject).c44 = function () {
86360
86385
  return this.EXPIRED_TOKEN;
86361
86386
  };
86362
- protoOf(SessionErrorReasonJsObject).c46 = function () {
86387
+ protoOf(SessionErrorReasonJsObject).f46 = function () {
86363
86388
  return this.TRANSPORT_CLOSED;
86364
86389
  };
86365
- protoOf(SessionErrorReasonJsObject).d46 = function () {
86390
+ protoOf(SessionErrorReasonJsObject).g46 = function () {
86366
86391
  return this.PING_TIMEOUT;
86367
86392
  };
86368
86393
  protoOf(SessionErrorReasonJsObject).toString = function () {
@@ -86801,22 +86826,22 @@ function requireClientsdkClientcore_js () {
86801
86826
  return _this__u8e3s4 == null ? null : equals(_this__u8e3s4, undefined) ? null : _this__u8e3s4;
86802
86827
  }
86803
86828
  function createVonageLoggerJS$1($name, $minLogLevel, $topics, $onLog) {
86804
- this.h46_1 = $onLog;
86805
- this.e46_1 = $name;
86806
- this.f46_1 = $minLogLevel;
86807
- this.g46_1 = $topics;
86829
+ this.k46_1 = $onLog;
86830
+ this.h46_1 = $name;
86831
+ this.i46_1 = $minLogLevel;
86832
+ this.j46_1 = $topics;
86808
86833
  }
86809
86834
  protoOf(createVonageLoggerJS$1).f2 = function () {
86810
- return this.e46_1;
86835
+ return this.h46_1;
86811
86836
  };
86812
86837
  protoOf(createVonageLoggerJS$1).h3p = function () {
86813
- return this.f46_1;
86838
+ return this.i46_1;
86814
86839
  };
86815
86840
  protoOf(createVonageLoggerJS$1).z3o = function () {
86816
- return this.g46_1;
86841
+ return this.j46_1;
86817
86842
  };
86818
86843
  protoOf(createVonageLoggerJS$1).onLog = function (logLevel, topic, message) {
86819
- this.h46_1(logLevel, topic, message);
86844
+ this.k46_1(logLevel, topic, message);
86820
86845
  };
86821
86846
  function vonageLogger$lambda($logger) {
86822
86847
  return function (logLevel, topic, message, _anonymous_parameter_3__qggqen) {
@@ -86905,13 +86930,13 @@ function requireClientsdkClientcore_js () {
86905
86930
  this.ANSWERED = 'ANSWERED';
86906
86931
  this.COMPLETED = 'COMPLETED';
86907
86932
  }
86908
- protoOf(LegStatusJSObject).i46 = function () {
86933
+ protoOf(LegStatusJSObject).l46 = function () {
86909
86934
  return this.RINGING;
86910
86935
  };
86911
- protoOf(LegStatusJSObject).j46 = function () {
86936
+ protoOf(LegStatusJSObject).m46 = function () {
86912
86937
  return this.ANSWERED;
86913
86938
  };
86914
- protoOf(LegStatusJSObject).k46 = function () {
86939
+ protoOf(LegStatusJSObject).n46 = function () {
86915
86940
  return this.COMPLETED;
86916
86941
  };
86917
86942
  protoOf(LegStatusJSObject).toString = function () {
@@ -86935,7 +86960,7 @@ function requireClientsdkClientcore_js () {
86935
86960
  function CallDisconnectReasonJSObject() {
86936
86961
  this.NetworkChange = 'networkChange';
86937
86962
  }
86938
- protoOf(CallDisconnectReasonJSObject).l46 = function () {
86963
+ protoOf(CallDisconnectReasonJSObject).o46 = function () {
86939
86964
  return this.NetworkChange;
86940
86965
  };
86941
86966
  protoOf(CallDisconnectReasonJSObject).toString = function () {
@@ -86963,19 +86988,19 @@ function requireClientsdkClientcore_js () {
86963
86988
  this.LOCAL_HANGUP = 'LOCAL_HANGUP';
86964
86989
  this.MEDIA_TIMEOUT = 'MEDIA_TIMEOUT';
86965
86990
  }
86966
- protoOf(HangupReasonJSObject).m46 = function () {
86991
+ protoOf(HangupReasonJSObject).p46 = function () {
86967
86992
  return this.REMOTE_HANGUP;
86968
86993
  };
86969
- protoOf(HangupReasonJSObject).n46 = function () {
86994
+ protoOf(HangupReasonJSObject).q46 = function () {
86970
86995
  return this.REMOTE_REJECT;
86971
86996
  };
86972
- protoOf(HangupReasonJSObject).o46 = function () {
86997
+ protoOf(HangupReasonJSObject).r46 = function () {
86973
86998
  return this.REMOTE_NO_ANSWER_TIMEOUT;
86974
86999
  };
86975
- protoOf(HangupReasonJSObject).p46 = function () {
87000
+ protoOf(HangupReasonJSObject).s46 = function () {
86976
87001
  return this.LOCAL_HANGUP;
86977
87002
  };
86978
- protoOf(HangupReasonJSObject).q46 = function () {
87003
+ protoOf(HangupReasonJSObject).t46 = function () {
86979
87004
  return this.MEDIA_TIMEOUT;
86980
87005
  };
86981
87006
  protoOf(HangupReasonJSObject).toString = function () {
@@ -87537,6 +87562,270 @@ function requireClientsdkClientcore_js () {
87537
87562
  return Unit_instance;
87538
87563
  };
87539
87564
  }
87565
+ function IVoiceClientJS$enableNoiseSuppression$lambda$lambda($reject, $resolve) {
87566
+ return function (err) {
87567
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
87568
+ var tmp;
87569
+ if (tmp0_safe_receiver == null) {
87570
+ tmp = null;
87571
+ } else {
87572
+ // Inline function 'kotlin.let' call
87573
+ // Inline function 'kotlin.contracts.contract' call
87574
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
87575
+ tmp = Unit_instance;
87576
+ }
87577
+ var tmp2_elvis_lhs = tmp;
87578
+ var tmp_0;
87579
+ if (tmp2_elvis_lhs == null) {
87580
+ var tmp_1;
87581
+ if (err == null) {
87582
+ tmp_1 = null;
87583
+ } else {
87584
+ // Inline function 'kotlin.let' call
87585
+ // Inline function 'kotlin.contracts.contract' call
87586
+ $reject(err);
87587
+ tmp_1 = Unit_instance;
87588
+ }
87589
+ tmp_0 = tmp_1;
87590
+ } else {
87591
+ tmp_0 = tmp2_elvis_lhs;
87592
+ }
87593
+ var tmp_2;
87594
+ if (tmp_0 == null) {
87595
+ tmp_2 = $resolve(null);
87596
+ } else {
87597
+ tmp_2 = Unit_instance;
87598
+ }
87599
+ return Unit_instance;
87600
+ };
87601
+ }
87602
+ function IVoiceClientJS$enableNoiseSuppression$lambda(this$0, $callId) {
87603
+ return function (resolve, reject) {
87604
+ var tmp = this$0.media;
87605
+ tmp.enableNoiseSuppression($callId, IVoiceClientJS$enableNoiseSuppression$lambda$lambda(reject, resolve));
87606
+ return Unit_instance;
87607
+ };
87608
+ }
87609
+ function IVoiceClientJS$disableNoiseSuppression$lambda$lambda($reject, $resolve) {
87610
+ return function (err) {
87611
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
87612
+ var tmp;
87613
+ if (tmp0_safe_receiver == null) {
87614
+ tmp = null;
87615
+ } else {
87616
+ // Inline function 'kotlin.let' call
87617
+ // Inline function 'kotlin.contracts.contract' call
87618
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
87619
+ tmp = Unit_instance;
87620
+ }
87621
+ var tmp2_elvis_lhs = tmp;
87622
+ var tmp_0;
87623
+ if (tmp2_elvis_lhs == null) {
87624
+ var tmp_1;
87625
+ if (err == null) {
87626
+ tmp_1 = null;
87627
+ } else {
87628
+ // Inline function 'kotlin.let' call
87629
+ // Inline function 'kotlin.contracts.contract' call
87630
+ $reject(err);
87631
+ tmp_1 = Unit_instance;
87632
+ }
87633
+ tmp_0 = tmp_1;
87634
+ } else {
87635
+ tmp_0 = tmp2_elvis_lhs;
87636
+ }
87637
+ var tmp_2;
87638
+ if (tmp_0 == null) {
87639
+ tmp_2 = $resolve(null);
87640
+ } else {
87641
+ tmp_2 = Unit_instance;
87642
+ }
87643
+ return Unit_instance;
87644
+ };
87645
+ }
87646
+ function IVoiceClientJS$disableNoiseSuppression$lambda(this$0, $callId) {
87647
+ return function (resolve, reject) {
87648
+ var tmp = this$0.media;
87649
+ tmp.disableNoiseSuppression($callId, IVoiceClientJS$disableNoiseSuppression$lambda$lambda(reject, resolve));
87650
+ return Unit_instance;
87651
+ };
87652
+ }
87653
+ function IVoiceClientJS$enableAutoGainControl$lambda$lambda($reject, $resolve) {
87654
+ return function (err) {
87655
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
87656
+ var tmp;
87657
+ if (tmp0_safe_receiver == null) {
87658
+ tmp = null;
87659
+ } else {
87660
+ // Inline function 'kotlin.let' call
87661
+ // Inline function 'kotlin.contracts.contract' call
87662
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
87663
+ tmp = Unit_instance;
87664
+ }
87665
+ var tmp2_elvis_lhs = tmp;
87666
+ var tmp_0;
87667
+ if (tmp2_elvis_lhs == null) {
87668
+ var tmp_1;
87669
+ if (err == null) {
87670
+ tmp_1 = null;
87671
+ } else {
87672
+ // Inline function 'kotlin.let' call
87673
+ // Inline function 'kotlin.contracts.contract' call
87674
+ $reject(err);
87675
+ tmp_1 = Unit_instance;
87676
+ }
87677
+ tmp_0 = tmp_1;
87678
+ } else {
87679
+ tmp_0 = tmp2_elvis_lhs;
87680
+ }
87681
+ var tmp_2;
87682
+ if (tmp_0 == null) {
87683
+ tmp_2 = $resolve(null);
87684
+ } else {
87685
+ tmp_2 = Unit_instance;
87686
+ }
87687
+ return Unit_instance;
87688
+ };
87689
+ }
87690
+ function IVoiceClientJS$enableAutoGainControl$lambda(this$0, $callId) {
87691
+ return function (resolve, reject) {
87692
+ var tmp = this$0.media;
87693
+ tmp.enableAutoGainControl($callId, IVoiceClientJS$enableAutoGainControl$lambda$lambda(reject, resolve));
87694
+ return Unit_instance;
87695
+ };
87696
+ }
87697
+ function IVoiceClientJS$disableAutoGainControl$lambda$lambda($reject, $resolve) {
87698
+ return function (err) {
87699
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
87700
+ var tmp;
87701
+ if (tmp0_safe_receiver == null) {
87702
+ tmp = null;
87703
+ } else {
87704
+ // Inline function 'kotlin.let' call
87705
+ // Inline function 'kotlin.contracts.contract' call
87706
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
87707
+ tmp = Unit_instance;
87708
+ }
87709
+ var tmp2_elvis_lhs = tmp;
87710
+ var tmp_0;
87711
+ if (tmp2_elvis_lhs == null) {
87712
+ var tmp_1;
87713
+ if (err == null) {
87714
+ tmp_1 = null;
87715
+ } else {
87716
+ // Inline function 'kotlin.let' call
87717
+ // Inline function 'kotlin.contracts.contract' call
87718
+ $reject(err);
87719
+ tmp_1 = Unit_instance;
87720
+ }
87721
+ tmp_0 = tmp_1;
87722
+ } else {
87723
+ tmp_0 = tmp2_elvis_lhs;
87724
+ }
87725
+ var tmp_2;
87726
+ if (tmp_0 == null) {
87727
+ tmp_2 = $resolve(null);
87728
+ } else {
87729
+ tmp_2 = Unit_instance;
87730
+ }
87731
+ return Unit_instance;
87732
+ };
87733
+ }
87734
+ function IVoiceClientJS$disableAutoGainControl$lambda(this$0, $callId) {
87735
+ return function (resolve, reject) {
87736
+ var tmp = this$0.media;
87737
+ tmp.disableAutoGainControl($callId, IVoiceClientJS$disableAutoGainControl$lambda$lambda(reject, resolve));
87738
+ return Unit_instance;
87739
+ };
87740
+ }
87741
+ function IVoiceClientJS$enableEchoCancellation$lambda$lambda($reject, $resolve) {
87742
+ return function (err) {
87743
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
87744
+ var tmp;
87745
+ if (tmp0_safe_receiver == null) {
87746
+ tmp = null;
87747
+ } else {
87748
+ // Inline function 'kotlin.let' call
87749
+ // Inline function 'kotlin.contracts.contract' call
87750
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
87751
+ tmp = Unit_instance;
87752
+ }
87753
+ var tmp2_elvis_lhs = tmp;
87754
+ var tmp_0;
87755
+ if (tmp2_elvis_lhs == null) {
87756
+ var tmp_1;
87757
+ if (err == null) {
87758
+ tmp_1 = null;
87759
+ } else {
87760
+ // Inline function 'kotlin.let' call
87761
+ // Inline function 'kotlin.contracts.contract' call
87762
+ $reject(err);
87763
+ tmp_1 = Unit_instance;
87764
+ }
87765
+ tmp_0 = tmp_1;
87766
+ } else {
87767
+ tmp_0 = tmp2_elvis_lhs;
87768
+ }
87769
+ var tmp_2;
87770
+ if (tmp_0 == null) {
87771
+ tmp_2 = $resolve(null);
87772
+ } else {
87773
+ tmp_2 = Unit_instance;
87774
+ }
87775
+ return Unit_instance;
87776
+ };
87777
+ }
87778
+ function IVoiceClientJS$enableEchoCancellation$lambda(this$0, $callId) {
87779
+ return function (resolve, reject) {
87780
+ var tmp = this$0.media;
87781
+ tmp.enableEchoCancellation($callId, IVoiceClientJS$enableEchoCancellation$lambda$lambda(reject, resolve));
87782
+ return Unit_instance;
87783
+ };
87784
+ }
87785
+ function IVoiceClientJS$disableEchoCancellation$lambda$lambda($reject, $resolve) {
87786
+ return function (err) {
87787
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
87788
+ var tmp;
87789
+ if (tmp0_safe_receiver == null) {
87790
+ tmp = null;
87791
+ } else {
87792
+ // Inline function 'kotlin.let' call
87793
+ // Inline function 'kotlin.contracts.contract' call
87794
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
87795
+ tmp = Unit_instance;
87796
+ }
87797
+ var tmp2_elvis_lhs = tmp;
87798
+ var tmp_0;
87799
+ if (tmp2_elvis_lhs == null) {
87800
+ var tmp_1;
87801
+ if (err == null) {
87802
+ tmp_1 = null;
87803
+ } else {
87804
+ // Inline function 'kotlin.let' call
87805
+ // Inline function 'kotlin.contracts.contract' call
87806
+ $reject(err);
87807
+ tmp_1 = Unit_instance;
87808
+ }
87809
+ tmp_0 = tmp_1;
87810
+ } else {
87811
+ tmp_0 = tmp2_elvis_lhs;
87812
+ }
87813
+ var tmp_2;
87814
+ if (tmp_0 == null) {
87815
+ tmp_2 = $resolve(null);
87816
+ } else {
87817
+ tmp_2 = Unit_instance;
87818
+ }
87819
+ return Unit_instance;
87820
+ };
87821
+ }
87822
+ function IVoiceClientJS$disableEchoCancellation$lambda(this$0, $callId) {
87823
+ return function (resolve, reject) {
87824
+ var tmp = this$0.media;
87825
+ tmp.disableEchoCancellation($callId, IVoiceClientJS$disableEchoCancellation$lambda$lambda(reject, resolve));
87826
+ return Unit_instance;
87827
+ };
87828
+ }
87540
87829
  function IVoiceClientJS$sendDTMF$lambda$lambda($reject, $resolve) {
87541
87830
  return function (err) {
87542
87831
  var tmp0_safe_receiver = err instanceof VonageError ? err : null;
@@ -87599,13 +87888,13 @@ function requireClientsdkClientcore_js () {
87599
87888
  protoOf(VoiceInviteFromInfoJS).s8 = function () {
87600
87889
  return this.type;
87601
87890
  };
87602
- protoOf(VoiceInviteFromInfoJS).r46 = function (id, type) {
87891
+ protoOf(VoiceInviteFromInfoJS).u46 = function (id, type) {
87603
87892
  return new VoiceInviteFromInfoJS(id, type);
87604
87893
  };
87605
87894
  protoOf(VoiceInviteFromInfoJS).copy = function (id, type, $super) {
87606
87895
  id = id === VOID ? this.id : id;
87607
87896
  type = type === VOID ? this.type : type;
87608
- return this.r46(id, type);
87897
+ return this.u46(id, type);
87609
87898
  };
87610
87899
  protoOf(VoiceInviteFromInfoJS).toString = function () {
87611
87900
  return 'VoiceInviteFromInfoJS(id=' + this.id + ', type=' + this.type + ')';
@@ -87683,41 +87972,41 @@ function requireClientsdkClientcore_js () {
87683
87972
  cause = cause === VOID ? null : cause;
87684
87973
  extendThrowable(this);
87685
87974
  captureStack(this, HttpClientErrorJS);
87686
- this.s46_1 = message;
87687
- this.t46_1 = cause;
87975
+ this.v46_1 = message;
87976
+ this.w46_1 = cause;
87688
87977
  }
87689
87978
  protoOf(HttpClientErrorJS).n8 = function () {
87690
- return this.s46_1;
87979
+ return this.v46_1;
87691
87980
  };
87692
87981
  protoOf(HttpClientErrorJS).o8 = function () {
87693
- return this.t46_1;
87982
+ return this.w46_1;
87694
87983
  };
87695
- protoOf(HttpClientErrorJS).u46 = function () {
87696
- var tmp0_elvis_lhs = this.s46_1;
87984
+ protoOf(HttpClientErrorJS).x46 = function () {
87985
+ var tmp0_elvis_lhs = this.v46_1;
87697
87986
  var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
87698
- var tmp_0 = this.t46_1;
87987
+ var tmp_0 = this.w46_1;
87699
87988
  return new HTTPClientError(tmp, tmp_0 instanceof Exception ? tmp_0 : null);
87700
87989
  };
87701
87990
  protoOf(HttpClientErrorJS).r8 = function () {
87702
- return this.s46_1;
87991
+ return this.v46_1;
87703
87992
  };
87704
87993
  protoOf(HttpClientErrorJS).s8 = function () {
87705
- return this.t46_1;
87994
+ return this.w46_1;
87706
87995
  };
87707
- protoOf(HttpClientErrorJS).v46 = function (message, cause) {
87996
+ protoOf(HttpClientErrorJS).y46 = function (message, cause) {
87708
87997
  return new HttpClientErrorJS(message, cause);
87709
87998
  };
87710
87999
  protoOf(HttpClientErrorJS).copy = function (message, cause, $super) {
87711
- message = message === VOID ? this.s46_1 : message;
87712
- cause = cause === VOID ? this.t46_1 : cause;
87713
- return this.v46(message, cause);
88000
+ message = message === VOID ? this.v46_1 : message;
88001
+ cause = cause === VOID ? this.w46_1 : cause;
88002
+ return this.y46(message, cause);
87714
88003
  };
87715
88004
  protoOf(HttpClientErrorJS).toString = function () {
87716
- return 'HttpClientErrorJS(message=' + this.s46_1 + ', cause=' + toString_0(this.t46_1) + ')';
88005
+ return 'HttpClientErrorJS(message=' + this.v46_1 + ', cause=' + toString_0(this.w46_1) + ')';
87717
88006
  };
87718
88007
  protoOf(HttpClientErrorJS).hashCode = function () {
87719
- var result = this.s46_1 == null ? 0 : getStringHashCode(this.s46_1);
87720
- result = imul(result, 31) + (this.t46_1 == null ? 0 : hashCode(this.t46_1)) | 0;
88008
+ var result = this.v46_1 == null ? 0 : getStringHashCode(this.v46_1);
88009
+ result = imul(result, 31) + (this.w46_1 == null ? 0 : hashCode(this.w46_1)) | 0;
87721
88010
  return result;
87722
88011
  };
87723
88012
  protoOf(HttpClientErrorJS).equals = function (other) {
@@ -87726,9 +88015,9 @@ function requireClientsdkClientcore_js () {
87726
88015
  if (!(other instanceof HttpClientErrorJS))
87727
88016
  return false;
87728
88017
  var tmp0_other_with_cast = other instanceof HttpClientErrorJS ? other : THROW_CCE();
87729
- if (!(this.s46_1 == tmp0_other_with_cast.s46_1))
88018
+ if (!(this.v46_1 == tmp0_other_with_cast.v46_1))
87730
88019
  return false;
87731
- if (!equals(this.t46_1, tmp0_other_with_cast.t46_1))
88020
+ if (!equals(this.w46_1, tmp0_other_with_cast.w46_1))
87732
88021
  return false;
87733
88022
  return true;
87734
88023
  };
@@ -87737,7 +88026,7 @@ function requireClientsdkClientcore_js () {
87737
88026
  this.statusCode = statusCode;
87738
88027
  this.body = body;
87739
88028
  }
87740
- protoOf(HttpClientResponseJS).w46 = function () {
88029
+ protoOf(HttpClientResponseJS).z46 = function () {
87741
88030
  return this.statusCode;
87742
88031
  };
87743
88032
  protoOf(HttpClientResponseJS).i40 = function () {
@@ -87749,13 +88038,13 @@ function requireClientsdkClientcore_js () {
87749
88038
  protoOf(HttpClientResponseJS).s8 = function () {
87750
88039
  return this.body;
87751
88040
  };
87752
- protoOf(HttpClientResponseJS).x46 = function (statusCode, body) {
88041
+ protoOf(HttpClientResponseJS).a47 = function (statusCode, body) {
87753
88042
  return new HttpClientResponseJS(statusCode, body);
87754
88043
  };
87755
88044
  protoOf(HttpClientResponseJS).copy = function (statusCode, body, $super) {
87756
88045
  statusCode = statusCode === VOID ? this.statusCode : statusCode;
87757
88046
  body = body === VOID ? this.body : body;
87758
- return this.x46(statusCode, body);
88047
+ return this.a47(statusCode, body);
87759
88048
  };
87760
88049
  protoOf(HttpClientResponseJS).toString = function () {
87761
88050
  return 'HttpClientResponseJS(statusCode=' + this.statusCode + ', body=' + this.body + ')';
@@ -87811,16 +88100,16 @@ function requireClientsdkClientcore_js () {
87811
88100
  this.RejectedElsewhere = 'RejectedElsewhere';
87812
88101
  this.RemoteTimeout = 'RemoteTimeout';
87813
88102
  }
87814
- protoOf(CancelReasonJSObject).y46 = function () {
88103
+ protoOf(CancelReasonJSObject).b47 = function () {
87815
88104
  return this.RemoteCancel;
87816
88105
  };
87817
- protoOf(CancelReasonJSObject).z46 = function () {
88106
+ protoOf(CancelReasonJSObject).c47 = function () {
87818
88107
  return this.AnsweredElsewhere;
87819
88108
  };
87820
- protoOf(CancelReasonJSObject).a47 = function () {
88109
+ protoOf(CancelReasonJSObject).d47 = function () {
87821
88110
  return this.RejectedElsewhere;
87822
88111
  };
87823
- protoOf(CancelReasonJSObject).b47 = function () {
88112
+ protoOf(CancelReasonJSObject).e47 = function () {
87824
88113
  return this.RemoteTimeout;
87825
88114
  };
87826
88115
  protoOf(CancelReasonJSObject).toString = function () {
@@ -87852,31 +88141,31 @@ function requireClientsdkClientcore_js () {
87852
88141
  this.packet_cnt = packet_cnt;
87853
88142
  this.packet_loss_perc = packet_loss_perc;
87854
88143
  }
87855
- protoOf(RTCQualityJS).c47 = function () {
88144
+ protoOf(RTCQualityJS).f47 = function () {
87856
88145
  return this.mos_score;
87857
88146
  };
87858
- protoOf(RTCQualityJS).d47 = function () {
88147
+ protoOf(RTCQualityJS).g47 = function () {
87859
88148
  return this.quality_percentage;
87860
88149
  };
87861
- protoOf(RTCQualityJS).e47 = function () {
88150
+ protoOf(RTCQualityJS).h47 = function () {
87862
88151
  return this.jitter_min_var;
87863
88152
  };
87864
- protoOf(RTCQualityJS).f47 = function () {
88153
+ protoOf(RTCQualityJS).i47 = function () {
87865
88154
  return this.jitter_max_var;
87866
88155
  };
87867
- protoOf(RTCQualityJS).g47 = function () {
88156
+ protoOf(RTCQualityJS).j47 = function () {
87868
88157
  return this.jitter_loss_rate;
87869
88158
  };
87870
- protoOf(RTCQualityJS).h47 = function () {
88159
+ protoOf(RTCQualityJS).k47 = function () {
87871
88160
  return this.jitter_burst_rate;
87872
88161
  };
87873
- protoOf(RTCQualityJS).i47 = function () {
88162
+ protoOf(RTCQualityJS).l47 = function () {
87874
88163
  return this.flaw_total;
87875
88164
  };
87876
- protoOf(RTCQualityJS).j47 = function () {
88165
+ protoOf(RTCQualityJS).m47 = function () {
87877
88166
  return this.packet_cnt;
87878
88167
  };
87879
- protoOf(RTCQualityJS).k47 = function () {
88168
+ protoOf(RTCQualityJS).n47 = function () {
87880
88169
  return this.packet_loss_perc;
87881
88170
  };
87882
88171
  protoOf(RTCQualityJS).r8 = function () {
@@ -87885,28 +88174,28 @@ function requireClientsdkClientcore_js () {
87885
88174
  protoOf(RTCQualityJS).s8 = function () {
87886
88175
  return this.quality_percentage;
87887
88176
  };
87888
- protoOf(RTCQualityJS).l47 = function () {
88177
+ protoOf(RTCQualityJS).o47 = function () {
87889
88178
  return this.jitter_min_var;
87890
88179
  };
87891
- protoOf(RTCQualityJS).m47 = function () {
88180
+ protoOf(RTCQualityJS).p47 = function () {
87892
88181
  return this.jitter_max_var;
87893
88182
  };
87894
- protoOf(RTCQualityJS).n47 = function () {
88183
+ protoOf(RTCQualityJS).q47 = function () {
87895
88184
  return this.jitter_loss_rate;
87896
88185
  };
87897
- protoOf(RTCQualityJS).o47 = function () {
88186
+ protoOf(RTCQualityJS).r47 = function () {
87898
88187
  return this.jitter_burst_rate;
87899
88188
  };
87900
- protoOf(RTCQualityJS).p47 = function () {
88189
+ protoOf(RTCQualityJS).s47 = function () {
87901
88190
  return this.flaw_total;
87902
88191
  };
87903
- protoOf(RTCQualityJS).q47 = function () {
88192
+ protoOf(RTCQualityJS).t47 = function () {
87904
88193
  return this.packet_cnt;
87905
88194
  };
87906
- protoOf(RTCQualityJS).r47 = function () {
88195
+ protoOf(RTCQualityJS).u47 = function () {
87907
88196
  return this.packet_loss_perc;
87908
88197
  };
87909
- 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) {
88198
+ 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) {
87910
88199
  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);
87911
88200
  };
87912
88201
  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) {
@@ -87919,7 +88208,7 @@ function requireClientsdkClientcore_js () {
87919
88208
  flaw_total = flaw_total === VOID ? this.flaw_total : flaw_total;
87920
88209
  packet_cnt = packet_cnt === VOID ? this.packet_cnt : packet_cnt;
87921
88210
  packet_loss_perc = packet_loss_perc === VOID ? this.packet_loss_perc : packet_loss_perc;
87922
- 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);
88211
+ 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);
87923
88212
  };
87924
88213
  protoOf(RTCQualityJS).toString = function () {
87925
88214
  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 + ')';
@@ -87982,34 +88271,34 @@ function requireClientsdkClientcore_js () {
87982
88271
  this.audioRtt = audioRtt;
87983
88272
  this.audioSentJitter = audioSentJitter;
87984
88273
  }
87985
- protoOf(RTCStatsJS).t47 = function () {
88274
+ protoOf(RTCStatsJS).w47 = function () {
87986
88275
  return this.audioRecvPackets;
87987
88276
  };
87988
- protoOf(RTCStatsJS).u47 = function () {
88277
+ protoOf(RTCStatsJS).x47 = function () {
87989
88278
  return this.audioRecvPacketsLost;
87990
88279
  };
87991
- protoOf(RTCStatsJS).v47 = function () {
88280
+ protoOf(RTCStatsJS).y47 = function () {
87992
88281
  return this.audioRecvBytes;
87993
88282
  };
87994
- protoOf(RTCStatsJS).w47 = function () {
88283
+ protoOf(RTCStatsJS).z47 = function () {
87995
88284
  return this.audioRecvJitter;
87996
88285
  };
87997
- protoOf(RTCStatsJS).x47 = function () {
88286
+ protoOf(RTCStatsJS).a48 = function () {
87998
88287
  return this.audioSentPackets;
87999
88288
  };
88000
- protoOf(RTCStatsJS).y47 = function () {
88289
+ protoOf(RTCStatsJS).b48 = function () {
88001
88290
  return this.audioSentBytes;
88002
88291
  };
88003
- protoOf(RTCStatsJS).z47 = function () {
88292
+ protoOf(RTCStatsJS).c48 = function () {
88004
88293
  return this.audioSentPacketsLost;
88005
88294
  };
88006
- protoOf(RTCStatsJS).a48 = function () {
88295
+ protoOf(RTCStatsJS).d48 = function () {
88007
88296
  return this.audioRtt;
88008
88297
  };
88009
- protoOf(RTCStatsJS).b48 = function () {
88298
+ protoOf(RTCStatsJS).e48 = function () {
88010
88299
  return this.audioSentJitter;
88011
88300
  };
88012
- protoOf(RTCStatsJS).c48 = function () {
88301
+ protoOf(RTCStatsJS).f48 = function () {
88013
88302
  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));
88014
88303
  };
88015
88304
  protoOf(RTCStatsJS).r8 = function () {
@@ -88018,28 +88307,28 @@ function requireClientsdkClientcore_js () {
88018
88307
  protoOf(RTCStatsJS).s8 = function () {
88019
88308
  return this.audioRecvPacketsLost;
88020
88309
  };
88021
- protoOf(RTCStatsJS).l47 = function () {
88310
+ protoOf(RTCStatsJS).o47 = function () {
88022
88311
  return this.audioRecvBytes;
88023
88312
  };
88024
- protoOf(RTCStatsJS).m47 = function () {
88313
+ protoOf(RTCStatsJS).p47 = function () {
88025
88314
  return this.audioRecvJitter;
88026
88315
  };
88027
- protoOf(RTCStatsJS).n47 = function () {
88316
+ protoOf(RTCStatsJS).q47 = function () {
88028
88317
  return this.audioSentPackets;
88029
88318
  };
88030
- protoOf(RTCStatsJS).o47 = function () {
88319
+ protoOf(RTCStatsJS).r47 = function () {
88031
88320
  return this.audioSentBytes;
88032
88321
  };
88033
- protoOf(RTCStatsJS).p47 = function () {
88322
+ protoOf(RTCStatsJS).s47 = function () {
88034
88323
  return this.audioSentPacketsLost;
88035
88324
  };
88036
- protoOf(RTCStatsJS).q47 = function () {
88325
+ protoOf(RTCStatsJS).t47 = function () {
88037
88326
  return this.audioRtt;
88038
88327
  };
88039
- protoOf(RTCStatsJS).r47 = function () {
88328
+ protoOf(RTCStatsJS).u47 = function () {
88040
88329
  return this.audioSentJitter;
88041
88330
  };
88042
- protoOf(RTCStatsJS).d48 = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
88331
+ protoOf(RTCStatsJS).g48 = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
88043
88332
  return new RTCStatsJS(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
88044
88333
  };
88045
88334
  protoOf(RTCStatsJS).copy = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, $super) {
@@ -88052,7 +88341,7 @@ function requireClientsdkClientcore_js () {
88052
88341
  audioSentPacketsLost = audioSentPacketsLost === VOID ? this.audioSentPacketsLost : audioSentPacketsLost;
88053
88342
  audioRtt = audioRtt === VOID ? this.audioRtt : audioRtt;
88054
88343
  audioSentJitter = audioSentJitter === VOID ? this.audioSentJitter : audioSentJitter;
88055
- return this.d48(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
88344
+ return this.g48(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
88056
88345
  };
88057
88346
  protoOf(RTCStatsJS).toString = function () {
88058
88347
  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) + ')';
@@ -88172,7 +88461,7 @@ function requireClientsdkClientcore_js () {
88172
88461
  };
88173
88462
  }
88174
88463
  function HttpClientJSAdapter$1($js) {
88175
- this.e48_1 = $js;
88464
+ this.h48_1 = $js;
88176
88465
  }
88177
88466
  protoOf(HttpClientJSAdapter$1).s3q = function (verb, url, headers, body, callback) {
88178
88467
  var tmp = verb.toString();
@@ -88180,7 +88469,7 @@ function requireClientsdkClientcore_js () {
88180
88469
  // Inline function 'kotlin.contracts.contract' call
88181
88470
  // Inline function 'vonage.<no name provided>.request.<anonymous>' call
88182
88471
  var tmp_0 = fromMap(JSON, headers);
88183
- this.e48_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
88472
+ this.h48_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
88184
88473
  };
88185
88474
  function SocketClientJSAdapter$o$emit$lambda($callback) {
88186
88475
  return function (err, response) {
@@ -88198,11 +88487,11 @@ function requireClientsdkClientcore_js () {
88198
88487
  };
88199
88488
  }
88200
88489
  function SocketClientJSAdapter$adapter$1($js) {
88201
- this.g48_1 = $js;
88202
- this.f48_1 = null;
88490
+ this.j48_1 = $js;
88491
+ this.i48_1 = null;
88203
88492
  }
88204
88493
  protoOf(SocketClientJSAdapter$adapter$1).w3q = function (_set____db54di) {
88205
- this.f48_1 = _set____db54di;
88494
+ this.i48_1 = _set____db54di;
88206
88495
  };
88207
88496
  protoOf(SocketClientJSAdapter$adapter$1).x3q = function (type, msg, callback) {
88208
88497
  var tmp;
@@ -88215,28 +88504,28 @@ function requireClientsdkClientcore_js () {
88215
88504
  tmp = fromMap(JSON, msg);
88216
88505
  }
88217
88506
  var tmp_0 = tmp;
88218
- this.g48_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
88507
+ this.j48_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
88219
88508
  };
88220
88509
  protoOf(SocketClientJSAdapter$adapter$1).y3q = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query) {
88221
- this.g48_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
88510
+ this.j48_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
88222
88511
  };
88223
88512
  protoOf(SocketClientJSAdapter$adapter$1).z3q = function () {
88224
- this.g48_1.disconnect();
88513
+ this.j48_1.disconnect();
88225
88514
  };
88226
88515
  protoOf(SocketClientJSAdapter$adapter$1).a3r = function (sessionId, token) {
88227
- this.g48_1.setConnectParamsSocketConfig(sessionId, token);
88516
+ this.j48_1.setConnectParamsSocketConfig(sessionId, token);
88228
88517
  };
88229
88518
  protoOf(SocketClientJSAdapter$adapter$1).b3r = function (sessionId) {
88230
- this.g48_1.setSocketSessionId(sessionId);
88519
+ this.j48_1.setSocketSessionId(sessionId);
88231
88520
  };
88232
88521
  protoOf(SocketClientJSAdapter$adapter$1).c3r = function (milliseconds, callback) {
88233
- this.g48_1.startVerifyResponseTimer(milliseconds, callback);
88522
+ this.j48_1.startVerifyResponseTimer(milliseconds, callback);
88234
88523
  };
88235
88524
  function SocketClientJSAdapter$1($adapter) {
88236
- this.h48_1 = $adapter;
88525
+ this.k48_1 = $adapter;
88237
88526
  }
88238
88527
  protoOf(SocketClientJSAdapter$1).didReceiveNewSocketEvent = function (body) {
88239
- var tmp0_safe_receiver = this.h48_1.f48_1;
88528
+ var tmp0_safe_receiver = this.k48_1.i48_1;
88240
88529
  if (tmp0_safe_receiver == null)
88241
88530
  null;
88242
88531
  else {
@@ -88269,7 +88558,7 @@ function requireClientsdkClientcore_js () {
88269
88558
  var tmp;
88270
88559
  switch (reason) {
88271
88560
  case 'NXMCORE_REASON_SERVER_DISCONNECTED':
88272
- var tmp1_safe_receiver_0 = this.h48_1.f48_1;
88561
+ var tmp1_safe_receiver_0 = this.k48_1.i48_1;
88273
88562
  var tmp_0;
88274
88563
  if (tmp1_safe_receiver_0 == null) {
88275
88564
  tmp_0 = null;
@@ -88281,7 +88570,7 @@ function requireClientsdkClientcore_js () {
88281
88570
  tmp = tmp_0;
88282
88571
  break;
88283
88572
  case 'NXMCORE_REASON_CLIENT_DISCONNECTED':
88284
- var tmp2_safe_receiver = this.h48_1.f48_1;
88573
+ var tmp2_safe_receiver = this.k48_1.i48_1;
88285
88574
  var tmp_1;
88286
88575
  if (tmp2_safe_receiver == null) {
88287
88576
  tmp_1 = null;
@@ -88293,7 +88582,7 @@ function requireClientsdkClientcore_js () {
88293
88582
  tmp = tmp_1;
88294
88583
  break;
88295
88584
  case 'NXMCORE_CLIENT_NETWORK_ERROR':
88296
- var tmp3_safe_receiver = this.h48_1.f48_1;
88585
+ var tmp3_safe_receiver = this.k48_1.i48_1;
88297
88586
  var tmp_2;
88298
88587
  if (tmp3_safe_receiver == null) {
88299
88588
  tmp_2 = null;
@@ -88305,7 +88594,7 @@ function requireClientsdkClientcore_js () {
88305
88594
  tmp = tmp_2;
88306
88595
  break;
88307
88596
  case 'NXMCORE_REASON_PING_TIMEOUT':
88308
- var tmp4_safe_receiver = this.h48_1.f48_1;
88597
+ var tmp4_safe_receiver = this.k48_1.i48_1;
88309
88598
  var tmp_3;
88310
88599
  if (tmp4_safe_receiver == null) {
88311
88600
  tmp_3 = null;
@@ -88317,7 +88606,7 @@ function requireClientsdkClientcore_js () {
88317
88606
  tmp = tmp_3;
88318
88607
  break;
88319
88608
  default:
88320
- var tmp5_safe_receiver = this.h48_1.f48_1;
88609
+ var tmp5_safe_receiver = this.k48_1.i48_1;
88321
88610
  var tmp_4;
88322
88611
  if (tmp5_safe_receiver == null) {
88323
88612
  tmp_4 = null;
@@ -88355,6 +88644,18 @@ function requireClientsdkClientcore_js () {
88355
88644
  return Unit_instance;
88356
88645
  };
88357
88646
  }
88647
+ function MediaClientJSAdapter$o$enableNoiseSuppression$lambda($closure) {
88648
+ return function (it) {
88649
+ $closure(it == null ? null : it.r44());
88650
+ return Unit_instance;
88651
+ };
88652
+ }
88653
+ function MediaClientJSAdapter$o$disableNoiseSuppression$lambda($closure) {
88654
+ return function (it) {
88655
+ $closure(it == null ? null : it.r44());
88656
+ return Unit_instance;
88657
+ };
88658
+ }
88358
88659
  function MediaClientJSAdapter$o$enableEarmuff$lambda($closure) {
88359
88660
  return function (it) {
88360
88661
  $closure(it == null ? null : it.r44());
@@ -88374,65 +88675,67 @@ function requireClientsdkClientcore_js () {
88374
88675
  };
88375
88676
  }
88376
88677
  function MediaClientJSAdapter$adapter$1($js) {
88377
- this.j48_1 = $js;
88378
- this.i48_1 = null;
88678
+ this.m48_1 = $js;
88679
+ this.l48_1 = null;
88379
88680
  }
88380
88681
  protoOf(MediaClientJSAdapter$adapter$1).d1j = function (_set____db54di) {
88381
- this.i48_1 = _set____db54di;
88682
+ this.l48_1 = _set____db54di;
88382
88683
  };
88383
88684
  protoOf(MediaClientJSAdapter$adapter$1).c1j = function () {
88384
- return this.i48_1;
88685
+ return this.l48_1;
88385
88686
  };
88386
88687
  protoOf(MediaClientJSAdapter$adapter$1).b1k = function (closure) {
88387
- this.j48_1.enableMediaOutbound(closure);
88688
+ this.m48_1.enableMediaOutbound(closure);
88388
88689
  };
88389
- protoOf(MediaClientJSAdapter$adapter$1).k48 = function (rtcId, offerSDP, closure) {
88390
- this.j48_1.enableMediaInbound(rtcId, offerSDP, closure);
88690
+ protoOf(MediaClientJSAdapter$adapter$1).n48 = function (rtcId, offerSDP, closure) {
88691
+ this.m48_1.enableMediaInbound(rtcId, offerSDP, closure);
88391
88692
  };
88392
88693
  protoOf(MediaClientJSAdapter$adapter$1).f3r = function (rtcId, offerSDP, closure) {
88393
- return this.k48(rtcId, offerSDP, closure);
88694
+ return this.n48(rtcId, offerSDP, closure);
88394
88695
  };
88395
88696
  protoOf(MediaClientJSAdapter$adapter$1).p1j = function (id, sdp, closure) {
88396
- this.j48_1.processAnswer(id, sdp, MediaClientJSAdapter$o$processAnswer$lambda(closure));
88697
+ this.m48_1.processAnswer(id, sdp, MediaClientJSAdapter$o$processAnswer$lambda(closure));
88397
88698
  };
88398
88699
  protoOf(MediaClientJSAdapter$adapter$1).a1k = function (id, closure) {
88399
- this.j48_1.disableMedia(id, MediaClientJSAdapter$o$disableMedia$lambda(closure));
88700
+ this.m48_1.disableMedia(id, MediaClientJSAdapter$o$disableMedia$lambda(closure));
88400
88701
  };
88401
88702
  protoOf(MediaClientJSAdapter$adapter$1).z1j = function (id, closure) {
88402
- this.j48_1.mute(id, MediaClientJSAdapter$o$mute$lambda(closure));
88703
+ this.m48_1.mute(id, MediaClientJSAdapter$o$mute$lambda(closure));
88403
88704
  };
88404
88705
  protoOf(MediaClientJSAdapter$adapter$1).x1j = function (id, closure) {
88405
- this.j48_1.unmute(id, MediaClientJSAdapter$o$unmute$lambda(closure));
88706
+ this.m48_1.unmute(id, MediaClientJSAdapter$o$unmute$lambda(closure));
88406
88707
  };
88407
88708
  protoOf(MediaClientJSAdapter$adapter$1).g3r = function (id, closure) {
88709
+ this.m48_1.enableNoiseSuppression(id, MediaClientJSAdapter$o$enableNoiseSuppression$lambda(closure));
88408
88710
  };
88409
88711
  protoOf(MediaClientJSAdapter$adapter$1).h3r = function (id, closure) {
88712
+ this.m48_1.disableNoiseSuppression(id, MediaClientJSAdapter$o$disableNoiseSuppression$lambda(closure));
88410
88713
  };
88411
88714
  protoOf(MediaClientJSAdapter$adapter$1).v1j = function (id, closure) {
88412
- this.j48_1.enableEarmuff(id, MediaClientJSAdapter$o$enableEarmuff$lambda(closure));
88715
+ this.m48_1.enableEarmuff(id, MediaClientJSAdapter$o$enableEarmuff$lambda(closure));
88413
88716
  };
88414
88717
  protoOf(MediaClientJSAdapter$adapter$1).t1j = function (id, closure) {
88415
- this.j48_1.disableEarmuff(id, MediaClientJSAdapter$o$disableEarmuff$lambda(closure));
88718
+ this.m48_1.disableEarmuff(id, MediaClientJSAdapter$o$disableEarmuff$lambda(closure));
88416
88719
  };
88417
88720
  protoOf(MediaClientJSAdapter$adapter$1).q1j = function (id, interval, closure) {
88418
- this.j48_1.enableRtcStatsCollection(id, interval, MediaClientJSAdapter$o$enableRtcStatsCollection$lambda(closure));
88721
+ this.m48_1.enableRtcStatsCollection(id, interval, MediaClientJSAdapter$o$enableRtcStatsCollection$lambda(closure));
88419
88722
  };
88420
88723
  protoOf(MediaClientJSAdapter$adapter$1).i3r = function (id) {
88421
- return coreConnectionState(this.j48_1.getMediaConnectionState(id));
88724
+ return coreConnectionState(this.m48_1.getMediaConnectionState(id));
88422
88725
  };
88423
88726
  function MediaClientJSAdapter$1($adapter) {
88424
- this.l48_1 = $adapter;
88727
+ this.o48_1 = $adapter;
88425
88728
  }
88426
88729
  protoOf(MediaClientJSAdapter$1).onRtcStats = function (id, rtcStats) {
88427
- var tmp0_safe_receiver = this.l48_1.i48_1;
88730
+ var tmp0_safe_receiver = this.o48_1.l48_1;
88428
88731
  if (tmp0_safe_receiver == null)
88429
88732
  null;
88430
88733
  else {
88431
- tmp0_safe_receiver.g1j(id, rtcStats.c48());
88734
+ tmp0_safe_receiver.g1j(id, rtcStats.f48());
88432
88735
  }
88433
88736
  };
88434
88737
  protoOf(MediaClientJSAdapter$1).onConnectionChange = function (id, state) {
88435
- var tmp0_safe_receiver = this.l48_1.i48_1;
88738
+ var tmp0_safe_receiver = this.o48_1.l48_1;
88436
88739
  if (tmp0_safe_receiver == null)
88437
88740
  null;
88438
88741
  else {
@@ -88440,7 +88743,7 @@ function requireClientsdkClientcore_js () {
88440
88743
  }
88441
88744
  };
88442
88745
  protoOf(MediaClientJSAdapter$1).onMediaError = function (id, error) {
88443
- var tmp0_safe_receiver = this.l48_1.i48_1;
88746
+ var tmp0_safe_receiver = this.o48_1.l48_1;
88444
88747
  if (tmp0_safe_receiver == null)
88445
88748
  null;
88446
88749
  else {
@@ -88859,10 +89162,10 @@ function requireClientsdkClientcore_js () {
88859
89162
  this.callId = callId;
88860
89163
  this.reconnectToken = reconnectToken;
88861
89164
  }
88862
- protoOf(EmergencyCallDataJS).m48 = function () {
89165
+ protoOf(EmergencyCallDataJS).p48 = function () {
88863
89166
  return this.callId;
88864
89167
  };
88865
- protoOf(EmergencyCallDataJS).n48 = function () {
89168
+ protoOf(EmergencyCallDataJS).q48 = function () {
88866
89169
  return this.reconnectToken;
88867
89170
  };
88868
89171
  protoOf(EmergencyCallDataJS).r8 = function () {
@@ -88871,13 +89174,13 @@ function requireClientsdkClientcore_js () {
88871
89174
  protoOf(EmergencyCallDataJS).s8 = function () {
88872
89175
  return this.reconnectToken;
88873
89176
  };
88874
- protoOf(EmergencyCallDataJS).x45 = function (callId, reconnectToken) {
89177
+ protoOf(EmergencyCallDataJS).a46 = function (callId, reconnectToken) {
88875
89178
  return new EmergencyCallDataJS(callId, reconnectToken);
88876
89179
  };
88877
89180
  protoOf(EmergencyCallDataJS).copy = function (callId, reconnectToken, $super) {
88878
89181
  callId = callId === VOID ? this.callId : callId;
88879
89182
  reconnectToken = reconnectToken === VOID ? this.reconnectToken : reconnectToken;
88880
- return this.x45(callId, reconnectToken);
89183
+ return this.a46(callId, reconnectToken);
88881
89184
  };
88882
89185
  protoOf(EmergencyCallDataJS).toString = function () {
88883
89186
  return 'EmergencyCallDataJS(callId=' + this.callId + ', reconnectToken=' + this.reconnectToken + ')';
@@ -89031,12 +89334,12 @@ function requireClientsdkClientcore_js () {
89031
89334
  protoOf(Some).r8 = function () {
89032
89335
  return this.value;
89033
89336
  };
89034
- protoOf(Some).o48 = function (value) {
89337
+ protoOf(Some).r48 = function (value) {
89035
89338
  return new Some(value);
89036
89339
  };
89037
89340
  protoOf(Some).copy = function (value, $super) {
89038
89341
  value = value === VOID ? this.value : value;
89039
- return this.o48(value);
89342
+ return this.r48(value);
89040
89343
  };
89041
89344
  protoOf(Some).toString = function () {
89042
89345
  return 'Some(value=' + toString_0(this.value) + ')';
@@ -89249,6 +89552,12 @@ function requireClientsdkClientcore_js () {
89249
89552
  protoOf(CombinedClientJS).unmute = unmute;
89250
89553
  protoOf(CombinedClientJS).enableEarmuff = enableEarmuff;
89251
89554
  protoOf(CombinedClientJS).disableEarmuff = disableEarmuff;
89555
+ protoOf(CombinedClientJS).enableNoiseSuppression = enableNoiseSuppression;
89556
+ protoOf(CombinedClientJS).disableNoiseSuppression = disableNoiseSuppression;
89557
+ protoOf(CombinedClientJS).enableAutoGainControl = enableAutoGainControl;
89558
+ protoOf(CombinedClientJS).disableAutoGainControl = disableAutoGainControl;
89559
+ protoOf(CombinedClientJS).enableEchoCancellation = enableEchoCancellation;
89560
+ protoOf(CombinedClientJS).disableEchoCancellation = disableEchoCancellation;
89252
89561
  protoOf(CombinedClientJS).sendDTMF = sendDTMF;
89253
89562
  protoOf(CombinedClientJS).emergencyCall = emergencyCall;
89254
89563
  protoOf(CombinedClientJS).reconnectEmergencyCall = reconnectEmergencyCall;
@@ -89272,41 +89581,50 @@ function requireClientsdkClientcore_js () {
89272
89581
  defineProp(protoOf(PresentingOrderJS), 'ordinal', protoOf(PresentingOrderJS).g2);
89273
89582
  defineProp(protoOf(OrderByJS), 'name', protoOf(OrderByJS).f2);
89274
89583
  defineProp(protoOf(OrderByJS), 'ordinal', protoOf(OrderByJS).g2);
89584
+ defineProp(protoOf(ProcessAnswerErrorJS), 'message', function () {
89585
+ return this.n8();
89586
+ });
89587
+ defineProp(protoOf(CreateAnswerErrorJS), 'message', function () {
89588
+ return this.n8();
89589
+ });
89590
+ defineProp(protoOf(CreateOfferErrorJS), 'message', function () {
89591
+ return this.n8();
89592
+ });
89275
89593
  defineProp(protoOf(CoreClientConfigRegionJS), 'name', protoOf(CoreClientConfigRegionJS).f2);
89276
89594
  defineProp(protoOf(CoreClientConfigRegionJS), 'ordinal', protoOf(CoreClientConfigRegionJS).g2);
89277
89595
  defineProp(protoOf(CoreClientConfigJS), 'apiUrl', function () {
89278
- return this.k45();
89596
+ return this.n45();
89279
89597
  }, function (value) {
89280
- this.j45(value);
89598
+ this.m45(value);
89281
89599
  });
89282
89600
  defineProp(protoOf(CoreClientConfigJS), 'websocketUrl', function () {
89283
- return this.m45();
89601
+ return this.p45();
89284
89602
  }, function (value) {
89285
- this.l45(value);
89603
+ this.o45(value);
89286
89604
  });
89287
89605
  defineProp(protoOf(CoreClientConfigJS), 'websocketPath', function () {
89288
- return this.o45();
89606
+ return this.r45();
89289
89607
  }, function (value) {
89290
- this.n45(value);
89608
+ this.q45(value);
89291
89609
  });
89292
89610
  defineProp(protoOf(CoreClientConfigJS), 'rtcStatsTelemetry', function () {
89293
- return this.q45();
89611
+ return this.t45();
89294
89612
  }, function (value) {
89295
- this.p45(value);
89613
+ this.s45(value);
89296
89614
  });
89297
89615
  defineProp(protoOf(CoreClientConfigJS), 'autoReconnectMedia', function () {
89298
- return this.s45();
89616
+ return this.v45();
89299
89617
  }, function (value) {
89300
- this.r45(value);
89618
+ this.u45(value);
89301
89619
  });
89302
89620
  defineProp(protoOf(CoreClientConfigJS), 'noiseSuppression', function () {
89303
- return this.t45();
89621
+ return this.w45();
89304
89622
  });
89305
89623
  defineProp(protoOf(CoreClientConfigJS), 'emergencyPrimaryRegion', function () {
89306
- return this.u45();
89624
+ return this.x45();
89307
89625
  });
89308
89626
  defineProp(protoOf(CoreClientConfigJS), 'emergencySecondaryRegion', function () {
89309
- return this.v45();
89627
+ return this.y45();
89310
89628
  });
89311
89629
  defineProp(protoOf(Topics), 'name', protoOf(Topics).f2);
89312
89630
  defineProp(protoOf(Topics), 'ordinal', protoOf(Topics).g2);
@@ -89327,7 +89645,7 @@ function requireClientsdkClientcore_js () {
89327
89645
  defineProp(protoOf(HttpClientErrorJS), 'cause', function () {
89328
89646
  return this.o8();
89329
89647
  });
89330
- defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).u46);
89648
+ defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).x46);
89331
89649
  protoOf(HttpClientJSAdapter$1).t3q = clear;
89332
89650
  //endregion
89333
89651
  //region block: init
@@ -90003,17 +90321,167 @@ class MediaClient {
90003
90321
  this.closePeerConnection(pc);
90004
90322
  closure(null);
90005
90323
  }
90324
+ enableNoiseSuppression(id, closure) {
90325
+ return __awaiter(this, void 0, void 0, function* () {
90326
+ try {
90327
+ yield this.setAudioConstraint(id, 'noiseSuppression', true);
90328
+ closure(null);
90329
+ }
90330
+ catch (_a) {
90331
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
90332
+ }
90333
+ });
90334
+ }
90006
90335
  disableNoiseSuppression(id, closure) {
90007
- console.log(id);
90008
- // TODO: Not yet implemented
90009
- closure(null);
90336
+ return __awaiter(this, void 0, void 0, function* () {
90337
+ try {
90338
+ yield this.setAudioConstraint(id, 'noiseSuppression', false);
90339
+ closure(null);
90340
+ }
90341
+ catch (_a) {
90342
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
90343
+ }
90344
+ });
90010
90345
  }
90011
- enableNoiseSuppression(id, closure) {
90012
- console.log(id);
90013
- // TODO: Not yet implemented
90014
- closure(null);
90346
+ enableAutoGainControl(id, closure) {
90347
+ return __awaiter(this, void 0, void 0, function* () {
90348
+ try {
90349
+ yield this.setAudioConstraint(id, 'autoGainControl', true);
90350
+ closure(null);
90351
+ }
90352
+ catch (_a) {
90353
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
90354
+ }
90355
+ });
90356
+ }
90357
+ disableAutoGainControl(id, closure) {
90358
+ return __awaiter(this, void 0, void 0, function* () {
90359
+ try {
90360
+ yield this.setAudioConstraint(id, 'autoGainControl', false);
90361
+ closure(null);
90362
+ }
90363
+ catch (_a) {
90364
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
90365
+ }
90366
+ });
90367
+ }
90368
+ enableEchoCancellation(id, closure) {
90369
+ return __awaiter(this, void 0, void 0, function* () {
90370
+ try {
90371
+ yield this.setAudioConstraint(id, 'echoCancellation', true);
90372
+ closure(null);
90373
+ }
90374
+ catch (_a) {
90375
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
90376
+ }
90377
+ });
90378
+ }
90379
+ disableEchoCancellation(id, closure) {
90380
+ return __awaiter(this, void 0, void 0, function* () {
90381
+ try {
90382
+ yield this.setAudioConstraint(id, 'echoCancellation', false);
90383
+ closure(null);
90384
+ }
90385
+ catch (_a) {
90386
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
90387
+ }
90388
+ });
90015
90389
  }
90016
90390
  // Private Methods
90391
+ /**
90392
+ * Sets an audio processing constraint on the active call's audio track.
90393
+ *
90394
+ * Strategy:
90395
+ * 1. Try {@link MediaStreamTrack.applyConstraints} with all three audio
90396
+ * processing flags on the existing track (in-place, no replacement).
90397
+ * 2. If the constraint didn't take effect, stop the old track to release
90398
+ * the browser's audio capture pipeline, then acquire a fresh track via
90399
+ * {@link MediaDevices.getUserMedia} using {@code exact} for every flag
90400
+ * and swap it onto the {@link RTCRtpSender} with
90401
+ * {@link RTCRtpSender.replaceTrack}.
90402
+ *
90403
+ * Stopping the old track before getUserMedia is critical: Chrome reuses the
90404
+ * active audio pipeline and silently ignores constraint changes otherwise.
90405
+ * Using {@code exact} for all three flags prevents the browser from treating
90406
+ * non-target constraints as {@code ideal} (preferences) and dropping them.
90407
+ */
90408
+ setAudioConstraint(id, constraintName, value) {
90409
+ var _a, _b, _c;
90410
+ return __awaiter(this, void 0, void 0, function* () {
90411
+ const pc = this.pcs.get(id);
90412
+ if (!pc) {
90413
+ throw new Error('Peer connection not found');
90414
+ }
90415
+ const sender = pc.getSenders().find((s) => { var _a; return ((_a = s.track) === null || _a === void 0 ? void 0 : _a.kind) === 'audio'; });
90416
+ if (!(sender === null || sender === void 0 ? void 0 : sender.track)) {
90417
+ throw new Error('Audio sender track not found');
90418
+ }
90419
+ const oldTrack = sender.track;
90420
+ const currentSettings = oldTrack.getSettings();
90421
+ const wasEnabled = oldTrack.enabled;
90422
+ // Build the full desired state: preserve non-target constraints, set target.
90423
+ const desired = {
90424
+ autoGainControl: (_a = currentSettings.autoGainControl) !== null && _a !== void 0 ? _a : true,
90425
+ echoCancellation: (_b = currentSettings.echoCancellation) !== null && _b !== void 0 ? _b : true,
90426
+ noiseSuppression: (_c = currentSettings.noiseSuppression) !== null && _c !== void 0 ? _c : true
90427
+ };
90428
+ desired[constraintName] = value;
90429
+ // Tier 1 – applyConstraints (in-place, no track replacement)
90430
+ try {
90431
+ yield oldTrack.applyConstraints({
90432
+ autoGainControl: desired.autoGainControl,
90433
+ echoCancellation: desired.echoCancellation,
90434
+ noiseSuppression: desired.noiseSuppression
90435
+ });
90436
+ const afterSettings = oldTrack.getSettings();
90437
+ if (afterSettings[constraintName] === value) {
90438
+ return;
90439
+ }
90440
+ }
90441
+ catch (_d) {
90442
+ // applyConstraints not supported or overconstrained – fall through
90443
+ }
90444
+ // Tier 2 – Stop old track → getUserMedia (exact) → replaceTrack
90445
+ // Stopping first forces the browser to create a fresh audio pipeline.
90446
+ oldTrack.stop();
90447
+ const exactConstraints = {
90448
+ autoGainControl: { exact: desired.autoGainControl },
90449
+ echoCancellation: { exact: desired.echoCancellation },
90450
+ noiseSuppression: { exact: desired.noiseSuppression }
90451
+ };
90452
+ if (currentSettings.deviceId) {
90453
+ exactConstraints.deviceId = { exact: currentSettings.deviceId };
90454
+ }
90455
+ let newStream;
90456
+ try {
90457
+ newStream = yield navigator.mediaDevices.getUserMedia({
90458
+ audio: exactConstraints,
90459
+ video: false
90460
+ });
90461
+ }
90462
+ catch (_e) {
90463
+ // Fallback: if exact constraints are overconstrained, use ideal values
90464
+ // so the call never loses audio.
90465
+ const idealConstraints = {
90466
+ autoGainControl: desired.autoGainControl,
90467
+ echoCancellation: desired.echoCancellation,
90468
+ noiseSuppression: desired.noiseSuppression
90469
+ };
90470
+ if (currentSettings.deviceId) {
90471
+ idealConstraints.deviceId = { exact: currentSettings.deviceId };
90472
+ }
90473
+ newStream = yield navigator.mediaDevices.getUserMedia({
90474
+ audio: idealConstraints,
90475
+ video: false
90476
+ });
90477
+ }
90478
+ const newTrack = newStream.getAudioTracks()[0];
90479
+ if (!newTrack)
90480
+ throw new Error('Failed to get new audio track');
90481
+ newTrack.enabled = wasEnabled;
90482
+ yield sender.replaceTrack(newTrack);
90483
+ });
90484
+ }
90017
90485
  closePeerConnection(pc) {
90018
90486
  var _a;
90019
90487
  this.removeAllPCListeners(pc);
@@ -90631,6 +91099,96 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
90631
91099
  getAudioOutputElement() {
90632
91100
  return super.getAudioOutputElement();
90633
91101
  }
91102
+ /**
91103
+ * Enable noise suppression on a call's audio track.
91104
+ *
91105
+ * @experimental
91106
+ * @group Voice
91107
+ * @param id - The Call Id
91108
+ */
91109
+ enableNoiseSuppression(id) {
91110
+ const _super = Object.create(null, {
91111
+ enableNoiseSuppression: { get: () => super.enableNoiseSuppression }
91112
+ });
91113
+ return __awaiter(this, void 0, void 0, function* () {
91114
+ return _super.enableNoiseSuppression.call(this, id);
91115
+ });
91116
+ }
91117
+ /**
91118
+ * Disable noise suppression on a call's audio track.
91119
+ *
91120
+ * @experimental
91121
+ * @group Voice
91122
+ * @param id - The Call Id
91123
+ */
91124
+ disableNoiseSuppression(id) {
91125
+ const _super = Object.create(null, {
91126
+ disableNoiseSuppression: { get: () => super.disableNoiseSuppression }
91127
+ });
91128
+ return __awaiter(this, void 0, void 0, function* () {
91129
+ return _super.disableNoiseSuppression.call(this, id);
91130
+ });
91131
+ }
91132
+ /**
91133
+ * Enable auto gain control on a call's audio track.
91134
+ *
91135
+ * @experimental
91136
+ * @group Voice
91137
+ * @param id - The Call Id
91138
+ */
91139
+ enableAutoGainControl(id) {
91140
+ const _super = Object.create(null, {
91141
+ enableAutoGainControl: { get: () => super.enableAutoGainControl }
91142
+ });
91143
+ return __awaiter(this, void 0, void 0, function* () {
91144
+ return _super.enableAutoGainControl.call(this, id);
91145
+ });
91146
+ }
91147
+ /**
91148
+ * Disable auto gain control on a call's audio track.
91149
+ *
91150
+ * @experimental
91151
+ * @group Voice
91152
+ * @param id - The Call Id
91153
+ */
91154
+ disableAutoGainControl(id) {
91155
+ const _super = Object.create(null, {
91156
+ disableAutoGainControl: { get: () => super.disableAutoGainControl }
91157
+ });
91158
+ return __awaiter(this, void 0, void 0, function* () {
91159
+ return _super.disableAutoGainControl.call(this, id);
91160
+ });
91161
+ }
91162
+ /**
91163
+ * Enable echo cancellation on a call's audio track.
91164
+ *
91165
+ * @experimental
91166
+ * @group Voice
91167
+ * @param id - The Call Id
91168
+ */
91169
+ enableEchoCancellation(id) {
91170
+ const _super = Object.create(null, {
91171
+ enableEchoCancellation: { get: () => super.enableEchoCancellation }
91172
+ });
91173
+ return __awaiter(this, void 0, void 0, function* () {
91174
+ return _super.enableEchoCancellation.call(this, id);
91175
+ });
91176
+ }
91177
+ /**
91178
+ * Disable echo cancellation on a call's audio track.
91179
+ *
91180
+ * @experimental
91181
+ * @group Voice
91182
+ * @param id - The Call Id
91183
+ */
91184
+ disableEchoCancellation(id) {
91185
+ const _super = Object.create(null, {
91186
+ disableEchoCancellation: { get: () => super.disableEchoCancellation }
91187
+ });
91188
+ return __awaiter(this, void 0, void 0, function* () {
91189
+ return _super.disableEchoCancellation.call(this, id);
91190
+ });
91191
+ }
90634
91192
  /**
90635
91193
  * Get the Leg for a call
90636
91194
  *