@vonage/client-sdk 0.1.3-alpha.21 → 0.1.3-alpha.22

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.
@@ -83,73 +83,73 @@
83
83
  }
84
84
  function CoreClientConfigJS(region) {
85
85
  Companion_getInstance_0();
86
- this.z2a_1 = Companion_getInstance().v1x(map(Companion_getInstance_0(), region));
87
- this.a2b_1 = this.z2a_1.y1x_1;
88
- this.b2b_1 = this.z2a_1.z1x_1;
89
- this.c2b_1 = this.z2a_1.a1y_1;
86
+ this.e2b_1 = Companion_getInstance().y1x(map(Companion_getInstance_0(), region));
87
+ this.f2b_1 = this.e2b_1.b1y_1;
88
+ this.g2b_1 = this.e2b_1.c1y_1;
89
+ this.h2b_1 = this.e2b_1.d1y_1;
90
90
  var tmp = this;
91
91
  var tmp$ret$0;
92
92
  // Inline function 'kotlin.collections.toTypedArray' call
93
- var tmp0_toTypedArray = this.z2a_1.b1y_1;
93
+ var tmp0_toTypedArray = this.e2b_1.e1y_1;
94
94
  tmp$ret$0 = copyToArray(tmp0_toTypedArray);
95
- tmp.d2b_1 = tmp$ret$0;
96
- this.e2b_1 = this.z2a_1.c1y_1;
95
+ tmp.i2b_1 = tmp$ret$0;
96
+ this.j2b_1 = this.e2b_1.f1y_1;
97
97
  }
98
- CoreClientConfigJS.prototype.f2b = function (_set____db54di) {
99
- this.a2b_1 = _set____db54di;
98
+ CoreClientConfigJS.prototype.k2b = function (_set____db54di) {
99
+ this.f2b_1 = _set____db54di;
100
100
  };
101
- CoreClientConfigJS.prototype.g2b = function () {
102
- return this.a2b_1;
101
+ CoreClientConfigJS.prototype.l2b = function () {
102
+ return this.f2b_1;
103
103
  };
104
- CoreClientConfigJS.prototype.h2b = function (_set____db54di) {
105
- this.b2b_1 = _set____db54di;
104
+ CoreClientConfigJS.prototype.m2b = function (_set____db54di) {
105
+ this.g2b_1 = _set____db54di;
106
106
  };
107
- CoreClientConfigJS.prototype.i2b = function () {
108
- return this.b2b_1;
107
+ CoreClientConfigJS.prototype.n2b = function () {
108
+ return this.g2b_1;
109
109
  };
110
- CoreClientConfigJS.prototype.j2b = function (_set____db54di) {
111
- this.c2b_1 = _set____db54di;
110
+ CoreClientConfigJS.prototype.o2b = function (_set____db54di) {
111
+ this.h2b_1 = _set____db54di;
112
112
  };
113
- CoreClientConfigJS.prototype.k2b = function () {
114
- return this.c2b_1;
113
+ CoreClientConfigJS.prototype.p2b = function () {
114
+ return this.h2b_1;
115
115
  };
116
- CoreClientConfigJS.prototype.l2b = function (_set____db54di) {
117
- this.d2b_1 = _set____db54di;
116
+ CoreClientConfigJS.prototype.q2b = function (_set____db54di) {
117
+ this.i2b_1 = _set____db54di;
118
118
  };
119
- CoreClientConfigJS.prototype.m2b = function () {
120
- return this.d2b_1;
119
+ CoreClientConfigJS.prototype.r2b = function () {
120
+ return this.i2b_1;
121
121
  };
122
- CoreClientConfigJS.prototype.n2b = function (_set____db54di) {
123
- this.e2b_1 = _set____db54di;
122
+ CoreClientConfigJS.prototype.s2b = function (_set____db54di) {
123
+ this.j2b_1 = _set____db54di;
124
124
  };
125
- CoreClientConfigJS.prototype.o2b = function () {
126
- return this.e2b_1;
125
+ CoreClientConfigJS.prototype.t2b = function () {
126
+ return this.j2b_1;
127
127
  };
128
128
  CoreClientConfigJS.$metadata$ = classMeta('CoreClientConfigJS');
129
129
  Object.defineProperty(CoreClientConfigJS.prototype, 'apiUrl', {
130
130
  configurable: true,
131
- get: CoreClientConfigJS.prototype.g2b,
132
- set: CoreClientConfigJS.prototype.f2b
131
+ get: CoreClientConfigJS.prototype.l2b,
132
+ set: CoreClientConfigJS.prototype.k2b
133
133
  });
134
134
  Object.defineProperty(CoreClientConfigJS.prototype, 'websocketUrl', {
135
135
  configurable: true,
136
- get: CoreClientConfigJS.prototype.i2b,
137
- set: CoreClientConfigJS.prototype.h2b
136
+ get: CoreClientConfigJS.prototype.n2b,
137
+ set: CoreClientConfigJS.prototype.m2b
138
138
  });
139
139
  Object.defineProperty(CoreClientConfigJS.prototype, 'websocketPath', {
140
140
  configurable: true,
141
- get: CoreClientConfigJS.prototype.k2b,
142
- set: CoreClientConfigJS.prototype.j2b
141
+ get: CoreClientConfigJS.prototype.p2b,
142
+ set: CoreClientConfigJS.prototype.o2b
143
143
  });
144
144
  Object.defineProperty(CoreClientConfigJS.prototype, 'iceServerUrls', {
145
145
  configurable: true,
146
- get: CoreClientConfigJS.prototype.m2b,
147
- set: CoreClientConfigJS.prototype.l2b
146
+ get: CoreClientConfigJS.prototype.r2b,
147
+ set: CoreClientConfigJS.prototype.q2b
148
148
  });
149
149
  Object.defineProperty(CoreClientConfigJS.prototype, 'autoMediaReoffer', {
150
150
  configurable: true,
151
- get: CoreClientConfigJS.prototype.o2b,
152
- set: CoreClientConfigJS.prototype.n2b
151
+ get: CoreClientConfigJS.prototype.t2b,
152
+ set: CoreClientConfigJS.prototype.s2b
153
153
  });
154
154
  function CoreClientJS$createSession$lambda$lambda($reject, $resolve) {
155
155
  return function (err, sessionId) {
@@ -164,7 +164,7 @@
164
164
  }
165
165
  function CoreClientJS$createSession$lambda(this$0, $token, $sessionId) {
166
166
  return function (resolve, reject) {
167
- this$0.q2b_1.r1a($token, $sessionId, CoreClientJS$createSession$lambda$lambda(reject, resolve));
167
+ this$0.v2b_1.r1a($token, $sessionId, CoreClientJS$createSession$lambda$lambda(reject, resolve));
168
168
  return Unit_getInstance();
169
169
  };
170
170
  }
@@ -179,7 +179,7 @@
179
179
  }
180
180
  function CoreClientJS$deleteSession$lambda(this$0) {
181
181
  return function (resolve, reject) {
182
- this$0.q2b_1.s1a(CoreClientJS$deleteSession$lambda$lambda(reject, resolve));
182
+ this$0.v2b_1.s1a(CoreClientJS$deleteSession$lambda$lambda(reject, resolve));
183
183
  return Unit_getInstance();
184
184
  };
185
185
  }
@@ -194,7 +194,7 @@
194
194
  }
195
195
  function CoreClientJS$refreshSession$lambda(this$0, $token) {
196
196
  return function (resolve, reject) {
197
- this$0.q2b_1.t1a($token, CoreClientJS$refreshSession$lambda$lambda(reject, resolve));
197
+ this$0.v2b_1.t1a($token, CoreClientJS$refreshSession$lambda$lambda(reject, resolve));
198
198
  return Unit_getInstance();
199
199
  };
200
200
  }
@@ -212,31 +212,31 @@
212
212
  }
213
213
  function CoreClientJS$serverCall$lambda(this$0, $typedContext) {
214
214
  return function (resolve, reject) {
215
- this$0.q2b_1.w1a($typedContext, CoreClientJS$serverCall$lambda$lambda(resolve, reject));
215
+ this$0.v2b_1.w1a($typedContext, CoreClientJS$serverCall$lambda$lambda(resolve, reject));
216
216
  return Unit_getInstance();
217
217
  };
218
218
  }
219
219
  function CoreClientJS$1(this$0) {
220
- this.r2b_1 = this$0;
220
+ this.w2b_1 = this$0;
221
221
  }
222
- CoreClientJS$1.prototype.g1z = function () {
223
- var tmp0_safe_receiver = this.r2b_1.p2b_1;
222
+ CoreClientJS$1.prototype.q1z = function () {
223
+ var tmp0_safe_receiver = this.w2b_1.u2b_1;
224
224
  if (tmp0_safe_receiver == null)
225
225
  null;
226
226
  else {
227
227
  tmp0_safe_receiver.reconnecting();
228
228
  }
229
229
  };
230
- CoreClientJS$1.prototype.h1z = function () {
231
- var tmp0_safe_receiver = this.r2b_1.p2b_1;
230
+ CoreClientJS$1.prototype.r1z = function () {
231
+ var tmp0_safe_receiver = this.w2b_1.u2b_1;
232
232
  if (tmp0_safe_receiver == null)
233
233
  null;
234
234
  else {
235
235
  tmp0_safe_receiver.reconnection();
236
236
  }
237
237
  };
238
- CoreClientJS$1.prototype.i1z = function (reason) {
239
- var tmp0_safe_receiver = this.r2b_1.p2b_1;
238
+ CoreClientJS$1.prototype.s1z = function (reason) {
239
+ var tmp0_safe_receiver = this.w2b_1.u2b_1;
240
240
  if (tmp0_safe_receiver == null)
241
241
  null;
242
242
  else {
@@ -245,63 +245,71 @@
245
245
  };
246
246
  CoreClientJS$1.$metadata$ = classMeta(undefined, [SessionListener]);
247
247
  function CoreClientJS$2(this$0) {
248
- this.s2b_1 = this$0;
248
+ this.x2b_1 = this$0;
249
249
  }
250
- CoreClientJS$2.prototype.t20 = function (invite) {
251
- var tmp0_safe_receiver = this.s2b_1.p2b_1;
250
+ CoreClientJS$2.prototype.d21 = function (invite) {
251
+ var tmp0_safe_receiver = this.x2b_1.u2b_1;
252
252
  if (tmp0_safe_receiver == null)
253
253
  null;
254
254
  else {
255
255
  tmp0_safe_receiver.callInvite(VoiceInviteJS_init_$Create$(invite, null, 2, null));
256
256
  }
257
257
  };
258
- CoreClientJS$2.prototype.u20 = function (call, newConversation, prevConversation) {
259
- var tmp0_safe_receiver = this.s2b_1.p2b_1;
258
+ CoreClientJS$2.prototype.e21 = function (call, newConversation, prevConversation) {
259
+ var tmp0_safe_receiver = this.x2b_1.u2b_1;
260
260
  if (tmp0_safe_receiver == null)
261
261
  null;
262
262
  else {
263
263
  tmp0_safe_receiver.callTransfer(new VoiceCallJS(call), new ConversationJS(newConversation), new ConversationJS(prevConversation));
264
264
  }
265
265
  };
266
- CoreClientJS$2.prototype.v20 = function (call, legId, isMuted) {
267
- var tmp0_safe_receiver = this.s2b_1.p2b_1;
266
+ CoreClientJS$2.prototype.f21 = function (call, legId, isMuted) {
267
+ var tmp0_safe_receiver = this.x2b_1.u2b_1;
268
268
  if (tmp0_safe_receiver == null)
269
269
  null;
270
270
  else {
271
271
  tmp0_safe_receiver.mute(new VoiceCallJS(call), legId, isMuted);
272
272
  }
273
273
  };
274
- CoreClientJS$2.prototype.w20 = function (call, legId, earmuffStatus) {
275
- var tmp0_safe_receiver = this.s2b_1.p2b_1;
274
+ CoreClientJS$2.prototype.g21 = function (call, legId, earmuffStatus) {
275
+ var tmp0_safe_receiver = this.x2b_1.u2b_1;
276
276
  if (tmp0_safe_receiver == null)
277
277
  null;
278
278
  else {
279
279
  tmp0_safe_receiver.earmuff(new VoiceCallJS(call), legId, earmuffStatus);
280
280
  }
281
281
  };
282
- CoreClientJS$2.prototype.x20 = function (call, legId, digits) {
283
- var tmp0_safe_receiver = this.s2b_1.p2b_1;
282
+ CoreClientJS$2.prototype.h21 = function (call, legId, digits) {
283
+ var tmp0_safe_receiver = this.x2b_1.u2b_1;
284
284
  if (tmp0_safe_receiver == null)
285
285
  null;
286
286
  else {
287
287
  tmp0_safe_receiver.dtmf(new VoiceCallJS(call), legId, digits);
288
288
  }
289
289
  };
290
+ CoreClientJS$2.prototype.i21 = function (call, legId, callQuality) {
291
+ var tmp0_safe_receiver = this.x2b_1.u2b_1;
292
+ if (tmp0_safe_receiver == null)
293
+ null;
294
+ else {
295
+ tmp0_safe_receiver.rtcHangup(new VoiceCallJS(call), legId, new RTCQualityJS(callQuality));
296
+ }
297
+ };
290
298
  CoreClientJS$2.$metadata$ = classMeta(undefined, [VoiceClientDelegate]);
291
299
  function CoreClientJS(http, socket, media) {
292
- this.p2b_1 = null;
293
- this.q2b_1 = (new Builder()).u1b(HttpClientJSAdapter(http)).v1b(SocketClientJSAdapter(socket)).w1b(MediaClientJSAdapter(media));
294
- this.q2b_1.u1a(new CoreClientJS$1(this));
295
- this.q2b_1.v1a(new CoreClientJS$2(this));
300
+ this.u2b_1 = null;
301
+ this.v2b_1 = (new Builder()).u1b(HttpClientJSAdapter(http)).v1b(SocketClientJSAdapter(socket)).w1b(MediaClientJSAdapter(media));
302
+ this.v2b_1.u1a(new CoreClientJS$1(this));
303
+ this.v2b_1.v1a(new CoreClientJS$2(this));
296
304
  }
297
- CoreClientJS.prototype.t2b = function (_set____db54di) {
298
- this.p2b_1 = _set____db54di;
305
+ CoreClientJS.prototype.y2b = function (_set____db54di) {
306
+ this.u2b_1 = _set____db54di;
299
307
  };
300
- CoreClientJS.prototype.u2b = function () {
301
- return this.p2b_1;
308
+ CoreClientJS.prototype.z2b = function () {
309
+ return this.u2b_1;
302
310
  };
303
311
  CoreClientJS.prototype.setConfig = function (config) {
304
- this.q2b_1.q1a(new SetConfig(config.b2b_1, config.c2b_1, config.a2b_1));
312
+ this.v2b_1.q1a(new SetConfig(config.g2b_1, config.h2b_1, config.f2b_1));
305
313
  };
306
314
  CoreClientJS.prototype.createSession = function (token, sessionId) {
307
315
  return new Promise(CoreClientJS$createSession$lambda(this, token, sessionId));
@@ -330,13 +338,14 @@
330
338
  CoreClientJS.$metadata$ = classMeta('CoreClientJS');
331
339
  Object.defineProperty(CoreClientJS.prototype, 'emitter', {
332
340
  configurable: true,
333
- get: CoreClientJS.prototype.u2b,
334
- set: CoreClientJS.prototype.t2b
341
+ get: CoreClientJS.prototype.z2b,
342
+ set: CoreClientJS.prototype.y2b
335
343
  });
336
344
  function VoiceCallJS$hangup$lambda$lambda($resolve, $reject) {
337
345
  return function (it) {
346
+ var tmp0_subject = it;
338
347
  var tmp;
339
- if (it == null) {
348
+ if (tmp0_subject == null) {
340
349
  tmp = $resolve(null);
341
350
  } else {
342
351
  tmp = $reject(it instanceof Error ? it : THROW_CCE());
@@ -344,9 +353,9 @@
344
353
  return Unit_getInstance();
345
354
  };
346
355
  }
347
- function VoiceCallJS$hangup$lambda(this$0) {
356
+ function VoiceCallJS$hangup$lambda(this$0, $reasonText, $reasonCode) {
348
357
  return function (resolve, reject) {
349
- this$0.v2b_1.c20(VoiceCallJS$hangup$lambda$lambda(resolve, reject));
358
+ this$0.a2c_1.m20($reasonText, $reasonCode, VoiceCallJS$hangup$lambda$lambda(resolve, reject));
350
359
  return Unit_getInstance();
351
360
  };
352
361
  }
@@ -374,7 +383,7 @@
374
383
  var tmp_3 = tmp3_elvis_lhs == null ? 'amy' : tmp3_elvis_lhs;
375
384
  var tmp4_elvis_lhs = get_jsonNullable($params.ssml);
376
385
  var tmp_4 = tmp4_elvis_lhs == null ? true : tmp4_elvis_lhs;
377
- this$0.v2b_1.s20(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, VoiceCallJS$say$lambda$lambda(reject, resolve));
386
+ this$0.a2c_1.c21(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, VoiceCallJS$say$lambda$lambda(reject, resolve));
378
387
  return Unit_getInstance();
379
388
  };
380
389
  }
@@ -391,7 +400,7 @@
391
400
  }
392
401
  function VoiceCallJS$mute$lambda(this$0) {
393
402
  return function (resolve, reject) {
394
- this$0.v2b_1.n20(VoiceCallJS$mute$lambda$lambda(reject, resolve));
403
+ this$0.a2c_1.x20(VoiceCallJS$mute$lambda$lambda(reject, resolve));
395
404
  return Unit_getInstance();
396
405
  };
397
406
  }
@@ -406,7 +415,7 @@
406
415
  }
407
416
  function VoiceCallJS$unmute$lambda(this$0) {
408
417
  return function (resolve, reject) {
409
- this$0.v2b_1.o20(VoiceCallJS$unmute$lambda$lambda(reject, resolve));
418
+ this$0.a2c_1.y20(VoiceCallJS$unmute$lambda$lambda(reject, resolve));
410
419
  return Unit_getInstance();
411
420
  };
412
421
  }
@@ -421,7 +430,7 @@
421
430
  }
422
431
  function VoiceCallJS$enableEarmuff$lambda(this$0) {
423
432
  return function (resolve, reject) {
424
- this$0.v2b_1.p20(VoiceCallJS$enableEarmuff$lambda$lambda(reject, resolve));
433
+ this$0.a2c_1.z20(VoiceCallJS$enableEarmuff$lambda$lambda(reject, resolve));
425
434
  return Unit_getInstance();
426
435
  };
427
436
  }
@@ -436,7 +445,7 @@
436
445
  }
437
446
  function VoiceCallJS$disableEarmuff$lambda(this$0) {
438
447
  return function (resolve, reject) {
439
- this$0.v2b_1.q20(VoiceCallJS$disableEarmuff$lambda$lambda(reject, resolve));
448
+ this$0.a2c_1.a21(VoiceCallJS$disableEarmuff$lambda$lambda(reject, resolve));
440
449
  return Unit_getInstance();
441
450
  };
442
451
  }
@@ -451,19 +460,29 @@
451
460
  }
452
461
  function VoiceCallJS$sendDTMF$lambda(this$0, $digits) {
453
462
  return function (resolve, reject) {
454
- this$0.v2b_1.r20($digits, VoiceCallJS$sendDTMF$lambda$lambda(reject, resolve));
463
+ this$0.a2c_1.b21($digits, VoiceCallJS$sendDTMF$lambda$lambda(reject, resolve));
455
464
  return Unit_getInstance();
456
465
  };
457
466
  }
458
467
  function VoiceCallJS(call) {
459
- this.v2b_1 = call;
460
- this.w2b_1 = this.v2b_1.v1z_1;
468
+ this.a2c_1 = call;
469
+ this.b2c_1 = this.a2c_1.f20_1;
461
470
  }
462
- VoiceCallJS.prototype.h1k = function () {
463
- return this.w2b_1;
471
+ VoiceCallJS.prototype.k1k = function () {
472
+ return this.b2c_1;
473
+ };
474
+ VoiceCallJS.prototype.hangup = function (reasonText, reasonCode) {
475
+ return this.c2c(reasonText === void 1 ? null : reasonText, reasonCode === void 1 ? null : reasonCode);
476
+ };
477
+ VoiceCallJS.prototype.c2c = function (reasonText, reasonCode) {
478
+ return new Promise(VoiceCallJS$hangup$lambda(this, reasonText, reasonCode));
464
479
  };
465
- VoiceCallJS.prototype.hangup = function () {
466
- return new Promise(VoiceCallJS$hangup$lambda(this));
480
+ VoiceCallJS.prototype.d2c = function (reasonText, reasonCode, $mask0, $handler) {
481
+ if (!(($mask0 & 1) === 0))
482
+ reasonText = null;
483
+ if (!(($mask0 & 2) === 0))
484
+ reasonCode = null;
485
+ return this.c2c(reasonText, reasonCode);
467
486
  };
468
487
  VoiceCallJS.prototype.say = function (params) {
469
488
  return new Promise(VoiceCallJS$say$lambda(this, params));
@@ -486,43 +505,43 @@
486
505
  VoiceCallJS.$metadata$ = classMeta('VoiceCallJS');
487
506
  Object.defineProperty(VoiceCallJS.prototype, 'id', {
488
507
  configurable: true,
489
- get: VoiceCallJS.prototype.h1k
508
+ get: VoiceCallJS.prototype.k1k
490
509
  });
491
510
  function VoiceInviteFromInfoJS(id, type) {
492
- this.x2b_1 = id;
493
- this.y2b_1 = type;
511
+ this.e2c_1 = id;
512
+ this.f2c_1 = type;
494
513
  }
495
- VoiceInviteFromInfoJS.prototype.h1k = function () {
496
- return this.x2b_1;
514
+ VoiceInviteFromInfoJS.prototype.k1k = function () {
515
+ return this.e2c_1;
497
516
  };
498
- VoiceInviteFromInfoJS.prototype.z2b = function () {
499
- return this.y2b_1;
517
+ VoiceInviteFromInfoJS.prototype.g2c = function () {
518
+ return this.f2c_1;
500
519
  };
501
520
  VoiceInviteFromInfoJS.prototype.component1 = function () {
502
- return this.x2b_1;
521
+ return this.e2c_1;
503
522
  };
504
523
  VoiceInviteFromInfoJS.prototype.component2 = function () {
505
- return this.y2b_1;
524
+ return this.f2c_1;
506
525
  };
507
526
  VoiceInviteFromInfoJS.prototype.copy = function (id, type) {
508
- return this.a2c(id === void 1 ? this.x2b_1 : id, type === void 1 ? this.y2b_1 : type);
527
+ return this.h2c(id === void 1 ? this.e2c_1 : id, type === void 1 ? this.f2c_1 : type);
509
528
  };
510
- VoiceInviteFromInfoJS.prototype.a2c = function (id, type) {
529
+ VoiceInviteFromInfoJS.prototype.h2c = function (id, type) {
511
530
  return new VoiceInviteFromInfoJS(id, type);
512
531
  };
513
- VoiceInviteFromInfoJS.prototype.b2c = function (id, type, $mask0, $handler) {
532
+ VoiceInviteFromInfoJS.prototype.i2c = function (id, type, $mask0, $handler) {
514
533
  if (!(($mask0 & 1) === 0))
515
- id = this.x2b_1;
534
+ id = this.e2c_1;
516
535
  if (!(($mask0 & 2) === 0))
517
- type = this.y2b_1;
518
- return this.a2c(id, type);
536
+ type = this.f2c_1;
537
+ return this.h2c(id, type);
519
538
  };
520
539
  VoiceInviteFromInfoJS.prototype.toString = function () {
521
- return 'VoiceInviteFromInfoJS(id=' + this.x2b_1 + ', type=' + this.y2b_1 + ')';
540
+ return 'VoiceInviteFromInfoJS(id=' + this.e2c_1 + ', type=' + this.f2c_1 + ')';
522
541
  };
523
542
  VoiceInviteFromInfoJS.prototype.hashCode = function () {
524
- var result = this.x2b_1 == null ? 0 : getStringHashCode(this.x2b_1);
525
- result = imul(result, 31) + getStringHashCode(this.y2b_1) | 0;
543
+ var result = this.e2c_1 == null ? 0 : getStringHashCode(this.e2c_1);
544
+ result = imul(result, 31) + getStringHashCode(this.f2c_1) | 0;
526
545
  return result;
527
546
  };
528
547
  VoiceInviteFromInfoJS.prototype.equals = function (other) {
@@ -531,24 +550,24 @@
531
550
  if (!(other instanceof VoiceInviteFromInfoJS))
532
551
  return false;
533
552
  var tmp0_other_with_cast = other instanceof VoiceInviteFromInfoJS ? other : THROW_CCE();
534
- if (!(this.x2b_1 == tmp0_other_with_cast.x2b_1))
553
+ if (!(this.e2c_1 == tmp0_other_with_cast.e2c_1))
535
554
  return false;
536
- if (!(this.y2b_1 === tmp0_other_with_cast.y2b_1))
555
+ if (!(this.f2c_1 === tmp0_other_with_cast.f2c_1))
537
556
  return false;
538
557
  return true;
539
558
  };
540
559
  VoiceInviteFromInfoJS.$metadata$ = classMeta('VoiceInviteFromInfoJS');
541
560
  Object.defineProperty(VoiceInviteFromInfoJS.prototype, 'id', {
542
561
  configurable: true,
543
- get: VoiceInviteFromInfoJS.prototype.h1k
562
+ get: VoiceInviteFromInfoJS.prototype.k1k
544
563
  });
545
564
  Object.defineProperty(VoiceInviteFromInfoJS.prototype, 'type', {
546
565
  configurable: true,
547
- get: VoiceInviteFromInfoJS.prototype.z2b
566
+ get: VoiceInviteFromInfoJS.prototype.g2c
548
567
  });
549
568
  function VoiceInviteJS_init_$Init$(invite, from, $mask0, $marker, $this) {
550
569
  if (!(($mask0 & 2) === 0))
551
- from = new VoiceInviteFromInfoJS(invite.a21_1.f21_1, invite.a21_1.g21_1);
570
+ from = new VoiceInviteFromInfoJS(invite.l21_1.q21_1, invite.l21_1.r21_1);
552
571
  VoiceInviteJS.call($this, invite, from);
553
572
  return $this;
554
573
  }
@@ -570,7 +589,7 @@
570
589
  }
571
590
  function VoiceInviteJS$answerCall$lambda(this$0) {
572
591
  return function (resolve, reject) {
573
- this$0.c2c_1.b21(VoiceInviteJS$answerCall$lambda$lambda(reject, resolve));
592
+ this$0.j2c_1.m21(VoiceInviteJS$answerCall$lambda$lambda(reject, resolve));
574
593
  return Unit_getInstance();
575
594
  };
576
595
  }
@@ -587,16 +606,16 @@
587
606
  }
588
607
  function VoiceInviteJS$rejectCall$lambda(this$0) {
589
608
  return function (resolve, reject) {
590
- this$0.c2c_1.e21(VoiceInviteJS$rejectCall$lambda$lambda(reject, resolve));
609
+ this$0.j2c_1.p21(VoiceInviteJS$rejectCall$lambda$lambda(reject, resolve));
591
610
  return Unit_getInstance();
592
611
  };
593
612
  }
594
613
  function VoiceInviteJS(invite, from) {
595
- this.c2c_1 = invite;
596
- this.d2c_1 = from;
614
+ this.j2c_1 = invite;
615
+ this.k2c_1 = from;
597
616
  }
598
- VoiceInviteJS.prototype.o1j = function () {
599
- return this.d2c_1;
617
+ VoiceInviteJS.prototype.r1j = function () {
618
+ return this.k2c_1;
600
619
  };
601
620
  VoiceInviteJS.prototype.answerCall = function () {
602
621
  return new Promise(VoiceInviteJS$answerCall$lambda(this));
@@ -607,34 +626,34 @@
607
626
  VoiceInviteJS.$metadata$ = classMeta('VoiceInviteJS');
608
627
  Object.defineProperty(VoiceInviteJS.prototype, 'from', {
609
628
  configurable: true,
610
- get: VoiceInviteJS.prototype.o1j
629
+ get: VoiceInviteJS.prototype.r1j
611
630
  });
612
631
  function ConversationJS(conversation) {
613
- this.e2c_1 = conversation;
614
- this.f2c_1 = this.e2c_1.d1y_1;
632
+ this.l2c_1 = conversation;
633
+ this.m2c_1 = this.l2c_1.g1y_1;
615
634
  }
616
- ConversationJS.prototype.g2c = function (_set____db54di) {
617
- this.f2c_1 = _set____db54di;
635
+ ConversationJS.prototype.n2c = function (_set____db54di) {
636
+ this.m2c_1 = _set____db54di;
618
637
  };
619
- ConversationJS.prototype.h1k = function () {
620
- return this.f2c_1;
638
+ ConversationJS.prototype.k1k = function () {
639
+ return this.m2c_1;
621
640
  };
622
641
  ConversationJS.prototype.copy = function (conversation) {
623
- return this.h2c(conversation === void 1 ? this.e2c_1 : conversation);
642
+ return this.o2c(conversation === void 1 ? this.l2c_1 : conversation);
624
643
  };
625
- ConversationJS.prototype.h2c = function (conversation) {
644
+ ConversationJS.prototype.o2c = function (conversation) {
626
645
  return new ConversationJS(conversation);
627
646
  };
628
- ConversationJS.prototype.i2c = function (conversation, $mask0, $handler) {
647
+ ConversationJS.prototype.p2c = function (conversation, $mask0, $handler) {
629
648
  if (!(($mask0 & 1) === 0))
630
- conversation = this.e2c_1;
631
- return this.h2c(conversation);
649
+ conversation = this.l2c_1;
650
+ return this.o2c(conversation);
632
651
  };
633
652
  ConversationJS.prototype.toString = function () {
634
- return 'ConversationJS(conversation=' + this.e2c_1 + ')';
653
+ return 'ConversationJS(conversation=' + this.l2c_1 + ')';
635
654
  };
636
655
  ConversationJS.prototype.hashCode = function () {
637
- return this.e2c_1.hashCode();
656
+ return this.l2c_1.hashCode();
638
657
  };
639
658
  ConversationJS.prototype.equals = function (other) {
640
659
  if (this === other)
@@ -642,15 +661,15 @@
642
661
  if (!(other instanceof ConversationJS))
643
662
  return false;
644
663
  var tmp0_other_with_cast = other instanceof ConversationJS ? other : THROW_CCE();
645
- if (!this.e2c_1.equals(tmp0_other_with_cast.e2c_1))
664
+ if (!this.l2c_1.equals(tmp0_other_with_cast.l2c_1))
646
665
  return false;
647
666
  return true;
648
667
  };
649
668
  ConversationJS.$metadata$ = classMeta('ConversationJS');
650
669
  Object.defineProperty(ConversationJS.prototype, 'id', {
651
670
  configurable: true,
652
- get: ConversationJS.prototype.h1k,
653
- set: ConversationJS.prototype.g2c
671
+ get: ConversationJS.prototype.k1k,
672
+ set: ConversationJS.prototype.n2c
654
673
  });
655
674
  function get_jsonNullable(_this__u8e3s4) {
656
675
  var tmp0_subject = _this__u8e3s4;
@@ -684,6 +703,109 @@
684
703
  return REASON_PING_TIMEOUT;
685
704
  }
686
705
  var REASON_PING_TIMEOUT;
706
+ function RTCQualityJS(callQuality) {
707
+ this.q2c_1 = callQuality;
708
+ this.r2c_1 = this.q2c_1.c24_1;
709
+ this.s2c_1 = this.q2c_1.d24_1;
710
+ this.t2c_1 = this.q2c_1.e24_1;
711
+ this.u2c_1 = this.q2c_1.f24_1;
712
+ this.v2c_1 = this.q2c_1.g24_1;
713
+ this.w2c_1 = this.q2c_1.h24_1;
714
+ this.x2c_1 = this.q2c_1.i24_1;
715
+ this.y2c_1 = this.q2c_1.j24_1;
716
+ this.z2c_1 = this.q2c_1.k24_1;
717
+ }
718
+ RTCQualityJS.prototype.a2d = function () {
719
+ return this.r2c_1;
720
+ };
721
+ RTCQualityJS.prototype.b2d = function () {
722
+ return this.s2c_1;
723
+ };
724
+ RTCQualityJS.prototype.c2d = function () {
725
+ return this.t2c_1;
726
+ };
727
+ RTCQualityJS.prototype.d2d = function () {
728
+ return this.u2c_1;
729
+ };
730
+ RTCQualityJS.prototype.e2d = function () {
731
+ return this.v2c_1;
732
+ };
733
+ RTCQualityJS.prototype.f2d = function () {
734
+ return this.w2c_1;
735
+ };
736
+ RTCQualityJS.prototype.g2d = function () {
737
+ return this.x2c_1;
738
+ };
739
+ RTCQualityJS.prototype.h2d = function () {
740
+ return this.y2c_1;
741
+ };
742
+ RTCQualityJS.prototype.i2d = function () {
743
+ return this.z2c_1;
744
+ };
745
+ RTCQualityJS.prototype.copy = function (callQuality) {
746
+ return this.j2d(callQuality === void 1 ? this.q2c_1 : callQuality);
747
+ };
748
+ RTCQualityJS.prototype.j2d = function (callQuality) {
749
+ return new RTCQualityJS(callQuality);
750
+ };
751
+ RTCQualityJS.prototype.k2d = function (callQuality, $mask0, $handler) {
752
+ if (!(($mask0 & 1) === 0))
753
+ callQuality = this.q2c_1;
754
+ return this.j2d(callQuality);
755
+ };
756
+ RTCQualityJS.prototype.toString = function () {
757
+ return 'RTCQualityJS(callQuality=' + this.q2c_1 + ')';
758
+ };
759
+ RTCQualityJS.prototype.hashCode = function () {
760
+ return this.q2c_1.hashCode();
761
+ };
762
+ RTCQualityJS.prototype.equals = function (other) {
763
+ if (this === other)
764
+ return true;
765
+ if (!(other instanceof RTCQualityJS))
766
+ return false;
767
+ var tmp0_other_with_cast = other instanceof RTCQualityJS ? other : THROW_CCE();
768
+ if (!this.q2c_1.equals(tmp0_other_with_cast.q2c_1))
769
+ return false;
770
+ return true;
771
+ };
772
+ RTCQualityJS.$metadata$ = classMeta('RTCQualityJS');
773
+ Object.defineProperty(RTCQualityJS.prototype, 'mos_score', {
774
+ configurable: true,
775
+ get: RTCQualityJS.prototype.a2d
776
+ });
777
+ Object.defineProperty(RTCQualityJS.prototype, 'quality_percentage', {
778
+ configurable: true,
779
+ get: RTCQualityJS.prototype.b2d
780
+ });
781
+ Object.defineProperty(RTCQualityJS.prototype, 'jitter_min_var', {
782
+ configurable: true,
783
+ get: RTCQualityJS.prototype.c2d
784
+ });
785
+ Object.defineProperty(RTCQualityJS.prototype, 'jitter_max_var', {
786
+ configurable: true,
787
+ get: RTCQualityJS.prototype.d2d
788
+ });
789
+ Object.defineProperty(RTCQualityJS.prototype, 'jitter_loss_rate', {
790
+ configurable: true,
791
+ get: RTCQualityJS.prototype.e2d
792
+ });
793
+ Object.defineProperty(RTCQualityJS.prototype, 'jitter_burst_rate', {
794
+ configurable: true,
795
+ get: RTCQualityJS.prototype.f2d
796
+ });
797
+ Object.defineProperty(RTCQualityJS.prototype, 'flaw_total', {
798
+ configurable: true,
799
+ get: RTCQualityJS.prototype.g2d
800
+ });
801
+ Object.defineProperty(RTCQualityJS.prototype, 'packet_cnt', {
802
+ configurable: true,
803
+ get: RTCQualityJS.prototype.h2d
804
+ });
805
+ Object.defineProperty(RTCQualityJS.prototype, 'packet_loss_perc', {
806
+ configurable: true,
807
+ get: RTCQualityJS.prototype.i2d
808
+ });
687
809
  function HttpClientJSAdapter(js) {
688
810
  return new HttpClientJSAdapter$1(js);
689
811
  }
@@ -707,7 +829,7 @@
707
829
  };
708
830
  }
709
831
  function HttpClientJSAdapter$1($js) {
710
- this.j2c_1 = $js;
832
+ this.l2d_1 = $js;
711
833
  }
712
834
  HttpClientJSAdapter$1.prototype.c1b = function (verb, url, headers, body, callback) {
713
835
  var tmp = verb.toString();
@@ -719,7 +841,7 @@
719
841
  tmp$ret$0 = fromMap(JSON, headers);
720
842
  tmp$ret$1 = tmp$ret$0;
721
843
  var tmp_0 = tmp$ret$1;
722
- this.j2c_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
844
+ this.l2d_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
723
845
  };
724
846
  HttpClientJSAdapter$1.$metadata$ = classMeta(undefined, [HTTPClient]);
725
847
  function SocketClientJSAdapter$o$emit$lambda($callback) {
@@ -743,14 +865,14 @@
743
865
  };
744
866
  }
745
867
  function SocketClientJSAdapter$adapter$1($js) {
746
- this.l2c_1 = $js;
747
- this.k2c_1 = null;
868
+ this.n2d_1 = $js;
869
+ this.m2d_1 = null;
748
870
  }
749
871
  SocketClientJSAdapter$adapter$1.prototype.f1b = function (_set____db54di) {
750
- this.k2c_1 = _set____db54di;
872
+ this.m2d_1 = _set____db54di;
751
873
  };
752
- SocketClientJSAdapter$adapter$1.prototype.r21 = function () {
753
- return this.k2c_1;
874
+ SocketClientJSAdapter$adapter$1.prototype.c22 = function () {
875
+ return this.m2d_1;
754
876
  };
755
877
  SocketClientJSAdapter$adapter$1.prototype.g1b = function (type, msg, callback) {
756
878
  var tmp0_safe_receiver = msg;
@@ -768,30 +890,30 @@
768
890
  tmp = tmp$ret$1;
769
891
  }
770
892
  var tmp_0 = tmp;
771
- this.l2c_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
893
+ this.n2d_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
772
894
  };
773
895
  SocketClientJSAdapter$adapter$1.prototype.h1b = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, session_id, query) {
774
- this.l2c_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, query);
896
+ this.n2d_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, query);
775
897
  };
776
898
  SocketClientJSAdapter$adapter$1.prototype.i1b = function () {
777
- this.l2c_1.disconnect();
899
+ this.n2d_1.disconnect();
778
900
  };
779
901
  SocketClientJSAdapter$adapter$1.prototype.j1b = function (token) {
780
- this.l2c_1.setConnectParamsSocketConfig(token);
902
+ this.n2d_1.setConnectParamsSocketConfig(token);
781
903
  };
782
904
  SocketClientJSAdapter$adapter$1.prototype.k1b = function (milliseconds, callback) {
783
- this.l2c_1.startVerifyResponseTimer(milliseconds, callback);
905
+ this.n2d_1.startVerifyResponseTimer(milliseconds, callback);
784
906
  };
785
907
  SocketClientJSAdapter$adapter$1.$metadata$ = classMeta(undefined, [SocketClient]);
786
908
  function SocketClientJSAdapter$1($adapter) {
787
- this.m2c_1 = $adapter;
909
+ this.o2d_1 = $adapter;
788
910
  }
789
911
  SocketClientJSAdapter$1.prototype.didReceiveNewSocketEvent = function (type, body) {
790
- var tmp0_safe_receiver = this.m2c_1.k2c_1;
912
+ var tmp0_safe_receiver = this.o2d_1.m2d_1;
791
913
  if (tmp0_safe_receiver == null)
792
914
  null;
793
915
  else {
794
- tmp0_safe_receiver.f26(new UnknownSocketEvent(body, type));
916
+ tmp0_safe_receiver.k26(new UnknownSocketEvent(body, type));
795
917
  }
796
918
  };
797
919
  SocketClientJSAdapter$1.prototype.didReceiveNewSocketConnectionStatusEvent = function (type, reason) {
@@ -825,60 +947,60 @@
825
947
  var tmp;
826
948
  switch (tmp0_subject_0) {
827
949
  case 'NXMCORE_REASON_SERVER_DISCONNECTED':
828
- var tmp1_safe_receiver_0 = this.m2c_1.k2c_1;
950
+ var tmp1_safe_receiver_0 = this.o2d_1.m2d_1;
829
951
  var tmp_0;
830
952
  if (tmp1_safe_receiver_0 == null) {
831
953
  tmp_0 = null;
832
954
  } else {
833
- tmp1_safe_receiver_0.g26(tmp1_safe_receiver, SocketConnectionFailedReason_ServerDisconnected_getInstance());
955
+ tmp1_safe_receiver_0.l26(tmp1_safe_receiver, SocketConnectionFailedReason_ServerDisconnected_getInstance());
834
956
  tmp_0 = Unit_getInstance();
835
957
  }
836
958
 
837
959
  tmp = tmp_0;
838
960
  break;
839
961
  case 'NXMCORE_REASON_CLIENT_DISCONNECTED':
840
- var tmp2_safe_receiver = this.m2c_1.k2c_1;
962
+ var tmp2_safe_receiver = this.o2d_1.m2d_1;
841
963
  var tmp_1;
842
964
  if (tmp2_safe_receiver == null) {
843
965
  tmp_1 = null;
844
966
  } else {
845
- tmp2_safe_receiver.g26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientDisconnected_getInstance());
967
+ tmp2_safe_receiver.l26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientDisconnected_getInstance());
846
968
  tmp_1 = Unit_getInstance();
847
969
  }
848
970
 
849
971
  tmp = tmp_1;
850
972
  break;
851
973
  case 'NXMCORE_CLIENT_NETWORK_ERROR':
852
- var tmp3_safe_receiver = this.m2c_1.k2c_1;
974
+ var tmp3_safe_receiver = this.o2d_1.m2d_1;
853
975
  var tmp_2;
854
976
  if (tmp3_safe_receiver == null) {
855
977
  tmp_2 = null;
856
978
  } else {
857
- tmp3_safe_receiver.g26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientNetworkError_getInstance());
979
+ tmp3_safe_receiver.l26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientNetworkError_getInstance());
858
980
  tmp_2 = Unit_getInstance();
859
981
  }
860
982
 
861
983
  tmp = tmp_2;
862
984
  break;
863
985
  case 'NXMCORE_REASON_PING_TIMEOUT':
864
- var tmp4_safe_receiver = this.m2c_1.k2c_1;
986
+ var tmp4_safe_receiver = this.o2d_1.m2d_1;
865
987
  var tmp_3;
866
988
  if (tmp4_safe_receiver == null) {
867
989
  tmp_3 = null;
868
990
  } else {
869
- tmp4_safe_receiver.g26(tmp1_safe_receiver, SocketConnectionFailedReason_PingTimeout_getInstance());
991
+ tmp4_safe_receiver.l26(tmp1_safe_receiver, SocketConnectionFailedReason_PingTimeout_getInstance());
870
992
  tmp_3 = Unit_getInstance();
871
993
  }
872
994
 
873
995
  tmp = tmp_3;
874
996
  break;
875
997
  default:
876
- var tmp5_safe_receiver = this.m2c_1.k2c_1;
998
+ var tmp5_safe_receiver = this.o2d_1.m2d_1;
877
999
  var tmp_4;
878
1000
  if (tmp5_safe_receiver == null) {
879
1001
  tmp_4 = null;
880
1002
  } else {
881
- tmp5_safe_receiver.g26(tmp1_safe_receiver, null);
1003
+ tmp5_safe_receiver.l26(tmp1_safe_receiver, null);
882
1004
  tmp_4 = Unit_getInstance();
883
1005
  }
884
1006
 
@@ -891,56 +1013,56 @@
891
1013
  };
892
1014
  SocketClientJSAdapter$1.$metadata$ = classMeta();
893
1015
  function MediaClientJSAdapter$adapter$1($js) {
894
- this.o2c_1 = $js;
895
- this.n2c_1 = null;
1016
+ this.q2d_1 = $js;
1017
+ this.p2d_1 = null;
896
1018
  }
897
1019
  MediaClientJSAdapter$adapter$1.prototype.n1b = function (_set____db54di) {
898
- this.n2c_1 = _set____db54di;
1020
+ this.p2d_1 = _set____db54di;
899
1021
  };
900
1022
  MediaClientJSAdapter$adapter$1.prototype.o1b = function (id) {
901
- this.o2c_1.enableMedia(id, null);
1023
+ this.q2d_1.enableMedia(id, null);
902
1024
  };
903
1025
  MediaClientJSAdapter$adapter$1.prototype.p1b = function (id, remoteDescription) {
904
- this.o2c_1.enableMedia(id, remoteDescription);
1026
+ this.q2d_1.enableMedia(id, remoteDescription);
905
1027
  };
906
1028
  MediaClientJSAdapter$adapter$1.prototype.q1b = function (id, sdp, streamId, legId) {
907
- this.o2c_1.processAnswer(id, sdp, streamId, legId);
1029
+ this.q2d_1.processAnswer(id, sdp, streamId, legId);
908
1030
  };
909
1031
  MediaClientJSAdapter$adapter$1.prototype.r1b = function (id) {
910
- this.o2c_1.disableMedia(id);
1032
+ this.q2d_1.disableMedia(id);
911
1033
  };
912
1034
  MediaClientJSAdapter$adapter$1.prototype.s1b = function (id) {
913
- this.o2c_1.mute(id);
1035
+ this.q2d_1.mute(id);
914
1036
  };
915
1037
  MediaClientJSAdapter$adapter$1.prototype.t1b = function (id) {
916
- this.o2c_1.unmute(id);
1038
+ this.q2d_1.unmute(id);
917
1039
  };
918
1040
  MediaClientJSAdapter$adapter$1.$metadata$ = classMeta(undefined, [MediaClient]);
919
1041
  function MediaClientJSAdapter$1($adapter) {
920
- this.p2c_1 = $adapter;
1042
+ this.r2d_1 = $adapter;
921
1043
  }
922
1044
  MediaClientJSAdapter$1.prototype.onOffer = function (mediaId, streamId, sdp, callback) {
923
- var tmp0_safe_receiver = this.p2c_1.n2c_1;
1045
+ var tmp0_safe_receiver = this.r2d_1.p2d_1;
924
1046
  if (tmp0_safe_receiver == null)
925
1047
  null;
926
1048
  else {
927
- tmp0_safe_receiver.c26(mediaId, streamId, sdp, callback);
1049
+ tmp0_safe_receiver.h26(mediaId, streamId, sdp, callback);
928
1050
  }
929
1051
  };
930
1052
  MediaClientJSAdapter$1.prototype.onAnswer = function (mediaId, streamId, sdp, callback) {
931
- var tmp0_safe_receiver = this.p2c_1.n2c_1;
1053
+ var tmp0_safe_receiver = this.r2d_1.p2d_1;
932
1054
  if (tmp0_safe_receiver == null)
933
1055
  null;
934
1056
  else {
935
- tmp0_safe_receiver.d26(mediaId, streamId, sdp, callback);
1057
+ tmp0_safe_receiver.i26(mediaId, streamId, sdp, callback);
936
1058
  }
937
1059
  };
938
1060
  MediaClientJSAdapter$1.prototype.onError = function (mediaId, error) {
939
- var tmp0_safe_receiver = this.p2c_1.n2c_1;
1061
+ var tmp0_safe_receiver = this.r2d_1.p2d_1;
940
1062
  if (tmp0_safe_receiver == null)
941
1063
  null;
942
1064
  else {
943
- tmp0_safe_receiver.e26(mediaId, Exception_init_$Create$(error));
1065
+ tmp0_safe_receiver.j26(mediaId, Exception_init_$Create$(error));
944
1066
  }
945
1067
  };
946
1068
  MediaClientJSAdapter$1.$metadata$ = classMeta();
@@ -1115,6 +1237,7 @@
1115
1237
  configurable: true,
1116
1238
  get: get_REASON_PING_TIMEOUT
1117
1239
  });
1240
+ $vonage.RTCQualityJS = RTCQualityJS;
1118
1241
  }
1119
1242
  $jsExportAll$(_);
1120
1243
  //endregion