Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vonage/client-sdk

Package Overview
Dependencies
Maintainers
41
Versions
247
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/client-sdk - npm Package Compare versions

Comparing version 0.1.3-alpha.22 to 0.1.3-alpha.23

12

dist/Client.d.ts

@@ -13,10 +13,8 @@ import { vonage } from './kotlin/clientsdk-clientcore_js';

export declare type RTCQuality = vonage.RTCQualityJS;
export declare enum ConfigRegion {
AP = 0,
EU = 1,
US = 2,
AUTO = 3
}
export declare type ConfigRegion = vonage.CoreClientConfigRegionJS;
export declare const ConfigRegion: typeof vonage.CoreClientConfigRegionJS;
export declare const LoggingLevel: typeof vonage.LoggingLevelJS;
export declare const setDefaultLoggingLevel: typeof vonage.setDefaultLoggingLevel;
export declare class ClientConfig extends vonage.CoreClientConfigJS {
constructor(region: ConfigRegion);
constructor(region?: ConfigRegion);
}

@@ -23,0 +21,0 @@ declare class VoiceClient extends vonage.CoreClientJS {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClientConfig = exports.ConfigRegion = void 0;
exports.ClientConfig = exports.setDefaultLoggingLevel = exports.LoggingLevel = exports.ConfigRegion = void 0;
const clientsdk_clientcore_js_1 = require("./kotlin/clientsdk-clientcore_js");

@@ -10,12 +10,8 @@ require("./coreExtend");

require("./global");
var ConfigRegion;
(function (ConfigRegion) {
ConfigRegion[ConfigRegion["AP"] = 0] = "AP";
ConfigRegion[ConfigRegion["EU"] = 1] = "EU";
ConfigRegion[ConfigRegion["US"] = 2] = "US";
ConfigRegion[ConfigRegion["AUTO"] = 3] = "AUTO";
})(ConfigRegion = exports.ConfigRegion || (exports.ConfigRegion = {}));
exports.ConfigRegion = clientsdk_clientcore_js_1.vonage.CoreClientConfigRegionJS;
exports.LoggingLevel = clientsdk_clientcore_js_1.vonage.LoggingLevelJS;
exports.setDefaultLoggingLevel = clientsdk_clientcore_js_1.vonage.setDefaultLoggingLevel;
class ClientConfig extends clientsdk_clientcore_js_1.vonage.CoreClientConfigJS {
constructor(region) {
super(ConfigRegion[region]);
constructor(region = exports.ConfigRegion.US) {
super(region);
}

@@ -22,0 +18,0 @@ }

import './coreExtend';
export { default as VoiceClient, Invite, VoiceCall, Conversation, ConfigRegion, ClientConfig, RTCQuality } from './Client';
export { default as VoiceClient, Invite, VoiceCall, Conversation, ConfigRegion, ClientConfig, RTCQuality, setDefaultLoggingLevel, LoggingLevel } from './Client';
export {} from './coreExtend';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClientConfig = exports.ConfigRegion = exports.VoiceClient = void 0;
exports.LoggingLevel = exports.setDefaultLoggingLevel = exports.ClientConfig = exports.ConfigRegion = exports.VoiceClient = void 0;
// export { Vonage } from './kotlin/clientsdk-core_js';

@@ -10,1 +10,3 @@ require("./coreExtend");

Object.defineProperty(exports, "ClientConfig", { enumerable: true, get: function () { return Client_1.ClientConfig; } });
Object.defineProperty(exports, "setDefaultLoggingLevel", { enumerable: true, get: function () { return Client_1.setDefaultLoggingLevel; } });
Object.defineProperty(exports, "LoggingLevel", { enumerable: true, get: function () { return Client_1.LoggingLevel; } });

@@ -26,4 +26,24 @@ type Nullable<T> = T | null | undefined

export namespace vonage {
abstract class CoreClientConfigRegionJS {
private constructor();
get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
static get AP(): vonage.CoreClientConfigRegionJS & {
get name(): "AP";
get ordinal(): 0;
};
static get EU(): vonage.CoreClientConfigRegionJS & {
get name(): "EU";
get ordinal(): 1;
};
static get US(): vonage.CoreClientConfigRegionJS & {
get name(): "US";
get ordinal(): 2;
};
static values(): Array<vonage.CoreClientConfigRegionJS>;
static valueOf(value: string): vonage.CoreClientConfigRegionJS;
get name(): "AP" | "EU" | "US";
get ordinal(): 0 | 1 | 2;
}
class CoreClientConfigJS {
constructor(region: string);
constructor(region: vonage.CoreClientConfigRegionJS);
get apiUrl(): string;

@@ -35,7 +55,37 @@ set apiUrl(value: string);

set websocketPath(value: string);
get iceServerUrls(): Array<string>;
set iceServerUrls(value: Array<string>);
get autoMediaReoffer(): boolean;
set autoMediaReoffer(value: boolean);
}
abstract class LoggingLevelJS /* implements com.vonage.clientcore.core.api.ILoggingLevel */ {
private constructor();
static get Verbose(): vonage.LoggingLevelJS & {
get name(): "Verbose";
get ordinal(): 0;
};
static get Debug(): vonage.LoggingLevelJS & {
get name(): "Debug";
get ordinal(): 1;
};
static get Info(): vonage.LoggingLevelJS & {
get name(): "Info";
get ordinal(): 2;
};
static get Warn(): vonage.LoggingLevelJS & {
get name(): "Warn";
get ordinal(): 3;
};
static get Error(): vonage.LoggingLevelJS & {
get name(): "Error";
get ordinal(): 4;
};
static get Assert(): vonage.LoggingLevelJS & {
get name(): "Assert";
get ordinal(): 5;
};
static values(): Array<vonage.LoggingLevelJS>;
static valueOf(value: string): vonage.LoggingLevelJS;
get name(): "Verbose" | "Debug" | "Info" | "Warn" | "Error" | "Assert";
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
}
function setDefaultLoggingLevel(level: vonage.LoggingLevelJS): void;
class CoreClientJS {

@@ -42,0 +92,0 @@ constructor(http: vonage.HttpClientJS, socket: vonage.SocketClientJS, media: vonage.MediaClientJS);

(function (root, factory) {
if (typeof define === 'function' && define.amd)
define(['exports', './clientsdk-clientcore.js', './kotlin-kotlin-stdlib-js-ir.js'], factory);
define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './clientsdk-clientcore.js'], factory);
else if (typeof exports === 'object')
factory(module.exports, require('./clientsdk-clientcore.js'), require('./kotlin-kotlin-stdlib-js-ir.js'));
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./clientsdk-clientcore.js'));
else {
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
throw new Error("Error loading module 'clientsdk-clientcore_js'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'clientsdk-clientcore_js'.");
}
if (typeof this['clientsdk-clientcore'] === 'undefined') {
throw new Error("Error loading module 'clientsdk-clientcore_js'. Its dependency 'clientsdk-clientcore' was not found. Please, check whether 'clientsdk-clientcore' is loaded prior to 'clientsdk-clientcore_js'.");
}
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
throw new Error("Error loading module 'clientsdk-clientcore_js'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'clientsdk-clientcore_js'.");
}
root['clientsdk-clientcore_js'] = factory(typeof this['clientsdk-clientcore_js'] === 'undefined' ? {} : this['clientsdk-clientcore_js'], this['clientsdk-clientcore'], this['kotlin-kotlin-stdlib-js-ir']);
root['clientsdk-clientcore_js'] = factory(typeof this['clientsdk-clientcore_js'] === 'undefined' ? {} : this['clientsdk-clientcore_js'], this['kotlin-kotlin-stdlib-js-ir'], this['clientsdk-clientcore']);
}
}(this, function (_, kotlin_com_vonage_clientcore, kotlin_kotlin) {
}(this, function (_, kotlin_kotlin, kotlin_com_vonage_clientcore) {
'use strict';
//region block: imports
var imul = Math.imul;
var ClientConfigRegion_ASIA_PACIFIC_getInstance = kotlin_com_vonage_clientcore.$_$.p;
var ClientConfigRegion_EUROPE_getInstance = kotlin_com_vonage_clientcore.$_$.r;
var ClientConfigRegion_UNITED_STATES_getInstance = kotlin_com_vonage_clientcore.$_$.s;
var ClientConfigRegion_AUTOMATIC_getInstance = kotlin_com_vonage_clientcore.$_$.q;
var objectMeta = kotlin_kotlin.$_$.h6;
var Companion_getInstance = kotlin_com_vonage_clientcore.$_$.t;
var copyToArray = kotlin_kotlin.$_$.s3;
var THROW_ISE = kotlin_kotlin.$_$.w7;
var Unit_getInstance = kotlin_kotlin.$_$.o2;
var ClientConfigRegion_AP_getInstance = kotlin_com_vonage_clientcore.$_$.r;
var ClientConfigRegion_EU_getInstance = kotlin_com_vonage_clientcore.$_$.s;
var ClientConfigRegion_US_getInstance = kotlin_com_vonage_clientcore.$_$.t;
var Enum = kotlin_kotlin.$_$.q7;
var classMeta = kotlin_kotlin.$_$.h5;
var Companion_getInstance = kotlin_com_vonage_clientcore.$_$.u;
var ILoggingLevel = kotlin_com_vonage_clientcore.$_$.b;
var setDefaultLoggingLevel = kotlin_com_vonage_clientcore.$_$.e;
var newThrowable = kotlin_kotlin.$_$.e6;
var SessionListener = kotlin_com_vonage_clientcore.$_$.b;
var VoiceClientDelegate = kotlin_com_vonage_clientcore.$_$.c;
var Builder = kotlin_com_vonage_clientcore.$_$.h;
var SetConfig = kotlin_com_vonage_clientcore.$_$.g;
var SessionListener = kotlin_com_vonage_clientcore.$_$.c;
var VoiceClientDelegate = kotlin_com_vonage_clientcore.$_$.d;
var Builder = kotlin_com_vonage_clientcore.$_$.j;
var SetConfig = kotlin_com_vonage_clientcore.$_$.i;
var emptyMap = kotlin_kotlin.$_$.u3;

@@ -38,15 +39,15 @@ var THROW_CCE = kotlin_kotlin.$_$.v7;

var Exception_init_$Create$ = kotlin_kotlin.$_$.z;
var HTTPClient = kotlin_com_vonage_clientcore.$_$.d;
var SocketClient = kotlin_com_vonage_clientcore.$_$.f;
var HTTPClient = kotlin_com_vonage_clientcore.$_$.f;
var SocketClient = kotlin_com_vonage_clientcore.$_$.h;
var UnknownSocketEvent = kotlin_com_vonage_clientcore.$_$.a;
var SocketConnectionStatus_Connected_getInstance = kotlin_com_vonage_clientcore.$_$.m;
var SocketConnectionStatus_Reconnecting_getInstance = kotlin_com_vonage_clientcore.$_$.o;
var SocketConnectionStatus_Disconnected_getInstance = kotlin_com_vonage_clientcore.$_$.n;
var SocketConnectionFailedReason_ServerDisconnected_getInstance = kotlin_com_vonage_clientcore.$_$.l;
var SocketConnectionFailedReason_ClientDisconnected_getInstance = kotlin_com_vonage_clientcore.$_$.i;
var SocketConnectionFailedReason_ClientNetworkError_getInstance = kotlin_com_vonage_clientcore.$_$.j;
var SocketConnectionFailedReason_PingTimeout_getInstance = kotlin_com_vonage_clientcore.$_$.k;
var MediaClient = kotlin_com_vonage_clientcore.$_$.e;
var SocketConnectionStatus_Connected_getInstance = kotlin_com_vonage_clientcore.$_$.o;
var SocketConnectionStatus_Reconnecting_getInstance = kotlin_com_vonage_clientcore.$_$.q;
var SocketConnectionStatus_Disconnected_getInstance = kotlin_com_vonage_clientcore.$_$.p;
var SocketConnectionFailedReason_ServerDisconnected_getInstance = kotlin_com_vonage_clientcore.$_$.n;
var SocketConnectionFailedReason_ClientDisconnected_getInstance = kotlin_com_vonage_clientcore.$_$.k;
var SocketConnectionFailedReason_ClientNetworkError_getInstance = kotlin_com_vonage_clientcore.$_$.l;
var SocketConnectionFailedReason_PingTimeout_getInstance = kotlin_com_vonage_clientcore.$_$.m;
var MediaClient = kotlin_com_vonage_clientcore.$_$.g;
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
var to = kotlin_kotlin.$_$.o8;
var to = kotlin_kotlin.$_$.p8;
var toMap = kotlin_kotlin.$_$.t4;

@@ -58,99 +59,172 @@ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;

var Pair = kotlin_kotlin.$_$.u7;
var copyToArray = kotlin_kotlin.$_$.s3;
var json = kotlin_kotlin.$_$.c6;
//endregion
//region block: pre-declaration
CoreClientConfigRegionJS.prototype = Object.create(Enum.prototype);
CoreClientConfigRegionJS.prototype.constructor = CoreClientConfigRegionJS;
LoggingLevelJS.prototype = Object.create(Enum.prototype);
LoggingLevelJS.prototype.constructor = LoggingLevelJS;
//endregion
function map($this, region) {
var tmp0_subject = region;
switch (tmp0_subject) {
var CoreClientConfigRegionJS_AP_instance;
var CoreClientConfigRegionJS_EU_instance;
var CoreClientConfigRegionJS_US_instance;
function values() {
return [CoreClientConfigRegionJS_AP_getInstance(), CoreClientConfigRegionJS_EU_getInstance(), CoreClientConfigRegionJS_US_getInstance()];
}
function valueOf(value) {
switch (value) {
case 'AP':
return ClientConfigRegion_ASIA_PACIFIC_getInstance();
return CoreClientConfigRegionJS_AP_getInstance();
case 'EU':
return ClientConfigRegion_EUROPE_getInstance();
return CoreClientConfigRegionJS_EU_getInstance();
case 'US':
return ClientConfigRegion_UNITED_STATES_getInstance();
return CoreClientConfigRegionJS_US_getInstance();
default:
return ClientConfigRegion_AUTOMATIC_getInstance();
CoreClientConfigRegionJS_initEntries();
THROW_ISE();
break;
}
}
function Companion() {
Companion_instance = this;
var CoreClientConfigRegionJS_entriesInitialized;
function CoreClientConfigRegionJS_initEntries() {
if (CoreClientConfigRegionJS_entriesInitialized)
return Unit_getInstance();
CoreClientConfigRegionJS_entriesInitialized = true;
CoreClientConfigRegionJS_AP_instance = new CoreClientConfigRegionJS('AP', 0, ClientConfigRegion_AP_getInstance());
CoreClientConfigRegionJS_EU_instance = new CoreClientConfigRegionJS('EU', 1, ClientConfigRegion_EU_getInstance());
CoreClientConfigRegionJS_US_instance = new CoreClientConfigRegionJS('US', 2, ClientConfigRegion_US_getInstance());
}
Companion.$metadata$ = objectMeta('Companion');
var Companion_instance;
function Companion_getInstance_0() {
if (Companion_instance == null)
new Companion();
return Companion_instance;
function CoreClientConfigRegionJS(name, ordinal, coreRegion) {
Enum.call(this, name, ordinal);
this.o2b_1 = coreRegion;
}
CoreClientConfigRegionJS.prototype.p2b = function () {
return this.o2b_1;
};
CoreClientConfigRegionJS.$metadata$ = classMeta('CoreClientConfigRegionJS', undefined, undefined, undefined, undefined, Enum.prototype);
Object.defineProperty(CoreClientConfigRegionJS.prototype, 'coreRegion', {
configurable: true,
get: CoreClientConfigRegionJS.prototype.p2b
});
Object.defineProperty(CoreClientConfigRegionJS.prototype, 'name', {
configurable: true,
get: CoreClientConfigRegionJS.prototype.q3
});
Object.defineProperty(CoreClientConfigRegionJS.prototype, 'ordinal', {
configurable: true,
get: CoreClientConfigRegionJS.prototype.oe
});
function CoreClientConfigJS(region) {
Companion_getInstance_0();
this.e2b_1 = Companion_getInstance().y1x(map(Companion_getInstance_0(), region));
this.f2b_1 = this.e2b_1.b1y_1;
this.g2b_1 = this.e2b_1.c1y_1;
this.h2b_1 = this.e2b_1.d1y_1;
var tmp = this;
var tmp$ret$0;
// Inline function 'kotlin.collections.toTypedArray' call
var tmp0_toTypedArray = this.e2b_1.e1y_1;
tmp$ret$0 = copyToArray(tmp0_toTypedArray);
tmp.i2b_1 = tmp$ret$0;
this.j2b_1 = this.e2b_1.f1y_1;
this.q2b_1 = Companion_getInstance().i1y(region.o2b_1);
this.r2b_1 = this.q2b_1.j1y_1;
this.s2b_1 = this.q2b_1.k1y_1;
this.t2b_1 = this.q2b_1.l1y_1;
this.u2b_1 = this.q2b_1.m1y_1;
}
CoreClientConfigJS.prototype.k2b = function (_set____db54di) {
this.f2b_1 = _set____db54di;
CoreClientConfigJS.prototype.v2b = function (_set____db54di) {
this.r2b_1 = _set____db54di;
};
CoreClientConfigJS.prototype.l2b = function () {
return this.f2b_1;
CoreClientConfigJS.prototype.w2b = function () {
return this.r2b_1;
};
CoreClientConfigJS.prototype.m2b = function (_set____db54di) {
this.g2b_1 = _set____db54di;
CoreClientConfigJS.prototype.x2b = function (_set____db54di) {
this.s2b_1 = _set____db54di;
};
CoreClientConfigJS.prototype.n2b = function () {
return this.g2b_1;
CoreClientConfigJS.prototype.y2b = function () {
return this.s2b_1;
};
CoreClientConfigJS.prototype.o2b = function (_set____db54di) {
this.h2b_1 = _set____db54di;
CoreClientConfigJS.prototype.z2b = function (_set____db54di) {
this.t2b_1 = _set____db54di;
};
CoreClientConfigJS.prototype.p2b = function () {
return this.h2b_1;
CoreClientConfigJS.prototype.a2c = function () {
return this.t2b_1;
};
CoreClientConfigJS.prototype.q2b = function (_set____db54di) {
this.i2b_1 = _set____db54di;
CoreClientConfigJS.prototype.b2c = function (_set____db54di) {
this.u2b_1 = _set____db54di;
};
CoreClientConfigJS.prototype.r2b = function () {
return this.i2b_1;
CoreClientConfigJS.prototype.c2c = function () {
return this.u2b_1;
};
CoreClientConfigJS.prototype.s2b = function (_set____db54di) {
this.j2b_1 = _set____db54di;
};
CoreClientConfigJS.prototype.t2b = function () {
return this.j2b_1;
};
CoreClientConfigJS.$metadata$ = classMeta('CoreClientConfigJS');
Object.defineProperty(CoreClientConfigJS.prototype, 'apiUrl', {
configurable: true,
get: CoreClientConfigJS.prototype.l2b,
set: CoreClientConfigJS.prototype.k2b
get: CoreClientConfigJS.prototype.w2b,
set: CoreClientConfigJS.prototype.v2b
});
Object.defineProperty(CoreClientConfigJS.prototype, 'websocketUrl', {
configurable: true,
get: CoreClientConfigJS.prototype.n2b,
set: CoreClientConfigJS.prototype.m2b
get: CoreClientConfigJS.prototype.y2b,
set: CoreClientConfigJS.prototype.x2b
});
Object.defineProperty(CoreClientConfigJS.prototype, 'websocketPath', {
configurable: true,
get: CoreClientConfigJS.prototype.p2b,
set: CoreClientConfigJS.prototype.o2b
get: CoreClientConfigJS.prototype.a2c,
set: CoreClientConfigJS.prototype.z2b
});
Object.defineProperty(CoreClientConfigJS.prototype, 'iceServerUrls', {
Object.defineProperty(CoreClientConfigJS.prototype, 'autoMediaReoffer', {
configurable: true,
get: CoreClientConfigJS.prototype.r2b,
set: CoreClientConfigJS.prototype.q2b
get: CoreClientConfigJS.prototype.c2c,
set: CoreClientConfigJS.prototype.b2c
});
Object.defineProperty(CoreClientConfigJS.prototype, 'autoMediaReoffer', {
var LoggingLevelJS_Verbose_instance;
var LoggingLevelJS_Debug_instance;
var LoggingLevelJS_Info_instance;
var LoggingLevelJS_Warn_instance;
var LoggingLevelJS_Error_instance;
var LoggingLevelJS_Assert_instance;
function values_0() {
return [LoggingLevelJS_Verbose_getInstance(), LoggingLevelJS_Debug_getInstance(), LoggingLevelJS_Info_getInstance(), LoggingLevelJS_Warn_getInstance(), LoggingLevelJS_Error_getInstance(), LoggingLevelJS_Assert_getInstance()];
}
function valueOf_0(value) {
switch (value) {
case 'Verbose':
return LoggingLevelJS_Verbose_getInstance();
case 'Debug':
return LoggingLevelJS_Debug_getInstance();
case 'Info':
return LoggingLevelJS_Info_getInstance();
case 'Warn':
return LoggingLevelJS_Warn_getInstance();
case 'Error':
return LoggingLevelJS_Error_getInstance();
case 'Assert':
return LoggingLevelJS_Assert_getInstance();
default:
LoggingLevelJS_initEntries();
THROW_ISE();
break;
}
}
var LoggingLevelJS_entriesInitialized;
function LoggingLevelJS_initEntries() {
if (LoggingLevelJS_entriesInitialized)
return Unit_getInstance();
LoggingLevelJS_entriesInitialized = true;
LoggingLevelJS_Verbose_instance = new LoggingLevelJS('Verbose', 0, 'Verbose');
LoggingLevelJS_Debug_instance = new LoggingLevelJS('Debug', 1, 'Debug');
LoggingLevelJS_Info_instance = new LoggingLevelJS('Info', 2, 'Info');
LoggingLevelJS_Warn_instance = new LoggingLevelJS('Warn', 3, 'Warn');
LoggingLevelJS_Error_instance = new LoggingLevelJS('Error', 4, 'Error');
LoggingLevelJS_Assert_instance = new LoggingLevelJS('Assert', 5, 'Assert');
}
function LoggingLevelJS(name, ordinal, sev) {
Enum.call(this, name, ordinal);
this.f2c_1 = sev;
}
LoggingLevelJS.prototype.x1b = function () {
return this.f2c_1;
};
LoggingLevelJS.$metadata$ = classMeta('LoggingLevelJS', [ILoggingLevel], undefined, undefined, undefined, Enum.prototype);
Object.defineProperty(LoggingLevelJS.prototype, 'name', {
configurable: true,
get: CoreClientConfigJS.prototype.t2b,
set: CoreClientConfigJS.prototype.s2b
get: LoggingLevelJS.prototype.q3
});
Object.defineProperty(LoggingLevelJS.prototype, 'ordinal', {
configurable: true,
get: LoggingLevelJS.prototype.oe
});
function setDefaultLoggingLevel_0(level) {
setDefaultLoggingLevel(level);
}
function CoreClientJS$createSession$lambda$lambda($reject, $resolve) {

@@ -169,3 +243,3 @@ return function (err, sessionId) {

return function (resolve, reject) {
this$0.v2b_1.r1a($token, $sessionId, CoreClientJS$createSession$lambda$lambda(reject, resolve));
this$0.h2c_1.u1a($token, $sessionId, CoreClientJS$createSession$lambda$lambda(reject, resolve));
return Unit_getInstance();

@@ -185,3 +259,3 @@ };

return function (resolve, reject) {
this$0.v2b_1.s1a(CoreClientJS$deleteSession$lambda$lambda(reject, resolve));
this$0.h2c_1.v1a(CoreClientJS$deleteSession$lambda$lambda(reject, resolve));
return Unit_getInstance();

@@ -201,3 +275,3 @@ };

return function (resolve, reject) {
this$0.v2b_1.t1a($token, CoreClientJS$refreshSession$lambda$lambda(reject, resolve));
this$0.h2c_1.w1a($token, CoreClientJS$refreshSession$lambda$lambda(reject, resolve));
return Unit_getInstance();

@@ -220,3 +294,3 @@ };

return function (resolve, reject) {
this$0.v2b_1.w1a($typedContext, CoreClientJS$serverCall$lambda$lambda(resolve, reject));
this$0.h2c_1.z1a($typedContext, CoreClientJS$serverCall$lambda$lambda(resolve, reject));
return Unit_getInstance();

@@ -226,6 +300,6 @@ };

function CoreClientJS$1(this$0) {
this.w2b_1 = this$0;
this.i2c_1 = this$0;
}
CoreClientJS$1.prototype.q1z = function () {
var tmp0_safe_receiver = this.w2b_1.u2b_1;
CoreClientJS$1.prototype.y1z = function () {
var tmp0_safe_receiver = this.i2c_1.g2c_1;
if (tmp0_safe_receiver == null)

@@ -237,4 +311,4 @@ null;

};
CoreClientJS$1.prototype.r1z = function () {
var tmp0_safe_receiver = this.w2b_1.u2b_1;
CoreClientJS$1.prototype.z1z = function () {
var tmp0_safe_receiver = this.i2c_1.g2c_1;
if (tmp0_safe_receiver == null)

@@ -246,4 +320,4 @@ null;

};
CoreClientJS$1.prototype.s1z = function (reason) {
var tmp0_safe_receiver = this.w2b_1.u2b_1;
CoreClientJS$1.prototype.a20 = function (reason) {
var tmp0_safe_receiver = this.i2c_1.g2c_1;
if (tmp0_safe_receiver == null)

@@ -257,6 +331,6 @@ null;

function CoreClientJS$2(this$0) {
this.x2b_1 = this$0;
this.j2c_1 = this$0;
}
CoreClientJS$2.prototype.d21 = function (invite) {
var tmp0_safe_receiver = this.x2b_1.u2b_1;
CoreClientJS$2.prototype.l21 = function (invite) {
var tmp0_safe_receiver = this.j2c_1.g2c_1;
if (tmp0_safe_receiver == null)

@@ -268,4 +342,4 @@ null;

};
CoreClientJS$2.prototype.e21 = function (call, newConversation, prevConversation) {
var tmp0_safe_receiver = this.x2b_1.u2b_1;
CoreClientJS$2.prototype.m21 = function (call, newConversation, prevConversation) {
var tmp0_safe_receiver = this.j2c_1.g2c_1;
if (tmp0_safe_receiver == null)

@@ -277,4 +351,4 @@ null;

};
CoreClientJS$2.prototype.f21 = function (call, legId, isMuted) {
var tmp0_safe_receiver = this.x2b_1.u2b_1;
CoreClientJS$2.prototype.n21 = function (call, legId, isMuted) {
var tmp0_safe_receiver = this.j2c_1.g2c_1;
if (tmp0_safe_receiver == null)

@@ -286,4 +360,4 @@ null;

};
CoreClientJS$2.prototype.g21 = function (call, legId, earmuffStatus) {
var tmp0_safe_receiver = this.x2b_1.u2b_1;
CoreClientJS$2.prototype.o21 = function (call, legId, earmuffStatus) {
var tmp0_safe_receiver = this.j2c_1.g2c_1;
if (tmp0_safe_receiver == null)

@@ -295,4 +369,4 @@ null;

};
CoreClientJS$2.prototype.h21 = function (call, legId, digits) {
var tmp0_safe_receiver = this.x2b_1.u2b_1;
CoreClientJS$2.prototype.p21 = function (call, legId, digits) {
var tmp0_safe_receiver = this.j2c_1.g2c_1;
if (tmp0_safe_receiver == null)

@@ -304,4 +378,4 @@ null;

};
CoreClientJS$2.prototype.i21 = function (call, legId, callQuality) {
var tmp0_safe_receiver = this.x2b_1.u2b_1;
CoreClientJS$2.prototype.q21 = function (call, legId, callQuality) {
var tmp0_safe_receiver = this.j2c_1.g2c_1;
if (tmp0_safe_receiver == null)

@@ -315,15 +389,15 @@ null;

function CoreClientJS(http, socket, media) {
this.u2b_1 = null;
this.v2b_1 = (new Builder()).u1b(HttpClientJSAdapter(http)).v1b(SocketClientJSAdapter(socket)).w1b(MediaClientJSAdapter(media));
this.v2b_1.u1a(new CoreClientJS$1(this));
this.v2b_1.v1a(new CoreClientJS$2(this));
this.g2c_1 = null;
this.h2c_1 = (new Builder()).y1b(HttpClientJSAdapter(http)).z1b(SocketClientJSAdapter(socket)).a1c(MediaClientJSAdapter(media));
this.h2c_1.x1a(new CoreClientJS$1(this));
this.h2c_1.y1a(new CoreClientJS$2(this));
}
CoreClientJS.prototype.y2b = function (_set____db54di) {
this.u2b_1 = _set____db54di;
CoreClientJS.prototype.k2c = function (_set____db54di) {
this.g2c_1 = _set____db54di;
};
CoreClientJS.prototype.z2b = function () {
return this.u2b_1;
CoreClientJS.prototype.l2c = function () {
return this.g2c_1;
};
CoreClientJS.prototype.setConfig = function (config) {
this.v2b_1.q1a(new SetConfig(config.g2b_1, config.h2b_1, config.f2b_1));
this.h2c_1.t1a(new SetConfig(config.s2b_1, config.t2b_1, config.r2b_1));
};

@@ -357,4 +431,4 @@ CoreClientJS.prototype.createSession = function (token, sessionId) {

configurable: true,
get: CoreClientJS.prototype.z2b,
set: CoreClientJS.prototype.y2b
get: CoreClientJS.prototype.l2c,
set: CoreClientJS.prototype.k2c
});

@@ -375,3 +449,3 @@ function VoiceCallJS$hangup$lambda$lambda($resolve, $reject) {

return function (resolve, reject) {
this$0.a2c_1.m20($reasonText, $reasonCode, VoiceCallJS$hangup$lambda$lambda(resolve, reject));
this$0.m2c_1.u20($reasonText, $reasonCode, VoiceCallJS$hangup$lambda$lambda(resolve, reject));
return Unit_getInstance();

@@ -404,3 +478,3 @@ };

var tmp_4 = tmp4_elvis_lhs == null ? true : tmp4_elvis_lhs;
this$0.a2c_1.c21(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, VoiceCallJS$say$lambda$lambda(reject, resolve));
this$0.m2c_1.k21(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, VoiceCallJS$say$lambda$lambda(reject, resolve));
return Unit_getInstance();

@@ -422,3 +496,3 @@ };

return function (resolve, reject) {
this$0.a2c_1.x20(VoiceCallJS$mute$lambda$lambda(reject, resolve));
this$0.m2c_1.f21(VoiceCallJS$mute$lambda$lambda(reject, resolve));
return Unit_getInstance();

@@ -438,3 +512,3 @@ };

return function (resolve, reject) {
this$0.a2c_1.y20(VoiceCallJS$unmute$lambda$lambda(reject, resolve));
this$0.m2c_1.g21(VoiceCallJS$unmute$lambda$lambda(reject, resolve));
return Unit_getInstance();

@@ -454,3 +528,3 @@ };

return function (resolve, reject) {
this$0.a2c_1.z20(VoiceCallJS$enableEarmuff$lambda$lambda(reject, resolve));
this$0.m2c_1.h21(VoiceCallJS$enableEarmuff$lambda$lambda(reject, resolve));
return Unit_getInstance();

@@ -470,3 +544,3 @@ };

return function (resolve, reject) {
this$0.a2c_1.a21(VoiceCallJS$disableEarmuff$lambda$lambda(reject, resolve));
this$0.m2c_1.i21(VoiceCallJS$disableEarmuff$lambda$lambda(reject, resolve));
return Unit_getInstance();

@@ -486,3 +560,3 @@ };

return function (resolve, reject) {
this$0.a2c_1.b21($digits, VoiceCallJS$sendDTMF$lambda$lambda(reject, resolve));
this$0.m2c_1.j21($digits, VoiceCallJS$sendDTMF$lambda$lambda(reject, resolve));
return Unit_getInstance();

@@ -492,15 +566,15 @@ };

function VoiceCallJS(call) {
this.a2c_1 = call;
this.b2c_1 = this.a2c_1.f20_1;
this.m2c_1 = call;
this.n2c_1 = this.m2c_1.n20_1;
}
VoiceCallJS.prototype.k1k = function () {
return this.b2c_1;
VoiceCallJS.prototype.o1k = function () {
return this.n2c_1;
};
VoiceCallJS.prototype.hangup = function (reasonText, reasonCode) {
return this.c2c(reasonText === void 1 ? null : reasonText, reasonCode === void 1 ? null : reasonCode);
return this.o2c(reasonText === void 1 ? null : reasonText, reasonCode === void 1 ? null : reasonCode);
};
VoiceCallJS.prototype.c2c = function (reasonText, reasonCode) {
VoiceCallJS.prototype.o2c = function (reasonText, reasonCode) {
return new Promise(VoiceCallJS$hangup$lambda(this, reasonText, reasonCode));
};
VoiceCallJS.prototype.d2c = function (reasonText, reasonCode, $mask0, $handler) {
VoiceCallJS.prototype.p2c = function (reasonText, reasonCode, $mask0, $handler) {
if (!(($mask0 & 1) === 0))

@@ -510,3 +584,3 @@ reasonText = null;

reasonCode = null;
return this.c2c(reasonText, reasonCode);
return this.o2c(reasonText, reasonCode);
};

@@ -534,39 +608,39 @@ VoiceCallJS.prototype.say = function (params) {

configurable: true,
get: VoiceCallJS.prototype.k1k
get: VoiceCallJS.prototype.o1k
});
function VoiceInviteFromInfoJS(id, type) {
this.e2c_1 = id;
this.f2c_1 = type;
this.q2c_1 = id;
this.r2c_1 = type;
}
VoiceInviteFromInfoJS.prototype.k1k = function () {
return this.e2c_1;
VoiceInviteFromInfoJS.prototype.o1k = function () {
return this.q2c_1;
};
VoiceInviteFromInfoJS.prototype.g2c = function () {
return this.f2c_1;
VoiceInviteFromInfoJS.prototype.s2c = function () {
return this.r2c_1;
};
VoiceInviteFromInfoJS.prototype.component1 = function () {
return this.e2c_1;
return this.q2c_1;
};
VoiceInviteFromInfoJS.prototype.component2 = function () {
return this.f2c_1;
return this.r2c_1;
};
VoiceInviteFromInfoJS.prototype.copy = function (id, type) {
return this.h2c(id === void 1 ? this.e2c_1 : id, type === void 1 ? this.f2c_1 : type);
return this.t2c(id === void 1 ? this.q2c_1 : id, type === void 1 ? this.r2c_1 : type);
};
VoiceInviteFromInfoJS.prototype.h2c = function (id, type) {
VoiceInviteFromInfoJS.prototype.t2c = function (id, type) {
return new VoiceInviteFromInfoJS(id, type);
};
VoiceInviteFromInfoJS.prototype.i2c = function (id, type, $mask0, $handler) {
VoiceInviteFromInfoJS.prototype.u2c = function (id, type, $mask0, $handler) {
if (!(($mask0 & 1) === 0))
id = this.e2c_1;
id = this.q2c_1;
if (!(($mask0 & 2) === 0))
type = this.f2c_1;
return this.h2c(id, type);
type = this.r2c_1;
return this.t2c(id, type);
};
VoiceInviteFromInfoJS.prototype.toString = function () {
return 'VoiceInviteFromInfoJS(id=' + this.e2c_1 + ', type=' + this.f2c_1 + ')';
return 'VoiceInviteFromInfoJS(id=' + this.q2c_1 + ', type=' + this.r2c_1 + ')';
};
VoiceInviteFromInfoJS.prototype.hashCode = function () {
var result = this.e2c_1 == null ? 0 : getStringHashCode(this.e2c_1);
result = imul(result, 31) + getStringHashCode(this.f2c_1) | 0;
var result = this.q2c_1 == null ? 0 : getStringHashCode(this.q2c_1);
result = imul(result, 31) + getStringHashCode(this.r2c_1) | 0;
return result;

@@ -580,5 +654,5 @@ };

var tmp0_other_with_cast = other instanceof VoiceInviteFromInfoJS ? other : THROW_CCE();
if (!(this.e2c_1 == tmp0_other_with_cast.e2c_1))
if (!(this.q2c_1 == tmp0_other_with_cast.q2c_1))
return false;
if (!(this.f2c_1 === tmp0_other_with_cast.f2c_1))
if (!(this.r2c_1 === tmp0_other_with_cast.r2c_1))
return false;

@@ -590,11 +664,11 @@ return true;

configurable: true,
get: VoiceInviteFromInfoJS.prototype.k1k
get: VoiceInviteFromInfoJS.prototype.o1k
});
Object.defineProperty(VoiceInviteFromInfoJS.prototype, 'type', {
configurable: true,
get: VoiceInviteFromInfoJS.prototype.g2c
get: VoiceInviteFromInfoJS.prototype.s2c
});
function VoiceInviteJS_init_$Init$(invite, from, $mask0, $marker, $this) {
if (!(($mask0 & 2) === 0))
from = new VoiceInviteFromInfoJS(invite.l21_1.q21_1, invite.l21_1.r21_1);
from = new VoiceInviteFromInfoJS(invite.t21_1.y21_1, invite.t21_1.z21_1);
VoiceInviteJS.call($this, invite, from);

@@ -621,3 +695,3 @@ return $this;

return function (resolve, reject) {
this$0.j2c_1.m21(VoiceInviteJS$answerCall$lambda$lambda(reject, resolve));
this$0.v2c_1.u21(VoiceInviteJS$answerCall$lambda$lambda(reject, resolve));
return Unit_getInstance();

@@ -639,3 +713,3 @@ };

return function (resolve, reject) {
this$0.j2c_1.p21(VoiceInviteJS$rejectCall$lambda$lambda(reject, resolve));
this$0.v2c_1.x21(VoiceInviteJS$rejectCall$lambda$lambda(reject, resolve));
return Unit_getInstance();

@@ -645,7 +719,7 @@ };

function VoiceInviteJS(invite, from) {
this.j2c_1 = invite;
this.k2c_1 = from;
this.v2c_1 = invite;
this.w2c_1 = from;
}
VoiceInviteJS.prototype.r1j = function () {
return this.k2c_1;
VoiceInviteJS.prototype.v1j = function () {
return this.w2c_1;
};

@@ -661,30 +735,30 @@ VoiceInviteJS.prototype.answerCall = function () {

configurable: true,
get: VoiceInviteJS.prototype.r1j
get: VoiceInviteJS.prototype.v1j
});
function ConversationJS(conversation) {
this.l2c_1 = conversation;
this.m2c_1 = this.l2c_1.g1y_1;
this.x2c_1 = conversation;
this.y2c_1 = this.x2c_1.o1y_1;
}
ConversationJS.prototype.n2c = function (_set____db54di) {
this.m2c_1 = _set____db54di;
ConversationJS.prototype.z2c = function (_set____db54di) {
this.y2c_1 = _set____db54di;
};
ConversationJS.prototype.k1k = function () {
return this.m2c_1;
ConversationJS.prototype.o1k = function () {
return this.y2c_1;
};
ConversationJS.prototype.copy = function (conversation) {
return this.o2c(conversation === void 1 ? this.l2c_1 : conversation);
return this.a2d(conversation === void 1 ? this.x2c_1 : conversation);
};
ConversationJS.prototype.o2c = function (conversation) {
ConversationJS.prototype.a2d = function (conversation) {
return new ConversationJS(conversation);
};
ConversationJS.prototype.p2c = function (conversation, $mask0, $handler) {
ConversationJS.prototype.b2d = function (conversation, $mask0, $handler) {
if (!(($mask0 & 1) === 0))
conversation = this.l2c_1;
return this.o2c(conversation);
conversation = this.x2c_1;
return this.a2d(conversation);
};
ConversationJS.prototype.toString = function () {
return 'ConversationJS(conversation=' + this.l2c_1 + ')';
return 'ConversationJS(conversation=' + this.x2c_1 + ')';
};
ConversationJS.prototype.hashCode = function () {
return this.l2c_1.hashCode();
return this.x2c_1.hashCode();
};

@@ -697,3 +771,3 @@ ConversationJS.prototype.equals = function (other) {

var tmp0_other_with_cast = other instanceof ConversationJS ? other : THROW_CCE();
if (!this.l2c_1.equals(tmp0_other_with_cast.l2c_1))
if (!this.x2c_1.equals(tmp0_other_with_cast.x2c_1))
return false;

@@ -705,4 +779,4 @@ return true;

configurable: true,
get: ConversationJS.prototype.k1k,
set: ConversationJS.prototype.n2c
get: ConversationJS.prototype.o1k,
set: ConversationJS.prototype.z2c
});

@@ -713,2 +787,38 @@ function get_jsonNullable(_this__u8e3s4) {

}
function CoreClientConfigRegionJS_AP_getInstance() {
CoreClientConfigRegionJS_initEntries();
return CoreClientConfigRegionJS_AP_instance;
}
function CoreClientConfigRegionJS_EU_getInstance() {
CoreClientConfigRegionJS_initEntries();
return CoreClientConfigRegionJS_EU_instance;
}
function CoreClientConfigRegionJS_US_getInstance() {
CoreClientConfigRegionJS_initEntries();
return CoreClientConfigRegionJS_US_instance;
}
function LoggingLevelJS_Verbose_getInstance() {
LoggingLevelJS_initEntries();
return LoggingLevelJS_Verbose_instance;
}
function LoggingLevelJS_Debug_getInstance() {
LoggingLevelJS_initEntries();
return LoggingLevelJS_Debug_instance;
}
function LoggingLevelJS_Info_getInstance() {
LoggingLevelJS_initEntries();
return LoggingLevelJS_Info_instance;
}
function LoggingLevelJS_Warn_getInstance() {
LoggingLevelJS_initEntries();
return LoggingLevelJS_Warn_instance;
}
function LoggingLevelJS_Error_getInstance() {
LoggingLevelJS_initEntries();
return LoggingLevelJS_Error_instance;
}
function LoggingLevelJS_Assert_getInstance() {
LoggingLevelJS_initEntries();
return LoggingLevelJS_Assert_instance;
}
function get_SOCKET_CONNECTED() {

@@ -743,56 +853,56 @@ return SOCKET_CONNECTED;

function RTCQualityJS(callQuality) {
this.q2c_1 = callQuality;
this.r2c_1 = this.q2c_1.c24_1;
this.s2c_1 = this.q2c_1.d24_1;
this.t2c_1 = this.q2c_1.e24_1;
this.u2c_1 = this.q2c_1.f24_1;
this.v2c_1 = this.q2c_1.g24_1;
this.w2c_1 = this.q2c_1.h24_1;
this.x2c_1 = this.q2c_1.i24_1;
this.y2c_1 = this.q2c_1.j24_1;
this.z2c_1 = this.q2c_1.k24_1;
this.c2d_1 = callQuality;
this.d2d_1 = this.c2d_1.k24_1;
this.e2d_1 = this.c2d_1.l24_1;
this.f2d_1 = this.c2d_1.m24_1;
this.g2d_1 = this.c2d_1.n24_1;
this.h2d_1 = this.c2d_1.o24_1;
this.i2d_1 = this.c2d_1.p24_1;
this.j2d_1 = this.c2d_1.q24_1;
this.k2d_1 = this.c2d_1.r24_1;
this.l2d_1 = this.c2d_1.s24_1;
}
RTCQualityJS.prototype.a2d = function () {
return this.r2c_1;
RTCQualityJS.prototype.m2d = function () {
return this.d2d_1;
};
RTCQualityJS.prototype.b2d = function () {
return this.s2c_1;
RTCQualityJS.prototype.n2d = function () {
return this.e2d_1;
};
RTCQualityJS.prototype.c2d = function () {
return this.t2c_1;
RTCQualityJS.prototype.o2d = function () {
return this.f2d_1;
};
RTCQualityJS.prototype.d2d = function () {
return this.u2c_1;
RTCQualityJS.prototype.p2d = function () {
return this.g2d_1;
};
RTCQualityJS.prototype.e2d = function () {
return this.v2c_1;
RTCQualityJS.prototype.q2d = function () {
return this.h2d_1;
};
RTCQualityJS.prototype.f2d = function () {
return this.w2c_1;
RTCQualityJS.prototype.r2d = function () {
return this.i2d_1;
};
RTCQualityJS.prototype.g2d = function () {
return this.x2c_1;
RTCQualityJS.prototype.s2d = function () {
return this.j2d_1;
};
RTCQualityJS.prototype.h2d = function () {
return this.y2c_1;
RTCQualityJS.prototype.t2d = function () {
return this.k2d_1;
};
RTCQualityJS.prototype.i2d = function () {
return this.z2c_1;
RTCQualityJS.prototype.u2d = function () {
return this.l2d_1;
};
RTCQualityJS.prototype.copy = function (callQuality) {
return this.j2d(callQuality === void 1 ? this.q2c_1 : callQuality);
return this.v2d(callQuality === void 1 ? this.c2d_1 : callQuality);
};
RTCQualityJS.prototype.j2d = function (callQuality) {
RTCQualityJS.prototype.v2d = function (callQuality) {
return new RTCQualityJS(callQuality);
};
RTCQualityJS.prototype.k2d = function (callQuality, $mask0, $handler) {
RTCQualityJS.prototype.w2d = function (callQuality, $mask0, $handler) {
if (!(($mask0 & 1) === 0))
callQuality = this.q2c_1;
return this.j2d(callQuality);
callQuality = this.c2d_1;
return this.v2d(callQuality);
};
RTCQualityJS.prototype.toString = function () {
return 'RTCQualityJS(callQuality=' + this.q2c_1 + ')';
return 'RTCQualityJS(callQuality=' + this.c2d_1 + ')';
};
RTCQualityJS.prototype.hashCode = function () {
return this.q2c_1.hashCode();
return this.c2d_1.hashCode();
};

@@ -805,3 +915,3 @@ RTCQualityJS.prototype.equals = function (other) {

var tmp0_other_with_cast = other instanceof RTCQualityJS ? other : THROW_CCE();
if (!this.q2c_1.equals(tmp0_other_with_cast.q2c_1))
if (!this.c2d_1.equals(tmp0_other_with_cast.c2d_1))
return false;

@@ -813,35 +923,35 @@ return true;

configurable: true,
get: RTCQualityJS.prototype.a2d
get: RTCQualityJS.prototype.m2d
});
Object.defineProperty(RTCQualityJS.prototype, 'quality_percentage', {
configurable: true,
get: RTCQualityJS.prototype.b2d
get: RTCQualityJS.prototype.n2d
});
Object.defineProperty(RTCQualityJS.prototype, 'jitter_min_var', {
configurable: true,
get: RTCQualityJS.prototype.c2d
get: RTCQualityJS.prototype.o2d
});
Object.defineProperty(RTCQualityJS.prototype, 'jitter_max_var', {
configurable: true,
get: RTCQualityJS.prototype.d2d
get: RTCQualityJS.prototype.p2d
});
Object.defineProperty(RTCQualityJS.prototype, 'jitter_loss_rate', {
configurable: true,
get: RTCQualityJS.prototype.e2d
get: RTCQualityJS.prototype.q2d
});
Object.defineProperty(RTCQualityJS.prototype, 'jitter_burst_rate', {
configurable: true,
get: RTCQualityJS.prototype.f2d
get: RTCQualityJS.prototype.r2d
});
Object.defineProperty(RTCQualityJS.prototype, 'flaw_total', {
configurable: true,
get: RTCQualityJS.prototype.g2d
get: RTCQualityJS.prototype.s2d
});
Object.defineProperty(RTCQualityJS.prototype, 'packet_cnt', {
configurable: true,
get: RTCQualityJS.prototype.h2d
get: RTCQualityJS.prototype.t2d
});
Object.defineProperty(RTCQualityJS.prototype, 'packet_loss_perc', {
configurable: true,
get: RTCQualityJS.prototype.i2d
get: RTCQualityJS.prototype.u2d
});

@@ -871,5 +981,5 @@ function HttpClientJSAdapter(js) {

function HttpClientJSAdapter$1($js) {
this.l2d_1 = $js;
this.x2d_1 = $js;
}
HttpClientJSAdapter$1.prototype.c1b = function (verb, url, headers, body, callback) {
HttpClientJSAdapter$1.prototype.f1b = function (verb, url, headers, body, callback) {
var tmp = verb.toString();

@@ -884,3 +994,3 @@ var tmp$ret$1;

var tmp_0 = tmp$ret$1;
this.l2d_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
this.x2d_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
};

@@ -909,12 +1019,12 @@ HttpClientJSAdapter$1.$metadata$ = classMeta(undefined, [HTTPClient]);

function SocketClientJSAdapter$adapter$1($js) {
this.n2d_1 = $js;
this.m2d_1 = null;
this.z2d_1 = $js;
this.y2d_1 = null;
}
SocketClientJSAdapter$adapter$1.prototype.f1b = function (_set____db54di) {
this.m2d_1 = _set____db54di;
SocketClientJSAdapter$adapter$1.prototype.i1b = function (_set____db54di) {
this.y2d_1 = _set____db54di;
};
SocketClientJSAdapter$adapter$1.prototype.c22 = function () {
return this.m2d_1;
SocketClientJSAdapter$adapter$1.prototype.k22 = function () {
return this.y2d_1;
};
SocketClientJSAdapter$adapter$1.prototype.g1b = function (type, msg, callback) {
SocketClientJSAdapter$adapter$1.prototype.j1b = function (type, msg, callback) {
var tmp0_safe_receiver = msg;

@@ -935,26 +1045,26 @@ var tmp;

var tmp_0 = tmp;
this.n2d_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
this.z2d_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
};
SocketClientJSAdapter$adapter$1.prototype.h1b = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, session_id, query) {
this.n2d_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, query);
SocketClientJSAdapter$adapter$1.prototype.k1b = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, session_id, query) {
this.z2d_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, query);
};
SocketClientJSAdapter$adapter$1.prototype.i1b = function () {
this.n2d_1.disconnect();
SocketClientJSAdapter$adapter$1.prototype.l1b = function () {
this.z2d_1.disconnect();
};
SocketClientJSAdapter$adapter$1.prototype.j1b = function (token) {
this.n2d_1.setConnectParamsSocketConfig(token);
SocketClientJSAdapter$adapter$1.prototype.m1b = function (token) {
this.z2d_1.setConnectParamsSocketConfig(token);
};
SocketClientJSAdapter$adapter$1.prototype.k1b = function (milliseconds, callback) {
this.n2d_1.startVerifyResponseTimer(milliseconds, callback);
SocketClientJSAdapter$adapter$1.prototype.n1b = function (milliseconds, callback) {
this.z2d_1.startVerifyResponseTimer(milliseconds, callback);
};
SocketClientJSAdapter$adapter$1.$metadata$ = classMeta(undefined, [SocketClient]);
function SocketClientJSAdapter$1($adapter) {
this.o2d_1 = $adapter;
this.a2e_1 = $adapter;
}
SocketClientJSAdapter$1.prototype.didReceiveNewSocketEvent = function (type, body) {
var tmp0_safe_receiver = this.o2d_1.m2d_1;
var tmp0_safe_receiver = this.a2e_1.y2d_1;
if (tmp0_safe_receiver == null)
null;
else {
tmp0_safe_receiver.k26(new UnknownSocketEvent(body, type));
tmp0_safe_receiver.s26(new UnknownSocketEvent(body, type));
}

@@ -993,3 +1103,3 @@ };

case 'NXMCORE_REASON_SERVER_DISCONNECTED':
var tmp1_safe_receiver_0 = this.o2d_1.m2d_1;
var tmp1_safe_receiver_0 = this.a2e_1.y2d_1;
var tmp_0;

@@ -999,3 +1109,3 @@ if (tmp1_safe_receiver_0 == null) {

} else {
tmp1_safe_receiver_0.l26(tmp1_safe_receiver, SocketConnectionFailedReason_ServerDisconnected_getInstance());
tmp1_safe_receiver_0.t26(tmp1_safe_receiver, SocketConnectionFailedReason_ServerDisconnected_getInstance());
tmp_0 = Unit_getInstance();

@@ -1007,3 +1117,3 @@ }

case 'NXMCORE_REASON_CLIENT_DISCONNECTED':
var tmp2_safe_receiver = this.o2d_1.m2d_1;
var tmp2_safe_receiver = this.a2e_1.y2d_1;
var tmp_1;

@@ -1013,3 +1123,3 @@ if (tmp2_safe_receiver == null) {

} else {
tmp2_safe_receiver.l26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientDisconnected_getInstance());
tmp2_safe_receiver.t26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientDisconnected_getInstance());
tmp_1 = Unit_getInstance();

@@ -1021,3 +1131,3 @@ }

case 'NXMCORE_CLIENT_NETWORK_ERROR':
var tmp3_safe_receiver = this.o2d_1.m2d_1;
var tmp3_safe_receiver = this.a2e_1.y2d_1;
var tmp_2;

@@ -1027,3 +1137,3 @@ if (tmp3_safe_receiver == null) {

} else {
tmp3_safe_receiver.l26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientNetworkError_getInstance());
tmp3_safe_receiver.t26(tmp1_safe_receiver, SocketConnectionFailedReason_ClientNetworkError_getInstance());
tmp_2 = Unit_getInstance();

@@ -1035,3 +1145,3 @@ }

case 'NXMCORE_REASON_PING_TIMEOUT':
var tmp4_safe_receiver = this.o2d_1.m2d_1;
var tmp4_safe_receiver = this.a2e_1.y2d_1;
var tmp_3;

@@ -1041,3 +1151,3 @@ if (tmp4_safe_receiver == null) {

} else {
tmp4_safe_receiver.l26(tmp1_safe_receiver, SocketConnectionFailedReason_PingTimeout_getInstance());
tmp4_safe_receiver.t26(tmp1_safe_receiver, SocketConnectionFailedReason_PingTimeout_getInstance());
tmp_3 = Unit_getInstance();

@@ -1049,3 +1159,3 @@ }

default:
var tmp5_safe_receiver = this.o2d_1.m2d_1;
var tmp5_safe_receiver = this.a2e_1.y2d_1;
var tmp_4;

@@ -1055,3 +1165,3 @@ if (tmp5_safe_receiver == null) {

} else {
tmp5_safe_receiver.l26(tmp1_safe_receiver, null);
tmp5_safe_receiver.t26(tmp1_safe_receiver, null);
tmp_4 = Unit_getInstance();

@@ -1069,52 +1179,52 @@ }

function MediaClientJSAdapter$adapter$1($js) {
this.q2d_1 = $js;
this.p2d_1 = null;
this.c2e_1 = $js;
this.b2e_1 = null;
}
MediaClientJSAdapter$adapter$1.prototype.n1b = function (_set____db54di) {
this.p2d_1 = _set____db54di;
MediaClientJSAdapter$adapter$1.prototype.q1b = function (_set____db54di) {
this.b2e_1 = _set____db54di;
};
MediaClientJSAdapter$adapter$1.prototype.o1b = function (id) {
this.q2d_1.enableMedia(id, null);
MediaClientJSAdapter$adapter$1.prototype.r1b = function (id) {
this.c2e_1.enableMedia(id, null);
};
MediaClientJSAdapter$adapter$1.prototype.p1b = function (id, remoteDescription) {
this.q2d_1.enableMedia(id, remoteDescription);
MediaClientJSAdapter$adapter$1.prototype.s1b = function (id, remoteDescription) {
this.c2e_1.enableMedia(id, remoteDescription);
};
MediaClientJSAdapter$adapter$1.prototype.q1b = function (id, sdp, streamId, legId) {
this.q2d_1.processAnswer(id, sdp, streamId, legId);
MediaClientJSAdapter$adapter$1.prototype.t1b = function (id, sdp, streamId, legId) {
this.c2e_1.processAnswer(id, sdp, streamId, legId);
};
MediaClientJSAdapter$adapter$1.prototype.r1b = function (id) {
this.q2d_1.disableMedia(id);
MediaClientJSAdapter$adapter$1.prototype.u1b = function (id) {
this.c2e_1.disableMedia(id);
};
MediaClientJSAdapter$adapter$1.prototype.s1b = function (id) {
this.q2d_1.mute(id);
MediaClientJSAdapter$adapter$1.prototype.v1b = function (id) {
this.c2e_1.mute(id);
};
MediaClientJSAdapter$adapter$1.prototype.t1b = function (id) {
this.q2d_1.unmute(id);
MediaClientJSAdapter$adapter$1.prototype.w1b = function (id) {
this.c2e_1.unmute(id);
};
MediaClientJSAdapter$adapter$1.$metadata$ = classMeta(undefined, [MediaClient]);
function MediaClientJSAdapter$1($adapter) {
this.r2d_1 = $adapter;
this.d2e_1 = $adapter;
}
MediaClientJSAdapter$1.prototype.onOffer = function (mediaId, streamId, sdp, callback) {
var tmp0_safe_receiver = this.r2d_1.p2d_1;
var tmp0_safe_receiver = this.d2e_1.b2e_1;
if (tmp0_safe_receiver == null)
null;
else {
tmp0_safe_receiver.h26(mediaId, streamId, sdp, callback);
tmp0_safe_receiver.p26(mediaId, streamId, sdp, callback);
}
};
MediaClientJSAdapter$1.prototype.onAnswer = function (mediaId, streamId, sdp, callback) {
var tmp0_safe_receiver = this.r2d_1.p2d_1;
var tmp0_safe_receiver = this.d2e_1.b2e_1;
if (tmp0_safe_receiver == null)
null;
else {
tmp0_safe_receiver.i26(mediaId, streamId, sdp, callback);
tmp0_safe_receiver.q26(mediaId, streamId, sdp, callback);
}
};
MediaClientJSAdapter$1.prototype.onError = function (mediaId, error) {
var tmp0_safe_receiver = this.r2d_1.p2d_1;
var tmp0_safe_receiver = this.d2e_1.b2e_1;
if (tmp0_safe_receiver == null)
null;
else {
tmp0_safe_receiver.j26(mediaId, Exception_init_$Create$(error));
tmp0_safe_receiver.r26(mediaId, Exception_init_$Create$(error));
}

@@ -1259,3 +1369,46 @@ };

var $vonage = _.vonage || (_.vonage = {});
$vonage.CoreClientConfigRegionJS = CoreClientConfigRegionJS;
$vonage.CoreClientConfigRegionJS.values = values;
$vonage.CoreClientConfigRegionJS.valueOf = valueOf;
Object.defineProperty($vonage.CoreClientConfigRegionJS, 'AP', {
configurable: true,
get: CoreClientConfigRegionJS_AP_getInstance
});
Object.defineProperty($vonage.CoreClientConfigRegionJS, 'EU', {
configurable: true,
get: CoreClientConfigRegionJS_EU_getInstance
});
Object.defineProperty($vonage.CoreClientConfigRegionJS, 'US', {
configurable: true,
get: CoreClientConfigRegionJS_US_getInstance
});
$vonage.CoreClientConfigJS = CoreClientConfigJS;
$vonage.LoggingLevelJS = LoggingLevelJS;
$vonage.LoggingLevelJS.values = values_0;
$vonage.LoggingLevelJS.valueOf = valueOf_0;
Object.defineProperty($vonage.LoggingLevelJS, 'Verbose', {
configurable: true,
get: LoggingLevelJS_Verbose_getInstance
});
Object.defineProperty($vonage.LoggingLevelJS, 'Debug', {
configurable: true,
get: LoggingLevelJS_Debug_getInstance
});
Object.defineProperty($vonage.LoggingLevelJS, 'Info', {
configurable: true,
get: LoggingLevelJS_Info_getInstance
});
Object.defineProperty($vonage.LoggingLevelJS, 'Warn', {
configurable: true,
get: LoggingLevelJS_Warn_getInstance
});
Object.defineProperty($vonage.LoggingLevelJS, 'Error', {
configurable: true,
get: LoggingLevelJS_Error_getInstance
});
Object.defineProperty($vonage.LoggingLevelJS, 'Assert', {
configurable: true,
get: LoggingLevelJS_Assert_getInstance
});
$vonage.setDefaultLoggingLevel = setDefaultLoggingLevel_0;
$vonage.CoreClientJS = CoreClientJS;

@@ -1262,0 +1415,0 @@ $vonage.VoiceCallJS = VoiceCallJS;

@@ -19,5 +19,6 @@ (function (root, factory) {

var interfaceMeta = kotlin_kotlin.$_$.o5;
var THROW_ISE = kotlin_kotlin.$_$.w7;
var Unit_getInstance = kotlin_kotlin.$_$.o2;
var Enum = kotlin_kotlin.$_$.q7;
var stackTraceToString = kotlin_kotlin.$_$.l8;
var stackTraceToString = kotlin_kotlin.$_$.m8;
//endregion

@@ -34,3 +35,3 @@ //region block: pre-declaration

}
LogWriter.prototype.x19 = function (severity) {
LogWriter.prototype.y19 = function (severity) {
return true;

@@ -56,9 +57,12 @@ };

Companion_instance = this;
var tmp = LoggerGlobal_getInstance().z19_1;
var tmp = LoggerGlobal_getInstance().a1a_1;
Logger_init_$Init$(tmp, null, 2, null, this);
}
Companion.prototype.c1a = function () {
Companion.prototype.d1a = function () {
return get_defaultTag();
};
Companion.prototype.d1a = function (tag) {
Companion.prototype.e1a = function (severity) {
LoggerGlobal_getInstance().a1a_1.f1a(severity);
};
Companion.prototype.g1a = function (tag) {
set_defaultTag(tag);

@@ -75,33 +79,33 @@ };

Companion_getInstance();
this.e1a_1 = config;
this.f1a_1 = tag;
this.h1a_1 = config;
this.i1a_1 = tag;
}
Logger.prototype.g1a = function () {
return this.e1a_1;
Logger.prototype.j1a = function () {
return this.h1a_1;
};
Logger.prototype.c1a = function () {
return this.f1a_1;
Logger.prototype.d1a = function () {
return this.i1a_1;
};
Logger.prototype.h1a = function (tag) {
return new Logger(this.e1a_1, tag);
Logger.prototype.k1a = function (tag) {
return new Logger(this.h1a_1, tag);
};
Logger.prototype.i1a = function (message) {
if (this.e1a_1.m1a().r3(Severity_Info_getInstance()) <= 0) {
this.l1a(Severity_Info_getInstance(), this.c1a(), null, message());
Logger.prototype.l1a = function (message) {
if (this.h1a_1.p1a().r3(Severity_Info_getInstance()) <= 0) {
this.o1a(Severity_Info_getInstance(), this.d1a(), null, message());
}
};
Logger.prototype.j1a = function (message) {
if (this.e1a_1.m1a().r3(Severity_Error_getInstance()) <= 0) {
this.l1a(Severity_Error_getInstance(), this.c1a(), null, message());
Logger.prototype.m1a = function (message) {
if (this.h1a_1.p1a().r3(Severity_Error_getInstance()) <= 0) {
this.o1a(Severity_Error_getInstance(), this.d1a(), null, message());
}
};
Logger.prototype.k1a = function (message) {
if (this.e1a_1.m1a().r3(Severity_Error_getInstance()) <= 0) {
this.l1a(Severity_Error_getInstance(), this.c1a(), null, message);
Logger.prototype.n1a = function (message) {
if (this.h1a_1.p1a().r3(Severity_Error_getInstance()) <= 0) {
this.o1a(Severity_Error_getInstance(), this.d1a(), null, message);
}
};
Logger.prototype.l1a = function (severity, tag, throwable, message) {
Logger.prototype.o1a = function (severity, tag, throwable, message) {
// Inline function 'co.touchlab.kermit.Logger.processLog' call
// Inline function 'kotlin.collections.forEach' call
var tmp0_forEach = this.e1a_1.n1a();
var tmp0_forEach = this.h1a_1.q1a();
var tmp0_iterator = tmp0_forEach.g();

@@ -111,5 +115,5 @@ while (tmp0_iterator.h()) {

// Inline function 'co.touchlab.kermit.Logger.processLog.<anonymous>' call
if (element.x19(severity)) {
if (element.y19(severity)) {
// Inline function 'co.touchlab.kermit.Logger.log.<anonymous>' call
element.y19(severity, message, tag, throwable);
element.z19(severity, message, tag, throwable);
}

@@ -121,3 +125,3 @@ }

LoggerGlobal_instance = this;
this.z19_1 = mutableKermitConfigInit(listOf(platformLogWriter()));
this.a1a_1 = mutableKermitConfigInit(listOf(platformLogWriter()));
}

@@ -151,2 +155,22 @@ LoggerGlobal.$metadata$ = objectMeta('LoggerGlobal');

var Severity_Assert_instance;
function valueOf(value) {
switch (value) {
case 'Verbose':
return Severity_Verbose_getInstance();
case 'Debug':
return Severity_Debug_getInstance();
case 'Info':
return Severity_Info_getInstance();
case 'Warn':
return Severity_Warn_getInstance();
case 'Error':
return Severity_Error_getInstance();
case 'Assert':
return Severity_Assert_getInstance();
default:
Severity_initEntries();
THROW_ISE();
break;
}
}
var Severity_entriesInitialized;

@@ -180,2 +204,6 @@ function Severity_initEntries() {

}
function Severity_Warn_getInstance() {
Severity_initEntries();
return Severity_Warn_instance;
}
function Severity_Error_getInstance() {

@@ -185,6 +213,10 @@ Severity_initEntries();

}
function Severity_Assert_getInstance() {
Severity_initEntries();
return Severity_Assert_instance;
}
function ConsoleWriter() {
LogWriter.call(this);
}
ConsoleWriter.prototype.y19 = function (severity, message, tag, throwable) {
ConsoleWriter.prototype.z19 = function (severity, message, tag, throwable) {
var output = '[' + tag + '] ' + message;

@@ -226,11 +258,14 @@ var tmp0_safe_receiver = throwable;

function JsMutableLoggerConfig(logWriters) {
this.o1a_1 = get_DEFAULT_MIN_SEVERITY();
this.p1a_1 = logWriters;
this.r1a_1 = get_DEFAULT_MIN_SEVERITY();
this.s1a_1 = logWriters;
}
JsMutableLoggerConfig.prototype.m1a = function () {
return this.o1a_1;
JsMutableLoggerConfig.prototype.f1a = function (_set____db54di) {
this.r1a_1 = _set____db54di;
};
JsMutableLoggerConfig.prototype.n1a = function () {
return this.p1a_1;
JsMutableLoggerConfig.prototype.p1a = function () {
return this.r1a_1;
};
JsMutableLoggerConfig.prototype.q1a = function () {
return this.s1a_1;
};
JsMutableLoggerConfig.$metadata$ = classMeta('JsMutableLoggerConfig', [MutableLoggerConfig]);

@@ -266,6 +301,7 @@ function set_defaultTag(_set____db54di) {

_.$_$ = _.$_$ || {};
_.$_$.a = Severity_Debug_getInstance;
_.$_$.b = Severity_Error_getInstance;
_.$_$.c = Severity_Info_getInstance;
_.$_$.d = Companion_getInstance;
_.$_$.a = valueOf;
_.$_$.b = Severity_Debug_getInstance;
_.$_$.c = Severity_Error_getInstance;
_.$_$.d = Severity_Info_getInstance;
_.$_$.e = Companion_getInstance;
//endregion

@@ -272,0 +308,0 @@ return _;

@@ -64,3 +64,3 @@ "use strict";

startVerifyResponseTimer(milliseconds, callback) {
console.log(`startVerifyResponseTimer: ${milliseconds}`);
// console.log(`startVerifyResponseTimer: ${milliseconds}`);
setTimeout(() => {

@@ -67,0 +67,0 @@ callback();

@@ -59,3 +59,3 @@ "use strict";

const peerConnection = new RTCPeerConnection({
iceServers: [{ urls: 'stun:stun.l.google.com:19302' }],
// iceServers: [{ urls: 'stun:stun.l.google.com:19302' }],
iceTransportPolicy: 'all',

@@ -62,0 +62,0 @@ bundlePolicy: 'balanced',

{
"name": "@vonage/client-sdk",
"version": "0.1.3-alpha.22",
"version": "0.1.3-alpha.23",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/Client.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc