@vonage/client-sdk 1.1.0-alpha.3 → 1.1.0-alpha.5

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.
@@ -43329,17 +43329,40 @@ function requireClientsdkClientcore () {
43329
43329
  return true;
43330
43330
  };
43331
43331
  TimeoutAction.$metadata$ = classMeta('TimeoutAction', [Actionable]);
43332
- function Mute(id) {
43332
+ function MediaDisable(id) {
43333
43333
  this.j29_1 = id;
43334
43334
  }
43335
- Mute.prototype.a1l = function () {
43335
+ MediaDisable.prototype.a1l = function () {
43336
43336
  return this.j29_1;
43337
43337
  };
43338
+ MediaDisable.prototype.toString = function () {
43339
+ return 'MediaDisable(id=' + this.j29_1 + ')';
43340
+ };
43341
+ MediaDisable.prototype.hashCode = function () {
43342
+ return getStringHashCode(this.j29_1);
43343
+ };
43344
+ MediaDisable.prototype.equals = function (other) {
43345
+ if (this === other)
43346
+ return true;
43347
+ if (!(other instanceof MediaDisable))
43348
+ return false;
43349
+ var tmp0_other_with_cast = other instanceof MediaDisable ? other : THROW_CCE();
43350
+ if (!(this.j29_1 === tmp0_other_with_cast.j29_1))
43351
+ return false;
43352
+ return true;
43353
+ };
43354
+ MediaDisable.$metadata$ = classMeta('MediaDisable', [MediaEvent]);
43355
+ function Mute(id) {
43356
+ this.k29_1 = id;
43357
+ }
43358
+ Mute.prototype.a1l = function () {
43359
+ return this.k29_1;
43360
+ };
43338
43361
  Mute.prototype.toString = function () {
43339
- return 'Mute(id=' + this.j29_1 + ')';
43362
+ return 'Mute(id=' + this.k29_1 + ')';
43340
43363
  };
43341
43364
  Mute.prototype.hashCode = function () {
43342
- return getStringHashCode(this.j29_1);
43365
+ return getStringHashCode(this.k29_1);
43343
43366
  };
43344
43367
  Mute.prototype.equals = function (other) {
43345
43368
  if (this === other)
@@ -43347,22 +43370,22 @@ function requireClientsdkClientcore () {
43347
43370
  if (!(other instanceof Mute))
43348
43371
  return false;
43349
43372
  var tmp0_other_with_cast = other instanceof Mute ? other : THROW_CCE();
43350
- if (!(this.j29_1 === tmp0_other_with_cast.j29_1))
43373
+ if (!(this.k29_1 === tmp0_other_with_cast.k29_1))
43351
43374
  return false;
43352
43375
  return true;
43353
43376
  };
43354
43377
  Mute.$metadata$ = classMeta('Mute', [MediaEvent]);
43355
43378
  function Unmute(id) {
43356
- this.k29_1 = id;
43379
+ this.l29_1 = id;
43357
43380
  }
43358
43381
  Unmute.prototype.a1l = function () {
43359
- return this.k29_1;
43382
+ return this.l29_1;
43360
43383
  };
43361
43384
  Unmute.prototype.toString = function () {
43362
- return 'Unmute(id=' + this.k29_1 + ')';
43385
+ return 'Unmute(id=' + this.l29_1 + ')';
43363
43386
  };
43364
43387
  Unmute.prototype.hashCode = function () {
43365
- return getStringHashCode(this.k29_1);
43388
+ return getStringHashCode(this.l29_1);
43366
43389
  };
43367
43390
  Unmute.prototype.equals = function (other) {
43368
43391
  if (this === other)
@@ -43370,22 +43393,22 @@ function requireClientsdkClientcore () {
43370
43393
  if (!(other instanceof Unmute))
43371
43394
  return false;
43372
43395
  var tmp0_other_with_cast = other instanceof Unmute ? other : THROW_CCE();
43373
- if (!(this.k29_1 === tmp0_other_with_cast.k29_1))
43396
+ if (!(this.l29_1 === tmp0_other_with_cast.l29_1))
43374
43397
  return false;
43375
43398
  return true;
43376
43399
  };
43377
43400
  Unmute.$metadata$ = classMeta('Unmute', [MediaEvent]);
43378
43401
  function EnableEarmuff(id) {
43379
- this.l29_1 = id;
43402
+ this.m29_1 = id;
43380
43403
  }
43381
43404
  EnableEarmuff.prototype.a1l = function () {
43382
- return this.l29_1;
43405
+ return this.m29_1;
43383
43406
  };
43384
43407
  EnableEarmuff.prototype.toString = function () {
43385
- return 'EnableEarmuff(id=' + this.l29_1 + ')';
43408
+ return 'EnableEarmuff(id=' + this.m29_1 + ')';
43386
43409
  };
43387
43410
  EnableEarmuff.prototype.hashCode = function () {
43388
- return getStringHashCode(this.l29_1);
43411
+ return getStringHashCode(this.m29_1);
43389
43412
  };
43390
43413
  EnableEarmuff.prototype.equals = function (other) {
43391
43414
  if (this === other)
@@ -43393,22 +43416,22 @@ function requireClientsdkClientcore () {
43393
43416
  if (!(other instanceof EnableEarmuff))
43394
43417
  return false;
43395
43418
  var tmp0_other_with_cast = other instanceof EnableEarmuff ? other : THROW_CCE();
43396
- if (!(this.l29_1 === tmp0_other_with_cast.l29_1))
43419
+ if (!(this.m29_1 === tmp0_other_with_cast.m29_1))
43397
43420
  return false;
43398
43421
  return true;
43399
43422
  };
43400
43423
  EnableEarmuff.$metadata$ = classMeta('EnableEarmuff', [MediaEvent]);
43401
43424
  function DisableEarmuff(id) {
43402
- this.m29_1 = id;
43425
+ this.n29_1 = id;
43403
43426
  }
43404
43427
  DisableEarmuff.prototype.a1l = function () {
43405
- return this.m29_1;
43428
+ return this.n29_1;
43406
43429
  };
43407
43430
  DisableEarmuff.prototype.toString = function () {
43408
- return 'DisableEarmuff(id=' + this.m29_1 + ')';
43431
+ return 'DisableEarmuff(id=' + this.n29_1 + ')';
43409
43432
  };
43410
43433
  DisableEarmuff.prototype.hashCode = function () {
43411
- return getStringHashCode(this.m29_1);
43434
+ return getStringHashCode(this.n29_1);
43412
43435
  };
43413
43436
  DisableEarmuff.prototype.equals = function (other) {
43414
43437
  if (this === other)
@@ -43416,34 +43439,11 @@ function requireClientsdkClientcore () {
43416
43439
  if (!(other instanceof DisableEarmuff))
43417
43440
  return false;
43418
43441
  var tmp0_other_with_cast = other instanceof DisableEarmuff ? other : THROW_CCE();
43419
- if (!(this.m29_1 === tmp0_other_with_cast.m29_1))
43420
- return false;
43421
- return true;
43422
- };
43423
- DisableEarmuff.$metadata$ = classMeta('DisableEarmuff', [MediaEvent]);
43424
- function MediaDisable(id) {
43425
- this.n29_1 = id;
43426
- }
43427
- MediaDisable.prototype.a1l = function () {
43428
- return this.n29_1;
43429
- };
43430
- MediaDisable.prototype.toString = function () {
43431
- return 'MediaDisable(id=' + this.n29_1 + ')';
43432
- };
43433
- MediaDisable.prototype.hashCode = function () {
43434
- return getStringHashCode(this.n29_1);
43435
- };
43436
- MediaDisable.prototype.equals = function (other) {
43437
- if (this === other)
43438
- return true;
43439
- if (!(other instanceof MediaDisable))
43440
- return false;
43441
- var tmp0_other_with_cast = other instanceof MediaDisable ? other : THROW_CCE();
43442
43442
  if (!(this.n29_1 === tmp0_other_with_cast.n29_1))
43443
43443
  return false;
43444
43444
  return true;
43445
43445
  };
43446
- MediaDisable.$metadata$ = classMeta('MediaDisable', [MediaEvent]);
43446
+ DisableEarmuff.$metadata$ = classMeta('DisableEarmuff', [MediaEvent]);
43447
43447
  function MediaConnectionStatusUpdate(id, status) {
43448
43448
  this.o29_1 = id;
43449
43449
  this.p29_1 = status;
@@ -50356,7 +50356,7 @@ function requireClientsdkClientcore () {
50356
50356
  if (tmp0_safe_receiver == null)
50357
50357
  null;
50358
50358
  else {
50359
- var tmp$ret$2;
50359
+ var tmp$ret$1;
50360
50360
  // Inline function 'kotlin.let' call
50361
50361
  // Inline function 'kotlin.contracts.contract' call
50362
50362
  var tmp0_subject = tmp0_safe_receiver.n2p_1;
@@ -50383,45 +50383,40 @@ function requireClientsdkClientcore () {
50383
50383
  tmp = Unit_getInstance();
50384
50384
  break;
50385
50385
  case 5:
50386
- var tmp$ret$0;
50387
- // Inline function 'kotlin.also' call
50388
- var tmp0_also = $callback(Companion_getInstance_107().e2g(Exception_init_$Create$_0('Media Timeout')), null);
50389
- // Inline function 'kotlin.contracts.contract' call
50390
- // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.serverCall.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
50391
- var tmp0_safe_receiver_0 = $cancel._v;
50392
- if (tmp0_safe_receiver_0 == null)
50386
+ var tmp4_safe_receiver = $cancel._v;
50387
+ if (tmp4_safe_receiver == null)
50393
50388
  null;
50394
50389
  else
50395
- tmp0_safe_receiver_0();
50396
- tmp$ret$0 = tmp0_also;
50397
-
50390
+ tmp4_safe_receiver();
50391
+ ;
50392
+ $callback(Companion_getInstance_107().e2g(Exception_init_$Create$_0('Media Timeout')), null);
50398
50393
  this$0.r2p_1.c1d(Action_init_$Create$(new CallCleanup($legId)));
50399
50394
  tmp = Unit_getInstance();
50400
50395
  break;
50401
50396
  case 6:
50402
50397
  case 4:
50403
50398
  // Inline function 'co.touchlab.kermit.Logger.w' call
50404
- var tmp1_w = this$0.t2p_1;
50405
- if (tmp1_w.g1a_1.p1a().g4(Severity_Warn_getInstance()) <= 0) {
50399
+ var tmp0_w = this$0.t2p_1;
50400
+ if (tmp0_w.g1a_1.p1a().g4(Severity_Warn_getInstance()) <= 0) {
50406
50401
  var tmp_2 = Severity_Warn_getInstance();
50407
- var tmp_3 = tmp1_w.f1a();
50408
- var tmp$ret$1;
50402
+ var tmp_3 = tmp0_w.f1a();
50403
+ var tmp$ret$0;
50409
50404
  // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.serverCall.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
50410
- tmp$ret$1 = 'Unexpected Media Connection Transition during setup';
50411
- tmp1_w.o1a(tmp_2, tmp_3, null, tmp$ret$1);
50405
+ tmp$ret$0 = 'Unexpected Media Connection Transition during setup';
50406
+ tmp0_w.o1a(tmp_2, tmp_3, null, tmp$ret$0);
50412
50407
  }
50413
50408
 
50414
- var tmp4_safe_receiver = $cancel._v;
50415
- if (tmp4_safe_receiver == null)
50409
+ var tmp5_safe_receiver = $cancel._v;
50410
+ if (tmp5_safe_receiver == null)
50416
50411
  null;
50417
50412
  else
50418
- tmp4_safe_receiver();
50413
+ tmp5_safe_receiver();
50419
50414
  ;
50420
50415
  this$0.r2p_1.c1d(Action_init_$Create$(new CallCleanup($legId)));
50421
50416
  tmp = Unit_getInstance();
50422
50417
  break;
50423
50418
  }
50424
- tmp$ret$2 = tmp;
50419
+ tmp$ret$1 = tmp;
50425
50420
  }
50426
50421
  return Unit_getInstance();
50427
50422
  };
@@ -51293,6 +51288,7 @@ function requireClientsdkClientcore () {
51293
51288
  callback(Companion_getInstance_107().e2g(InternalError_NoCallFound_getInstance()));
51294
51289
  return Unit_getInstance();
51295
51290
  }
51291
+ this.r2p_1.c1d(Action_init_$Create$(new MediaDisable(callId)));
51296
51292
  var callMemberShipState = call.k2p_1.s1();
51297
51293
  if (callMemberShipState instanceof Joined) {
51298
51294
  var tmp = new MemberKickRequest(callMemberShipState.o2p_1, callMemberShipState.p2p_1, reasonText, reasonCode);
@@ -56223,13 +56219,13 @@ function requireClientsdkClientcore () {
56223
56219
  $media.r2v(action.p1d_1.m2r_1);
56224
56220
  } else {
56225
56221
  if (tmp0_subject instanceof MediaDisable) {
56226
- $media.r2v(action.p1d_1.n29_1);
56222
+ $media.r2v(action.p1d_1.j29_1);
56227
56223
  } else {
56228
56224
  if (tmp0_subject instanceof Mute) {
56229
- $media.s2v(action.p1d_1.j29_1);
56225
+ $media.s2v(action.p1d_1.k29_1);
56230
56226
  } else {
56231
56227
  if (tmp0_subject instanceof Unmute) {
56232
- $media.t2v(action.p1d_1.k29_1);
56228
+ $media.t2v(action.p1d_1.l29_1);
56233
56229
  } else {
56234
56230
  }
56235
56231
  }
@@ -60329,11 +60325,11 @@ function requireClientsdkClientcore () {
60329
60325
  return true;
60330
60326
  };
60331
60327
  Resolved.$metadata$ = classMeta('Resolved', undefined, undefined, undefined, undefined, StateTransition.prototype);
60332
- function Failed(error, value) {
60328
+ function Failed(error, value, requestId) {
60333
60329
  StateTransition.call(this);
60334
60330
  this.v2o_1 = error;
60335
60331
  this.w2o_1 = value;
60336
- this.x2o_1 = null;
60332
+ this.x2o_1 = requestId;
60337
60333
  }
60338
60334
  Failed.prototype.s1 = function () {
60339
60335
  return this.w2o_1;
@@ -60342,11 +60338,12 @@ function requireClientsdkClientcore () {
60342
60338
  return this.x2o_1;
60343
60339
  };
60344
60340
  Failed.prototype.toString = function () {
60345
- return 'Failed(error=' + this.v2o_1 + ', value=' + this.w2o_1 + ')';
60341
+ return 'Failed(error=' + this.v2o_1 + ', value=' + this.w2o_1 + ', requestId=' + this.x2o_1 + ')';
60346
60342
  };
60347
60343
  Failed.prototype.hashCode = function () {
60348
60344
  var result = this.v2o_1.hashCode();
60349
60345
  result = imul(result, 31) + (this.w2o_1 == null ? 0 : hashCode(this.w2o_1)) | 0;
60346
+ result = imul(result, 31) + (this.x2o_1 == null ? 0 : getStringHashCode(this.x2o_1)) | 0;
60350
60347
  return result;
60351
60348
  };
60352
60349
  Failed.prototype.equals = function (other) {
@@ -60359,6 +60356,8 @@ function requireClientsdkClientcore () {
60359
60356
  return false;
60360
60357
  if (!equals(this.w2o_1, tmp0_other_with_cast.w2o_1))
60361
60358
  return false;
60359
+ if (!(this.x2o_1 == tmp0_other_with_cast.x2o_1))
60360
+ return false;
60362
60361
  return true;
60363
60362
  };
60364
60363
  Failed.$metadata$ = classMeta('Failed', undefined, undefined, undefined, undefined, StateTransition.prototype);
@@ -60375,7 +60374,7 @@ function requireClientsdkClientcore () {
60375
60374
  var tmp0_subject = _this__u8e3s4;
60376
60375
  var tmp;
60377
60376
  if (tmp0_subject instanceof Pending) {
60378
- tmp = new Failed(new Pair(_this__u8e3s4.w33_1, err), _this__u8e3s4.s1());
60377
+ tmp = new Failed(new Pair(_this__u8e3s4.w33_1, err), _this__u8e3s4.s1(), _this__u8e3s4.x33_1);
60379
60378
  } else {
60380
60379
  if (tmp0_subject instanceof Resolved) {
60381
60380
  tmp = _this__u8e3s4;
@@ -60761,7 +60760,7 @@ function requireClientsdkClientcore () {
60761
60760
  //endregion
60762
60761
  //region block: pre-declaration
60763
60762
  function setConfig(config) {
60764
- this.core.t1b(new SetConfig(config.j3c_1, config.k3c_1, config.i3c_1, config.m3c_1, config.h3c_1.k2h_1, config.h3c_1.l2h_1));
60763
+ this.core.t1b(new SetConfig(config.l3c_1, config.m3c_1, config.k3c_1, config.o3c_1, config.j3c_1.k2h_1, config.j3c_1.l2h_1));
60765
60764
  }
60766
60765
  function createSession(token, sessionId) {
60767
60766
  return new Promise(ICoreClientJS$createSession$lambda(this, token, sessionId));
@@ -63140,9 +63139,10 @@ function requireClientsdkClientcore () {
63140
63139
  return SessionErrorCodesJS_instance;
63141
63140
  }
63142
63141
  function VonageErrorJS(vonageError) {
63143
- extendThrowable(this, vonageError.p2j_1, vonageError.q2j_1);
63142
+ extendThrowable(this, vonageError.p2j_1, void 1);
63144
63143
  this.z3b_1 = valueOf_3(vonageError.n2j_1.d4_1);
63145
63144
  this.a3c_1 = vonageError.o2j_1;
63145
+ this.b3c_1 = vonageError.q2j_1;
63146
63146
  captureStack(this, VonageErrorJS);
63147
63147
  }
63148
63148
  VonageErrorJS.prototype.v2q = function () {
@@ -63151,6 +63151,9 @@ function requireClientsdkClientcore () {
63151
63151
  VonageErrorJS.prototype.f1e = function () {
63152
63152
  return this.a3c_1;
63153
63153
  };
63154
+ VonageErrorJS.prototype.c3c = function () {
63155
+ return this.b3c_1;
63156
+ };
63154
63157
  VonageErrorJS.$metadata$ = classMeta('VonageErrorJS', undefined, undefined, undefined, undefined, Error.prototype);
63155
63158
  Object.defineProperty(VonageErrorJS.prototype, 'type', {
63156
63159
  configurable: true,
@@ -63160,6 +63163,10 @@ function requireClientsdkClientcore () {
63160
63163
  configurable: true,
63161
63164
  get: VonageErrorJS.prototype.f1e
63162
63165
  });
63166
+ Object.defineProperty(VonageErrorJS.prototype, 'kmpCause', {
63167
+ configurable: true,
63168
+ get: VonageErrorJS.prototype.c3c
63169
+ });
63163
63170
  var VonageErrorTypeJS_CS_ERROR_instance;
63164
63171
  var VonageErrorTypeJS_HTTP_CLIENT_ERROR_instance;
63165
63172
  var VonageErrorTypeJS_SESSION_ERROR_instance;
@@ -63806,15 +63813,15 @@ function requireClientsdkClientcore () {
63806
63813
  }
63807
63814
  function CoreClientConfigRegionJS(name, ordinal, coreRegion) {
63808
63815
  Enum.call(this, name, ordinal);
63809
- this.f3c_1 = coreRegion;
63816
+ this.h3c_1 = coreRegion;
63810
63817
  }
63811
- CoreClientConfigRegionJS.prototype.g3c = function () {
63812
- return this.f3c_1;
63818
+ CoreClientConfigRegionJS.prototype.i3c = function () {
63819
+ return this.h3c_1;
63813
63820
  };
63814
63821
  CoreClientConfigRegionJS.$metadata$ = classMeta('CoreClientConfigRegionJS', undefined, undefined, undefined, undefined, Enum.prototype);
63815
63822
  Object.defineProperty(CoreClientConfigRegionJS.prototype, 'coreRegion', {
63816
63823
  configurable: true,
63817
- get: CoreClientConfigRegionJS.prototype.g3c
63824
+ get: CoreClientConfigRegionJS.prototype.i3c
63818
63825
  });
63819
63826
  Object.defineProperty(CoreClientConfigRegionJS.prototype, 'name', {
63820
63827
  configurable: true,
@@ -63825,72 +63832,72 @@ function requireClientsdkClientcore () {
63825
63832
  get: CoreClientConfigRegionJS.prototype.pe
63826
63833
  });
63827
63834
  function CoreClientConfigJS(region) {
63828
- this.h3c_1 = Companion_getInstance().d2h(region.f3c_1, 'js', 'Generic JS Navigator', true);
63829
- this.i3c_1 = this.h3c_1.e2h_1;
63830
- this.j3c_1 = this.h3c_1.f2h_1;
63831
- this.k3c_1 = this.h3c_1.g2h_1;
63832
- this.l3c_1 = this.h3c_1.h2h_1;
63833
- this.m3c_1 = this.h3c_1.j2h_1;
63835
+ this.j3c_1 = Companion_getInstance().d2h(region.h3c_1, 'js', 'Generic JS Navigator', true);
63836
+ this.k3c_1 = this.j3c_1.e2h_1;
63837
+ this.l3c_1 = this.j3c_1.f2h_1;
63838
+ this.m3c_1 = this.j3c_1.g2h_1;
63839
+ this.n3c_1 = this.j3c_1.h2h_1;
63840
+ this.o3c_1 = this.j3c_1.j2h_1;
63834
63841
  }
63835
- CoreClientConfigJS.prototype.n3c = function () {
63836
- return this.h3c_1;
63837
- };
63838
- CoreClientConfigJS.prototype.o3c = function (_set____db54di) {
63839
- this.i3c_1 = _set____db54di;
63840
- };
63841
63842
  CoreClientConfigJS.prototype.p3c = function () {
63842
- return this.i3c_1;
63843
+ return this.j3c_1;
63843
63844
  };
63844
63845
  CoreClientConfigJS.prototype.q3c = function (_set____db54di) {
63845
- this.j3c_1 = _set____db54di;
63846
+ this.k3c_1 = _set____db54di;
63846
63847
  };
63847
63848
  CoreClientConfigJS.prototype.r3c = function () {
63848
- return this.j3c_1;
63849
+ return this.k3c_1;
63849
63850
  };
63850
63851
  CoreClientConfigJS.prototype.s3c = function (_set____db54di) {
63851
- this.k3c_1 = _set____db54di;
63852
+ this.l3c_1 = _set____db54di;
63852
63853
  };
63853
63854
  CoreClientConfigJS.prototype.t3c = function () {
63854
- return this.k3c_1;
63855
+ return this.l3c_1;
63855
63856
  };
63856
63857
  CoreClientConfigJS.prototype.u3c = function (_set____db54di) {
63857
- this.l3c_1 = _set____db54di;
63858
+ this.m3c_1 = _set____db54di;
63858
63859
  };
63859
63860
  CoreClientConfigJS.prototype.v3c = function () {
63860
- return this.l3c_1;
63861
+ return this.m3c_1;
63861
63862
  };
63862
63863
  CoreClientConfigJS.prototype.w3c = function (_set____db54di) {
63863
- this.m3c_1 = _set____db54di;
63864
+ this.n3c_1 = _set____db54di;
63864
63865
  };
63865
63866
  CoreClientConfigJS.prototype.x3c = function () {
63866
- return this.m3c_1;
63867
+ return this.n3c_1;
63868
+ };
63869
+ CoreClientConfigJS.prototype.y3c = function (_set____db54di) {
63870
+ this.o3c_1 = _set____db54di;
63871
+ };
63872
+ CoreClientConfigJS.prototype.z3c = function () {
63873
+ return this.o3c_1;
63867
63874
  };
63868
63875
  CoreClientConfigJS.$metadata$ = classMeta('CoreClientConfigJS');
63869
63876
  Object.defineProperty(CoreClientConfigJS.prototype, 'apiUrl', {
63870
- configurable: true,
63871
- get: CoreClientConfigJS.prototype.p3c,
63872
- set: CoreClientConfigJS.prototype.o3c
63873
- });
63874
- Object.defineProperty(CoreClientConfigJS.prototype, 'websocketUrl', {
63875
63877
  configurable: true,
63876
63878
  get: CoreClientConfigJS.prototype.r3c,
63877
63879
  set: CoreClientConfigJS.prototype.q3c
63878
63880
  });
63879
- Object.defineProperty(CoreClientConfigJS.prototype, 'websocketPath', {
63881
+ Object.defineProperty(CoreClientConfigJS.prototype, 'websocketUrl', {
63880
63882
  configurable: true,
63881
63883
  get: CoreClientConfigJS.prototype.t3c,
63882
63884
  set: CoreClientConfigJS.prototype.s3c
63883
63885
  });
63884
- Object.defineProperty(CoreClientConfigJS.prototype, 'autoMediaReoffer', {
63886
+ Object.defineProperty(CoreClientConfigJS.prototype, 'websocketPath', {
63885
63887
  configurable: true,
63886
63888
  get: CoreClientConfigJS.prototype.v3c,
63887
63889
  set: CoreClientConfigJS.prototype.u3c
63888
63890
  });
63889
- Object.defineProperty(CoreClientConfigJS.prototype, 'enableWebsocketInvites', {
63891
+ Object.defineProperty(CoreClientConfigJS.prototype, 'autoMediaReoffer', {
63890
63892
  configurable: true,
63891
63893
  get: CoreClientConfigJS.prototype.x3c,
63892
63894
  set: CoreClientConfigJS.prototype.w3c
63893
63895
  });
63896
+ Object.defineProperty(CoreClientConfigJS.prototype, 'enableWebsocketInvites', {
63897
+ configurable: true,
63898
+ get: CoreClientConfigJS.prototype.z3c,
63899
+ set: CoreClientConfigJS.prototype.y3c
63900
+ });
63894
63901
  var LoggingLevelJS_Verbose_instance;
63895
63902
  var LoggingLevelJS_Debug_instance;
63896
63903
  var LoggingLevelJS_Info_instance;
@@ -63934,10 +63941,10 @@ function requireClientsdkClientcore () {
63934
63941
  }
63935
63942
  function LoggingLevelJS(name, ordinal, sev) {
63936
63943
  Enum.call(this, name, ordinal);
63937
- this.a3d_1 = sev;
63944
+ this.c3d_1 = sev;
63938
63945
  }
63939
63946
  LoggingLevelJS.prototype.s2g = function () {
63940
- return this.a3d_1;
63947
+ return this.c3d_1;
63941
63948
  };
63942
63949
  LoggingLevelJS.$metadata$ = classMeta('LoggingLevelJS', [ILoggingLevel], undefined, undefined, undefined, Enum.prototype);
63943
63950
  Object.defineProperty(LoggingLevelJS.prototype, 'name', {
@@ -63969,7 +63976,7 @@ function requireClientsdkClientcore () {
63969
63976
  inductionVariable = inductionVariable + 1 | 0;
63970
63977
  var tmp$ret$0;
63971
63978
  // Inline function 'vonage.Companion.getSessionErrorReason.<anonymous>' call
63972
- tmp$ret$0 = element.d3d_1.equals(reason);
63979
+ tmp$ret$0 = element.f3d_1.equals(reason);
63973
63980
  if (tmp$ret$0) {
63974
63981
  tmp$ret$1 = element;
63975
63982
  break $l$block;
@@ -64017,10 +64024,10 @@ function requireClientsdkClientcore () {
64017
64024
  }
64018
64025
  function SessionErrorReasonJS(name, ordinal, reason) {
64019
64026
  Enum.call(this, name, ordinal);
64020
- this.d3d_1 = reason;
64027
+ this.f3d_1 = reason;
64021
64028
  }
64022
64029
  SessionErrorReasonJS.prototype.k2a = function () {
64023
- return this.d3d_1;
64030
+ return this.f3d_1;
64024
64031
  };
64025
64032
  SessionErrorReasonJS.$metadata$ = classMeta('SessionErrorReasonJS', undefined, undefined, undefined, undefined, Enum.prototype);
64026
64033
  Object.defineProperty(SessionErrorReasonJS.prototype, 'reason', {
@@ -64584,40 +64591,40 @@ function requireClientsdkClientcore () {
64584
64591
  }
64585
64592
  IVoiceClientJS.$metadata$ = interfaceMeta('IVoiceClientJS', [ICoreClientJS]);
64586
64593
  function VoiceInviteFromInfoJS(id, type) {
64587
- this.i3d_1 = id;
64588
- this.j3d_1 = type;
64594
+ this.k3d_1 = id;
64595
+ this.l3d_1 = type;
64589
64596
  }
64590
64597
  VoiceInviteFromInfoJS.prototype.a1l = function () {
64591
- return this.i3d_1;
64598
+ return this.k3d_1;
64592
64599
  };
64593
64600
  VoiceInviteFromInfoJS.prototype.v2q = function () {
64594
- return this.j3d_1;
64601
+ return this.l3d_1;
64595
64602
  };
64596
64603
  VoiceInviteFromInfoJS.prototype.component1 = function () {
64597
- return this.i3d_1;
64604
+ return this.k3d_1;
64598
64605
  };
64599
64606
  VoiceInviteFromInfoJS.prototype.component2 = function () {
64600
- return this.j3d_1;
64607
+ return this.l3d_1;
64601
64608
  };
64602
64609
  VoiceInviteFromInfoJS.prototype.copy = function (id, type) {
64603
- return this.k3d(id === void 1 ? this.i3d_1 : id, type === void 1 ? this.j3d_1 : type);
64610
+ return this.m3d(id === void 1 ? this.k3d_1 : id, type === void 1 ? this.l3d_1 : type);
64604
64611
  };
64605
- VoiceInviteFromInfoJS.prototype.k3d = function (id, type) {
64612
+ VoiceInviteFromInfoJS.prototype.m3d = function (id, type) {
64606
64613
  return new VoiceInviteFromInfoJS(id, type);
64607
64614
  };
64608
- VoiceInviteFromInfoJS.prototype.l3d = function (id, type, $mask0, $handler) {
64615
+ VoiceInviteFromInfoJS.prototype.n3d = function (id, type, $mask0, $handler) {
64609
64616
  if (!(($mask0 & 1) === 0))
64610
- id = this.i3d_1;
64617
+ id = this.k3d_1;
64611
64618
  if (!(($mask0 & 2) === 0))
64612
- type = this.j3d_1;
64613
- return this.k3d(id, type);
64619
+ type = this.l3d_1;
64620
+ return this.m3d(id, type);
64614
64621
  };
64615
64622
  VoiceInviteFromInfoJS.prototype.toString = function () {
64616
- return 'VoiceInviteFromInfoJS(id=' + this.i3d_1 + ', type=' + this.j3d_1 + ')';
64623
+ return 'VoiceInviteFromInfoJS(id=' + this.k3d_1 + ', type=' + this.l3d_1 + ')';
64617
64624
  };
64618
64625
  VoiceInviteFromInfoJS.prototype.hashCode = function () {
64619
- var result = this.i3d_1 == null ? 0 : getStringHashCode(this.i3d_1);
64620
- result = imul(result, 31) + getStringHashCode(this.j3d_1) | 0;
64626
+ var result = this.k3d_1 == null ? 0 : getStringHashCode(this.k3d_1);
64627
+ result = imul(result, 31) + getStringHashCode(this.l3d_1) | 0;
64621
64628
  return result;
64622
64629
  };
64623
64630
  VoiceInviteFromInfoJS.prototype.equals = function (other) {
@@ -64626,9 +64633,9 @@ function requireClientsdkClientcore () {
64626
64633
  if (!(other instanceof VoiceInviteFromInfoJS))
64627
64634
  return false;
64628
64635
  var tmp0_other_with_cast = other instanceof VoiceInviteFromInfoJS ? other : THROW_CCE();
64629
- if (!(this.i3d_1 == tmp0_other_with_cast.i3d_1))
64636
+ if (!(this.k3d_1 == tmp0_other_with_cast.k3d_1))
64630
64637
  return false;
64631
- if (!(this.j3d_1 === tmp0_other_with_cast.j3d_1))
64638
+ if (!(this.l3d_1 === tmp0_other_with_cast.l3d_1))
64632
64639
  return false;
64633
64640
  return true;
64634
64641
  };
@@ -64692,64 +64699,64 @@ function requireClientsdkClientcore () {
64692
64699
  var responseBody_0 = responseBody === void 1 ? null : responseBody;
64693
64700
  var cause_0 = cause === void 1 ? null : cause;
64694
64701
  extendThrowable(this, void 1, void 1);
64695
- this.m3d_1 = message_0;
64696
- this.n3d_1 = responseCode_0;
64697
- this.o3d_1 = responseBody_0;
64698
- this.p3d_1 = cause_0;
64702
+ this.o3d_1 = message_0;
64703
+ this.p3d_1 = responseCode_0;
64704
+ this.q3d_1 = responseBody_0;
64705
+ this.r3d_1 = cause_0;
64699
64706
  captureStack(this, HttpClientErrorJS);
64700
64707
  }
64701
64708
  HttpClientErrorJS.prototype.g1 = function () {
64702
- return this.m3d_1;
64709
+ return this.o3d_1;
64703
64710
  };
64704
- HttpClientErrorJS.prototype.q3d = function () {
64705
- return this.n3d_1;
64711
+ HttpClientErrorJS.prototype.s3d = function () {
64712
+ return this.p3d_1;
64706
64713
  };
64707
- HttpClientErrorJS.prototype.r3d = function () {
64708
- return this.o3d_1;
64714
+ HttpClientErrorJS.prototype.t3d = function () {
64715
+ return this.q3d_1;
64709
64716
  };
64710
64717
  HttpClientErrorJS.prototype.h1 = function () {
64711
- return this.p3d_1;
64718
+ return this.r3d_1;
64712
64719
  };
64713
- HttpClientErrorJS.prototype.s3d = function () {
64714
- return new HTTPClientError(this.m3d_1, this.n3d_1, this.o3d_1, this.p3d_1);
64720
+ HttpClientErrorJS.prototype.u3d = function () {
64721
+ return new HTTPClientError(this.o3d_1, this.p3d_1, this.q3d_1, this.r3d_1);
64715
64722
  };
64716
64723
  HttpClientErrorJS.prototype.component1 = function () {
64717
- return this.m3d_1;
64724
+ return this.o3d_1;
64718
64725
  };
64719
64726
  HttpClientErrorJS.prototype.component2 = function () {
64720
- return this.n3d_1;
64727
+ return this.p3d_1;
64721
64728
  };
64722
64729
  HttpClientErrorJS.prototype.component3 = function () {
64723
- return this.o3d_1;
64730
+ return this.q3d_1;
64724
64731
  };
64725
64732
  HttpClientErrorJS.prototype.component4 = function () {
64726
- return this.p3d_1;
64733
+ return this.r3d_1;
64727
64734
  };
64728
64735
  HttpClientErrorJS.prototype.copy = function (message, responseCode, responseBody, cause) {
64729
- return this.t3d(message === void 1 ? this.m3d_1 : message, responseCode === void 1 ? this.n3d_1 : responseCode, responseBody === void 1 ? this.o3d_1 : responseBody, cause === void 1 ? this.p3d_1 : cause);
64736
+ return this.v3d(message === void 1 ? this.o3d_1 : message, responseCode === void 1 ? this.p3d_1 : responseCode, responseBody === void 1 ? this.q3d_1 : responseBody, cause === void 1 ? this.r3d_1 : cause);
64730
64737
  };
64731
- HttpClientErrorJS.prototype.t3d = function (message, responseCode, responseBody, cause) {
64738
+ HttpClientErrorJS.prototype.v3d = function (message, responseCode, responseBody, cause) {
64732
64739
  return new HttpClientErrorJS(message, responseCode, responseBody, cause);
64733
64740
  };
64734
- HttpClientErrorJS.prototype.u3d = function (message, responseCode, responseBody, cause, $mask0, $handler) {
64741
+ HttpClientErrorJS.prototype.w3d = function (message, responseCode, responseBody, cause, $mask0, $handler) {
64735
64742
  if (!(($mask0 & 1) === 0))
64736
- message = this.m3d_1;
64743
+ message = this.o3d_1;
64737
64744
  if (!(($mask0 & 2) === 0))
64738
- responseCode = this.n3d_1;
64745
+ responseCode = this.p3d_1;
64739
64746
  if (!(($mask0 & 4) === 0))
64740
- responseBody = this.o3d_1;
64747
+ responseBody = this.q3d_1;
64741
64748
  if (!(($mask0 & 8) === 0))
64742
- cause = this.p3d_1;
64743
- return this.t3d(message, responseCode, responseBody, cause);
64749
+ cause = this.r3d_1;
64750
+ return this.v3d(message, responseCode, responseBody, cause);
64744
64751
  };
64745
64752
  HttpClientErrorJS.prototype.toString = function () {
64746
- return 'HttpClientErrorJS(message=' + this.m3d_1 + ', responseCode=' + this.n3d_1 + ', responseBody=' + this.o3d_1 + ', cause=' + this.p3d_1 + ')';
64753
+ return 'HttpClientErrorJS(message=' + this.o3d_1 + ', responseCode=' + this.p3d_1 + ', responseBody=' + this.q3d_1 + ', cause=' + this.r3d_1 + ')';
64747
64754
  };
64748
64755
  HttpClientErrorJS.prototype.hashCode = function () {
64749
- var result = this.m3d_1 == null ? 0 : getStringHashCode(this.m3d_1);
64750
- result = imul(result, 31) + (this.n3d_1 == null ? 0 : this.n3d_1) | 0;
64751
- result = imul(result, 31) + (this.o3d_1 == null ? 0 : getStringHashCode(this.o3d_1)) | 0;
64752
- result = imul(result, 31) + (this.p3d_1 == null ? 0 : hashCode(this.p3d_1)) | 0;
64756
+ var result = this.o3d_1 == null ? 0 : getStringHashCode(this.o3d_1);
64757
+ result = imul(result, 31) + (this.p3d_1 == null ? 0 : this.p3d_1) | 0;
64758
+ result = imul(result, 31) + (this.q3d_1 == null ? 0 : getStringHashCode(this.q3d_1)) | 0;
64759
+ result = imul(result, 31) + (this.r3d_1 == null ? 0 : hashCode(this.r3d_1)) | 0;
64753
64760
  return result;
64754
64761
  };
64755
64762
  HttpClientErrorJS.prototype.equals = function (other) {
@@ -64758,13 +64765,13 @@ function requireClientsdkClientcore () {
64758
64765
  if (!(other instanceof HttpClientErrorJS))
64759
64766
  return false;
64760
64767
  var tmp0_other_with_cast = other instanceof HttpClientErrorJS ? other : THROW_CCE();
64761
- if (!(this.m3d_1 == tmp0_other_with_cast.m3d_1))
64768
+ if (!(this.o3d_1 == tmp0_other_with_cast.o3d_1))
64762
64769
  return false;
64763
- if (!(this.n3d_1 == tmp0_other_with_cast.n3d_1))
64770
+ if (!(this.p3d_1 == tmp0_other_with_cast.p3d_1))
64764
64771
  return false;
64765
- if (!(this.o3d_1 == tmp0_other_with_cast.o3d_1))
64772
+ if (!(this.q3d_1 == tmp0_other_with_cast.q3d_1))
64766
64773
  return false;
64767
- if (!equals(this.p3d_1, tmp0_other_with_cast.p3d_1))
64774
+ if (!equals(this.r3d_1, tmp0_other_with_cast.r3d_1))
64768
64775
  return false;
64769
64776
  return true;
64770
64777
  };
@@ -64777,11 +64784,11 @@ function requireClientsdkClientcore () {
64777
64784
  });
64778
64785
  Object.defineProperty(HttpClientErrorJS.prototype, 'responseCode', {
64779
64786
  configurable: true,
64780
- get: HttpClientErrorJS.prototype.q3d
64787
+ get: HttpClientErrorJS.prototype.s3d
64781
64788
  });
64782
64789
  Object.defineProperty(HttpClientErrorJS.prototype, 'responseBody', {
64783
64790
  configurable: true,
64784
- get: HttpClientErrorJS.prototype.r3d
64791
+ get: HttpClientErrorJS.prototype.t3d
64785
64792
  });
64786
64793
  Object.defineProperty(HttpClientErrorJS.prototype, 'cause', {
64787
64794
  configurable: true,
@@ -64791,7 +64798,7 @@ function requireClientsdkClientcore () {
64791
64798
  });
64792
64799
  Object.defineProperty(HttpClientErrorJS.prototype, 'coreError', {
64793
64800
  configurable: true,
64794
- get: HttpClientErrorJS.prototype.s3d
64801
+ get: HttpClientErrorJS.prototype.u3d
64795
64802
  });
64796
64803
  function get_SOCKET_CONNECTED() {
64797
64804
  return SOCKET_CONNECTED;
@@ -64856,10 +64863,10 @@ function requireClientsdkClientcore () {
64856
64863
  }
64857
64864
  function CancelReasonJS(name, ordinal, reason) {
64858
64865
  Enum.call(this, name, ordinal);
64859
- this.x3d_1 = reason;
64866
+ this.z3d_1 = reason;
64860
64867
  }
64861
64868
  CancelReasonJS.prototype.k2a = function () {
64862
- return this.x3d_1;
64869
+ return this.z3d_1;
64863
64870
  };
64864
64871
  CancelReasonJS.$metadata$ = classMeta('CancelReasonJS', undefined, undefined, undefined, undefined, Enum.prototype);
64865
64872
  Object.defineProperty(CancelReasonJS.prototype, 'reason', {
@@ -64875,23 +64882,17 @@ function requireClientsdkClientcore () {
64875
64882
  get: CancelReasonJS.prototype.pe
64876
64883
  });
64877
64884
  function RTCQualityJS(callQuality) {
64878
- this.y3d_1 = callQuality;
64879
- this.z3d_1 = this.y3d_1.f2u_1;
64880
- this.a3e_1 = this.y3d_1.g2u_1;
64881
- this.b3e_1 = this.y3d_1.h2u_1;
64882
- this.c3e_1 = this.y3d_1.i2u_1;
64883
- this.d3e_1 = this.y3d_1.j2u_1;
64884
- this.e3e_1 = this.y3d_1.k2u_1;
64885
- this.f3e_1 = this.y3d_1.l2u_1;
64886
- this.g3e_1 = this.y3d_1.m2u_1;
64887
- this.h3e_1 = this.y3d_1.n2u_1;
64885
+ this.a3e_1 = callQuality;
64886
+ this.b3e_1 = this.a3e_1.f2u_1;
64887
+ this.c3e_1 = this.a3e_1.g2u_1;
64888
+ this.d3e_1 = this.a3e_1.h2u_1;
64889
+ this.e3e_1 = this.a3e_1.i2u_1;
64890
+ this.f3e_1 = this.a3e_1.j2u_1;
64891
+ this.g3e_1 = this.a3e_1.k2u_1;
64892
+ this.h3e_1 = this.a3e_1.l2u_1;
64893
+ this.i3e_1 = this.a3e_1.m2u_1;
64894
+ this.j3e_1 = this.a3e_1.n2u_1;
64888
64895
  }
64889
- RTCQualityJS.prototype.i3e = function () {
64890
- return this.z3d_1;
64891
- };
64892
- RTCQualityJS.prototype.j3e = function () {
64893
- return this.a3e_1;
64894
- };
64895
64896
  RTCQualityJS.prototype.k3e = function () {
64896
64897
  return this.b3e_1;
64897
64898
  };
@@ -64913,22 +64914,28 @@ function requireClientsdkClientcore () {
64913
64914
  RTCQualityJS.prototype.q3e = function () {
64914
64915
  return this.h3e_1;
64915
64916
  };
64917
+ RTCQualityJS.prototype.r3e = function () {
64918
+ return this.i3e_1;
64919
+ };
64920
+ RTCQualityJS.prototype.s3e = function () {
64921
+ return this.j3e_1;
64922
+ };
64916
64923
  RTCQualityJS.prototype.copy = function (callQuality) {
64917
- return this.r3e(callQuality === void 1 ? this.y3d_1 : callQuality);
64924
+ return this.t3e(callQuality === void 1 ? this.a3e_1 : callQuality);
64918
64925
  };
64919
- RTCQualityJS.prototype.r3e = function (callQuality) {
64926
+ RTCQualityJS.prototype.t3e = function (callQuality) {
64920
64927
  return new RTCQualityJS(callQuality);
64921
64928
  };
64922
- RTCQualityJS.prototype.s3e = function (callQuality, $mask0, $handler) {
64929
+ RTCQualityJS.prototype.u3e = function (callQuality, $mask0, $handler) {
64923
64930
  if (!(($mask0 & 1) === 0))
64924
- callQuality = this.y3d_1;
64925
- return this.r3e(callQuality);
64931
+ callQuality = this.a3e_1;
64932
+ return this.t3e(callQuality);
64926
64933
  };
64927
64934
  RTCQualityJS.prototype.toString = function () {
64928
- return 'RTCQualityJS(callQuality=' + this.y3d_1 + ')';
64935
+ return 'RTCQualityJS(callQuality=' + this.a3e_1 + ')';
64929
64936
  };
64930
64937
  RTCQualityJS.prototype.hashCode = function () {
64931
- return this.y3d_1.hashCode();
64938
+ return this.a3e_1.hashCode();
64932
64939
  };
64933
64940
  RTCQualityJS.prototype.equals = function (other) {
64934
64941
  if (this === other)
@@ -64936,65 +64943,59 @@ function requireClientsdkClientcore () {
64936
64943
  if (!(other instanceof RTCQualityJS))
64937
64944
  return false;
64938
64945
  var tmp0_other_with_cast = other instanceof RTCQualityJS ? other : THROW_CCE();
64939
- if (!this.y3d_1.equals(tmp0_other_with_cast.y3d_1))
64946
+ if (!this.a3e_1.equals(tmp0_other_with_cast.a3e_1))
64940
64947
  return false;
64941
64948
  return true;
64942
64949
  };
64943
64950
  RTCQualityJS.$metadata$ = classMeta('RTCQualityJS');
64944
64951
  Object.defineProperty(RTCQualityJS.prototype, 'mos_score', {
64945
64952
  configurable: true,
64946
- get: RTCQualityJS.prototype.i3e
64953
+ get: RTCQualityJS.prototype.k3e
64947
64954
  });
64948
64955
  Object.defineProperty(RTCQualityJS.prototype, 'quality_percentage', {
64949
64956
  configurable: true,
64950
- get: RTCQualityJS.prototype.j3e
64957
+ get: RTCQualityJS.prototype.l3e
64951
64958
  });
64952
64959
  Object.defineProperty(RTCQualityJS.prototype, 'jitter_min_var', {
64953
64960
  configurable: true,
64954
- get: RTCQualityJS.prototype.k3e
64961
+ get: RTCQualityJS.prototype.m3e
64955
64962
  });
64956
64963
  Object.defineProperty(RTCQualityJS.prototype, 'jitter_max_var', {
64957
64964
  configurable: true,
64958
- get: RTCQualityJS.prototype.l3e
64965
+ get: RTCQualityJS.prototype.n3e
64959
64966
  });
64960
64967
  Object.defineProperty(RTCQualityJS.prototype, 'jitter_loss_rate', {
64961
64968
  configurable: true,
64962
- get: RTCQualityJS.prototype.m3e
64969
+ get: RTCQualityJS.prototype.o3e
64963
64970
  });
64964
64971
  Object.defineProperty(RTCQualityJS.prototype, 'jitter_burst_rate', {
64965
64972
  configurable: true,
64966
- get: RTCQualityJS.prototype.n3e
64973
+ get: RTCQualityJS.prototype.p3e
64967
64974
  });
64968
64975
  Object.defineProperty(RTCQualityJS.prototype, 'flaw_total', {
64969
64976
  configurable: true,
64970
- get: RTCQualityJS.prototype.o3e
64977
+ get: RTCQualityJS.prototype.q3e
64971
64978
  });
64972
64979
  Object.defineProperty(RTCQualityJS.prototype, 'packet_cnt', {
64973
64980
  configurable: true,
64974
- get: RTCQualityJS.prototype.p3e
64981
+ get: RTCQualityJS.prototype.r3e
64975
64982
  });
64976
64983
  Object.defineProperty(RTCQualityJS.prototype, 'packet_loss_perc', {
64977
64984
  configurable: true,
64978
- get: RTCQualityJS.prototype.q3e
64985
+ get: RTCQualityJS.prototype.s3e
64979
64986
  });
64980
64987
  function RTCStatsJS(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId) {
64981
- this.t3e_1 = audioRecvPackets;
64982
- this.u3e_1 = audioRecvPacketsLost;
64983
- this.v3e_1 = audioRecvBytes;
64984
- this.w3e_1 = audioRecvJitter;
64985
- this.x3e_1 = audioSentPackets;
64986
- this.y3e_1 = audioSentBytes;
64987
- this.z3e_1 = audioSentPacketsLost;
64988
- this.a3f_1 = audioRtt;
64989
- this.b3f_1 = audioSentJitter;
64990
- this.c3f_1 = legId;
64988
+ this.v3e_1 = audioRecvPackets;
64989
+ this.w3e_1 = audioRecvPacketsLost;
64990
+ this.x3e_1 = audioRecvBytes;
64991
+ this.y3e_1 = audioRecvJitter;
64992
+ this.z3e_1 = audioSentPackets;
64993
+ this.a3f_1 = audioSentBytes;
64994
+ this.b3f_1 = audioSentPacketsLost;
64995
+ this.c3f_1 = audioRtt;
64996
+ this.d3f_1 = audioSentJitter;
64997
+ this.e3f_1 = legId;
64991
64998
  }
64992
- RTCStatsJS.prototype.d3f = function () {
64993
- return this.t3e_1;
64994
- };
64995
- RTCStatsJS.prototype.e3f = function () {
64996
- return this.u3e_1;
64997
- };
64998
64999
  RTCStatsJS.prototype.f3f = function () {
64999
65000
  return this.v3e_1;
65000
65001
  };
@@ -65016,82 +65017,88 @@ function requireClientsdkClientcore () {
65016
65017
  RTCStatsJS.prototype.l3f = function () {
65017
65018
  return this.b3f_1;
65018
65019
  };
65019
- RTCStatsJS.prototype.x1f = function () {
65020
+ RTCStatsJS.prototype.m3f = function () {
65020
65021
  return this.c3f_1;
65021
65022
  };
65023
+ RTCStatsJS.prototype.n3f = function () {
65024
+ return this.d3f_1;
65025
+ };
65026
+ RTCStatsJS.prototype.x1f = function () {
65027
+ return this.e3f_1;
65028
+ };
65022
65029
  RTCStatsJS.prototype.component1 = function () {
65023
- return this.t3e_1;
65030
+ return this.v3e_1;
65024
65031
  };
65025
65032
  RTCStatsJS.prototype.component2 = function () {
65026
- return this.u3e_1;
65033
+ return this.w3e_1;
65027
65034
  };
65028
65035
  RTCStatsJS.prototype.component3 = function () {
65029
- return this.v3e_1;
65036
+ return this.x3e_1;
65030
65037
  };
65031
65038
  RTCStatsJS.prototype.component4 = function () {
65032
- return this.w3e_1;
65039
+ return this.y3e_1;
65033
65040
  };
65034
65041
  RTCStatsJS.prototype.component5 = function () {
65035
- return this.x3e_1;
65042
+ return this.z3e_1;
65036
65043
  };
65037
65044
  RTCStatsJS.prototype.component6 = function () {
65038
- return this.y3e_1;
65045
+ return this.a3f_1;
65039
65046
  };
65040
65047
  RTCStatsJS.prototype.component7 = function () {
65041
- return this.z3e_1;
65048
+ return this.b3f_1;
65042
65049
  };
65043
65050
  RTCStatsJS.prototype.component8 = function () {
65044
- return this.a3f_1;
65051
+ return this.c3f_1;
65045
65052
  };
65046
65053
  RTCStatsJS.prototype.component9 = function () {
65047
- return this.b3f_1;
65054
+ return this.d3f_1;
65048
65055
  };
65049
65056
  RTCStatsJS.prototype.component10 = function () {
65050
- return this.c3f_1;
65057
+ return this.e3f_1;
65051
65058
  };
65052
65059
  RTCStatsJS.prototype.copy = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId) {
65053
- return this.m3f(audioRecvPackets === void 1 ? this.t3e_1 : audioRecvPackets, audioRecvPacketsLost === void 1 ? this.u3e_1 : audioRecvPacketsLost, audioRecvBytes === void 1 ? this.v3e_1 : audioRecvBytes, audioRecvJitter === void 1 ? this.w3e_1 : audioRecvJitter, audioSentPackets === void 1 ? this.x3e_1 : audioSentPackets, audioSentBytes === void 1 ? this.y3e_1 : audioSentBytes, audioSentPacketsLost === void 1 ? this.z3e_1 : audioSentPacketsLost, audioRtt === void 1 ? this.a3f_1 : audioRtt, audioSentJitter === void 1 ? this.b3f_1 : audioSentJitter, legId === void 1 ? this.c3f_1 : legId);
65060
+ return this.o3f(audioRecvPackets === void 1 ? this.v3e_1 : audioRecvPackets, audioRecvPacketsLost === void 1 ? this.w3e_1 : audioRecvPacketsLost, audioRecvBytes === void 1 ? this.x3e_1 : audioRecvBytes, audioRecvJitter === void 1 ? this.y3e_1 : audioRecvJitter, audioSentPackets === void 1 ? this.z3e_1 : audioSentPackets, audioSentBytes === void 1 ? this.a3f_1 : audioSentBytes, audioSentPacketsLost === void 1 ? this.b3f_1 : audioSentPacketsLost, audioRtt === void 1 ? this.c3f_1 : audioRtt, audioSentJitter === void 1 ? this.d3f_1 : audioSentJitter, legId === void 1 ? this.e3f_1 : legId);
65054
65061
  };
65055
- RTCStatsJS.prototype.m3f = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId) {
65062
+ RTCStatsJS.prototype.o3f = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId) {
65056
65063
  return new RTCStatsJS(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId);
65057
65064
  };
65058
- RTCStatsJS.prototype.n3f = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId, $mask0, $handler) {
65065
+ RTCStatsJS.prototype.p3f = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId, $mask0, $handler) {
65059
65066
  if (!(($mask0 & 1) === 0))
65060
- audioRecvPackets = this.t3e_1;
65067
+ audioRecvPackets = this.v3e_1;
65061
65068
  if (!(($mask0 & 2) === 0))
65062
- audioRecvPacketsLost = this.u3e_1;
65069
+ audioRecvPacketsLost = this.w3e_1;
65063
65070
  if (!(($mask0 & 4) === 0))
65064
- audioRecvBytes = this.v3e_1;
65071
+ audioRecvBytes = this.x3e_1;
65065
65072
  if (!(($mask0 & 8) === 0))
65066
- audioRecvJitter = this.w3e_1;
65073
+ audioRecvJitter = this.y3e_1;
65067
65074
  if (!(($mask0 & 16) === 0))
65068
- audioSentPackets = this.x3e_1;
65075
+ audioSentPackets = this.z3e_1;
65069
65076
  if (!(($mask0 & 32) === 0))
65070
- audioSentBytes = this.y3e_1;
65077
+ audioSentBytes = this.a3f_1;
65071
65078
  if (!(($mask0 & 64) === 0))
65072
- audioSentPacketsLost = this.z3e_1;
65079
+ audioSentPacketsLost = this.b3f_1;
65073
65080
  if (!(($mask0 & 128) === 0))
65074
- audioRtt = this.a3f_1;
65081
+ audioRtt = this.c3f_1;
65075
65082
  if (!(($mask0 & 256) === 0))
65076
- audioSentJitter = this.b3f_1;
65083
+ audioSentJitter = this.d3f_1;
65077
65084
  if (!(($mask0 & 512) === 0))
65078
- legId = this.c3f_1;
65079
- return this.m3f(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId);
65085
+ legId = this.e3f_1;
65086
+ return this.o3f(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, legId);
65080
65087
  };
65081
65088
  RTCStatsJS.prototype.toString = function () {
65082
- return 'RTCStatsJS(audioRecvPackets=' + toString(this.t3e_1) + ', audioRecvPacketsLost=' + toString(this.u3e_1) + ', audioRecvBytes=' + toString(this.v3e_1) + ', audioRecvJitter=' + toString(this.w3e_1) + ', audioSentPackets=' + toString(this.x3e_1) + ', audioSentBytes=' + toString(this.y3e_1) + ', audioSentPacketsLost=' + toString(this.z3e_1) + ', audioRtt=' + toString(this.a3f_1) + ', audioSentJitter=' + toString(this.b3f_1) + ', legId=' + this.c3f_1 + ')';
65089
+ return 'RTCStatsJS(audioRecvPackets=' + toString(this.v3e_1) + ', audioRecvPacketsLost=' + toString(this.w3e_1) + ', audioRecvBytes=' + toString(this.x3e_1) + ', audioRecvJitter=' + toString(this.y3e_1) + ', audioSentPackets=' + toString(this.z3e_1) + ', audioSentBytes=' + toString(this.a3f_1) + ', audioSentPacketsLost=' + toString(this.b3f_1) + ', audioRtt=' + toString(this.c3f_1) + ', audioSentJitter=' + toString(this.d3f_1) + ', legId=' + this.e3f_1 + ')';
65083
65090
  };
65084
65091
  RTCStatsJS.prototype.hashCode = function () {
65085
- var result = this.t3e_1 == null ? 0 : hashCode(this.t3e_1);
65086
- result = imul(result, 31) + (this.u3e_1 == null ? 0 : hashCode(this.u3e_1)) | 0;
65087
- result = imul(result, 31) + (this.v3e_1 == null ? 0 : hashCode(this.v3e_1)) | 0;
65092
+ var result = this.v3e_1 == null ? 0 : hashCode(this.v3e_1);
65088
65093
  result = imul(result, 31) + (this.w3e_1 == null ? 0 : hashCode(this.w3e_1)) | 0;
65089
65094
  result = imul(result, 31) + (this.x3e_1 == null ? 0 : hashCode(this.x3e_1)) | 0;
65090
65095
  result = imul(result, 31) + (this.y3e_1 == null ? 0 : hashCode(this.y3e_1)) | 0;
65091
65096
  result = imul(result, 31) + (this.z3e_1 == null ? 0 : hashCode(this.z3e_1)) | 0;
65092
65097
  result = imul(result, 31) + (this.a3f_1 == null ? 0 : hashCode(this.a3f_1)) | 0;
65093
65098
  result = imul(result, 31) + (this.b3f_1 == null ? 0 : hashCode(this.b3f_1)) | 0;
65094
- result = imul(result, 31) + getStringHashCode(this.c3f_1) | 0;
65099
+ result = imul(result, 31) + (this.c3f_1 == null ? 0 : hashCode(this.c3f_1)) | 0;
65100
+ result = imul(result, 31) + (this.d3f_1 == null ? 0 : hashCode(this.d3f_1)) | 0;
65101
+ result = imul(result, 31) + getStringHashCode(this.e3f_1) | 0;
65095
65102
  return result;
65096
65103
  };
65097
65104
  RTCStatsJS.prototype.equals = function (other) {
@@ -65100,10 +65107,6 @@ function requireClientsdkClientcore () {
65100
65107
  if (!(other instanceof RTCStatsJS))
65101
65108
  return false;
65102
65109
  var tmp0_other_with_cast = other instanceof RTCStatsJS ? other : THROW_CCE();
65103
- if (!equals(this.t3e_1, tmp0_other_with_cast.t3e_1))
65104
- return false;
65105
- if (!equals(this.u3e_1, tmp0_other_with_cast.u3e_1))
65106
- return false;
65107
65110
  if (!equals(this.v3e_1, tmp0_other_with_cast.v3e_1))
65108
65111
  return false;
65109
65112
  if (!equals(this.w3e_1, tmp0_other_with_cast.w3e_1))
@@ -65118,46 +65121,50 @@ function requireClientsdkClientcore () {
65118
65121
  return false;
65119
65122
  if (!equals(this.b3f_1, tmp0_other_with_cast.b3f_1))
65120
65123
  return false;
65121
- if (!(this.c3f_1 === tmp0_other_with_cast.c3f_1))
65124
+ if (!equals(this.c3f_1, tmp0_other_with_cast.c3f_1))
65125
+ return false;
65126
+ if (!equals(this.d3f_1, tmp0_other_with_cast.d3f_1))
65127
+ return false;
65128
+ if (!(this.e3f_1 === tmp0_other_with_cast.e3f_1))
65122
65129
  return false;
65123
65130
  return true;
65124
65131
  };
65125
65132
  RTCStatsJS.$metadata$ = classMeta('RTCStatsJS');
65126
65133
  Object.defineProperty(RTCStatsJS.prototype, 'audioRecvPackets', {
65127
65134
  configurable: true,
65128
- get: RTCStatsJS.prototype.d3f
65135
+ get: RTCStatsJS.prototype.f3f
65129
65136
  });
65130
65137
  Object.defineProperty(RTCStatsJS.prototype, 'audioRecvPacketsLost', {
65131
65138
  configurable: true,
65132
- get: RTCStatsJS.prototype.e3f
65139
+ get: RTCStatsJS.prototype.g3f
65133
65140
  });
65134
65141
  Object.defineProperty(RTCStatsJS.prototype, 'audioRecvBytes', {
65135
65142
  configurable: true,
65136
- get: RTCStatsJS.prototype.f3f
65143
+ get: RTCStatsJS.prototype.h3f
65137
65144
  });
65138
65145
  Object.defineProperty(RTCStatsJS.prototype, 'audioRecvJitter', {
65139
65146
  configurable: true,
65140
- get: RTCStatsJS.prototype.g3f
65147
+ get: RTCStatsJS.prototype.i3f
65141
65148
  });
65142
65149
  Object.defineProperty(RTCStatsJS.prototype, 'audioSentPackets', {
65143
65150
  configurable: true,
65144
- get: RTCStatsJS.prototype.h3f
65151
+ get: RTCStatsJS.prototype.j3f
65145
65152
  });
65146
65153
  Object.defineProperty(RTCStatsJS.prototype, 'audioSentBytes', {
65147
65154
  configurable: true,
65148
- get: RTCStatsJS.prototype.i3f
65155
+ get: RTCStatsJS.prototype.k3f
65149
65156
  });
65150
65157
  Object.defineProperty(RTCStatsJS.prototype, 'audioSentPacketsLost', {
65151
65158
  configurable: true,
65152
- get: RTCStatsJS.prototype.j3f
65159
+ get: RTCStatsJS.prototype.l3f
65153
65160
  });
65154
65161
  Object.defineProperty(RTCStatsJS.prototype, 'audioRtt', {
65155
65162
  configurable: true,
65156
- get: RTCStatsJS.prototype.k3f
65163
+ get: RTCStatsJS.prototype.m3f
65157
65164
  });
65158
65165
  Object.defineProperty(RTCStatsJS.prototype, 'audioSentJitter', {
65159
65166
  configurable: true,
65160
- get: RTCStatsJS.prototype.l3f
65167
+ get: RTCStatsJS.prototype.n3f
65161
65168
  });
65162
65169
  Object.defineProperty(RTCStatsJS.prototype, 'legId', {
65163
65170
  configurable: true,
@@ -65195,7 +65202,7 @@ function requireClientsdkClientcore () {
65195
65202
  };
65196
65203
  }
65197
65204
  function HttpClientJSAdapter$1($js) {
65198
- this.o3f_1 = $js;
65205
+ this.q3f_1 = $js;
65199
65206
  }
65200
65207
  HttpClientJSAdapter$1.prototype.c2v = function (verb, url, headers, body, callback) {
65201
65208
  var tmp = verb.toString();
@@ -65207,7 +65214,7 @@ function requireClientsdkClientcore () {
65207
65214
  tmp$ret$0 = fromMap(JSON, headers);
65208
65215
  tmp$ret$1 = tmp$ret$0;
65209
65216
  var tmp_0 = tmp$ret$1;
65210
- this.o3f_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
65217
+ this.q3f_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
65211
65218
  };
65212
65219
  HttpClientJSAdapter$1.$metadata$ = classMeta(undefined, [HTTPClient]);
65213
65220
  function SocketClientJSAdapter$o$emit$lambda($callback) {
@@ -65231,14 +65238,14 @@ function requireClientsdkClientcore () {
65231
65238
  };
65232
65239
  }
65233
65240
  function SocketClientJSAdapter$adapter$1($js) {
65234
- this.q3f_1 = $js;
65235
- this.p3f_1 = null;
65241
+ this.s3f_1 = $js;
65242
+ this.r3f_1 = null;
65236
65243
  }
65237
65244
  SocketClientJSAdapter$adapter$1.prototype.f2v = function (_set____db54di) {
65238
- this.p3f_1 = _set____db54di;
65245
+ this.r3f_1 = _set____db54di;
65239
65246
  };
65240
- SocketClientJSAdapter$adapter$1.prototype.r3f = function () {
65241
- return this.p3f_1;
65247
+ SocketClientJSAdapter$adapter$1.prototype.t3f = function () {
65248
+ return this.r3f_1;
65242
65249
  };
65243
65250
  SocketClientJSAdapter$adapter$1.prototype.g2v = function (type, msg, callback) {
65244
65251
  var tmp0_safe_receiver = msg;
@@ -65256,26 +65263,26 @@ function requireClientsdkClientcore () {
65256
65263
  tmp = tmp$ret$1;
65257
65264
  }
65258
65265
  var tmp_0 = tmp;
65259
- this.q3f_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
65266
+ this.s3f_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
65260
65267
  };
65261
65268
  SocketClientJSAdapter$adapter$1.prototype.h2v = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, session_id, query) {
65262
- this.q3f_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, query);
65269
+ this.s3f_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, query);
65263
65270
  };
65264
65271
  SocketClientJSAdapter$adapter$1.prototype.i2v = function () {
65265
- this.q3f_1.disconnect();
65272
+ this.s3f_1.disconnect();
65266
65273
  };
65267
65274
  SocketClientJSAdapter$adapter$1.prototype.j2v = function (token) {
65268
- this.q3f_1.setConnectParamsSocketConfig(token);
65275
+ this.s3f_1.setConnectParamsSocketConfig(token);
65269
65276
  };
65270
65277
  SocketClientJSAdapter$adapter$1.prototype.k2v = function (milliseconds, callback) {
65271
- this.q3f_1.startVerifyResponseTimer(milliseconds, callback);
65278
+ this.s3f_1.startVerifyResponseTimer(milliseconds, callback);
65272
65279
  };
65273
65280
  SocketClientJSAdapter$adapter$1.$metadata$ = classMeta(undefined, [SocketClient]);
65274
65281
  function SocketClientJSAdapter$1($adapter) {
65275
- this.s3f_1 = $adapter;
65282
+ this.u3f_1 = $adapter;
65276
65283
  }
65277
65284
  SocketClientJSAdapter$1.prototype.didReceiveNewSocketEvent = function (type, body) {
65278
- var tmp0_safe_receiver = this.s3f_1.p3f_1;
65285
+ var tmp0_safe_receiver = this.u3f_1.r3f_1;
65279
65286
  if (tmp0_safe_receiver == null)
65280
65287
  null;
65281
65288
  else {
@@ -65313,7 +65320,7 @@ function requireClientsdkClientcore () {
65313
65320
  var tmp;
65314
65321
  switch (tmp0_subject_0) {
65315
65322
  case 'NXMCORE_REASON_SERVER_DISCONNECTED':
65316
- var tmp1_safe_receiver_0 = this.s3f_1.p3f_1;
65323
+ var tmp1_safe_receiver_0 = this.u3f_1.r3f_1;
65317
65324
  var tmp_0;
65318
65325
  if (tmp1_safe_receiver_0 == null) {
65319
65326
  tmp_0 = null;
@@ -65325,7 +65332,7 @@ function requireClientsdkClientcore () {
65325
65332
  tmp = tmp_0;
65326
65333
  break;
65327
65334
  case 'NXMCORE_REASON_CLIENT_DISCONNECTED':
65328
- var tmp2_safe_receiver = this.s3f_1.p3f_1;
65335
+ var tmp2_safe_receiver = this.u3f_1.r3f_1;
65329
65336
  var tmp_1;
65330
65337
  if (tmp2_safe_receiver == null) {
65331
65338
  tmp_1 = null;
@@ -65337,7 +65344,7 @@ function requireClientsdkClientcore () {
65337
65344
  tmp = tmp_1;
65338
65345
  break;
65339
65346
  case 'NXMCORE_CLIENT_NETWORK_ERROR':
65340
- var tmp3_safe_receiver = this.s3f_1.p3f_1;
65347
+ var tmp3_safe_receiver = this.u3f_1.r3f_1;
65341
65348
  var tmp_2;
65342
65349
  if (tmp3_safe_receiver == null) {
65343
65350
  tmp_2 = null;
@@ -65349,7 +65356,7 @@ function requireClientsdkClientcore () {
65349
65356
  tmp = tmp_2;
65350
65357
  break;
65351
65358
  case 'NXMCORE_REASON_PING_TIMEOUT':
65352
- var tmp4_safe_receiver = this.s3f_1.p3f_1;
65359
+ var tmp4_safe_receiver = this.u3f_1.r3f_1;
65353
65360
  var tmp_3;
65354
65361
  if (tmp4_safe_receiver == null) {
65355
65362
  tmp_3 = null;
@@ -65361,7 +65368,7 @@ function requireClientsdkClientcore () {
65361
65368
  tmp = tmp_3;
65362
65369
  break;
65363
65370
  default:
65364
- var tmp5_safe_receiver = this.s3f_1.p3f_1;
65371
+ var tmp5_safe_receiver = this.u3f_1.r3f_1;
65365
65372
  var tmp_4;
65366
65373
  if (tmp5_safe_receiver == null) {
65367
65374
  tmp_4 = null;
@@ -65379,43 +65386,43 @@ function requireClientsdkClientcore () {
65379
65386
  };
65380
65387
  SocketClientJSAdapter$1.$metadata$ = classMeta();
65381
65388
  function MediaClientJSAdapter$adapter$1($js) {
65382
- this.u3f_1 = $js;
65383
- this.t3f_1 = null;
65389
+ this.w3f_1 = $js;
65390
+ this.v3f_1 = null;
65384
65391
  }
65385
65392
  MediaClientJSAdapter$adapter$1.prototype.n2v = function (_set____db54di) {
65386
- this.t3f_1 = _set____db54di;
65393
+ this.v3f_1 = _set____db54di;
65387
65394
  };
65388
65395
  MediaClientJSAdapter$adapter$1.prototype.o2v = function (closure) {
65389
- this.u3f_1.enableMediaOutbound(closure);
65396
+ this.w3f_1.enableMediaOutbound(closure);
65390
65397
  };
65391
- MediaClientJSAdapter$adapter$1.prototype.v3f = function (closure, offerSDP, rtcId) {
65392
- this.u3f_1.enableMediaInbound(closure, offerSDP, rtcId);
65398
+ MediaClientJSAdapter$adapter$1.prototype.x3f = function (closure, offerSDP, rtcId) {
65399
+ this.w3f_1.enableMediaInbound(closure, offerSDP, rtcId);
65393
65400
  };
65394
65401
  MediaClientJSAdapter$adapter$1.prototype.p2v = function (closure, offerSDP, rtcId) {
65395
- return this.v3f(closure, offerSDP, rtcId);
65402
+ return this.x3f(closure, offerSDP, rtcId);
65396
65403
  };
65397
65404
  MediaClientJSAdapter$adapter$1.prototype.q2v = function (id, sdp) {
65398
- this.u3f_1.processAnswer(id, sdp);
65405
+ this.w3f_1.processAnswer(id, sdp);
65399
65406
  };
65400
65407
  MediaClientJSAdapter$adapter$1.prototype.r2v = function (id) {
65401
- this.u3f_1.disableMedia(id);
65408
+ this.w3f_1.disableMedia(id);
65402
65409
  };
65403
65410
  MediaClientJSAdapter$adapter$1.prototype.s2v = function (id) {
65404
- this.u3f_1.mute(id);
65411
+ this.w3f_1.mute(id);
65405
65412
  };
65406
65413
  MediaClientJSAdapter$adapter$1.prototype.t2v = function (id) {
65407
- this.u3f_1.unmute(id);
65414
+ this.w3f_1.unmute(id);
65408
65415
  };
65409
65416
  MediaClientJSAdapter$adapter$1.prototype.u2v = function (interval, mediaId) {
65410
- this.u3f_1.enableRtcStatsCollection(interval, mediaId);
65417
+ this.w3f_1.enableRtcStatsCollection(interval, mediaId);
65411
65418
  };
65412
65419
  MediaClientJSAdapter$adapter$1.$metadata$ = classMeta(undefined, [MediaClient]);
65413
65420
  function MediaClientJSAdapter$1($adapter) {
65414
- this.w3f_1 = $adapter;
65421
+ this.y3f_1 = $adapter;
65415
65422
  }
65416
65423
  MediaClientJSAdapter$1.prototype.onRtcStats = function (rtcStats) {
65417
- var stats = new RTCStats(rtcStats.t3e_1, rtcStats.u3e_1, rtcStats.v3e_1, rtcStats.w3e_1, rtcStats.x3e_1, rtcStats.y3e_1, rtcStats.z3e_1, rtcStats.a3f_1, rtcStats.b3f_1, rtcStats.c3f_1);
65418
- var tmp0_safe_receiver = this.w3f_1.t3f_1;
65424
+ var stats = new RTCStats(rtcStats.v3e_1, rtcStats.w3e_1, rtcStats.x3e_1, rtcStats.y3e_1, rtcStats.z3e_1, rtcStats.a3f_1, rtcStats.b3f_1, rtcStats.c3f_1, rtcStats.d3f_1, rtcStats.e3f_1);
65425
+ var tmp0_safe_receiver = this.y3f_1.v3f_1;
65419
65426
  if (tmp0_safe_receiver == null)
65420
65427
  null;
65421
65428
  else {
@@ -65427,7 +65434,7 @@ function requireClientsdkClientcore () {
65427
65434
  switch (tmp0_subject) {
65428
65435
  case 'new':
65429
65436
  case 'checking':
65430
- var tmp1_safe_receiver = this.w3f_1.t3f_1;
65437
+ var tmp1_safe_receiver = this.y3f_1.v3f_1;
65431
65438
  if (tmp1_safe_receiver == null)
65432
65439
  null;
65433
65440
  else {
@@ -65437,7 +65444,7 @@ function requireClientsdkClientcore () {
65437
65444
  ;
65438
65445
  break;
65439
65446
  case 'connecting':
65440
- var tmp2_safe_receiver = this.w3f_1.t3f_1;
65447
+ var tmp2_safe_receiver = this.y3f_1.v3f_1;
65441
65448
  if (tmp2_safe_receiver == null)
65442
65449
  null;
65443
65450
  else {
@@ -65447,7 +65454,7 @@ function requireClientsdkClientcore () {
65447
65454
  ;
65448
65455
  break;
65449
65456
  case 'connected':
65450
- var tmp3_safe_receiver = this.w3f_1.t3f_1;
65457
+ var tmp3_safe_receiver = this.y3f_1.v3f_1;
65451
65458
  if (tmp3_safe_receiver == null)
65452
65459
  null;
65453
65460
  else {
@@ -65457,7 +65464,7 @@ function requireClientsdkClientcore () {
65457
65464
  ;
65458
65465
  break;
65459
65466
  case 'disconnected':
65460
- var tmp4_safe_receiver = this.w3f_1.t3f_1;
65467
+ var tmp4_safe_receiver = this.y3f_1.v3f_1;
65461
65468
  if (tmp4_safe_receiver == null)
65462
65469
  null;
65463
65470
  else {
@@ -65467,7 +65474,7 @@ function requireClientsdkClientcore () {
65467
65474
  ;
65468
65475
  break;
65469
65476
  case 'closed':
65470
- var tmp5_safe_receiver = this.w3f_1.t3f_1;
65477
+ var tmp5_safe_receiver = this.y3f_1.v3f_1;
65471
65478
  if (tmp5_safe_receiver == null)
65472
65479
  null;
65473
65480
  else {
@@ -65477,7 +65484,7 @@ function requireClientsdkClientcore () {
65477
65484
  ;
65478
65485
  break;
65479
65486
  case 'failed':
65480
- var tmp6_safe_receiver = this.w3f_1.t3f_1;
65487
+ var tmp6_safe_receiver = this.y3f_1.v3f_1;
65481
65488
  if (tmp6_safe_receiver == null)
65482
65489
  null;
65483
65490
  else {
@@ -65487,7 +65494,7 @@ function requireClientsdkClientcore () {
65487
65494
  ;
65488
65495
  break;
65489
65496
  default:
65490
- var tmp7_safe_receiver = this.w3f_1.t3f_1;
65497
+ var tmp7_safe_receiver = this.y3f_1.v3f_1;
65491
65498
  if (tmp7_safe_receiver == null)
65492
65499
  null;
65493
65500
  else {
@@ -66406,9 +66413,6 @@ class MediaClient {
66406
66413
  (_a = receiver.track) === null || _a === void 0 ? void 0 : _a.stop();
66407
66414
  });
66408
66415
  }
66409
- else {
66410
- throw new Error('No RTCPeerConnection established');
66411
- }
66412
66416
  }
66413
66417
  // Private Methods
66414
66418
  setMediaTracksEnabled(id, value) {
@@ -66536,9 +66540,24 @@ const HangupReason = clientsdkClientcore_jsExports.vonage.HangupReasonJS;
66536
66540
  const SessionErrorReason = clientsdkClientcore_jsExports.vonage.SessionErrorReasonJS;
66537
66541
  const LegStatus = clientsdkClientcore_jsExports.vonage.LegStatusJS;
66538
66542
  const setVonageClientLoggingLevel = setDefaultLoggingLevel;
66543
+ /**
66544
+ * VonageClient is the main entry point for the Vonage Client SDK.
66545
+ *
66546
+ * @privateRemarks
66547
+ * This class is a wrapper around the KMP `CombinedClientJS` class.
66548
+ * It provides a more JS-like API, and also provides a proxy object
66549
+ * to allow for registering callbacks via `on()`.
66550
+ *
66551
+ * Minimal Interface built on top of KMP export
66552
+ * DO NOT ADD CODE HERE UNLESS REALLY NEEDEED!!111!
66553
+ */
66539
66554
  class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS {
66540
66555
  constructor() {
66541
66556
  super(new HttpClient(), new SocketClient(), new MediaClient());
66557
+ /**
66558
+ * Proxy object to allow for registering callbacks via `on()`
66559
+ * @internal
66560
+ */
66542
66561
  this.callbacks = new Map();
66543
66562
  // eslint-disable-next-line @typescript-eslint/no-this-alias
66544
66563
  const _this = this;
@@ -66553,10 +66572,62 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
66553
66572
  }
66554
66573
  });
66555
66574
  }
66575
+ /**
66576
+ * Register a callback for an event.
66577
+ *
66578
+ * NOTE: you can only register one callback per event.
66579
+ *
66580
+ * @param event - the event to register for (e.g. 'legStatusUpdate')
66581
+ * @param callback - the callback to register for the event
66582
+ * @returns void
66583
+ */
66556
66584
  on(event, callback) {
66557
66585
  this.callbacks.set(event, callback);
66558
66586
  }
66559
- // overrides to make the JS api more JS-like
66587
+ /**
66588
+ * Create a session with a token and optional sessionId
66589
+ * If no sessionId is provided, a new one will be generated
66590
+ * and returned. If a sessionId is provided, it will be used
66591
+ * to resume an existing session.
66592
+ *
66593
+ * @param token
66594
+ * @param sessionId - optional sessionId to use
66595
+ * @returns the `sessionId` of the session
66596
+ */
66597
+ createSession(token, sessionId) {
66598
+ const _super = Object.create(null, {
66599
+ createSession: { get: () => super.createSession }
66600
+ });
66601
+ return __awaiter(this, void 0, void 0, function* () {
66602
+ return _super.createSession.call(this, token, sessionId || null);
66603
+ });
66604
+ }
66605
+ /**
66606
+ * Make a server call to the Vonage API.
66607
+ * This is used to initiate a call using the Voice API and NCCO.
66608
+ *
66609
+ * @param context - the context to send to the server passed as Custom data to the voice answer webhook
66610
+ * @returns the `callId` of the call
66611
+ */
66612
+ serverCall(context) {
66613
+ const _super = Object.create(null, {
66614
+ serverCall: { get: () => super.serverCall }
66615
+ });
66616
+ return __awaiter(this, void 0, void 0, function* () {
66617
+ return _super.serverCall.call(this, context || null);
66618
+ });
66619
+ }
66620
+ /**
66621
+ * Hangup a call.
66622
+ *
66623
+ * @remarks
66624
+ * this is a convenience method that calls `hangupWithReason` with
66625
+ *
66626
+ * @param callId - the `callId` of the call to hangup
66627
+ * @param reasonText - optional reason text to send to the other party
66628
+ * @param reasonCode - optional reason code to send to the other party
66629
+ * @returns void
66630
+ */
66560
66631
  hangup(callId, reasonText, reasonCode) {
66561
66632
  const _super = Object.create(null, {
66562
66633
  hangupWithReason: { get: () => super.hangupWithReason }
@@ -66565,6 +66636,21 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
66565
66636
  return _super.hangupWithReason.call(this, callId, reasonText || null, reasonCode || null);
66566
66637
  });
66567
66638
  }
66639
+ say(callId, params) {
66640
+ const _super = Object.create(null, {
66641
+ say: { get: () => super.say }
66642
+ });
66643
+ return __awaiter(this, void 0, void 0, function* () {
66644
+ const defaultParams = {
66645
+ voiceName: null,
66646
+ loop: null,
66647
+ level: null,
66648
+ ssml: null,
66649
+ queue: null
66650
+ };
66651
+ return _super.say.call(this, callId, Object.assign(Object.assign({}, defaultParams), (typeof params === 'string' ? { text: params } : params)));
66652
+ });
66653
+ }
66568
66654
  }
66569
66655
 
66570
66656
  export { CSErrorCodes, CancelReason, ChannelType, ClientConfig, ConfigRegion, ConversationState, CustomMessageEvent, HangupReason, LegStatus, LoggingLevel, MemberInvitedEvent, MemberJoinedEvent, MemberLeftEvent, MemberState, PresentingOrder, SessionErrorCodes, SessionErrorReason, TextMessageEvent, UnknownEvent, VonageClient, VonageError, VonageErrorType, VonageClient as default, setVonageClientLoggingLevel };