@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.
@@ -33784,13 +33784,6 @@
33784
33784
  initMetadataForCompanion(Companion_149);
33785
33785
  initMetadataForObject($serializer_174, '$serializer', VOID, VOID, [GeneratedSerializer]);
33786
33786
  initMetadataForClass(SessionTerminatedEvent, 'SessionTerminatedEvent', VOID, VOID, [SocketEvent], VOID, VOID, {0: $serializer_getInstance_174});
33787
- function onRTCHangup(conversationId, legId, hangup) {
33788
- }
33789
- function onRTCTransfer(conversationId, legId) {
33790
- }
33791
- function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
33792
- }
33793
- initMetadataForInterface(RTCEventListener, 'RTCEventListener');
33794
33787
  function onAudioSay() {
33795
33788
  }
33796
33789
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -33803,7 +33796,14 @@
33803
33796
  function onConversationEvent(event) {
33804
33797
  }
33805
33798
  initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
33806
- initMetadataForClass(ChatAPIImpl$1, VOID, VOID, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
33799
+ function onRTCHangup(conversationId, legId, hangup) {
33800
+ }
33801
+ function onRTCTransfer(conversationId, legId) {
33802
+ }
33803
+ function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
33804
+ }
33805
+ initMetadataForInterface(RTCEventListener, 'RTCEventListener');
33806
+ initMetadataForClass(ChatAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
33807
33807
  initMetadataForClass(ChatAPIImpl, 'ChatAPIImpl', VOID, VOID, [ChatAPI]);
33808
33808
  initMetadataForClass(LoggingLevel, 'LoggingLevel', VOID, Enum);
33809
33809
  initMetadataForObject(DefaultConfig, 'DefaultConfig');
@@ -33937,7 +33937,7 @@
33937
33937
  initMetadataForClass(HangupReason, 'HangupReason', VOID, Enum);
33938
33938
  initMetadataForClass(LegStatus, 'LegStatus', VOID, Enum);
33939
33939
  initMetadataForClass(CallDisconnectReason, 'CallDisconnectReason', VOID, Enum);
33940
- initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
33940
+ initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
33941
33941
  initMetadataForClass(VoiceAPIImpl, 'VoiceAPIImpl');
33942
33942
  initMetadataForInterface(CallEvent, 'CallEvent');
33943
33943
  initMetadataForClass(SetupOutboundCall, 'SetupOutboundCall', VOID, VOID, [CallEvent]);
@@ -34156,7 +34156,7 @@
34156
34156
  initMetadataForClass(runAfterDelay$1);
34157
34157
  //endregion
34158
34158
  function BuildKonfig() {
34159
- this.t1e_1 = '2.4.0-alpha.2';
34159
+ this.t1e_1 = '2.4.0-alpha.3';
34160
34160
  }
34161
34161
  var BuildKonfig_instance;
34162
34162
  function EmergencyCallOptions(ringbackTone) {
@@ -80243,6 +80243,24 @@
80243
80243
  function disableEarmuff(callId) {
80244
80244
  return new Promise(IVoiceClientJS$disableEarmuff$lambda(this, callId));
80245
80245
  }
80246
+ function enableNoiseSuppression(callId) {
80247
+ return new Promise(IVoiceClientJS$enableNoiseSuppression$lambda(this, callId));
80248
+ }
80249
+ function disableNoiseSuppression(callId) {
80250
+ return new Promise(IVoiceClientJS$disableNoiseSuppression$lambda(this, callId));
80251
+ }
80252
+ function enableAutoGainControl(callId) {
80253
+ return new Promise(IVoiceClientJS$enableAutoGainControl$lambda(this, callId));
80254
+ }
80255
+ function disableAutoGainControl(callId) {
80256
+ return new Promise(IVoiceClientJS$disableAutoGainControl$lambda(this, callId));
80257
+ }
80258
+ function enableEchoCancellation(callId) {
80259
+ return new Promise(IVoiceClientJS$enableEchoCancellation$lambda(this, callId));
80260
+ }
80261
+ function disableEchoCancellation(callId) {
80262
+ return new Promise(IVoiceClientJS$disableEchoCancellation$lambda(this, callId));
80263
+ }
80246
80264
  function sendDTMF(callId, digits) {
80247
80265
  return new Promise(IVoiceClientJS$sendDTMF$lambda(this, callId, digits));
80248
80266
  }
@@ -80342,7 +80360,7 @@
80342
80360
  initMetadataForObject(SessionErrorCodesJS, 'SessionErrorCodesJS');
80343
80361
  initMetadataForClass(VonageErrorJS, 'VonageErrorJS', VOID, Error);
80344
80362
  initMetadataForObject(VonageErrorTypeJsObject, 'VonageErrorTypeJsObject');
80345
- initMetadataForClass(MediaClientErrorJS, 'MediaClientErrorJS');
80363
+ initMetadataForClass(MediaClientErrorJS, 'MediaClientErrorJS', VOID, Error);
80346
80364
  initMetadataForClass(PeerConnectionNotFoundJS, 'PeerConnectionNotFoundJS', VOID, MediaClientErrorJS);
80347
80365
  initMetadataForClass(TrackNotFoundJS, 'TrackNotFoundJS', VOID, MediaClientErrorJS);
80348
80366
  initMetadataForClass(ProcessAnswerErrorJS, 'ProcessAnswerErrorJS', VOID, MediaClientErrorJS);
@@ -83132,6 +83150,8 @@
83132
83150
  return VonageErrorTypeJsObject_instance;
83133
83151
  }
83134
83152
  function MediaClientErrorJS() {
83153
+ extendThrowable(this);
83154
+ captureStack(this, MediaClientErrorJS);
83135
83155
  }
83136
83156
  protoOf(MediaClientErrorJS).r44 = function () {
83137
83157
  var tmp;
@@ -83160,20 +83180,21 @@
83160
83180
  };
83161
83181
  function PeerConnectionNotFoundJS(legId) {
83162
83182
  MediaClientErrorJS.call(this);
83183
+ captureStack(this, PeerConnectionNotFoundJS);
83163
83184
  this.legId = legId;
83164
83185
  }
83165
- protoOf(PeerConnectionNotFoundJS).s44 = function () {
83186
+ protoOf(PeerConnectionNotFoundJS).t44 = function () {
83166
83187
  return this.legId;
83167
83188
  };
83168
83189
  protoOf(PeerConnectionNotFoundJS).r8 = function () {
83169
83190
  return this.legId;
83170
83191
  };
83171
- protoOf(PeerConnectionNotFoundJS).t44 = function (legId) {
83192
+ protoOf(PeerConnectionNotFoundJS).u44 = function (legId) {
83172
83193
  return new PeerConnectionNotFoundJS(legId);
83173
83194
  };
83174
83195
  protoOf(PeerConnectionNotFoundJS).copy = function (legId, $super) {
83175
83196
  legId = legId === VOID ? this.legId : legId;
83176
- return this.t44(legId);
83197
+ return this.u44(legId);
83177
83198
  };
83178
83199
  protoOf(PeerConnectionNotFoundJS).toString = function () {
83179
83200
  return 'PeerConnectionNotFoundJS(legId=' + this.legId + ')';
@@ -83193,20 +83214,21 @@
83193
83214
  };
83194
83215
  function TrackNotFoundJS(legId) {
83195
83216
  MediaClientErrorJS.call(this);
83217
+ captureStack(this, TrackNotFoundJS);
83196
83218
  this.legId = legId;
83197
83219
  }
83198
- protoOf(TrackNotFoundJS).s44 = function () {
83220
+ protoOf(TrackNotFoundJS).t44 = function () {
83199
83221
  return this.legId;
83200
83222
  };
83201
83223
  protoOf(TrackNotFoundJS).r8 = function () {
83202
83224
  return this.legId;
83203
83225
  };
83204
- protoOf(TrackNotFoundJS).t44 = function (legId) {
83226
+ protoOf(TrackNotFoundJS).u44 = function (legId) {
83205
83227
  return new TrackNotFoundJS(legId);
83206
83228
  };
83207
83229
  protoOf(TrackNotFoundJS).copy = function (legId, $super) {
83208
83230
  legId = legId === VOID ? this.legId : legId;
83209
- return this.t44(legId);
83231
+ return this.u44(legId);
83210
83232
  };
83211
83233
  protoOf(TrackNotFoundJS).toString = function () {
83212
83234
  return 'TrackNotFoundJS(legId=' + this.legId + ')';
@@ -83227,35 +83249,36 @@
83227
83249
  function ProcessAnswerErrorJS(legId, message) {
83228
83250
  message = message === VOID ? null : message;
83229
83251
  MediaClientErrorJS.call(this);
83252
+ captureStack(this, ProcessAnswerErrorJS);
83230
83253
  this.legId = legId;
83231
- this.message = message;
83254
+ this.s44_1 = message;
83232
83255
  }
83233
- protoOf(ProcessAnswerErrorJS).s44 = function () {
83256
+ protoOf(ProcessAnswerErrorJS).t44 = function () {
83234
83257
  return this.legId;
83235
83258
  };
83236
83259
  protoOf(ProcessAnswerErrorJS).n8 = function () {
83237
- return this.message;
83260
+ return this.s44_1;
83238
83261
  };
83239
83262
  protoOf(ProcessAnswerErrorJS).r8 = function () {
83240
83263
  return this.legId;
83241
83264
  };
83242
83265
  protoOf(ProcessAnswerErrorJS).s8 = function () {
83243
- return this.message;
83266
+ return this.s44_1;
83244
83267
  };
83245
- protoOf(ProcessAnswerErrorJS).u44 = function (legId, message) {
83268
+ protoOf(ProcessAnswerErrorJS).v44 = function (legId, message) {
83246
83269
  return new ProcessAnswerErrorJS(legId, message);
83247
83270
  };
83248
83271
  protoOf(ProcessAnswerErrorJS).copy = function (legId, message, $super) {
83249
83272
  legId = legId === VOID ? this.legId : legId;
83250
- message = message === VOID ? this.message : message;
83251
- return this.u44(legId, message);
83273
+ message = message === VOID ? this.s44_1 : message;
83274
+ return this.v44(legId, message);
83252
83275
  };
83253
83276
  protoOf(ProcessAnswerErrorJS).toString = function () {
83254
- return 'ProcessAnswerErrorJS(legId=' + this.legId + ', message=' + this.message + ')';
83277
+ return 'ProcessAnswerErrorJS(legId=' + this.legId + ', message=' + this.s44_1 + ')';
83255
83278
  };
83256
83279
  protoOf(ProcessAnswerErrorJS).hashCode = function () {
83257
83280
  var result = getStringHashCode(this.legId);
83258
- result = imul(result, 31) + (this.message == null ? 0 : getStringHashCode(this.message)) | 0;
83281
+ result = imul(result, 31) + (this.s44_1 == null ? 0 : getStringHashCode(this.s44_1)) | 0;
83259
83282
  return result;
83260
83283
  };
83261
83284
  protoOf(ProcessAnswerErrorJS).equals = function (other) {
@@ -83266,33 +83289,34 @@
83266
83289
  var tmp0_other_with_cast = other instanceof ProcessAnswerErrorJS ? other : THROW_CCE();
83267
83290
  if (!(this.legId === tmp0_other_with_cast.legId))
83268
83291
  return false;
83269
- if (!(this.message == tmp0_other_with_cast.message))
83292
+ if (!(this.s44_1 == tmp0_other_with_cast.s44_1))
83270
83293
  return false;
83271
83294
  return true;
83272
83295
  };
83273
83296
  function CreateAnswerErrorJS(message) {
83274
83297
  message = message === VOID ? null : message;
83275
83298
  MediaClientErrorJS.call(this);
83276
- this.message = message;
83299
+ captureStack(this, CreateAnswerErrorJS);
83300
+ this.w44_1 = message;
83277
83301
  }
83278
83302
  protoOf(CreateAnswerErrorJS).n8 = function () {
83279
- return this.message;
83303
+ return this.w44_1;
83280
83304
  };
83281
83305
  protoOf(CreateAnswerErrorJS).r8 = function () {
83282
- return this.message;
83306
+ return this.w44_1;
83283
83307
  };
83284
- protoOf(CreateAnswerErrorJS).v44 = function (message) {
83308
+ protoOf(CreateAnswerErrorJS).x44 = function (message) {
83285
83309
  return new CreateAnswerErrorJS(message);
83286
83310
  };
83287
83311
  protoOf(CreateAnswerErrorJS).copy = function (message, $super) {
83288
- message = message === VOID ? this.message : message;
83289
- return this.v44(message);
83312
+ message = message === VOID ? this.w44_1 : message;
83313
+ return this.x44(message);
83290
83314
  };
83291
83315
  protoOf(CreateAnswerErrorJS).toString = function () {
83292
- return 'CreateAnswerErrorJS(message=' + this.message + ')';
83316
+ return 'CreateAnswerErrorJS(message=' + this.w44_1 + ')';
83293
83317
  };
83294
83318
  protoOf(CreateAnswerErrorJS).hashCode = function () {
83295
- return this.message == null ? 0 : getStringHashCode(this.message);
83319
+ return this.w44_1 == null ? 0 : getStringHashCode(this.w44_1);
83296
83320
  };
83297
83321
  protoOf(CreateAnswerErrorJS).equals = function (other) {
83298
83322
  if (this === other)
@@ -83300,33 +83324,34 @@
83300
83324
  if (!(other instanceof CreateAnswerErrorJS))
83301
83325
  return false;
83302
83326
  var tmp0_other_with_cast = other instanceof CreateAnswerErrorJS ? other : THROW_CCE();
83303
- if (!(this.message == tmp0_other_with_cast.message))
83327
+ if (!(this.w44_1 == tmp0_other_with_cast.w44_1))
83304
83328
  return false;
83305
83329
  return true;
83306
83330
  };
83307
83331
  function CreateOfferErrorJS(message) {
83308
83332
  message = message === VOID ? null : message;
83309
83333
  MediaClientErrorJS.call(this);
83310
- this.message = message;
83334
+ captureStack(this, CreateOfferErrorJS);
83335
+ this.y44_1 = message;
83311
83336
  }
83312
83337
  protoOf(CreateOfferErrorJS).n8 = function () {
83313
- return this.message;
83338
+ return this.y44_1;
83314
83339
  };
83315
83340
  protoOf(CreateOfferErrorJS).r8 = function () {
83316
- return this.message;
83341
+ return this.y44_1;
83317
83342
  };
83318
- protoOf(CreateOfferErrorJS).v44 = function (message) {
83343
+ protoOf(CreateOfferErrorJS).x44 = function (message) {
83319
83344
  return new CreateOfferErrorJS(message);
83320
83345
  };
83321
83346
  protoOf(CreateOfferErrorJS).copy = function (message, $super) {
83322
- message = message === VOID ? this.message : message;
83323
- return this.v44(message);
83347
+ message = message === VOID ? this.y44_1 : message;
83348
+ return this.x44(message);
83324
83349
  };
83325
83350
  protoOf(CreateOfferErrorJS).toString = function () {
83326
- return 'CreateOfferErrorJS(message=' + this.message + ')';
83351
+ return 'CreateOfferErrorJS(message=' + this.y44_1 + ')';
83327
83352
  };
83328
83353
  protoOf(CreateOfferErrorJS).hashCode = function () {
83329
- return this.message == null ? 0 : getStringHashCode(this.message);
83354
+ return this.y44_1 == null ? 0 : getStringHashCode(this.y44_1);
83330
83355
  };
83331
83356
  protoOf(CreateOfferErrorJS).equals = function (other) {
83332
83357
  if (this === other)
@@ -83334,7 +83359,7 @@
83334
83359
  if (!(other instanceof CreateOfferErrorJS))
83335
83360
  return false;
83336
83361
  var tmp0_other_with_cast = other instanceof CreateOfferErrorJS ? other : THROW_CCE();
83337
- if (!(this.message == tmp0_other_with_cast.message))
83362
+ if (!(this.y44_1 == tmp0_other_with_cast.y44_1))
83338
83363
  return false;
83339
83364
  return true;
83340
83365
  };
@@ -84373,66 +84398,66 @@
84373
84398
  this.coreRegion = coreRegion;
84374
84399
  this.emergencyRegion = emergencyRegion;
84375
84400
  }
84376
- protoOf(CoreClientConfigRegionJS).y44 = function () {
84401
+ protoOf(CoreClientConfigRegionJS).b45 = function () {
84377
84402
  return this.coreRegion;
84378
84403
  };
84379
- protoOf(CoreClientConfigRegionJS).z44 = function () {
84404
+ protoOf(CoreClientConfigRegionJS).c45 = function () {
84380
84405
  return this.emergencyRegion;
84381
84406
  };
84382
84407
  function CoreClientConfigJS(region) {
84383
84408
  region = region === VOID ? get_DEFAULT_REGION() : region;
84384
84409
  this.region = region;
84385
- this.a45_1 = this.region.coreRegion.j37_1;
84386
- this.b45_1 = this.region.coreRegion.k37_1;
84387
- this.c45_1 = '/v2/rtc';
84388
- this.d45_1 = true;
84389
- this.e45_1 = false;
84390
- this.f45_1 = false;
84391
- this.g45_1 = this.region.emergencyRegion.j1h_1;
84392
- this.h45_1 = this.region.emergencyRegion.k1h_1;
84393
- }
84394
- protoOf(CoreClientConfigJS).i45 = function () {
84410
+ this.d45_1 = this.region.coreRegion.j37_1;
84411
+ this.e45_1 = this.region.coreRegion.k37_1;
84412
+ this.f45_1 = '/v2/rtc';
84413
+ this.g45_1 = true;
84414
+ this.h45_1 = false;
84415
+ this.i45_1 = false;
84416
+ this.j45_1 = this.region.emergencyRegion.j1h_1;
84417
+ this.k45_1 = this.region.emergencyRegion.k1h_1;
84418
+ }
84419
+ protoOf(CoreClientConfigJS).l45 = function () {
84395
84420
  return this.region;
84396
84421
  };
84397
- protoOf(CoreClientConfigJS).j45 = function (_set____db54di) {
84398
- this.a45_1 = _set____db54di;
84399
- };
84400
- protoOf(CoreClientConfigJS).k45 = function () {
84401
- return this.a45_1;
84402
- };
84403
- protoOf(CoreClientConfigJS).l45 = function (_set____db54di) {
84404
- this.b45_1 = _set____db54di;
84405
- };
84406
- protoOf(CoreClientConfigJS).m45 = function () {
84407
- return this.b45_1;
84408
- };
84409
- protoOf(CoreClientConfigJS).n45 = function (_set____db54di) {
84410
- this.c45_1 = _set____db54di;
84411
- };
84412
- protoOf(CoreClientConfigJS).o45 = function () {
84413
- return this.c45_1;
84414
- };
84415
- protoOf(CoreClientConfigJS).p45 = function (_set____db54di) {
84422
+ protoOf(CoreClientConfigJS).m45 = function (_set____db54di) {
84416
84423
  this.d45_1 = _set____db54di;
84417
84424
  };
84418
- protoOf(CoreClientConfigJS).q45 = function () {
84425
+ protoOf(CoreClientConfigJS).n45 = function () {
84419
84426
  return this.d45_1;
84420
84427
  };
84421
- protoOf(CoreClientConfigJS).r45 = function (_set____db54di) {
84428
+ protoOf(CoreClientConfigJS).o45 = function (_set____db54di) {
84422
84429
  this.e45_1 = _set____db54di;
84423
84430
  };
84424
- protoOf(CoreClientConfigJS).s45 = function () {
84431
+ protoOf(CoreClientConfigJS).p45 = function () {
84425
84432
  return this.e45_1;
84426
84433
  };
84427
- protoOf(CoreClientConfigJS).t45 = function () {
84434
+ protoOf(CoreClientConfigJS).q45 = function (_set____db54di) {
84435
+ this.f45_1 = _set____db54di;
84436
+ };
84437
+ protoOf(CoreClientConfigJS).r45 = function () {
84428
84438
  return this.f45_1;
84429
84439
  };
84430
- protoOf(CoreClientConfigJS).u45 = function () {
84440
+ protoOf(CoreClientConfigJS).s45 = function (_set____db54di) {
84441
+ this.g45_1 = _set____db54di;
84442
+ };
84443
+ protoOf(CoreClientConfigJS).t45 = function () {
84431
84444
  return this.g45_1;
84432
84445
  };
84446
+ protoOf(CoreClientConfigJS).u45 = function (_set____db54di) {
84447
+ this.h45_1 = _set____db54di;
84448
+ };
84433
84449
  protoOf(CoreClientConfigJS).v45 = function () {
84434
84450
  return this.h45_1;
84435
84451
  };
84452
+ protoOf(CoreClientConfigJS).w45 = function () {
84453
+ return this.i45_1;
84454
+ };
84455
+ protoOf(CoreClientConfigJS).x45 = function () {
84456
+ return this.j45_1;
84457
+ };
84458
+ protoOf(CoreClientConfigJS).y45 = function () {
84459
+ return this.k45_1;
84460
+ };
84436
84461
  function TopicJS(name, tag) {
84437
84462
  this.name = name;
84438
84463
  this.tag = tag;
@@ -84440,7 +84465,7 @@
84440
84465
  protoOf(TopicJS).f2 = function () {
84441
84466
  return this.name;
84442
84467
  };
84443
- protoOf(TopicJS).w45 = function () {
84468
+ protoOf(TopicJS).z45 = function () {
84444
84469
  return this.tag;
84445
84470
  };
84446
84471
  protoOf(TopicJS).r8 = function () {
@@ -84449,13 +84474,13 @@
84449
84474
  protoOf(TopicJS).s8 = function () {
84450
84475
  return this.tag;
84451
84476
  };
84452
- protoOf(TopicJS).x45 = function (name, tag) {
84477
+ protoOf(TopicJS).a46 = function (name, tag) {
84453
84478
  return new TopicJS(name, tag);
84454
84479
  };
84455
84480
  protoOf(TopicJS).copy = function (name, tag, $super) {
84456
84481
  name = name === VOID ? this.name : name;
84457
84482
  tag = tag === VOID ? this.tag : tag;
84458
- return this.x45(name, tag);
84483
+ return this.a46(name, tag);
84459
84484
  };
84460
84485
  protoOf(TopicJS).toString = function () {
84461
84486
  return 'TopicJS(name=' + this.name + ', tag=' + this.tag + ')';
@@ -84596,10 +84621,10 @@
84596
84621
  protoOf(SessionErrorReasonJsObject).c44 = function () {
84597
84622
  return this.EXPIRED_TOKEN;
84598
84623
  };
84599
- protoOf(SessionErrorReasonJsObject).c46 = function () {
84624
+ protoOf(SessionErrorReasonJsObject).f46 = function () {
84600
84625
  return this.TRANSPORT_CLOSED;
84601
84626
  };
84602
- protoOf(SessionErrorReasonJsObject).d46 = function () {
84627
+ protoOf(SessionErrorReasonJsObject).g46 = function () {
84603
84628
  return this.PING_TIMEOUT;
84604
84629
  };
84605
84630
  protoOf(SessionErrorReasonJsObject).toString = function () {
@@ -85023,22 +85048,22 @@
85023
85048
  return _this__u8e3s4 == null ? null : equals(_this__u8e3s4, undefined) ? null : _this__u8e3s4;
85024
85049
  }
85025
85050
  function createVonageLoggerJS$1($name, $minLogLevel, $topics, $onLog) {
85026
- this.h46_1 = $onLog;
85027
- this.e46_1 = $name;
85028
- this.f46_1 = $minLogLevel;
85029
- this.g46_1 = $topics;
85051
+ this.k46_1 = $onLog;
85052
+ this.h46_1 = $name;
85053
+ this.i46_1 = $minLogLevel;
85054
+ this.j46_1 = $topics;
85030
85055
  }
85031
85056
  protoOf(createVonageLoggerJS$1).f2 = function () {
85032
- return this.e46_1;
85057
+ return this.h46_1;
85033
85058
  };
85034
85059
  protoOf(createVonageLoggerJS$1).h3p = function () {
85035
- return this.f46_1;
85060
+ return this.i46_1;
85036
85061
  };
85037
85062
  protoOf(createVonageLoggerJS$1).z3o = function () {
85038
- return this.g46_1;
85063
+ return this.j46_1;
85039
85064
  };
85040
85065
  protoOf(createVonageLoggerJS$1).onLog = function (logLevel, topic, message) {
85041
- this.h46_1(logLevel, topic, message);
85066
+ this.k46_1(logLevel, topic, message);
85042
85067
  };
85043
85068
  function vonageLogger$lambda($logger) {
85044
85069
  return function (logLevel, topic, message, _anonymous_parameter_3__qggqen) {
@@ -85127,13 +85152,13 @@
85127
85152
  this.ANSWERED = 'ANSWERED';
85128
85153
  this.COMPLETED = 'COMPLETED';
85129
85154
  }
85130
- protoOf(LegStatusJSObject).i46 = function () {
85155
+ protoOf(LegStatusJSObject).l46 = function () {
85131
85156
  return this.RINGING;
85132
85157
  };
85133
- protoOf(LegStatusJSObject).j46 = function () {
85158
+ protoOf(LegStatusJSObject).m46 = function () {
85134
85159
  return this.ANSWERED;
85135
85160
  };
85136
- protoOf(LegStatusJSObject).k46 = function () {
85161
+ protoOf(LegStatusJSObject).n46 = function () {
85137
85162
  return this.COMPLETED;
85138
85163
  };
85139
85164
  protoOf(LegStatusJSObject).toString = function () {
@@ -85157,7 +85182,7 @@
85157
85182
  function CallDisconnectReasonJSObject() {
85158
85183
  this.NetworkChange = 'networkChange';
85159
85184
  }
85160
- protoOf(CallDisconnectReasonJSObject).l46 = function () {
85185
+ protoOf(CallDisconnectReasonJSObject).o46 = function () {
85161
85186
  return this.NetworkChange;
85162
85187
  };
85163
85188
  protoOf(CallDisconnectReasonJSObject).toString = function () {
@@ -85185,19 +85210,19 @@
85185
85210
  this.LOCAL_HANGUP = 'LOCAL_HANGUP';
85186
85211
  this.MEDIA_TIMEOUT = 'MEDIA_TIMEOUT';
85187
85212
  }
85188
- protoOf(HangupReasonJSObject).m46 = function () {
85213
+ protoOf(HangupReasonJSObject).p46 = function () {
85189
85214
  return this.REMOTE_HANGUP;
85190
85215
  };
85191
- protoOf(HangupReasonJSObject).n46 = function () {
85216
+ protoOf(HangupReasonJSObject).q46 = function () {
85192
85217
  return this.REMOTE_REJECT;
85193
85218
  };
85194
- protoOf(HangupReasonJSObject).o46 = function () {
85219
+ protoOf(HangupReasonJSObject).r46 = function () {
85195
85220
  return this.REMOTE_NO_ANSWER_TIMEOUT;
85196
85221
  };
85197
- protoOf(HangupReasonJSObject).p46 = function () {
85222
+ protoOf(HangupReasonJSObject).s46 = function () {
85198
85223
  return this.LOCAL_HANGUP;
85199
85224
  };
85200
- protoOf(HangupReasonJSObject).q46 = function () {
85225
+ protoOf(HangupReasonJSObject).t46 = function () {
85201
85226
  return this.MEDIA_TIMEOUT;
85202
85227
  };
85203
85228
  protoOf(HangupReasonJSObject).toString = function () {
@@ -85723,6 +85748,252 @@
85723
85748
  return Unit_instance;
85724
85749
  };
85725
85750
  }
85751
+ function IVoiceClientJS$enableNoiseSuppression$lambda$lambda($reject, $resolve) {
85752
+ return function (err) {
85753
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
85754
+ var tmp;
85755
+ if (tmp0_safe_receiver == null) {
85756
+ tmp = null;
85757
+ } else {
85758
+ // Inline function 'kotlin.let' call
85759
+ // Inline function 'kotlin.contracts.contract' call
85760
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
85761
+ tmp = Unit_instance;
85762
+ }
85763
+ var tmp2_elvis_lhs = tmp;
85764
+ var tmp_0;
85765
+ if (tmp2_elvis_lhs == null) {
85766
+ var tmp_1;
85767
+ if (err == null) {
85768
+ tmp_1 = null;
85769
+ } else {
85770
+ // Inline function 'kotlin.let' call
85771
+ // Inline function 'kotlin.contracts.contract' call
85772
+ $reject(err);
85773
+ tmp_1 = Unit_instance;
85774
+ }
85775
+ tmp_0 = tmp_1;
85776
+ } else {
85777
+ tmp_0 = tmp2_elvis_lhs;
85778
+ }
85779
+ if (tmp_0 == null) {
85780
+ $resolve(null);
85781
+ }
85782
+ return Unit_instance;
85783
+ };
85784
+ }
85785
+ function IVoiceClientJS$enableNoiseSuppression$lambda(this$0, $callId) {
85786
+ return function (resolve, reject) {
85787
+ var tmp = this$0.media;
85788
+ tmp.enableNoiseSuppression($callId, IVoiceClientJS$enableNoiseSuppression$lambda$lambda(reject, resolve));
85789
+ return Unit_instance;
85790
+ };
85791
+ }
85792
+ function IVoiceClientJS$disableNoiseSuppression$lambda$lambda($reject, $resolve) {
85793
+ return function (err) {
85794
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
85795
+ var tmp;
85796
+ if (tmp0_safe_receiver == null) {
85797
+ tmp = null;
85798
+ } else {
85799
+ // Inline function 'kotlin.let' call
85800
+ // Inline function 'kotlin.contracts.contract' call
85801
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
85802
+ tmp = Unit_instance;
85803
+ }
85804
+ var tmp2_elvis_lhs = tmp;
85805
+ var tmp_0;
85806
+ if (tmp2_elvis_lhs == null) {
85807
+ var tmp_1;
85808
+ if (err == null) {
85809
+ tmp_1 = null;
85810
+ } else {
85811
+ // Inline function 'kotlin.let' call
85812
+ // Inline function 'kotlin.contracts.contract' call
85813
+ $reject(err);
85814
+ tmp_1 = Unit_instance;
85815
+ }
85816
+ tmp_0 = tmp_1;
85817
+ } else {
85818
+ tmp_0 = tmp2_elvis_lhs;
85819
+ }
85820
+ if (tmp_0 == null) {
85821
+ $resolve(null);
85822
+ }
85823
+ return Unit_instance;
85824
+ };
85825
+ }
85826
+ function IVoiceClientJS$disableNoiseSuppression$lambda(this$0, $callId) {
85827
+ return function (resolve, reject) {
85828
+ var tmp = this$0.media;
85829
+ tmp.disableNoiseSuppression($callId, IVoiceClientJS$disableNoiseSuppression$lambda$lambda(reject, resolve));
85830
+ return Unit_instance;
85831
+ };
85832
+ }
85833
+ function IVoiceClientJS$enableAutoGainControl$lambda$lambda($reject, $resolve) {
85834
+ return function (err) {
85835
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
85836
+ var tmp;
85837
+ if (tmp0_safe_receiver == null) {
85838
+ tmp = null;
85839
+ } else {
85840
+ // Inline function 'kotlin.let' call
85841
+ // Inline function 'kotlin.contracts.contract' call
85842
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
85843
+ tmp = Unit_instance;
85844
+ }
85845
+ var tmp2_elvis_lhs = tmp;
85846
+ var tmp_0;
85847
+ if (tmp2_elvis_lhs == null) {
85848
+ var tmp_1;
85849
+ if (err == null) {
85850
+ tmp_1 = null;
85851
+ } else {
85852
+ // Inline function 'kotlin.let' call
85853
+ // Inline function 'kotlin.contracts.contract' call
85854
+ $reject(err);
85855
+ tmp_1 = Unit_instance;
85856
+ }
85857
+ tmp_0 = tmp_1;
85858
+ } else {
85859
+ tmp_0 = tmp2_elvis_lhs;
85860
+ }
85861
+ if (tmp_0 == null) {
85862
+ $resolve(null);
85863
+ }
85864
+ return Unit_instance;
85865
+ };
85866
+ }
85867
+ function IVoiceClientJS$enableAutoGainControl$lambda(this$0, $callId) {
85868
+ return function (resolve, reject) {
85869
+ var tmp = this$0.media;
85870
+ tmp.enableAutoGainControl($callId, IVoiceClientJS$enableAutoGainControl$lambda$lambda(reject, resolve));
85871
+ return Unit_instance;
85872
+ };
85873
+ }
85874
+ function IVoiceClientJS$disableAutoGainControl$lambda$lambda($reject, $resolve) {
85875
+ return function (err) {
85876
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
85877
+ var tmp;
85878
+ if (tmp0_safe_receiver == null) {
85879
+ tmp = null;
85880
+ } else {
85881
+ // Inline function 'kotlin.let' call
85882
+ // Inline function 'kotlin.contracts.contract' call
85883
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
85884
+ tmp = Unit_instance;
85885
+ }
85886
+ var tmp2_elvis_lhs = tmp;
85887
+ var tmp_0;
85888
+ if (tmp2_elvis_lhs == null) {
85889
+ var tmp_1;
85890
+ if (err == null) {
85891
+ tmp_1 = null;
85892
+ } else {
85893
+ // Inline function 'kotlin.let' call
85894
+ // Inline function 'kotlin.contracts.contract' call
85895
+ $reject(err);
85896
+ tmp_1 = Unit_instance;
85897
+ }
85898
+ tmp_0 = tmp_1;
85899
+ } else {
85900
+ tmp_0 = tmp2_elvis_lhs;
85901
+ }
85902
+ if (tmp_0 == null) {
85903
+ $resolve(null);
85904
+ }
85905
+ return Unit_instance;
85906
+ };
85907
+ }
85908
+ function IVoiceClientJS$disableAutoGainControl$lambda(this$0, $callId) {
85909
+ return function (resolve, reject) {
85910
+ var tmp = this$0.media;
85911
+ tmp.disableAutoGainControl($callId, IVoiceClientJS$disableAutoGainControl$lambda$lambda(reject, resolve));
85912
+ return Unit_instance;
85913
+ };
85914
+ }
85915
+ function IVoiceClientJS$enableEchoCancellation$lambda$lambda($reject, $resolve) {
85916
+ return function (err) {
85917
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
85918
+ var tmp;
85919
+ if (tmp0_safe_receiver == null) {
85920
+ tmp = null;
85921
+ } else {
85922
+ // Inline function 'kotlin.let' call
85923
+ // Inline function 'kotlin.contracts.contract' call
85924
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
85925
+ tmp = Unit_instance;
85926
+ }
85927
+ var tmp2_elvis_lhs = tmp;
85928
+ var tmp_0;
85929
+ if (tmp2_elvis_lhs == null) {
85930
+ var tmp_1;
85931
+ if (err == null) {
85932
+ tmp_1 = null;
85933
+ } else {
85934
+ // Inline function 'kotlin.let' call
85935
+ // Inline function 'kotlin.contracts.contract' call
85936
+ $reject(err);
85937
+ tmp_1 = Unit_instance;
85938
+ }
85939
+ tmp_0 = tmp_1;
85940
+ } else {
85941
+ tmp_0 = tmp2_elvis_lhs;
85942
+ }
85943
+ if (tmp_0 == null) {
85944
+ $resolve(null);
85945
+ }
85946
+ return Unit_instance;
85947
+ };
85948
+ }
85949
+ function IVoiceClientJS$enableEchoCancellation$lambda(this$0, $callId) {
85950
+ return function (resolve, reject) {
85951
+ var tmp = this$0.media;
85952
+ tmp.enableEchoCancellation($callId, IVoiceClientJS$enableEchoCancellation$lambda$lambda(reject, resolve));
85953
+ return Unit_instance;
85954
+ };
85955
+ }
85956
+ function IVoiceClientJS$disableEchoCancellation$lambda$lambda($reject, $resolve) {
85957
+ return function (err) {
85958
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
85959
+ var tmp;
85960
+ if (tmp0_safe_receiver == null) {
85961
+ tmp = null;
85962
+ } else {
85963
+ // Inline function 'kotlin.let' call
85964
+ // Inline function 'kotlin.contracts.contract' call
85965
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
85966
+ tmp = Unit_instance;
85967
+ }
85968
+ var tmp2_elvis_lhs = tmp;
85969
+ var tmp_0;
85970
+ if (tmp2_elvis_lhs == null) {
85971
+ var tmp_1;
85972
+ if (err == null) {
85973
+ tmp_1 = null;
85974
+ } else {
85975
+ // Inline function 'kotlin.let' call
85976
+ // Inline function 'kotlin.contracts.contract' call
85977
+ $reject(err);
85978
+ tmp_1 = Unit_instance;
85979
+ }
85980
+ tmp_0 = tmp_1;
85981
+ } else {
85982
+ tmp_0 = tmp2_elvis_lhs;
85983
+ }
85984
+ if (tmp_0 == null) {
85985
+ $resolve(null);
85986
+ }
85987
+ return Unit_instance;
85988
+ };
85989
+ }
85990
+ function IVoiceClientJS$disableEchoCancellation$lambda(this$0, $callId) {
85991
+ return function (resolve, reject) {
85992
+ var tmp = this$0.media;
85993
+ tmp.disableEchoCancellation($callId, IVoiceClientJS$disableEchoCancellation$lambda$lambda(reject, resolve));
85994
+ return Unit_instance;
85995
+ };
85996
+ }
85726
85997
  function IVoiceClientJS$sendDTMF$lambda$lambda($reject, $resolve) {
85727
85998
  return function (err) {
85728
85999
  var tmp0_safe_receiver = err instanceof VonageError ? err : null;
@@ -85782,13 +86053,13 @@
85782
86053
  protoOf(VoiceInviteFromInfoJS).s8 = function () {
85783
86054
  return this.type;
85784
86055
  };
85785
- protoOf(VoiceInviteFromInfoJS).r46 = function (id, type) {
86056
+ protoOf(VoiceInviteFromInfoJS).u46 = function (id, type) {
85786
86057
  return new VoiceInviteFromInfoJS(id, type);
85787
86058
  };
85788
86059
  protoOf(VoiceInviteFromInfoJS).copy = function (id, type, $super) {
85789
86060
  id = id === VOID ? this.id : id;
85790
86061
  type = type === VOID ? this.type : type;
85791
- return this.r46(id, type);
86062
+ return this.u46(id, type);
85792
86063
  };
85793
86064
  protoOf(VoiceInviteFromInfoJS).toString = function () {
85794
86065
  return 'VoiceInviteFromInfoJS(id=' + this.id + ', type=' + this.type + ')';
@@ -85866,41 +86137,41 @@
85866
86137
  cause = cause === VOID ? null : cause;
85867
86138
  extendThrowable(this);
85868
86139
  captureStack(this, HttpClientErrorJS);
85869
- this.s46_1 = message;
85870
- this.t46_1 = cause;
86140
+ this.v46_1 = message;
86141
+ this.w46_1 = cause;
85871
86142
  }
85872
86143
  protoOf(HttpClientErrorJS).n8 = function () {
85873
- return this.s46_1;
86144
+ return this.v46_1;
85874
86145
  };
85875
86146
  protoOf(HttpClientErrorJS).o8 = function () {
85876
- return this.t46_1;
86147
+ return this.w46_1;
85877
86148
  };
85878
- protoOf(HttpClientErrorJS).u46 = function () {
85879
- var tmp0_elvis_lhs = this.s46_1;
86149
+ protoOf(HttpClientErrorJS).x46 = function () {
86150
+ var tmp0_elvis_lhs = this.v46_1;
85880
86151
  var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
85881
- var tmp_0 = this.t46_1;
86152
+ var tmp_0 = this.w46_1;
85882
86153
  return new HTTPClientError(tmp, tmp_0 instanceof Exception ? tmp_0 : null);
85883
86154
  };
85884
86155
  protoOf(HttpClientErrorJS).r8 = function () {
85885
- return this.s46_1;
86156
+ return this.v46_1;
85886
86157
  };
85887
86158
  protoOf(HttpClientErrorJS).s8 = function () {
85888
- return this.t46_1;
86159
+ return this.w46_1;
85889
86160
  };
85890
- protoOf(HttpClientErrorJS).v46 = function (message, cause) {
86161
+ protoOf(HttpClientErrorJS).y46 = function (message, cause) {
85891
86162
  return new HttpClientErrorJS(message, cause);
85892
86163
  };
85893
86164
  protoOf(HttpClientErrorJS).copy = function (message, cause, $super) {
85894
- message = message === VOID ? this.s46_1 : message;
85895
- cause = cause === VOID ? this.t46_1 : cause;
85896
- return this.v46(message, cause);
86165
+ message = message === VOID ? this.v46_1 : message;
86166
+ cause = cause === VOID ? this.w46_1 : cause;
86167
+ return this.y46(message, cause);
85897
86168
  };
85898
86169
  protoOf(HttpClientErrorJS).toString = function () {
85899
- return 'HttpClientErrorJS(message=' + this.s46_1 + ', cause=' + toString_0(this.t46_1) + ')';
86170
+ return 'HttpClientErrorJS(message=' + this.v46_1 + ', cause=' + toString_0(this.w46_1) + ')';
85900
86171
  };
85901
86172
  protoOf(HttpClientErrorJS).hashCode = function () {
85902
- var result = this.s46_1 == null ? 0 : getStringHashCode(this.s46_1);
85903
- result = imul(result, 31) + (this.t46_1 == null ? 0 : hashCode(this.t46_1)) | 0;
86173
+ var result = this.v46_1 == null ? 0 : getStringHashCode(this.v46_1);
86174
+ result = imul(result, 31) + (this.w46_1 == null ? 0 : hashCode(this.w46_1)) | 0;
85904
86175
  return result;
85905
86176
  };
85906
86177
  protoOf(HttpClientErrorJS).equals = function (other) {
@@ -85909,9 +86180,9 @@
85909
86180
  if (!(other instanceof HttpClientErrorJS))
85910
86181
  return false;
85911
86182
  var tmp0_other_with_cast = other instanceof HttpClientErrorJS ? other : THROW_CCE();
85912
- if (!(this.s46_1 == tmp0_other_with_cast.s46_1))
86183
+ if (!(this.v46_1 == tmp0_other_with_cast.v46_1))
85913
86184
  return false;
85914
- if (!equals(this.t46_1, tmp0_other_with_cast.t46_1))
86185
+ if (!equals(this.w46_1, tmp0_other_with_cast.w46_1))
85915
86186
  return false;
85916
86187
  return true;
85917
86188
  };
@@ -85920,7 +86191,7 @@
85920
86191
  this.statusCode = statusCode;
85921
86192
  this.body = body;
85922
86193
  }
85923
- protoOf(HttpClientResponseJS).w46 = function () {
86194
+ protoOf(HttpClientResponseJS).z46 = function () {
85924
86195
  return this.statusCode;
85925
86196
  };
85926
86197
  protoOf(HttpClientResponseJS).i40 = function () {
@@ -85932,13 +86203,13 @@
85932
86203
  protoOf(HttpClientResponseJS).s8 = function () {
85933
86204
  return this.body;
85934
86205
  };
85935
- protoOf(HttpClientResponseJS).x46 = function (statusCode, body) {
86206
+ protoOf(HttpClientResponseJS).a47 = function (statusCode, body) {
85936
86207
  return new HttpClientResponseJS(statusCode, body);
85937
86208
  };
85938
86209
  protoOf(HttpClientResponseJS).copy = function (statusCode, body, $super) {
85939
86210
  statusCode = statusCode === VOID ? this.statusCode : statusCode;
85940
86211
  body = body === VOID ? this.body : body;
85941
- return this.x46(statusCode, body);
86212
+ return this.a47(statusCode, body);
85942
86213
  };
85943
86214
  protoOf(HttpClientResponseJS).toString = function () {
85944
86215
  return 'HttpClientResponseJS(statusCode=' + this.statusCode + ', body=' + this.body + ')';
@@ -85994,16 +86265,16 @@
85994
86265
  this.RejectedElsewhere = 'RejectedElsewhere';
85995
86266
  this.RemoteTimeout = 'RemoteTimeout';
85996
86267
  }
85997
- protoOf(CancelReasonJSObject).y46 = function () {
86268
+ protoOf(CancelReasonJSObject).b47 = function () {
85998
86269
  return this.RemoteCancel;
85999
86270
  };
86000
- protoOf(CancelReasonJSObject).z46 = function () {
86271
+ protoOf(CancelReasonJSObject).c47 = function () {
86001
86272
  return this.AnsweredElsewhere;
86002
86273
  };
86003
- protoOf(CancelReasonJSObject).a47 = function () {
86274
+ protoOf(CancelReasonJSObject).d47 = function () {
86004
86275
  return this.RejectedElsewhere;
86005
86276
  };
86006
- protoOf(CancelReasonJSObject).b47 = function () {
86277
+ protoOf(CancelReasonJSObject).e47 = function () {
86007
86278
  return this.RemoteTimeout;
86008
86279
  };
86009
86280
  protoOf(CancelReasonJSObject).toString = function () {
@@ -86035,31 +86306,31 @@
86035
86306
  this.packet_cnt = packet_cnt;
86036
86307
  this.packet_loss_perc = packet_loss_perc;
86037
86308
  }
86038
- protoOf(RTCQualityJS).c47 = function () {
86309
+ protoOf(RTCQualityJS).f47 = function () {
86039
86310
  return this.mos_score;
86040
86311
  };
86041
- protoOf(RTCQualityJS).d47 = function () {
86312
+ protoOf(RTCQualityJS).g47 = function () {
86042
86313
  return this.quality_percentage;
86043
86314
  };
86044
- protoOf(RTCQualityJS).e47 = function () {
86315
+ protoOf(RTCQualityJS).h47 = function () {
86045
86316
  return this.jitter_min_var;
86046
86317
  };
86047
- protoOf(RTCQualityJS).f47 = function () {
86318
+ protoOf(RTCQualityJS).i47 = function () {
86048
86319
  return this.jitter_max_var;
86049
86320
  };
86050
- protoOf(RTCQualityJS).g47 = function () {
86321
+ protoOf(RTCQualityJS).j47 = function () {
86051
86322
  return this.jitter_loss_rate;
86052
86323
  };
86053
- protoOf(RTCQualityJS).h47 = function () {
86324
+ protoOf(RTCQualityJS).k47 = function () {
86054
86325
  return this.jitter_burst_rate;
86055
86326
  };
86056
- protoOf(RTCQualityJS).i47 = function () {
86327
+ protoOf(RTCQualityJS).l47 = function () {
86057
86328
  return this.flaw_total;
86058
86329
  };
86059
- protoOf(RTCQualityJS).j47 = function () {
86330
+ protoOf(RTCQualityJS).m47 = function () {
86060
86331
  return this.packet_cnt;
86061
86332
  };
86062
- protoOf(RTCQualityJS).k47 = function () {
86333
+ protoOf(RTCQualityJS).n47 = function () {
86063
86334
  return this.packet_loss_perc;
86064
86335
  };
86065
86336
  protoOf(RTCQualityJS).r8 = function () {
@@ -86068,28 +86339,28 @@
86068
86339
  protoOf(RTCQualityJS).s8 = function () {
86069
86340
  return this.quality_percentage;
86070
86341
  };
86071
- protoOf(RTCQualityJS).l47 = function () {
86342
+ protoOf(RTCQualityJS).o47 = function () {
86072
86343
  return this.jitter_min_var;
86073
86344
  };
86074
- protoOf(RTCQualityJS).m47 = function () {
86345
+ protoOf(RTCQualityJS).p47 = function () {
86075
86346
  return this.jitter_max_var;
86076
86347
  };
86077
- protoOf(RTCQualityJS).n47 = function () {
86348
+ protoOf(RTCQualityJS).q47 = function () {
86078
86349
  return this.jitter_loss_rate;
86079
86350
  };
86080
- protoOf(RTCQualityJS).o47 = function () {
86351
+ protoOf(RTCQualityJS).r47 = function () {
86081
86352
  return this.jitter_burst_rate;
86082
86353
  };
86083
- protoOf(RTCQualityJS).p47 = function () {
86354
+ protoOf(RTCQualityJS).s47 = function () {
86084
86355
  return this.flaw_total;
86085
86356
  };
86086
- protoOf(RTCQualityJS).q47 = function () {
86357
+ protoOf(RTCQualityJS).t47 = function () {
86087
86358
  return this.packet_cnt;
86088
86359
  };
86089
- protoOf(RTCQualityJS).r47 = function () {
86360
+ protoOf(RTCQualityJS).u47 = function () {
86090
86361
  return this.packet_loss_perc;
86091
86362
  };
86092
- 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) {
86363
+ 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) {
86093
86364
  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);
86094
86365
  };
86095
86366
  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) {
@@ -86102,7 +86373,7 @@
86102
86373
  flaw_total = flaw_total === VOID ? this.flaw_total : flaw_total;
86103
86374
  packet_cnt = packet_cnt === VOID ? this.packet_cnt : packet_cnt;
86104
86375
  packet_loss_perc = packet_loss_perc === VOID ? this.packet_loss_perc : packet_loss_perc;
86105
- 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);
86376
+ 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);
86106
86377
  };
86107
86378
  protoOf(RTCQualityJS).toString = function () {
86108
86379
  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 + ')';
@@ -86165,34 +86436,34 @@
86165
86436
  this.audioRtt = audioRtt;
86166
86437
  this.audioSentJitter = audioSentJitter;
86167
86438
  }
86168
- protoOf(RTCStatsJS).t47 = function () {
86439
+ protoOf(RTCStatsJS).w47 = function () {
86169
86440
  return this.audioRecvPackets;
86170
86441
  };
86171
- protoOf(RTCStatsJS).u47 = function () {
86442
+ protoOf(RTCStatsJS).x47 = function () {
86172
86443
  return this.audioRecvPacketsLost;
86173
86444
  };
86174
- protoOf(RTCStatsJS).v47 = function () {
86445
+ protoOf(RTCStatsJS).y47 = function () {
86175
86446
  return this.audioRecvBytes;
86176
86447
  };
86177
- protoOf(RTCStatsJS).w47 = function () {
86448
+ protoOf(RTCStatsJS).z47 = function () {
86178
86449
  return this.audioRecvJitter;
86179
86450
  };
86180
- protoOf(RTCStatsJS).x47 = function () {
86451
+ protoOf(RTCStatsJS).a48 = function () {
86181
86452
  return this.audioSentPackets;
86182
86453
  };
86183
- protoOf(RTCStatsJS).y47 = function () {
86454
+ protoOf(RTCStatsJS).b48 = function () {
86184
86455
  return this.audioSentBytes;
86185
86456
  };
86186
- protoOf(RTCStatsJS).z47 = function () {
86457
+ protoOf(RTCStatsJS).c48 = function () {
86187
86458
  return this.audioSentPacketsLost;
86188
86459
  };
86189
- protoOf(RTCStatsJS).a48 = function () {
86460
+ protoOf(RTCStatsJS).d48 = function () {
86190
86461
  return this.audioRtt;
86191
86462
  };
86192
- protoOf(RTCStatsJS).b48 = function () {
86463
+ protoOf(RTCStatsJS).e48 = function () {
86193
86464
  return this.audioSentJitter;
86194
86465
  };
86195
- protoOf(RTCStatsJS).c48 = function () {
86466
+ protoOf(RTCStatsJS).f48 = function () {
86196
86467
  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));
86197
86468
  };
86198
86469
  protoOf(RTCStatsJS).r8 = function () {
@@ -86201,28 +86472,28 @@
86201
86472
  protoOf(RTCStatsJS).s8 = function () {
86202
86473
  return this.audioRecvPacketsLost;
86203
86474
  };
86204
- protoOf(RTCStatsJS).l47 = function () {
86475
+ protoOf(RTCStatsJS).o47 = function () {
86205
86476
  return this.audioRecvBytes;
86206
86477
  };
86207
- protoOf(RTCStatsJS).m47 = function () {
86478
+ protoOf(RTCStatsJS).p47 = function () {
86208
86479
  return this.audioRecvJitter;
86209
86480
  };
86210
- protoOf(RTCStatsJS).n47 = function () {
86481
+ protoOf(RTCStatsJS).q47 = function () {
86211
86482
  return this.audioSentPackets;
86212
86483
  };
86213
- protoOf(RTCStatsJS).o47 = function () {
86484
+ protoOf(RTCStatsJS).r47 = function () {
86214
86485
  return this.audioSentBytes;
86215
86486
  };
86216
- protoOf(RTCStatsJS).p47 = function () {
86487
+ protoOf(RTCStatsJS).s47 = function () {
86217
86488
  return this.audioSentPacketsLost;
86218
86489
  };
86219
- protoOf(RTCStatsJS).q47 = function () {
86490
+ protoOf(RTCStatsJS).t47 = function () {
86220
86491
  return this.audioRtt;
86221
86492
  };
86222
- protoOf(RTCStatsJS).r47 = function () {
86493
+ protoOf(RTCStatsJS).u47 = function () {
86223
86494
  return this.audioSentJitter;
86224
86495
  };
86225
- protoOf(RTCStatsJS).d48 = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
86496
+ protoOf(RTCStatsJS).g48 = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
86226
86497
  return new RTCStatsJS(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
86227
86498
  };
86228
86499
  protoOf(RTCStatsJS).copy = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, $super) {
@@ -86235,7 +86506,7 @@
86235
86506
  audioSentPacketsLost = audioSentPacketsLost === VOID ? this.audioSentPacketsLost : audioSentPacketsLost;
86236
86507
  audioRtt = audioRtt === VOID ? this.audioRtt : audioRtt;
86237
86508
  audioSentJitter = audioSentJitter === VOID ? this.audioSentJitter : audioSentJitter;
86238
- return this.d48(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
86509
+ return this.g48(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
86239
86510
  };
86240
86511
  protoOf(RTCStatsJS).toString = function () {
86241
86512
  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) + ')';
@@ -86354,7 +86625,7 @@
86354
86625
  };
86355
86626
  }
86356
86627
  function HttpClientJSAdapter$1($js) {
86357
- this.e48_1 = $js;
86628
+ this.h48_1 = $js;
86358
86629
  }
86359
86630
  protoOf(HttpClientJSAdapter$1).s3q = function (verb, url, headers, body, callback) {
86360
86631
  var tmp = verb.toString();
@@ -86362,7 +86633,7 @@
86362
86633
  // Inline function 'kotlin.contracts.contract' call
86363
86634
  // Inline function 'vonage.<no name provided>.request.<anonymous>' call
86364
86635
  var tmp_0 = fromMap(JSON, headers);
86365
- this.e48_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
86636
+ this.h48_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
86366
86637
  };
86367
86638
  function SocketClientJSAdapter$o$emit$lambda($callback) {
86368
86639
  return function (err, response) {
@@ -86380,11 +86651,11 @@
86380
86651
  };
86381
86652
  }
86382
86653
  function SocketClientJSAdapter$adapter$1($js) {
86383
- this.g48_1 = $js;
86384
- this.f48_1 = null;
86654
+ this.j48_1 = $js;
86655
+ this.i48_1 = null;
86385
86656
  }
86386
86657
  protoOf(SocketClientJSAdapter$adapter$1).w3q = function (_set____db54di) {
86387
- this.f48_1 = _set____db54di;
86658
+ this.i48_1 = _set____db54di;
86388
86659
  };
86389
86660
  protoOf(SocketClientJSAdapter$adapter$1).x3q = function (type, msg, callback) {
86390
86661
  var tmp;
@@ -86397,28 +86668,28 @@
86397
86668
  tmp = fromMap(JSON, msg);
86398
86669
  }
86399
86670
  var tmp_0 = tmp;
86400
- this.g48_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
86671
+ this.j48_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
86401
86672
  };
86402
86673
  protoOf(SocketClientJSAdapter$adapter$1).y3q = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query) {
86403
- this.g48_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
86674
+ this.j48_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
86404
86675
  };
86405
86676
  protoOf(SocketClientJSAdapter$adapter$1).z3q = function () {
86406
- this.g48_1.disconnect();
86677
+ this.j48_1.disconnect();
86407
86678
  };
86408
86679
  protoOf(SocketClientJSAdapter$adapter$1).a3r = function (sessionId, token) {
86409
- this.g48_1.setConnectParamsSocketConfig(sessionId, token);
86680
+ this.j48_1.setConnectParamsSocketConfig(sessionId, token);
86410
86681
  };
86411
86682
  protoOf(SocketClientJSAdapter$adapter$1).b3r = function (sessionId) {
86412
- this.g48_1.setSocketSessionId(sessionId);
86683
+ this.j48_1.setSocketSessionId(sessionId);
86413
86684
  };
86414
86685
  protoOf(SocketClientJSAdapter$adapter$1).c3r = function (milliseconds, callback) {
86415
- this.g48_1.startVerifyResponseTimer(milliseconds, callback);
86686
+ this.j48_1.startVerifyResponseTimer(milliseconds, callback);
86416
86687
  };
86417
86688
  function SocketClientJSAdapter$1($adapter) {
86418
- this.h48_1 = $adapter;
86689
+ this.k48_1 = $adapter;
86419
86690
  }
86420
86691
  protoOf(SocketClientJSAdapter$1).didReceiveNewSocketEvent = function (body) {
86421
- var tmp0_safe_receiver = this.h48_1.f48_1;
86692
+ var tmp0_safe_receiver = this.k48_1.i48_1;
86422
86693
  if (tmp0_safe_receiver == null)
86423
86694
  ;
86424
86695
  else {
@@ -86450,31 +86721,31 @@
86450
86721
  var it = tmp1_safe_receiver;
86451
86722
  switch (reason) {
86452
86723
  case 'NXMCORE_REASON_SERVER_DISCONNECTED':
86453
- var tmp1_safe_receiver_0 = this.h48_1.f48_1;
86724
+ var tmp1_safe_receiver_0 = this.k48_1.i48_1;
86454
86725
  if (tmp1_safe_receiver_0 == null) ; else {
86455
86726
  tmp1_safe_receiver_0.w3r(it, SocketConnectionFailedReason_ServerDisconnected_getInstance(), timestamp, retryNumber);
86456
86727
  }
86457
86728
  break;
86458
86729
  case 'NXMCORE_REASON_CLIENT_DISCONNECTED':
86459
- var tmp2_safe_receiver = this.h48_1.f48_1;
86730
+ var tmp2_safe_receiver = this.k48_1.i48_1;
86460
86731
  if (tmp2_safe_receiver == null) ; else {
86461
86732
  tmp2_safe_receiver.w3r(it, SocketConnectionFailedReason_ClientDisconnected_getInstance(), timestamp, retryNumber);
86462
86733
  }
86463
86734
  break;
86464
86735
  case 'NXMCORE_CLIENT_NETWORK_ERROR':
86465
- var tmp3_safe_receiver = this.h48_1.f48_1;
86736
+ var tmp3_safe_receiver = this.k48_1.i48_1;
86466
86737
  if (tmp3_safe_receiver == null) ; else {
86467
86738
  tmp3_safe_receiver.w3r(it, SocketConnectionFailedReason_ClientNetworkError_getInstance(), timestamp, retryNumber);
86468
86739
  }
86469
86740
  break;
86470
86741
  case 'NXMCORE_REASON_PING_TIMEOUT':
86471
- var tmp4_safe_receiver = this.h48_1.f48_1;
86742
+ var tmp4_safe_receiver = this.k48_1.i48_1;
86472
86743
  if (tmp4_safe_receiver == null) ; else {
86473
86744
  tmp4_safe_receiver.w3r(it, SocketConnectionFailedReason_PingTimeout_getInstance(), timestamp, retryNumber);
86474
86745
  }
86475
86746
  break;
86476
86747
  default:
86477
- var tmp5_safe_receiver = this.h48_1.f48_1;
86748
+ var tmp5_safe_receiver = this.k48_1.i48_1;
86478
86749
  if (tmp5_safe_receiver == null) ; else {
86479
86750
  tmp5_safe_receiver.w3r(it, null, timestamp, retryNumber);
86480
86751
  }
@@ -86506,6 +86777,18 @@
86506
86777
  return Unit_instance;
86507
86778
  };
86508
86779
  }
86780
+ function MediaClientJSAdapter$o$enableNoiseSuppression$lambda($closure) {
86781
+ return function (it) {
86782
+ $closure(it == null ? null : it.r44());
86783
+ return Unit_instance;
86784
+ };
86785
+ }
86786
+ function MediaClientJSAdapter$o$disableNoiseSuppression$lambda($closure) {
86787
+ return function (it) {
86788
+ $closure(it == null ? null : it.r44());
86789
+ return Unit_instance;
86790
+ };
86791
+ }
86509
86792
  function MediaClientJSAdapter$o$enableEarmuff$lambda($closure) {
86510
86793
  return function (it) {
86511
86794
  $closure(it == null ? null : it.r44());
@@ -86525,65 +86808,67 @@
86525
86808
  };
86526
86809
  }
86527
86810
  function MediaClientJSAdapter$adapter$1($js) {
86528
- this.j48_1 = $js;
86529
- this.i48_1 = null;
86811
+ this.m48_1 = $js;
86812
+ this.l48_1 = null;
86530
86813
  }
86531
86814
  protoOf(MediaClientJSAdapter$adapter$1).d1j = function (_set____db54di) {
86532
- this.i48_1 = _set____db54di;
86815
+ this.l48_1 = _set____db54di;
86533
86816
  };
86534
86817
  protoOf(MediaClientJSAdapter$adapter$1).c1j = function () {
86535
- return this.i48_1;
86818
+ return this.l48_1;
86536
86819
  };
86537
86820
  protoOf(MediaClientJSAdapter$adapter$1).b1k = function (closure) {
86538
- this.j48_1.enableMediaOutbound(closure);
86821
+ this.m48_1.enableMediaOutbound(closure);
86539
86822
  };
86540
- protoOf(MediaClientJSAdapter$adapter$1).k48 = function (rtcId, offerSDP, closure) {
86541
- this.j48_1.enableMediaInbound(rtcId, offerSDP, closure);
86823
+ protoOf(MediaClientJSAdapter$adapter$1).n48 = function (rtcId, offerSDP, closure) {
86824
+ this.m48_1.enableMediaInbound(rtcId, offerSDP, closure);
86542
86825
  };
86543
86826
  protoOf(MediaClientJSAdapter$adapter$1).f3r = function (rtcId, offerSDP, closure) {
86544
- return this.k48(rtcId, offerSDP, closure);
86827
+ return this.n48(rtcId, offerSDP, closure);
86545
86828
  };
86546
86829
  protoOf(MediaClientJSAdapter$adapter$1).p1j = function (id, sdp, closure) {
86547
- this.j48_1.processAnswer(id, sdp, MediaClientJSAdapter$o$processAnswer$lambda(closure));
86830
+ this.m48_1.processAnswer(id, sdp, MediaClientJSAdapter$o$processAnswer$lambda(closure));
86548
86831
  };
86549
86832
  protoOf(MediaClientJSAdapter$adapter$1).a1k = function (id, closure) {
86550
- this.j48_1.disableMedia(id, MediaClientJSAdapter$o$disableMedia$lambda(closure));
86833
+ this.m48_1.disableMedia(id, MediaClientJSAdapter$o$disableMedia$lambda(closure));
86551
86834
  };
86552
86835
  protoOf(MediaClientJSAdapter$adapter$1).z1j = function (id, closure) {
86553
- this.j48_1.mute(id, MediaClientJSAdapter$o$mute$lambda(closure));
86836
+ this.m48_1.mute(id, MediaClientJSAdapter$o$mute$lambda(closure));
86554
86837
  };
86555
86838
  protoOf(MediaClientJSAdapter$adapter$1).x1j = function (id, closure) {
86556
- this.j48_1.unmute(id, MediaClientJSAdapter$o$unmute$lambda(closure));
86839
+ this.m48_1.unmute(id, MediaClientJSAdapter$o$unmute$lambda(closure));
86557
86840
  };
86558
86841
  protoOf(MediaClientJSAdapter$adapter$1).g3r = function (id, closure) {
86842
+ this.m48_1.enableNoiseSuppression(id, MediaClientJSAdapter$o$enableNoiseSuppression$lambda(closure));
86559
86843
  };
86560
86844
  protoOf(MediaClientJSAdapter$adapter$1).h3r = function (id, closure) {
86845
+ this.m48_1.disableNoiseSuppression(id, MediaClientJSAdapter$o$disableNoiseSuppression$lambda(closure));
86561
86846
  };
86562
86847
  protoOf(MediaClientJSAdapter$adapter$1).v1j = function (id, closure) {
86563
- this.j48_1.enableEarmuff(id, MediaClientJSAdapter$o$enableEarmuff$lambda(closure));
86848
+ this.m48_1.enableEarmuff(id, MediaClientJSAdapter$o$enableEarmuff$lambda(closure));
86564
86849
  };
86565
86850
  protoOf(MediaClientJSAdapter$adapter$1).t1j = function (id, closure) {
86566
- this.j48_1.disableEarmuff(id, MediaClientJSAdapter$o$disableEarmuff$lambda(closure));
86851
+ this.m48_1.disableEarmuff(id, MediaClientJSAdapter$o$disableEarmuff$lambda(closure));
86567
86852
  };
86568
86853
  protoOf(MediaClientJSAdapter$adapter$1).q1j = function (id, interval, closure) {
86569
- this.j48_1.enableRtcStatsCollection(id, interval, MediaClientJSAdapter$o$enableRtcStatsCollection$lambda(closure));
86854
+ this.m48_1.enableRtcStatsCollection(id, interval, MediaClientJSAdapter$o$enableRtcStatsCollection$lambda(closure));
86570
86855
  };
86571
86856
  protoOf(MediaClientJSAdapter$adapter$1).i3r = function (id) {
86572
- return coreConnectionState(this.j48_1.getMediaConnectionState(id));
86857
+ return coreConnectionState(this.m48_1.getMediaConnectionState(id));
86573
86858
  };
86574
86859
  function MediaClientJSAdapter$1($adapter) {
86575
- this.l48_1 = $adapter;
86860
+ this.o48_1 = $adapter;
86576
86861
  }
86577
86862
  protoOf(MediaClientJSAdapter$1).onRtcStats = function (id, rtcStats) {
86578
- var tmp0_safe_receiver = this.l48_1.i48_1;
86863
+ var tmp0_safe_receiver = this.o48_1.l48_1;
86579
86864
  if (tmp0_safe_receiver == null)
86580
86865
  ;
86581
86866
  else {
86582
- tmp0_safe_receiver.g1j(id, rtcStats.c48());
86867
+ tmp0_safe_receiver.g1j(id, rtcStats.f48());
86583
86868
  }
86584
86869
  };
86585
86870
  protoOf(MediaClientJSAdapter$1).onConnectionChange = function (id, state) {
86586
- var tmp0_safe_receiver = this.l48_1.i48_1;
86871
+ var tmp0_safe_receiver = this.o48_1.l48_1;
86587
86872
  if (tmp0_safe_receiver == null)
86588
86873
  ;
86589
86874
  else {
@@ -86591,7 +86876,7 @@
86591
86876
  }
86592
86877
  };
86593
86878
  protoOf(MediaClientJSAdapter$1).onMediaError = function (id, error) {
86594
- var tmp0_safe_receiver = this.l48_1.i48_1;
86879
+ var tmp0_safe_receiver = this.o48_1.l48_1;
86595
86880
  if (tmp0_safe_receiver == null)
86596
86881
  ;
86597
86882
  else {
@@ -86989,10 +87274,10 @@
86989
87274
  this.callId = callId;
86990
87275
  this.reconnectToken = reconnectToken;
86991
87276
  }
86992
- protoOf(EmergencyCallDataJS).m48 = function () {
87277
+ protoOf(EmergencyCallDataJS).p48 = function () {
86993
87278
  return this.callId;
86994
87279
  };
86995
- protoOf(EmergencyCallDataJS).n48 = function () {
87280
+ protoOf(EmergencyCallDataJS).q48 = function () {
86996
87281
  return this.reconnectToken;
86997
87282
  };
86998
87283
  protoOf(EmergencyCallDataJS).r8 = function () {
@@ -87001,13 +87286,13 @@
87001
87286
  protoOf(EmergencyCallDataJS).s8 = function () {
87002
87287
  return this.reconnectToken;
87003
87288
  };
87004
- protoOf(EmergencyCallDataJS).x45 = function (callId, reconnectToken) {
87289
+ protoOf(EmergencyCallDataJS).a46 = function (callId, reconnectToken) {
87005
87290
  return new EmergencyCallDataJS(callId, reconnectToken);
87006
87291
  };
87007
87292
  protoOf(EmergencyCallDataJS).copy = function (callId, reconnectToken, $super) {
87008
87293
  callId = callId === VOID ? this.callId : callId;
87009
87294
  reconnectToken = reconnectToken === VOID ? this.reconnectToken : reconnectToken;
87010
- return this.x45(callId, reconnectToken);
87295
+ return this.a46(callId, reconnectToken);
87011
87296
  };
87012
87297
  protoOf(EmergencyCallDataJS).toString = function () {
87013
87298
  return 'EmergencyCallDataJS(callId=' + this.callId + ', reconnectToken=' + this.reconnectToken + ')';
@@ -87160,12 +87445,12 @@
87160
87445
  protoOf(Some).r8 = function () {
87161
87446
  return this.value;
87162
87447
  };
87163
- protoOf(Some).o48 = function (value) {
87448
+ protoOf(Some).r48 = function (value) {
87164
87449
  return new Some(value);
87165
87450
  };
87166
87451
  protoOf(Some).copy = function (value, $super) {
87167
87452
  value = value === VOID ? this.value : value;
87168
- return this.o48(value);
87453
+ return this.r48(value);
87169
87454
  };
87170
87455
  protoOf(Some).toString = function () {
87171
87456
  return 'Some(value=' + toString_0(this.value) + ')';
@@ -87378,6 +87663,12 @@
87378
87663
  protoOf(CombinedClientJS).unmute = unmute;
87379
87664
  protoOf(CombinedClientJS).enableEarmuff = enableEarmuff;
87380
87665
  protoOf(CombinedClientJS).disableEarmuff = disableEarmuff;
87666
+ protoOf(CombinedClientJS).enableNoiseSuppression = enableNoiseSuppression;
87667
+ protoOf(CombinedClientJS).disableNoiseSuppression = disableNoiseSuppression;
87668
+ protoOf(CombinedClientJS).enableAutoGainControl = enableAutoGainControl;
87669
+ protoOf(CombinedClientJS).disableAutoGainControl = disableAutoGainControl;
87670
+ protoOf(CombinedClientJS).enableEchoCancellation = enableEchoCancellation;
87671
+ protoOf(CombinedClientJS).disableEchoCancellation = disableEchoCancellation;
87381
87672
  protoOf(CombinedClientJS).sendDTMF = sendDTMF;
87382
87673
  protoOf(CombinedClientJS).emergencyCall = emergencyCall;
87383
87674
  protoOf(CombinedClientJS).reconnectEmergencyCall = reconnectEmergencyCall;
@@ -87401,41 +87692,50 @@
87401
87692
  defineProp(protoOf(PresentingOrderJS), 'ordinal', protoOf(PresentingOrderJS).g2);
87402
87693
  defineProp(protoOf(OrderByJS), 'name', protoOf(OrderByJS).f2);
87403
87694
  defineProp(protoOf(OrderByJS), 'ordinal', protoOf(OrderByJS).g2);
87695
+ defineProp(protoOf(ProcessAnswerErrorJS), 'message', function () {
87696
+ return this.n8();
87697
+ });
87698
+ defineProp(protoOf(CreateAnswerErrorJS), 'message', function () {
87699
+ return this.n8();
87700
+ });
87701
+ defineProp(protoOf(CreateOfferErrorJS), 'message', function () {
87702
+ return this.n8();
87703
+ });
87404
87704
  defineProp(protoOf(CoreClientConfigRegionJS), 'name', protoOf(CoreClientConfigRegionJS).f2);
87405
87705
  defineProp(protoOf(CoreClientConfigRegionJS), 'ordinal', protoOf(CoreClientConfigRegionJS).g2);
87406
87706
  defineProp(protoOf(CoreClientConfigJS), 'apiUrl', function () {
87407
- return this.k45();
87707
+ return this.n45();
87408
87708
  }, function (value) {
87409
- this.j45(value);
87709
+ this.m45(value);
87410
87710
  });
87411
87711
  defineProp(protoOf(CoreClientConfigJS), 'websocketUrl', function () {
87412
- return this.m45();
87712
+ return this.p45();
87413
87713
  }, function (value) {
87414
- this.l45(value);
87714
+ this.o45(value);
87415
87715
  });
87416
87716
  defineProp(protoOf(CoreClientConfigJS), 'websocketPath', function () {
87417
- return this.o45();
87717
+ return this.r45();
87418
87718
  }, function (value) {
87419
- this.n45(value);
87719
+ this.q45(value);
87420
87720
  });
87421
87721
  defineProp(protoOf(CoreClientConfigJS), 'rtcStatsTelemetry', function () {
87422
- return this.q45();
87722
+ return this.t45();
87423
87723
  }, function (value) {
87424
- this.p45(value);
87724
+ this.s45(value);
87425
87725
  });
87426
87726
  defineProp(protoOf(CoreClientConfigJS), 'autoReconnectMedia', function () {
87427
- return this.s45();
87727
+ return this.v45();
87428
87728
  }, function (value) {
87429
- this.r45(value);
87729
+ this.u45(value);
87430
87730
  });
87431
87731
  defineProp(protoOf(CoreClientConfigJS), 'noiseSuppression', function () {
87432
- return this.t45();
87732
+ return this.w45();
87433
87733
  });
87434
87734
  defineProp(protoOf(CoreClientConfigJS), 'emergencyPrimaryRegion', function () {
87435
- return this.u45();
87735
+ return this.x45();
87436
87736
  });
87437
87737
  defineProp(protoOf(CoreClientConfigJS), 'emergencySecondaryRegion', function () {
87438
- return this.v45();
87738
+ return this.y45();
87439
87739
  });
87440
87740
  defineProp(protoOf(Topics), 'name', protoOf(Topics).f2);
87441
87741
  defineProp(protoOf(Topics), 'ordinal', protoOf(Topics).g2);
@@ -87456,7 +87756,7 @@
87456
87756
  defineProp(protoOf(HttpClientErrorJS), 'cause', function () {
87457
87757
  return this.o8();
87458
87758
  });
87459
- defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).u46);
87759
+ defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).x46);
87460
87760
  protoOf(HttpClientJSAdapter$1).t3q = clear;
87461
87761
  //endregion
87462
87762
  //region block: init
@@ -92348,17 +92648,167 @@
92348
92648
  this.closePeerConnection(pc);
92349
92649
  closure(null);
92350
92650
  }
92651
+ enableNoiseSuppression(id, closure) {
92652
+ return __awaiter(this, void 0, void 0, function* () {
92653
+ try {
92654
+ yield this.setAudioConstraint(id, 'noiseSuppression', true);
92655
+ closure(null);
92656
+ }
92657
+ catch (_a) {
92658
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
92659
+ }
92660
+ });
92661
+ }
92351
92662
  disableNoiseSuppression(id, closure) {
92352
- console.log(id);
92353
- // TODO: Not yet implemented
92354
- closure(null);
92663
+ return __awaiter(this, void 0, void 0, function* () {
92664
+ try {
92665
+ yield this.setAudioConstraint(id, 'noiseSuppression', false);
92666
+ closure(null);
92667
+ }
92668
+ catch (_a) {
92669
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
92670
+ }
92671
+ });
92355
92672
  }
92356
- enableNoiseSuppression(id, closure) {
92357
- console.log(id);
92358
- // TODO: Not yet implemented
92359
- closure(null);
92673
+ enableAutoGainControl(id, closure) {
92674
+ return __awaiter(this, void 0, void 0, function* () {
92675
+ try {
92676
+ yield this.setAudioConstraint(id, 'autoGainControl', true);
92677
+ closure(null);
92678
+ }
92679
+ catch (_a) {
92680
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
92681
+ }
92682
+ });
92683
+ }
92684
+ disableAutoGainControl(id, closure) {
92685
+ return __awaiter(this, void 0, void 0, function* () {
92686
+ try {
92687
+ yield this.setAudioConstraint(id, 'autoGainControl', false);
92688
+ closure(null);
92689
+ }
92690
+ catch (_a) {
92691
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
92692
+ }
92693
+ });
92694
+ }
92695
+ enableEchoCancellation(id, closure) {
92696
+ return __awaiter(this, void 0, void 0, function* () {
92697
+ try {
92698
+ yield this.setAudioConstraint(id, 'echoCancellation', true);
92699
+ closure(null);
92700
+ }
92701
+ catch (_a) {
92702
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
92703
+ }
92704
+ });
92705
+ }
92706
+ disableEchoCancellation(id, closure) {
92707
+ return __awaiter(this, void 0, void 0, function* () {
92708
+ try {
92709
+ yield this.setAudioConstraint(id, 'echoCancellation', false);
92710
+ closure(null);
92711
+ }
92712
+ catch (_a) {
92713
+ closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
92714
+ }
92715
+ });
92360
92716
  }
92361
92717
  // Private Methods
92718
+ /**
92719
+ * Sets an audio processing constraint on the active call's audio track.
92720
+ *
92721
+ * Strategy:
92722
+ * 1. Try {@link MediaStreamTrack.applyConstraints} with all three audio
92723
+ * processing flags on the existing track (in-place, no replacement).
92724
+ * 2. If the constraint didn't take effect, stop the old track to release
92725
+ * the browser's audio capture pipeline, then acquire a fresh track via
92726
+ * {@link MediaDevices.getUserMedia} using {@code exact} for every flag
92727
+ * and swap it onto the {@link RTCRtpSender} with
92728
+ * {@link RTCRtpSender.replaceTrack}.
92729
+ *
92730
+ * Stopping the old track before getUserMedia is critical: Chrome reuses the
92731
+ * active audio pipeline and silently ignores constraint changes otherwise.
92732
+ * Using {@code exact} for all three flags prevents the browser from treating
92733
+ * non-target constraints as {@code ideal} (preferences) and dropping them.
92734
+ */
92735
+ setAudioConstraint(id, constraintName, value) {
92736
+ var _a, _b, _c;
92737
+ return __awaiter(this, void 0, void 0, function* () {
92738
+ const pc = this.pcs.get(id);
92739
+ if (!pc) {
92740
+ throw new Error('Peer connection not found');
92741
+ }
92742
+ const sender = pc.getSenders().find((s) => { var _a; return ((_a = s.track) === null || _a === void 0 ? void 0 : _a.kind) === 'audio'; });
92743
+ if (!(sender === null || sender === void 0 ? void 0 : sender.track)) {
92744
+ throw new Error('Audio sender track not found');
92745
+ }
92746
+ const oldTrack = sender.track;
92747
+ const currentSettings = oldTrack.getSettings();
92748
+ const wasEnabled = oldTrack.enabled;
92749
+ // Build the full desired state: preserve non-target constraints, set target.
92750
+ const desired = {
92751
+ autoGainControl: (_a = currentSettings.autoGainControl) !== null && _a !== void 0 ? _a : true,
92752
+ echoCancellation: (_b = currentSettings.echoCancellation) !== null && _b !== void 0 ? _b : true,
92753
+ noiseSuppression: (_c = currentSettings.noiseSuppression) !== null && _c !== void 0 ? _c : true
92754
+ };
92755
+ desired[constraintName] = value;
92756
+ // Tier 1 – applyConstraints (in-place, no track replacement)
92757
+ try {
92758
+ yield oldTrack.applyConstraints({
92759
+ autoGainControl: desired.autoGainControl,
92760
+ echoCancellation: desired.echoCancellation,
92761
+ noiseSuppression: desired.noiseSuppression
92762
+ });
92763
+ const afterSettings = oldTrack.getSettings();
92764
+ if (afterSettings[constraintName] === value) {
92765
+ return;
92766
+ }
92767
+ }
92768
+ catch (_d) {
92769
+ // applyConstraints not supported or overconstrained – fall through
92770
+ }
92771
+ // Tier 2 – Stop old track → getUserMedia (exact) → replaceTrack
92772
+ // Stopping first forces the browser to create a fresh audio pipeline.
92773
+ oldTrack.stop();
92774
+ const exactConstraints = {
92775
+ autoGainControl: { exact: desired.autoGainControl },
92776
+ echoCancellation: { exact: desired.echoCancellation },
92777
+ noiseSuppression: { exact: desired.noiseSuppression }
92778
+ };
92779
+ if (currentSettings.deviceId) {
92780
+ exactConstraints.deviceId = { exact: currentSettings.deviceId };
92781
+ }
92782
+ let newStream;
92783
+ try {
92784
+ newStream = yield navigator.mediaDevices.getUserMedia({
92785
+ audio: exactConstraints,
92786
+ video: false
92787
+ });
92788
+ }
92789
+ catch (_e) {
92790
+ // Fallback: if exact constraints are overconstrained, use ideal values
92791
+ // so the call never loses audio.
92792
+ const idealConstraints = {
92793
+ autoGainControl: desired.autoGainControl,
92794
+ echoCancellation: desired.echoCancellation,
92795
+ noiseSuppression: desired.noiseSuppression
92796
+ };
92797
+ if (currentSettings.deviceId) {
92798
+ idealConstraints.deviceId = { exact: currentSettings.deviceId };
92799
+ }
92800
+ newStream = yield navigator.mediaDevices.getUserMedia({
92801
+ audio: idealConstraints,
92802
+ video: false
92803
+ });
92804
+ }
92805
+ const newTrack = newStream.getAudioTracks()[0];
92806
+ if (!newTrack)
92807
+ throw new Error('Failed to get new audio track');
92808
+ newTrack.enabled = wasEnabled;
92809
+ yield sender.replaceTrack(newTrack);
92810
+ });
92811
+ }
92362
92812
  closePeerConnection(pc) {
92363
92813
  var _a;
92364
92814
  this.removeAllPCListeners(pc);
@@ -97043,6 +97493,96 @@
97043
97493
  getAudioOutputElement() {
97044
97494
  return super.getAudioOutputElement();
97045
97495
  }
97496
+ /**
97497
+ * Enable noise suppression on a call's audio track.
97498
+ *
97499
+ * @experimental
97500
+ * @group Voice
97501
+ * @param id - The Call Id
97502
+ */
97503
+ enableNoiseSuppression(id) {
97504
+ const _super = Object.create(null, {
97505
+ enableNoiseSuppression: { get: () => super.enableNoiseSuppression }
97506
+ });
97507
+ return __awaiter(this, void 0, void 0, function* () {
97508
+ return _super.enableNoiseSuppression.call(this, id);
97509
+ });
97510
+ }
97511
+ /**
97512
+ * Disable noise suppression on a call's audio track.
97513
+ *
97514
+ * @experimental
97515
+ * @group Voice
97516
+ * @param id - The Call Id
97517
+ */
97518
+ disableNoiseSuppression(id) {
97519
+ const _super = Object.create(null, {
97520
+ disableNoiseSuppression: { get: () => super.disableNoiseSuppression }
97521
+ });
97522
+ return __awaiter(this, void 0, void 0, function* () {
97523
+ return _super.disableNoiseSuppression.call(this, id);
97524
+ });
97525
+ }
97526
+ /**
97527
+ * Enable auto gain control on a call's audio track.
97528
+ *
97529
+ * @experimental
97530
+ * @group Voice
97531
+ * @param id - The Call Id
97532
+ */
97533
+ enableAutoGainControl(id) {
97534
+ const _super = Object.create(null, {
97535
+ enableAutoGainControl: { get: () => super.enableAutoGainControl }
97536
+ });
97537
+ return __awaiter(this, void 0, void 0, function* () {
97538
+ return _super.enableAutoGainControl.call(this, id);
97539
+ });
97540
+ }
97541
+ /**
97542
+ * Disable auto gain control on a call's audio track.
97543
+ *
97544
+ * @experimental
97545
+ * @group Voice
97546
+ * @param id - The Call Id
97547
+ */
97548
+ disableAutoGainControl(id) {
97549
+ const _super = Object.create(null, {
97550
+ disableAutoGainControl: { get: () => super.disableAutoGainControl }
97551
+ });
97552
+ return __awaiter(this, void 0, void 0, function* () {
97553
+ return _super.disableAutoGainControl.call(this, id);
97554
+ });
97555
+ }
97556
+ /**
97557
+ * Enable echo cancellation on a call's audio track.
97558
+ *
97559
+ * @experimental
97560
+ * @group Voice
97561
+ * @param id - The Call Id
97562
+ */
97563
+ enableEchoCancellation(id) {
97564
+ const _super = Object.create(null, {
97565
+ enableEchoCancellation: { get: () => super.enableEchoCancellation }
97566
+ });
97567
+ return __awaiter(this, void 0, void 0, function* () {
97568
+ return _super.enableEchoCancellation.call(this, id);
97569
+ });
97570
+ }
97571
+ /**
97572
+ * Disable echo cancellation on a call's audio track.
97573
+ *
97574
+ * @experimental
97575
+ * @group Voice
97576
+ * @param id - The Call Id
97577
+ */
97578
+ disableEchoCancellation(id) {
97579
+ const _super = Object.create(null, {
97580
+ disableEchoCancellation: { get: () => super.disableEchoCancellation }
97581
+ });
97582
+ return __awaiter(this, void 0, void 0, function* () {
97583
+ return _super.disableEchoCancellation.call(this, id);
97584
+ });
97585
+ }
97046
97586
  /**
97047
97587
  * Get the Leg for a call
97048
97588
  *