@vonage/client-sdk 1.3.0-rc.1 → 1.3.0-rc.3

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.
Files changed (110) hide show
  1. package/api_docs/ts/assets/navigation.js +1 -1
  2. package/api_docs/ts/assets/search.js +1 -1
  3. package/api_docs/ts/classes/ClientConfig.html +2 -7
  4. package/api_docs/ts/classes/ClientInitConfig.html +1 -1
  5. package/api_docs/ts/classes/VonageClient.html +35 -35
  6. package/api_docs/ts/functions/none.html +2 -0
  7. package/api_docs/ts/functions/setDefaultLoggingLevel.html +2 -2
  8. package/api_docs/ts/functions/setVonageClientLoggingLevel.html +2 -2
  9. package/api_docs/ts/functions/some.html +3 -0
  10. package/api_docs/ts/index.html +4 -4
  11. package/api_docs/ts/interfaces/CallSayParams.html +8 -0
  12. package/api_docs/ts/interfaces/Channel.html +8 -0
  13. package/api_docs/ts/interfaces/ClientConfigObject.html +18 -0
  14. package/api_docs/ts/interfaces/ClientInitConfigObject.html +24 -0
  15. package/api_docs/ts/interfaces/Conversation.html +20 -0
  16. package/api_docs/ts/interfaces/ConversationProperties.html +8 -0
  17. package/api_docs/ts/interfaces/ConversationTimestamp.html +5 -0
  18. package/api_docs/ts/interfaces/ConversationsPage.html +8 -0
  19. package/api_docs/ts/interfaces/CreateConversationParameters.html +15 -0
  20. package/api_docs/ts/interfaces/CustomConversationEvent.html +8 -8
  21. package/api_docs/ts/interfaces/EmbeddedInfo.html +4 -4
  22. package/api_docs/ts/interfaces/EphemeralConversationEvent.html +6 -6
  23. package/api_docs/ts/interfaces/EventDeleteConversationEvent.html +7 -7
  24. package/api_docs/ts/interfaces/EventsPage.html +8 -0
  25. package/api_docs/ts/interfaces/GetConversationEventsParameters.html +14 -0
  26. package/api_docs/ts/interfaces/GetConversationMembersParameters.html +8 -0
  27. package/api_docs/ts/interfaces/GetConversationsParameters.html +12 -0
  28. package/api_docs/ts/interfaces/Leg.html +20 -0
  29. package/api_docs/ts/interfaces/LegChannel.html +8 -0
  30. package/api_docs/ts/interfaces/Location.html +3 -2
  31. package/api_docs/ts/interfaces/Member.html +12 -0
  32. package/api_docs/ts/interfaces/MemberChannel.html +8 -0
  33. package/api_docs/ts/interfaces/MemberEventBody.html +6 -0
  34. package/api_docs/ts/interfaces/MemberInvitedEvent.html +2 -2
  35. package/api_docs/ts/interfaces/MemberJoinedEvent.html +7 -7
  36. package/api_docs/ts/interfaces/MemberLeftEvent.html +7 -7
  37. package/api_docs/ts/interfaces/MemberTimestamp.html +5 -0
  38. package/api_docs/ts/interfaces/MembersPage.html +8 -0
  39. package/api_docs/ts/interfaces/MessageAudioEvent.html +10 -10
  40. package/api_docs/ts/interfaces/MessageAudioEventBody.html +6 -0
  41. package/api_docs/ts/interfaces/MessageCustomEvent.html +8 -8
  42. package/api_docs/ts/interfaces/MessageCustomEventBody.html +6 -0
  43. package/api_docs/ts/interfaces/MessageFileEvent.html +10 -10
  44. package/api_docs/ts/interfaces/MessageFileEventBody.html +7 -0
  45. package/api_docs/ts/interfaces/MessageImageEvent.html +10 -10
  46. package/api_docs/ts/interfaces/MessageImageEventBody.html +7 -0
  47. package/api_docs/ts/interfaces/MessageLocationEvent.html +10 -10
  48. package/api_docs/ts/interfaces/MessageLocationEventBody.html +7 -0
  49. package/api_docs/ts/interfaces/MessageTemplateEvent.html +10 -10
  50. package/api_docs/ts/interfaces/MessageTemplateEventBody.html +10 -0
  51. package/api_docs/ts/interfaces/MessageTextEvent.html +8 -8
  52. package/api_docs/ts/interfaces/MessageTextEventBody.html +7 -0
  53. package/api_docs/ts/interfaces/MessageVCardEvent.html +10 -10
  54. package/api_docs/ts/interfaces/MessageVCardEventBody.html +7 -0
  55. package/api_docs/ts/interfaces/MessageVideoEvent.html +10 -10
  56. package/api_docs/ts/interfaces/MessageVideoEventBody.html +7 -0
  57. package/api_docs/ts/interfaces/RTCQuality.html +11 -0
  58. package/api_docs/ts/interfaces/RtcStats.html +11 -0
  59. package/api_docs/ts/interfaces/System.html +3 -2
  60. package/api_docs/ts/interfaces/Template.html +3 -2
  61. package/api_docs/ts/interfaces/UpdateConversationParameters.html +12 -2
  62. package/api_docs/ts/interfaces/User.html +16 -0
  63. package/api_docs/ts/interfaces/UserChannels.html +14 -0
  64. package/api_docs/ts/interfaces/UserTimestamp.html +5 -0
  65. package/api_docs/ts/interfaces/VonageEvent.html +2 -0
  66. package/api_docs/ts/interfaces/VonageLogger.html +10 -0
  67. package/api_docs/ts/interfaces/Whatsapp.html +3 -2
  68. package/api_docs/ts/modules.html +64 -16
  69. package/api_docs/ts/types/ChannelType.html +2 -0
  70. package/api_docs/ts/types/ConfigRegion.html +3 -0
  71. package/api_docs/ts/types/ConversationEvent.html +2 -0
  72. package/api_docs/ts/types/ConversationState.html +2 -0
  73. package/api_docs/ts/types/CustomData.html +2 -2
  74. package/api_docs/ts/types/From.html +2 -0
  75. package/api_docs/ts/types/Json.html +2 -0
  76. package/api_docs/ts/types/JsonValue.html +2 -0
  77. package/api_docs/ts/types/LoggingLevel.html +4 -0
  78. package/api_docs/ts/types/MemberState.html +2 -0
  79. package/api_docs/ts/types/NonPersistentConversationEvent.html +2 -0
  80. package/api_docs/ts/types/Option.html +3 -0
  81. package/api_docs/ts/types/OrderBy.html +2 -0
  82. package/api_docs/ts/types/PersistentConversationEvent.html +2 -0
  83. package/api_docs/ts/types/PresentingOrder.html +2 -0
  84. package/api_docs/ts/types/Topics.html +2 -0
  85. package/api_docs/ts/variables/Topics-1.html +2 -0
  86. package/dist/client/VonageClient.d.ts +74 -7
  87. package/dist/client/index.cjs +1325 -1082
  88. package/dist/client/index.mjs +1325 -1082
  89. package/dist/kotlin/JsUnions.d.ts +127 -101
  90. package/dist/kotlin/clientsdk-clientcore_js.d.ts +19 -36
  91. package/dist/utils/ClientConfig.d.ts +45 -9
  92. package/dist/utils/ConversationEventBodies.d.ts +134 -0
  93. package/dist/utils/ConversationModels.d.ts +133 -18
  94. package/dist/utils/JsonUtils.d.ts +6 -0
  95. package/dist/utils/Option.d.ts +14 -0
  96. package/dist/utils/RequestParameterModels.d.ts +82 -0
  97. package/dist/utils/index.d.ts +1 -0
  98. package/dist/utils/logging.d.ts +26 -2
  99. package/dist/vonageClientSDK.js +1264 -1064
  100. package/dist/vonageClientSDK.min.js +1 -1
  101. package/dist/vonageClientSDK.min.mjs +1 -1
  102. package/dist/vonageClientSDK.mjs +1264 -1064
  103. package/package.json +4 -2
  104. package/typedoc.json +6 -3
  105. package/api_docs/ts/interfaces/ConversationEvent.html +0 -8
  106. package/api_docs/ts/interfaces/ConversationState.html +0 -198
  107. package/api_docs/ts/interfaces/From.html +0 -4
  108. package/api_docs/ts/interfaces/MemberState.html +0 -198
  109. package/api_docs/ts/interfaces/NonPersistentConversationEvent.html +0 -8
  110. package/api_docs/ts/interfaces/PersistentConversationEvent.html +0 -9
@@ -18968,7 +18968,6 @@ function requireClientsdkClientcore () {
18968
18968
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
18969
18969
  var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.m;
18970
18970
  var numberToLong = kotlin_kotlin.$_$.i6;
18971
- var Exception_init_$Create$ = kotlin_kotlin.$_$.z;
18972
18971
  var Map = kotlin_kotlin.$_$.v2;
18973
18972
  var MutableMap = kotlin_kotlin.$_$.x2;
18974
18973
  var getKClassFromExpression = kotlin_kotlin.$_$.d;
@@ -18988,6 +18987,7 @@ function requireClientsdkClientcore () {
18988
18987
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
18989
18988
  var listOf = kotlin_kotlin.$_$.f4;
18990
18989
  var listOf_0 = kotlin_kotlin.$_$.e4;
18990
+ var Exception_init_$Create$ = kotlin_kotlin.$_$.z;
18991
18991
  var replaceFirst = kotlin_kotlin.$_$.f7;
18992
18992
  var charSequenceLength = kotlin_kotlin.$_$.c5;
18993
18993
  var Exception_init_$Init$_1 = kotlin_kotlin.$_$.y;
@@ -19594,6 +19594,9 @@ function requireClientsdkClientcore () {
19594
19594
  function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
19595
19595
  }
19596
19596
  setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
19597
+ function onConversationEvent(event) {
19598
+ }
19599
+ setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
19597
19600
  function onAudioSay() {
19598
19601
  }
19599
19602
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -19603,10 +19606,7 @@ function requireClientsdkClientcore () {
19603
19606
  function onAudioDTMFUpdate(conversationId, legId, digits) {
19604
19607
  }
19605
19608
  setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
19606
- function onConversationEvent(event) {
19607
- }
19608
- setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
19609
- setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
19609
+ setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
19610
19610
  setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
19611
19611
  setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
19612
19612
  setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
@@ -19616,8 +19616,10 @@ function requireClientsdkClientcore () {
19616
19616
  setMetadataFor(CSErrorCodes, 'CSErrorCodes', objectMeta);
19617
19617
  setMetadataFor(InternalError, 'InternalError', classMeta, Exception);
19618
19618
  setMetadataFor(CustomLoggersLimitReached, 'CustomLoggersLimitReached', classMeta, InternalError);
19619
+ setMetadataFor(MediaTimeout, 'MediaTimeout', classMeta, InternalError);
19619
19620
  setMetadataFor(NoInviteFound, 'NoInviteFound', classMeta, InternalError);
19620
19621
  setMetadataFor(InvalidCallAction, 'InvalidCallAction', classMeta, InternalError);
19622
+ setMetadataFor(NoOfferFound, 'NoOfferFound', classMeta, InternalError);
19621
19623
  setMetadataFor(InboundCallFailed, 'InboundCallFailed', classMeta, InternalError);
19622
19624
  setMetadataFor(NoCallFound, 'NoCallFound', classMeta, InternalError);
19623
19625
  setMetadataFor(AuthorizationError_0, 'AuthorizationError', classMeta, InternalError);
@@ -19625,8 +19627,8 @@ function requireClientsdkClientcore () {
19625
19627
  setMetadataFor(NoConversationFound, 'NoConversationFound', classMeta, InternalError);
19626
19628
  setMetadataFor(NoLegFound, 'NoLegFound', classMeta, InternalError);
19627
19629
  setMetadataFor(IllegalArgumentException_0, 'IllegalArgumentException', classMeta, InternalError);
19628
- setMetadataFor(UnexpectedNullValue, 'UnexpectedNullValue', classMeta, InternalError);
19629
19630
  setMetadataFor(ServiceTempNotAvailable, 'ServiceTempNotAvailable', classMeta, InternalError);
19631
+ setMetadataFor(UnexpectedNullValue, 'UnexpectedNullValue', classMeta, InternalError);
19630
19632
  setMetadataFor(ServiceNotAvailable, 'ServiceNotAvailable', classMeta, InternalError);
19631
19633
  setMetadataFor(ParsingException, 'ParsingException', classMeta, InternalError);
19632
19634
  setMetadataFor(SessionErrorCodes, 'SessionErrorCodes', objectMeta);
@@ -19713,7 +19715,7 @@ function requireClientsdkClientcore () {
19713
19715
  setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
19714
19716
  setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
19715
19717
  setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
19716
- setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
19718
+ setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
19717
19719
  setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
19718
19720
  setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
19719
19721
  setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
@@ -42934,12 +42936,11 @@ function requireClientsdkClientcore () {
42934
42936
  function ChatAPIImpl$updateConversation$lambda($callback) {
42935
42937
  return function (response) {
42936
42938
  var tmp0_subject = response;
42937
- if (tmp0_subject instanceof Exception) {
42938
- $callback(toVonageError(response), null);
42939
+ if (tmp0_subject instanceof GetConversation) {
42940
+ $callback(null, Companion_getInstance_127().z2j(response));
42939
42941
  } else {
42940
- if (tmp0_subject instanceof GetConversation) {
42941
- $callback(null, Companion_getInstance_127().z2j(response));
42942
- }
42942
+ invokeCallbackWithError(response, $callback);
42943
+ Unit_getInstance();
42943
42944
  }
42944
42945
  return Unit_getInstance();
42945
42946
  };
@@ -43153,7 +43154,7 @@ function requireClientsdkClientcore () {
43153
43154
  // Inline function 'kotlin.run' call
43154
43155
  // Inline function 'kotlin.contracts.contract' call
43155
43156
  var message = 'At least one between text, imageUrl, videoUrl, audioUrl, fileUrl, vCardUrl or customBody must be provided.';
43156
- $callback(toVonageError(new IllegalArgumentException_0(message)), null);
43157
+ invokeCallbackWithError(new IllegalArgumentException_0(message), $callback);
43157
43158
  return Unit_getInstance();
43158
43159
  tmp_1 = tmp$ret$0;
43159
43160
  } else {
@@ -43163,7 +43164,7 @@ function requireClientsdkClientcore () {
43163
43164
  } catch ($p) {
43164
43165
  if ($p instanceof IllegalArgumentException) {
43165
43166
  var error = $p;
43166
- $callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
43167
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), $callback);
43167
43168
  return Unit_getInstance();
43168
43169
  } else {
43169
43170
  throw $p;
@@ -43203,7 +43204,7 @@ function requireClientsdkClientcore () {
43203
43204
  } catch ($p) {
43204
43205
  if ($p instanceof IllegalArgumentException) {
43205
43206
  var error = $p;
43206
- $callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
43207
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), $callback);
43207
43208
  return Unit_getInstance();
43208
43209
  } else {
43209
43210
  throw $p;
@@ -43243,7 +43244,7 @@ function requireClientsdkClientcore () {
43243
43244
  } catch ($p) {
43244
43245
  if ($p instanceof IllegalArgumentException) {
43245
43246
  var error = $p;
43246
- $callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
43247
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), $callback);
43247
43248
  return Unit_getInstance();
43248
43249
  } else {
43249
43250
  throw $p;
@@ -43308,7 +43309,7 @@ function requireClientsdkClientcore () {
43308
43309
  } catch ($p) {
43309
43310
  if ($p instanceof IllegalArgumentException) {
43310
43311
  var error = $p;
43311
- callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
43312
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), callback);
43312
43313
  return Unit_getInstance();
43313
43314
  } else {
43314
43315
  throw $p;
@@ -43326,7 +43327,7 @@ function requireClientsdkClientcore () {
43326
43327
  } catch ($p) {
43327
43328
  if ($p instanceof IllegalArgumentException) {
43328
43329
  var error = $p;
43329
- callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
43330
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), callback);
43330
43331
  return Unit_getInstance();
43331
43332
  } else {
43332
43333
  throw $p;
@@ -43439,20 +43440,6 @@ function requireClientsdkClientcore () {
43439
43440
  var tmp = new GetMyMemberRequest(cid);
43440
43441
  this.q2j_1.c1a(new Action_0(tmp, new ActionMeta(VOID, VOID, ChatAPIImpl$deleteEvent$lambda(this, id, cid, callback))));
43441
43442
  };
43442
- function invokeCallbackWithError(e, callback) {
43443
- if (e instanceof Exception)
43444
- callback(toVonageError(e), null);
43445
- else {
43446
- callback(toVonageError(new UnexpectedNullValue()), null);
43447
- }
43448
- }
43449
- function invokeCallbackWithError_0(e, callback) {
43450
- if (e instanceof Exception)
43451
- callback(toVonageError(e));
43452
- else {
43453
- callback(toVonageError(new UnexpectedNullValue()));
43454
- }
43455
- }
43456
43443
  var LoggingLevel_Verbose_instance;
43457
43444
  var LoggingLevel_Debug_instance;
43458
43445
  var LoggingLevel_Info_instance;
@@ -43577,7 +43564,8 @@ function requireClientsdkClientcore () {
43577
43564
  return function (response) {
43578
43565
  var tmp0_subject = response;
43579
43566
  if (tmp0_subject instanceof Exception) {
43580
- $callback(toVonageError(response), null);
43567
+ invokeCallbackWithError(response, $callback);
43568
+ Unit_getInstance();
43581
43569
  } else {
43582
43570
  if (tmp0_subject instanceof GetConversation) {
43583
43571
  var tmp1_safe_receiver = response.b1k_1;
@@ -43598,7 +43586,8 @@ function requireClientsdkClientcore () {
43598
43586
  return function (response) {
43599
43587
  var tmp0_subject = response;
43600
43588
  if (tmp0_subject instanceof Exception) {
43601
- $callback(toVonageError(response), null);
43589
+ invokeCallbackWithError(response, $callback);
43590
+ Unit_getInstance();
43602
43591
  } else {
43603
43592
  if (tmp0_subject instanceof GetUser) {
43604
43593
  var tmp1_safe_receiver = response.e1q_1;
@@ -43706,6 +43695,10 @@ function requireClientsdkClientcore () {
43706
43695
  InternalError.call(this, 'internal:error:custom_loggers_limit_exceeded', 'Exceeded Max number of Custom Client Loggers. Provided: ' + provided + ', Limit: ' + limit);
43707
43696
  captureStack(this, CustomLoggersLimitReached);
43708
43697
  }
43698
+ function MediaTimeout() {
43699
+ InternalError.call(this, 'voice:error:media_timeout', 'Media Timeout');
43700
+ captureStack(this, MediaTimeout);
43701
+ }
43709
43702
  function NoInviteFound() {
43710
43703
  InternalError.call(this, 'voice:error:no_invite_found', 'No invite found');
43711
43704
  captureStack(this, NoInviteFound);
@@ -43714,6 +43707,10 @@ function requireClientsdkClientcore () {
43714
43707
  InternalError.call(this, 'voice:error:invalid_call_action', 'Invalid call action');
43715
43708
  captureStack(this, InvalidCallAction);
43716
43709
  }
43710
+ function NoOfferFound() {
43711
+ InternalError.call(this, 'voice:error:no_offer_found', 'No offer found');
43712
+ captureStack(this, NoOfferFound);
43713
+ }
43717
43714
  function InboundCallFailed(cause) {
43718
43715
  cause = cause === VOID ? null : cause;
43719
43716
  InternalError.call(this, 'voice:error:inbound_call_failed', 'Inbound call failed', cause);
@@ -43746,10 +43743,6 @@ function requireClientsdkClientcore () {
43746
43743
  InternalError.call(this, 'internal:error:illegal_argument_exception', message == null ? 'Incorrect arguments provided to method' : message, cause);
43747
43744
  captureStack(this, IllegalArgumentException_0);
43748
43745
  }
43749
- function UnexpectedNullValue() {
43750
- InternalError.call(this, 'internal:error:unexpected_null_value', 'Unexpected Null Value');
43751
- captureStack(this, UnexpectedNullValue);
43752
- }
43753
43746
  function InternalError(code, message, cause) {
43754
43747
  message = message === VOID ? null : message;
43755
43748
  cause = cause === VOID ? null : cause;
@@ -43761,6 +43754,10 @@ function requireClientsdkClientcore () {
43761
43754
  InternalError.call(this, 'internal:error:serviceNotAvailable', 'ServiceTempNotAvailable');
43762
43755
  captureStack(this, ServiceTempNotAvailable);
43763
43756
  }
43757
+ function UnexpectedNullValue() {
43758
+ InternalError.call(this, 'internal:error:unexpected_null_value', 'Unexpected Null Value');
43759
+ captureStack(this, UnexpectedNullValue);
43760
+ }
43764
43761
  function ServiceNotAvailable(statusCode) {
43765
43762
  statusCode = statusCode === VOID ? 500 : statusCode;
43766
43763
  InternalError.call(this, 'internal:error:service_no_available', 'ServiceNotAvailable:' + statusCode);
@@ -43820,16 +43817,8 @@ function requireClientsdkClientcore () {
43820
43817
  new SessionErrorMessages();
43821
43818
  return SessionErrorMessages_instance;
43822
43819
  }
43823
- function VonageError_init_$Init$($this) {
43824
- VonageError.call($this, VonageErrorType_UNKNOWN_ERROR_getInstance());
43825
- return $this;
43826
- }
43827
- function VonageError_init_$Create$() {
43828
- var tmp = VonageError_init_$Init$(objectCreate(protoOf(VonageError)));
43829
- captureStack(tmp, VonageError_init_$Create$);
43830
- return tmp;
43831
- }
43832
43820
  function VonageError(type, code, message, cause) {
43821
+ type = type === VOID ? VonageErrorType_UNKNOWN_ERROR_getInstance() : type;
43833
43822
  code = code === VOID ? null : code;
43834
43823
  message = message === VOID ? null : message;
43835
43824
  cause = cause === VOID ? null : cause;
@@ -43838,9 +43827,6 @@ function requireClientsdkClientcore () {
43838
43827
  this.i2o_1 = type;
43839
43828
  this.j2o_1 = code;
43840
43829
  }
43841
- protoOf(VonageError).toString = function () {
43842
- return 'VonageError(type=' + this.i2o_1 + ', code=' + this.j2o_1 + ', message=' + this.message + ', cause=' + this.cause + ')';
43843
- };
43844
43830
  var VonageErrorType_CS_ERROR_instance;
43845
43831
  var VonageErrorType_SESSION_ERROR_instance;
43846
43832
  var VonageErrorType_INTERNAL_ERROR_instance;
@@ -43864,49 +43850,69 @@ function requireClientsdkClientcore () {
43864
43850
  }
43865
43851
  function toVonageError(_this__u8e3s4) {
43866
43852
  var tmp;
43867
- if (_this__u8e3s4 instanceof SessionError) {
43868
- var tmp_0 = VonageErrorType_SESSION_ERROR_getInstance();
43869
- var tmp_1 = _this__u8e3s4.j2d();
43870
- var tmp_2 = _this__u8e3s4.i5();
43871
- var tmp1_elvis_lhs = _this__u8e3s4.cause;
43872
- tmp = new VonageError(tmp_0, tmp_1, tmp_2, tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs);
43853
+ if (_this__u8e3s4 instanceof VonageError) {
43854
+ tmp = _this__u8e3s4;
43873
43855
  } else {
43874
- if (_this__u8e3s4 instanceof CSError) {
43875
- var tmp_3 = VonageErrorType_CS_ERROR_getInstance();
43876
- var tmp2_safe_receiver = _this__u8e3s4.x1i_1;
43877
- var tmp_4;
43878
- if (tmp2_safe_receiver == null) {
43879
- tmp_4 = null;
43880
- } else {
43881
- // Inline function 'kotlin.let' call
43882
- // Inline function 'kotlin.contracts.contract' call
43883
- // Inline function 'com.vonage.clientcore.core.api.errors.toVonageError.<anonymous>' call
43884
- tmp_4 = 'Invalid Parameters:' + tmp2_safe_receiver;
43885
- }
43886
- tmp = new VonageError(tmp_3, _this__u8e3s4.u1i_1, _this__u8e3s4.v1i_1 + ' - ' + tmp_4);
43856
+ if (_this__u8e3s4 instanceof SessionError) {
43857
+ var tmp_0 = VonageErrorType_SESSION_ERROR_getInstance();
43858
+ var tmp_1 = _this__u8e3s4.j2d();
43859
+ var tmp_2 = _this__u8e3s4.i5();
43860
+ var tmp1_elvis_lhs = _this__u8e3s4.cause;
43861
+ tmp = new VonageError(tmp_0, tmp_1, tmp_2, tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs);
43887
43862
  } else {
43888
- if (_this__u8e3s4 instanceof HTTPClientError) {
43889
- tmp = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), VOID, _this__u8e3s4.message, _this__u8e3s4);
43863
+ if (_this__u8e3s4 instanceof CSError) {
43864
+ var tmp_3 = VonageErrorType_CS_ERROR_getInstance();
43865
+ var tmp2_safe_receiver = _this__u8e3s4.x1i_1;
43866
+ var tmp_4;
43867
+ if (tmp2_safe_receiver == null) {
43868
+ tmp_4 = null;
43869
+ } else {
43870
+ // Inline function 'kotlin.let' call
43871
+ // Inline function 'kotlin.contracts.contract' call
43872
+ // Inline function 'com.vonage.clientcore.core.api.errors.toVonageError.<anonymous>' call
43873
+ tmp_4 = 'Invalid Parameters:' + tmp2_safe_receiver;
43874
+ }
43875
+ tmp = new VonageError(tmp_3, _this__u8e3s4.u1i_1, _this__u8e3s4.v1i_1 + ' - ' + tmp_4);
43890
43876
  } else {
43891
- if (_this__u8e3s4 instanceof InternalError) {
43892
- var tmp_5;
43893
- if (_this__u8e3s4 instanceof ServiceTempNotAvailable) {
43894
- tmp_5 = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4);
43877
+ if (_this__u8e3s4 instanceof HTTPClientError) {
43878
+ tmp = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), VOID, _this__u8e3s4.message, _this__u8e3s4);
43879
+ } else {
43880
+ if (_this__u8e3s4 instanceof InternalError) {
43881
+ var tmp_5;
43882
+ if (_this__u8e3s4 instanceof ServiceTempNotAvailable) {
43883
+ tmp_5 = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4);
43884
+ } else {
43885
+ tmp_5 = new VonageError(VonageErrorType_INTERNAL_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4.cause);
43886
+ }
43887
+ tmp = tmp_5;
43895
43888
  } else {
43896
- tmp_5 = new VonageError(VonageErrorType_INTERNAL_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4.cause);
43889
+ var tmp_6 = VonageErrorType_UNKNOWN_ERROR_getInstance();
43890
+ var tmp_7 = _this__u8e3s4.message;
43891
+ var tmp4_elvis_lhs = _this__u8e3s4.cause;
43892
+ tmp = new VonageError(tmp_6, null, tmp_7, tmp4_elvis_lhs == null ? _this__u8e3s4 : tmp4_elvis_lhs);
43897
43893
  }
43898
- tmp = tmp_5;
43899
- } else {
43900
- var tmp_6 = VonageErrorType_UNKNOWN_ERROR_getInstance();
43901
- var tmp_7 = _this__u8e3s4.message;
43902
- var tmp4_elvis_lhs = _this__u8e3s4.cause;
43903
- tmp = new VonageError(tmp_6, null, tmp_7, tmp4_elvis_lhs == null ? _this__u8e3s4 : tmp4_elvis_lhs);
43904
43894
  }
43905
43895
  }
43906
43896
  }
43907
43897
  }
43908
43898
  return tmp;
43909
43899
  }
43900
+ function invokeCallbackWithError(e, callback) {
43901
+ if (e instanceof Exception)
43902
+ callback(toVonageError(e), null);
43903
+ else {
43904
+ callback(toVonageError(new UnexpectedNullValue()), null);
43905
+ }
43906
+ }
43907
+ function invokeCallbackWithError_0(e, callback) {
43908
+ return invokeCallbackWithError(e, invokeCallbackWithError$lambda(callback));
43909
+ }
43910
+ function invokeCallbackWithError$lambda($callback) {
43911
+ return function (exception, _anonymous_parameter_1__qggqgd) {
43912
+ $callback(exception);
43913
+ return Unit_getInstance();
43914
+ };
43915
+ }
43910
43916
  function VonageErrorType_CS_ERROR_getInstance() {
43911
43917
  VonageErrorType_initEntries();
43912
43918
  return VonageErrorType_CS_ERROR_instance;
@@ -46979,7 +46985,8 @@ function requireClientsdkClientcore () {
46979
46985
  function SessionAPIImpl$createSession$lambda($callback, this$0, $token, $sessionId) {
46980
46986
  return function (e) {
46981
46987
  if (!(e == null)) {
46982
- $callback(new SessionNoActiveSessionError(), null);
46988
+ invokeCallbackWithError(new SessionNoActiveSessionError(), $callback);
46989
+ Unit_getInstance();
46983
46990
  } else {
46984
46991
  onCreateSession(this$0, $callback);
46985
46992
  this$0.z2v_1.c1a(Action_init_$Create$(new SocketConnect($token, $sessionId)));
@@ -46992,7 +46999,8 @@ function requireClientsdkClientcore () {
46992
46999
  return function (it) {
46993
47000
  var tmp0_subject = it;
46994
47001
  if (tmp0_subject instanceof Exception) {
46995
- $callback(it);
47002
+ invokeCallbackWithError_0(it, $callback);
47003
+ Unit_getInstance();
46996
47004
  } else {
46997
47005
  this$0.z2v_1.c1a(Action_init_$Create$(new SocketSetSession($sessionId, $token)));
46998
47006
  $callback(null);
@@ -47103,7 +47111,8 @@ function requireClientsdkClientcore () {
47103
47111
  if (state.g2w_1.r2e_1.equals(SocketConnectionStatus_Connected_getInstance())) {
47104
47112
  this$0.z2v_1.c1a(Action_init_$Create$(SocketDisconnect_getInstance()));
47105
47113
  }
47106
- $callback(s.p2w_1.q2_1, null);
47114
+ invokeCallbackWithError(s.p2w_1.q2_1, $callback);
47115
+ Unit_getInstance();
47107
47116
  } else {
47108
47117
  if (s instanceof Resolved) {
47109
47118
  var tmp1_safe_receiver = $cleanup._v;
@@ -47188,7 +47197,7 @@ function requireClientsdkClientcore () {
47188
47197
  var tmp0_elvis_lhs = this.z2v_1.t2o(getKClass(SessionReducer));
47189
47198
  var tmp;
47190
47199
  if (tmp0_elvis_lhs == null) {
47191
- return callback(new SessionFailedInternalError(), null);
47200
+ return invokeCallbackWithError(new SessionFailedInternalError(), callback);
47192
47201
  } else {
47193
47202
  tmp = tmp0_elvis_lhs;
47194
47203
  }
@@ -47206,13 +47215,13 @@ function requireClientsdkClientcore () {
47206
47215
  var tmp0_elvis_lhs = this.z2v_1.t2o(getKClass(SessionReducer));
47207
47216
  var tmp;
47208
47217
  if (tmp0_elvis_lhs == null) {
47209
- return callback(new SessionFailedInternalError());
47218
+ return invokeCallbackWithError_0(new SessionFailedInternalError(), callback);
47210
47219
  } else {
47211
47220
  tmp = tmp0_elvis_lhs;
47212
47221
  }
47213
47222
  var state = tmp;
47214
47223
  if (state.f2w_1.f1().n1z() == null)
47215
- return callback(new SessionNoActiveSessionError());
47224
+ return invokeCallbackWithError_0(new SessionNoActiveSessionError(), callback);
47216
47225
  onDeleteSession(this, callback);
47217
47226
  this.z2v_1.c1a(Action_init_$Create$(DeleteSession_getInstance()));
47218
47227
  this.z2v_1.c1a(Action_init_$Create$(SocketDisconnect_getInstance()));
@@ -47221,13 +47230,13 @@ function requireClientsdkClientcore () {
47221
47230
  var tmp0_elvis_lhs = this.z2v_1.t2o(getKClass(SessionReducer));
47222
47231
  var tmp;
47223
47232
  if (tmp0_elvis_lhs == null) {
47224
- return callback(new SessionFailedInternalError());
47233
+ return invokeCallbackWithError_0(new SessionFailedInternalError(), callback);
47225
47234
  } else {
47226
47235
  tmp = tmp0_elvis_lhs;
47227
47236
  }
47228
47237
  var state = tmp;
47229
47238
  if (state.f2w_1.f1().n1z() == null)
47230
- return callback(new SessionNoActiveSessionError());
47239
+ return invokeCallbackWithError_0(new SessionNoActiveSessionError(), callback);
47231
47240
  var sessionId = ensureNotNull(state.f2w_1.f1().n1z());
47232
47241
  var tmp_0 = new UpdateSessionRequest(sessionId, token);
47233
47242
  this.z2v_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, SessionAPIImpl$refreshSession$lambda(callback, this, sessionId, token))));
@@ -47371,7 +47380,7 @@ function requireClientsdkClientcore () {
47371
47380
  var tmp0_elvis_lhs = getCallStateByLeg($this, callId);
47372
47381
  var tmp;
47373
47382
  if (tmp0_elvis_lhs == null) {
47374
- return toVonageError(new NoCallFound());
47383
+ return new NoCallFound();
47375
47384
  } else {
47376
47385
  tmp = tmp0_elvis_lhs;
47377
47386
  }
@@ -47382,7 +47391,7 @@ function requireClientsdkClientcore () {
47382
47391
  action(callMemberShipState.n2x_1, callMemberShipState.o2x_1);
47383
47392
  tmp_0 = null;
47384
47393
  } else {
47385
- tmp_0 = toVonageError(new InvalidCallAction());
47394
+ tmp_0 = new InvalidCallAction();
47386
47395
  }
47387
47396
  return tmp_0;
47388
47397
  }
@@ -47572,7 +47581,7 @@ function requireClientsdkClientcore () {
47572
47581
  ;
47573
47582
  else
47574
47583
  tmp1_safe_receiver();
47575
- $callback(toVonageError(Exception_init_$Create$('Media Timeout')), null);
47584
+ invokeCallbackWithError(new MediaTimeout(), $callback);
47576
47585
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
47577
47586
  Unit_getInstance();
47578
47587
  } else {
@@ -47601,7 +47610,8 @@ function requireClientsdkClientcore () {
47601
47610
  var tmp0_subject = it;
47602
47611
  if (tmp0_subject instanceof Exception) {
47603
47612
  this$0.q2x_1.c1a(Action_init_$Create$(new CallKnockingRequestFailure($tmp0_safe_receiver.h2x_1, it)));
47604
- $callback(toVonageError(it), null);
47613
+ invokeCallbackWithError(it, $callback);
47614
+ Unit_getInstance();
47605
47615
  } else {
47606
47616
  var tmp_0 = getKClass(CallReducer);
47607
47617
  $cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$serverCall$lambda$lambda$lambda$lambda$lambda($tmp0_safe_receiver, $cancel, $callback, this$0, $legId));
@@ -47649,7 +47659,7 @@ function requireClientsdkClientcore () {
47649
47659
  ;
47650
47660
  else
47651
47661
  tmp4_safe_receiver();
47652
- $callback(toVonageError(Exception_init_$Create$('Media Timeout')), null);
47662
+ invokeCallbackWithError(new MediaTimeout(), $callback);
47653
47663
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
47654
47664
  Unit_getInstance();
47655
47665
  break;
@@ -47684,30 +47694,39 @@ function requireClientsdkClientcore () {
47684
47694
  cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$serverCall$lambda$lambda(this$0, legId, cancel, $callback));
47685
47695
  Unit_getInstance();
47686
47696
  } else {
47687
- if (tmp0_subject instanceof Exception) {
47688
- $callback(toVonageError(it), null);
47689
- } else {
47690
- $callback(VonageError_init_$Create$(), null);
47691
- }
47697
+ invokeCallbackWithError(it, $callback);
47698
+ Unit_getInstance();
47692
47699
  }
47693
47700
  return Unit_getInstance();
47694
47701
  };
47695
47702
  }
47696
47703
  function VoiceAPIImpl$reconnectCall$lambda$lambda(this$0, $callId, $once, $callback) {
47697
47704
  return function () {
47698
- var state = ensureNotNull(this$0.q2x_1.t2o(getKClass(CallReducer)));
47699
- var tmp0_safe_receiver = state.u2x_1.u1($callId);
47700
- var legState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j2x_1;
47701
- var call = state.u2x_1.u1($callId);
47702
- var tmp1_safe_receiver = legState;
47703
- var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1();
47705
+ var tmp0_elvis_lhs = this$0.q2x_1.t2o(getKClass(CallReducer));
47706
+ var tmp;
47707
+ if (tmp0_elvis_lhs == null) {
47708
+ return Unit_getInstance();
47709
+ } else {
47710
+ tmp = tmp0_elvis_lhs;
47711
+ }
47712
+ var state = tmp;
47713
+ var tmp1_elvis_lhs = state.u2x_1.u1($callId);
47714
+ var tmp_0;
47715
+ if (tmp1_elvis_lhs == null) {
47716
+ return Unit_getInstance();
47717
+ } else {
47718
+ tmp_0 = tmp1_elvis_lhs;
47719
+ }
47720
+ var call = tmp_0;
47721
+ var legState = call.j2x_1;
47722
+ var tmp2_subject = legState.f1();
47704
47723
  if (tmp2_subject instanceof Started) {
47705
47724
  var tmp3_safe_receiver = $once._v;
47706
47725
  if (tmp3_safe_receiver == null)
47707
47726
  ;
47708
47727
  else
47709
47728
  tmp3_safe_receiver();
47710
- if (ensureNotNull(call).e2x_1) {
47729
+ if (call.e2x_1) {
47711
47730
  $callback(null);
47712
47731
  }
47713
47732
  } else {
@@ -47725,7 +47744,8 @@ function requireClientsdkClientcore () {
47725
47744
  return function (it) {
47726
47745
  var tmp0_subject = it;
47727
47746
  if (tmp0_subject instanceof Exception) {
47728
- $callback(toVonageError(it));
47747
+ invokeCallbackWithError_0(it, $callback);
47748
+ Unit_getInstance();
47729
47749
  } else {
47730
47750
  $callback(null);
47731
47751
  }
@@ -47743,7 +47763,8 @@ function requireClientsdkClientcore () {
47743
47763
  switch (tmp0) {
47744
47764
  case -1:
47745
47765
  // Inline function 'kotlin.let' call
47746
- $callback(toVonageError(new NoInviteFound()));
47766
+ invokeCallbackWithError_0(new NoInviteFound(), $callback);
47767
+ Unit_getInstance();
47747
47768
  // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.answerCall.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
47748
47769
  var tmp0_safe_receiver_0 = $cancel._v;
47749
47770
  tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0();
@@ -47767,7 +47788,7 @@ function requireClientsdkClientcore () {
47767
47788
  tmp5_safe_receiver == null ? null : tmp5_safe_receiver();
47768
47789
  // Inline function 'kotlin.contracts.contract' call
47769
47790
  // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.answerCall.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
47770
- $callback(toVonageError(new InboundCallFailed()));
47791
+ invokeCallbackWithError_0(new InboundCallFailed(), $callback);
47771
47792
 
47772
47793
  Unit_getInstance();
47773
47794
  break;
@@ -47783,32 +47804,37 @@ function requireClientsdkClientcore () {
47783
47804
  return new StoredSubscription(VoiceAPIImpl$answerCall$lambda$lambda$lambda$lambda(this$0, $legIdOrErr, $callback, $cancel));
47784
47805
  };
47785
47806
  }
47786
- function VoiceAPIImpl$answerCall$lambda$lambda($callback, this$0) {
47807
+ function VoiceAPIImpl$answerCall$lambda$lambda(this$0, $callback) {
47787
47808
  return function (legIdOrErr) {
47788
47809
  var tmp0_subject = legIdOrErr;
47789
- if (tmp0_subject instanceof Exception) {
47790
- $callback(toVonageError(new InboundCallFailed(legIdOrErr)));
47810
+ if (!(tmp0_subject == null) ? typeof tmp0_subject === 'string' : false) {
47811
+ var cancel = {_v: null};
47812
+ var tmp_0 = getKClass(CallReducer);
47813
+ cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$answerCall$lambda$lambda$lambda(this$0, legIdOrErr, $callback, cancel));
47814
+ Unit_getInstance();
47791
47815
  } else {
47792
- if (!(tmp0_subject == null) ? typeof tmp0_subject === 'string' : false) {
47793
- var cancel = {_v: null};
47794
- var tmp_0 = getKClass(CallReducer);
47795
- cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$answerCall$lambda$lambda$lambda(this$0, legIdOrErr, $callback, cancel));
47796
- Unit_getInstance();
47797
- } else {
47798
- $callback(VonageError_init_$Create$());
47799
- }
47816
+ invokeCallbackWithError_0(new InboundCallFailed(legIdOrErr instanceof Exception ? legIdOrErr : null), $callback);
47817
+ Unit_getInstance();
47800
47818
  }
47801
47819
  return Unit_getInstance();
47802
47820
  };
47803
47821
  }
47804
- function VoiceAPIImpl$answerCall$lambda($callback, this$0, $callId, $invite) {
47822
+ function VoiceAPIImpl$answerCall$lambda($callback, $invite, this$0, $callId) {
47805
47823
  return function (it) {
47806
47824
  var tmp0_subject = it;
47807
47825
  if (tmp0_subject instanceof Exception) {
47808
- $callback(toVonageError(it));
47826
+ invokeCallbackWithError_0(it, $callback);
47827
+ Unit_getInstance();
47809
47828
  } else {
47810
- var tmp_0 = new SetupInboundCall($callId, $invite.c2y_1, $invite.b2y_1, $invite.z2x_1, ensureNotNull($invite.d2y_1), null);
47811
- this$0.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$answerCall$lambda$lambda($callback, this$0))));
47829
+ var tmp1_elvis_lhs = $invite.d2y_1;
47830
+ if (tmp1_elvis_lhs == null) {
47831
+ // Inline function 'kotlin.run' call
47832
+ // Inline function 'kotlin.contracts.contract' call
47833
+ invokeCallbackWithError_0(new NoOfferFound(), $callback);
47834
+ return Unit_getInstance();
47835
+ }
47836
+ var tmp_0 = new SetupInboundCall($callId, $invite.c2y_1, $invite.b2y_1, $invite.z2x_1, $invite.d2y_1, null);
47837
+ this$0.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$answerCall$lambda$lambda(this$0, $callback))));
47812
47838
  Unit_getInstance();
47813
47839
  }
47814
47840
  return Unit_getInstance();
@@ -47818,7 +47844,8 @@ function requireClientsdkClientcore () {
47818
47844
  return function (it) {
47819
47845
  var tmp0_subject = it;
47820
47846
  if (tmp0_subject instanceof Exception) {
47821
- $callback(toVonageError(it));
47847
+ invokeCallbackWithError_0(it, $callback);
47848
+ Unit_getInstance();
47822
47849
  } else {
47823
47850
  $callback(null);
47824
47851
  }
@@ -47829,7 +47856,8 @@ function requireClientsdkClientcore () {
47829
47856
  return function (it) {
47830
47857
  var tmp0_subject = it;
47831
47858
  if (tmp0_subject instanceof Exception) {
47832
- $callback(toVonageError(it));
47859
+ invokeCallbackWithError_0(it, $callback);
47860
+ Unit_getInstance();
47833
47861
  } else {
47834
47862
  $callback(null);
47835
47863
  }
@@ -47840,7 +47868,8 @@ function requireClientsdkClientcore () {
47840
47868
  return function (it) {
47841
47869
  var tmp0_subject = it;
47842
47870
  if (tmp0_subject instanceof Exception) {
47843
- $callback(toVonageError(it));
47871
+ invokeCallbackWithError_0(it, $callback);
47872
+ Unit_getInstance();
47844
47873
  } else {
47845
47874
  $callback(null);
47846
47875
  }
@@ -47859,7 +47888,8 @@ function requireClientsdkClientcore () {
47859
47888
  return function (it) {
47860
47889
  var tmp0_subject = it;
47861
47890
  if (tmp0_subject instanceof Exception) {
47862
- $callback(toVonageError(it));
47891
+ invokeCallbackWithError_0(it, $callback);
47892
+ Unit_getInstance();
47863
47893
  } else {
47864
47894
  $callback(null);
47865
47895
  }
@@ -47878,7 +47908,8 @@ function requireClientsdkClientcore () {
47878
47908
  return function (it) {
47879
47909
  var tmp0_subject = it;
47880
47910
  if (tmp0_subject instanceof Exception) {
47881
- $callback(toVonageError(it));
47911
+ invokeCallbackWithError_0(it, $callback);
47912
+ Unit_getInstance();
47882
47913
  } else {
47883
47914
  $callback(null);
47884
47915
  }
@@ -47897,7 +47928,8 @@ function requireClientsdkClientcore () {
47897
47928
  return function (it) {
47898
47929
  var tmp0_subject = it;
47899
47930
  if (tmp0_subject instanceof Exception) {
47900
- $callback(toVonageError(it));
47931
+ invokeCallbackWithError_0(it, $callback);
47932
+ Unit_getInstance();
47901
47933
  } else {
47902
47934
  $callback(null);
47903
47935
  }
@@ -47916,7 +47948,8 @@ function requireClientsdkClientcore () {
47916
47948
  return function (it) {
47917
47949
  var tmp0_subject = it;
47918
47950
  if (tmp0_subject instanceof Exception) {
47919
- $callback(toVonageError(it));
47951
+ invokeCallbackWithError_0(it, $callback);
47952
+ Unit_getInstance();
47920
47953
  } else {
47921
47954
  $callback(null);
47922
47955
  }
@@ -47935,7 +47968,8 @@ function requireClientsdkClientcore () {
47935
47968
  return function (it) {
47936
47969
  var tmp0_subject = it;
47937
47970
  if (tmp0_subject instanceof Exception) {
47938
- $callback(toVonageError(it));
47971
+ invokeCallbackWithError_0(it, $callback);
47972
+ Unit_getInstance();
47939
47973
  } else {
47940
47974
  $callback(null);
47941
47975
  }
@@ -48733,10 +48767,11 @@ function requireClientsdkClientcore () {
48733
48767
  this$0.q2x_1.c1a(Action_init_$Create$(new CallReconnect($legId, memberResponse.k1j_1, $legResponse.c1d_1)));
48734
48768
  Unit_getInstance();
48735
48769
  } else {
48736
- $callback(toVonageError(new MemberNotInConversation()));
48770
+ invokeCallbackWithError_0(new MemberNotInConversation(), $callback);
48771
+ Unit_getInstance();
48737
48772
  }
48738
48773
  } else {
48739
- $callback(toVonageError(new NoConversationFound()));
48774
+ invokeCallbackWithError_0(new NoConversationFound(), $callback);
48740
48775
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
48741
48776
  Unit_getInstance();
48742
48777
  }
@@ -48751,7 +48786,7 @@ function requireClientsdkClientcore () {
48751
48786
  this$0.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, legResponse.b1d_1, VoiceAPIImpl$getCallDetailsAndDispatchCallReconnect$lambda$lambda(this$0, $legId, legResponse, $callback))));
48752
48787
  Unit_getInstance();
48753
48788
  } else {
48754
- $callback(toVonageError(new NoLegFound()));
48789
+ invokeCallbackWithError_0(new NoLegFound(), $callback);
48755
48790
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
48756
48791
  Unit_getInstance();
48757
48792
  }
@@ -48779,71 +48814,44 @@ function requireClientsdkClientcore () {
48779
48814
  this.t2x_1 = listener;
48780
48815
  };
48781
48816
  protoOf(VoiceAPIImpl).z17 = function (legId, callback) {
48782
- var sessionState = ensureNotNull(this.q2x_1.t2o(getKClass(SessionReducer)));
48783
- var tmp;
48784
- if (sessionState.f2w_1.f1() instanceof Active) {
48785
- tmp = '';
48786
- } else {
48787
- // Inline function 'kotlin.let' call
48788
- callback(toVonageError(new SessionNoActiveSessionError()), null);
48789
- // Inline function 'kotlin.contracts.contract' call
48790
- // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.getLeg.<anonymous>' call
48791
- tmp = null;
48792
- }
48793
- if (tmp == null)
48817
+ if (getSessionUserOrError(this.q2x_1, callback) == null)
48794
48818
  return Unit_getInstance();
48795
- var tmp_0 = new GetLegRequest(legId);
48796
- this.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$getLeg$lambda(callback))));
48819
+ var tmp = new GetLegRequest(legId);
48820
+ this.q2x_1.c1a(new Action_0(tmp, new ActionMeta(VOID, VOID, VoiceAPIImpl$getLeg$lambda(callback))));
48797
48821
  };
48798
48822
  protoOf(VoiceAPIImpl).x17 = function (context, callback) {
48799
- var sessionState = ensureNotNull(this.q2x_1.t2o(getKClass(SessionReducer)));
48800
- var s = sessionState.f2w_1.f1();
48823
+ var tmp0_elvis_lhs = getSessionUserOrError(this.q2x_1, callback);
48801
48824
  var tmp;
48802
- if (s instanceof Active) {
48803
- tmp = s.v2d_1.p2k_1;
48804
- } else {
48805
- // Inline function 'kotlin.let' call
48806
- callback(toVonageError(new SessionNoActiveSessionError()), null);
48807
- // Inline function 'kotlin.contracts.contract' call
48808
- // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.serverCall.<anonymous>' call
48809
- tmp = null;
48810
- }
48811
- var tmp0_elvis_lhs = tmp;
48812
- var tmp_0;
48813
48825
  if (tmp0_elvis_lhs == null) {
48814
48826
  return Unit_getInstance();
48815
48827
  } else {
48816
- tmp_0 = tmp0_elvis_lhs;
48828
+ tmp = tmp0_elvis_lhs;
48817
48829
  }
48818
- var user = tmp_0;
48819
- var tmp_1 = new SetupOutboundCall(user, context);
48820
- this.q2x_1.c1a(new Action_0(tmp_1, new ActionMeta(VOID, VOID, VoiceAPIImpl$serverCall$lambda(this, callback))));
48830
+ var user = tmp;
48831
+ var tmp_0 = new SetupOutboundCall(user.p2k_1, context);
48832
+ this.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$serverCall$lambda(this, callback))));
48821
48833
  };
48822
48834
  protoOf(VoiceAPIImpl).y17 = function (callId, callback) {
48823
48835
  var once = {_v: null};
48824
48836
  var tmp = getKClass(CallReducer);
48825
48837
  once._v = this.q2x_1.a2p(tmp, VoiceAPIImpl$reconnectCall$lambda(this, callId, once, callback));
48826
- var sessionState = this.q2x_1.t2o(getKClass(SessionReducer));
48827
- var tmp1_safe_receiver = sessionState == null ? null : sessionState.f2w_1;
48828
- if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1())instanceof Active) {
48829
- var callState = ensureNotNull(this.q2x_1.t2o(getKClass(CallReducer)));
48830
- var call = callState.u2x_1.u1(callId);
48831
- var tmp4_safe_receiver = call == null ? null : call.i2x_1;
48832
- var tmp_0 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.f1();
48833
- var memberState = tmp_0 instanceof Joined ? tmp_0 : null;
48834
- if (call == null ? true : memberState == null) {
48835
- getCallDetailsAndDispatchCallReconnect(this, callId, callback);
48836
- } else {
48837
- this.q2x_1.c1a(Action_init_$Create$(new CallReconnect(callId, memberState.o2x_1, memberState.n2x_1)));
48838
- }
48838
+ if (getSessionUserOrError_0(this.q2x_1, callback) == null)
48839
+ return Unit_getInstance();
48840
+ var callState = ensureNotNull(this.q2x_1.t2o(getKClass(CallReducer)));
48841
+ var call = callState.u2x_1.u1(callId);
48842
+ var tmp2_safe_receiver = call == null ? null : call.i2x_1;
48843
+ var tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.f1();
48844
+ var memberState = tmp_0 instanceof Joined ? tmp_0 : null;
48845
+ if (call == null ? true : memberState == null) {
48846
+ getCallDetailsAndDispatchCallReconnect(this, callId, callback);
48839
48847
  } else {
48840
- callback(toVonageError(new SessionNoActiveSessionError()));
48848
+ this.q2x_1.c1a(Action_init_$Create$(new CallReconnect(callId, memberState.o2x_1, memberState.n2x_1)));
48841
48849
  }
48842
48850
  };
48843
48851
  protoOf(VoiceAPIImpl).a18 = function (callId, callback) {
48844
48852
  var invite = ensureNotNull(this.q2x_1.t2o(getKClass(InviteReducer))).s2y_1.u1(callId);
48845
48853
  if (invite == null) {
48846
- callback(toVonageError(new NoInviteFound()));
48854
+ invokeCallbackWithError_0(new NoInviteFound(), callback);
48847
48855
  return Unit_getInstance();
48848
48856
  }
48849
48857
  var tmp;
@@ -48862,7 +48870,7 @@ function requireClientsdkClientcore () {
48862
48870
  tmp = tmp_3 instanceof Left;
48863
48871
  }
48864
48872
  if (tmp) {
48865
- callback(toVonageError(new InvalidCallAction()));
48873
+ invokeCallbackWithError_0(new InvalidCallAction(), callback);
48866
48874
  return Unit_getInstance();
48867
48875
  }
48868
48876
  StaticConfig_getInstance();
@@ -48873,7 +48881,7 @@ function requireClientsdkClientcore () {
48873
48881
  protoOf(VoiceAPIImpl).b18 = function (callId, callback) {
48874
48882
  var invite = ensureNotNull(this.q2x_1.t2o(getKClass(InviteReducer))).s2y_1.u1(callId);
48875
48883
  if (invite == null) {
48876
- callback(toVonageError(new NoInviteFound()));
48884
+ invokeCallbackWithError_0(new NoInviteFound(), callback);
48877
48885
  return Unit_getInstance();
48878
48886
  }
48879
48887
  var tmp;
@@ -48892,16 +48900,16 @@ function requireClientsdkClientcore () {
48892
48900
  tmp = tmp_3 instanceof Left;
48893
48901
  }
48894
48902
  if (tmp) {
48895
- callback(toVonageError(new InvalidCallAction()));
48903
+ invokeCallbackWithError_0(new InvalidCallAction(), callback);
48896
48904
  return Unit_getInstance();
48897
48905
  }
48898
48906
  var tmp_4 = new MemberJoinRequest(invite.c2y_1, invite.b2y_1);
48899
- this.q2x_1.c1a(new Action_0(tmp_4, new ActionMeta(VOID, callId, VoiceAPIImpl$answerCall$lambda(callback, this, callId, invite))));
48907
+ this.q2x_1.c1a(new Action_0(tmp_4, new ActionMeta(VOID, callId, VoiceAPIImpl$answerCall$lambda(callback, invite, this, callId))));
48900
48908
  };
48901
48909
  protoOf(VoiceAPIImpl).c18 = function (callId, reasonText, reasonCode, callback) {
48902
48910
  var call = ensureNotNull(this.q2x_1.t2o(getKClass(CallReducer))).u2x_1.u1(callId);
48903
48911
  if (call == null) {
48904
- callback(toVonageError(new NoCallFound()));
48912
+ invokeCallbackWithError_0(new NoCallFound(), callback);
48905
48913
  return Unit_getInstance();
48906
48914
  }
48907
48915
  this.q2x_1.c1a(Action_init_$Create$(new MediaDisable(callId)));
@@ -48914,7 +48922,7 @@ function requireClientsdkClientcore () {
48914
48922
  var tmp_0 = new DeleteKnockerRequest(callMemberShipState.o2z_1);
48915
48923
  this.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, callId, VoiceAPIImpl$hangupCall$lambda_0(callback))));
48916
48924
  } else {
48917
- callback(toVonageError(new InvalidCallAction()));
48925
+ invokeCallbackWithError_0(new InvalidCallAction(), callback);
48918
48926
  }
48919
48927
  }
48920
48928
  };
@@ -48925,7 +48933,7 @@ function requireClientsdkClientcore () {
48925
48933
  else {
48926
48934
  // Inline function 'kotlin.let' call
48927
48935
  // Inline function 'kotlin.contracts.contract' call
48928
- callback(tmp0_safe_receiver);
48936
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
48929
48937
  }
48930
48938
  };
48931
48939
  protoOf(VoiceAPIImpl).e18 = function (callId, callback) {
@@ -48935,7 +48943,7 @@ function requireClientsdkClientcore () {
48935
48943
  else {
48936
48944
  // Inline function 'kotlin.let' call
48937
48945
  // Inline function 'kotlin.contracts.contract' call
48938
- callback(tmp0_safe_receiver);
48946
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
48939
48947
  }
48940
48948
  };
48941
48949
  protoOf(VoiceAPIImpl).f18 = function (callId, callback) {
@@ -48945,7 +48953,7 @@ function requireClientsdkClientcore () {
48945
48953
  else {
48946
48954
  // Inline function 'kotlin.let' call
48947
48955
  // Inline function 'kotlin.contracts.contract' call
48948
- callback(tmp0_safe_receiver);
48956
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
48949
48957
  }
48950
48958
  };
48951
48959
  protoOf(VoiceAPIImpl).g18 = function (callId, callback) {
@@ -48955,7 +48963,7 @@ function requireClientsdkClientcore () {
48955
48963
  else {
48956
48964
  // Inline function 'kotlin.let' call
48957
48965
  // Inline function 'kotlin.contracts.contract' call
48958
- callback(tmp0_safe_receiver);
48966
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
48959
48967
  }
48960
48968
  };
48961
48969
  protoOf(VoiceAPIImpl).h18 = function (callId, digits, callback) {
@@ -48965,7 +48973,7 @@ function requireClientsdkClientcore () {
48965
48973
  else {
48966
48974
  // Inline function 'kotlin.let' call
48967
48975
  // Inline function 'kotlin.contracts.contract' call
48968
- callback(tmp0_safe_receiver);
48976
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
48969
48977
  }
48970
48978
  };
48971
48979
  protoOf(VoiceAPIImpl).i18 = function (callId, text, level, loop, queue, voiceName, ssml, callback) {
@@ -48975,7 +48983,7 @@ function requireClientsdkClientcore () {
48975
48983
  else {
48976
48984
  // Inline function 'kotlin.let' call
48977
48985
  // Inline function 'kotlin.contracts.contract' call
48978
- callback(tmp0_safe_receiver);
48986
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
48979
48987
  }
48980
48988
  };
48981
48989
  function SetupOutboundCall(user, context) {
@@ -58379,7 +58387,7 @@ function requireClientsdkClientcore () {
58379
58387
  tmp = s.v2d_1;
58380
58388
  } else {
58381
58389
  // Inline function 'kotlin.let' call
58382
- callback(toVonageError(new SessionNoActiveSessionError()), null);
58390
+ invokeCallbackWithError(new SessionNoActiveSessionError(), callback);
58383
58391
  // Inline function 'kotlin.contracts.contract' call
58384
58392
  // Inline function 'com.vonage.clientcore.utils.getSessionUserOrError.<anonymous>' call
58385
58393
  tmp = null;
@@ -59126,24 +59134,24 @@ function requireClientsdkClientcore () {
59126
59134
  setMetadataFor(EventDeleteConversationEventJS, 'EventDeleteConversationEventJS', classMeta, VOID, [PersistentConversationEventJS, JSONBodyEventJS]);
59127
59135
  setMetadataFor(MessageEventJS, 'MessageEventJS', interfaceMeta);
59128
59136
  setMetadataFor(MessageEventBodyJS, 'MessageEventBodyJS', interfaceMeta);
59129
- setMetadataFor(Body, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59137
+ setMetadataFor(MessageTextEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59130
59138
  setMetadataFor(MessageTextEventJS, 'MessageTextEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59131
- setMetadataFor(Body_0, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59139
+ setMetadataFor(MessageCustomEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59132
59140
  setMetadataFor(MessageCustomEventJS, 'MessageCustomEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59133
- setMetadataFor(Body_1, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59141
+ setMetadataFor(MessageAudioEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59134
59142
  setMetadataFor(MessageAudioEventJS, 'MessageAudioEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59135
- setMetadataFor(Body_2, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59143
+ setMetadataFor(MessageVideoEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59136
59144
  setMetadataFor(MessageVideoEventJS, 'MessageVideoEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59137
- setMetadataFor(Body_3, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59145
+ setMetadataFor(MessageImageEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59138
59146
  setMetadataFor(MessageImageEventJS, 'MessageImageEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59139
- setMetadataFor(Body_4, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59147
+ setMetadataFor(MessageFileEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59140
59148
  setMetadataFor(MessageFileEventJS, 'MessageFileEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59141
- setMetadataFor(Body_5, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59149
+ setMetadataFor(MessageVCardEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59142
59150
  setMetadataFor(MessageVCardEventJS, 'MessageVCardEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59143
- setMetadataFor(Body_6, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59151
+ setMetadataFor(MessageLocationEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59144
59152
  setMetadataFor(Location_0, 'Location', classMeta);
59145
59153
  setMetadataFor(MessageLocationEventJS, 'MessageLocationEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59146
- setMetadataFor(Body_7, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59154
+ setMetadataFor(MessageTemplateEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59147
59155
  setMetadataFor(TemplateObject_0, 'TemplateObject', classMeta);
59148
59156
  setMetadataFor(WhatsappObject_0, 'WhatsappObject', classMeta);
59149
59157
  setMetadataFor(MessageTemplateEventJS, 'MessageTemplateEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
@@ -59457,268 +59465,163 @@ function requireClientsdkClientcore () {
59457
59465
  return this.user;
59458
59466
  };
59459
59467
  function MemberInvitedEventJS(event) {
59460
- this.c3f_1 = 'member:invited';
59461
- this.d3f_1 = event.w2q_1;
59462
- this.e3f_1 = event.x2q_1;
59463
- this.f3f_1 = event.y2q_1;
59464
- this.g3f_1 = map(event.z2q_1);
59465
- this.h3f_1 = new MemberEventBodyJS(event.a2r_1);
59468
+ this.kind = 'member:invited';
59469
+ this.id = event.w2q_1;
59470
+ this.timestamp = event.x2q_1;
59471
+ this.conversationId = event.y2q_1;
59472
+ this.from = map(event.z2q_1);
59473
+ this.body = new MemberEventBodyJS(event.a2r_1);
59466
59474
  }
59467
59475
  protoOf(MemberInvitedEventJS).lf = function () {
59468
- return this.c3f_1;
59476
+ return this.kind;
59469
59477
  };
59470
59478
  protoOf(MemberInvitedEventJS).n1z = function () {
59471
- return this.d3f_1;
59479
+ return this.id;
59472
59480
  };
59473
59481
  protoOf(MemberInvitedEventJS).g2b = function () {
59474
- return this.e3f_1;
59482
+ return this.timestamp;
59475
59483
  };
59476
59484
  protoOf(MemberInvitedEventJS).z3e = function () {
59477
- return this.f3f_1;
59485
+ return this.conversationId;
59478
59486
  };
59479
59487
  protoOf(MemberInvitedEventJS).a3f = function () {
59480
- return this.g3f_1;
59488
+ return this.from;
59481
59489
  };
59482
59490
  protoOf(MemberInvitedEventJS).b3f = function () {
59483
- return this.h3f_1;
59491
+ return this.body;
59484
59492
  };
59485
- defineProp(protoOf(MemberInvitedEventJS), 'kind', function () {
59486
- return this.lf();
59487
- }, VOID);
59488
- defineProp(protoOf(MemberInvitedEventJS), 'id', function () {
59489
- return this.n1z();
59490
- }, VOID);
59491
- defineProp(protoOf(MemberInvitedEventJS), 'timestamp', function () {
59492
- return this.g2b();
59493
- }, VOID);
59494
- defineProp(protoOf(MemberInvitedEventJS), 'conversationId', function () {
59495
- return this.z3e();
59496
- }, VOID);
59497
- defineProp(protoOf(MemberInvitedEventJS), 'from', function () {
59498
- return this.a3f();
59499
- }, VOID);
59500
- defineProp(protoOf(MemberInvitedEventJS), 'body', function () {
59501
- return this.b3f();
59502
- }, VOID);
59503
59493
  function MemberJoinedEventJS(event) {
59504
- this.i3f_1 = 'member:joined';
59505
- this.j3f_1 = event.b2r_1;
59506
- this.k3f_1 = event.c2r_1;
59507
- this.l3f_1 = event.d2r_1;
59508
- this.m3f_1 = map(event.e2r_1);
59509
- this.n3f_1 = new MemberEventBodyJS(event.f2r_1);
59494
+ this.kind = 'member:joined';
59495
+ this.id = event.b2r_1;
59496
+ this.timestamp = event.c2r_1;
59497
+ this.conversationId = event.d2r_1;
59498
+ this.from = map(event.e2r_1);
59499
+ this.body = new MemberEventBodyJS(event.f2r_1);
59510
59500
  }
59511
59501
  protoOf(MemberJoinedEventJS).lf = function () {
59512
- return this.i3f_1;
59502
+ return this.kind;
59513
59503
  };
59514
59504
  protoOf(MemberJoinedEventJS).n1z = function () {
59515
- return this.j3f_1;
59505
+ return this.id;
59516
59506
  };
59517
59507
  protoOf(MemberJoinedEventJS).g2b = function () {
59518
- return this.k3f_1;
59508
+ return this.timestamp;
59519
59509
  };
59520
59510
  protoOf(MemberJoinedEventJS).z3e = function () {
59521
- return this.l3f_1;
59511
+ return this.conversationId;
59522
59512
  };
59523
59513
  protoOf(MemberJoinedEventJS).a3f = function () {
59524
- return this.m3f_1;
59514
+ return this.from;
59525
59515
  };
59526
59516
  protoOf(MemberJoinedEventJS).b3f = function () {
59527
- return this.n3f_1;
59517
+ return this.body;
59528
59518
  };
59529
- defineProp(protoOf(MemberJoinedEventJS), 'kind', function () {
59530
- return this.lf();
59531
- }, VOID);
59532
- defineProp(protoOf(MemberJoinedEventJS), 'id', function () {
59533
- return this.n1z();
59534
- }, VOID);
59535
- defineProp(protoOf(MemberJoinedEventJS), 'timestamp', function () {
59536
- return this.g2b();
59537
- }, VOID);
59538
- defineProp(protoOf(MemberJoinedEventJS), 'conversationId', function () {
59539
- return this.z3e();
59540
- }, VOID);
59541
- defineProp(protoOf(MemberJoinedEventJS), 'from', function () {
59542
- return this.a3f();
59543
- }, VOID);
59544
- defineProp(protoOf(MemberJoinedEventJS), 'body', function () {
59545
- return this.b3f();
59546
- }, VOID);
59547
59519
  function MemberLeftEventJS(event) {
59548
- this.o3f_1 = 'member:left';
59549
- this.p3f_1 = event.g2r_1;
59550
- this.q3f_1 = event.h2r_1;
59551
- this.r3f_1 = event.i2r_1;
59552
- this.s3f_1 = map(event.j2r_1);
59553
- this.t3f_1 = new MemberEventBodyJS(event.k2r_1);
59520
+ this.kind = 'member:left';
59521
+ this.id = event.g2r_1;
59522
+ this.timestamp = event.h2r_1;
59523
+ this.conversationId = event.i2r_1;
59524
+ this.from = map(event.j2r_1);
59525
+ this.body = new MemberEventBodyJS(event.k2r_1);
59554
59526
  }
59555
59527
  protoOf(MemberLeftEventJS).lf = function () {
59556
- return this.o3f_1;
59528
+ return this.kind;
59557
59529
  };
59558
59530
  protoOf(MemberLeftEventJS).n1z = function () {
59559
- return this.p3f_1;
59531
+ return this.id;
59560
59532
  };
59561
59533
  protoOf(MemberLeftEventJS).g2b = function () {
59562
- return this.q3f_1;
59534
+ return this.timestamp;
59563
59535
  };
59564
59536
  protoOf(MemberLeftEventJS).z3e = function () {
59565
- return this.r3f_1;
59537
+ return this.conversationId;
59566
59538
  };
59567
59539
  protoOf(MemberLeftEventJS).a3f = function () {
59568
- return this.s3f_1;
59540
+ return this.from;
59569
59541
  };
59570
59542
  protoOf(MemberLeftEventJS).b3f = function () {
59571
- return this.t3f_1;
59543
+ return this.body;
59572
59544
  };
59573
- defineProp(protoOf(MemberLeftEventJS), 'kind', function () {
59574
- return this.lf();
59575
- }, VOID);
59576
- defineProp(protoOf(MemberLeftEventJS), 'id', function () {
59577
- return this.n1z();
59578
- }, VOID);
59579
- defineProp(protoOf(MemberLeftEventJS), 'timestamp', function () {
59580
- return this.g2b();
59581
- }, VOID);
59582
- defineProp(protoOf(MemberLeftEventJS), 'conversationId', function () {
59583
- return this.z3e();
59584
- }, VOID);
59585
- defineProp(protoOf(MemberLeftEventJS), 'from', function () {
59586
- return this.a3f();
59587
- }, VOID);
59588
- defineProp(protoOf(MemberLeftEventJS), 'body', function () {
59589
- return this.b3f();
59590
- }, VOID);
59591
59545
  function JSONBodyEventJS() {
59592
59546
  }
59593
59547
  function CustomConversationEventJS(event) {
59594
- this.u3f_1 = 'custom';
59595
- this.v3f_1 = event.l2r_1;
59596
- this.w3f_1 = event.m2r_1;
59597
- this.x3f_1 = event.n2r_1;
59598
- this.y3f_1 = map(event.o2r_1);
59548
+ this.kind = 'custom';
59549
+ this.id = event.l2r_1;
59550
+ this.timestamp = event.m2r_1;
59551
+ this.conversationId = event.n2r_1;
59552
+ this.from = map(event.o2r_1);
59599
59553
  this.eventType = event.q2r_1;
59600
- this.z3f_1 = event.p2r_1;
59554
+ this.body = event.p2r_1;
59601
59555
  }
59602
59556
  protoOf(CustomConversationEventJS).lf = function () {
59603
- return this.u3f_1;
59557
+ return this.kind;
59604
59558
  };
59605
59559
  protoOf(CustomConversationEventJS).n1z = function () {
59606
- return this.v3f_1;
59560
+ return this.id;
59607
59561
  };
59608
59562
  protoOf(CustomConversationEventJS).g2b = function () {
59609
- return this.w3f_1;
59563
+ return this.timestamp;
59610
59564
  };
59611
59565
  protoOf(CustomConversationEventJS).z3e = function () {
59612
- return this.x3f_1;
59566
+ return this.conversationId;
59613
59567
  };
59614
59568
  protoOf(CustomConversationEventJS).a3f = function () {
59615
- return this.y3f_1;
59569
+ return this.from;
59616
59570
  };
59617
- protoOf(CustomConversationEventJS).a3g = function () {
59571
+ protoOf(CustomConversationEventJS).c3f = function () {
59618
59572
  return this.eventType;
59619
59573
  };
59620
59574
  protoOf(CustomConversationEventJS).b3f = function () {
59621
- return this.z3f_1;
59575
+ return this.body;
59622
59576
  };
59623
- defineProp(protoOf(CustomConversationEventJS), 'kind', function () {
59624
- return this.lf();
59625
- }, VOID);
59626
- defineProp(protoOf(CustomConversationEventJS), 'id', function () {
59627
- return this.n1z();
59628
- }, VOID);
59629
- defineProp(protoOf(CustomConversationEventJS), 'timestamp', function () {
59630
- return this.g2b();
59631
- }, VOID);
59632
- defineProp(protoOf(CustomConversationEventJS), 'conversationId', function () {
59633
- return this.z3e();
59634
- }, VOID);
59635
- defineProp(protoOf(CustomConversationEventJS), 'from', function () {
59636
- return this.a3f();
59637
- }, VOID);
59638
- defineProp(protoOf(CustomConversationEventJS), 'body', function () {
59639
- return this.b3f();
59640
- }, VOID);
59641
59577
  function EphemeralConversationEventJS(event) {
59642
- this.b3g_1 = 'ephemeral';
59643
- this.c3g_1 = event.r2r_1;
59644
- this.d3g_1 = event.s2r_1;
59645
- this.e3g_1 = map(event.t2r_1);
59646
- this.f3g_1 = event.u2r_1;
59578
+ this.kind = 'ephemeral';
59579
+ this.timestamp = event.r2r_1;
59580
+ this.conversationId = event.s2r_1;
59581
+ this.from = map(event.t2r_1);
59582
+ this.body = event.u2r_1;
59647
59583
  }
59648
59584
  protoOf(EphemeralConversationEventJS).lf = function () {
59649
- return this.b3g_1;
59585
+ return this.kind;
59650
59586
  };
59651
59587
  protoOf(EphemeralConversationEventJS).g2b = function () {
59652
- return this.c3g_1;
59588
+ return this.timestamp;
59653
59589
  };
59654
59590
  protoOf(EphemeralConversationEventJS).z3e = function () {
59655
- return this.d3g_1;
59591
+ return this.conversationId;
59656
59592
  };
59657
59593
  protoOf(EphemeralConversationEventJS).a3f = function () {
59658
- return this.e3g_1;
59594
+ return this.from;
59659
59595
  };
59660
59596
  protoOf(EphemeralConversationEventJS).b3f = function () {
59661
- return this.f3g_1;
59597
+ return this.body;
59662
59598
  };
59663
- defineProp(protoOf(EphemeralConversationEventJS), 'kind', function () {
59664
- return this.lf();
59665
- }, VOID);
59666
- defineProp(protoOf(EphemeralConversationEventJS), 'timestamp', function () {
59667
- return this.g2b();
59668
- }, VOID);
59669
- defineProp(protoOf(EphemeralConversationEventJS), 'conversationId', function () {
59670
- return this.z3e();
59671
- }, VOID);
59672
- defineProp(protoOf(EphemeralConversationEventJS), 'from', function () {
59673
- return this.a3f();
59674
- }, VOID);
59675
- defineProp(protoOf(EphemeralConversationEventJS), 'body', function () {
59676
- return this.b3f();
59677
- }, VOID);
59678
59599
  function EventDeleteConversationEventJS(event) {
59679
- this.g3g_1 = 'event:delete';
59680
- this.h3g_1 = event.v2r_1;
59681
- this.i3g_1 = event.w2r_1;
59682
- this.j3g_1 = event.x2r_1;
59683
- this.k3g_1 = map(event.y2r_1);
59684
- this.l3g_1 = event.z2r_1;
59600
+ this.kind = 'event:delete';
59601
+ this.id = event.v2r_1;
59602
+ this.timestamp = event.w2r_1;
59603
+ this.conversationId = event.x2r_1;
59604
+ this.from = map(event.y2r_1);
59605
+ this.body = event.z2r_1;
59685
59606
  }
59686
59607
  protoOf(EventDeleteConversationEventJS).lf = function () {
59687
- return this.g3g_1;
59608
+ return this.kind;
59688
59609
  };
59689
59610
  protoOf(EventDeleteConversationEventJS).n1z = function () {
59690
- return this.h3g_1;
59611
+ return this.id;
59691
59612
  };
59692
59613
  protoOf(EventDeleteConversationEventJS).g2b = function () {
59693
- return this.i3g_1;
59614
+ return this.timestamp;
59694
59615
  };
59695
59616
  protoOf(EventDeleteConversationEventJS).z3e = function () {
59696
- return this.j3g_1;
59617
+ return this.conversationId;
59697
59618
  };
59698
59619
  protoOf(EventDeleteConversationEventJS).a3f = function () {
59699
- return this.k3g_1;
59620
+ return this.from;
59700
59621
  };
59701
59622
  protoOf(EventDeleteConversationEventJS).b3f = function () {
59702
- return this.l3g_1;
59623
+ return this.body;
59703
59624
  };
59704
- defineProp(protoOf(EventDeleteConversationEventJS), 'kind', function () {
59705
- return this.lf();
59706
- }, VOID);
59707
- defineProp(protoOf(EventDeleteConversationEventJS), 'id', function () {
59708
- return this.n1z();
59709
- }, VOID);
59710
- defineProp(protoOf(EventDeleteConversationEventJS), 'timestamp', function () {
59711
- return this.g2b();
59712
- }, VOID);
59713
- defineProp(protoOf(EventDeleteConversationEventJS), 'conversationId', function () {
59714
- return this.z3e();
59715
- }, VOID);
59716
- defineProp(protoOf(EventDeleteConversationEventJS), 'from', function () {
59717
- return this.a3f();
59718
- }, VOID);
59719
- defineProp(protoOf(EventDeleteConversationEventJS), 'body', function () {
59720
- return this.b3f();
59721
- }, VOID);
59722
59625
  function map(_this__u8e3s4) {
59723
59626
  var tmp;
59724
59627
  if (_this__u8e3s4 instanceof EmbeddedInfo) {
@@ -59810,527 +59713,356 @@ function requireClientsdkClientcore () {
59810
59713
  }
59811
59714
  function MessageEventBodyJS() {
59812
59715
  }
59813
- function Body(body) {
59716
+ function MessageTextEventBody(body) {
59814
59717
  this.text = body.w2s_1;
59815
- this.n3g_1 = body.x2s_1;
59718
+ this.deleted = body.x2s_1;
59816
59719
  }
59817
- protoOf(Body).o3g = function () {
59720
+ protoOf(MessageTextEventBody).d3f = function () {
59818
59721
  return this.text;
59819
59722
  };
59820
- protoOf(Body).m3g = function () {
59821
- return this.n3g_1;
59723
+ protoOf(MessageTextEventBody).e3f = function () {
59724
+ return this.deleted;
59822
59725
  };
59823
- defineProp(protoOf(Body), 'deleted', function () {
59824
- return this.m3g();
59825
- }, VOID);
59826
59726
  function MessageTextEventJS(event) {
59827
- this.p3g_1 = 'message:text';
59828
- this.q3g_1 = event.a2t_1;
59829
- this.r3g_1 = event.y2s_1;
59830
- this.s3g_1 = event.z2s_1;
59831
- this.t3g_1 = map(event.b2t_1);
59832
- this.u3g_1 = new Body(event.c2t_1);
59727
+ this.kind = 'message:text';
59728
+ this.id = event.a2t_1;
59729
+ this.timestamp = event.y2s_1;
59730
+ this.conversationId = event.z2s_1;
59731
+ this.from = map(event.b2t_1);
59732
+ this.body = new MessageTextEventBody(event.c2t_1);
59833
59733
  }
59834
59734
  protoOf(MessageTextEventJS).lf = function () {
59835
- return this.p3g_1;
59735
+ return this.kind;
59836
59736
  };
59837
59737
  protoOf(MessageTextEventJS).n1z = function () {
59838
- return this.q3g_1;
59738
+ return this.id;
59839
59739
  };
59840
59740
  protoOf(MessageTextEventJS).g2b = function () {
59841
- return this.r3g_1;
59741
+ return this.timestamp;
59842
59742
  };
59843
59743
  protoOf(MessageTextEventJS).z3e = function () {
59844
- return this.s3g_1;
59744
+ return this.conversationId;
59845
59745
  };
59846
59746
  protoOf(MessageTextEventJS).a3f = function () {
59847
- return this.t3g_1;
59747
+ return this.from;
59848
59748
  };
59849
59749
  protoOf(MessageTextEventJS).b3f = function () {
59850
- return this.u3g_1;
59750
+ return this.body;
59851
59751
  };
59852
- defineProp(protoOf(MessageTextEventJS), 'kind', function () {
59853
- return this.lf();
59854
- }, VOID);
59855
- defineProp(protoOf(MessageTextEventJS), 'id', function () {
59856
- return this.n1z();
59857
- }, VOID);
59858
- defineProp(protoOf(MessageTextEventJS), 'timestamp', function () {
59859
- return this.g2b();
59860
- }, VOID);
59861
- defineProp(protoOf(MessageTextEventJS), 'conversationId', function () {
59862
- return this.z3e();
59863
- }, VOID);
59864
- defineProp(protoOf(MessageTextEventJS), 'from', function () {
59865
- return this.a3f();
59866
- }, VOID);
59867
- defineProp(protoOf(MessageTextEventJS), 'body', function () {
59868
- return this.b3f();
59869
- }, VOID);
59870
- function Body_0(body) {
59752
+ function MessageCustomEventBody(body) {
59871
59753
  this.customData = body.d2t_1;
59872
- this.v3g_1 = body.e2t_1;
59754
+ this.deleted = body.e2t_1;
59873
59755
  }
59874
- protoOf(Body_0).w3g = function () {
59756
+ protoOf(MessageCustomEventBody).f3f = function () {
59875
59757
  return this.customData;
59876
59758
  };
59877
- protoOf(Body_0).m3g = function () {
59878
- return this.v3g_1;
59759
+ protoOf(MessageCustomEventBody).e3f = function () {
59760
+ return this.deleted;
59879
59761
  };
59880
- defineProp(protoOf(Body_0), 'deleted', function () {
59881
- return this.m3g();
59882
- }, VOID);
59883
59762
  function MessageCustomEventJS(event) {
59884
- this.x3g_1 = 'message:custom';
59885
- this.y3g_1 = event.h2t_1;
59886
- this.z3g_1 = event.f2t_1;
59887
- this.a3h_1 = event.g2t_1;
59888
- this.b3h_1 = map(event.i2t_1);
59889
- this.c3h_1 = new Body_0(event.j2t_1);
59763
+ this.kind = 'message:custom';
59764
+ this.id = event.h2t_1;
59765
+ this.timestamp = event.f2t_1;
59766
+ this.conversationId = event.g2t_1;
59767
+ this.from = map(event.i2t_1);
59768
+ this.body = new MessageCustomEventBody(event.j2t_1);
59890
59769
  }
59891
59770
  protoOf(MessageCustomEventJS).lf = function () {
59892
- return this.x3g_1;
59771
+ return this.kind;
59893
59772
  };
59894
59773
  protoOf(MessageCustomEventJS).n1z = function () {
59895
- return this.y3g_1;
59774
+ return this.id;
59896
59775
  };
59897
59776
  protoOf(MessageCustomEventJS).g2b = function () {
59898
- return this.z3g_1;
59777
+ return this.timestamp;
59899
59778
  };
59900
59779
  protoOf(MessageCustomEventJS).z3e = function () {
59901
- return this.a3h_1;
59780
+ return this.conversationId;
59902
59781
  };
59903
59782
  protoOf(MessageCustomEventJS).a3f = function () {
59904
- return this.b3h_1;
59783
+ return this.from;
59905
59784
  };
59906
59785
  protoOf(MessageCustomEventJS).b3f = function () {
59907
- return this.c3h_1;
59786
+ return this.body;
59908
59787
  };
59909
- defineProp(protoOf(MessageCustomEventJS), 'kind', function () {
59910
- return this.lf();
59911
- }, VOID);
59912
- defineProp(protoOf(MessageCustomEventJS), 'id', function () {
59913
- return this.n1z();
59914
- }, VOID);
59915
- defineProp(protoOf(MessageCustomEventJS), 'timestamp', function () {
59916
- return this.g2b();
59917
- }, VOID);
59918
- defineProp(protoOf(MessageCustomEventJS), 'conversationId', function () {
59919
- return this.z3e();
59920
- }, VOID);
59921
- defineProp(protoOf(MessageCustomEventJS), 'from', function () {
59922
- return this.a3f();
59923
- }, VOID);
59924
- defineProp(protoOf(MessageCustomEventJS), 'body', function () {
59925
- return this.b3f();
59926
- }, VOID);
59927
- function Body_1(body) {
59788
+ function MessageAudioEventBody(body) {
59928
59789
  this.audioUrl = body.y2t_1;
59929
- this.d3h_1 = body.z2t_1;
59790
+ this.deleted = body.z2t_1;
59930
59791
  }
59931
- protoOf(Body_1).e3h = function () {
59792
+ protoOf(MessageAudioEventBody).g3f = function () {
59932
59793
  return this.audioUrl;
59933
59794
  };
59934
- protoOf(Body_1).m3g = function () {
59935
- return this.d3h_1;
59795
+ protoOf(MessageAudioEventBody).e3f = function () {
59796
+ return this.deleted;
59936
59797
  };
59937
- defineProp(protoOf(Body_1), 'deleted', function () {
59938
- return this.m3g();
59939
- }, VOID);
59940
59798
  function MessageAudioEventJS(event) {
59941
- this.f3h_1 = 'message:audio';
59942
- this.g3h_1 = event.c2u_1;
59943
- this.h3h_1 = event.a2u_1;
59944
- this.i3h_1 = event.b2u_1;
59945
- this.j3h_1 = map(event.d2u_1);
59946
- this.k3h_1 = new Body_1(event.e2u_1);
59799
+ this.kind = 'message:audio';
59800
+ this.id = event.c2u_1;
59801
+ this.timestamp = event.a2u_1;
59802
+ this.conversationId = event.b2u_1;
59803
+ this.from = map(event.d2u_1);
59804
+ this.body = new MessageAudioEventBody(event.e2u_1);
59947
59805
  }
59948
59806
  protoOf(MessageAudioEventJS).lf = function () {
59949
- return this.f3h_1;
59807
+ return this.kind;
59950
59808
  };
59951
59809
  protoOf(MessageAudioEventJS).n1z = function () {
59952
- return this.g3h_1;
59810
+ return this.id;
59953
59811
  };
59954
59812
  protoOf(MessageAudioEventJS).g2b = function () {
59955
- return this.h3h_1;
59813
+ return this.timestamp;
59956
59814
  };
59957
59815
  protoOf(MessageAudioEventJS).z3e = function () {
59958
- return this.i3h_1;
59816
+ return this.conversationId;
59959
59817
  };
59960
59818
  protoOf(MessageAudioEventJS).a3f = function () {
59961
- return this.j3h_1;
59819
+ return this.from;
59962
59820
  };
59963
59821
  protoOf(MessageAudioEventJS).b3f = function () {
59964
- return this.k3h_1;
59822
+ return this.body;
59965
59823
  };
59966
- defineProp(protoOf(MessageAudioEventJS), 'kind', function () {
59967
- return this.lf();
59968
- }, VOID);
59969
- defineProp(protoOf(MessageAudioEventJS), 'id', function () {
59970
- return this.n1z();
59971
- }, VOID);
59972
- defineProp(protoOf(MessageAudioEventJS), 'timestamp', function () {
59973
- return this.g2b();
59974
- }, VOID);
59975
- defineProp(protoOf(MessageAudioEventJS), 'conversationId', function () {
59976
- return this.z3e();
59977
- }, VOID);
59978
- defineProp(protoOf(MessageAudioEventJS), 'from', function () {
59979
- return this.a3f();
59980
- }, VOID);
59981
- defineProp(protoOf(MessageAudioEventJS), 'body', function () {
59982
- return this.b3f();
59983
- }, VOID);
59984
- function Body_2(body) {
59824
+ function MessageVideoEventBody(body) {
59985
59825
  this.videoUrl = body.r2t_1;
59986
- this.l3h_1 = body.s2t_1;
59826
+ this.deleted = body.s2t_1;
59987
59827
  }
59988
- protoOf(Body_2).m3h = function () {
59828
+ protoOf(MessageVideoEventBody).h3f = function () {
59989
59829
  return this.videoUrl;
59990
59830
  };
59991
- protoOf(Body_2).m3g = function () {
59992
- return this.l3h_1;
59831
+ protoOf(MessageVideoEventBody).e3f = function () {
59832
+ return this.deleted;
59993
59833
  };
59994
- defineProp(protoOf(Body_2), 'deleted', function () {
59995
- return this.m3g();
59996
- }, VOID);
59997
59834
  function MessageVideoEventJS(event) {
59998
- this.n3h_1 = 'message:video';
59999
- this.o3h_1 = event.v2t_1;
60000
- this.p3h_1 = event.t2t_1;
60001
- this.q3h_1 = event.u2t_1;
60002
- this.r3h_1 = map(event.w2t_1);
60003
- this.s3h_1 = new Body_2(event.x2t_1);
59835
+ this.kind = 'message:video';
59836
+ this.id = event.v2t_1;
59837
+ this.timestamp = event.t2t_1;
59838
+ this.conversationId = event.u2t_1;
59839
+ this.from = map(event.w2t_1);
59840
+ this.body = new MessageVideoEventBody(event.x2t_1);
60004
59841
  }
60005
59842
  protoOf(MessageVideoEventJS).lf = function () {
60006
- return this.n3h_1;
59843
+ return this.kind;
60007
59844
  };
60008
59845
  protoOf(MessageVideoEventJS).n1z = function () {
60009
- return this.o3h_1;
59846
+ return this.id;
60010
59847
  };
60011
59848
  protoOf(MessageVideoEventJS).g2b = function () {
60012
- return this.p3h_1;
59849
+ return this.timestamp;
60013
59850
  };
60014
59851
  protoOf(MessageVideoEventJS).z3e = function () {
60015
- return this.q3h_1;
59852
+ return this.conversationId;
60016
59853
  };
60017
59854
  protoOf(MessageVideoEventJS).a3f = function () {
60018
- return this.r3h_1;
59855
+ return this.from;
60019
59856
  };
60020
59857
  protoOf(MessageVideoEventJS).b3f = function () {
60021
- return this.s3h_1;
59858
+ return this.body;
60022
59859
  };
60023
- defineProp(protoOf(MessageVideoEventJS), 'kind', function () {
60024
- return this.lf();
60025
- }, VOID);
60026
- defineProp(protoOf(MessageVideoEventJS), 'id', function () {
60027
- return this.n1z();
60028
- }, VOID);
60029
- defineProp(protoOf(MessageVideoEventJS), 'timestamp', function () {
60030
- return this.g2b();
60031
- }, VOID);
60032
- defineProp(protoOf(MessageVideoEventJS), 'conversationId', function () {
60033
- return this.z3e();
60034
- }, VOID);
60035
- defineProp(protoOf(MessageVideoEventJS), 'from', function () {
60036
- return this.a3f();
60037
- }, VOID);
60038
- defineProp(protoOf(MessageVideoEventJS), 'body', function () {
60039
- return this.b3f();
60040
- }, VOID);
60041
- function Body_3(body) {
59860
+ function MessageImageEventBody(body) {
60042
59861
  this.imageUrl = body.k2t_1;
60043
- this.t3h_1 = body.l2t_1;
59862
+ this.deleted = body.l2t_1;
60044
59863
  }
60045
- protoOf(Body_3).u3h = function () {
59864
+ protoOf(MessageImageEventBody).i3f = function () {
60046
59865
  return this.imageUrl;
60047
59866
  };
60048
- protoOf(Body_3).m3g = function () {
60049
- return this.t3h_1;
59867
+ protoOf(MessageImageEventBody).e3f = function () {
59868
+ return this.deleted;
60050
59869
  };
60051
- defineProp(protoOf(Body_3), 'deleted', function () {
60052
- return this.m3g();
60053
- }, VOID);
60054
59870
  function MessageImageEventJS(event) {
60055
- this.v3h_1 = 'message:image';
60056
- this.w3h_1 = event.o2t_1;
60057
- this.x3h_1 = event.m2t_1;
60058
- this.y3h_1 = event.n2t_1;
60059
- this.z3h_1 = map(event.p2t_1);
60060
- this.a3i_1 = new Body_3(event.q2t_1);
59871
+ this.kind = 'message:image';
59872
+ this.id = event.o2t_1;
59873
+ this.timestamp = event.m2t_1;
59874
+ this.conversationId = event.n2t_1;
59875
+ this.from = map(event.p2t_1);
59876
+ this.body = new MessageImageEventBody(event.q2t_1);
60061
59877
  }
60062
59878
  protoOf(MessageImageEventJS).lf = function () {
60063
- return this.v3h_1;
59879
+ return this.kind;
60064
59880
  };
60065
59881
  protoOf(MessageImageEventJS).n1z = function () {
60066
- return this.w3h_1;
59882
+ return this.id;
60067
59883
  };
60068
59884
  protoOf(MessageImageEventJS).g2b = function () {
60069
- return this.x3h_1;
59885
+ return this.timestamp;
60070
59886
  };
60071
59887
  protoOf(MessageImageEventJS).z3e = function () {
60072
- return this.y3h_1;
59888
+ return this.conversationId;
60073
59889
  };
60074
59890
  protoOf(MessageImageEventJS).a3f = function () {
60075
- return this.z3h_1;
59891
+ return this.from;
60076
59892
  };
60077
59893
  protoOf(MessageImageEventJS).b3f = function () {
60078
- return this.a3i_1;
59894
+ return this.body;
60079
59895
  };
60080
- defineProp(protoOf(MessageImageEventJS), 'kind', function () {
60081
- return this.lf();
60082
- }, VOID);
60083
- defineProp(protoOf(MessageImageEventJS), 'id', function () {
60084
- return this.n1z();
60085
- }, VOID);
60086
- defineProp(protoOf(MessageImageEventJS), 'timestamp', function () {
60087
- return this.g2b();
60088
- }, VOID);
60089
- defineProp(protoOf(MessageImageEventJS), 'conversationId', function () {
60090
- return this.z3e();
60091
- }, VOID);
60092
- defineProp(protoOf(MessageImageEventJS), 'from', function () {
60093
- return this.a3f();
60094
- }, VOID);
60095
- defineProp(protoOf(MessageImageEventJS), 'body', function () {
60096
- return this.b3f();
60097
- }, VOID);
60098
- function Body_4(body) {
59896
+ function MessageFileEventBody(body) {
60099
59897
  this.fileUrl = body.f2u_1;
60100
- this.b3i_1 = body.g2u_1;
59898
+ this.deleted = body.g2u_1;
60101
59899
  }
60102
- protoOf(Body_4).c3i = function () {
59900
+ protoOf(MessageFileEventBody).j3f = function () {
60103
59901
  return this.fileUrl;
60104
59902
  };
60105
- protoOf(Body_4).m3g = function () {
60106
- return this.b3i_1;
59903
+ protoOf(MessageFileEventBody).e3f = function () {
59904
+ return this.deleted;
60107
59905
  };
60108
- defineProp(protoOf(Body_4), 'deleted', function () {
60109
- return this.m3g();
60110
- }, VOID);
60111
59906
  function MessageFileEventJS(event) {
60112
- this.d3i_1 = 'message:file';
60113
- this.e3i_1 = event.j2u_1;
60114
- this.f3i_1 = event.h2u_1;
60115
- this.g3i_1 = event.i2u_1;
60116
- this.h3i_1 = map(event.k2u_1);
60117
- this.i3i_1 = new Body_4(event.l2u_1);
59907
+ this.kind = 'message:file';
59908
+ this.id = event.j2u_1;
59909
+ this.timestamp = event.h2u_1;
59910
+ this.conversationId = event.i2u_1;
59911
+ this.from = map(event.k2u_1);
59912
+ this.body = new MessageFileEventBody(event.l2u_1);
60118
59913
  }
60119
59914
  protoOf(MessageFileEventJS).lf = function () {
60120
- return this.d3i_1;
59915
+ return this.kind;
60121
59916
  };
60122
59917
  protoOf(MessageFileEventJS).n1z = function () {
60123
- return this.e3i_1;
59918
+ return this.id;
60124
59919
  };
60125
59920
  protoOf(MessageFileEventJS).g2b = function () {
60126
- return this.f3i_1;
59921
+ return this.timestamp;
60127
59922
  };
60128
59923
  protoOf(MessageFileEventJS).z3e = function () {
60129
- return this.g3i_1;
59924
+ return this.conversationId;
60130
59925
  };
60131
59926
  protoOf(MessageFileEventJS).a3f = function () {
60132
- return this.h3i_1;
59927
+ return this.from;
60133
59928
  };
60134
59929
  protoOf(MessageFileEventJS).b3f = function () {
60135
- return this.i3i_1;
59930
+ return this.body;
60136
59931
  };
60137
- defineProp(protoOf(MessageFileEventJS), 'kind', function () {
60138
- return this.lf();
60139
- }, VOID);
60140
- defineProp(protoOf(MessageFileEventJS), 'id', function () {
60141
- return this.n1z();
60142
- }, VOID);
60143
- defineProp(protoOf(MessageFileEventJS), 'timestamp', function () {
60144
- return this.g2b();
60145
- }, VOID);
60146
- defineProp(protoOf(MessageFileEventJS), 'conversationId', function () {
60147
- return this.z3e();
60148
- }, VOID);
60149
- defineProp(protoOf(MessageFileEventJS), 'from', function () {
60150
- return this.a3f();
60151
- }, VOID);
60152
- defineProp(protoOf(MessageFileEventJS), 'body', function () {
60153
- return this.b3f();
60154
- }, VOID);
60155
- function Body_5(body) {
59932
+ function MessageVCardEventBody(body) {
60156
59933
  this.vcardUrl = body.m2u_1;
60157
- this.j3i_1 = body.n2u_1;
59934
+ this.deleted = body.n2u_1;
60158
59935
  }
60159
- protoOf(Body_5).k3i = function () {
59936
+ protoOf(MessageVCardEventBody).k3f = function () {
60160
59937
  return this.vcardUrl;
60161
59938
  };
60162
- protoOf(Body_5).m3g = function () {
60163
- return this.j3i_1;
59939
+ protoOf(MessageVCardEventBody).e3f = function () {
59940
+ return this.deleted;
60164
59941
  };
60165
- defineProp(protoOf(Body_5), 'deleted', function () {
60166
- return this.m3g();
60167
- }, VOID);
60168
59942
  function MessageVCardEventJS(event) {
60169
- this.l3i_1 = 'message:vcard';
60170
- this.m3i_1 = event.q2u_1;
60171
- this.n3i_1 = event.o2u_1;
60172
- this.o3i_1 = event.p2u_1;
60173
- this.p3i_1 = map(event.r2u_1);
60174
- this.q3i_1 = new Body_5(event.s2u_1);
59943
+ this.kind = 'message:vcard';
59944
+ this.id = event.q2u_1;
59945
+ this.timestamp = event.o2u_1;
59946
+ this.conversationId = event.p2u_1;
59947
+ this.from = map(event.r2u_1);
59948
+ this.body = new MessageVCardEventBody(event.s2u_1);
60175
59949
  }
60176
59950
  protoOf(MessageVCardEventJS).lf = function () {
60177
- return this.l3i_1;
59951
+ return this.kind;
60178
59952
  };
60179
59953
  protoOf(MessageVCardEventJS).n1z = function () {
60180
- return this.m3i_1;
59954
+ return this.id;
60181
59955
  };
60182
59956
  protoOf(MessageVCardEventJS).g2b = function () {
60183
- return this.n3i_1;
59957
+ return this.timestamp;
60184
59958
  };
60185
59959
  protoOf(MessageVCardEventJS).z3e = function () {
60186
- return this.o3i_1;
59960
+ return this.conversationId;
60187
59961
  };
60188
59962
  protoOf(MessageVCardEventJS).a3f = function () {
60189
- return this.p3i_1;
59963
+ return this.from;
60190
59964
  };
60191
59965
  protoOf(MessageVCardEventJS).b3f = function () {
60192
- return this.q3i_1;
59966
+ return this.body;
60193
59967
  };
60194
- defineProp(protoOf(MessageVCardEventJS), 'kind', function () {
60195
- return this.lf();
60196
- }, VOID);
60197
- defineProp(protoOf(MessageVCardEventJS), 'id', function () {
60198
- return this.n1z();
60199
- }, VOID);
60200
- defineProp(protoOf(MessageVCardEventJS), 'timestamp', function () {
60201
- return this.g2b();
60202
- }, VOID);
60203
- defineProp(protoOf(MessageVCardEventJS), 'conversationId', function () {
60204
- return this.z3e();
60205
- }, VOID);
60206
- defineProp(protoOf(MessageVCardEventJS), 'from', function () {
60207
- return this.a3f();
60208
- }, VOID);
60209
- defineProp(protoOf(MessageVCardEventJS), 'body', function () {
60210
- return this.b3f();
60211
- }, VOID);
60212
- function Body_6(body) {
59968
+ function MessageLocationEventBody(body) {
60213
59969
  this.location = new Location_0(body.b2v_1);
60214
- this.r3i_1 = body.c2v_1;
59970
+ this.deleted = body.c2v_1;
60215
59971
  }
60216
- protoOf(Body_6).s3i = function () {
59972
+ protoOf(MessageLocationEventBody).l3f = function () {
60217
59973
  return this.location;
60218
59974
  };
60219
- protoOf(Body_6).m3g = function () {
60220
- return this.r3i_1;
59975
+ protoOf(MessageLocationEventBody).e3f = function () {
59976
+ return this.deleted;
60221
59977
  };
60222
- defineProp(protoOf(Body_6), 'deleted', function () {
60223
- return this.m3g();
60224
- }, VOID);
60225
59978
  function Location_0(location) {
60226
59979
  this.longitude = location.f2c_1;
60227
59980
  this.latitude = location.g2c_1;
60228
59981
  this.name = location.h2c_1;
60229
59982
  this.address = location.i2c_1;
60230
59983
  }
60231
- protoOf(Location_0).t3i = function () {
59984
+ protoOf(Location_0).m3f = function () {
60232
59985
  return this.longitude;
60233
59986
  };
60234
- protoOf(Location_0).u3i = function () {
59987
+ protoOf(Location_0).n3f = function () {
60235
59988
  return this.latitude;
60236
59989
  };
60237
59990
  protoOf(Location_0).mc = function () {
60238
59991
  return this.name;
60239
59992
  };
60240
- protoOf(Location_0).v3i = function () {
59993
+ protoOf(Location_0).o3f = function () {
60241
59994
  return this.address;
60242
59995
  };
60243
59996
  function MessageLocationEventJS(event) {
60244
- this.w3i_1 = 'message:location';
60245
- this.x3i_1 = event.f2v_1;
60246
- this.y3i_1 = event.d2v_1;
60247
- this.z3i_1 = event.e2v_1;
60248
- this.a3j_1 = map(event.g2v_1);
60249
- this.b3j_1 = new Body_6(event.h2v_1);
59997
+ this.kind = 'message:location';
59998
+ this.id = event.f2v_1;
59999
+ this.timestamp = event.d2v_1;
60000
+ this.conversationId = event.e2v_1;
60001
+ this.from = map(event.g2v_1);
60002
+ this.body = new MessageLocationEventBody(event.h2v_1);
60250
60003
  }
60251
60004
  protoOf(MessageLocationEventJS).lf = function () {
60252
- return this.w3i_1;
60005
+ return this.kind;
60253
60006
  };
60254
60007
  protoOf(MessageLocationEventJS).n1z = function () {
60255
- return this.x3i_1;
60008
+ return this.id;
60256
60009
  };
60257
60010
  protoOf(MessageLocationEventJS).g2b = function () {
60258
- return this.y3i_1;
60011
+ return this.timestamp;
60259
60012
  };
60260
60013
  protoOf(MessageLocationEventJS).z3e = function () {
60261
- return this.z3i_1;
60014
+ return this.conversationId;
60262
60015
  };
60263
60016
  protoOf(MessageLocationEventJS).a3f = function () {
60264
- return this.a3j_1;
60017
+ return this.from;
60265
60018
  };
60266
60019
  protoOf(MessageLocationEventJS).b3f = function () {
60267
- return this.b3j_1;
60020
+ return this.body;
60268
60021
  };
60269
- defineProp(protoOf(MessageLocationEventJS), 'kind', function () {
60270
- return this.lf();
60271
- }, VOID);
60272
- defineProp(protoOf(MessageLocationEventJS), 'id', function () {
60273
- return this.n1z();
60274
- }, VOID);
60275
- defineProp(protoOf(MessageLocationEventJS), 'timestamp', function () {
60276
- return this.g2b();
60277
- }, VOID);
60278
- defineProp(protoOf(MessageLocationEventJS), 'conversationId', function () {
60279
- return this.z3e();
60280
- }, VOID);
60281
- defineProp(protoOf(MessageLocationEventJS), 'from', function () {
60282
- return this.a3f();
60283
- }, VOID);
60284
- defineProp(protoOf(MessageLocationEventJS), 'body', function () {
60285
- return this.b3f();
60286
- }, VOID);
60287
- function Body_7(body) {
60022
+ function MessageTemplateEventBody(body) {
60288
60023
  this.body = body;
60289
60024
  this.template = new TemplateObject_0(this.body.t2u_1);
60290
60025
  this.whatsapp = new WhatsappObject_0(this.body.u2u_1);
60291
- this.c3j_1 = this.body.v2u_1;
60026
+ this.deleted = this.body.v2u_1;
60292
60027
  }
60293
- protoOf(Body_7).b3f = function () {
60028
+ protoOf(MessageTemplateEventBody).b3f = function () {
60294
60029
  return this.body;
60295
60030
  };
60296
- protoOf(Body_7).d3j = function () {
60031
+ protoOf(MessageTemplateEventBody).p3f = function () {
60297
60032
  return this.template;
60298
60033
  };
60299
- protoOf(Body_7).e3j = function () {
60034
+ protoOf(MessageTemplateEventBody).q3f = function () {
60300
60035
  return this.whatsapp;
60301
60036
  };
60302
- protoOf(Body_7).m3g = function () {
60303
- return this.c3j_1;
60037
+ protoOf(MessageTemplateEventBody).e3f = function () {
60038
+ return this.deleted;
60304
60039
  };
60305
- protoOf(Body_7).r2 = function () {
60040
+ protoOf(MessageTemplateEventBody).r2 = function () {
60306
60041
  return this.body;
60307
60042
  };
60308
- protoOf(Body_7).f3j = function (body) {
60309
- return new Body_7(body);
60043
+ protoOf(MessageTemplateEventBody).r3f = function (body) {
60044
+ return new MessageTemplateEventBody(body);
60310
60045
  };
60311
- protoOf(Body_7).copy = function (body, $super) {
60046
+ protoOf(MessageTemplateEventBody).copy = function (body, $super) {
60312
60047
  body = body === VOID ? this.body : body;
60313
- return this.f3j(body);
60048
+ return this.r3f(body);
60314
60049
  };
60315
- protoOf(Body_7).toString = function () {
60050
+ protoOf(MessageTemplateEventBody).toString = function () {
60316
60051
  return 'Body(body=' + this.body + ')';
60317
60052
  };
60318
- protoOf(Body_7).hashCode = function () {
60053
+ protoOf(MessageTemplateEventBody).hashCode = function () {
60319
60054
  return this.body.hashCode();
60320
60055
  };
60321
- protoOf(Body_7).equals = function (other) {
60056
+ protoOf(MessageTemplateEventBody).equals = function (other) {
60322
60057
  if (this === other)
60323
60058
  return true;
60324
- if (!(other instanceof Body_7))
60059
+ if (!(other instanceof MessageTemplateEventBody))
60325
60060
  return false;
60326
- var tmp0_other_with_cast = other instanceof Body_7 ? other : THROW_CCE();
60061
+ var tmp0_other_with_cast = other instanceof MessageTemplateEventBody ? other : THROW_CCE();
60327
60062
  if (!this.body.equals(tmp0_other_with_cast.body))
60328
60063
  return false;
60329
60064
  return true;
60330
60065
  };
60331
- defineProp(protoOf(Body_7), 'deleted', function () {
60332
- return this.m3g();
60333
- }, VOID);
60334
60066
  function TemplateObject_0(template) {
60335
60067
  this.name = template.x2b_1;
60336
60068
  var tmp = this;
@@ -60347,63 +60079,45 @@ function requireClientsdkClientcore () {
60347
60079
  protoOf(TemplateObject_0).mc = function () {
60348
60080
  return this.name;
60349
60081
  };
60350
- protoOf(TemplateObject_0).g3j = function () {
60082
+ protoOf(TemplateObject_0).s3f = function () {
60351
60083
  return this.parameters;
60352
60084
  };
60353
60085
  function WhatsappObject_0(whatsapp) {
60354
60086
  this.policy = whatsapp.b2c_1;
60355
60087
  this.locale = whatsapp.c2c_1;
60356
60088
  }
60357
- protoOf(WhatsappObject_0).h3j = function () {
60089
+ protoOf(WhatsappObject_0).t3f = function () {
60358
60090
  return this.policy;
60359
60091
  };
60360
- protoOf(WhatsappObject_0).i3j = function () {
60092
+ protoOf(WhatsappObject_0).u3f = function () {
60361
60093
  return this.locale;
60362
60094
  };
60363
60095
  function MessageTemplateEventJS(event) {
60364
- this.j3j_1 = 'message:template';
60365
- this.k3j_1 = event.y2u_1;
60366
- this.l3j_1 = event.w2u_1;
60367
- this.m3j_1 = event.x2u_1;
60368
- this.n3j_1 = map(event.z2u_1);
60369
- this.o3j_1 = new Body_7(event.a2v_1);
60096
+ this.kind = 'message:template';
60097
+ this.id = event.y2u_1;
60098
+ this.timestamp = event.w2u_1;
60099
+ this.conversationId = event.x2u_1;
60100
+ this.from = map(event.z2u_1);
60101
+ this.body = new MessageTemplateEventBody(event.a2v_1);
60370
60102
  }
60371
60103
  protoOf(MessageTemplateEventJS).lf = function () {
60372
- return this.j3j_1;
60104
+ return this.kind;
60373
60105
  };
60374
60106
  protoOf(MessageTemplateEventJS).n1z = function () {
60375
- return this.k3j_1;
60107
+ return this.id;
60376
60108
  };
60377
60109
  protoOf(MessageTemplateEventJS).g2b = function () {
60378
- return this.l3j_1;
60110
+ return this.timestamp;
60379
60111
  };
60380
60112
  protoOf(MessageTemplateEventJS).z3e = function () {
60381
- return this.m3j_1;
60113
+ return this.conversationId;
60382
60114
  };
60383
60115
  protoOf(MessageTemplateEventJS).a3f = function () {
60384
- return this.n3j_1;
60116
+ return this.from;
60385
60117
  };
60386
60118
  protoOf(MessageTemplateEventJS).b3f = function () {
60387
- return this.o3j_1;
60119
+ return this.body;
60388
60120
  };
60389
- defineProp(protoOf(MessageTemplateEventJS), 'kind', function () {
60390
- return this.lf();
60391
- }, VOID);
60392
- defineProp(protoOf(MessageTemplateEventJS), 'id', function () {
60393
- return this.n1z();
60394
- }, VOID);
60395
- defineProp(protoOf(MessageTemplateEventJS), 'timestamp', function () {
60396
- return this.g2b();
60397
- }, VOID);
60398
- defineProp(protoOf(MessageTemplateEventJS), 'conversationId', function () {
60399
- return this.z3e();
60400
- }, VOID);
60401
- defineProp(protoOf(MessageTemplateEventJS), 'from', function () {
60402
- return this.a3f();
60403
- }, VOID);
60404
- defineProp(protoOf(MessageTemplateEventJS), 'body', function () {
60405
- return this.b3f();
60406
- }, VOID);
60407
60121
  var PresentingOrderJS_ASC_instance;
60408
60122
  var PresentingOrderJS_DESC_instance;
60409
60123
  function values() {
@@ -60433,7 +60147,7 @@ function requireClientsdkClientcore () {
60433
60147
  Enum.call(this, name, ordinal);
60434
60148
  this.corePresentingOrder = corePresentingOrder;
60435
60149
  }
60436
- protoOf(PresentingOrderJS).r3j = function () {
60150
+ protoOf(PresentingOrderJS).x3f = function () {
60437
60151
  return this.corePresentingOrder;
60438
60152
  };
60439
60153
  defineProp(protoOf(PresentingOrderJS), 'name', protoOf(PresentingOrderJS).mc, VOID);
@@ -60467,7 +60181,7 @@ function requireClientsdkClientcore () {
60467
60181
  Enum.call(this, name, ordinal);
60468
60182
  this.coreOrderBy = coreOrderBy;
60469
60183
  }
60470
- protoOf(OrderByJS).u3j = function () {
60184
+ protoOf(OrderByJS).a3g = function () {
60471
60185
  return this.coreOrderBy;
60472
60186
  };
60473
60187
  defineProp(protoOf(OrderByJS), 'name', protoOf(OrderByJS).mc, VOID);
@@ -60480,13 +60194,13 @@ function requireClientsdkClientcore () {
60480
60194
  var tmp_1 = this;
60481
60195
  tmp_1.customData = properties == null ? null : properties.x2p_1;
60482
60196
  }
60483
- protoOf(Properties).v3j = function () {
60197
+ protoOf(Properties).b3g = function () {
60484
60198
  return this.ttl;
60485
60199
  };
60486
- protoOf(Properties).w3j = function () {
60200
+ protoOf(Properties).c3g = function () {
60487
60201
  return this.customSortKey;
60488
60202
  };
60489
- protoOf(Properties).w3g = function () {
60203
+ protoOf(Properties).f3f = function () {
60490
60204
  return this.customData;
60491
60205
  };
60492
60206
  function ConversationJS(conversation) {
@@ -60516,13 +60230,13 @@ function requireClientsdkClientcore () {
60516
60230
  protoOf(ConversationJS).y3e = function () {
60517
60231
  return this.memberId;
60518
60232
  };
60519
- protoOf(ConversationJS).x3j = function () {
60233
+ protoOf(ConversationJS).d3g = function () {
60520
60234
  return this.memberState;
60521
60235
  };
60522
- protoOf(ConversationJS).y3j = function () {
60236
+ protoOf(ConversationJS).e3g = function () {
60523
60237
  return this.displayName;
60524
60238
  };
60525
- protoOf(ConversationJS).u3h = function () {
60239
+ protoOf(ConversationJS).i3f = function () {
60526
60240
  return this.imageUrl;
60527
60241
  };
60528
60242
  protoOf(ConversationJS).h3a = function () {
@@ -60537,13 +60251,13 @@ function requireClientsdkClientcore () {
60537
60251
  this.INACTIVE = 'INACTIVE';
60538
60252
  this.DELETED = 'DELETED';
60539
60253
  }
60540
- protoOf(ConversationStateJS).z3j = function () {
60254
+ protoOf(ConversationStateJS).f3g = function () {
60541
60255
  return this.ACTIVE;
60542
60256
  };
60543
- protoOf(ConversationStateJS).a3k = function () {
60257
+ protoOf(ConversationStateJS).g3g = function () {
60544
60258
  return this.INACTIVE;
60545
60259
  };
60546
- protoOf(ConversationStateJS).b3k = function () {
60260
+ protoOf(ConversationStateJS).h3g = function () {
60547
60261
  return this.DELETED;
60548
60262
  };
60549
60263
  protoOf(ConversationStateJS).toString = function () {
@@ -60571,13 +60285,13 @@ function requireClientsdkClientcore () {
60571
60285
  this.updated = conversationTimestamp.k2q_1;
60572
60286
  this.destroyed = conversationTimestamp.l2q_1;
60573
60287
  }
60574
- protoOf(ConversationTimestampJS).c3k = function () {
60288
+ protoOf(ConversationTimestampJS).i3g = function () {
60575
60289
  return this.created;
60576
60290
  };
60577
- protoOf(ConversationTimestampJS).d3k = function () {
60291
+ protoOf(ConversationTimestampJS).j3g = function () {
60578
60292
  return this.updated;
60579
60293
  };
60580
- protoOf(ConversationTimestampJS).e3k = function () {
60294
+ protoOf(ConversationTimestampJS).k3g = function () {
60581
60295
  return this.destroyed;
60582
60296
  };
60583
60297
  function ConversationsPageJS(conversationsPage) {
@@ -60599,7 +60313,7 @@ function requireClientsdkClientcore () {
60599
60313
  this.previousCursor = conversationsPage.n2q_1;
60600
60314
  this.nextCursor = conversationsPage.o2q_1;
60601
60315
  }
60602
- protoOf(ConversationsPageJS).f3k = function () {
60316
+ protoOf(ConversationsPageJS).l3g = function () {
60603
60317
  return this.conversations;
60604
60318
  };
60605
60319
  protoOf(ConversationsPageJS).w3e = function () {
@@ -60657,7 +60371,7 @@ function requireClientsdkClientcore () {
60657
60371
  protoOf(MemberJS).r2d = function () {
60658
60372
  return this.user;
60659
60373
  };
60660
- protoOf(MemberJS).g3k = function () {
60374
+ protoOf(MemberJS).m3g = function () {
60661
60375
  return this.channel;
60662
60376
  };
60663
60377
  protoOf(MemberJS).g2b = function () {
@@ -60670,16 +60384,16 @@ function requireClientsdkClientcore () {
60670
60384
  this.LEFT = 'LEFT';
60671
60385
  this.UNKNOWN = 'UNKNOWN';
60672
60386
  }
60673
- protoOf(MemberStateJSObj).h3k = function () {
60387
+ protoOf(MemberStateJSObj).n3g = function () {
60674
60388
  return this.INVITED;
60675
60389
  };
60676
- protoOf(MemberStateJSObj).i3k = function () {
60390
+ protoOf(MemberStateJSObj).o3g = function () {
60677
60391
  return this.JOINED;
60678
60392
  };
60679
- protoOf(MemberStateJSObj).j3k = function () {
60393
+ protoOf(MemberStateJSObj).p3g = function () {
60680
60394
  return this.LEFT;
60681
60395
  };
60682
- protoOf(MemberStateJSObj).k3k = function () {
60396
+ protoOf(MemberStateJSObj).q3g = function () {
60683
60397
  return this.UNKNOWN;
60684
60398
  };
60685
60399
  protoOf(MemberStateJSObj).toString = function () {
@@ -60707,13 +60421,13 @@ function requireClientsdkClientcore () {
60707
60421
  this.joined = memberTimestamp.r2s_1;
60708
60422
  this.left = memberTimestamp.s2s_1;
60709
60423
  }
60710
- protoOf(MemberTimestampJS).l3k = function () {
60424
+ protoOf(MemberTimestampJS).r3g = function () {
60711
60425
  return this.invited;
60712
60426
  };
60713
- protoOf(MemberTimestampJS).m3k = function () {
60427
+ protoOf(MemberTimestampJS).s3g = function () {
60714
60428
  return this.joined;
60715
60429
  };
60716
- protoOf(MemberTimestampJS).n3k = function () {
60430
+ protoOf(MemberTimestampJS).t3g = function () {
60717
60431
  return this.left;
60718
60432
  };
60719
60433
  function MembersPageJS(membersPage) {
@@ -60735,7 +60449,7 @@ function requireClientsdkClientcore () {
60735
60449
  this.previousCursor = membersPage.u2s_1;
60736
60450
  this.nextCursor = membersPage.v2s_1;
60737
60451
  }
60738
- protoOf(MembersPageJS).o3k = function () {
60452
+ protoOf(MembersPageJS).u3g = function () {
60739
60453
  return this.members;
60740
60454
  };
60741
60455
  protoOf(MembersPageJS).w3e = function () {
@@ -60781,19 +60495,19 @@ function requireClientsdkClientcore () {
60781
60495
  protoOf(UserJS).mc = function () {
60782
60496
  return this.name;
60783
60497
  };
60784
- protoOf(UserJS).y3j = function () {
60498
+ protoOf(UserJS).e3g = function () {
60785
60499
  return this.displayName;
60786
60500
  };
60787
- protoOf(UserJS).p3k = function () {
60501
+ protoOf(UserJS).v3g = function () {
60788
60502
  return this.channels;
60789
60503
  };
60790
60504
  protoOf(UserJS).g2b = function () {
60791
60505
  return this.timestamp;
60792
60506
  };
60793
- protoOf(UserJS).u3h = function () {
60507
+ protoOf(UserJS).i3f = function () {
60794
60508
  return this.imageUrl;
60795
60509
  };
60796
- protoOf(UserJS).w3g = function () {
60510
+ protoOf(UserJS).f3f = function () {
60797
60511
  return this.customData;
60798
60512
  };
60799
60513
  function UserTimestampJS(userTimestamp) {
@@ -60801,13 +60515,13 @@ function requireClientsdkClientcore () {
60801
60515
  this.updated = userTimestamp.u2v_1;
60802
60516
  this.destroyed = userTimestamp.v2v_1;
60803
60517
  }
60804
- protoOf(UserTimestampJS).c3k = function () {
60518
+ protoOf(UserTimestampJS).i3g = function () {
60805
60519
  return this.created;
60806
60520
  };
60807
- protoOf(UserTimestampJS).d3k = function () {
60521
+ protoOf(UserTimestampJS).j3g = function () {
60808
60522
  return this.updated;
60809
60523
  };
60810
- protoOf(UserTimestampJS).e3k = function () {
60524
+ protoOf(UserTimestampJS).k3g = function () {
60811
60525
  return this.destroyed;
60812
60526
  };
60813
60527
  function UserChannelsJS(userChannels) {
@@ -61120,37 +60834,37 @@ function requireClientsdkClientcore () {
61120
60834
  }
61121
60835
  tmp_29.messenger = tmp_31;
61122
60836
  }
61123
- protoOf(UserChannelsJS).q3k = function () {
60837
+ protoOf(UserChannelsJS).w3g = function () {
61124
60838
  return this.app;
61125
60839
  };
61126
- protoOf(UserChannelsJS).r3k = function () {
60840
+ protoOf(UserChannelsJS).x3g = function () {
61127
60841
  return this.phone;
61128
60842
  };
61129
- protoOf(UserChannelsJS).s3k = function () {
60843
+ protoOf(UserChannelsJS).y3g = function () {
61130
60844
  return this.pstn;
61131
60845
  };
61132
- protoOf(UserChannelsJS).t3k = function () {
60846
+ protoOf(UserChannelsJS).z3g = function () {
61133
60847
  return this.sip;
61134
60848
  };
61135
- protoOf(UserChannelsJS).u3k = function () {
60849
+ protoOf(UserChannelsJS).a3h = function () {
61136
60850
  return this.vbc;
61137
60851
  };
61138
- protoOf(UserChannelsJS).v3k = function () {
60852
+ protoOf(UserChannelsJS).b3h = function () {
61139
60853
  return this.websocket;
61140
60854
  };
61141
- protoOf(UserChannelsJS).w3k = function () {
60855
+ protoOf(UserChannelsJS).c3h = function () {
61142
60856
  return this.sms;
61143
60857
  };
61144
- protoOf(UserChannelsJS).x3k = function () {
60858
+ protoOf(UserChannelsJS).d3h = function () {
61145
60859
  return this.mms;
61146
60860
  };
61147
- protoOf(UserChannelsJS).e3j = function () {
60861
+ protoOf(UserChannelsJS).q3f = function () {
61148
60862
  return this.whatsapp;
61149
60863
  };
61150
- protoOf(UserChannelsJS).y3k = function () {
60864
+ protoOf(UserChannelsJS).e3h = function () {
61151
60865
  return this.viber;
61152
60866
  };
61153
- protoOf(UserChannelsJS).z3k = function () {
60867
+ protoOf(UserChannelsJS).f3h = function () {
61154
60868
  return this.messenger;
61155
60869
  };
61156
60870
  function MemberChannelJS(memberChannel) {
@@ -61186,7 +60900,7 @@ function requireClientsdkClientcore () {
61186
60900
  protoOf(MemberChannelJS).a3f = function () {
61187
60901
  return this.from;
61188
60902
  };
61189
- protoOf(MemberChannelJS).a3l = function () {
60903
+ protoOf(MemberChannelJS).g3h = function () {
61190
60904
  return this.to;
61191
60905
  };
61192
60906
  function ChannelJS(channel) {
@@ -61196,7 +60910,7 @@ function requireClientsdkClientcore () {
61196
60910
  protoOf(ChannelJS).n1z = function () {
61197
60911
  return this.id;
61198
60912
  };
61199
- protoOf(ChannelJS).b3l = function () {
60913
+ protoOf(ChannelJS).h3h = function () {
61200
60914
  return this.number;
61201
60915
  };
61202
60916
  function LegChannelJS(channel) {
@@ -61210,7 +60924,7 @@ function requireClientsdkClientcore () {
61210
60924
  protoOf(LegChannelJS).r2d = function () {
61211
60925
  return this.user;
61212
60926
  };
61213
- protoOf(LegChannelJS).b3l = function () {
60927
+ protoOf(LegChannelJS).h3h = function () {
61214
60928
  return this.number;
61215
60929
  };
61216
60930
  function LegJS(leg) {
@@ -61230,25 +60944,25 @@ function requireClientsdkClientcore () {
61230
60944
  protoOf(LegJS).w2y = function () {
61231
60945
  return this.type;
61232
60946
  };
61233
- protoOf(LegJS).c3l = function () {
60947
+ protoOf(LegJS).i3h = function () {
61234
60948
  return this.direction;
61235
60949
  };
61236
60950
  protoOf(LegJS).z3e = function () {
61237
60951
  return this.conversationId;
61238
60952
  };
61239
- protoOf(LegJS).d3l = function () {
60953
+ protoOf(LegJS).j3h = function () {
61240
60954
  return this.status;
61241
60955
  };
61242
- protoOf(LegJS).e3l = function () {
60956
+ protoOf(LegJS).k3h = function () {
61243
60957
  return this.startTime;
61244
60958
  };
61245
- protoOf(LegJS).f3l = function () {
60959
+ protoOf(LegJS).l3h = function () {
61246
60960
  return this.endTime;
61247
60961
  };
61248
60962
  protoOf(LegJS).a3f = function () {
61249
60963
  return this.from;
61250
60964
  };
61251
- protoOf(LegJS).a3l = function () {
60965
+ protoOf(LegJS).g3h = function () {
61252
60966
  return this.to;
61253
60967
  };
61254
60968
  var ChannelTypeJS_APP_instance;
@@ -61436,34 +61150,34 @@ function requireClientsdkClientcore () {
61436
61150
  this.CONVERSATION_MAX_NUMBER_OF_MEMBERS = 'conversation:error:maximum-number-of-members';
61437
61151
  this.CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED = 'custom-data:error:max-data-sum-limit-exceeded';
61438
61152
  }
61439
- protoOf(CSErrorCodesJS).i3l = function () {
61153
+ protoOf(CSErrorCodesJS).o3h = function () {
61440
61154
  return this.CONVERSATION_DUPLICATE_NAME;
61441
61155
  };
61442
- protoOf(CSErrorCodesJS).j3l = function () {
61156
+ protoOf(CSErrorCodesJS).p3h = function () {
61443
61157
  return this.MEMBER_ALREADY_JOINED;
61444
61158
  };
61445
- protoOf(CSErrorCodesJS).k3l = function () {
61159
+ protoOf(CSErrorCodesJS).q3h = function () {
61446
61160
  return this.MEMBER_ALREADY_INVITED;
61447
61161
  };
61448
- protoOf(CSErrorCodesJS).l3l = function () {
61162
+ protoOf(CSErrorCodesJS).r3h = function () {
61449
61163
  return this.CONVERSATION_NOT_FOUND;
61450
61164
  };
61451
- protoOf(CSErrorCodesJS).m3l = function () {
61165
+ protoOf(CSErrorCodesJS).s3h = function () {
61452
61166
  return this.MEMBER_NOT_FOUND;
61453
61167
  };
61454
- protoOf(CSErrorCodesJS).n3l = function () {
61168
+ protoOf(CSErrorCodesJS).t3h = function () {
61455
61169
  return this.USER_NOT_FOUND;
61456
61170
  };
61457
- protoOf(CSErrorCodesJS).o3l = function () {
61171
+ protoOf(CSErrorCodesJS).u3h = function () {
61458
61172
  return this.INVALID_CURSOR;
61459
61173
  };
61460
- protoOf(CSErrorCodesJS).p3l = function () {
61174
+ protoOf(CSErrorCodesJS).v3h = function () {
61461
61175
  return this.VALIDATION_FAIL;
61462
61176
  };
61463
- protoOf(CSErrorCodesJS).q3l = function () {
61177
+ protoOf(CSErrorCodesJS).w3h = function () {
61464
61178
  return this.CONVERSATION_MAX_NUMBER_OF_MEMBERS;
61465
61179
  };
61466
- protoOf(CSErrorCodesJS).r3l = function () {
61180
+ protoOf(CSErrorCodesJS).x3h = function () {
61467
61181
  return this.CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED;
61468
61182
  };
61469
61183
  var CSErrorCodesJS_instance;
@@ -61491,52 +61205,52 @@ function requireClientsdkClientcore () {
61491
61205
  this.PING_TIMEOUT_DISCONNECT = 'session:disconnect:ping-timeout';
61492
61206
  this.TRANSPORT_CLOSED_DISCONNECT = 'session:disconnect:websocket-transport-closed';
61493
61207
  }
61494
- protoOf(SessionErrorCodesJS).s3l = function () {
61208
+ protoOf(SessionErrorCodesJS).y3h = function () {
61495
61209
  return this.EMPTY_TOKEN;
61496
61210
  };
61497
- protoOf(SessionErrorCodesJS).t3l = function () {
61211
+ protoOf(SessionErrorCodesJS).z3h = function () {
61498
61212
  return this.FORCED_DISCONNECT;
61499
61213
  };
61500
- protoOf(SessionErrorCodesJS).u3l = function () {
61214
+ protoOf(SessionErrorCodesJS).a3i = function () {
61501
61215
  return this.TIMEOUT;
61502
61216
  };
61503
- protoOf(SessionErrorCodesJS).v3l = function () {
61217
+ protoOf(SessionErrorCodesJS).b3i = function () {
61504
61218
  return this.INTERNAL_FAILURE;
61505
61219
  };
61506
- protoOf(SessionErrorCodesJS).w3l = function () {
61220
+ protoOf(SessionErrorCodesJS).c3i = function () {
61507
61221
  return this.NO_ACTIVE_SESSION;
61508
61222
  };
61509
- protoOf(SessionErrorCodesJS).x3l = function () {
61223
+ protoOf(SessionErrorCodesJS).d3i = function () {
61510
61224
  return this.ALREADY_ACTIVE_SESSION;
61511
61225
  };
61512
- protoOf(SessionErrorCodesJS).y3l = function () {
61226
+ protoOf(SessionErrorCodesJS).e3i = function () {
61513
61227
  return this.INVALID_TOKEN;
61514
61228
  };
61515
- protoOf(SessionErrorCodesJS).z3l = function () {
61229
+ protoOf(SessionErrorCodesJS).f3i = function () {
61516
61230
  return this.EXPIRED_TOKEN;
61517
61231
  };
61518
- protoOf(SessionErrorCodesJS).a3m = function () {
61232
+ protoOf(SessionErrorCodesJS).g3i = function () {
61519
61233
  return this.INVALID_USER;
61520
61234
  };
61521
- protoOf(SessionErrorCodesJS).b3m = function () {
61235
+ protoOf(SessionErrorCodesJS).h3i = function () {
61522
61236
  return this.AUTHORIZATION_ERROR;
61523
61237
  };
61524
- protoOf(SessionErrorCodesJS).c3m = function () {
61238
+ protoOf(SessionErrorCodesJS).i3i = function () {
61525
61239
  return this.INVALID_SESSION;
61526
61240
  };
61527
- protoOf(SessionErrorCodesJS).d3m = function () {
61241
+ protoOf(SessionErrorCodesJS).j3i = function () {
61528
61242
  return this.MAX_OPEN_SESSIONS;
61529
61243
  };
61530
- protoOf(SessionErrorCodesJS).e3m = function () {
61244
+ protoOf(SessionErrorCodesJS).k3i = function () {
61531
61245
  return this.INVALID_SOCKET_TRANSPORT;
61532
61246
  };
61533
- protoOf(SessionErrorCodesJS).f3m = function () {
61247
+ protoOf(SessionErrorCodesJS).l3i = function () {
61534
61248
  return this.CLIENT_DISCONNECT;
61535
61249
  };
61536
- protoOf(SessionErrorCodesJS).g3m = function () {
61250
+ protoOf(SessionErrorCodesJS).m3i = function () {
61537
61251
  return this.PING_TIMEOUT_DISCONNECT;
61538
61252
  };
61539
- protoOf(SessionErrorCodesJS).h3m = function () {
61253
+ protoOf(SessionErrorCodesJS).n3i = function () {
61540
61254
  return this.TRANSPORT_CLOSED_DISCONNECT;
61541
61255
  };
61542
61256
  var SessionErrorCodesJS_instance;
@@ -61558,7 +61272,7 @@ function requireClientsdkClientcore () {
61558
61272
  protoOf(VonageErrorJS).j2d = function () {
61559
61273
  return this.code;
61560
61274
  };
61561
- protoOf(VonageErrorJS).i3m = function () {
61275
+ protoOf(VonageErrorJS).o3i = function () {
61562
61276
  return this.kmpCause;
61563
61277
  };
61564
61278
  var VonageErrorTypeJS_CS_ERROR_instance;
@@ -62563,15 +62277,39 @@ function requireClientsdkClientcore () {
62563
62277
  };
62564
62278
  }
62565
62279
  function IChatClientJS$deleteEvent$lambda$lambda($reject, $resolve) {
62566
- return function (it) {
62567
- if (it instanceof VonageError) {
62568
- $reject(new VonageErrorJS(it));
62280
+ return function (err) {
62281
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
62282
+ var tmp;
62283
+ if (tmp0_safe_receiver == null) {
62284
+ tmp = null;
62569
62285
  } else {
62570
- if (!(it == null)) {
62571
- $reject(it);
62286
+ // Inline function 'kotlin.let' call
62287
+ // Inline function 'kotlin.contracts.contract' call
62288
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
62289
+ tmp = Unit_getInstance();
62290
+ }
62291
+ var tmp2_elvis_lhs = tmp;
62292
+ var tmp_0;
62293
+ if (tmp2_elvis_lhs == null) {
62294
+ var tmp1_safe_receiver = err;
62295
+ var tmp_1;
62296
+ if (tmp1_safe_receiver == null) {
62297
+ tmp_1 = null;
62572
62298
  } else {
62573
- $resolve(null);
62299
+ // Inline function 'kotlin.let' call
62300
+ // Inline function 'kotlin.contracts.contract' call
62301
+ $reject(tmp1_safe_receiver);
62302
+ tmp_1 = Unit_getInstance();
62574
62303
  }
62304
+ tmp_0 = tmp_1;
62305
+ } else {
62306
+ tmp_0 = tmp2_elvis_lhs;
62307
+ }
62308
+ var tmp3_elvis_lhs = tmp_0;
62309
+ if (tmp3_elvis_lhs == null) {
62310
+ $resolve(null);
62311
+ } else {
62312
+ Unit_getInstance();
62575
62313
  }
62576
62314
  return Unit_getInstance();
62577
62315
  };
@@ -62670,7 +62408,7 @@ function requireClientsdkClientcore () {
62670
62408
  Enum.call(this, name, ordinal);
62671
62409
  this.coreRegion = coreRegion;
62672
62410
  }
62673
- protoOf(CoreClientConfigRegionJS).n3m = function () {
62411
+ protoOf(CoreClientConfigRegionJS).t3i = function () {
62674
62412
  return this.coreRegion;
62675
62413
  };
62676
62414
  defineProp(protoOf(CoreClientConfigRegionJS), 'name', protoOf(CoreClientConfigRegionJS).mc, VOID);
@@ -62678,73 +62416,73 @@ function requireClientsdkClientcore () {
62678
62416
  function CoreClientConfigJS(region) {
62679
62417
  region = region === VOID ? get_DEFAULT_REGION() : region;
62680
62418
  this.region = region;
62681
- this.o3m_1 = this.region.coreRegion.j2l_1;
62682
- this.p3m_1 = this.region.coreRegion.k2l_1;
62419
+ this.u3i_1 = this.region.coreRegion.j2l_1;
62420
+ this.v3i_1 = this.region.coreRegion.k2l_1;
62683
62421
  var tmp = this;
62684
62422
  DefaultConfig_getInstance();
62685
- tmp.q3m_1 = '/v2/rtc';
62423
+ tmp.w3i_1 = '/v2/rtc';
62686
62424
  var tmp_0 = this;
62687
62425
  DefaultConfig_getInstance();
62688
- tmp_0.r3m_1 = true;
62689
- this.s3m_1 = false;
62426
+ tmp_0.x3i_1 = true;
62427
+ this.y3i_1 = false;
62690
62428
  }
62691
- protoOf(CoreClientConfigJS).t3m = function () {
62429
+ protoOf(CoreClientConfigJS).z3i = function () {
62692
62430
  return this.region;
62693
62431
  };
62694
- protoOf(CoreClientConfigJS).u3m = function (_set____db54di) {
62695
- this.o3m_1 = _set____db54di;
62432
+ protoOf(CoreClientConfigJS).a3j = function (_set____db54di) {
62433
+ this.u3i_1 = _set____db54di;
62696
62434
  };
62697
- protoOf(CoreClientConfigJS).v3m = function () {
62698
- return this.o3m_1;
62435
+ protoOf(CoreClientConfigJS).b3j = function () {
62436
+ return this.u3i_1;
62699
62437
  };
62700
- protoOf(CoreClientConfigJS).w3m = function (_set____db54di) {
62701
- this.p3m_1 = _set____db54di;
62438
+ protoOf(CoreClientConfigJS).c3j = function (_set____db54di) {
62439
+ this.v3i_1 = _set____db54di;
62702
62440
  };
62703
- protoOf(CoreClientConfigJS).x3m = function () {
62704
- return this.p3m_1;
62441
+ protoOf(CoreClientConfigJS).d3j = function () {
62442
+ return this.v3i_1;
62705
62443
  };
62706
- protoOf(CoreClientConfigJS).y3m = function (_set____db54di) {
62707
- this.q3m_1 = _set____db54di;
62444
+ protoOf(CoreClientConfigJS).e3j = function (_set____db54di) {
62445
+ this.w3i_1 = _set____db54di;
62708
62446
  };
62709
- protoOf(CoreClientConfigJS).z3m = function () {
62710
- return this.q3m_1;
62447
+ protoOf(CoreClientConfigJS).f3j = function () {
62448
+ return this.w3i_1;
62711
62449
  };
62712
- protoOf(CoreClientConfigJS).a3n = function (_set____db54di) {
62713
- this.r3m_1 = _set____db54di;
62450
+ protoOf(CoreClientConfigJS).g3j = function (_set____db54di) {
62451
+ this.x3i_1 = _set____db54di;
62714
62452
  };
62715
- protoOf(CoreClientConfigJS).b3n = function () {
62716
- return this.r3m_1;
62453
+ protoOf(CoreClientConfigJS).h3j = function () {
62454
+ return this.x3i_1;
62717
62455
  };
62718
- protoOf(CoreClientConfigJS).c3n = function (_set____db54di) {
62719
- this.s3m_1 = _set____db54di;
62456
+ protoOf(CoreClientConfigJS).i3j = function (_set____db54di) {
62457
+ this.y3i_1 = _set____db54di;
62720
62458
  };
62721
- protoOf(CoreClientConfigJS).d3n = function () {
62722
- return this.s3m_1;
62459
+ protoOf(CoreClientConfigJS).j3j = function () {
62460
+ return this.y3i_1;
62723
62461
  };
62724
62462
  defineProp(protoOf(CoreClientConfigJS), 'apiUrl', function () {
62725
- return this.v3m();
62463
+ return this.b3j();
62726
62464
  }, function (value) {
62727
- this.u3m(value);
62465
+ this.a3j(value);
62728
62466
  });
62729
62467
  defineProp(protoOf(CoreClientConfigJS), 'websocketUrl', function () {
62730
- return this.x3m();
62468
+ return this.d3j();
62731
62469
  }, function (value) {
62732
- this.w3m(value);
62470
+ this.c3j(value);
62733
62471
  });
62734
62472
  defineProp(protoOf(CoreClientConfigJS), 'websocketPath', function () {
62735
- return this.z3m();
62473
+ return this.f3j();
62736
62474
  }, function (value) {
62737
- this.y3m(value);
62475
+ this.e3j(value);
62738
62476
  });
62739
62477
  defineProp(protoOf(CoreClientConfigJS), 'rtcStatsTelemetry', function () {
62740
- return this.b3n();
62478
+ return this.h3j();
62741
62479
  }, function (value) {
62742
- this.a3n(value);
62480
+ this.g3j(value);
62743
62481
  });
62744
62482
  defineProp(protoOf(CoreClientConfigJS), 'autoReconnectMedia', function () {
62745
- return this.d3n();
62483
+ return this.j3j();
62746
62484
  }, function (value) {
62747
- this.c3n(value);
62485
+ this.i3j(value);
62748
62486
  });
62749
62487
  function TopicJS(name, tag) {
62750
62488
  this.name = name;
@@ -62753,7 +62491,7 @@ function requireClientsdkClientcore () {
62753
62491
  protoOf(TopicJS).mc = function () {
62754
62492
  return this.name;
62755
62493
  };
62756
- protoOf(TopicJS).e3n = function () {
62494
+ protoOf(TopicJS).k3j = function () {
62757
62495
  return this.tag;
62758
62496
  };
62759
62497
  protoOf(TopicJS).r2 = function () {
@@ -62762,13 +62500,13 @@ function requireClientsdkClientcore () {
62762
62500
  protoOf(TopicJS).s2 = function () {
62763
62501
  return this.tag;
62764
62502
  };
62765
- protoOf(TopicJS).f3n = function (name, tag) {
62503
+ protoOf(TopicJS).l3j = function (name, tag) {
62766
62504
  return new TopicJS(name, tag);
62767
62505
  };
62768
62506
  protoOf(TopicJS).copy = function (name, tag, $super) {
62769
62507
  name = name === VOID ? this.name : name;
62770
62508
  tag = tag === VOID ? this.tag : tag;
62771
- return this.f3n(name, tag);
62509
+ return this.l3j(name, tag);
62772
62510
  };
62773
62511
  protoOf(TopicJS).toString = function () {
62774
62512
  return 'TopicJS(name=' + this.name + ', tag=' + this.tag + ')';
@@ -62947,30 +62685,87 @@ function requireClientsdkClientcore () {
62947
62685
  };
62948
62686
  defineProp(protoOf(SessionErrorReasonJS), 'name', protoOf(SessionErrorReasonJS).mc, VOID);
62949
62687
  defineProp(protoOf(SessionErrorReasonJS), 'ordinal', protoOf(SessionErrorReasonJS).nc, VOID);
62950
- function ICoreClientJS$createSession$lambda$lambda($reject, $resolve) {
62688
+ function ICoreClientJS$createSession$lambda$lambda($resolve, $reject) {
62951
62689
  return function (err, sessionId) {
62952
- if (!(err == null))
62953
- $reject(err);
62954
- else if (!(sessionId == null))
62955
- $resolve(sessionId);
62956
- else
62957
- $reject(newThrowable(''));
62690
+ var tmp0_safe_receiver = sessionId;
62691
+ var tmp;
62692
+ if (tmp0_safe_receiver == null) {
62693
+ tmp = null;
62694
+ } else {
62695
+ // Inline function 'kotlin.let' call
62696
+ // Inline function 'kotlin.contracts.contract' call
62697
+ $resolve(tmp0_safe_receiver);
62698
+ tmp = Unit_getInstance();
62699
+ }
62700
+ var tmp2_elvis_lhs = tmp;
62701
+ var tmp_0;
62702
+ if (tmp2_elvis_lhs == null) {
62703
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
62704
+ var tmp_1;
62705
+ if (tmp1_safe_receiver == null) {
62706
+ tmp_1 = null;
62707
+ } else {
62708
+ // Inline function 'kotlin.let' call
62709
+ // Inline function 'kotlin.contracts.contract' call
62710
+ $reject(new VonageErrorJS(tmp1_safe_receiver));
62711
+ tmp_1 = Unit_getInstance();
62712
+ }
62713
+ tmp_0 = tmp_1;
62714
+ } else {
62715
+ tmp_0 = tmp2_elvis_lhs;
62716
+ }
62717
+ var tmp4_elvis_lhs = tmp_0;
62718
+ if (tmp4_elvis_lhs == null) {
62719
+ var tmp3_elvis_lhs = err;
62720
+ $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
62721
+ } else {
62722
+ Unit_getInstance();
62723
+ }
62958
62724
  return Unit_getInstance();
62959
62725
  };
62960
62726
  }
62961
62727
  function ICoreClientJS$createSession$lambda(this$0, $token, $sessionId) {
62962
62728
  return function (resolve, reject) {
62963
62729
  var tmp = this$0.core;
62964
- tmp.v19($token, $sessionId, ICoreClientJS$createSession$lambda$lambda(reject, resolve));
62730
+ tmp.v19($token, $sessionId, ICoreClientJS$createSession$lambda$lambda(resolve, reject));
62965
62731
  return Unit_getInstance();
62966
62732
  };
62967
62733
  }
62968
62734
  function ICoreClientJS$deleteSession$lambda$lambda($reject, $resolve) {
62969
62735
  return function (err) {
62970
- if (!(err == null))
62971
- $reject(err);
62972
- else
62736
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
62737
+ var tmp;
62738
+ if (tmp0_safe_receiver == null) {
62739
+ tmp = null;
62740
+ } else {
62741
+ // Inline function 'kotlin.let' call
62742
+ // Inline function 'kotlin.contracts.contract' call
62743
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
62744
+ tmp = Unit_getInstance();
62745
+ }
62746
+ var tmp2_elvis_lhs = tmp;
62747
+ var tmp_0;
62748
+ if (tmp2_elvis_lhs == null) {
62749
+ var tmp1_safe_receiver = err;
62750
+ var tmp_1;
62751
+ if (tmp1_safe_receiver == null) {
62752
+ tmp_1 = null;
62753
+ } else {
62754
+ // Inline function 'kotlin.let' call
62755
+ // Inline function 'kotlin.contracts.contract' call
62756
+ $reject(tmp1_safe_receiver);
62757
+ tmp_1 = Unit_getInstance();
62758
+ }
62759
+ tmp_0 = tmp_1;
62760
+ } else {
62761
+ tmp_0 = tmp2_elvis_lhs;
62762
+ }
62763
+ var tmp3_elvis_lhs = tmp_0;
62764
+ if (tmp3_elvis_lhs == null) {
62973
62765
  $resolve(null);
62766
+ } else {
62767
+ Unit_getInstance();
62768
+ }
62974
62769
  return Unit_getInstance();
62975
62770
  };
62976
62771
  }
@@ -62983,10 +62778,39 @@ function requireClientsdkClientcore () {
62983
62778
  }
62984
62779
  function ICoreClientJS$refreshSession$lambda$lambda($reject, $resolve) {
62985
62780
  return function (err) {
62986
- if (!(err == null))
62987
- $reject(err);
62988
- else
62781
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
62782
+ var tmp;
62783
+ if (tmp0_safe_receiver == null) {
62784
+ tmp = null;
62785
+ } else {
62786
+ // Inline function 'kotlin.let' call
62787
+ // Inline function 'kotlin.contracts.contract' call
62788
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
62789
+ tmp = Unit_getInstance();
62790
+ }
62791
+ var tmp2_elvis_lhs = tmp;
62792
+ var tmp_0;
62793
+ if (tmp2_elvis_lhs == null) {
62794
+ var tmp1_safe_receiver = err;
62795
+ var tmp_1;
62796
+ if (tmp1_safe_receiver == null) {
62797
+ tmp_1 = null;
62798
+ } else {
62799
+ // Inline function 'kotlin.let' call
62800
+ // Inline function 'kotlin.contracts.contract' call
62801
+ $reject(tmp1_safe_receiver);
62802
+ tmp_1 = Unit_getInstance();
62803
+ }
62804
+ tmp_0 = tmp_1;
62805
+ } else {
62806
+ tmp_0 = tmp2_elvis_lhs;
62807
+ }
62808
+ var tmp3_elvis_lhs = tmp_0;
62809
+ if (tmp3_elvis_lhs == null) {
62989
62810
  $resolve(null);
62811
+ } else {
62812
+ Unit_getInstance();
62813
+ }
62990
62814
  return Unit_getInstance();
62991
62815
  };
62992
62816
  }
@@ -63010,9 +62834,26 @@ function requireClientsdkClientcore () {
63010
62834
  tmp = Unit_getInstance();
63011
62835
  }
63012
62836
  var tmp2_elvis_lhs = tmp;
62837
+ var tmp_0;
63013
62838
  if (tmp2_elvis_lhs == null) {
63014
- var tmp1_elvis_lhs = err;
63015
- $reject(tmp1_elvis_lhs == null ? newThrowable() : tmp1_elvis_lhs);
62839
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
62840
+ var tmp_1;
62841
+ if (tmp1_safe_receiver == null) {
62842
+ tmp_1 = null;
62843
+ } else {
62844
+ // Inline function 'kotlin.let' call
62845
+ // Inline function 'kotlin.contracts.contract' call
62846
+ $reject(new VonageErrorJS(tmp1_safe_receiver));
62847
+ tmp_1 = Unit_getInstance();
62848
+ }
62849
+ tmp_0 = tmp_1;
62850
+ } else {
62851
+ tmp_0 = tmp2_elvis_lhs;
62852
+ }
62853
+ var tmp4_elvis_lhs = tmp_0;
62854
+ if (tmp4_elvis_lhs == null) {
62855
+ var tmp3_elvis_lhs = err;
62856
+ $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
63016
62857
  } else {
63017
62858
  Unit_getInstance();
63018
62859
  }
@@ -63039,9 +62880,26 @@ function requireClientsdkClientcore () {
63039
62880
  tmp = Unit_getInstance();
63040
62881
  }
63041
62882
  var tmp2_elvis_lhs = tmp;
62883
+ var tmp_0;
63042
62884
  if (tmp2_elvis_lhs == null) {
63043
- var tmp1_elvis_lhs = err;
63044
- $reject(tmp1_elvis_lhs == null ? newThrowable() : tmp1_elvis_lhs);
62885
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
62886
+ var tmp_1;
62887
+ if (tmp1_safe_receiver == null) {
62888
+ tmp_1 = null;
62889
+ } else {
62890
+ // Inline function 'kotlin.let' call
62891
+ // Inline function 'kotlin.contracts.contract' call
62892
+ $reject(new VonageErrorJS(tmp1_safe_receiver));
62893
+ tmp_1 = Unit_getInstance();
62894
+ }
62895
+ tmp_0 = tmp_1;
62896
+ } else {
62897
+ tmp_0 = tmp2_elvis_lhs;
62898
+ }
62899
+ var tmp4_elvis_lhs = tmp_0;
62900
+ if (tmp4_elvis_lhs == null) {
62901
+ var tmp3_elvis_lhs = err;
62902
+ $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
63045
62903
  } else {
63046
62904
  Unit_getInstance();
63047
62905
  }
@@ -63230,22 +63088,22 @@ function requireClientsdkClientcore () {
63230
63088
  return _this__u8e3s4 == null ? null : equals(_this__u8e3s4, undefined) ? null : _this__u8e3s4;
63231
63089
  }
63232
63090
  function createVonageLoggerJS$1($name, $minLogLevel, $topics, $onLog) {
63233
- this.p3n_1 = $onLog;
63234
- this.m3n_1 = $name;
63235
- this.n3n_1 = $minLogLevel;
63236
- this.o3n_1 = $topics;
63091
+ this.v3j_1 = $onLog;
63092
+ this.s3j_1 = $name;
63093
+ this.t3j_1 = $minLogLevel;
63094
+ this.u3j_1 = $topics;
63237
63095
  }
63238
63096
  protoOf(createVonageLoggerJS$1).mc = function () {
63239
- return this.m3n_1;
63097
+ return this.s3j_1;
63240
63098
  };
63241
63099
  protoOf(createVonageLoggerJS$1).c34 = function () {
63242
- return this.n3n_1;
63100
+ return this.t3j_1;
63243
63101
  };
63244
63102
  protoOf(createVonageLoggerJS$1).u33 = function () {
63245
- return this.o3n_1;
63103
+ return this.u3j_1;
63246
63104
  };
63247
63105
  protoOf(createVonageLoggerJS$1).onLog = function (logLevel, topic, message) {
63248
- this.p3n_1(logLevel, topic, message);
63106
+ this.v3j_1(logLevel, topic, message);
63249
63107
  };
63250
63108
  defineProp(protoOf(createVonageLoggerJS$1), 'name', function () {
63251
63109
  return this.mc();
@@ -63447,11 +63305,39 @@ function requireClientsdkClientcore () {
63447
63305
  defineProp(protoOf(HangupReasonJS), 'ordinal', protoOf(HangupReasonJS).nc, VOID);
63448
63306
  function IVoiceClientJS$serverCall$lambda$lambda($resolve, $reject) {
63449
63307
  return function (err, callId) {
63450
- if (!(callId == null)) {
63451
- $resolve(callId);
63308
+ var tmp0_safe_receiver = callId;
63309
+ var tmp;
63310
+ if (tmp0_safe_receiver == null) {
63311
+ tmp = null;
63312
+ } else {
63313
+ // Inline function 'kotlin.let' call
63314
+ // Inline function 'kotlin.contracts.contract' call
63315
+ $resolve(tmp0_safe_receiver);
63316
+ tmp = Unit_getInstance();
63317
+ }
63318
+ var tmp2_elvis_lhs = tmp;
63319
+ var tmp_0;
63320
+ if (tmp2_elvis_lhs == null) {
63321
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
63322
+ var tmp_1;
63323
+ if (tmp1_safe_receiver == null) {
63324
+ tmp_1 = null;
63325
+ } else {
63326
+ // Inline function 'kotlin.let' call
63327
+ // Inline function 'kotlin.contracts.contract' call
63328
+ $reject(new VonageErrorJS(tmp1_safe_receiver));
63329
+ tmp_1 = Unit_getInstance();
63330
+ }
63331
+ tmp_0 = tmp_1;
63332
+ } else {
63333
+ tmp_0 = tmp2_elvis_lhs;
63334
+ }
63335
+ var tmp4_elvis_lhs = tmp_0;
63336
+ if (tmp4_elvis_lhs == null) {
63337
+ var tmp3_elvis_lhs = err;
63338
+ $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
63452
63339
  } else {
63453
- var tmp0_elvis_lhs = err;
63454
- $reject(tmp0_elvis_lhs == null ? newThrowable('') : tmp0_elvis_lhs);
63340
+ Unit_getInstance();
63455
63341
  }
63456
63342
  return Unit_getInstance();
63457
63343
  };
@@ -63465,10 +63351,38 @@ function requireClientsdkClientcore () {
63465
63351
  }
63466
63352
  function IVoiceClientJS$reconnectCall$lambda$lambda($reject, $resolve) {
63467
63353
  return function (err) {
63468
- if (!(err == null)) {
63469
- $reject(err instanceof Error ? err : THROW_CCE());
63354
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63355
+ var tmp;
63356
+ if (tmp0_safe_receiver == null) {
63357
+ tmp = null;
63470
63358
  } else {
63359
+ // Inline function 'kotlin.let' call
63360
+ // Inline function 'kotlin.contracts.contract' call
63361
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63362
+ tmp = Unit_getInstance();
63363
+ }
63364
+ var tmp2_elvis_lhs = tmp;
63365
+ var tmp_0;
63366
+ if (tmp2_elvis_lhs == null) {
63367
+ var tmp1_safe_receiver = err;
63368
+ var tmp_1;
63369
+ if (tmp1_safe_receiver == null) {
63370
+ tmp_1 = null;
63371
+ } else {
63372
+ // Inline function 'kotlin.let' call
63373
+ // Inline function 'kotlin.contracts.contract' call
63374
+ $reject(tmp1_safe_receiver);
63375
+ tmp_1 = Unit_getInstance();
63376
+ }
63377
+ tmp_0 = tmp_1;
63378
+ } else {
63379
+ tmp_0 = tmp2_elvis_lhs;
63380
+ }
63381
+ var tmp3_elvis_lhs = tmp_0;
63382
+ if (tmp3_elvis_lhs == null) {
63471
63383
  $resolve(null);
63384
+ } else {
63385
+ Unit_getInstance();
63472
63386
  }
63473
63387
  return Unit_getInstance();
63474
63388
  };
@@ -63482,11 +63396,39 @@ function requireClientsdkClientcore () {
63482
63396
  }
63483
63397
  function IVoiceClientJS$getLeg$lambda$lambda($resolve, $reject) {
63484
63398
  return function (err, leg) {
63485
- if (!(leg == null)) {
63486
- $resolve(new LegJS(leg));
63399
+ var tmp0_safe_receiver = leg;
63400
+ var tmp;
63401
+ if (tmp0_safe_receiver == null) {
63402
+ tmp = null;
63403
+ } else {
63404
+ // Inline function 'kotlin.let' call
63405
+ // Inline function 'kotlin.contracts.contract' call
63406
+ $resolve(new LegJS(tmp0_safe_receiver));
63407
+ tmp = Unit_getInstance();
63408
+ }
63409
+ var tmp2_elvis_lhs = tmp;
63410
+ var tmp_0;
63411
+ if (tmp2_elvis_lhs == null) {
63412
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
63413
+ var tmp_1;
63414
+ if (tmp1_safe_receiver == null) {
63415
+ tmp_1 = null;
63416
+ } else {
63417
+ // Inline function 'kotlin.let' call
63418
+ // Inline function 'kotlin.contracts.contract' call
63419
+ $reject(new VonageErrorJS(tmp1_safe_receiver));
63420
+ tmp_1 = Unit_getInstance();
63421
+ }
63422
+ tmp_0 = tmp_1;
63423
+ } else {
63424
+ tmp_0 = tmp2_elvis_lhs;
63425
+ }
63426
+ var tmp4_elvis_lhs = tmp_0;
63427
+ if (tmp4_elvis_lhs == null) {
63428
+ var tmp3_elvis_lhs = err;
63429
+ $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
63487
63430
  } else {
63488
- var tmp0_elvis_lhs = err;
63489
- $reject(tmp0_elvis_lhs == null ? newThrowable('') : tmp0_elvis_lhs);
63431
+ Unit_getInstance();
63490
63432
  }
63491
63433
  return Unit_getInstance();
63492
63434
  };
@@ -63499,11 +63441,39 @@ function requireClientsdkClientcore () {
63499
63441
  };
63500
63442
  }
63501
63443
  function IVoiceClientJS$answer$lambda$lambda($reject, $resolve) {
63502
- return function (it) {
63503
- if (!(it == null)) {
63504
- $reject(it instanceof Error ? it : THROW_CCE());
63444
+ return function (err) {
63445
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63446
+ var tmp;
63447
+ if (tmp0_safe_receiver == null) {
63448
+ tmp = null;
63505
63449
  } else {
63450
+ // Inline function 'kotlin.let' call
63451
+ // Inline function 'kotlin.contracts.contract' call
63452
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63453
+ tmp = Unit_getInstance();
63454
+ }
63455
+ var tmp2_elvis_lhs = tmp;
63456
+ var tmp_0;
63457
+ if (tmp2_elvis_lhs == null) {
63458
+ var tmp1_safe_receiver = err;
63459
+ var tmp_1;
63460
+ if (tmp1_safe_receiver == null) {
63461
+ tmp_1 = null;
63462
+ } else {
63463
+ // Inline function 'kotlin.let' call
63464
+ // Inline function 'kotlin.contracts.contract' call
63465
+ $reject(tmp1_safe_receiver);
63466
+ tmp_1 = Unit_getInstance();
63467
+ }
63468
+ tmp_0 = tmp_1;
63469
+ } else {
63470
+ tmp_0 = tmp2_elvis_lhs;
63471
+ }
63472
+ var tmp3_elvis_lhs = tmp_0;
63473
+ if (tmp3_elvis_lhs == null) {
63506
63474
  $resolve(null);
63475
+ } else {
63476
+ Unit_getInstance();
63507
63477
  }
63508
63478
  return Unit_getInstance();
63509
63479
  };
@@ -63516,11 +63486,39 @@ function requireClientsdkClientcore () {
63516
63486
  };
63517
63487
  }
63518
63488
  function IVoiceClientJS$reject$lambda$lambda($reject, $resolve) {
63519
- return function (it) {
63520
- if (!(it == null)) {
63521
- $reject(it instanceof Error ? it : THROW_CCE());
63489
+ return function (err) {
63490
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63491
+ var tmp;
63492
+ if (tmp0_safe_receiver == null) {
63493
+ tmp = null;
63494
+ } else {
63495
+ // Inline function 'kotlin.let' call
63496
+ // Inline function 'kotlin.contracts.contract' call
63497
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63498
+ tmp = Unit_getInstance();
63499
+ }
63500
+ var tmp2_elvis_lhs = tmp;
63501
+ var tmp_0;
63502
+ if (tmp2_elvis_lhs == null) {
63503
+ var tmp1_safe_receiver = err;
63504
+ var tmp_1;
63505
+ if (tmp1_safe_receiver == null) {
63506
+ tmp_1 = null;
63507
+ } else {
63508
+ // Inline function 'kotlin.let' call
63509
+ // Inline function 'kotlin.contracts.contract' call
63510
+ $reject(tmp1_safe_receiver);
63511
+ tmp_1 = Unit_getInstance();
63512
+ }
63513
+ tmp_0 = tmp_1;
63522
63514
  } else {
63515
+ tmp_0 = tmp2_elvis_lhs;
63516
+ }
63517
+ var tmp3_elvis_lhs = tmp_0;
63518
+ if (tmp3_elvis_lhs == null) {
63523
63519
  $resolve(null);
63520
+ } else {
63521
+ Unit_getInstance();
63524
63522
  }
63525
63523
  return Unit_getInstance();
63526
63524
  };
@@ -63532,13 +63530,40 @@ function requireClientsdkClientcore () {
63532
63530
  return Unit_getInstance();
63533
63531
  };
63534
63532
  }
63535
- function IVoiceClientJS$hangup$lambda$lambda($resolve, $reject) {
63536
- return function (it) {
63537
- var tmp0_subject = it;
63538
- if (tmp0_subject == null) {
63533
+ function IVoiceClientJS$hangup$lambda$lambda($reject, $resolve) {
63534
+ return function (err) {
63535
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63536
+ var tmp;
63537
+ if (tmp0_safe_receiver == null) {
63538
+ tmp = null;
63539
+ } else {
63540
+ // Inline function 'kotlin.let' call
63541
+ // Inline function 'kotlin.contracts.contract' call
63542
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63543
+ tmp = Unit_getInstance();
63544
+ }
63545
+ var tmp2_elvis_lhs = tmp;
63546
+ var tmp_0;
63547
+ if (tmp2_elvis_lhs == null) {
63548
+ var tmp1_safe_receiver = err;
63549
+ var tmp_1;
63550
+ if (tmp1_safe_receiver == null) {
63551
+ tmp_1 = null;
63552
+ } else {
63553
+ // Inline function 'kotlin.let' call
63554
+ // Inline function 'kotlin.contracts.contract' call
63555
+ $reject(tmp1_safe_receiver);
63556
+ tmp_1 = Unit_getInstance();
63557
+ }
63558
+ tmp_0 = tmp_1;
63559
+ } else {
63560
+ tmp_0 = tmp2_elvis_lhs;
63561
+ }
63562
+ var tmp3_elvis_lhs = tmp_0;
63563
+ if (tmp3_elvis_lhs == null) {
63539
63564
  $resolve(null);
63540
63565
  } else {
63541
- $reject(it instanceof Error ? it : THROW_CCE());
63566
+ Unit_getInstance();
63542
63567
  }
63543
63568
  return Unit_getInstance();
63544
63569
  };
@@ -63546,16 +63571,44 @@ function requireClientsdkClientcore () {
63546
63571
  function IVoiceClientJS$hangup$lambda(this$0, $callId, $reasonText, $reasonCode) {
63547
63572
  return function (resolve, reject) {
63548
63573
  var tmp = this$0.core;
63549
- tmp.c18($callId, $reasonText, $reasonCode, IVoiceClientJS$hangup$lambda$lambda(resolve, reject));
63574
+ tmp.c18($callId, $reasonText, $reasonCode, IVoiceClientJS$hangup$lambda$lambda(reject, resolve));
63550
63575
  return Unit_getInstance();
63551
63576
  };
63552
63577
  }
63553
63578
  function IVoiceClientJS$say$lambda$lambda($reject, $resolve) {
63554
- return function (it) {
63555
- if (!(it == null)) {
63556
- $reject(it instanceof Error ? it : THROW_CCE());
63579
+ return function (err) {
63580
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63581
+ var tmp;
63582
+ if (tmp0_safe_receiver == null) {
63583
+ tmp = null;
63584
+ } else {
63585
+ // Inline function 'kotlin.let' call
63586
+ // Inline function 'kotlin.contracts.contract' call
63587
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63588
+ tmp = Unit_getInstance();
63589
+ }
63590
+ var tmp2_elvis_lhs = tmp;
63591
+ var tmp_0;
63592
+ if (tmp2_elvis_lhs == null) {
63593
+ var tmp1_safe_receiver = err;
63594
+ var tmp_1;
63595
+ if (tmp1_safe_receiver == null) {
63596
+ tmp_1 = null;
63597
+ } else {
63598
+ // Inline function 'kotlin.let' call
63599
+ // Inline function 'kotlin.contracts.contract' call
63600
+ $reject(tmp1_safe_receiver);
63601
+ tmp_1 = Unit_getInstance();
63602
+ }
63603
+ tmp_0 = tmp_1;
63557
63604
  } else {
63605
+ tmp_0 = tmp2_elvis_lhs;
63606
+ }
63607
+ var tmp3_elvis_lhs = tmp_0;
63608
+ if (tmp3_elvis_lhs == null) {
63558
63609
  $resolve(null);
63610
+ } else {
63611
+ Unit_getInstance();
63559
63612
  }
63560
63613
  return Unit_getInstance();
63561
63614
  };
@@ -63579,11 +63632,39 @@ function requireClientsdkClientcore () {
63579
63632
  };
63580
63633
  }
63581
63634
  function IVoiceClientJS$mute$lambda$lambda($reject, $resolve) {
63582
- return function (it) {
63583
- if (!(it == null)) {
63584
- $reject(it instanceof Error ? it : THROW_CCE());
63635
+ return function (err) {
63636
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63637
+ var tmp;
63638
+ if (tmp0_safe_receiver == null) {
63639
+ tmp = null;
63640
+ } else {
63641
+ // Inline function 'kotlin.let' call
63642
+ // Inline function 'kotlin.contracts.contract' call
63643
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63644
+ tmp = Unit_getInstance();
63645
+ }
63646
+ var tmp2_elvis_lhs = tmp;
63647
+ var tmp_0;
63648
+ if (tmp2_elvis_lhs == null) {
63649
+ var tmp1_safe_receiver = err;
63650
+ var tmp_1;
63651
+ if (tmp1_safe_receiver == null) {
63652
+ tmp_1 = null;
63653
+ } else {
63654
+ // Inline function 'kotlin.let' call
63655
+ // Inline function 'kotlin.contracts.contract' call
63656
+ $reject(tmp1_safe_receiver);
63657
+ tmp_1 = Unit_getInstance();
63658
+ }
63659
+ tmp_0 = tmp_1;
63585
63660
  } else {
63661
+ tmp_0 = tmp2_elvis_lhs;
63662
+ }
63663
+ var tmp3_elvis_lhs = tmp_0;
63664
+ if (tmp3_elvis_lhs == null) {
63586
63665
  $resolve(null);
63666
+ } else {
63667
+ Unit_getInstance();
63587
63668
  }
63588
63669
  return Unit_getInstance();
63589
63670
  };
@@ -63596,11 +63677,40 @@ function requireClientsdkClientcore () {
63596
63677
  };
63597
63678
  }
63598
63679
  function IVoiceClientJS$unmute$lambda$lambda($reject, $resolve) {
63599
- return function (it) {
63600
- if (!(it == null))
63601
- $reject(it);
63602
- else
63680
+ return function (err) {
63681
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63682
+ var tmp;
63683
+ if (tmp0_safe_receiver == null) {
63684
+ tmp = null;
63685
+ } else {
63686
+ // Inline function 'kotlin.let' call
63687
+ // Inline function 'kotlin.contracts.contract' call
63688
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63689
+ tmp = Unit_getInstance();
63690
+ }
63691
+ var tmp2_elvis_lhs = tmp;
63692
+ var tmp_0;
63693
+ if (tmp2_elvis_lhs == null) {
63694
+ var tmp1_safe_receiver = err;
63695
+ var tmp_1;
63696
+ if (tmp1_safe_receiver == null) {
63697
+ tmp_1 = null;
63698
+ } else {
63699
+ // Inline function 'kotlin.let' call
63700
+ // Inline function 'kotlin.contracts.contract' call
63701
+ $reject(tmp1_safe_receiver);
63702
+ tmp_1 = Unit_getInstance();
63703
+ }
63704
+ tmp_0 = tmp_1;
63705
+ } else {
63706
+ tmp_0 = tmp2_elvis_lhs;
63707
+ }
63708
+ var tmp3_elvis_lhs = tmp_0;
63709
+ if (tmp3_elvis_lhs == null) {
63603
63710
  $resolve(null);
63711
+ } else {
63712
+ Unit_getInstance();
63713
+ }
63604
63714
  return Unit_getInstance();
63605
63715
  };
63606
63716
  }
@@ -63612,11 +63722,40 @@ function requireClientsdkClientcore () {
63612
63722
  };
63613
63723
  }
63614
63724
  function IVoiceClientJS$enableEarmuff$lambda$lambda($reject, $resolve) {
63615
- return function (it) {
63616
- if (!(it == null))
63617
- $reject(it);
63618
- else
63725
+ return function (err) {
63726
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63727
+ var tmp;
63728
+ if (tmp0_safe_receiver == null) {
63729
+ tmp = null;
63730
+ } else {
63731
+ // Inline function 'kotlin.let' call
63732
+ // Inline function 'kotlin.contracts.contract' call
63733
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63734
+ tmp = Unit_getInstance();
63735
+ }
63736
+ var tmp2_elvis_lhs = tmp;
63737
+ var tmp_0;
63738
+ if (tmp2_elvis_lhs == null) {
63739
+ var tmp1_safe_receiver = err;
63740
+ var tmp_1;
63741
+ if (tmp1_safe_receiver == null) {
63742
+ tmp_1 = null;
63743
+ } else {
63744
+ // Inline function 'kotlin.let' call
63745
+ // Inline function 'kotlin.contracts.contract' call
63746
+ $reject(tmp1_safe_receiver);
63747
+ tmp_1 = Unit_getInstance();
63748
+ }
63749
+ tmp_0 = tmp_1;
63750
+ } else {
63751
+ tmp_0 = tmp2_elvis_lhs;
63752
+ }
63753
+ var tmp3_elvis_lhs = tmp_0;
63754
+ if (tmp3_elvis_lhs == null) {
63619
63755
  $resolve(null);
63756
+ } else {
63757
+ Unit_getInstance();
63758
+ }
63620
63759
  return Unit_getInstance();
63621
63760
  };
63622
63761
  }
@@ -63628,11 +63767,40 @@ function requireClientsdkClientcore () {
63628
63767
  };
63629
63768
  }
63630
63769
  function IVoiceClientJS$disableEarmuff$lambda$lambda($reject, $resolve) {
63631
- return function (it) {
63632
- if (!(it == null))
63633
- $reject(it);
63634
- else
63770
+ return function (err) {
63771
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63772
+ var tmp;
63773
+ if (tmp0_safe_receiver == null) {
63774
+ tmp = null;
63775
+ } else {
63776
+ // Inline function 'kotlin.let' call
63777
+ // Inline function 'kotlin.contracts.contract' call
63778
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63779
+ tmp = Unit_getInstance();
63780
+ }
63781
+ var tmp2_elvis_lhs = tmp;
63782
+ var tmp_0;
63783
+ if (tmp2_elvis_lhs == null) {
63784
+ var tmp1_safe_receiver = err;
63785
+ var tmp_1;
63786
+ if (tmp1_safe_receiver == null) {
63787
+ tmp_1 = null;
63788
+ } else {
63789
+ // Inline function 'kotlin.let' call
63790
+ // Inline function 'kotlin.contracts.contract' call
63791
+ $reject(tmp1_safe_receiver);
63792
+ tmp_1 = Unit_getInstance();
63793
+ }
63794
+ tmp_0 = tmp_1;
63795
+ } else {
63796
+ tmp_0 = tmp2_elvis_lhs;
63797
+ }
63798
+ var tmp3_elvis_lhs = tmp_0;
63799
+ if (tmp3_elvis_lhs == null) {
63635
63800
  $resolve(null);
63801
+ } else {
63802
+ Unit_getInstance();
63803
+ }
63636
63804
  return Unit_getInstance();
63637
63805
  };
63638
63806
  }
@@ -63644,11 +63812,40 @@ function requireClientsdkClientcore () {
63644
63812
  };
63645
63813
  }
63646
63814
  function IVoiceClientJS$sendDTMF$lambda$lambda($reject, $resolve) {
63647
- return function (it) {
63648
- if (!(it == null))
63649
- $reject(it);
63650
- else
63815
+ return function (err) {
63816
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63817
+ var tmp;
63818
+ if (tmp0_safe_receiver == null) {
63819
+ tmp = null;
63820
+ } else {
63821
+ // Inline function 'kotlin.let' call
63822
+ // Inline function 'kotlin.contracts.contract' call
63823
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63824
+ tmp = Unit_getInstance();
63825
+ }
63826
+ var tmp2_elvis_lhs = tmp;
63827
+ var tmp_0;
63828
+ if (tmp2_elvis_lhs == null) {
63829
+ var tmp1_safe_receiver = err;
63830
+ var tmp_1;
63831
+ if (tmp1_safe_receiver == null) {
63832
+ tmp_1 = null;
63833
+ } else {
63834
+ // Inline function 'kotlin.let' call
63835
+ // Inline function 'kotlin.contracts.contract' call
63836
+ $reject(tmp1_safe_receiver);
63837
+ tmp_1 = Unit_getInstance();
63838
+ }
63839
+ tmp_0 = tmp_1;
63840
+ } else {
63841
+ tmp_0 = tmp2_elvis_lhs;
63842
+ }
63843
+ var tmp3_elvis_lhs = tmp_0;
63844
+ if (tmp3_elvis_lhs == null) {
63651
63845
  $resolve(null);
63846
+ } else {
63847
+ Unit_getInstance();
63848
+ }
63652
63849
  return Unit_getInstance();
63653
63850
  };
63654
63851
  }
@@ -63677,13 +63874,13 @@ function requireClientsdkClientcore () {
63677
63874
  protoOf(VoiceInviteFromInfoJS).s2 = function () {
63678
63875
  return this.type;
63679
63876
  };
63680
- protoOf(VoiceInviteFromInfoJS).w3n = function (id, type) {
63877
+ protoOf(VoiceInviteFromInfoJS).c3k = function (id, type) {
63681
63878
  return new VoiceInviteFromInfoJS(id, type);
63682
63879
  };
63683
63880
  protoOf(VoiceInviteFromInfoJS).copy = function (id, type, $super) {
63684
63881
  id = id === VOID ? this.id : id;
63685
63882
  type = type === VOID ? this.type : type;
63686
- return this.w3n(id, type);
63883
+ return this.c3k(id, type);
63687
63884
  };
63688
63885
  protoOf(VoiceInviteFromInfoJS).toString = function () {
63689
63886
  return 'VoiceInviteFromInfoJS(id=' + this.id + ', type=' + this.type + ')';
@@ -63797,41 +63994,41 @@ function requireClientsdkClientcore () {
63797
63994
  cause = cause === VOID ? null : cause;
63798
63995
  extendThrowable(this);
63799
63996
  captureStack(this, HttpClientErrorJS);
63800
- this.x3n_1 = message;
63801
- this.y3n_1 = cause;
63997
+ this.d3k_1 = message;
63998
+ this.e3k_1 = cause;
63802
63999
  }
63803
64000
  protoOf(HttpClientErrorJS).i5 = function () {
63804
- return this.x3n_1;
64001
+ return this.d3k_1;
63805
64002
  };
63806
64003
  protoOf(HttpClientErrorJS).j5 = function () {
63807
- return this.y3n_1;
64004
+ return this.e3k_1;
63808
64005
  };
63809
- protoOf(HttpClientErrorJS).z3n = function () {
63810
- var tmp0_elvis_lhs = this.x3n_1;
64006
+ protoOf(HttpClientErrorJS).f3k = function () {
64007
+ var tmp0_elvis_lhs = this.d3k_1;
63811
64008
  var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
63812
- var tmp_0 = this.y3n_1;
64009
+ var tmp_0 = this.e3k_1;
63813
64010
  return new HTTPClientError(tmp, tmp_0 instanceof Exception ? tmp_0 : null);
63814
64011
  };
63815
64012
  protoOf(HttpClientErrorJS).r2 = function () {
63816
- return this.x3n_1;
64013
+ return this.d3k_1;
63817
64014
  };
63818
64015
  protoOf(HttpClientErrorJS).s2 = function () {
63819
- return this.y3n_1;
64016
+ return this.e3k_1;
63820
64017
  };
63821
- protoOf(HttpClientErrorJS).a3o = function (message, cause) {
64018
+ protoOf(HttpClientErrorJS).g3k = function (message, cause) {
63822
64019
  return new HttpClientErrorJS(message, cause);
63823
64020
  };
63824
64021
  protoOf(HttpClientErrorJS).copy = function (message, cause, $super) {
63825
- message = message === VOID ? this.x3n_1 : message;
63826
- cause = cause === VOID ? this.y3n_1 : cause;
63827
- return this.a3o(message, cause);
64022
+ message = message === VOID ? this.d3k_1 : message;
64023
+ cause = cause === VOID ? this.e3k_1 : cause;
64024
+ return this.g3k(message, cause);
63828
64025
  };
63829
64026
  protoOf(HttpClientErrorJS).toString = function () {
63830
- return 'HttpClientErrorJS(message=' + this.x3n_1 + ', cause=' + this.y3n_1 + ')';
64027
+ return 'HttpClientErrorJS(message=' + this.d3k_1 + ', cause=' + this.e3k_1 + ')';
63831
64028
  };
63832
64029
  protoOf(HttpClientErrorJS).hashCode = function () {
63833
- var result = this.x3n_1 == null ? 0 : getStringHashCode(this.x3n_1);
63834
- result = imul(result, 31) + (this.y3n_1 == null ? 0 : hashCode(this.y3n_1)) | 0;
64030
+ var result = this.d3k_1 == null ? 0 : getStringHashCode(this.d3k_1);
64031
+ result = imul(result, 31) + (this.e3k_1 == null ? 0 : hashCode(this.e3k_1)) | 0;
63835
64032
  return result;
63836
64033
  };
63837
64034
  protoOf(HttpClientErrorJS).equals = function (other) {
@@ -63840,9 +64037,9 @@ function requireClientsdkClientcore () {
63840
64037
  if (!(other instanceof HttpClientErrorJS))
63841
64038
  return false;
63842
64039
  var tmp0_other_with_cast = other instanceof HttpClientErrorJS ? other : THROW_CCE();
63843
- if (!(this.x3n_1 == tmp0_other_with_cast.x3n_1))
64040
+ if (!(this.d3k_1 == tmp0_other_with_cast.d3k_1))
63844
64041
  return false;
63845
- if (!equals(this.y3n_1, tmp0_other_with_cast.y3n_1))
64042
+ if (!equals(this.e3k_1, tmp0_other_with_cast.e3k_1))
63846
64043
  return false;
63847
64044
  return true;
63848
64045
  };
@@ -63852,13 +64049,13 @@ function requireClientsdkClientcore () {
63852
64049
  defineProp(protoOf(HttpClientErrorJS), 'cause', function () {
63853
64050
  return this.j5();
63854
64051
  }, VOID);
63855
- defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).z3n, VOID);
64052
+ defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).f3k, VOID);
63856
64053
  function HttpClientResponseJS(statusCode, body) {
63857
64054
  body = body === VOID ? null : body;
63858
64055
  this.statusCode = statusCode;
63859
64056
  this.body = body;
63860
64057
  }
63861
- protoOf(HttpClientResponseJS).b3o = function () {
64058
+ protoOf(HttpClientResponseJS).h3k = function () {
63862
64059
  return this.statusCode;
63863
64060
  };
63864
64061
  protoOf(HttpClientResponseJS).b3f = function () {
@@ -63870,13 +64067,13 @@ function requireClientsdkClientcore () {
63870
64067
  protoOf(HttpClientResponseJS).s2 = function () {
63871
64068
  return this.body;
63872
64069
  };
63873
- protoOf(HttpClientResponseJS).c3o = function (statusCode, body) {
64070
+ protoOf(HttpClientResponseJS).i3k = function (statusCode, body) {
63874
64071
  return new HttpClientResponseJS(statusCode, body);
63875
64072
  };
63876
64073
  protoOf(HttpClientResponseJS).copy = function (statusCode, body, $super) {
63877
64074
  statusCode = statusCode === VOID ? this.statusCode : statusCode;
63878
64075
  body = body === VOID ? this.body : body;
63879
- return this.c3o(statusCode, body);
64076
+ return this.i3k(statusCode, body);
63880
64077
  };
63881
64078
  protoOf(HttpClientResponseJS).toString = function () {
63882
64079
  return 'HttpClientResponseJS(statusCode=' + this.statusCode + ', body=' + this.body + ')';
@@ -63979,31 +64176,31 @@ function requireClientsdkClientcore () {
63979
64176
  this.packet_cnt = packet_cnt;
63980
64177
  this.packet_loss_perc = packet_loss_perc;
63981
64178
  }
63982
- protoOf(RTCQualityJS).f3o = function () {
64179
+ protoOf(RTCQualityJS).l3k = function () {
63983
64180
  return this.mos_score;
63984
64181
  };
63985
- protoOf(RTCQualityJS).g3o = function () {
64182
+ protoOf(RTCQualityJS).m3k = function () {
63986
64183
  return this.quality_percentage;
63987
64184
  };
63988
- protoOf(RTCQualityJS).h3o = function () {
64185
+ protoOf(RTCQualityJS).n3k = function () {
63989
64186
  return this.jitter_min_var;
63990
64187
  };
63991
- protoOf(RTCQualityJS).i3o = function () {
64188
+ protoOf(RTCQualityJS).o3k = function () {
63992
64189
  return this.jitter_max_var;
63993
64190
  };
63994
- protoOf(RTCQualityJS).j3o = function () {
64191
+ protoOf(RTCQualityJS).p3k = function () {
63995
64192
  return this.jitter_loss_rate;
63996
64193
  };
63997
- protoOf(RTCQualityJS).k3o = function () {
64194
+ protoOf(RTCQualityJS).q3k = function () {
63998
64195
  return this.jitter_burst_rate;
63999
64196
  };
64000
- protoOf(RTCQualityJS).l3o = function () {
64197
+ protoOf(RTCQualityJS).r3k = function () {
64001
64198
  return this.flaw_total;
64002
64199
  };
64003
- protoOf(RTCQualityJS).m3o = function () {
64200
+ protoOf(RTCQualityJS).s3k = function () {
64004
64201
  return this.packet_cnt;
64005
64202
  };
64006
- protoOf(RTCQualityJS).n3o = function () {
64203
+ protoOf(RTCQualityJS).t3k = function () {
64007
64204
  return this.packet_loss_perc;
64008
64205
  };
64009
64206
  protoOf(RTCQualityJS).r2 = function () {
@@ -64012,28 +64209,28 @@ function requireClientsdkClientcore () {
64012
64209
  protoOf(RTCQualityJS).s2 = function () {
64013
64210
  return this.quality_percentage;
64014
64211
  };
64015
- protoOf(RTCQualityJS).o3o = function () {
64212
+ protoOf(RTCQualityJS).u3k = function () {
64016
64213
  return this.jitter_min_var;
64017
64214
  };
64018
- protoOf(RTCQualityJS).p3o = function () {
64215
+ protoOf(RTCQualityJS).v3k = function () {
64019
64216
  return this.jitter_max_var;
64020
64217
  };
64021
- protoOf(RTCQualityJS).q3o = function () {
64218
+ protoOf(RTCQualityJS).w3k = function () {
64022
64219
  return this.jitter_loss_rate;
64023
64220
  };
64024
- protoOf(RTCQualityJS).r3o = function () {
64221
+ protoOf(RTCQualityJS).x3k = function () {
64025
64222
  return this.jitter_burst_rate;
64026
64223
  };
64027
- protoOf(RTCQualityJS).s3o = function () {
64224
+ protoOf(RTCQualityJS).y3k = function () {
64028
64225
  return this.flaw_total;
64029
64226
  };
64030
- protoOf(RTCQualityJS).t3o = function () {
64227
+ protoOf(RTCQualityJS).z3k = function () {
64031
64228
  return this.packet_cnt;
64032
64229
  };
64033
- protoOf(RTCQualityJS).u3o = function () {
64230
+ protoOf(RTCQualityJS).a3l = function () {
64034
64231
  return this.packet_loss_perc;
64035
64232
  };
64036
- protoOf(RTCQualityJS).v3o = function (mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc) {
64233
+ protoOf(RTCQualityJS).b3l = function (mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc) {
64037
64234
  return new RTCQualityJS(mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc);
64038
64235
  };
64039
64236
  protoOf(RTCQualityJS).copy = function (mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc, $super) {
@@ -64046,7 +64243,7 @@ function requireClientsdkClientcore () {
64046
64243
  flaw_total = flaw_total === VOID ? this.flaw_total : flaw_total;
64047
64244
  packet_cnt = packet_cnt === VOID ? this.packet_cnt : packet_cnt;
64048
64245
  packet_loss_perc = packet_loss_perc === VOID ? this.packet_loss_perc : packet_loss_perc;
64049
- return this.v3o(mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc);
64246
+ return this.b3l(mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc);
64050
64247
  };
64051
64248
  protoOf(RTCQualityJS).toString = function () {
64052
64249
  return 'RTCQualityJS(mos_score=' + this.mos_score + ', quality_percentage=' + this.quality_percentage + ', jitter_min_var=' + this.jitter_min_var + ', jitter_max_var=' + this.jitter_max_var + ', jitter_loss_rate=' + this.jitter_loss_rate + ', jitter_burst_rate=' + this.jitter_burst_rate + ', flaw_total=' + this.flaw_total + ', packet_cnt=' + this.packet_cnt + ', packet_loss_perc=' + this.packet_loss_perc + ')';
@@ -64113,34 +64310,34 @@ function requireClientsdkClientcore () {
64113
64310
  this.audioRtt = audioRtt;
64114
64311
  this.audioSentJitter = audioSentJitter;
64115
64312
  }
64116
- protoOf(RTCStatsJS).w3o = function () {
64313
+ protoOf(RTCStatsJS).c3l = function () {
64117
64314
  return this.audioRecvPackets;
64118
64315
  };
64119
- protoOf(RTCStatsJS).x3o = function () {
64316
+ protoOf(RTCStatsJS).d3l = function () {
64120
64317
  return this.audioRecvPacketsLost;
64121
64318
  };
64122
- protoOf(RTCStatsJS).y3o = function () {
64319
+ protoOf(RTCStatsJS).e3l = function () {
64123
64320
  return this.audioRecvBytes;
64124
64321
  };
64125
- protoOf(RTCStatsJS).z3o = function () {
64322
+ protoOf(RTCStatsJS).f3l = function () {
64126
64323
  return this.audioRecvJitter;
64127
64324
  };
64128
- protoOf(RTCStatsJS).a3p = function () {
64325
+ protoOf(RTCStatsJS).g3l = function () {
64129
64326
  return this.audioSentPackets;
64130
64327
  };
64131
- protoOf(RTCStatsJS).b3p = function () {
64328
+ protoOf(RTCStatsJS).h3l = function () {
64132
64329
  return this.audioSentBytes;
64133
64330
  };
64134
- protoOf(RTCStatsJS).c3p = function () {
64331
+ protoOf(RTCStatsJS).i3l = function () {
64135
64332
  return this.audioSentPacketsLost;
64136
64333
  };
64137
- protoOf(RTCStatsJS).d3p = function () {
64334
+ protoOf(RTCStatsJS).j3l = function () {
64138
64335
  return this.audioRtt;
64139
64336
  };
64140
- protoOf(RTCStatsJS).e3p = function () {
64337
+ protoOf(RTCStatsJS).k3l = function () {
64141
64338
  return this.audioSentJitter;
64142
64339
  };
64143
- protoOf(RTCStatsJS).f3p = function () {
64340
+ protoOf(RTCStatsJS).l3l = function () {
64144
64341
  return new RTCStats(numberToLong(this.audioRecvPackets), numberToInt(this.audioRecvPacketsLost), numberToLong(this.audioRecvBytes), numberToDouble(this.audioRecvJitter), numberToLong(this.audioSentPackets), numberToLong(this.audioSentBytes), numberToInt(this.audioSentPacketsLost), numberToDouble(this.audioRtt), numberToDouble(this.audioSentJitter));
64145
64342
  };
64146
64343
  protoOf(RTCStatsJS).r2 = function () {
@@ -64149,28 +64346,28 @@ function requireClientsdkClientcore () {
64149
64346
  protoOf(RTCStatsJS).s2 = function () {
64150
64347
  return this.audioRecvPacketsLost;
64151
64348
  };
64152
- protoOf(RTCStatsJS).o3o = function () {
64349
+ protoOf(RTCStatsJS).u3k = function () {
64153
64350
  return this.audioRecvBytes;
64154
64351
  };
64155
- protoOf(RTCStatsJS).p3o = function () {
64352
+ protoOf(RTCStatsJS).v3k = function () {
64156
64353
  return this.audioRecvJitter;
64157
64354
  };
64158
- protoOf(RTCStatsJS).q3o = function () {
64355
+ protoOf(RTCStatsJS).w3k = function () {
64159
64356
  return this.audioSentPackets;
64160
64357
  };
64161
- protoOf(RTCStatsJS).r3o = function () {
64358
+ protoOf(RTCStatsJS).x3k = function () {
64162
64359
  return this.audioSentBytes;
64163
64360
  };
64164
- protoOf(RTCStatsJS).s3o = function () {
64361
+ protoOf(RTCStatsJS).y3k = function () {
64165
64362
  return this.audioSentPacketsLost;
64166
64363
  };
64167
- protoOf(RTCStatsJS).t3o = function () {
64364
+ protoOf(RTCStatsJS).z3k = function () {
64168
64365
  return this.audioRtt;
64169
64366
  };
64170
- protoOf(RTCStatsJS).u3o = function () {
64367
+ protoOf(RTCStatsJS).a3l = function () {
64171
64368
  return this.audioSentJitter;
64172
64369
  };
64173
- protoOf(RTCStatsJS).g3p = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
64370
+ protoOf(RTCStatsJS).m3l = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
64174
64371
  return new RTCStatsJS(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
64175
64372
  };
64176
64373
  protoOf(RTCStatsJS).copy = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, $super) {
@@ -64183,7 +64380,7 @@ function requireClientsdkClientcore () {
64183
64380
  audioSentPacketsLost = audioSentPacketsLost === VOID ? this.audioSentPacketsLost : audioSentPacketsLost;
64184
64381
  audioRtt = audioRtt === VOID ? this.audioRtt : audioRtt;
64185
64382
  audioSentJitter = audioSentJitter === VOID ? this.audioSentJitter : audioSentJitter;
64186
- return this.g3p(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
64383
+ return this.m3l(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
64187
64384
  };
64188
64385
  protoOf(RTCStatsJS).toString = function () {
64189
64386
  return 'RTCStatsJS(audioRecvPackets=' + toString(this.audioRecvPackets) + ', audioRecvPacketsLost=' + toString(this.audioRecvPacketsLost) + ', audioRecvBytes=' + toString(this.audioRecvBytes) + ', audioRecvJitter=' + toString(this.audioRecvJitter) + ', audioSentPackets=' + toString(this.audioSentPackets) + ', audioSentBytes=' + toString(this.audioSentBytes) + ', audioSentPacketsLost=' + toString(this.audioSentPacketsLost) + ', audioRtt=' + toString(this.audioRtt) + ', audioSentJitter=' + toString(this.audioSentJitter) + ')';
@@ -64288,7 +64485,7 @@ function requireClientsdkClientcore () {
64288
64485
  };
64289
64486
  }
64290
64487
  function HttpClientJSAdapter$1($js) {
64291
- this.h3p_1 = $js;
64488
+ this.n3l_1 = $js;
64292
64489
  }
64293
64490
  protoOf(HttpClientJSAdapter$1).t35 = function (verb, url, headers, body, callback) {
64294
64491
  var tmp = verb.toString();
@@ -64296,7 +64493,7 @@ function requireClientsdkClientcore () {
64296
64493
  // Inline function 'kotlin.contracts.contract' call
64297
64494
  // Inline function 'vonage.<no name provided>.request.<anonymous>' call
64298
64495
  var tmp_0 = fromMap(JSON, headers);
64299
- this.h3p_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
64496
+ this.n3l_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
64300
64497
  };
64301
64498
  function SocketClientJSAdapter$o$emit$lambda($callback) {
64302
64499
  return function (err, response) {
@@ -64319,11 +64516,11 @@ function requireClientsdkClientcore () {
64319
64516
  };
64320
64517
  }
64321
64518
  function SocketClientJSAdapter$adapter$1($js) {
64322
- this.j3p_1 = $js;
64323
- this.i3p_1 = null;
64519
+ this.p3l_1 = $js;
64520
+ this.o3l_1 = null;
64324
64521
  }
64325
64522
  protoOf(SocketClientJSAdapter$adapter$1).c36 = function (_set____db54di) {
64326
- this.i3p_1 = _set____db54di;
64523
+ this.o3l_1 = _set____db54di;
64327
64524
  };
64328
64525
  protoOf(SocketClientJSAdapter$adapter$1).w35 = function (type, msg, callback) {
64329
64526
  var tmp;
@@ -64336,28 +64533,28 @@ function requireClientsdkClientcore () {
64336
64533
  tmp = fromMap(JSON, msg);
64337
64534
  }
64338
64535
  var tmp_0 = tmp;
64339
- this.j3p_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
64536
+ this.p3l_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
64340
64537
  };
64341
64538
  protoOf(SocketClientJSAdapter$adapter$1).x35 = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query) {
64342
- this.j3p_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
64539
+ this.p3l_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
64343
64540
  };
64344
64541
  protoOf(SocketClientJSAdapter$adapter$1).y35 = function () {
64345
- this.j3p_1.disconnect();
64542
+ this.p3l_1.disconnect();
64346
64543
  };
64347
64544
  protoOf(SocketClientJSAdapter$adapter$1).z35 = function (sessionId, token) {
64348
- this.j3p_1.setConnectParamsSocketConfig(sessionId, token);
64545
+ this.p3l_1.setConnectParamsSocketConfig(sessionId, token);
64349
64546
  };
64350
64547
  protoOf(SocketClientJSAdapter$adapter$1).a36 = function (sessionId) {
64351
- this.j3p_1.setSocketSessionId(sessionId);
64548
+ this.p3l_1.setSocketSessionId(sessionId);
64352
64549
  };
64353
64550
  protoOf(SocketClientJSAdapter$adapter$1).b36 = function (milliseconds, callback) {
64354
- this.j3p_1.startVerifyResponseTimer(milliseconds, callback);
64551
+ this.p3l_1.startVerifyResponseTimer(milliseconds, callback);
64355
64552
  };
64356
64553
  function SocketClientJSAdapter$1($adapter) {
64357
- this.k3p_1 = $adapter;
64554
+ this.q3l_1 = $adapter;
64358
64555
  }
64359
64556
  protoOf(SocketClientJSAdapter$1).didReceiveNewSocketEvent = function (body) {
64360
- var tmp0_safe_receiver = this.k3p_1.i3p_1;
64557
+ var tmp0_safe_receiver = this.q3l_1.o3l_1;
64361
64558
  if (tmp0_safe_receiver == null)
64362
64559
  ;
64363
64560
  else {
@@ -64385,35 +64582,35 @@ function requireClientsdkClientcore () {
64385
64582
  else {
64386
64583
  switch (reason) {
64387
64584
  case 'NXMCORE_REASON_SERVER_DISCONNECTED':
64388
- var tmp1_safe_receiver_0 = this.k3p_1.i3p_1;
64585
+ var tmp1_safe_receiver_0 = this.q3l_1.o3l_1;
64389
64586
  if (tmp1_safe_receiver_0 == null) ; else {
64390
64587
  tmp1_safe_receiver_0.g39(tmp1_safe_receiver, SocketConnectionFailedReason_ServerDisconnected_getInstance(), timestamp, retryNumber);
64391
64588
  Unit_getInstance();
64392
64589
  }
64393
64590
  break;
64394
64591
  case 'NXMCORE_REASON_CLIENT_DISCONNECTED':
64395
- var tmp2_safe_receiver = this.k3p_1.i3p_1;
64592
+ var tmp2_safe_receiver = this.q3l_1.o3l_1;
64396
64593
  if (tmp2_safe_receiver == null) ; else {
64397
64594
  tmp2_safe_receiver.g39(tmp1_safe_receiver, SocketConnectionFailedReason_ClientDisconnected_getInstance(), timestamp, retryNumber);
64398
64595
  Unit_getInstance();
64399
64596
  }
64400
64597
  break;
64401
64598
  case 'NXMCORE_CLIENT_NETWORK_ERROR':
64402
- var tmp3_safe_receiver = this.k3p_1.i3p_1;
64599
+ var tmp3_safe_receiver = this.q3l_1.o3l_1;
64403
64600
  if (tmp3_safe_receiver == null) ; else {
64404
64601
  tmp3_safe_receiver.g39(tmp1_safe_receiver, SocketConnectionFailedReason_ClientNetworkError_getInstance(), timestamp, retryNumber);
64405
64602
  Unit_getInstance();
64406
64603
  }
64407
64604
  break;
64408
64605
  case 'NXMCORE_REASON_PING_TIMEOUT':
64409
- var tmp4_safe_receiver = this.k3p_1.i3p_1;
64606
+ var tmp4_safe_receiver = this.q3l_1.o3l_1;
64410
64607
  if (tmp4_safe_receiver == null) ; else {
64411
64608
  tmp4_safe_receiver.g39(tmp1_safe_receiver, SocketConnectionFailedReason_PingTimeout_getInstance(), timestamp, retryNumber);
64412
64609
  Unit_getInstance();
64413
64610
  }
64414
64611
  break;
64415
64612
  default:
64416
- var tmp5_safe_receiver = this.k3p_1.i3p_1;
64613
+ var tmp5_safe_receiver = this.q3l_1.o3l_1;
64417
64614
  if (tmp5_safe_receiver == null) ; else {
64418
64615
  tmp5_safe_receiver.g39(tmp1_safe_receiver, null, timestamp, retryNumber);
64419
64616
  Unit_getInstance();
@@ -64423,52 +64620,52 @@ function requireClientsdkClientcore () {
64423
64620
  }
64424
64621
  };
64425
64622
  function MediaClientJSAdapter$adapter$1($js) {
64426
- this.m3p_1 = $js;
64427
- this.l3p_1 = null;
64623
+ this.s3l_1 = $js;
64624
+ this.r3l_1 = null;
64428
64625
  }
64429
64626
  protoOf(MediaClientJSAdapter$adapter$1).m36 = function (_set____db54di) {
64430
- this.l3p_1 = _set____db54di;
64627
+ this.r3l_1 = _set____db54di;
64431
64628
  };
64432
64629
  protoOf(MediaClientJSAdapter$adapter$1).f36 = function (closure) {
64433
- this.m3p_1.enableMediaOutbound(closure);
64630
+ this.s3l_1.enableMediaOutbound(closure);
64434
64631
  };
64435
- protoOf(MediaClientJSAdapter$adapter$1).n3p = function (closure, offerSDP, rtcId) {
64436
- this.m3p_1.enableMediaInbound(closure, offerSDP, rtcId);
64632
+ protoOf(MediaClientJSAdapter$adapter$1).t3l = function (closure, offerSDP, rtcId) {
64633
+ this.s3l_1.enableMediaInbound(closure, offerSDP, rtcId);
64437
64634
  };
64438
64635
  protoOf(MediaClientJSAdapter$adapter$1).g36 = function (closure, offerSDP, rtcId) {
64439
- return this.n3p(closure, offerSDP, rtcId);
64636
+ return this.t3l(closure, offerSDP, rtcId);
64440
64637
  };
64441
64638
  protoOf(MediaClientJSAdapter$adapter$1).h36 = function (id, sdp) {
64442
- this.m3p_1.processAnswer(id, sdp);
64639
+ this.s3l_1.processAnswer(id, sdp);
64443
64640
  };
64444
64641
  protoOf(MediaClientJSAdapter$adapter$1).i36 = function (id) {
64445
- this.m3p_1.disableMedia(id);
64642
+ this.s3l_1.disableMedia(id);
64446
64643
  };
64447
64644
  protoOf(MediaClientJSAdapter$adapter$1).j36 = function (id) {
64448
- this.m3p_1.mute(id);
64645
+ this.s3l_1.mute(id);
64449
64646
  };
64450
64647
  protoOf(MediaClientJSAdapter$adapter$1).k36 = function (id) {
64451
- this.m3p_1.unmute(id);
64648
+ this.s3l_1.unmute(id);
64452
64649
  };
64453
64650
  protoOf(MediaClientJSAdapter$adapter$1).l36 = function (interval, mediaId) {
64454
- this.m3p_1.enableRtcStatsCollection(interval, mediaId);
64651
+ this.s3l_1.enableRtcStatsCollection(interval, mediaId);
64455
64652
  };
64456
64653
  function MediaClientJSAdapter$1($adapter) {
64457
- this.o3p_1 = $adapter;
64654
+ this.u3l_1 = $adapter;
64458
64655
  }
64459
64656
  protoOf(MediaClientJSAdapter$1).onRtcStats = function (rtcStats, legId) {
64460
- var tmp0_safe_receiver = this.o3p_1.l3p_1;
64657
+ var tmp0_safe_receiver = this.u3l_1.r3l_1;
64461
64658
  if (tmp0_safe_receiver == null)
64462
64659
  ;
64463
64660
  else {
64464
- tmp0_safe_receiver.c39(rtcStats.f3p(), legId);
64661
+ tmp0_safe_receiver.c39(rtcStats.l3l(), legId);
64465
64662
  }
64466
64663
  };
64467
64664
  protoOf(MediaClientJSAdapter$1).onConnectionChange = function (id, status) {
64468
64665
  switch (status) {
64469
64666
  case 'new':
64470
64667
  case 'checking':
64471
- var tmp1_safe_receiver = this.o3p_1.l3p_1;
64668
+ var tmp1_safe_receiver = this.u3l_1.r3l_1;
64472
64669
  if (tmp1_safe_receiver == null)
64473
64670
  ;
64474
64671
  else {
@@ -64477,7 +64674,7 @@ function requireClientsdkClientcore () {
64477
64674
 
64478
64675
  break;
64479
64676
  case 'connecting':
64480
- var tmp2_safe_receiver = this.o3p_1.l3p_1;
64677
+ var tmp2_safe_receiver = this.u3l_1.r3l_1;
64481
64678
  if (tmp2_safe_receiver == null)
64482
64679
  ;
64483
64680
  else {
@@ -64486,7 +64683,7 @@ function requireClientsdkClientcore () {
64486
64683
 
64487
64684
  break;
64488
64685
  case 'connected':
64489
- var tmp3_safe_receiver = this.o3p_1.l3p_1;
64686
+ var tmp3_safe_receiver = this.u3l_1.r3l_1;
64490
64687
  if (tmp3_safe_receiver == null)
64491
64688
  ;
64492
64689
  else {
@@ -64495,7 +64692,7 @@ function requireClientsdkClientcore () {
64495
64692
 
64496
64693
  break;
64497
64694
  case 'disconnected':
64498
- var tmp4_safe_receiver = this.o3p_1.l3p_1;
64695
+ var tmp4_safe_receiver = this.u3l_1.r3l_1;
64499
64696
  if (tmp4_safe_receiver == null)
64500
64697
  ;
64501
64698
  else {
@@ -64504,7 +64701,7 @@ function requireClientsdkClientcore () {
64504
64701
 
64505
64702
  break;
64506
64703
  case 'closed':
64507
- var tmp5_safe_receiver = this.o3p_1.l3p_1;
64704
+ var tmp5_safe_receiver = this.u3l_1.r3l_1;
64508
64705
  if (tmp5_safe_receiver == null)
64509
64706
  ;
64510
64707
  else {
@@ -64513,7 +64710,7 @@ function requireClientsdkClientcore () {
64513
64710
 
64514
64711
  break;
64515
64712
  case 'failed':
64516
- var tmp6_safe_receiver = this.o3p_1.l3p_1;
64713
+ var tmp6_safe_receiver = this.u3l_1.r3l_1;
64517
64714
  if (tmp6_safe_receiver == null)
64518
64715
  ;
64519
64716
  else {
@@ -64522,7 +64719,7 @@ function requireClientsdkClientcore () {
64522
64719
 
64523
64720
  break;
64524
64721
  default:
64525
- var tmp7_safe_receiver = this.o3p_1.l3p_1;
64722
+ var tmp7_safe_receiver = this.u3l_1.r3l_1;
64526
64723
  if (tmp7_safe_receiver == null)
64527
64724
  ;
64528
64725
  else {
@@ -64747,12 +64944,12 @@ function requireClientsdkClientcore () {
64747
64944
  protoOf(Some).r2 = function () {
64748
64945
  return this.value;
64749
64946
  };
64750
- protoOf(Some).p3p = function (value) {
64947
+ protoOf(Some).v3l = function (value) {
64751
64948
  return new Some(value);
64752
64949
  };
64753
64950
  protoOf(Some).copy = function (value, $super) {
64754
64951
  value = value === VOID ? this.value : value;
64755
- return this.p3p(value);
64952
+ return this.v3l(value);
64756
64953
  };
64757
64954
  protoOf(Some).toString = function () {
64758
64955
  return 'Some(value=' + this.value + ')';
@@ -64994,24 +65191,24 @@ function requireClientsdkClientcore () {
64994
65191
  $vonage.EventDeleteConversationEventJS = EventDeleteConversationEventJS;
64995
65192
  var $vonage = _.vonage || (_.vonage = {});
64996
65193
  $vonage.MessageTextEventJS = MessageTextEventJS;
64997
- $vonage.MessageTextEventJS.Body = Body;
65194
+ $vonage.MessageTextEventJS.MessageTextEventBody = MessageTextEventBody;
64998
65195
  $vonage.MessageCustomEventJS = MessageCustomEventJS;
64999
- $vonage.MessageCustomEventJS.Body = Body_0;
65196
+ $vonage.MessageCustomEventJS.MessageCustomEventBody = MessageCustomEventBody;
65000
65197
  $vonage.MessageAudioEventJS = MessageAudioEventJS;
65001
- $vonage.MessageAudioEventJS.Body = Body_1;
65198
+ $vonage.MessageAudioEventJS.MessageAudioEventBody = MessageAudioEventBody;
65002
65199
  $vonage.MessageVideoEventJS = MessageVideoEventJS;
65003
- $vonage.MessageVideoEventJS.Body = Body_2;
65200
+ $vonage.MessageVideoEventJS.MessageVideoEventBody = MessageVideoEventBody;
65004
65201
  $vonage.MessageImageEventJS = MessageImageEventJS;
65005
- $vonage.MessageImageEventJS.Body = Body_3;
65202
+ $vonage.MessageImageEventJS.MessageImageEventBody = MessageImageEventBody;
65006
65203
  $vonage.MessageFileEventJS = MessageFileEventJS;
65007
- $vonage.MessageFileEventJS.Body = Body_4;
65204
+ $vonage.MessageFileEventJS.MessageFileEventBody = MessageFileEventBody;
65008
65205
  $vonage.MessageVCardEventJS = MessageVCardEventJS;
65009
- $vonage.MessageVCardEventJS.Body = Body_5;
65206
+ $vonage.MessageVCardEventJS.MessageVCardEventBody = MessageVCardEventBody;
65010
65207
  $vonage.MessageLocationEventJS = MessageLocationEventJS;
65011
- $vonage.MessageLocationEventJS.Body = Body_6;
65208
+ $vonage.MessageLocationEventJS.MessageLocationEventBody = MessageLocationEventBody;
65012
65209
  $vonage.MessageLocationEventJS.Location = Location_0;
65013
65210
  $vonage.MessageTemplateEventJS = MessageTemplateEventJS;
65014
- $vonage.MessageTemplateEventJS.Body = Body_7;
65211
+ $vonage.MessageTemplateEventJS.MessageTemplateEventBody = MessageTemplateEventBody;
65015
65212
  $vonage.MessageTemplateEventJS.TemplateObject = TemplateObject_0;
65016
65213
  $vonage.MessageTemplateEventJS.WhatsappObject = WhatsappObject_0;
65017
65214
  var $vonage = _.vonage || (_.vonage = {});
@@ -76848,18 +77045,21 @@ class SocketClient {
76848
77045
  }
76849
77046
  }
76850
77047
 
77048
+ /**
77049
+ * A group of Topics that a {@link VonageLogger} can subscribe to
77050
+ */
76851
77051
  const Topics = clientsdkClientcore_jsExports.vonage.Topics;
76852
77052
  clientsdkClientcore_jsExports.vonage.TopicJS;
76853
77053
  const LoggingLevel = clientsdkClientcore_jsExports.vonage.LoggingLevelJS;
76854
77054
  /**
76855
- * @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
77055
+ * @deprecated Use {@link ClientInitConfigObject.loggingLevel} instead.
76856
77056
  * @param level - The logging level to set.
76857
77057
  */
76858
77058
  const setDefaultLoggingLevel = (level) => {
76859
77059
  clientsdkClientcore_jsExports.vonage.setDefaultLoggingLevel(level instanceof LoggingLevel ? level : LoggingLevel[level]);
76860
77060
  };
76861
77061
  /**
76862
- * @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
77062
+ * @deprecated Use {@link ClientInitConfigObject.loggingLevel} instead.
76863
77063
  * @param level - The logging level to set.
76864
77064
  */
76865
77065
  const setVonageClientLoggingLevel = setDefaultLoggingLevel;
@@ -76878,15 +77078,6 @@ const createVonageLogger = (name, onLog, minLogLevel, topics) => clientsdkClient
76878
77078
  : undefined, topics === null || topics === void 0 ? void 0 : topics.map((topic) => (topic instanceof Topics ? topic : Topics[topic])), (level, topic, message) => onLog(level, topic, message));
76879
77079
 
76880
77080
  const ConfigRegion = clientsdkClientcore_jsExports.vonage.CoreClientConfigRegionJS;
76881
- /**
76882
- * Represents the configuration object for the client.
76883
- *
76884
- * The `ClientConfig` class provides a convenient way to configure the client by specifying various properties.
76885
- * These properties control different aspects of the client's behavior, such as API URLs, media reoffer, and WebSocket settings.
76886
- *
76887
- * @example
76888
- * [[include:snippet_setClientConfig.txt]]
76889
- */
76890
77081
  class ClientConfig extends clientsdkClientcore_jsExports.vonage.CoreClientConfigJS {
76891
77082
  /**
76892
77083
  * Constructs a new instance of the class.
@@ -76934,15 +77125,16 @@ const convertInitConfig = (config) => {
76934
77125
  : null });
76935
77126
  };
76936
77127
 
76937
- const ChannelType = clientsdkClientcore_jsExports.vonage.ChannelTypeJS;
76938
- const PresentingOrder = clientsdkClientcore_jsExports.vonage.PresentingOrderJS;
76939
- const OrderBy = clientsdkClientcore_jsExports.vonage.OrderByJS;
77128
+ const ChannelType = clientsdkClientcore_jsExports.vonage.ChannelTypeJS;
76940
77129
 
76941
77130
  const VonageError = clientsdkClientcore_jsExports.vonage.VonageErrorJS;
76942
77131
  const VonageErrorType = clientsdkClientcore_jsExports.vonage.VonageErrorTypeJS;
76943
77132
  const CSErrorCodes = clientsdkClientcore_jsExports.vonage.CSErrorCodesJS;
76944
77133
  const SessionErrorCodes = clientsdkClientcore_jsExports.vonage.SessionErrorCodesJS;
76945
77134
 
77135
+ const PresentingOrder = clientsdkClientcore_jsExports.vonage.PresentingOrderJS;
77136
+ const OrderBy = clientsdkClientcore_jsExports.vonage.OrderByJS;
77137
+
76946
77138
  const Option = clientsdkClientcore_jsExports.vonage.utils.OptionJS;
76947
77139
  const mapOption = (value) => {
76948
77140
  if (value == null)
@@ -76951,7 +77143,15 @@ const mapOption = (value) => {
76951
77143
  return new Option.None();
76952
77144
  return new Option.Some(value);
76953
77145
  };
77146
+ /**
77147
+ * @param value The wrapped value
77148
+ * @returns An {@link Option.Some}
77149
+ */
76954
77150
  const some = (value) => new Option.Some(value);
77151
+ /**
77152
+ *
77153
+ * @returns An {@link Option.None}
77154
+ */
76955
77155
  const none = () => new Option.None();
76956
77156
 
76957
77157
  const CancelReason = clientsdkClientcore_jsExports.vonage.CancelReasonJS;
@@ -77061,8 +77261,8 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
77061
77261
  * @param callback - the callback to register for the event
77062
77262
  * @returns a symbol that can be used to unregister the callback
77063
77263
  * @remarks
77064
- * Besure to store the symbol returned by this method so you can unregister the callback later.
77065
- * We recommend deregistering callbacks when you no longer need them. See {@link off}.
77264
+ * Be sure to store the symbol returned by this method so you can unregister the callback later.
77265
+ * We recommend unregistering callbacks when you no longer need them. See {@link off}.
77066
77266
  */
77067
77267
  on(event, callback) {
77068
77268
  const callbackSymbol = Symbol(event);
@@ -77414,7 +77614,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
77414
77614
  * @group Chat
77415
77615
  * @beta
77416
77616
  * @param id - the Conversation's id
77417
- * @param name - the namne of the user to invite
77617
+ * @param name - the name of the user to invite
77418
77618
  * @returns the `memberId` of the member
77419
77619
  */
77420
77620
  inviteToConversation(id, name) {
@@ -77592,7 +77792,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
77592
77792
  * Send a template message to a Conversation.
77593
77793
  *
77594
77794
  * @example
77595
- * [[include: snippet_SendMessageTemplateEvent.txt]]
77795
+ * [[include: snippet_SendTemplateMessage.txt]]
77596
77796
  *
77597
77797
  * @group Chat
77598
77798
  * @beta
@@ -77641,7 +77841,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
77641
77841
  * @group Chat
77642
77842
  * @beta
77643
77843
  * @param id - the Conversation's id
77644
- * @param type - the type of the custom event. Type must start with `custom:<...>`
77844
+ * @param evenType - the type of the custom event. Type must start with `custom:<...>`
77645
77845
  * @param customData - the body of the event
77646
77846
  * @returns the `timestamp` of the message
77647
77847
  */