@vonage/client-sdk 1.2.1-snapshot.40.0 → 1.3.0-alpha.0

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.
@@ -20101,6 +20101,13 @@ function requireClientsdkClientcore () {
20101
20101
  function onConversationEvent(event) {
20102
20102
  }
20103
20103
  setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
20104
+ function onRTCHangup(conversationId, legId, hangup) {
20105
+ }
20106
+ function onRTCTransfer(conversationId, legId) {
20107
+ }
20108
+ function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
20109
+ }
20110
+ setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
20104
20111
  function onAudioSay() {
20105
20112
  }
20106
20113
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -20110,18 +20117,12 @@ function requireClientsdkClientcore () {
20110
20117
  function onAudioDTMFUpdate(conversationId, legId, digits) {
20111
20118
  }
20112
20119
  setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
20113
- function onRTCHangup(conversationId, legId, hangup) {
20114
- }
20115
- function onRTCTransfer(conversationId, legId) {
20116
- }
20117
- function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
20118
- }
20119
- setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
20120
- setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, AudioEventListener, RTCEventListener]);
20120
+ setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, RTCEventListener, AudioEventListener]);
20121
20121
  setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
20122
20122
  setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
20123
- setMetadataFor(Companion_116, 'Companion', objectMeta);
20123
+ setMetadataFor(DefaultConfig, 'DefaultConfig', objectMeta);
20124
20124
  setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
20125
+ setMetadataFor(Companion_116, 'Companion', objectMeta);
20125
20126
  setMetadataFor(ConversationAPIImpl, 'ConversationAPIImpl', classMeta);
20126
20127
  setMetadataFor(CSErrorCodes, 'CSErrorCodes', objectMeta);
20127
20128
  setMetadataFor(InternalError, 'InternalError', classMeta, Exception);
@@ -20233,7 +20234,7 @@ function requireClientsdkClientcore () {
20233
20234
  setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
20234
20235
  setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
20235
20236
  setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
20236
- setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, AudioEventListener, RTCEventListener]);
20237
+ setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, RTCEventListener, AudioEventListener]);
20237
20238
  setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
20238
20239
  setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
20239
20240
  setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
@@ -43445,21 +43446,20 @@ function requireClientsdkClientcore () {
43445
43446
  Enum.call(this, name, ordinal);
43446
43447
  this.j2h_1 = sev;
43447
43448
  }
43448
- function Companion_116() {
43449
- Companion_instance_116 = this;
43449
+ function DefaultConfig() {
43450
+ DefaultConfig_instance = this;
43450
43451
  this.k2h_1 = '/v2/rtc';
43451
43452
  this.l2h_1 = false;
43452
- this.m2h_1 = ClientConfigRegion_US_getInstance();
43453
- this.n2h_1 = LoggingLevel_Info_getInstance();
43454
- this.o2h_1 = false;
43455
- this.p2h_1 = true;
43456
- this.q2h_1 = this.n2h_1;
43453
+ this.m2h_1 = false;
43454
+ this.n2h_1 = true;
43455
+ this.o2h_1 = ClientConfigRegion_US_getInstance();
43456
+ this.p2h_1 = LoggingLevel_Info_getInstance();
43457
43457
  }
43458
- var Companion_instance_116;
43459
- function Companion_getInstance_118() {
43460
- if (Companion_instance_116 == null)
43461
- new Companion_116();
43462
- return Companion_instance_116;
43458
+ var DefaultConfig_instance;
43459
+ function DefaultConfig_getInstance() {
43460
+ if (DefaultConfig_instance == null)
43461
+ new DefaultConfig();
43462
+ return DefaultConfig_instance;
43463
43463
  }
43464
43464
  var ClientConfigRegion_AP_instance;
43465
43465
  var ClientConfigRegion_EU_instance;
@@ -43475,8 +43475,18 @@ function requireClientsdkClientcore () {
43475
43475
  }
43476
43476
  function ClientConfigRegion(name, ordinal, apiUrl, websocketUrl) {
43477
43477
  Enum.call(this, name, ordinal);
43478
- this.t2h_1 = apiUrl;
43479
- this.u2h_1 = websocketUrl;
43478
+ this.s2h_1 = apiUrl;
43479
+ this.t2h_1 = websocketUrl;
43480
+ }
43481
+ function Companion_116() {
43482
+ Companion_instance_116 = this;
43483
+ this.u2h_1 = DefaultConfig_getInstance().p2h_1;
43484
+ }
43485
+ var Companion_instance_116;
43486
+ function Companion_getInstance_118() {
43487
+ if (Companion_instance_116 == null)
43488
+ new Companion_116();
43489
+ return Companion_instance_116;
43480
43490
  }
43481
43491
  function LoggingLevel_Verbose_getInstance() {
43482
43492
  LoggingLevel_initEntries();
@@ -51050,7 +51060,7 @@ function requireClientsdkClientcore () {
51050
51060
  return CallCompleteReason_Unknown_instance;
51051
51061
  }
51052
51062
  function ConsoleLogger(minLogLevel) {
51053
- minLogLevel = minLogLevel === VOID ? Companion_getInstance_118().n2h_1 : minLogLevel;
51063
+ minLogLevel = minLogLevel === VOID ? DefaultConfig_getInstance().p2h_1 : minLogLevel;
51054
51064
  BaseVonageLogger.call(this, 'VonageConsoleLogger', minLogLevel);
51055
51065
  this.b2z_1 = flatten(Companion_getInstance_130().i2z_1);
51056
51066
  }
@@ -51092,7 +51102,7 @@ function requireClientsdkClientcore () {
51092
51102
  return valueOf(_this__u8e3s4.j2h_1);
51093
51103
  }
51094
51104
  function LoggerAdapter(consoleLogLevel, customLoggers, disableInternalLogger) {
51095
- consoleLogLevel = consoleLogLevel === VOID ? Companion_getInstance_118().n2h_1 : consoleLogLevel;
51105
+ consoleLogLevel = consoleLogLevel === VOID ? DefaultConfig_getInstance().p2h_1 : consoleLogLevel;
51096
51106
  disableInternalLogger = disableInternalLogger === VOID ? false : disableInternalLogger;
51097
51107
  var tmp = this;
51098
51108
  // Inline function 'kotlin.takeUnless' call
@@ -51687,7 +51697,7 @@ function requireClientsdkClientcore () {
51687
51697
  this.g31_1 = $onLog;
51688
51698
  this.d31_1 = $name;
51689
51699
  var tmp = this;
51690
- tmp.e31_1 = $minLogLevel == null ? Companion_getInstance_118().n2h_1 : $minLogLevel;
51700
+ tmp.e31_1 = $minLogLevel == null ? DefaultConfig_getInstance().p2h_1 : $minLogLevel;
51691
51701
  var tmp_0 = this;
51692
51702
  tmp_0.f31_1 = $topics == null ? flatten(Companion_getInstance_130().i2z_1) : $topics;
51693
51703
  }
@@ -58294,7 +58304,8 @@ function requireClientsdkClientcore () {
58294
58304
  _.$_$.b2 = NetworkConnectivityStatus_Disconnected_getInstance;
58295
58305
  _.$_$.c2 = System_getInstance;
58296
58306
  _.$_$.d2 = Companion_getInstance_118;
58297
- _.$_$.e2 = Companion_getInstance_130;
58307
+ _.$_$.e2 = DefaultConfig_getInstance;
58308
+ _.$_$.f2 = Companion_getInstance_130;
58298
58309
  //endregion
58299
58310
  return _;
58300
58311
  }));
@@ -58329,7 +58340,7 @@ function requireClientsdkClientcore () {
58329
58340
  var setMetadataFor = kotlin_kotlin.$_$.n6;
58330
58341
  var VoiceClientListener = kotlin_com_vonage_rtc_clientcore.$_$.t;
58331
58342
  var Builder = kotlin_com_vonage_rtc_clientcore.$_$.a1;
58332
- var Companion_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.d2;
58343
+ var DefaultConfig_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.e2;
58333
58344
  var LoggerAdapter = kotlin_com_vonage_rtc_clientcore.$_$.u;
58334
58345
  var defineProp = kotlin_kotlin.$_$.h5;
58335
58346
  var collectionSizeOrDefault = kotlin_kotlin.$_$.b3;
@@ -58378,8 +58389,9 @@ function requireClientsdkClientcore () {
58378
58389
  var SessionErrorReason_TokenExpired_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.q1;
58379
58390
  var SessionErrorReason_TransportClosed_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.r1;
58380
58391
  var SessionErrorReason_PingTimeout_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.p1;
58392
+ var Companion_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.d2;
58381
58393
  var SetConfig = kotlin_com_vonage_rtc_clientcore.$_$.z;
58382
- var Companion_getInstance_0 = kotlin_com_vonage_rtc_clientcore.$_$.e2;
58394
+ var Companion_getInstance_0 = kotlin_com_vonage_rtc_clientcore.$_$.f2;
58383
58395
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
58384
58396
  var addAll = kotlin_kotlin.$_$.z2;
58385
58397
  var createVonageLogger = kotlin_com_vonage_rtc_clientcore.$_$.v;
@@ -58428,7 +58440,7 @@ function requireClientsdkClientcore () {
58428
58440
  var tmp_0 = getWebsocketUrl(config);
58429
58441
  var tmp_1 = getWebsocketPath(config);
58430
58442
  var tmp_2 = getApiUrl(config);
58431
- Companion_getInstance();
58443
+ DefaultConfig_getInstance();
58432
58444
  tmp.f1a(new SetConfig(tmp_0, tmp_1, tmp_2, false, 'js', 'Generic JS Navigator', '@vonage/client-sdk', getRtcStatsTelemetry(config)));
58433
58445
  }
58434
58446
  function createSession(token, sessionId) {
@@ -58779,7 +58791,7 @@ function requireClientsdkClientcore () {
58779
58791
  var tmp_0 = new Builder();
58780
58792
  var tmp0_safe_receiver = config.loggingLevel;
58781
58793
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getLoggingLevel(tmp0_safe_receiver);
58782
- var tmp_1 = tmp1_elvis_lhs == null ? Companion_getInstance().n2h_1 : tmp1_elvis_lhs;
58794
+ var tmp_1 = tmp1_elvis_lhs == null ? DefaultConfig_getInstance().p2h_1 : tmp1_elvis_lhs;
58783
58795
  var tmp_2 = map_7(config.customLoggers);
58784
58796
  var tmp2_elvis_lhs = config.disableInternalLogger;
58785
58797
  tmp.z39_1 = tmp_0.v18(new LoggerAdapter(tmp_1, tmp_2, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs)).w18(HttpClientJSAdapter(http)).x18(SocketClientJSAdapter(socket)).y18(MediaClientJSAdapter(this.y39_1));
@@ -61720,16 +61732,16 @@ function requireClientsdkClientcore () {
61720
61732
  function CoreClientConfigJS(region) {
61721
61733
  region = region === VOID ? get_DEFAULT_REGION() : region;
61722
61734
  this.region = region;
61723
- this.u3h_1 = this.region.coreRegion.t2h_1;
61724
- this.v3h_1 = this.region.coreRegion.u2h_1;
61735
+ this.u3h_1 = this.region.coreRegion.s2h_1;
61736
+ this.v3h_1 = this.region.coreRegion.t2h_1;
61725
61737
  var tmp = this;
61726
- Companion_getInstance();
61738
+ DefaultConfig_getInstance();
61727
61739
  tmp.w3h_1 = '/v2/rtc';
61728
61740
  var tmp_0 = this;
61729
- Companion_getInstance();
61741
+ DefaultConfig_getInstance();
61730
61742
  tmp_0.x3h_1 = false;
61731
61743
  var tmp_1 = this;
61732
- Companion_getInstance();
61744
+ DefaultConfig_getInstance();
61733
61745
  tmp_1.y3h_1 = true;
61734
61746
  }
61735
61747
  protoOf(CoreClientConfigJS).z3h = function () {
@@ -61985,7 +61997,7 @@ function requireClientsdkClientcore () {
61985
61997
  defineProp(protoOf(SessionErrorReasonJS), 'ordinal', protoOf(SessionErrorReasonJS).uc, VOID);
61986
61998
  function setDefaultLoggingLevel(level) {
61987
61999
  _init_properties_ICoreClientJS_kt__j7s52i();
61988
- Companion_getInstance().q2h_1 = getLoggingLevel(level);
62000
+ Companion_getInstance().u2h_1 = getLoggingLevel(level);
61989
62001
  }
61990
62002
  function ICoreClientJS$createSession$lambda$lambda($reject, $resolve) {
61991
62003
  return function (err, sessionId) {
@@ -62192,12 +62204,12 @@ function requireClientsdkClientcore () {
62192
62204
  if (tmp2_elvis_lhs == null) {
62193
62205
  var tmp0_safe_receiver = _this__u8e3s4.region;
62194
62206
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.coreRegion;
62195
- tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2h_1;
62207
+ tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2h_1;
62196
62208
  } else {
62197
62209
  tmp = tmp2_elvis_lhs;
62198
62210
  }
62199
62211
  var tmp3_elvis_lhs = tmp;
62200
- return tmp3_elvis_lhs == null ? Companion_getInstance().m2h_1.u2h_1 : tmp3_elvis_lhs;
62212
+ return tmp3_elvis_lhs == null ? DefaultConfig_getInstance().o2h_1.t2h_1 : tmp3_elvis_lhs;
62201
62213
  }
62202
62214
  function getApiUrl(_this__u8e3s4) {
62203
62215
  _init_properties_ICoreClientJS_kt__j7s52i();
@@ -62206,19 +62218,19 @@ function requireClientsdkClientcore () {
62206
62218
  if (tmp2_elvis_lhs == null) {
62207
62219
  var tmp0_safe_receiver = _this__u8e3s4.region;
62208
62220
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.coreRegion;
62209
- tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2h_1;
62221
+ tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2h_1;
62210
62222
  } else {
62211
62223
  tmp = tmp2_elvis_lhs;
62212
62224
  }
62213
62225
  var tmp3_elvis_lhs = tmp;
62214
- return tmp3_elvis_lhs == null ? Companion_getInstance().m2h_1.t2h_1 : tmp3_elvis_lhs;
62226
+ return tmp3_elvis_lhs == null ? DefaultConfig_getInstance().o2h_1.s2h_1 : tmp3_elvis_lhs;
62215
62227
  }
62216
62228
  function getWebsocketPath(_this__u8e3s4) {
62217
62229
  _init_properties_ICoreClientJS_kt__j7s52i();
62218
62230
  var tmp0_elvis_lhs = _this__u8e3s4.websocketPath;
62219
62231
  var tmp;
62220
62232
  if (tmp0_elvis_lhs == null) {
62221
- Companion_getInstance();
62233
+ DefaultConfig_getInstance();
62222
62234
  tmp = '/v2/rtc';
62223
62235
  } else {
62224
62236
  tmp = tmp0_elvis_lhs;
@@ -62230,7 +62242,7 @@ function requireClientsdkClientcore () {
62230
62242
  var tmp0_elvis_lhs = _this__u8e3s4.rtcStatsTelemetry;
62231
62243
  var tmp;
62232
62244
  if (tmp0_elvis_lhs == null) {
62233
- Companion_getInstance();
62245
+ DefaultConfig_getInstance();
62234
62246
  tmp = true;
62235
62247
  } else {
62236
62248
  tmp = tmp0_elvis_lhs;
@@ -62381,8 +62393,8 @@ function requireClientsdkClientcore () {
62381
62393
  function _init_properties_ICoreClientJS_kt__j7s52i() {
62382
62394
  if (!properties_initialized_ICoreClientJS_kt_ipn2no) {
62383
62395
  properties_initialized_ICoreClientJS_kt_ipn2no = true;
62384
- DEFAULT_REGION = valueOf_4(Companion_getInstance().m2h_1.g3_1);
62385
- DEFAULT_LOGGING_LEVEL = getLoggingLevelJS(Companion_getInstance().n2h_1);
62396
+ DEFAULT_REGION = valueOf_4(DefaultConfig_getInstance().o2h_1.g3_1);
62397
+ DEFAULT_LOGGING_LEVEL = getLoggingLevelJS(DefaultConfig_getInstance().p2h_1);
62386
62398
  }
62387
62399
  }
62388
62400
  var LegStatusJS_RINGING_instance;
@@ -64504,6 +64516,10 @@ class SocketClient {
64504
64516
  const Topics = clientsdkClientcore_jsExports.vonage.Topics;
64505
64517
  const Topic = clientsdkClientcore_jsExports.vonage.TopicJS;
64506
64518
  const LoggingLevel = clientsdkClientcore_jsExports.vonage.LoggingLevelJS;
64519
+ /**
64520
+ * @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
64521
+ * @param level - The logging level to set.
64522
+ */
64507
64523
  const setDefaultLoggingLevel = clientsdkClientcore_jsExports.vonage.setDefaultLoggingLevel;
64508
64524
  const convertLogger = (logger) => {
64509
64525
  var _a;
@@ -20077,6 +20077,13 @@ function requireClientsdkClientcore () {
20077
20077
  function onConversationEvent(event) {
20078
20078
  }
20079
20079
  setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
20080
+ function onRTCHangup(conversationId, legId, hangup) {
20081
+ }
20082
+ function onRTCTransfer(conversationId, legId) {
20083
+ }
20084
+ function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
20085
+ }
20086
+ setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
20080
20087
  function onAudioSay() {
20081
20088
  }
20082
20089
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -20086,18 +20093,12 @@ function requireClientsdkClientcore () {
20086
20093
  function onAudioDTMFUpdate(conversationId, legId, digits) {
20087
20094
  }
20088
20095
  setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
20089
- function onRTCHangup(conversationId, legId, hangup) {
20090
- }
20091
- function onRTCTransfer(conversationId, legId) {
20092
- }
20093
- function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
20094
- }
20095
- setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
20096
- setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, AudioEventListener, RTCEventListener]);
20096
+ setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, RTCEventListener, AudioEventListener]);
20097
20097
  setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
20098
20098
  setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
20099
- setMetadataFor(Companion_116, 'Companion', objectMeta);
20099
+ setMetadataFor(DefaultConfig, 'DefaultConfig', objectMeta);
20100
20100
  setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
20101
+ setMetadataFor(Companion_116, 'Companion', objectMeta);
20101
20102
  setMetadataFor(ConversationAPIImpl, 'ConversationAPIImpl', classMeta);
20102
20103
  setMetadataFor(CSErrorCodes, 'CSErrorCodes', objectMeta);
20103
20104
  setMetadataFor(InternalError, 'InternalError', classMeta, Exception);
@@ -20209,7 +20210,7 @@ function requireClientsdkClientcore () {
20209
20210
  setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
20210
20211
  setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
20211
20212
  setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
20212
- setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, AudioEventListener, RTCEventListener]);
20213
+ setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, RTCEventListener, AudioEventListener]);
20213
20214
  setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
20214
20215
  setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
20215
20216
  setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
@@ -43421,21 +43422,20 @@ function requireClientsdkClientcore () {
43421
43422
  Enum.call(this, name, ordinal);
43422
43423
  this.j2h_1 = sev;
43423
43424
  }
43424
- function Companion_116() {
43425
- Companion_instance_116 = this;
43425
+ function DefaultConfig() {
43426
+ DefaultConfig_instance = this;
43426
43427
  this.k2h_1 = '/v2/rtc';
43427
43428
  this.l2h_1 = false;
43428
- this.m2h_1 = ClientConfigRegion_US_getInstance();
43429
- this.n2h_1 = LoggingLevel_Info_getInstance();
43430
- this.o2h_1 = false;
43431
- this.p2h_1 = true;
43432
- this.q2h_1 = this.n2h_1;
43429
+ this.m2h_1 = false;
43430
+ this.n2h_1 = true;
43431
+ this.o2h_1 = ClientConfigRegion_US_getInstance();
43432
+ this.p2h_1 = LoggingLevel_Info_getInstance();
43433
43433
  }
43434
- var Companion_instance_116;
43435
- function Companion_getInstance_118() {
43436
- if (Companion_instance_116 == null)
43437
- new Companion_116();
43438
- return Companion_instance_116;
43434
+ var DefaultConfig_instance;
43435
+ function DefaultConfig_getInstance() {
43436
+ if (DefaultConfig_instance == null)
43437
+ new DefaultConfig();
43438
+ return DefaultConfig_instance;
43439
43439
  }
43440
43440
  var ClientConfigRegion_AP_instance;
43441
43441
  var ClientConfigRegion_EU_instance;
@@ -43451,8 +43451,18 @@ function requireClientsdkClientcore () {
43451
43451
  }
43452
43452
  function ClientConfigRegion(name, ordinal, apiUrl, websocketUrl) {
43453
43453
  Enum.call(this, name, ordinal);
43454
- this.t2h_1 = apiUrl;
43455
- this.u2h_1 = websocketUrl;
43454
+ this.s2h_1 = apiUrl;
43455
+ this.t2h_1 = websocketUrl;
43456
+ }
43457
+ function Companion_116() {
43458
+ Companion_instance_116 = this;
43459
+ this.u2h_1 = DefaultConfig_getInstance().p2h_1;
43460
+ }
43461
+ var Companion_instance_116;
43462
+ function Companion_getInstance_118() {
43463
+ if (Companion_instance_116 == null)
43464
+ new Companion_116();
43465
+ return Companion_instance_116;
43456
43466
  }
43457
43467
  function LoggingLevel_Verbose_getInstance() {
43458
43468
  LoggingLevel_initEntries();
@@ -51026,7 +51036,7 @@ function requireClientsdkClientcore () {
51026
51036
  return CallCompleteReason_Unknown_instance;
51027
51037
  }
51028
51038
  function ConsoleLogger(minLogLevel) {
51029
- minLogLevel = minLogLevel === VOID ? Companion_getInstance_118().n2h_1 : minLogLevel;
51039
+ minLogLevel = minLogLevel === VOID ? DefaultConfig_getInstance().p2h_1 : minLogLevel;
51030
51040
  BaseVonageLogger.call(this, 'VonageConsoleLogger', minLogLevel);
51031
51041
  this.b2z_1 = flatten(Companion_getInstance_130().i2z_1);
51032
51042
  }
@@ -51068,7 +51078,7 @@ function requireClientsdkClientcore () {
51068
51078
  return valueOf(_this__u8e3s4.j2h_1);
51069
51079
  }
51070
51080
  function LoggerAdapter(consoleLogLevel, customLoggers, disableInternalLogger) {
51071
- consoleLogLevel = consoleLogLevel === VOID ? Companion_getInstance_118().n2h_1 : consoleLogLevel;
51081
+ consoleLogLevel = consoleLogLevel === VOID ? DefaultConfig_getInstance().p2h_1 : consoleLogLevel;
51072
51082
  disableInternalLogger = disableInternalLogger === VOID ? false : disableInternalLogger;
51073
51083
  var tmp = this;
51074
51084
  // Inline function 'kotlin.takeUnless' call
@@ -51663,7 +51673,7 @@ function requireClientsdkClientcore () {
51663
51673
  this.g31_1 = $onLog;
51664
51674
  this.d31_1 = $name;
51665
51675
  var tmp = this;
51666
- tmp.e31_1 = $minLogLevel == null ? Companion_getInstance_118().n2h_1 : $minLogLevel;
51676
+ tmp.e31_1 = $minLogLevel == null ? DefaultConfig_getInstance().p2h_1 : $minLogLevel;
51667
51677
  var tmp_0 = this;
51668
51678
  tmp_0.f31_1 = $topics == null ? flatten(Companion_getInstance_130().i2z_1) : $topics;
51669
51679
  }
@@ -58270,7 +58280,8 @@ function requireClientsdkClientcore () {
58270
58280
  _.$_$.b2 = NetworkConnectivityStatus_Disconnected_getInstance;
58271
58281
  _.$_$.c2 = System_getInstance;
58272
58282
  _.$_$.d2 = Companion_getInstance_118;
58273
- _.$_$.e2 = Companion_getInstance_130;
58283
+ _.$_$.e2 = DefaultConfig_getInstance;
58284
+ _.$_$.f2 = Companion_getInstance_130;
58274
58285
  //endregion
58275
58286
  return _;
58276
58287
  }));
@@ -58305,7 +58316,7 @@ function requireClientsdkClientcore () {
58305
58316
  var setMetadataFor = kotlin_kotlin.$_$.n6;
58306
58317
  var VoiceClientListener = kotlin_com_vonage_rtc_clientcore.$_$.t;
58307
58318
  var Builder = kotlin_com_vonage_rtc_clientcore.$_$.a1;
58308
- var Companion_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.d2;
58319
+ var DefaultConfig_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.e2;
58309
58320
  var LoggerAdapter = kotlin_com_vonage_rtc_clientcore.$_$.u;
58310
58321
  var defineProp = kotlin_kotlin.$_$.h5;
58311
58322
  var collectionSizeOrDefault = kotlin_kotlin.$_$.b3;
@@ -58354,8 +58365,9 @@ function requireClientsdkClientcore () {
58354
58365
  var SessionErrorReason_TokenExpired_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.q1;
58355
58366
  var SessionErrorReason_TransportClosed_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.r1;
58356
58367
  var SessionErrorReason_PingTimeout_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.p1;
58368
+ var Companion_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.d2;
58357
58369
  var SetConfig = kotlin_com_vonage_rtc_clientcore.$_$.z;
58358
- var Companion_getInstance_0 = kotlin_com_vonage_rtc_clientcore.$_$.e2;
58370
+ var Companion_getInstance_0 = kotlin_com_vonage_rtc_clientcore.$_$.f2;
58359
58371
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
58360
58372
  var addAll = kotlin_kotlin.$_$.z2;
58361
58373
  var createVonageLogger = kotlin_com_vonage_rtc_clientcore.$_$.v;
@@ -58404,7 +58416,7 @@ function requireClientsdkClientcore () {
58404
58416
  var tmp_0 = getWebsocketUrl(config);
58405
58417
  var tmp_1 = getWebsocketPath(config);
58406
58418
  var tmp_2 = getApiUrl(config);
58407
- Companion_getInstance();
58419
+ DefaultConfig_getInstance();
58408
58420
  tmp.f1a(new SetConfig(tmp_0, tmp_1, tmp_2, false, 'js', 'Generic JS Navigator', '@vonage/client-sdk', getRtcStatsTelemetry(config)));
58409
58421
  }
58410
58422
  function createSession(token, sessionId) {
@@ -58755,7 +58767,7 @@ function requireClientsdkClientcore () {
58755
58767
  var tmp_0 = new Builder();
58756
58768
  var tmp0_safe_receiver = config.loggingLevel;
58757
58769
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getLoggingLevel(tmp0_safe_receiver);
58758
- var tmp_1 = tmp1_elvis_lhs == null ? Companion_getInstance().n2h_1 : tmp1_elvis_lhs;
58770
+ var tmp_1 = tmp1_elvis_lhs == null ? DefaultConfig_getInstance().p2h_1 : tmp1_elvis_lhs;
58759
58771
  var tmp_2 = map_7(config.customLoggers);
58760
58772
  var tmp2_elvis_lhs = config.disableInternalLogger;
58761
58773
  tmp.z39_1 = tmp_0.v18(new LoggerAdapter(tmp_1, tmp_2, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs)).w18(HttpClientJSAdapter(http)).x18(SocketClientJSAdapter(socket)).y18(MediaClientJSAdapter(this.y39_1));
@@ -61696,16 +61708,16 @@ function requireClientsdkClientcore () {
61696
61708
  function CoreClientConfigJS(region) {
61697
61709
  region = region === VOID ? get_DEFAULT_REGION() : region;
61698
61710
  this.region = region;
61699
- this.u3h_1 = this.region.coreRegion.t2h_1;
61700
- this.v3h_1 = this.region.coreRegion.u2h_1;
61711
+ this.u3h_1 = this.region.coreRegion.s2h_1;
61712
+ this.v3h_1 = this.region.coreRegion.t2h_1;
61701
61713
  var tmp = this;
61702
- Companion_getInstance();
61714
+ DefaultConfig_getInstance();
61703
61715
  tmp.w3h_1 = '/v2/rtc';
61704
61716
  var tmp_0 = this;
61705
- Companion_getInstance();
61717
+ DefaultConfig_getInstance();
61706
61718
  tmp_0.x3h_1 = false;
61707
61719
  var tmp_1 = this;
61708
- Companion_getInstance();
61720
+ DefaultConfig_getInstance();
61709
61721
  tmp_1.y3h_1 = true;
61710
61722
  }
61711
61723
  protoOf(CoreClientConfigJS).z3h = function () {
@@ -61961,7 +61973,7 @@ function requireClientsdkClientcore () {
61961
61973
  defineProp(protoOf(SessionErrorReasonJS), 'ordinal', protoOf(SessionErrorReasonJS).uc, VOID);
61962
61974
  function setDefaultLoggingLevel(level) {
61963
61975
  _init_properties_ICoreClientJS_kt__j7s52i();
61964
- Companion_getInstance().q2h_1 = getLoggingLevel(level);
61976
+ Companion_getInstance().u2h_1 = getLoggingLevel(level);
61965
61977
  }
61966
61978
  function ICoreClientJS$createSession$lambda$lambda($reject, $resolve) {
61967
61979
  return function (err, sessionId) {
@@ -62168,12 +62180,12 @@ function requireClientsdkClientcore () {
62168
62180
  if (tmp2_elvis_lhs == null) {
62169
62181
  var tmp0_safe_receiver = _this__u8e3s4.region;
62170
62182
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.coreRegion;
62171
- tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2h_1;
62183
+ tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2h_1;
62172
62184
  } else {
62173
62185
  tmp = tmp2_elvis_lhs;
62174
62186
  }
62175
62187
  var tmp3_elvis_lhs = tmp;
62176
- return tmp3_elvis_lhs == null ? Companion_getInstance().m2h_1.u2h_1 : tmp3_elvis_lhs;
62188
+ return tmp3_elvis_lhs == null ? DefaultConfig_getInstance().o2h_1.t2h_1 : tmp3_elvis_lhs;
62177
62189
  }
62178
62190
  function getApiUrl(_this__u8e3s4) {
62179
62191
  _init_properties_ICoreClientJS_kt__j7s52i();
@@ -62182,19 +62194,19 @@ function requireClientsdkClientcore () {
62182
62194
  if (tmp2_elvis_lhs == null) {
62183
62195
  var tmp0_safe_receiver = _this__u8e3s4.region;
62184
62196
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.coreRegion;
62185
- tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2h_1;
62197
+ tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2h_1;
62186
62198
  } else {
62187
62199
  tmp = tmp2_elvis_lhs;
62188
62200
  }
62189
62201
  var tmp3_elvis_lhs = tmp;
62190
- return tmp3_elvis_lhs == null ? Companion_getInstance().m2h_1.t2h_1 : tmp3_elvis_lhs;
62202
+ return tmp3_elvis_lhs == null ? DefaultConfig_getInstance().o2h_1.s2h_1 : tmp3_elvis_lhs;
62191
62203
  }
62192
62204
  function getWebsocketPath(_this__u8e3s4) {
62193
62205
  _init_properties_ICoreClientJS_kt__j7s52i();
62194
62206
  var tmp0_elvis_lhs = _this__u8e3s4.websocketPath;
62195
62207
  var tmp;
62196
62208
  if (tmp0_elvis_lhs == null) {
62197
- Companion_getInstance();
62209
+ DefaultConfig_getInstance();
62198
62210
  tmp = '/v2/rtc';
62199
62211
  } else {
62200
62212
  tmp = tmp0_elvis_lhs;
@@ -62206,7 +62218,7 @@ function requireClientsdkClientcore () {
62206
62218
  var tmp0_elvis_lhs = _this__u8e3s4.rtcStatsTelemetry;
62207
62219
  var tmp;
62208
62220
  if (tmp0_elvis_lhs == null) {
62209
- Companion_getInstance();
62221
+ DefaultConfig_getInstance();
62210
62222
  tmp = true;
62211
62223
  } else {
62212
62224
  tmp = tmp0_elvis_lhs;
@@ -62357,8 +62369,8 @@ function requireClientsdkClientcore () {
62357
62369
  function _init_properties_ICoreClientJS_kt__j7s52i() {
62358
62370
  if (!properties_initialized_ICoreClientJS_kt_ipn2no) {
62359
62371
  properties_initialized_ICoreClientJS_kt_ipn2no = true;
62360
- DEFAULT_REGION = valueOf_4(Companion_getInstance().m2h_1.g3_1);
62361
- DEFAULT_LOGGING_LEVEL = getLoggingLevelJS(Companion_getInstance().n2h_1);
62372
+ DEFAULT_REGION = valueOf_4(DefaultConfig_getInstance().o2h_1.g3_1);
62373
+ DEFAULT_LOGGING_LEVEL = getLoggingLevelJS(DefaultConfig_getInstance().p2h_1);
62362
62374
  }
62363
62375
  }
62364
62376
  var LegStatusJS_RINGING_instance;
@@ -64480,6 +64492,10 @@ class SocketClient {
64480
64492
  const Topics = clientsdkClientcore_jsExports.vonage.Topics;
64481
64493
  const Topic = clientsdkClientcore_jsExports.vonage.TopicJS;
64482
64494
  const LoggingLevel = clientsdkClientcore_jsExports.vonage.LoggingLevelJS;
64495
+ /**
64496
+ * @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
64497
+ * @param level - The logging level to set.
64498
+ */
64483
64499
  const setDefaultLoggingLevel = clientsdkClientcore_jsExports.vonage.setDefaultLoggingLevel;
64484
64500
  const convertLogger = (logger) => {
64485
64501
  var _a;
@@ -7,6 +7,10 @@ export declare const Topic: typeof vonage.TopicJS;
7
7
  export type LoggingLevelName = typeof vonage.LoggingLevelJS.prototype.name;
8
8
  export type LoggingLevel = vonage.LoggingLevelJS | LoggingLevelName;
9
9
  export declare const LoggingLevel: typeof vonage.LoggingLevelJS;
10
+ /**
11
+ * @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
12
+ * @param level - The logging level to set.
13
+ */
10
14
  export declare const setDefaultLoggingLevel: typeof vonage.setDefaultLoggingLevel;
11
15
  export type VonageLogger = VonageLoggerJS | ({
12
16
  minLogLevel?: LoggingLevel;