@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.
@@ -19629,6 +19629,13 @@ function requireClientsdkClientcore () {
19629
19629
  function onConversationEvent(event) {
19630
19630
  }
19631
19631
  setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
19632
+ function onRTCHangup(conversationId, legId, hangup) {
19633
+ }
19634
+ function onRTCTransfer(conversationId, legId) {
19635
+ }
19636
+ function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
19637
+ }
19638
+ setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
19632
19639
  function onAudioSay() {
19633
19640
  }
19634
19641
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -19638,18 +19645,12 @@ function requireClientsdkClientcore () {
19638
19645
  function onAudioDTMFUpdate(conversationId, legId, digits) {
19639
19646
  }
19640
19647
  setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
19641
- function onRTCHangup(conversationId, legId, hangup) {
19642
- }
19643
- function onRTCTransfer(conversationId, legId) {
19644
- }
19645
- function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
19646
- }
19647
- setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
19648
- setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, AudioEventListener, RTCEventListener]);
19648
+ setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, RTCEventListener, AudioEventListener]);
19649
19649
  setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
19650
19650
  setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
19651
- setMetadataFor(Companion_116, 'Companion', objectMeta);
19651
+ setMetadataFor(DefaultConfig, 'DefaultConfig', objectMeta);
19652
19652
  setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
19653
+ setMetadataFor(Companion_116, 'Companion', objectMeta);
19653
19654
  setMetadataFor(ConversationAPIImpl, 'ConversationAPIImpl', classMeta);
19654
19655
  setMetadataFor(CSErrorCodes, 'CSErrorCodes', objectMeta);
19655
19656
  setMetadataFor(InternalError, 'InternalError', classMeta, Exception);
@@ -19741,7 +19742,7 @@ function requireClientsdkClientcore () {
19741
19742
  setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
19742
19743
  setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
19743
19744
  setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
19744
- setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, AudioEventListener, RTCEventListener]);
19745
+ setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, RTCEventListener, AudioEventListener]);
19745
19746
  setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
19746
19747
  setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
19747
19748
  setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
@@ -42219,21 +42220,20 @@ function requireClientsdkClientcore () {
42219
42220
  Enum.call(this, name, ordinal);
42220
42221
  this.j2h_1 = sev;
42221
42222
  }
42222
- function Companion_116() {
42223
- Companion_instance_116 = this;
42223
+ function DefaultConfig() {
42224
+ DefaultConfig_instance = this;
42224
42225
  this.k2h_1 = '/v2/rtc';
42225
42226
  this.l2h_1 = false;
42226
- this.m2h_1 = ClientConfigRegion_US_getInstance();
42227
- this.n2h_1 = LoggingLevel_Info_getInstance();
42228
- this.o2h_1 = false;
42229
- this.p2h_1 = true;
42230
- this.q2h_1 = this.n2h_1;
42227
+ this.m2h_1 = false;
42228
+ this.n2h_1 = true;
42229
+ this.o2h_1 = ClientConfigRegion_US_getInstance();
42230
+ this.p2h_1 = LoggingLevel_Info_getInstance();
42231
42231
  }
42232
- var Companion_instance_116;
42233
- function Companion_getInstance_118() {
42234
- if (Companion_instance_116 == null)
42235
- new Companion_116();
42236
- return Companion_instance_116;
42232
+ var DefaultConfig_instance;
42233
+ function DefaultConfig_getInstance() {
42234
+ if (DefaultConfig_instance == null)
42235
+ new DefaultConfig();
42236
+ return DefaultConfig_instance;
42237
42237
  }
42238
42238
  var ClientConfigRegion_AP_instance;
42239
42239
  var ClientConfigRegion_EU_instance;
@@ -42249,8 +42249,18 @@ function requireClientsdkClientcore () {
42249
42249
  }
42250
42250
  function ClientConfigRegion(name, ordinal, apiUrl, websocketUrl) {
42251
42251
  Enum.call(this, name, ordinal);
42252
- this.t2h_1 = apiUrl;
42253
- this.u2h_1 = websocketUrl;
42252
+ this.s2h_1 = apiUrl;
42253
+ this.t2h_1 = websocketUrl;
42254
+ }
42255
+ function Companion_116() {
42256
+ Companion_instance_116 = this;
42257
+ this.u2h_1 = DefaultConfig_getInstance().p2h_1;
42258
+ }
42259
+ var Companion_instance_116;
42260
+ function Companion_getInstance_118() {
42261
+ if (Companion_instance_116 == null)
42262
+ new Companion_116();
42263
+ return Companion_instance_116;
42254
42264
  }
42255
42265
  function LoggingLevel_Verbose_getInstance() {
42256
42266
  LoggingLevel_initEntries();
@@ -49704,7 +49714,7 @@ function requireClientsdkClientcore () {
49704
49714
  return CallCompleteReason_Unknown_instance;
49705
49715
  }
49706
49716
  function ConsoleLogger(minLogLevel) {
49707
- minLogLevel = minLogLevel === VOID ? Companion_getInstance_118().n2h_1 : minLogLevel;
49717
+ minLogLevel = minLogLevel === VOID ? DefaultConfig_getInstance().p2h_1 : minLogLevel;
49708
49718
  BaseVonageLogger.call(this, 'VonageConsoleLogger', minLogLevel);
49709
49719
  this.b2z_1 = flatten(Companion_getInstance_130().i2z_1);
49710
49720
  }
@@ -49746,7 +49756,7 @@ function requireClientsdkClientcore () {
49746
49756
  return valueOf(_this__u8e3s4.j2h_1);
49747
49757
  }
49748
49758
  function LoggerAdapter(consoleLogLevel, customLoggers, disableInternalLogger) {
49749
- consoleLogLevel = consoleLogLevel === VOID ? Companion_getInstance_118().n2h_1 : consoleLogLevel;
49759
+ consoleLogLevel = consoleLogLevel === VOID ? DefaultConfig_getInstance().p2h_1 : consoleLogLevel;
49750
49760
  disableInternalLogger = disableInternalLogger === VOID ? false : disableInternalLogger;
49751
49761
  var tmp = this;
49752
49762
  // Inline function 'kotlin.takeUnless' call
@@ -50339,7 +50349,7 @@ function requireClientsdkClientcore () {
50339
50349
  this.g31_1 = $onLog;
50340
50350
  this.d31_1 = $name;
50341
50351
  var tmp = this;
50342
- tmp.e31_1 = $minLogLevel == null ? Companion_getInstance_118().n2h_1 : $minLogLevel;
50352
+ tmp.e31_1 = $minLogLevel == null ? DefaultConfig_getInstance().p2h_1 : $minLogLevel;
50343
50353
  var tmp_0 = this;
50344
50354
  tmp_0.f31_1 = $topics == null ? flatten(Companion_getInstance_130().i2z_1) : $topics;
50345
50355
  }
@@ -56897,7 +56907,8 @@ function requireClientsdkClientcore () {
56897
56907
  _.$_$.b2 = NetworkConnectivityStatus_Disconnected_getInstance;
56898
56908
  _.$_$.c2 = System_getInstance;
56899
56909
  _.$_$.d2 = Companion_getInstance_118;
56900
- _.$_$.e2 = Companion_getInstance_130;
56910
+ _.$_$.e2 = DefaultConfig_getInstance;
56911
+ _.$_$.f2 = Companion_getInstance_130;
56901
56912
  //endregion
56902
56913
  return _;
56903
56914
  }));
@@ -56919,7 +56930,7 @@ function requireClientsdkClientcore () {
56919
56930
  var setMetadataFor = kotlin_kotlin.$_$.n6;
56920
56931
  var VoiceClientListener = kotlin_com_vonage_rtc_clientcore.$_$.t;
56921
56932
  var Builder = kotlin_com_vonage_rtc_clientcore.$_$.a1;
56922
- var Companion_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.d2;
56933
+ var DefaultConfig_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.e2;
56923
56934
  var LoggerAdapter = kotlin_com_vonage_rtc_clientcore.$_$.u;
56924
56935
  var defineProp = kotlin_kotlin.$_$.h5;
56925
56936
  var collectionSizeOrDefault = kotlin_kotlin.$_$.b3;
@@ -56968,8 +56979,9 @@ function requireClientsdkClientcore () {
56968
56979
  var SessionErrorReason_TokenExpired_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.q1;
56969
56980
  var SessionErrorReason_TransportClosed_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.r1;
56970
56981
  var SessionErrorReason_PingTimeout_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.p1;
56982
+ var Companion_getInstance = kotlin_com_vonage_rtc_clientcore.$_$.d2;
56971
56983
  var SetConfig = kotlin_com_vonage_rtc_clientcore.$_$.z;
56972
- var Companion_getInstance_0 = kotlin_com_vonage_rtc_clientcore.$_$.e2;
56984
+ var Companion_getInstance_0 = kotlin_com_vonage_rtc_clientcore.$_$.f2;
56973
56985
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
56974
56986
  var addAll = kotlin_kotlin.$_$.z2;
56975
56987
  var createVonageLogger = kotlin_com_vonage_rtc_clientcore.$_$.v;
@@ -57018,7 +57030,7 @@ function requireClientsdkClientcore () {
57018
57030
  var tmp_0 = getWebsocketUrl(config);
57019
57031
  var tmp_1 = getWebsocketPath(config);
57020
57032
  var tmp_2 = getApiUrl(config);
57021
- Companion_getInstance();
57033
+ DefaultConfig_getInstance();
57022
57034
  tmp.f1a(new SetConfig(tmp_0, tmp_1, tmp_2, false, 'js', 'Generic JS Navigator', '@vonage/client-sdk', getRtcStatsTelemetry(config)));
57023
57035
  }
57024
57036
  function createSession(token, sessionId) {
@@ -57369,7 +57381,7 @@ function requireClientsdkClientcore () {
57369
57381
  var tmp_0 = new Builder();
57370
57382
  var tmp0_safe_receiver = config.loggingLevel;
57371
57383
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getLoggingLevel(tmp0_safe_receiver);
57372
- var tmp_1 = tmp1_elvis_lhs == null ? Companion_getInstance().n2h_1 : tmp1_elvis_lhs;
57384
+ var tmp_1 = tmp1_elvis_lhs == null ? DefaultConfig_getInstance().p2h_1 : tmp1_elvis_lhs;
57373
57385
  var tmp_2 = map_7(config.customLoggers);
57374
57386
  var tmp2_elvis_lhs = config.disableInternalLogger;
57375
57387
  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));
@@ -60270,16 +60282,16 @@ function requireClientsdkClientcore () {
60270
60282
  function CoreClientConfigJS(region) {
60271
60283
  region = region === VOID ? get_DEFAULT_REGION() : region;
60272
60284
  this.region = region;
60273
- this.u3h_1 = this.region.coreRegion.t2h_1;
60274
- this.v3h_1 = this.region.coreRegion.u2h_1;
60285
+ this.u3h_1 = this.region.coreRegion.s2h_1;
60286
+ this.v3h_1 = this.region.coreRegion.t2h_1;
60275
60287
  var tmp = this;
60276
- Companion_getInstance();
60288
+ DefaultConfig_getInstance();
60277
60289
  tmp.w3h_1 = '/v2/rtc';
60278
60290
  var tmp_0 = this;
60279
- Companion_getInstance();
60291
+ DefaultConfig_getInstance();
60280
60292
  tmp_0.x3h_1 = false;
60281
60293
  var tmp_1 = this;
60282
- Companion_getInstance();
60294
+ DefaultConfig_getInstance();
60283
60295
  tmp_1.y3h_1 = true;
60284
60296
  }
60285
60297
  protoOf(CoreClientConfigJS).z3h = function () {
@@ -60535,7 +60547,7 @@ function requireClientsdkClientcore () {
60535
60547
  defineProp(protoOf(SessionErrorReasonJS), 'ordinal', protoOf(SessionErrorReasonJS).uc, VOID);
60536
60548
  function setDefaultLoggingLevel(level) {
60537
60549
  _init_properties_ICoreClientJS_kt__j7s52i();
60538
- Companion_getInstance().q2h_1 = getLoggingLevel(level);
60550
+ Companion_getInstance().u2h_1 = getLoggingLevel(level);
60539
60551
  }
60540
60552
  function ICoreClientJS$createSession$lambda$lambda($reject, $resolve) {
60541
60553
  return function (err, sessionId) {
@@ -60738,12 +60750,12 @@ function requireClientsdkClientcore () {
60738
60750
  if (tmp2_elvis_lhs == null) {
60739
60751
  var tmp0_safe_receiver = _this__u8e3s4.region;
60740
60752
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.coreRegion;
60741
- tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2h_1;
60753
+ tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2h_1;
60742
60754
  } else {
60743
60755
  tmp = tmp2_elvis_lhs;
60744
60756
  }
60745
60757
  var tmp3_elvis_lhs = tmp;
60746
- return tmp3_elvis_lhs == null ? Companion_getInstance().m2h_1.u2h_1 : tmp3_elvis_lhs;
60758
+ return tmp3_elvis_lhs == null ? DefaultConfig_getInstance().o2h_1.t2h_1 : tmp3_elvis_lhs;
60747
60759
  }
60748
60760
  function getApiUrl(_this__u8e3s4) {
60749
60761
  _init_properties_ICoreClientJS_kt__j7s52i();
@@ -60752,19 +60764,19 @@ function requireClientsdkClientcore () {
60752
60764
  if (tmp2_elvis_lhs == null) {
60753
60765
  var tmp0_safe_receiver = _this__u8e3s4.region;
60754
60766
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.coreRegion;
60755
- tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2h_1;
60767
+ tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2h_1;
60756
60768
  } else {
60757
60769
  tmp = tmp2_elvis_lhs;
60758
60770
  }
60759
60771
  var tmp3_elvis_lhs = tmp;
60760
- return tmp3_elvis_lhs == null ? Companion_getInstance().m2h_1.t2h_1 : tmp3_elvis_lhs;
60772
+ return tmp3_elvis_lhs == null ? DefaultConfig_getInstance().o2h_1.s2h_1 : tmp3_elvis_lhs;
60761
60773
  }
60762
60774
  function getWebsocketPath(_this__u8e3s4) {
60763
60775
  _init_properties_ICoreClientJS_kt__j7s52i();
60764
60776
  var tmp0_elvis_lhs = _this__u8e3s4.websocketPath;
60765
60777
  var tmp;
60766
60778
  if (tmp0_elvis_lhs == null) {
60767
- Companion_getInstance();
60779
+ DefaultConfig_getInstance();
60768
60780
  tmp = '/v2/rtc';
60769
60781
  } else {
60770
60782
  tmp = tmp0_elvis_lhs;
@@ -60776,7 +60788,7 @@ function requireClientsdkClientcore () {
60776
60788
  var tmp0_elvis_lhs = _this__u8e3s4.rtcStatsTelemetry;
60777
60789
  var tmp;
60778
60790
  if (tmp0_elvis_lhs == null) {
60779
- Companion_getInstance();
60791
+ DefaultConfig_getInstance();
60780
60792
  tmp = true;
60781
60793
  } else {
60782
60794
  tmp = tmp0_elvis_lhs;
@@ -60927,8 +60939,8 @@ function requireClientsdkClientcore () {
60927
60939
  function _init_properties_ICoreClientJS_kt__j7s52i() {
60928
60940
  if (!properties_initialized_ICoreClientJS_kt_ipn2no) {
60929
60941
  properties_initialized_ICoreClientJS_kt_ipn2no = true;
60930
- DEFAULT_REGION = valueOf_4(Companion_getInstance().m2h_1.g3_1);
60931
- DEFAULT_LOGGING_LEVEL = getLoggingLevelJS(Companion_getInstance().n2h_1);
60942
+ DEFAULT_REGION = valueOf_4(DefaultConfig_getInstance().o2h_1.g3_1);
60943
+ DEFAULT_LOGGING_LEVEL = getLoggingLevelJS(DefaultConfig_getInstance().p2h_1);
60932
60944
  }
60933
60945
  }
60934
60946
  var LegStatusJS_RINGING_instance;
@@ -74189,6 +74201,10 @@ class SocketClient {
74189
74201
  const Topics = clientsdkClientcore_jsExports.vonage.Topics;
74190
74202
  clientsdkClientcore_jsExports.vonage.TopicJS;
74191
74203
  const LoggingLevel = clientsdkClientcore_jsExports.vonage.LoggingLevelJS;
74204
+ /**
74205
+ * @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
74206
+ * @param level - The logging level to set.
74207
+ */
74192
74208
  const setDefaultLoggingLevel = clientsdkClientcore_jsExports.vonage.setDefaultLoggingLevel;
74193
74209
  const convertLogger = (logger) => {
74194
74210
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/client-sdk",
3
- "version": "1.2.1-snapshot.40.0",
3
+ "version": "1.3.0-alpha.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "module": "dist/client/index.mjs",