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

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
@@ -19437,7 +19437,6 @@ function requireClientsdkClientcore () {
19437
19437
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
19438
19438
  var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.m;
19439
19439
  var numberToLong = kotlin_kotlin.$_$.i6;
19440
- var Exception_init_$Create$ = kotlin_kotlin.$_$.z;
19441
19440
  var Map = kotlin_kotlin.$_$.v2;
19442
19441
  var MutableMap = kotlin_kotlin.$_$.x2;
19443
19442
  var getKClassFromExpression = kotlin_kotlin.$_$.d;
@@ -19457,6 +19456,7 @@ function requireClientsdkClientcore () {
19457
19456
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
19458
19457
  var listOf = kotlin_kotlin.$_$.f4;
19459
19458
  var listOf_0 = kotlin_kotlin.$_$.e4;
19459
+ var Exception_init_$Create$ = kotlin_kotlin.$_$.z;
19460
19460
  var replaceFirst = kotlin_kotlin.$_$.f7;
19461
19461
  var charSequenceLength = kotlin_kotlin.$_$.c5;
19462
19462
  var Exception_init_$Init$_1 = kotlin_kotlin.$_$.y;
@@ -20066,6 +20066,9 @@ function requireClientsdkClientcore () {
20066
20066
  function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
20067
20067
  }
20068
20068
  setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
20069
+ function onConversationEvent(event) {
20070
+ }
20071
+ setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
20069
20072
  function onAudioSay() {
20070
20073
  }
20071
20074
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -20075,10 +20078,7 @@ function requireClientsdkClientcore () {
20075
20078
  function onAudioDTMFUpdate(conversationId, legId, digits) {
20076
20079
  }
20077
20080
  setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
20078
- function onConversationEvent(event) {
20079
- }
20080
- setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
20081
- setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
20081
+ setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
20082
20082
  setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
20083
20083
  setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
20084
20084
  setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
@@ -20088,8 +20088,10 @@ function requireClientsdkClientcore () {
20088
20088
  setMetadataFor(CSErrorCodes, 'CSErrorCodes', objectMeta);
20089
20089
  setMetadataFor(InternalError, 'InternalError', classMeta, Exception);
20090
20090
  setMetadataFor(CustomLoggersLimitReached, 'CustomLoggersLimitReached', classMeta, InternalError);
20091
+ setMetadataFor(MediaTimeout, 'MediaTimeout', classMeta, InternalError);
20091
20092
  setMetadataFor(NoInviteFound, 'NoInviteFound', classMeta, InternalError);
20092
20093
  setMetadataFor(InvalidCallAction, 'InvalidCallAction', classMeta, InternalError);
20094
+ setMetadataFor(NoOfferFound, 'NoOfferFound', classMeta, InternalError);
20093
20095
  setMetadataFor(InboundCallFailed, 'InboundCallFailed', classMeta, InternalError);
20094
20096
  setMetadataFor(NoCallFound, 'NoCallFound', classMeta, InternalError);
20095
20097
  setMetadataFor(AuthorizationError_0, 'AuthorizationError', classMeta, InternalError);
@@ -20097,8 +20099,8 @@ function requireClientsdkClientcore () {
20097
20099
  setMetadataFor(NoConversationFound, 'NoConversationFound', classMeta, InternalError);
20098
20100
  setMetadataFor(NoLegFound, 'NoLegFound', classMeta, InternalError);
20099
20101
  setMetadataFor(IllegalArgumentException_0, 'IllegalArgumentException', classMeta, InternalError);
20100
- setMetadataFor(UnexpectedNullValue, 'UnexpectedNullValue', classMeta, InternalError);
20101
20102
  setMetadataFor(ServiceTempNotAvailable, 'ServiceTempNotAvailable', classMeta, InternalError);
20103
+ setMetadataFor(UnexpectedNullValue, 'UnexpectedNullValue', classMeta, InternalError);
20102
20104
  setMetadataFor(ServiceNotAvailable, 'ServiceNotAvailable', classMeta, InternalError);
20103
20105
  setMetadataFor(ParsingException, 'ParsingException', classMeta, InternalError);
20104
20106
  setMetadataFor(SessionErrorCodes, 'SessionErrorCodes', objectMeta);
@@ -20205,7 +20207,7 @@ function requireClientsdkClientcore () {
20205
20207
  setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
20206
20208
  setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
20207
20209
  setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
20208
- setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
20210
+ setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
20209
20211
  setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
20210
20212
  setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
20211
20213
  setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
@@ -43926,12 +43928,11 @@ function requireClientsdkClientcore () {
43926
43928
  return function (response) {
43927
43929
  var tmp0_subject = response;
43928
43930
  var tmp;
43929
- if (tmp0_subject instanceof Exception) {
43930
- tmp = $callback(toVonageError(response), null);
43931
+ if (tmp0_subject instanceof GetConversation) {
43932
+ tmp = $callback(null, Companion_getInstance_127().z2j(response));
43931
43933
  } else {
43932
- if (tmp0_subject instanceof GetConversation) {
43933
- tmp = $callback(null, Companion_getInstance_127().z2j(response));
43934
- }
43934
+ invokeCallbackWithError(response, $callback);
43935
+ tmp = Unit_getInstance();
43935
43936
  }
43936
43937
  return Unit_getInstance();
43937
43938
  };
@@ -44156,7 +44157,7 @@ function requireClientsdkClientcore () {
44156
44157
  // Inline function 'kotlin.run' call
44157
44158
  // Inline function 'kotlin.contracts.contract' call
44158
44159
  var message = 'At least one between text, imageUrl, videoUrl, audioUrl, fileUrl, vCardUrl or customBody must be provided.';
44159
- $callback(toVonageError(new IllegalArgumentException_0(message)), null);
44160
+ invokeCallbackWithError(new IllegalArgumentException_0(message), $callback);
44160
44161
  return Unit_getInstance();
44161
44162
  tmp_1 = tmp$ret$0;
44162
44163
  } else {
@@ -44167,7 +44168,7 @@ function requireClientsdkClientcore () {
44167
44168
  var tmp_2;
44168
44169
  if ($p instanceof IllegalArgumentException) {
44169
44170
  var error = $p;
44170
- $callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
44171
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), $callback);
44171
44172
  return Unit_getInstance();
44172
44173
  } else {
44173
44174
  throw $p;
@@ -44211,7 +44212,7 @@ function requireClientsdkClientcore () {
44211
44212
  var tmp_1;
44212
44213
  if ($p instanceof IllegalArgumentException) {
44213
44214
  var error = $p;
44214
- $callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
44215
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), $callback);
44215
44216
  return Unit_getInstance();
44216
44217
  } else {
44217
44218
  throw $p;
@@ -44255,7 +44256,7 @@ function requireClientsdkClientcore () {
44255
44256
  var tmp_1;
44256
44257
  if ($p instanceof IllegalArgumentException) {
44257
44258
  var error = $p;
44258
- $callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
44259
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), $callback);
44259
44260
  return Unit_getInstance();
44260
44261
  } else {
44261
44262
  throw $p;
@@ -44324,7 +44325,7 @@ function requireClientsdkClientcore () {
44324
44325
  var tmp_3;
44325
44326
  if ($p instanceof IllegalArgumentException) {
44326
44327
  var error = $p;
44327
- callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
44328
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), callback);
44328
44329
  return Unit_getInstance();
44329
44330
  } else {
44330
44331
  throw $p;
@@ -44343,7 +44344,7 @@ function requireClientsdkClientcore () {
44343
44344
  var tmp_0;
44344
44345
  if ($p instanceof IllegalArgumentException) {
44345
44346
  var error = $p;
44346
- callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
44347
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), callback);
44347
44348
  return Unit_getInstance();
44348
44349
  } else {
44349
44350
  throw $p;
@@ -44456,20 +44457,6 @@ function requireClientsdkClientcore () {
44456
44457
  var tmp = new GetMyMemberRequest(cid);
44457
44458
  this.q2j_1.c1a(new Action_0(tmp, new ActionMeta(VOID, VOID, ChatAPIImpl$deleteEvent$lambda(this, id, cid, callback))));
44458
44459
  };
44459
- function invokeCallbackWithError(e, callback) {
44460
- if (e instanceof Exception)
44461
- callback(toVonageError(e), null);
44462
- else {
44463
- callback(toVonageError(new UnexpectedNullValue()), null);
44464
- }
44465
- }
44466
- function invokeCallbackWithError_0(e, callback) {
44467
- if (e instanceof Exception)
44468
- callback(toVonageError(e));
44469
- else {
44470
- callback(toVonageError(new UnexpectedNullValue()));
44471
- }
44472
- }
44473
44460
  var LoggingLevel_Verbose_instance;
44474
44461
  var LoggingLevel_Debug_instance;
44475
44462
  var LoggingLevel_Info_instance;
@@ -44595,7 +44582,8 @@ function requireClientsdkClientcore () {
44595
44582
  var tmp0_subject = response;
44596
44583
  var tmp;
44597
44584
  if (tmp0_subject instanceof Exception) {
44598
- tmp = $callback(toVonageError(response), null);
44585
+ invokeCallbackWithError(response, $callback);
44586
+ tmp = Unit_getInstance();
44599
44587
  } else {
44600
44588
  if (tmp0_subject instanceof GetConversation) {
44601
44589
  var tmp1_safe_receiver = response.b1k_1;
@@ -44617,7 +44605,8 @@ function requireClientsdkClientcore () {
44617
44605
  var tmp0_subject = response;
44618
44606
  var tmp;
44619
44607
  if (tmp0_subject instanceof Exception) {
44620
- tmp = $callback(toVonageError(response), null);
44608
+ invokeCallbackWithError(response, $callback);
44609
+ tmp = Unit_getInstance();
44621
44610
  } else {
44622
44611
  if (tmp0_subject instanceof GetUser) {
44623
44612
  var tmp1_safe_receiver = response.e1q_1;
@@ -44725,6 +44714,10 @@ function requireClientsdkClientcore () {
44725
44714
  InternalError.call(this, 'internal:error:custom_loggers_limit_exceeded', 'Exceeded Max number of Custom Client Loggers. Provided: ' + provided + ', Limit: ' + limit);
44726
44715
  captureStack(this, CustomLoggersLimitReached);
44727
44716
  }
44717
+ function MediaTimeout() {
44718
+ InternalError.call(this, 'voice:error:media_timeout', 'Media Timeout');
44719
+ captureStack(this, MediaTimeout);
44720
+ }
44728
44721
  function NoInviteFound() {
44729
44722
  InternalError.call(this, 'voice:error:no_invite_found', 'No invite found');
44730
44723
  captureStack(this, NoInviteFound);
@@ -44733,6 +44726,10 @@ function requireClientsdkClientcore () {
44733
44726
  InternalError.call(this, 'voice:error:invalid_call_action', 'Invalid call action');
44734
44727
  captureStack(this, InvalidCallAction);
44735
44728
  }
44729
+ function NoOfferFound() {
44730
+ InternalError.call(this, 'voice:error:no_offer_found', 'No offer found');
44731
+ captureStack(this, NoOfferFound);
44732
+ }
44736
44733
  function InboundCallFailed(cause) {
44737
44734
  cause = cause === VOID ? null : cause;
44738
44735
  InternalError.call(this, 'voice:error:inbound_call_failed', 'Inbound call failed', cause);
@@ -44765,10 +44762,6 @@ function requireClientsdkClientcore () {
44765
44762
  InternalError.call(this, 'internal:error:illegal_argument_exception', message == null ? 'Incorrect arguments provided to method' : message, cause);
44766
44763
  captureStack(this, IllegalArgumentException_0);
44767
44764
  }
44768
- function UnexpectedNullValue() {
44769
- InternalError.call(this, 'internal:error:unexpected_null_value', 'Unexpected Null Value');
44770
- captureStack(this, UnexpectedNullValue);
44771
- }
44772
44765
  function InternalError(code, message, cause) {
44773
44766
  message = message === VOID ? null : message;
44774
44767
  cause = cause === VOID ? null : cause;
@@ -44780,6 +44773,10 @@ function requireClientsdkClientcore () {
44780
44773
  InternalError.call(this, 'internal:error:serviceNotAvailable', 'ServiceTempNotAvailable');
44781
44774
  captureStack(this, ServiceTempNotAvailable);
44782
44775
  }
44776
+ function UnexpectedNullValue() {
44777
+ InternalError.call(this, 'internal:error:unexpected_null_value', 'Unexpected Null Value');
44778
+ captureStack(this, UnexpectedNullValue);
44779
+ }
44783
44780
  function ServiceNotAvailable(statusCode) {
44784
44781
  statusCode = statusCode === VOID ? 500 : statusCode;
44785
44782
  InternalError.call(this, 'internal:error:service_no_available', 'ServiceNotAvailable:' + statusCode);
@@ -44839,16 +44836,8 @@ function requireClientsdkClientcore () {
44839
44836
  new SessionErrorMessages();
44840
44837
  return SessionErrorMessages_instance;
44841
44838
  }
44842
- function VonageError_init_$Init$($this) {
44843
- VonageError.call($this, VonageErrorType_UNKNOWN_ERROR_getInstance());
44844
- return $this;
44845
- }
44846
- function VonageError_init_$Create$() {
44847
- var tmp = VonageError_init_$Init$(objectCreate(protoOf(VonageError)));
44848
- captureStack(tmp, VonageError_init_$Create$);
44849
- return tmp;
44850
- }
44851
44839
  function VonageError(type, code, message, cause) {
44840
+ type = type === VOID ? VonageErrorType_UNKNOWN_ERROR_getInstance() : type;
44852
44841
  code = code === VOID ? null : code;
44853
44842
  message = message === VOID ? null : message;
44854
44843
  cause = cause === VOID ? null : cause;
@@ -44857,9 +44846,6 @@ function requireClientsdkClientcore () {
44857
44846
  this.i2o_1 = type;
44858
44847
  this.j2o_1 = code;
44859
44848
  }
44860
- protoOf(VonageError).toString = function () {
44861
- return 'VonageError(type=' + this.i2o_1 + ', code=' + this.j2o_1 + ', message=' + this.message + ', cause=' + this.cause + ')';
44862
- };
44863
44849
  var VonageErrorType_CS_ERROR_instance;
44864
44850
  var VonageErrorType_SESSION_ERROR_instance;
44865
44851
  var VonageErrorType_INTERNAL_ERROR_instance;
@@ -44885,49 +44871,69 @@ function requireClientsdkClientcore () {
44885
44871
  }
44886
44872
  function toVonageError(_this__u8e3s4) {
44887
44873
  var tmp;
44888
- if (_this__u8e3s4 instanceof SessionError) {
44889
- var tmp_0 = VonageErrorType_SESSION_ERROR_getInstance();
44890
- var tmp_1 = _this__u8e3s4.j2d();
44891
- var tmp_2 = _this__u8e3s4.i5();
44892
- var tmp1_elvis_lhs = _this__u8e3s4.cause;
44893
- tmp = new VonageError(tmp_0, tmp_1, tmp_2, tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs);
44874
+ if (_this__u8e3s4 instanceof VonageError) {
44875
+ tmp = _this__u8e3s4;
44894
44876
  } else {
44895
- if (_this__u8e3s4 instanceof CSError) {
44896
- var tmp_3 = VonageErrorType_CS_ERROR_getInstance();
44897
- var tmp2_safe_receiver = _this__u8e3s4.x1i_1;
44898
- var tmp_4;
44899
- if (tmp2_safe_receiver == null) {
44900
- tmp_4 = null;
44901
- } else {
44902
- // Inline function 'kotlin.let' call
44903
- // Inline function 'kotlin.contracts.contract' call
44904
- // Inline function 'com.vonage.clientcore.core.api.errors.toVonageError.<anonymous>' call
44905
- tmp_4 = 'Invalid Parameters:' + tmp2_safe_receiver;
44906
- }
44907
- tmp = new VonageError(tmp_3, _this__u8e3s4.u1i_1, _this__u8e3s4.v1i_1 + ' - ' + tmp_4);
44877
+ if (_this__u8e3s4 instanceof SessionError) {
44878
+ var tmp_0 = VonageErrorType_SESSION_ERROR_getInstance();
44879
+ var tmp_1 = _this__u8e3s4.j2d();
44880
+ var tmp_2 = _this__u8e3s4.i5();
44881
+ var tmp1_elvis_lhs = _this__u8e3s4.cause;
44882
+ tmp = new VonageError(tmp_0, tmp_1, tmp_2, tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs);
44908
44883
  } else {
44909
- if (_this__u8e3s4 instanceof HTTPClientError) {
44910
- tmp = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), VOID, _this__u8e3s4.message, _this__u8e3s4);
44884
+ if (_this__u8e3s4 instanceof CSError) {
44885
+ var tmp_3 = VonageErrorType_CS_ERROR_getInstance();
44886
+ var tmp2_safe_receiver = _this__u8e3s4.x1i_1;
44887
+ var tmp_4;
44888
+ if (tmp2_safe_receiver == null) {
44889
+ tmp_4 = null;
44890
+ } else {
44891
+ // Inline function 'kotlin.let' call
44892
+ // Inline function 'kotlin.contracts.contract' call
44893
+ // Inline function 'com.vonage.clientcore.core.api.errors.toVonageError.<anonymous>' call
44894
+ tmp_4 = 'Invalid Parameters:' + tmp2_safe_receiver;
44895
+ }
44896
+ tmp = new VonageError(tmp_3, _this__u8e3s4.u1i_1, _this__u8e3s4.v1i_1 + ' - ' + tmp_4);
44911
44897
  } else {
44912
- if (_this__u8e3s4 instanceof InternalError) {
44913
- var tmp_5;
44914
- if (_this__u8e3s4 instanceof ServiceTempNotAvailable) {
44915
- tmp_5 = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4);
44898
+ if (_this__u8e3s4 instanceof HTTPClientError) {
44899
+ tmp = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), VOID, _this__u8e3s4.message, _this__u8e3s4);
44900
+ } else {
44901
+ if (_this__u8e3s4 instanceof InternalError) {
44902
+ var tmp_5;
44903
+ if (_this__u8e3s4 instanceof ServiceTempNotAvailable) {
44904
+ tmp_5 = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4);
44905
+ } else {
44906
+ tmp_5 = new VonageError(VonageErrorType_INTERNAL_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4.cause);
44907
+ }
44908
+ tmp = tmp_5;
44916
44909
  } else {
44917
- tmp_5 = new VonageError(VonageErrorType_INTERNAL_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4.cause);
44910
+ var tmp_6 = VonageErrorType_UNKNOWN_ERROR_getInstance();
44911
+ var tmp_7 = _this__u8e3s4.message;
44912
+ var tmp4_elvis_lhs = _this__u8e3s4.cause;
44913
+ tmp = new VonageError(tmp_6, null, tmp_7, tmp4_elvis_lhs == null ? _this__u8e3s4 : tmp4_elvis_lhs);
44918
44914
  }
44919
- tmp = tmp_5;
44920
- } else {
44921
- var tmp_6 = VonageErrorType_UNKNOWN_ERROR_getInstance();
44922
- var tmp_7 = _this__u8e3s4.message;
44923
- var tmp4_elvis_lhs = _this__u8e3s4.cause;
44924
- tmp = new VonageError(tmp_6, null, tmp_7, tmp4_elvis_lhs == null ? _this__u8e3s4 : tmp4_elvis_lhs);
44925
44915
  }
44926
44916
  }
44927
44917
  }
44928
44918
  }
44929
44919
  return tmp;
44930
44920
  }
44921
+ function invokeCallbackWithError(e, callback) {
44922
+ if (e instanceof Exception)
44923
+ callback(toVonageError(e), null);
44924
+ else {
44925
+ callback(toVonageError(new UnexpectedNullValue()), null);
44926
+ }
44927
+ }
44928
+ function invokeCallbackWithError_0(e, callback) {
44929
+ return invokeCallbackWithError(e, invokeCallbackWithError$lambda(callback));
44930
+ }
44931
+ function invokeCallbackWithError$lambda($callback) {
44932
+ return function (exception, _anonymous_parameter_1__qggqgd) {
44933
+ $callback(exception);
44934
+ return Unit_getInstance();
44935
+ };
44936
+ }
44931
44937
  function VonageErrorType_CS_ERROR_getInstance() {
44932
44938
  VonageErrorType_initEntries();
44933
44939
  return VonageErrorType_CS_ERROR_instance;
@@ -48002,7 +48008,8 @@ function requireClientsdkClientcore () {
48002
48008
  return function (e) {
48003
48009
  var tmp;
48004
48010
  if (!(e == null)) {
48005
- tmp = $callback(new SessionNoActiveSessionError(), null);
48011
+ invokeCallbackWithError(new SessionNoActiveSessionError(), $callback);
48012
+ tmp = Unit_getInstance();
48006
48013
  } else {
48007
48014
  onCreateSession(this$0, $callback);
48008
48015
  this$0.z2v_1.c1a(Action_init_$Create$(new SocketConnect($token, $sessionId)));
@@ -48016,7 +48023,8 @@ function requireClientsdkClientcore () {
48016
48023
  var tmp0_subject = it;
48017
48024
  var tmp;
48018
48025
  if (tmp0_subject instanceof Exception) {
48019
- tmp = $callback(it);
48026
+ invokeCallbackWithError_0(it, $callback);
48027
+ tmp = Unit_getInstance();
48020
48028
  } else {
48021
48029
  this$0.z2v_1.c1a(Action_init_$Create$(new SocketSetSession($sessionId, $token)));
48022
48030
  tmp = $callback(null);
@@ -48144,7 +48152,8 @@ function requireClientsdkClientcore () {
48144
48152
  if (state.g2w_1.r2e_1.equals(SocketConnectionStatus_Connected_getInstance())) {
48145
48153
  this$0.z2v_1.c1a(Action_init_$Create$(SocketDisconnect_getInstance()));
48146
48154
  }
48147
- tmp = $callback(s.p2w_1.q2_1, null);
48155
+ invokeCallbackWithError(s.p2w_1.q2_1, $callback);
48156
+ tmp = Unit_getInstance();
48148
48157
  } else {
48149
48158
  if (s instanceof Resolved) {
48150
48159
  var tmp1_safe_receiver = $cleanup._v;
@@ -48233,7 +48242,7 @@ function requireClientsdkClientcore () {
48233
48242
  var tmp0_elvis_lhs = this.z2v_1.t2o(getKClass(SessionReducer));
48234
48243
  var tmp;
48235
48244
  if (tmp0_elvis_lhs == null) {
48236
- return callback(new SessionFailedInternalError(), null);
48245
+ return invokeCallbackWithError(new SessionFailedInternalError(), callback);
48237
48246
  } else {
48238
48247
  tmp = tmp0_elvis_lhs;
48239
48248
  }
@@ -48251,13 +48260,13 @@ function requireClientsdkClientcore () {
48251
48260
  var tmp0_elvis_lhs = this.z2v_1.t2o(getKClass(SessionReducer));
48252
48261
  var tmp;
48253
48262
  if (tmp0_elvis_lhs == null) {
48254
- return callback(new SessionFailedInternalError());
48263
+ return invokeCallbackWithError_0(new SessionFailedInternalError(), callback);
48255
48264
  } else {
48256
48265
  tmp = tmp0_elvis_lhs;
48257
48266
  }
48258
48267
  var state = tmp;
48259
48268
  if (state.f2w_1.f1().n1z() == null)
48260
- return callback(new SessionNoActiveSessionError());
48269
+ return invokeCallbackWithError_0(new SessionNoActiveSessionError(), callback);
48261
48270
  onDeleteSession(this, callback);
48262
48271
  this.z2v_1.c1a(Action_init_$Create$(DeleteSession_getInstance()));
48263
48272
  this.z2v_1.c1a(Action_init_$Create$(SocketDisconnect_getInstance()));
@@ -48266,13 +48275,13 @@ function requireClientsdkClientcore () {
48266
48275
  var tmp0_elvis_lhs = this.z2v_1.t2o(getKClass(SessionReducer));
48267
48276
  var tmp;
48268
48277
  if (tmp0_elvis_lhs == null) {
48269
- return callback(new SessionFailedInternalError());
48278
+ return invokeCallbackWithError_0(new SessionFailedInternalError(), callback);
48270
48279
  } else {
48271
48280
  tmp = tmp0_elvis_lhs;
48272
48281
  }
48273
48282
  var state = tmp;
48274
48283
  if (state.f2w_1.f1().n1z() == null)
48275
- return callback(new SessionNoActiveSessionError());
48284
+ return invokeCallbackWithError_0(new SessionNoActiveSessionError(), callback);
48276
48285
  var sessionId = ensureNotNull(state.f2w_1.f1().n1z());
48277
48286
  var tmp_0 = new UpdateSessionRequest(sessionId, token);
48278
48287
  this.z2v_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, SessionAPIImpl$refreshSession$lambda(callback, this, sessionId, token))));
@@ -48417,7 +48426,7 @@ function requireClientsdkClientcore () {
48417
48426
  var tmp0_elvis_lhs = getCallStateByLeg($this, callId);
48418
48427
  var tmp;
48419
48428
  if (tmp0_elvis_lhs == null) {
48420
- return toVonageError(new NoCallFound());
48429
+ return new NoCallFound();
48421
48430
  } else {
48422
48431
  tmp = tmp0_elvis_lhs;
48423
48432
  }
@@ -48428,7 +48437,7 @@ function requireClientsdkClientcore () {
48428
48437
  action(callMemberShipState.n2x_1, callMemberShipState.o2x_1);
48429
48438
  tmp_0 = null;
48430
48439
  } else {
48431
- tmp_0 = toVonageError(new InvalidCallAction());
48440
+ tmp_0 = new InvalidCallAction();
48432
48441
  }
48433
48442
  return tmp_0;
48434
48443
  }
@@ -48621,7 +48630,7 @@ function requireClientsdkClientcore () {
48621
48630
  null;
48622
48631
  else
48623
48632
  tmp1_safe_receiver();
48624
- $callback(toVonageError(Exception_init_$Create$('Media Timeout')), null);
48633
+ invokeCallbackWithError(new MediaTimeout(), $callback);
48625
48634
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
48626
48635
  tmp = Unit_getInstance();
48627
48636
  } else {
@@ -48653,7 +48662,8 @@ function requireClientsdkClientcore () {
48653
48662
  var tmp;
48654
48663
  if (tmp0_subject instanceof Exception) {
48655
48664
  this$0.q2x_1.c1a(Action_init_$Create$(new CallKnockingRequestFailure($tmp0_safe_receiver.h2x_1, it)));
48656
- tmp = $callback(toVonageError(it), null);
48665
+ invokeCallbackWithError(it, $callback);
48666
+ tmp = Unit_getInstance();
48657
48667
  } else {
48658
48668
  var tmp_0 = getKClass(CallReducer);
48659
48669
  $cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$serverCall$lambda$lambda$lambda$lambda$lambda($tmp0_safe_receiver, $cancel, $callback, this$0, $legId));
@@ -48705,7 +48715,7 @@ function requireClientsdkClientcore () {
48705
48715
  else
48706
48716
  tmp4_safe_receiver();
48707
48717
  ;
48708
- $callback(toVonageError(Exception_init_$Create$('Media Timeout')), null);
48718
+ invokeCallbackWithError(new MediaTimeout(), $callback);
48709
48719
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
48710
48720
  tmp = Unit_getInstance();
48711
48721
  break;
@@ -48743,37 +48753,46 @@ function requireClientsdkClientcore () {
48743
48753
  cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$serverCall$lambda$lambda(this$0, legId, cancel, $callback));
48744
48754
  tmp = Unit_getInstance();
48745
48755
  } else {
48746
- if (tmp0_subject instanceof Exception) {
48747
- tmp = $callback(toVonageError(it), null);
48748
- } else {
48749
- tmp = $callback(VonageError_init_$Create$(), null);
48750
- }
48756
+ invokeCallbackWithError(it, $callback);
48757
+ tmp = Unit_getInstance();
48751
48758
  }
48752
48759
  return Unit_getInstance();
48753
48760
  };
48754
48761
  }
48755
48762
  function VoiceAPIImpl$reconnectCall$lambda$lambda(this$0, $callId, $once, $callback) {
48756
48763
  return function () {
48757
- var state = ensureNotNull(this$0.q2x_1.t2o(getKClass(CallReducer)));
48758
- var tmp0_safe_receiver = state.u2x_1.u1($callId);
48759
- var legState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j2x_1;
48760
- var call = state.u2x_1.u1($callId);
48761
- var tmp1_safe_receiver = legState;
48762
- var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1();
48764
+ var tmp0_elvis_lhs = this$0.q2x_1.t2o(getKClass(CallReducer));
48763
48765
  var tmp;
48766
+ if (tmp0_elvis_lhs == null) {
48767
+ return Unit_getInstance();
48768
+ } else {
48769
+ tmp = tmp0_elvis_lhs;
48770
+ }
48771
+ var state = tmp;
48772
+ var tmp1_elvis_lhs = state.u2x_1.u1($callId);
48773
+ var tmp_0;
48774
+ if (tmp1_elvis_lhs == null) {
48775
+ return Unit_getInstance();
48776
+ } else {
48777
+ tmp_0 = tmp1_elvis_lhs;
48778
+ }
48779
+ var call = tmp_0;
48780
+ var legState = call.j2x_1;
48781
+ var tmp2_subject = legState.f1();
48782
+ var tmp_1;
48764
48783
  if (tmp2_subject instanceof Started) {
48765
48784
  var tmp3_safe_receiver = $once._v;
48766
48785
  if (tmp3_safe_receiver == null)
48767
48786
  null;
48768
48787
  else
48769
48788
  tmp3_safe_receiver();
48770
- var tmp_0;
48771
- if (ensureNotNull(call).e2x_1) {
48772
- tmp_0 = $callback(null);
48789
+ var tmp_2;
48790
+ if (call.e2x_1) {
48791
+ tmp_2 = $callback(null);
48773
48792
  }
48774
- tmp = tmp_0;
48793
+ tmp_1 = tmp_2;
48775
48794
  } else {
48776
- tmp = Unit_getInstance();
48795
+ tmp_1 = Unit_getInstance();
48777
48796
  }
48778
48797
  return Unit_getInstance();
48779
48798
  };
@@ -48788,7 +48807,8 @@ function requireClientsdkClientcore () {
48788
48807
  var tmp0_subject = it;
48789
48808
  var tmp;
48790
48809
  if (tmp0_subject instanceof Exception) {
48791
- tmp = $callback(toVonageError(it));
48810
+ invokeCallbackWithError_0(it, $callback);
48811
+ tmp = Unit_getInstance();
48792
48812
  } else {
48793
48813
  tmp = $callback(null);
48794
48814
  }
@@ -48808,7 +48828,8 @@ function requireClientsdkClientcore () {
48808
48828
  case -1:
48809
48829
  var tmp$ret$1;
48810
48830
  // Inline function 'kotlin.let' call
48811
- var tmp0_let = $callback(toVonageError(new NoInviteFound()));
48831
+ invokeCallbackWithError_0(new NoInviteFound(), $callback);
48832
+ var tmp0_let = Unit_getInstance();
48812
48833
  // Inline function 'kotlin.contracts.contract' call
48813
48834
  var tmp$ret$0;
48814
48835
  // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.answerCall.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
@@ -48838,7 +48859,7 @@ function requireClientsdkClientcore () {
48838
48859
  var tmp2_also = tmp5_safe_receiver == null ? null : tmp5_safe_receiver();
48839
48860
  // Inline function 'kotlin.contracts.contract' call
48840
48861
  // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.answerCall.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
48841
- $callback(toVonageError(new InboundCallFailed()));
48862
+ invokeCallbackWithError_0(new InboundCallFailed(), $callback);
48842
48863
  tmp$ret$3 = tmp2_also;
48843
48864
 
48844
48865
  tmp = Unit_getInstance();
@@ -48855,34 +48876,41 @@ function requireClientsdkClientcore () {
48855
48876
  return new StoredSubscription(VoiceAPIImpl$answerCall$lambda$lambda$lambda$lambda(this$0, $legIdOrErr, $callback, $cancel));
48856
48877
  };
48857
48878
  }
48858
- function VoiceAPIImpl$answerCall$lambda$lambda($callback, this$0) {
48879
+ function VoiceAPIImpl$answerCall$lambda$lambda(this$0, $callback) {
48859
48880
  return function (legIdOrErr) {
48860
48881
  var tmp0_subject = legIdOrErr;
48861
48882
  var tmp;
48862
- if (tmp0_subject instanceof Exception) {
48863
- tmp = $callback(toVonageError(new InboundCallFailed(legIdOrErr)));
48883
+ if (!(tmp0_subject == null) ? typeof tmp0_subject === 'string' : false) {
48884
+ var cancel = {_v: null};
48885
+ var tmp_0 = getKClass(CallReducer);
48886
+ cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$answerCall$lambda$lambda$lambda(this$0, legIdOrErr, $callback, cancel));
48887
+ tmp = Unit_getInstance();
48864
48888
  } else {
48865
- if (!(tmp0_subject == null) ? typeof tmp0_subject === 'string' : false) {
48866
- var cancel = {_v: null};
48867
- var tmp_0 = getKClass(CallReducer);
48868
- cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$answerCall$lambda$lambda$lambda(this$0, legIdOrErr, $callback, cancel));
48869
- tmp = Unit_getInstance();
48870
- } else {
48871
- tmp = $callback(VonageError_init_$Create$());
48872
- }
48889
+ invokeCallbackWithError_0(new InboundCallFailed(legIdOrErr instanceof Exception ? legIdOrErr : null), $callback);
48890
+ tmp = Unit_getInstance();
48873
48891
  }
48874
48892
  return Unit_getInstance();
48875
48893
  };
48876
48894
  }
48877
- function VoiceAPIImpl$answerCall$lambda($callback, this$0, $callId, $invite) {
48895
+ function VoiceAPIImpl$answerCall$lambda($callback, $invite, this$0, $callId) {
48878
48896
  return function (it) {
48879
48897
  var tmp0_subject = it;
48880
48898
  var tmp;
48881
48899
  if (tmp0_subject instanceof Exception) {
48882
- tmp = $callback(toVonageError(it));
48900
+ invokeCallbackWithError_0(it, $callback);
48901
+ tmp = Unit_getInstance();
48883
48902
  } else {
48884
- var tmp_0 = new SetupInboundCall($callId, $invite.c2y_1, $invite.b2y_1, $invite.z2x_1, ensureNotNull($invite.d2y_1), null);
48885
- this$0.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$answerCall$lambda$lambda($callback, this$0))));
48903
+ var tmp1_elvis_lhs = $invite.d2y_1;
48904
+ if (tmp1_elvis_lhs == null) {
48905
+ var tmp$ret$0;
48906
+ // Inline function 'kotlin.run' call
48907
+ // Inline function 'kotlin.contracts.contract' call
48908
+ invokeCallbackWithError_0(new NoOfferFound(), $callback);
48909
+ return Unit_getInstance();
48910
+ } else
48911
+ tmp1_elvis_lhs;
48912
+ var tmp_0 = new SetupInboundCall($callId, $invite.c2y_1, $invite.b2y_1, $invite.z2x_1, $invite.d2y_1, null);
48913
+ this$0.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$answerCall$lambda$lambda(this$0, $callback))));
48886
48914
  tmp = Unit_getInstance();
48887
48915
  }
48888
48916
  return Unit_getInstance();
@@ -48893,7 +48921,8 @@ function requireClientsdkClientcore () {
48893
48921
  var tmp0_subject = it;
48894
48922
  var tmp;
48895
48923
  if (tmp0_subject instanceof Exception) {
48896
- tmp = $callback(toVonageError(it));
48924
+ invokeCallbackWithError_0(it, $callback);
48925
+ tmp = Unit_getInstance();
48897
48926
  } else {
48898
48927
  tmp = $callback(null);
48899
48928
  }
@@ -48905,7 +48934,8 @@ function requireClientsdkClientcore () {
48905
48934
  var tmp0_subject = it;
48906
48935
  var tmp;
48907
48936
  if (tmp0_subject instanceof Exception) {
48908
- tmp = $callback(toVonageError(it));
48937
+ invokeCallbackWithError_0(it, $callback);
48938
+ tmp = Unit_getInstance();
48909
48939
  } else {
48910
48940
  tmp = $callback(null);
48911
48941
  }
@@ -48917,7 +48947,8 @@ function requireClientsdkClientcore () {
48917
48947
  var tmp0_subject = it;
48918
48948
  var tmp;
48919
48949
  if (tmp0_subject instanceof Exception) {
48920
- tmp = $callback(toVonageError(it));
48950
+ invokeCallbackWithError_0(it, $callback);
48951
+ tmp = Unit_getInstance();
48921
48952
  } else {
48922
48953
  tmp = $callback(null);
48923
48954
  }
@@ -48937,7 +48968,8 @@ function requireClientsdkClientcore () {
48937
48968
  var tmp0_subject = it;
48938
48969
  var tmp;
48939
48970
  if (tmp0_subject instanceof Exception) {
48940
- tmp = $callback(toVonageError(it));
48971
+ invokeCallbackWithError_0(it, $callback);
48972
+ tmp = Unit_getInstance();
48941
48973
  } else {
48942
48974
  tmp = $callback(null);
48943
48975
  }
@@ -48957,7 +48989,8 @@ function requireClientsdkClientcore () {
48957
48989
  var tmp0_subject = it;
48958
48990
  var tmp;
48959
48991
  if (tmp0_subject instanceof Exception) {
48960
- tmp = $callback(toVonageError(it));
48992
+ invokeCallbackWithError_0(it, $callback);
48993
+ tmp = Unit_getInstance();
48961
48994
  } else {
48962
48995
  tmp = $callback(null);
48963
48996
  }
@@ -48977,7 +49010,8 @@ function requireClientsdkClientcore () {
48977
49010
  var tmp0_subject = it;
48978
49011
  var tmp;
48979
49012
  if (tmp0_subject instanceof Exception) {
48980
- tmp = $callback(toVonageError(it));
49013
+ invokeCallbackWithError_0(it, $callback);
49014
+ tmp = Unit_getInstance();
48981
49015
  } else {
48982
49016
  tmp = $callback(null);
48983
49017
  }
@@ -48997,7 +49031,8 @@ function requireClientsdkClientcore () {
48997
49031
  var tmp0_subject = it;
48998
49032
  var tmp;
48999
49033
  if (tmp0_subject instanceof Exception) {
49000
- tmp = $callback(toVonageError(it));
49034
+ invokeCallbackWithError_0(it, $callback);
49035
+ tmp = Unit_getInstance();
49001
49036
  } else {
49002
49037
  tmp = $callback(null);
49003
49038
  }
@@ -49017,7 +49052,8 @@ function requireClientsdkClientcore () {
49017
49052
  var tmp0_subject = it;
49018
49053
  var tmp;
49019
49054
  if (tmp0_subject instanceof Exception) {
49020
- tmp = $callback(toVonageError(it));
49055
+ invokeCallbackWithError_0(it, $callback);
49056
+ tmp = Unit_getInstance();
49021
49057
  } else {
49022
49058
  tmp = $callback(null);
49023
49059
  }
@@ -49851,11 +49887,12 @@ function requireClientsdkClientcore () {
49851
49887
  this$0.q2x_1.c1a(Action_init_$Create$(new CallReconnect($legId, memberResponse.k1j_1, $legResponse.c1d_1)));
49852
49888
  tmp_0 = Unit_getInstance();
49853
49889
  } else {
49854
- tmp_0 = $callback(toVonageError(new MemberNotInConversation()));
49890
+ invokeCallbackWithError_0(new MemberNotInConversation(), $callback);
49891
+ tmp_0 = Unit_getInstance();
49855
49892
  }
49856
49893
  tmp = tmp_0;
49857
49894
  } else {
49858
- $callback(toVonageError(new NoConversationFound()));
49895
+ invokeCallbackWithError_0(new NoConversationFound(), $callback);
49859
49896
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
49860
49897
  tmp = Unit_getInstance();
49861
49898
  }
@@ -49871,7 +49908,7 @@ function requireClientsdkClientcore () {
49871
49908
  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))));
49872
49909
  tmp = Unit_getInstance();
49873
49910
  } else {
49874
- $callback(toVonageError(new NoLegFound()));
49911
+ invokeCallbackWithError_0(new NoLegFound(), $callback);
49875
49912
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
49876
49913
  tmp = Unit_getInstance();
49877
49914
  }
@@ -49899,71 +49936,44 @@ function requireClientsdkClientcore () {
49899
49936
  this.t2x_1 = listener;
49900
49937
  };
49901
49938
  protoOf(VoiceAPIImpl).z17 = function (legId, callback) {
49902
- var sessionState = ensureNotNull(this.q2x_1.t2o(getKClass(SessionReducer)));
49903
- var tmp;
49904
- if (sessionState.f2w_1.f1() instanceof Active) {
49905
- tmp = '';
49906
- } else {
49907
- // Inline function 'kotlin.let' call
49908
- callback(toVonageError(new SessionNoActiveSessionError()), null);
49909
- // Inline function 'kotlin.contracts.contract' call
49910
- // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.getLeg.<anonymous>' call
49911
- tmp = null;
49912
- }
49913
- if (tmp == null)
49939
+ if (getSessionUserOrError(this.q2x_1, callback) == null)
49914
49940
  return Unit_getInstance();
49915
- var tmp_0 = new GetLegRequest(legId);
49916
- this.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$getLeg$lambda(callback))));
49941
+ var tmp = new GetLegRequest(legId);
49942
+ this.q2x_1.c1a(new Action_0(tmp, new ActionMeta(VOID, VOID, VoiceAPIImpl$getLeg$lambda(callback))));
49917
49943
  };
49918
49944
  protoOf(VoiceAPIImpl).x17 = function (context, callback) {
49919
- var sessionState = ensureNotNull(this.q2x_1.t2o(getKClass(SessionReducer)));
49920
- var s = sessionState.f2w_1.f1();
49945
+ var tmp0_elvis_lhs = getSessionUserOrError(this.q2x_1, callback);
49921
49946
  var tmp;
49922
- if (s instanceof Active) {
49923
- tmp = s.v2d_1.p2k_1;
49924
- } else {
49925
- // Inline function 'kotlin.let' call
49926
- callback(toVonageError(new SessionNoActiveSessionError()), null);
49927
- // Inline function 'kotlin.contracts.contract' call
49928
- // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.serverCall.<anonymous>' call
49929
- tmp = null;
49930
- }
49931
- var tmp0_elvis_lhs = tmp;
49932
- var tmp_0;
49933
49947
  if (tmp0_elvis_lhs == null) {
49934
49948
  return Unit_getInstance();
49935
49949
  } else {
49936
- tmp_0 = tmp0_elvis_lhs;
49950
+ tmp = tmp0_elvis_lhs;
49937
49951
  }
49938
- var user = tmp_0;
49939
- var tmp_1 = new SetupOutboundCall(user, context);
49940
- this.q2x_1.c1a(new Action_0(tmp_1, new ActionMeta(VOID, VOID, VoiceAPIImpl$serverCall$lambda(this, callback))));
49952
+ var user = tmp;
49953
+ var tmp_0 = new SetupOutboundCall(user.p2k_1, context);
49954
+ this.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$serverCall$lambda(this, callback))));
49941
49955
  };
49942
49956
  protoOf(VoiceAPIImpl).y17 = function (callId, callback) {
49943
49957
  var once = {_v: null};
49944
49958
  var tmp = getKClass(CallReducer);
49945
49959
  once._v = this.q2x_1.a2p(tmp, VoiceAPIImpl$reconnectCall$lambda(this, callId, once, callback));
49946
- var sessionState = this.q2x_1.t2o(getKClass(SessionReducer));
49947
- var tmp1_safe_receiver = sessionState == null ? null : sessionState.f2w_1;
49948
- if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1())instanceof Active) {
49949
- var callState = ensureNotNull(this.q2x_1.t2o(getKClass(CallReducer)));
49950
- var call = callState.u2x_1.u1(callId);
49951
- var tmp4_safe_receiver = call == null ? null : call.i2x_1;
49952
- var tmp_0 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.f1();
49953
- var memberState = tmp_0 instanceof Joined ? tmp_0 : null;
49954
- if (call == null ? true : memberState == null) {
49955
- getCallDetailsAndDispatchCallReconnect(this, callId, callback);
49956
- } else {
49957
- this.q2x_1.c1a(Action_init_$Create$(new CallReconnect(callId, memberState.o2x_1, memberState.n2x_1)));
49958
- }
49960
+ if (getSessionUserOrError_0(this.q2x_1, callback) == null)
49961
+ return Unit_getInstance();
49962
+ var callState = ensureNotNull(this.q2x_1.t2o(getKClass(CallReducer)));
49963
+ var call = callState.u2x_1.u1(callId);
49964
+ var tmp2_safe_receiver = call == null ? null : call.i2x_1;
49965
+ var tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.f1();
49966
+ var memberState = tmp_0 instanceof Joined ? tmp_0 : null;
49967
+ if (call == null ? true : memberState == null) {
49968
+ getCallDetailsAndDispatchCallReconnect(this, callId, callback);
49959
49969
  } else {
49960
- callback(toVonageError(new SessionNoActiveSessionError()));
49970
+ this.q2x_1.c1a(Action_init_$Create$(new CallReconnect(callId, memberState.o2x_1, memberState.n2x_1)));
49961
49971
  }
49962
49972
  };
49963
49973
  protoOf(VoiceAPIImpl).a18 = function (callId, callback) {
49964
49974
  var invite = ensureNotNull(this.q2x_1.t2o(getKClass(InviteReducer))).s2y_1.u1(callId);
49965
49975
  if (invite == null) {
49966
- callback(toVonageError(new NoInviteFound()));
49976
+ invokeCallbackWithError_0(new NoInviteFound(), callback);
49967
49977
  return Unit_getInstance();
49968
49978
  }
49969
49979
  var tmp;
@@ -49982,7 +49992,7 @@ function requireClientsdkClientcore () {
49982
49992
  tmp = tmp_3 instanceof Left;
49983
49993
  }
49984
49994
  if (tmp) {
49985
- callback(toVonageError(new InvalidCallAction()));
49995
+ invokeCallbackWithError_0(new InvalidCallAction(), callback);
49986
49996
  return Unit_getInstance();
49987
49997
  }
49988
49998
  StaticConfig_getInstance();
@@ -49993,7 +50003,7 @@ function requireClientsdkClientcore () {
49993
50003
  protoOf(VoiceAPIImpl).b18 = function (callId, callback) {
49994
50004
  var invite = ensureNotNull(this.q2x_1.t2o(getKClass(InviteReducer))).s2y_1.u1(callId);
49995
50005
  if (invite == null) {
49996
- callback(toVonageError(new NoInviteFound()));
50006
+ invokeCallbackWithError_0(new NoInviteFound(), callback);
49997
50007
  return Unit_getInstance();
49998
50008
  }
49999
50009
  var tmp;
@@ -50012,16 +50022,16 @@ function requireClientsdkClientcore () {
50012
50022
  tmp = tmp_3 instanceof Left;
50013
50023
  }
50014
50024
  if (tmp) {
50015
- callback(toVonageError(new InvalidCallAction()));
50025
+ invokeCallbackWithError_0(new InvalidCallAction(), callback);
50016
50026
  return Unit_getInstance();
50017
50027
  }
50018
50028
  var tmp_4 = new MemberJoinRequest(invite.c2y_1, invite.b2y_1);
50019
- this.q2x_1.c1a(new Action_0(tmp_4, new ActionMeta(VOID, callId, VoiceAPIImpl$answerCall$lambda(callback, this, callId, invite))));
50029
+ this.q2x_1.c1a(new Action_0(tmp_4, new ActionMeta(VOID, callId, VoiceAPIImpl$answerCall$lambda(callback, invite, this, callId))));
50020
50030
  };
50021
50031
  protoOf(VoiceAPIImpl).c18 = function (callId, reasonText, reasonCode, callback) {
50022
50032
  var call = ensureNotNull(this.q2x_1.t2o(getKClass(CallReducer))).u2x_1.u1(callId);
50023
50033
  if (call == null) {
50024
- callback(toVonageError(new NoCallFound()));
50034
+ invokeCallbackWithError_0(new NoCallFound(), callback);
50025
50035
  return Unit_getInstance();
50026
50036
  }
50027
50037
  this.q2x_1.c1a(Action_init_$Create$(new MediaDisable(callId)));
@@ -50034,7 +50044,7 @@ function requireClientsdkClientcore () {
50034
50044
  var tmp_0 = new DeleteKnockerRequest(callMemberShipState.o2z_1);
50035
50045
  this.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, callId, VoiceAPIImpl$hangupCall$lambda_0(callback))));
50036
50046
  } else {
50037
- callback(toVonageError(new InvalidCallAction()));
50047
+ invokeCallbackWithError_0(new InvalidCallAction(), callback);
50038
50048
  }
50039
50049
  }
50040
50050
  };
@@ -50045,7 +50055,7 @@ function requireClientsdkClientcore () {
50045
50055
  else {
50046
50056
  // Inline function 'kotlin.let' call
50047
50057
  // Inline function 'kotlin.contracts.contract' call
50048
- callback(tmp0_safe_receiver);
50058
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
50049
50059
  }
50050
50060
  };
50051
50061
  protoOf(VoiceAPIImpl).e18 = function (callId, callback) {
@@ -50055,7 +50065,7 @@ function requireClientsdkClientcore () {
50055
50065
  else {
50056
50066
  // Inline function 'kotlin.let' call
50057
50067
  // Inline function 'kotlin.contracts.contract' call
50058
- callback(tmp0_safe_receiver);
50068
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
50059
50069
  }
50060
50070
  };
50061
50071
  protoOf(VoiceAPIImpl).f18 = function (callId, callback) {
@@ -50065,7 +50075,7 @@ function requireClientsdkClientcore () {
50065
50075
  else {
50066
50076
  // Inline function 'kotlin.let' call
50067
50077
  // Inline function 'kotlin.contracts.contract' call
50068
- callback(tmp0_safe_receiver);
50078
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
50069
50079
  }
50070
50080
  };
50071
50081
  protoOf(VoiceAPIImpl).g18 = function (callId, callback) {
@@ -50075,7 +50085,7 @@ function requireClientsdkClientcore () {
50075
50085
  else {
50076
50086
  // Inline function 'kotlin.let' call
50077
50087
  // Inline function 'kotlin.contracts.contract' call
50078
- callback(tmp0_safe_receiver);
50088
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
50079
50089
  }
50080
50090
  };
50081
50091
  protoOf(VoiceAPIImpl).h18 = function (callId, digits, callback) {
@@ -50085,7 +50095,7 @@ function requireClientsdkClientcore () {
50085
50095
  else {
50086
50096
  // Inline function 'kotlin.let' call
50087
50097
  // Inline function 'kotlin.contracts.contract' call
50088
- callback(tmp0_safe_receiver);
50098
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
50089
50099
  }
50090
50100
  };
50091
50101
  protoOf(VoiceAPIImpl).i18 = function (callId, text, level, loop, queue, voiceName, ssml, callback) {
@@ -50095,7 +50105,7 @@ function requireClientsdkClientcore () {
50095
50105
  else {
50096
50106
  // Inline function 'kotlin.let' call
50097
50107
  // Inline function 'kotlin.contracts.contract' call
50098
- callback(tmp0_safe_receiver);
50108
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
50099
50109
  }
50100
50110
  };
50101
50111
  function SetupOutboundCall(user, context) {
@@ -59570,7 +59580,7 @@ function requireClientsdkClientcore () {
59570
59580
  tmp = s.v2d_1;
59571
59581
  } else {
59572
59582
  // Inline function 'kotlin.let' call
59573
- callback(toVonageError(new SessionNoActiveSessionError()), null);
59583
+ invokeCallbackWithError(new SessionNoActiveSessionError(), callback);
59574
59584
  // Inline function 'kotlin.contracts.contract' call
59575
59585
  // Inline function 'com.vonage.clientcore.utils.getSessionUserOrError.<anonymous>' call
59576
59586
  tmp = null;
@@ -60330,24 +60340,24 @@ function requireClientsdkClientcore () {
60330
60340
  setMetadataFor(EventDeleteConversationEventJS, 'EventDeleteConversationEventJS', classMeta, VOID, [PersistentConversationEventJS, JSONBodyEventJS]);
60331
60341
  setMetadataFor(MessageEventJS, 'MessageEventJS', interfaceMeta);
60332
60342
  setMetadataFor(MessageEventBodyJS, 'MessageEventBodyJS', interfaceMeta);
60333
- setMetadataFor(Body, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60343
+ setMetadataFor(MessageTextEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60334
60344
  setMetadataFor(MessageTextEventJS, 'MessageTextEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60335
- setMetadataFor(Body_0, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60345
+ setMetadataFor(MessageCustomEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60336
60346
  setMetadataFor(MessageCustomEventJS, 'MessageCustomEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60337
- setMetadataFor(Body_1, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60347
+ setMetadataFor(MessageAudioEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60338
60348
  setMetadataFor(MessageAudioEventJS, 'MessageAudioEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60339
- setMetadataFor(Body_2, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60349
+ setMetadataFor(MessageVideoEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60340
60350
  setMetadataFor(MessageVideoEventJS, 'MessageVideoEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60341
- setMetadataFor(Body_3, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60351
+ setMetadataFor(MessageImageEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60342
60352
  setMetadataFor(MessageImageEventJS, 'MessageImageEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60343
- setMetadataFor(Body_4, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60353
+ setMetadataFor(MessageFileEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60344
60354
  setMetadataFor(MessageFileEventJS, 'MessageFileEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60345
- setMetadataFor(Body_5, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60355
+ setMetadataFor(MessageVCardEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60346
60356
  setMetadataFor(MessageVCardEventJS, 'MessageVCardEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60347
- setMetadataFor(Body_6, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60357
+ setMetadataFor(MessageLocationEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60348
60358
  setMetadataFor(Location_0, 'Location', classMeta);
60349
60359
  setMetadataFor(MessageLocationEventJS, 'MessageLocationEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60350
- setMetadataFor(Body_7, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60360
+ setMetadataFor(MessageTemplateEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60351
60361
  setMetadataFor(TemplateObject_0, 'TemplateObject', classMeta);
60352
60362
  setMetadataFor(WhatsappObject_0, 'WhatsappObject', classMeta);
60353
60363
  setMetadataFor(MessageTemplateEventJS, 'MessageTemplateEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
@@ -60661,268 +60671,163 @@ function requireClientsdkClientcore () {
60661
60671
  return this.user;
60662
60672
  };
60663
60673
  function MemberInvitedEventJS(event) {
60664
- this.c3f_1 = 'member:invited';
60665
- this.d3f_1 = event.w2q_1;
60666
- this.e3f_1 = event.x2q_1;
60667
- this.f3f_1 = event.y2q_1;
60668
- this.g3f_1 = map(event.z2q_1);
60669
- this.h3f_1 = new MemberEventBodyJS(event.a2r_1);
60674
+ this.kind = 'member:invited';
60675
+ this.id = event.w2q_1;
60676
+ this.timestamp = event.x2q_1;
60677
+ this.conversationId = event.y2q_1;
60678
+ this.from = map(event.z2q_1);
60679
+ this.body = new MemberEventBodyJS(event.a2r_1);
60670
60680
  }
60671
60681
  protoOf(MemberInvitedEventJS).lf = function () {
60672
- return this.c3f_1;
60682
+ return this.kind;
60673
60683
  };
60674
60684
  protoOf(MemberInvitedEventJS).n1z = function () {
60675
- return this.d3f_1;
60685
+ return this.id;
60676
60686
  };
60677
60687
  protoOf(MemberInvitedEventJS).g2b = function () {
60678
- return this.e3f_1;
60688
+ return this.timestamp;
60679
60689
  };
60680
60690
  protoOf(MemberInvitedEventJS).z3e = function () {
60681
- return this.f3f_1;
60691
+ return this.conversationId;
60682
60692
  };
60683
60693
  protoOf(MemberInvitedEventJS).a3f = function () {
60684
- return this.g3f_1;
60694
+ return this.from;
60685
60695
  };
60686
60696
  protoOf(MemberInvitedEventJS).b3f = function () {
60687
- return this.h3f_1;
60697
+ return this.body;
60688
60698
  };
60689
- defineProp(protoOf(MemberInvitedEventJS), 'kind', function () {
60690
- return this.lf();
60691
- }, VOID);
60692
- defineProp(protoOf(MemberInvitedEventJS), 'id', function () {
60693
- return this.n1z();
60694
- }, VOID);
60695
- defineProp(protoOf(MemberInvitedEventJS), 'timestamp', function () {
60696
- return this.g2b();
60697
- }, VOID);
60698
- defineProp(protoOf(MemberInvitedEventJS), 'conversationId', function () {
60699
- return this.z3e();
60700
- }, VOID);
60701
- defineProp(protoOf(MemberInvitedEventJS), 'from', function () {
60702
- return this.a3f();
60703
- }, VOID);
60704
- defineProp(protoOf(MemberInvitedEventJS), 'body', function () {
60705
- return this.b3f();
60706
- }, VOID);
60707
60699
  function MemberJoinedEventJS(event) {
60708
- this.i3f_1 = 'member:joined';
60709
- this.j3f_1 = event.b2r_1;
60710
- this.k3f_1 = event.c2r_1;
60711
- this.l3f_1 = event.d2r_1;
60712
- this.m3f_1 = map(event.e2r_1);
60713
- this.n3f_1 = new MemberEventBodyJS(event.f2r_1);
60700
+ this.kind = 'member:joined';
60701
+ this.id = event.b2r_1;
60702
+ this.timestamp = event.c2r_1;
60703
+ this.conversationId = event.d2r_1;
60704
+ this.from = map(event.e2r_1);
60705
+ this.body = new MemberEventBodyJS(event.f2r_1);
60714
60706
  }
60715
60707
  protoOf(MemberJoinedEventJS).lf = function () {
60716
- return this.i3f_1;
60708
+ return this.kind;
60717
60709
  };
60718
60710
  protoOf(MemberJoinedEventJS).n1z = function () {
60719
- return this.j3f_1;
60711
+ return this.id;
60720
60712
  };
60721
60713
  protoOf(MemberJoinedEventJS).g2b = function () {
60722
- return this.k3f_1;
60714
+ return this.timestamp;
60723
60715
  };
60724
60716
  protoOf(MemberJoinedEventJS).z3e = function () {
60725
- return this.l3f_1;
60717
+ return this.conversationId;
60726
60718
  };
60727
60719
  protoOf(MemberJoinedEventJS).a3f = function () {
60728
- return this.m3f_1;
60720
+ return this.from;
60729
60721
  };
60730
60722
  protoOf(MemberJoinedEventJS).b3f = function () {
60731
- return this.n3f_1;
60723
+ return this.body;
60732
60724
  };
60733
- defineProp(protoOf(MemberJoinedEventJS), 'kind', function () {
60734
- return this.lf();
60735
- }, VOID);
60736
- defineProp(protoOf(MemberJoinedEventJS), 'id', function () {
60737
- return this.n1z();
60738
- }, VOID);
60739
- defineProp(protoOf(MemberJoinedEventJS), 'timestamp', function () {
60740
- return this.g2b();
60741
- }, VOID);
60742
- defineProp(protoOf(MemberJoinedEventJS), 'conversationId', function () {
60743
- return this.z3e();
60744
- }, VOID);
60745
- defineProp(protoOf(MemberJoinedEventJS), 'from', function () {
60746
- return this.a3f();
60747
- }, VOID);
60748
- defineProp(protoOf(MemberJoinedEventJS), 'body', function () {
60749
- return this.b3f();
60750
- }, VOID);
60751
60725
  function MemberLeftEventJS(event) {
60752
- this.o3f_1 = 'member:left';
60753
- this.p3f_1 = event.g2r_1;
60754
- this.q3f_1 = event.h2r_1;
60755
- this.r3f_1 = event.i2r_1;
60756
- this.s3f_1 = map(event.j2r_1);
60757
- this.t3f_1 = new MemberEventBodyJS(event.k2r_1);
60726
+ this.kind = 'member:left';
60727
+ this.id = event.g2r_1;
60728
+ this.timestamp = event.h2r_1;
60729
+ this.conversationId = event.i2r_1;
60730
+ this.from = map(event.j2r_1);
60731
+ this.body = new MemberEventBodyJS(event.k2r_1);
60758
60732
  }
60759
60733
  protoOf(MemberLeftEventJS).lf = function () {
60760
- return this.o3f_1;
60734
+ return this.kind;
60761
60735
  };
60762
60736
  protoOf(MemberLeftEventJS).n1z = function () {
60763
- return this.p3f_1;
60737
+ return this.id;
60764
60738
  };
60765
60739
  protoOf(MemberLeftEventJS).g2b = function () {
60766
- return this.q3f_1;
60740
+ return this.timestamp;
60767
60741
  };
60768
60742
  protoOf(MemberLeftEventJS).z3e = function () {
60769
- return this.r3f_1;
60743
+ return this.conversationId;
60770
60744
  };
60771
60745
  protoOf(MemberLeftEventJS).a3f = function () {
60772
- return this.s3f_1;
60746
+ return this.from;
60773
60747
  };
60774
60748
  protoOf(MemberLeftEventJS).b3f = function () {
60775
- return this.t3f_1;
60749
+ return this.body;
60776
60750
  };
60777
- defineProp(protoOf(MemberLeftEventJS), 'kind', function () {
60778
- return this.lf();
60779
- }, VOID);
60780
- defineProp(protoOf(MemberLeftEventJS), 'id', function () {
60781
- return this.n1z();
60782
- }, VOID);
60783
- defineProp(protoOf(MemberLeftEventJS), 'timestamp', function () {
60784
- return this.g2b();
60785
- }, VOID);
60786
- defineProp(protoOf(MemberLeftEventJS), 'conversationId', function () {
60787
- return this.z3e();
60788
- }, VOID);
60789
- defineProp(protoOf(MemberLeftEventJS), 'from', function () {
60790
- return this.a3f();
60791
- }, VOID);
60792
- defineProp(protoOf(MemberLeftEventJS), 'body', function () {
60793
- return this.b3f();
60794
- }, VOID);
60795
60751
  function JSONBodyEventJS() {
60796
60752
  }
60797
60753
  function CustomConversationEventJS(event) {
60798
- this.u3f_1 = 'custom';
60799
- this.v3f_1 = event.l2r_1;
60800
- this.w3f_1 = event.m2r_1;
60801
- this.x3f_1 = event.n2r_1;
60802
- this.y3f_1 = map(event.o2r_1);
60754
+ this.kind = 'custom';
60755
+ this.id = event.l2r_1;
60756
+ this.timestamp = event.m2r_1;
60757
+ this.conversationId = event.n2r_1;
60758
+ this.from = map(event.o2r_1);
60803
60759
  this.eventType = event.q2r_1;
60804
- this.z3f_1 = event.p2r_1;
60760
+ this.body = event.p2r_1;
60805
60761
  }
60806
60762
  protoOf(CustomConversationEventJS).lf = function () {
60807
- return this.u3f_1;
60763
+ return this.kind;
60808
60764
  };
60809
60765
  protoOf(CustomConversationEventJS).n1z = function () {
60810
- return this.v3f_1;
60766
+ return this.id;
60811
60767
  };
60812
60768
  protoOf(CustomConversationEventJS).g2b = function () {
60813
- return this.w3f_1;
60769
+ return this.timestamp;
60814
60770
  };
60815
60771
  protoOf(CustomConversationEventJS).z3e = function () {
60816
- return this.x3f_1;
60772
+ return this.conversationId;
60817
60773
  };
60818
60774
  protoOf(CustomConversationEventJS).a3f = function () {
60819
- return this.y3f_1;
60775
+ return this.from;
60820
60776
  };
60821
- protoOf(CustomConversationEventJS).a3g = function () {
60777
+ protoOf(CustomConversationEventJS).c3f = function () {
60822
60778
  return this.eventType;
60823
60779
  };
60824
60780
  protoOf(CustomConversationEventJS).b3f = function () {
60825
- return this.z3f_1;
60781
+ return this.body;
60826
60782
  };
60827
- defineProp(protoOf(CustomConversationEventJS), 'kind', function () {
60828
- return this.lf();
60829
- }, VOID);
60830
- defineProp(protoOf(CustomConversationEventJS), 'id', function () {
60831
- return this.n1z();
60832
- }, VOID);
60833
- defineProp(protoOf(CustomConversationEventJS), 'timestamp', function () {
60834
- return this.g2b();
60835
- }, VOID);
60836
- defineProp(protoOf(CustomConversationEventJS), 'conversationId', function () {
60837
- return this.z3e();
60838
- }, VOID);
60839
- defineProp(protoOf(CustomConversationEventJS), 'from', function () {
60840
- return this.a3f();
60841
- }, VOID);
60842
- defineProp(protoOf(CustomConversationEventJS), 'body', function () {
60843
- return this.b3f();
60844
- }, VOID);
60845
60783
  function EphemeralConversationEventJS(event) {
60846
- this.b3g_1 = 'ephemeral';
60847
- this.c3g_1 = event.r2r_1;
60848
- this.d3g_1 = event.s2r_1;
60849
- this.e3g_1 = map(event.t2r_1);
60850
- this.f3g_1 = event.u2r_1;
60784
+ this.kind = 'ephemeral';
60785
+ this.timestamp = event.r2r_1;
60786
+ this.conversationId = event.s2r_1;
60787
+ this.from = map(event.t2r_1);
60788
+ this.body = event.u2r_1;
60851
60789
  }
60852
60790
  protoOf(EphemeralConversationEventJS).lf = function () {
60853
- return this.b3g_1;
60791
+ return this.kind;
60854
60792
  };
60855
60793
  protoOf(EphemeralConversationEventJS).g2b = function () {
60856
- return this.c3g_1;
60794
+ return this.timestamp;
60857
60795
  };
60858
60796
  protoOf(EphemeralConversationEventJS).z3e = function () {
60859
- return this.d3g_1;
60797
+ return this.conversationId;
60860
60798
  };
60861
60799
  protoOf(EphemeralConversationEventJS).a3f = function () {
60862
- return this.e3g_1;
60800
+ return this.from;
60863
60801
  };
60864
60802
  protoOf(EphemeralConversationEventJS).b3f = function () {
60865
- return this.f3g_1;
60803
+ return this.body;
60866
60804
  };
60867
- defineProp(protoOf(EphemeralConversationEventJS), 'kind', function () {
60868
- return this.lf();
60869
- }, VOID);
60870
- defineProp(protoOf(EphemeralConversationEventJS), 'timestamp', function () {
60871
- return this.g2b();
60872
- }, VOID);
60873
- defineProp(protoOf(EphemeralConversationEventJS), 'conversationId', function () {
60874
- return this.z3e();
60875
- }, VOID);
60876
- defineProp(protoOf(EphemeralConversationEventJS), 'from', function () {
60877
- return this.a3f();
60878
- }, VOID);
60879
- defineProp(protoOf(EphemeralConversationEventJS), 'body', function () {
60880
- return this.b3f();
60881
- }, VOID);
60882
60805
  function EventDeleteConversationEventJS(event) {
60883
- this.g3g_1 = 'event:delete';
60884
- this.h3g_1 = event.v2r_1;
60885
- this.i3g_1 = event.w2r_1;
60886
- this.j3g_1 = event.x2r_1;
60887
- this.k3g_1 = map(event.y2r_1);
60888
- this.l3g_1 = event.z2r_1;
60806
+ this.kind = 'event:delete';
60807
+ this.id = event.v2r_1;
60808
+ this.timestamp = event.w2r_1;
60809
+ this.conversationId = event.x2r_1;
60810
+ this.from = map(event.y2r_1);
60811
+ this.body = event.z2r_1;
60889
60812
  }
60890
60813
  protoOf(EventDeleteConversationEventJS).lf = function () {
60891
- return this.g3g_1;
60814
+ return this.kind;
60892
60815
  };
60893
60816
  protoOf(EventDeleteConversationEventJS).n1z = function () {
60894
- return this.h3g_1;
60817
+ return this.id;
60895
60818
  };
60896
60819
  protoOf(EventDeleteConversationEventJS).g2b = function () {
60897
- return this.i3g_1;
60820
+ return this.timestamp;
60898
60821
  };
60899
60822
  protoOf(EventDeleteConversationEventJS).z3e = function () {
60900
- return this.j3g_1;
60823
+ return this.conversationId;
60901
60824
  };
60902
60825
  protoOf(EventDeleteConversationEventJS).a3f = function () {
60903
- return this.k3g_1;
60826
+ return this.from;
60904
60827
  };
60905
60828
  protoOf(EventDeleteConversationEventJS).b3f = function () {
60906
- return this.l3g_1;
60829
+ return this.body;
60907
60830
  };
60908
- defineProp(protoOf(EventDeleteConversationEventJS), 'kind', function () {
60909
- return this.lf();
60910
- }, VOID);
60911
- defineProp(protoOf(EventDeleteConversationEventJS), 'id', function () {
60912
- return this.n1z();
60913
- }, VOID);
60914
- defineProp(protoOf(EventDeleteConversationEventJS), 'timestamp', function () {
60915
- return this.g2b();
60916
- }, VOID);
60917
- defineProp(protoOf(EventDeleteConversationEventJS), 'conversationId', function () {
60918
- return this.z3e();
60919
- }, VOID);
60920
- defineProp(protoOf(EventDeleteConversationEventJS), 'from', function () {
60921
- return this.a3f();
60922
- }, VOID);
60923
- defineProp(protoOf(EventDeleteConversationEventJS), 'body', function () {
60924
- return this.b3f();
60925
- }, VOID);
60926
60831
  function map(_this__u8e3s4) {
60927
60832
  var tmp;
60928
60833
  if (_this__u8e3s4 instanceof EmbeddedInfo) {
@@ -61014,527 +60919,356 @@ function requireClientsdkClientcore () {
61014
60919
  }
61015
60920
  function MessageEventBodyJS() {
61016
60921
  }
61017
- function Body(body) {
60922
+ function MessageTextEventBody(body) {
61018
60923
  this.text = body.w2s_1;
61019
- this.n3g_1 = body.x2s_1;
60924
+ this.deleted = body.x2s_1;
61020
60925
  }
61021
- protoOf(Body).o3g = function () {
60926
+ protoOf(MessageTextEventBody).d3f = function () {
61022
60927
  return this.text;
61023
60928
  };
61024
- protoOf(Body).m3g = function () {
61025
- return this.n3g_1;
60929
+ protoOf(MessageTextEventBody).e3f = function () {
60930
+ return this.deleted;
61026
60931
  };
61027
- defineProp(protoOf(Body), 'deleted', function () {
61028
- return this.m3g();
61029
- }, VOID);
61030
60932
  function MessageTextEventJS(event) {
61031
- this.p3g_1 = 'message:text';
61032
- this.q3g_1 = event.a2t_1;
61033
- this.r3g_1 = event.y2s_1;
61034
- this.s3g_1 = event.z2s_1;
61035
- this.t3g_1 = map(event.b2t_1);
61036
- this.u3g_1 = new Body(event.c2t_1);
60933
+ this.kind = 'message:text';
60934
+ this.id = event.a2t_1;
60935
+ this.timestamp = event.y2s_1;
60936
+ this.conversationId = event.z2s_1;
60937
+ this.from = map(event.b2t_1);
60938
+ this.body = new MessageTextEventBody(event.c2t_1);
61037
60939
  }
61038
60940
  protoOf(MessageTextEventJS).lf = function () {
61039
- return this.p3g_1;
60941
+ return this.kind;
61040
60942
  };
61041
60943
  protoOf(MessageTextEventJS).n1z = function () {
61042
- return this.q3g_1;
60944
+ return this.id;
61043
60945
  };
61044
60946
  protoOf(MessageTextEventJS).g2b = function () {
61045
- return this.r3g_1;
60947
+ return this.timestamp;
61046
60948
  };
61047
60949
  protoOf(MessageTextEventJS).z3e = function () {
61048
- return this.s3g_1;
60950
+ return this.conversationId;
61049
60951
  };
61050
60952
  protoOf(MessageTextEventJS).a3f = function () {
61051
- return this.t3g_1;
60953
+ return this.from;
61052
60954
  };
61053
60955
  protoOf(MessageTextEventJS).b3f = function () {
61054
- return this.u3g_1;
60956
+ return this.body;
61055
60957
  };
61056
- defineProp(protoOf(MessageTextEventJS), 'kind', function () {
61057
- return this.lf();
61058
- }, VOID);
61059
- defineProp(protoOf(MessageTextEventJS), 'id', function () {
61060
- return this.n1z();
61061
- }, VOID);
61062
- defineProp(protoOf(MessageTextEventJS), 'timestamp', function () {
61063
- return this.g2b();
61064
- }, VOID);
61065
- defineProp(protoOf(MessageTextEventJS), 'conversationId', function () {
61066
- return this.z3e();
61067
- }, VOID);
61068
- defineProp(protoOf(MessageTextEventJS), 'from', function () {
61069
- return this.a3f();
61070
- }, VOID);
61071
- defineProp(protoOf(MessageTextEventJS), 'body', function () {
61072
- return this.b3f();
61073
- }, VOID);
61074
- function Body_0(body) {
60958
+ function MessageCustomEventBody(body) {
61075
60959
  this.customData = body.d2t_1;
61076
- this.v3g_1 = body.e2t_1;
60960
+ this.deleted = body.e2t_1;
61077
60961
  }
61078
- protoOf(Body_0).w3g = function () {
60962
+ protoOf(MessageCustomEventBody).f3f = function () {
61079
60963
  return this.customData;
61080
60964
  };
61081
- protoOf(Body_0).m3g = function () {
61082
- return this.v3g_1;
60965
+ protoOf(MessageCustomEventBody).e3f = function () {
60966
+ return this.deleted;
61083
60967
  };
61084
- defineProp(protoOf(Body_0), 'deleted', function () {
61085
- return this.m3g();
61086
- }, VOID);
61087
60968
  function MessageCustomEventJS(event) {
61088
- this.x3g_1 = 'message:custom';
61089
- this.y3g_1 = event.h2t_1;
61090
- this.z3g_1 = event.f2t_1;
61091
- this.a3h_1 = event.g2t_1;
61092
- this.b3h_1 = map(event.i2t_1);
61093
- this.c3h_1 = new Body_0(event.j2t_1);
60969
+ this.kind = 'message:custom';
60970
+ this.id = event.h2t_1;
60971
+ this.timestamp = event.f2t_1;
60972
+ this.conversationId = event.g2t_1;
60973
+ this.from = map(event.i2t_1);
60974
+ this.body = new MessageCustomEventBody(event.j2t_1);
61094
60975
  }
61095
60976
  protoOf(MessageCustomEventJS).lf = function () {
61096
- return this.x3g_1;
60977
+ return this.kind;
61097
60978
  };
61098
60979
  protoOf(MessageCustomEventJS).n1z = function () {
61099
- return this.y3g_1;
60980
+ return this.id;
61100
60981
  };
61101
60982
  protoOf(MessageCustomEventJS).g2b = function () {
61102
- return this.z3g_1;
60983
+ return this.timestamp;
61103
60984
  };
61104
60985
  protoOf(MessageCustomEventJS).z3e = function () {
61105
- return this.a3h_1;
60986
+ return this.conversationId;
61106
60987
  };
61107
60988
  protoOf(MessageCustomEventJS).a3f = function () {
61108
- return this.b3h_1;
60989
+ return this.from;
61109
60990
  };
61110
60991
  protoOf(MessageCustomEventJS).b3f = function () {
61111
- return this.c3h_1;
60992
+ return this.body;
61112
60993
  };
61113
- defineProp(protoOf(MessageCustomEventJS), 'kind', function () {
61114
- return this.lf();
61115
- }, VOID);
61116
- defineProp(protoOf(MessageCustomEventJS), 'id', function () {
61117
- return this.n1z();
61118
- }, VOID);
61119
- defineProp(protoOf(MessageCustomEventJS), 'timestamp', function () {
61120
- return this.g2b();
61121
- }, VOID);
61122
- defineProp(protoOf(MessageCustomEventJS), 'conversationId', function () {
61123
- return this.z3e();
61124
- }, VOID);
61125
- defineProp(protoOf(MessageCustomEventJS), 'from', function () {
61126
- return this.a3f();
61127
- }, VOID);
61128
- defineProp(protoOf(MessageCustomEventJS), 'body', function () {
61129
- return this.b3f();
61130
- }, VOID);
61131
- function Body_1(body) {
60994
+ function MessageAudioEventBody(body) {
61132
60995
  this.audioUrl = body.y2t_1;
61133
- this.d3h_1 = body.z2t_1;
60996
+ this.deleted = body.z2t_1;
61134
60997
  }
61135
- protoOf(Body_1).e3h = function () {
60998
+ protoOf(MessageAudioEventBody).g3f = function () {
61136
60999
  return this.audioUrl;
61137
61000
  };
61138
- protoOf(Body_1).m3g = function () {
61139
- return this.d3h_1;
61001
+ protoOf(MessageAudioEventBody).e3f = function () {
61002
+ return this.deleted;
61140
61003
  };
61141
- defineProp(protoOf(Body_1), 'deleted', function () {
61142
- return this.m3g();
61143
- }, VOID);
61144
61004
  function MessageAudioEventJS(event) {
61145
- this.f3h_1 = 'message:audio';
61146
- this.g3h_1 = event.c2u_1;
61147
- this.h3h_1 = event.a2u_1;
61148
- this.i3h_1 = event.b2u_1;
61149
- this.j3h_1 = map(event.d2u_1);
61150
- this.k3h_1 = new Body_1(event.e2u_1);
61005
+ this.kind = 'message:audio';
61006
+ this.id = event.c2u_1;
61007
+ this.timestamp = event.a2u_1;
61008
+ this.conversationId = event.b2u_1;
61009
+ this.from = map(event.d2u_1);
61010
+ this.body = new MessageAudioEventBody(event.e2u_1);
61151
61011
  }
61152
61012
  protoOf(MessageAudioEventJS).lf = function () {
61153
- return this.f3h_1;
61013
+ return this.kind;
61154
61014
  };
61155
61015
  protoOf(MessageAudioEventJS).n1z = function () {
61156
- return this.g3h_1;
61016
+ return this.id;
61157
61017
  };
61158
61018
  protoOf(MessageAudioEventJS).g2b = function () {
61159
- return this.h3h_1;
61019
+ return this.timestamp;
61160
61020
  };
61161
61021
  protoOf(MessageAudioEventJS).z3e = function () {
61162
- return this.i3h_1;
61022
+ return this.conversationId;
61163
61023
  };
61164
61024
  protoOf(MessageAudioEventJS).a3f = function () {
61165
- return this.j3h_1;
61025
+ return this.from;
61166
61026
  };
61167
61027
  protoOf(MessageAudioEventJS).b3f = function () {
61168
- return this.k3h_1;
61028
+ return this.body;
61169
61029
  };
61170
- defineProp(protoOf(MessageAudioEventJS), 'kind', function () {
61171
- return this.lf();
61172
- }, VOID);
61173
- defineProp(protoOf(MessageAudioEventJS), 'id', function () {
61174
- return this.n1z();
61175
- }, VOID);
61176
- defineProp(protoOf(MessageAudioEventJS), 'timestamp', function () {
61177
- return this.g2b();
61178
- }, VOID);
61179
- defineProp(protoOf(MessageAudioEventJS), 'conversationId', function () {
61180
- return this.z3e();
61181
- }, VOID);
61182
- defineProp(protoOf(MessageAudioEventJS), 'from', function () {
61183
- return this.a3f();
61184
- }, VOID);
61185
- defineProp(protoOf(MessageAudioEventJS), 'body', function () {
61186
- return this.b3f();
61187
- }, VOID);
61188
- function Body_2(body) {
61030
+ function MessageVideoEventBody(body) {
61189
61031
  this.videoUrl = body.r2t_1;
61190
- this.l3h_1 = body.s2t_1;
61032
+ this.deleted = body.s2t_1;
61191
61033
  }
61192
- protoOf(Body_2).m3h = function () {
61034
+ protoOf(MessageVideoEventBody).h3f = function () {
61193
61035
  return this.videoUrl;
61194
61036
  };
61195
- protoOf(Body_2).m3g = function () {
61196
- return this.l3h_1;
61037
+ protoOf(MessageVideoEventBody).e3f = function () {
61038
+ return this.deleted;
61197
61039
  };
61198
- defineProp(protoOf(Body_2), 'deleted', function () {
61199
- return this.m3g();
61200
- }, VOID);
61201
61040
  function MessageVideoEventJS(event) {
61202
- this.n3h_1 = 'message:video';
61203
- this.o3h_1 = event.v2t_1;
61204
- this.p3h_1 = event.t2t_1;
61205
- this.q3h_1 = event.u2t_1;
61206
- this.r3h_1 = map(event.w2t_1);
61207
- this.s3h_1 = new Body_2(event.x2t_1);
61041
+ this.kind = 'message:video';
61042
+ this.id = event.v2t_1;
61043
+ this.timestamp = event.t2t_1;
61044
+ this.conversationId = event.u2t_1;
61045
+ this.from = map(event.w2t_1);
61046
+ this.body = new MessageVideoEventBody(event.x2t_1);
61208
61047
  }
61209
61048
  protoOf(MessageVideoEventJS).lf = function () {
61210
- return this.n3h_1;
61049
+ return this.kind;
61211
61050
  };
61212
61051
  protoOf(MessageVideoEventJS).n1z = function () {
61213
- return this.o3h_1;
61052
+ return this.id;
61214
61053
  };
61215
61054
  protoOf(MessageVideoEventJS).g2b = function () {
61216
- return this.p3h_1;
61055
+ return this.timestamp;
61217
61056
  };
61218
61057
  protoOf(MessageVideoEventJS).z3e = function () {
61219
- return this.q3h_1;
61058
+ return this.conversationId;
61220
61059
  };
61221
61060
  protoOf(MessageVideoEventJS).a3f = function () {
61222
- return this.r3h_1;
61061
+ return this.from;
61223
61062
  };
61224
61063
  protoOf(MessageVideoEventJS).b3f = function () {
61225
- return this.s3h_1;
61064
+ return this.body;
61226
61065
  };
61227
- defineProp(protoOf(MessageVideoEventJS), 'kind', function () {
61228
- return this.lf();
61229
- }, VOID);
61230
- defineProp(protoOf(MessageVideoEventJS), 'id', function () {
61231
- return this.n1z();
61232
- }, VOID);
61233
- defineProp(protoOf(MessageVideoEventJS), 'timestamp', function () {
61234
- return this.g2b();
61235
- }, VOID);
61236
- defineProp(protoOf(MessageVideoEventJS), 'conversationId', function () {
61237
- return this.z3e();
61238
- }, VOID);
61239
- defineProp(protoOf(MessageVideoEventJS), 'from', function () {
61240
- return this.a3f();
61241
- }, VOID);
61242
- defineProp(protoOf(MessageVideoEventJS), 'body', function () {
61243
- return this.b3f();
61244
- }, VOID);
61245
- function Body_3(body) {
61066
+ function MessageImageEventBody(body) {
61246
61067
  this.imageUrl = body.k2t_1;
61247
- this.t3h_1 = body.l2t_1;
61068
+ this.deleted = body.l2t_1;
61248
61069
  }
61249
- protoOf(Body_3).u3h = function () {
61070
+ protoOf(MessageImageEventBody).i3f = function () {
61250
61071
  return this.imageUrl;
61251
61072
  };
61252
- protoOf(Body_3).m3g = function () {
61253
- return this.t3h_1;
61073
+ protoOf(MessageImageEventBody).e3f = function () {
61074
+ return this.deleted;
61254
61075
  };
61255
- defineProp(protoOf(Body_3), 'deleted', function () {
61256
- return this.m3g();
61257
- }, VOID);
61258
61076
  function MessageImageEventJS(event) {
61259
- this.v3h_1 = 'message:image';
61260
- this.w3h_1 = event.o2t_1;
61261
- this.x3h_1 = event.m2t_1;
61262
- this.y3h_1 = event.n2t_1;
61263
- this.z3h_1 = map(event.p2t_1);
61264
- this.a3i_1 = new Body_3(event.q2t_1);
61077
+ this.kind = 'message:image';
61078
+ this.id = event.o2t_1;
61079
+ this.timestamp = event.m2t_1;
61080
+ this.conversationId = event.n2t_1;
61081
+ this.from = map(event.p2t_1);
61082
+ this.body = new MessageImageEventBody(event.q2t_1);
61265
61083
  }
61266
61084
  protoOf(MessageImageEventJS).lf = function () {
61267
- return this.v3h_1;
61085
+ return this.kind;
61268
61086
  };
61269
61087
  protoOf(MessageImageEventJS).n1z = function () {
61270
- return this.w3h_1;
61088
+ return this.id;
61271
61089
  };
61272
61090
  protoOf(MessageImageEventJS).g2b = function () {
61273
- return this.x3h_1;
61091
+ return this.timestamp;
61274
61092
  };
61275
61093
  protoOf(MessageImageEventJS).z3e = function () {
61276
- return this.y3h_1;
61094
+ return this.conversationId;
61277
61095
  };
61278
61096
  protoOf(MessageImageEventJS).a3f = function () {
61279
- return this.z3h_1;
61097
+ return this.from;
61280
61098
  };
61281
61099
  protoOf(MessageImageEventJS).b3f = function () {
61282
- return this.a3i_1;
61100
+ return this.body;
61283
61101
  };
61284
- defineProp(protoOf(MessageImageEventJS), 'kind', function () {
61285
- return this.lf();
61286
- }, VOID);
61287
- defineProp(protoOf(MessageImageEventJS), 'id', function () {
61288
- return this.n1z();
61289
- }, VOID);
61290
- defineProp(protoOf(MessageImageEventJS), 'timestamp', function () {
61291
- return this.g2b();
61292
- }, VOID);
61293
- defineProp(protoOf(MessageImageEventJS), 'conversationId', function () {
61294
- return this.z3e();
61295
- }, VOID);
61296
- defineProp(protoOf(MessageImageEventJS), 'from', function () {
61297
- return this.a3f();
61298
- }, VOID);
61299
- defineProp(protoOf(MessageImageEventJS), 'body', function () {
61300
- return this.b3f();
61301
- }, VOID);
61302
- function Body_4(body) {
61102
+ function MessageFileEventBody(body) {
61303
61103
  this.fileUrl = body.f2u_1;
61304
- this.b3i_1 = body.g2u_1;
61104
+ this.deleted = body.g2u_1;
61305
61105
  }
61306
- protoOf(Body_4).c3i = function () {
61106
+ protoOf(MessageFileEventBody).j3f = function () {
61307
61107
  return this.fileUrl;
61308
61108
  };
61309
- protoOf(Body_4).m3g = function () {
61310
- return this.b3i_1;
61109
+ protoOf(MessageFileEventBody).e3f = function () {
61110
+ return this.deleted;
61311
61111
  };
61312
- defineProp(protoOf(Body_4), 'deleted', function () {
61313
- return this.m3g();
61314
- }, VOID);
61315
61112
  function MessageFileEventJS(event) {
61316
- this.d3i_1 = 'message:file';
61317
- this.e3i_1 = event.j2u_1;
61318
- this.f3i_1 = event.h2u_1;
61319
- this.g3i_1 = event.i2u_1;
61320
- this.h3i_1 = map(event.k2u_1);
61321
- this.i3i_1 = new Body_4(event.l2u_1);
61113
+ this.kind = 'message:file';
61114
+ this.id = event.j2u_1;
61115
+ this.timestamp = event.h2u_1;
61116
+ this.conversationId = event.i2u_1;
61117
+ this.from = map(event.k2u_1);
61118
+ this.body = new MessageFileEventBody(event.l2u_1);
61322
61119
  }
61323
61120
  protoOf(MessageFileEventJS).lf = function () {
61324
- return this.d3i_1;
61121
+ return this.kind;
61325
61122
  };
61326
61123
  protoOf(MessageFileEventJS).n1z = function () {
61327
- return this.e3i_1;
61124
+ return this.id;
61328
61125
  };
61329
61126
  protoOf(MessageFileEventJS).g2b = function () {
61330
- return this.f3i_1;
61127
+ return this.timestamp;
61331
61128
  };
61332
61129
  protoOf(MessageFileEventJS).z3e = function () {
61333
- return this.g3i_1;
61130
+ return this.conversationId;
61334
61131
  };
61335
61132
  protoOf(MessageFileEventJS).a3f = function () {
61336
- return this.h3i_1;
61133
+ return this.from;
61337
61134
  };
61338
61135
  protoOf(MessageFileEventJS).b3f = function () {
61339
- return this.i3i_1;
61136
+ return this.body;
61340
61137
  };
61341
- defineProp(protoOf(MessageFileEventJS), 'kind', function () {
61342
- return this.lf();
61343
- }, VOID);
61344
- defineProp(protoOf(MessageFileEventJS), 'id', function () {
61345
- return this.n1z();
61346
- }, VOID);
61347
- defineProp(protoOf(MessageFileEventJS), 'timestamp', function () {
61348
- return this.g2b();
61349
- }, VOID);
61350
- defineProp(protoOf(MessageFileEventJS), 'conversationId', function () {
61351
- return this.z3e();
61352
- }, VOID);
61353
- defineProp(protoOf(MessageFileEventJS), 'from', function () {
61354
- return this.a3f();
61355
- }, VOID);
61356
- defineProp(protoOf(MessageFileEventJS), 'body', function () {
61357
- return this.b3f();
61358
- }, VOID);
61359
- function Body_5(body) {
61138
+ function MessageVCardEventBody(body) {
61360
61139
  this.vcardUrl = body.m2u_1;
61361
- this.j3i_1 = body.n2u_1;
61140
+ this.deleted = body.n2u_1;
61362
61141
  }
61363
- protoOf(Body_5).k3i = function () {
61142
+ protoOf(MessageVCardEventBody).k3f = function () {
61364
61143
  return this.vcardUrl;
61365
61144
  };
61366
- protoOf(Body_5).m3g = function () {
61367
- return this.j3i_1;
61145
+ protoOf(MessageVCardEventBody).e3f = function () {
61146
+ return this.deleted;
61368
61147
  };
61369
- defineProp(protoOf(Body_5), 'deleted', function () {
61370
- return this.m3g();
61371
- }, VOID);
61372
61148
  function MessageVCardEventJS(event) {
61373
- this.l3i_1 = 'message:vcard';
61374
- this.m3i_1 = event.q2u_1;
61375
- this.n3i_1 = event.o2u_1;
61376
- this.o3i_1 = event.p2u_1;
61377
- this.p3i_1 = map(event.r2u_1);
61378
- this.q3i_1 = new Body_5(event.s2u_1);
61149
+ this.kind = 'message:vcard';
61150
+ this.id = event.q2u_1;
61151
+ this.timestamp = event.o2u_1;
61152
+ this.conversationId = event.p2u_1;
61153
+ this.from = map(event.r2u_1);
61154
+ this.body = new MessageVCardEventBody(event.s2u_1);
61379
61155
  }
61380
61156
  protoOf(MessageVCardEventJS).lf = function () {
61381
- return this.l3i_1;
61157
+ return this.kind;
61382
61158
  };
61383
61159
  protoOf(MessageVCardEventJS).n1z = function () {
61384
- return this.m3i_1;
61160
+ return this.id;
61385
61161
  };
61386
61162
  protoOf(MessageVCardEventJS).g2b = function () {
61387
- return this.n3i_1;
61163
+ return this.timestamp;
61388
61164
  };
61389
61165
  protoOf(MessageVCardEventJS).z3e = function () {
61390
- return this.o3i_1;
61166
+ return this.conversationId;
61391
61167
  };
61392
61168
  protoOf(MessageVCardEventJS).a3f = function () {
61393
- return this.p3i_1;
61169
+ return this.from;
61394
61170
  };
61395
61171
  protoOf(MessageVCardEventJS).b3f = function () {
61396
- return this.q3i_1;
61172
+ return this.body;
61397
61173
  };
61398
- defineProp(protoOf(MessageVCardEventJS), 'kind', function () {
61399
- return this.lf();
61400
- }, VOID);
61401
- defineProp(protoOf(MessageVCardEventJS), 'id', function () {
61402
- return this.n1z();
61403
- }, VOID);
61404
- defineProp(protoOf(MessageVCardEventJS), 'timestamp', function () {
61405
- return this.g2b();
61406
- }, VOID);
61407
- defineProp(protoOf(MessageVCardEventJS), 'conversationId', function () {
61408
- return this.z3e();
61409
- }, VOID);
61410
- defineProp(protoOf(MessageVCardEventJS), 'from', function () {
61411
- return this.a3f();
61412
- }, VOID);
61413
- defineProp(protoOf(MessageVCardEventJS), 'body', function () {
61414
- return this.b3f();
61415
- }, VOID);
61416
- function Body_6(body) {
61174
+ function MessageLocationEventBody(body) {
61417
61175
  this.location = new Location_0(body.b2v_1);
61418
- this.r3i_1 = body.c2v_1;
61176
+ this.deleted = body.c2v_1;
61419
61177
  }
61420
- protoOf(Body_6).s3i = function () {
61178
+ protoOf(MessageLocationEventBody).l3f = function () {
61421
61179
  return this.location;
61422
61180
  };
61423
- protoOf(Body_6).m3g = function () {
61424
- return this.r3i_1;
61181
+ protoOf(MessageLocationEventBody).e3f = function () {
61182
+ return this.deleted;
61425
61183
  };
61426
- defineProp(protoOf(Body_6), 'deleted', function () {
61427
- return this.m3g();
61428
- }, VOID);
61429
61184
  function Location_0(location) {
61430
61185
  this.longitude = location.f2c_1;
61431
61186
  this.latitude = location.g2c_1;
61432
61187
  this.name = location.h2c_1;
61433
61188
  this.address = location.i2c_1;
61434
61189
  }
61435
- protoOf(Location_0).t3i = function () {
61190
+ protoOf(Location_0).m3f = function () {
61436
61191
  return this.longitude;
61437
61192
  };
61438
- protoOf(Location_0).u3i = function () {
61193
+ protoOf(Location_0).n3f = function () {
61439
61194
  return this.latitude;
61440
61195
  };
61441
61196
  protoOf(Location_0).mc = function () {
61442
61197
  return this.name;
61443
61198
  };
61444
- protoOf(Location_0).v3i = function () {
61199
+ protoOf(Location_0).o3f = function () {
61445
61200
  return this.address;
61446
61201
  };
61447
61202
  function MessageLocationEventJS(event) {
61448
- this.w3i_1 = 'message:location';
61449
- this.x3i_1 = event.f2v_1;
61450
- this.y3i_1 = event.d2v_1;
61451
- this.z3i_1 = event.e2v_1;
61452
- this.a3j_1 = map(event.g2v_1);
61453
- this.b3j_1 = new Body_6(event.h2v_1);
61203
+ this.kind = 'message:location';
61204
+ this.id = event.f2v_1;
61205
+ this.timestamp = event.d2v_1;
61206
+ this.conversationId = event.e2v_1;
61207
+ this.from = map(event.g2v_1);
61208
+ this.body = new MessageLocationEventBody(event.h2v_1);
61454
61209
  }
61455
61210
  protoOf(MessageLocationEventJS).lf = function () {
61456
- return this.w3i_1;
61211
+ return this.kind;
61457
61212
  };
61458
61213
  protoOf(MessageLocationEventJS).n1z = function () {
61459
- return this.x3i_1;
61214
+ return this.id;
61460
61215
  };
61461
61216
  protoOf(MessageLocationEventJS).g2b = function () {
61462
- return this.y3i_1;
61217
+ return this.timestamp;
61463
61218
  };
61464
61219
  protoOf(MessageLocationEventJS).z3e = function () {
61465
- return this.z3i_1;
61220
+ return this.conversationId;
61466
61221
  };
61467
61222
  protoOf(MessageLocationEventJS).a3f = function () {
61468
- return this.a3j_1;
61223
+ return this.from;
61469
61224
  };
61470
61225
  protoOf(MessageLocationEventJS).b3f = function () {
61471
- return this.b3j_1;
61226
+ return this.body;
61472
61227
  };
61473
- defineProp(protoOf(MessageLocationEventJS), 'kind', function () {
61474
- return this.lf();
61475
- }, VOID);
61476
- defineProp(protoOf(MessageLocationEventJS), 'id', function () {
61477
- return this.n1z();
61478
- }, VOID);
61479
- defineProp(protoOf(MessageLocationEventJS), 'timestamp', function () {
61480
- return this.g2b();
61481
- }, VOID);
61482
- defineProp(protoOf(MessageLocationEventJS), 'conversationId', function () {
61483
- return this.z3e();
61484
- }, VOID);
61485
- defineProp(protoOf(MessageLocationEventJS), 'from', function () {
61486
- return this.a3f();
61487
- }, VOID);
61488
- defineProp(protoOf(MessageLocationEventJS), 'body', function () {
61489
- return this.b3f();
61490
- }, VOID);
61491
- function Body_7(body) {
61228
+ function MessageTemplateEventBody(body) {
61492
61229
  this.body = body;
61493
61230
  this.template = new TemplateObject_0(this.body.t2u_1);
61494
61231
  this.whatsapp = new WhatsappObject_0(this.body.u2u_1);
61495
- this.c3j_1 = this.body.v2u_1;
61232
+ this.deleted = this.body.v2u_1;
61496
61233
  }
61497
- protoOf(Body_7).b3f = function () {
61234
+ protoOf(MessageTemplateEventBody).b3f = function () {
61498
61235
  return this.body;
61499
61236
  };
61500
- protoOf(Body_7).d3j = function () {
61237
+ protoOf(MessageTemplateEventBody).p3f = function () {
61501
61238
  return this.template;
61502
61239
  };
61503
- protoOf(Body_7).e3j = function () {
61240
+ protoOf(MessageTemplateEventBody).q3f = function () {
61504
61241
  return this.whatsapp;
61505
61242
  };
61506
- protoOf(Body_7).m3g = function () {
61507
- return this.c3j_1;
61243
+ protoOf(MessageTemplateEventBody).e3f = function () {
61244
+ return this.deleted;
61508
61245
  };
61509
- protoOf(Body_7).r2 = function () {
61246
+ protoOf(MessageTemplateEventBody).r2 = function () {
61510
61247
  return this.body;
61511
61248
  };
61512
- protoOf(Body_7).f3j = function (body) {
61513
- return new Body_7(body);
61249
+ protoOf(MessageTemplateEventBody).r3f = function (body) {
61250
+ return new MessageTemplateEventBody(body);
61514
61251
  };
61515
- protoOf(Body_7).copy = function (body, $super) {
61252
+ protoOf(MessageTemplateEventBody).copy = function (body, $super) {
61516
61253
  body = body === VOID ? this.body : body;
61517
- return this.f3j(body);
61254
+ return this.r3f(body);
61518
61255
  };
61519
- protoOf(Body_7).toString = function () {
61256
+ protoOf(MessageTemplateEventBody).toString = function () {
61520
61257
  return 'Body(body=' + this.body + ')';
61521
61258
  };
61522
- protoOf(Body_7).hashCode = function () {
61259
+ protoOf(MessageTemplateEventBody).hashCode = function () {
61523
61260
  return this.body.hashCode();
61524
61261
  };
61525
- protoOf(Body_7).equals = function (other) {
61262
+ protoOf(MessageTemplateEventBody).equals = function (other) {
61526
61263
  if (this === other)
61527
61264
  return true;
61528
- if (!(other instanceof Body_7))
61265
+ if (!(other instanceof MessageTemplateEventBody))
61529
61266
  return false;
61530
- var tmp0_other_with_cast = other instanceof Body_7 ? other : THROW_CCE();
61267
+ var tmp0_other_with_cast = other instanceof MessageTemplateEventBody ? other : THROW_CCE();
61531
61268
  if (!this.body.equals(tmp0_other_with_cast.body))
61532
61269
  return false;
61533
61270
  return true;
61534
61271
  };
61535
- defineProp(protoOf(Body_7), 'deleted', function () {
61536
- return this.m3g();
61537
- }, VOID);
61538
61272
  function TemplateObject_0(template) {
61539
61273
  this.name = template.x2b_1;
61540
61274
  var tmp = this;
@@ -61551,63 +61285,45 @@ function requireClientsdkClientcore () {
61551
61285
  protoOf(TemplateObject_0).mc = function () {
61552
61286
  return this.name;
61553
61287
  };
61554
- protoOf(TemplateObject_0).g3j = function () {
61288
+ protoOf(TemplateObject_0).s3f = function () {
61555
61289
  return this.parameters;
61556
61290
  };
61557
61291
  function WhatsappObject_0(whatsapp) {
61558
61292
  this.policy = whatsapp.b2c_1;
61559
61293
  this.locale = whatsapp.c2c_1;
61560
61294
  }
61561
- protoOf(WhatsappObject_0).h3j = function () {
61295
+ protoOf(WhatsappObject_0).t3f = function () {
61562
61296
  return this.policy;
61563
61297
  };
61564
- protoOf(WhatsappObject_0).i3j = function () {
61298
+ protoOf(WhatsappObject_0).u3f = function () {
61565
61299
  return this.locale;
61566
61300
  };
61567
61301
  function MessageTemplateEventJS(event) {
61568
- this.j3j_1 = 'message:template';
61569
- this.k3j_1 = event.y2u_1;
61570
- this.l3j_1 = event.w2u_1;
61571
- this.m3j_1 = event.x2u_1;
61572
- this.n3j_1 = map(event.z2u_1);
61573
- this.o3j_1 = new Body_7(event.a2v_1);
61302
+ this.kind = 'message:template';
61303
+ this.id = event.y2u_1;
61304
+ this.timestamp = event.w2u_1;
61305
+ this.conversationId = event.x2u_1;
61306
+ this.from = map(event.z2u_1);
61307
+ this.body = new MessageTemplateEventBody(event.a2v_1);
61574
61308
  }
61575
61309
  protoOf(MessageTemplateEventJS).lf = function () {
61576
- return this.j3j_1;
61310
+ return this.kind;
61577
61311
  };
61578
61312
  protoOf(MessageTemplateEventJS).n1z = function () {
61579
- return this.k3j_1;
61313
+ return this.id;
61580
61314
  };
61581
61315
  protoOf(MessageTemplateEventJS).g2b = function () {
61582
- return this.l3j_1;
61316
+ return this.timestamp;
61583
61317
  };
61584
61318
  protoOf(MessageTemplateEventJS).z3e = function () {
61585
- return this.m3j_1;
61319
+ return this.conversationId;
61586
61320
  };
61587
61321
  protoOf(MessageTemplateEventJS).a3f = function () {
61588
- return this.n3j_1;
61322
+ return this.from;
61589
61323
  };
61590
61324
  protoOf(MessageTemplateEventJS).b3f = function () {
61591
- return this.o3j_1;
61325
+ return this.body;
61592
61326
  };
61593
- defineProp(protoOf(MessageTemplateEventJS), 'kind', function () {
61594
- return this.lf();
61595
- }, VOID);
61596
- defineProp(protoOf(MessageTemplateEventJS), 'id', function () {
61597
- return this.n1z();
61598
- }, VOID);
61599
- defineProp(protoOf(MessageTemplateEventJS), 'timestamp', function () {
61600
- return this.g2b();
61601
- }, VOID);
61602
- defineProp(protoOf(MessageTemplateEventJS), 'conversationId', function () {
61603
- return this.z3e();
61604
- }, VOID);
61605
- defineProp(protoOf(MessageTemplateEventJS), 'from', function () {
61606
- return this.a3f();
61607
- }, VOID);
61608
- defineProp(protoOf(MessageTemplateEventJS), 'body', function () {
61609
- return this.b3f();
61610
- }, VOID);
61611
61327
  var PresentingOrderJS_ASC_instance;
61612
61328
  var PresentingOrderJS_DESC_instance;
61613
61329
  function values() {
@@ -61637,7 +61353,7 @@ function requireClientsdkClientcore () {
61637
61353
  Enum.call(this, name, ordinal);
61638
61354
  this.corePresentingOrder = corePresentingOrder;
61639
61355
  }
61640
- protoOf(PresentingOrderJS).r3j = function () {
61356
+ protoOf(PresentingOrderJS).x3f = function () {
61641
61357
  return this.corePresentingOrder;
61642
61358
  };
61643
61359
  defineProp(protoOf(PresentingOrderJS), 'name', protoOf(PresentingOrderJS).mc, VOID);
@@ -61671,7 +61387,7 @@ function requireClientsdkClientcore () {
61671
61387
  Enum.call(this, name, ordinal);
61672
61388
  this.coreOrderBy = coreOrderBy;
61673
61389
  }
61674
- protoOf(OrderByJS).u3j = function () {
61390
+ protoOf(OrderByJS).a3g = function () {
61675
61391
  return this.coreOrderBy;
61676
61392
  };
61677
61393
  defineProp(protoOf(OrderByJS), 'name', protoOf(OrderByJS).mc, VOID);
@@ -61684,13 +61400,13 @@ function requireClientsdkClientcore () {
61684
61400
  var tmp_1 = this;
61685
61401
  tmp_1.customData = properties == null ? null : properties.x2p_1;
61686
61402
  }
61687
- protoOf(Properties).v3j = function () {
61403
+ protoOf(Properties).b3g = function () {
61688
61404
  return this.ttl;
61689
61405
  };
61690
- protoOf(Properties).w3j = function () {
61406
+ protoOf(Properties).c3g = function () {
61691
61407
  return this.customSortKey;
61692
61408
  };
61693
- protoOf(Properties).w3g = function () {
61409
+ protoOf(Properties).f3f = function () {
61694
61410
  return this.customData;
61695
61411
  };
61696
61412
  function ConversationJS(conversation) {
@@ -61720,13 +61436,13 @@ function requireClientsdkClientcore () {
61720
61436
  protoOf(ConversationJS).y3e = function () {
61721
61437
  return this.memberId;
61722
61438
  };
61723
- protoOf(ConversationJS).x3j = function () {
61439
+ protoOf(ConversationJS).d3g = function () {
61724
61440
  return this.memberState;
61725
61441
  };
61726
- protoOf(ConversationJS).y3j = function () {
61442
+ protoOf(ConversationJS).e3g = function () {
61727
61443
  return this.displayName;
61728
61444
  };
61729
- protoOf(ConversationJS).u3h = function () {
61445
+ protoOf(ConversationJS).i3f = function () {
61730
61446
  return this.imageUrl;
61731
61447
  };
61732
61448
  protoOf(ConversationJS).h3a = function () {
@@ -61741,13 +61457,13 @@ function requireClientsdkClientcore () {
61741
61457
  this.INACTIVE = 'INACTIVE';
61742
61458
  this.DELETED = 'DELETED';
61743
61459
  }
61744
- protoOf(ConversationStateJS).z3j = function () {
61460
+ protoOf(ConversationStateJS).f3g = function () {
61745
61461
  return this.ACTIVE;
61746
61462
  };
61747
- protoOf(ConversationStateJS).a3k = function () {
61463
+ protoOf(ConversationStateJS).g3g = function () {
61748
61464
  return this.INACTIVE;
61749
61465
  };
61750
- protoOf(ConversationStateJS).b3k = function () {
61466
+ protoOf(ConversationStateJS).h3g = function () {
61751
61467
  return this.DELETED;
61752
61468
  };
61753
61469
  protoOf(ConversationStateJS).toString = function () {
@@ -61775,13 +61491,13 @@ function requireClientsdkClientcore () {
61775
61491
  this.updated = conversationTimestamp.k2q_1;
61776
61492
  this.destroyed = conversationTimestamp.l2q_1;
61777
61493
  }
61778
- protoOf(ConversationTimestampJS).c3k = function () {
61494
+ protoOf(ConversationTimestampJS).i3g = function () {
61779
61495
  return this.created;
61780
61496
  };
61781
- protoOf(ConversationTimestampJS).d3k = function () {
61497
+ protoOf(ConversationTimestampJS).j3g = function () {
61782
61498
  return this.updated;
61783
61499
  };
61784
- protoOf(ConversationTimestampJS).e3k = function () {
61500
+ protoOf(ConversationTimestampJS).k3g = function () {
61785
61501
  return this.destroyed;
61786
61502
  };
61787
61503
  function ConversationsPageJS(conversationsPage) {
@@ -61803,7 +61519,7 @@ function requireClientsdkClientcore () {
61803
61519
  this.previousCursor = conversationsPage.n2q_1;
61804
61520
  this.nextCursor = conversationsPage.o2q_1;
61805
61521
  }
61806
- protoOf(ConversationsPageJS).f3k = function () {
61522
+ protoOf(ConversationsPageJS).l3g = function () {
61807
61523
  return this.conversations;
61808
61524
  };
61809
61525
  protoOf(ConversationsPageJS).w3e = function () {
@@ -61861,7 +61577,7 @@ function requireClientsdkClientcore () {
61861
61577
  protoOf(MemberJS).r2d = function () {
61862
61578
  return this.user;
61863
61579
  };
61864
- protoOf(MemberJS).g3k = function () {
61580
+ protoOf(MemberJS).m3g = function () {
61865
61581
  return this.channel;
61866
61582
  };
61867
61583
  protoOf(MemberJS).g2b = function () {
@@ -61874,16 +61590,16 @@ function requireClientsdkClientcore () {
61874
61590
  this.LEFT = 'LEFT';
61875
61591
  this.UNKNOWN = 'UNKNOWN';
61876
61592
  }
61877
- protoOf(MemberStateJSObj).h3k = function () {
61593
+ protoOf(MemberStateJSObj).n3g = function () {
61878
61594
  return this.INVITED;
61879
61595
  };
61880
- protoOf(MemberStateJSObj).i3k = function () {
61596
+ protoOf(MemberStateJSObj).o3g = function () {
61881
61597
  return this.JOINED;
61882
61598
  };
61883
- protoOf(MemberStateJSObj).j3k = function () {
61599
+ protoOf(MemberStateJSObj).p3g = function () {
61884
61600
  return this.LEFT;
61885
61601
  };
61886
- protoOf(MemberStateJSObj).k3k = function () {
61602
+ protoOf(MemberStateJSObj).q3g = function () {
61887
61603
  return this.UNKNOWN;
61888
61604
  };
61889
61605
  protoOf(MemberStateJSObj).toString = function () {
@@ -61911,13 +61627,13 @@ function requireClientsdkClientcore () {
61911
61627
  this.joined = memberTimestamp.r2s_1;
61912
61628
  this.left = memberTimestamp.s2s_1;
61913
61629
  }
61914
- protoOf(MemberTimestampJS).l3k = function () {
61630
+ protoOf(MemberTimestampJS).r3g = function () {
61915
61631
  return this.invited;
61916
61632
  };
61917
- protoOf(MemberTimestampJS).m3k = function () {
61633
+ protoOf(MemberTimestampJS).s3g = function () {
61918
61634
  return this.joined;
61919
61635
  };
61920
- protoOf(MemberTimestampJS).n3k = function () {
61636
+ protoOf(MemberTimestampJS).t3g = function () {
61921
61637
  return this.left;
61922
61638
  };
61923
61639
  function MembersPageJS(membersPage) {
@@ -61939,7 +61655,7 @@ function requireClientsdkClientcore () {
61939
61655
  this.previousCursor = membersPage.u2s_1;
61940
61656
  this.nextCursor = membersPage.v2s_1;
61941
61657
  }
61942
- protoOf(MembersPageJS).o3k = function () {
61658
+ protoOf(MembersPageJS).u3g = function () {
61943
61659
  return this.members;
61944
61660
  };
61945
61661
  protoOf(MembersPageJS).w3e = function () {
@@ -61985,19 +61701,19 @@ function requireClientsdkClientcore () {
61985
61701
  protoOf(UserJS).mc = function () {
61986
61702
  return this.name;
61987
61703
  };
61988
- protoOf(UserJS).y3j = function () {
61704
+ protoOf(UserJS).e3g = function () {
61989
61705
  return this.displayName;
61990
61706
  };
61991
- protoOf(UserJS).p3k = function () {
61707
+ protoOf(UserJS).v3g = function () {
61992
61708
  return this.channels;
61993
61709
  };
61994
61710
  protoOf(UserJS).g2b = function () {
61995
61711
  return this.timestamp;
61996
61712
  };
61997
- protoOf(UserJS).u3h = function () {
61713
+ protoOf(UserJS).i3f = function () {
61998
61714
  return this.imageUrl;
61999
61715
  };
62000
- protoOf(UserJS).w3g = function () {
61716
+ protoOf(UserJS).f3f = function () {
62001
61717
  return this.customData;
62002
61718
  };
62003
61719
  function UserTimestampJS(userTimestamp) {
@@ -62005,13 +61721,13 @@ function requireClientsdkClientcore () {
62005
61721
  this.updated = userTimestamp.u2v_1;
62006
61722
  this.destroyed = userTimestamp.v2v_1;
62007
61723
  }
62008
- protoOf(UserTimestampJS).c3k = function () {
61724
+ protoOf(UserTimestampJS).i3g = function () {
62009
61725
  return this.created;
62010
61726
  };
62011
- protoOf(UserTimestampJS).d3k = function () {
61727
+ protoOf(UserTimestampJS).j3g = function () {
62012
61728
  return this.updated;
62013
61729
  };
62014
- protoOf(UserTimestampJS).e3k = function () {
61730
+ protoOf(UserTimestampJS).k3g = function () {
62015
61731
  return this.destroyed;
62016
61732
  };
62017
61733
  function UserChannelsJS(userChannels) {
@@ -62324,37 +62040,37 @@ function requireClientsdkClientcore () {
62324
62040
  }
62325
62041
  tmp_29.messenger = tmp_31;
62326
62042
  }
62327
- protoOf(UserChannelsJS).q3k = function () {
62043
+ protoOf(UserChannelsJS).w3g = function () {
62328
62044
  return this.app;
62329
62045
  };
62330
- protoOf(UserChannelsJS).r3k = function () {
62046
+ protoOf(UserChannelsJS).x3g = function () {
62331
62047
  return this.phone;
62332
62048
  };
62333
- protoOf(UserChannelsJS).s3k = function () {
62049
+ protoOf(UserChannelsJS).y3g = function () {
62334
62050
  return this.pstn;
62335
62051
  };
62336
- protoOf(UserChannelsJS).t3k = function () {
62052
+ protoOf(UserChannelsJS).z3g = function () {
62337
62053
  return this.sip;
62338
62054
  };
62339
- protoOf(UserChannelsJS).u3k = function () {
62055
+ protoOf(UserChannelsJS).a3h = function () {
62340
62056
  return this.vbc;
62341
62057
  };
62342
- protoOf(UserChannelsJS).v3k = function () {
62058
+ protoOf(UserChannelsJS).b3h = function () {
62343
62059
  return this.websocket;
62344
62060
  };
62345
- protoOf(UserChannelsJS).w3k = function () {
62061
+ protoOf(UserChannelsJS).c3h = function () {
62346
62062
  return this.sms;
62347
62063
  };
62348
- protoOf(UserChannelsJS).x3k = function () {
62064
+ protoOf(UserChannelsJS).d3h = function () {
62349
62065
  return this.mms;
62350
62066
  };
62351
- protoOf(UserChannelsJS).e3j = function () {
62067
+ protoOf(UserChannelsJS).q3f = function () {
62352
62068
  return this.whatsapp;
62353
62069
  };
62354
- protoOf(UserChannelsJS).y3k = function () {
62070
+ protoOf(UserChannelsJS).e3h = function () {
62355
62071
  return this.viber;
62356
62072
  };
62357
- protoOf(UserChannelsJS).z3k = function () {
62073
+ protoOf(UserChannelsJS).f3h = function () {
62358
62074
  return this.messenger;
62359
62075
  };
62360
62076
  function MemberChannelJS(memberChannel) {
@@ -62390,7 +62106,7 @@ function requireClientsdkClientcore () {
62390
62106
  protoOf(MemberChannelJS).a3f = function () {
62391
62107
  return this.from;
62392
62108
  };
62393
- protoOf(MemberChannelJS).a3l = function () {
62109
+ protoOf(MemberChannelJS).g3h = function () {
62394
62110
  return this.to;
62395
62111
  };
62396
62112
  function ChannelJS(channel) {
@@ -62400,7 +62116,7 @@ function requireClientsdkClientcore () {
62400
62116
  protoOf(ChannelJS).n1z = function () {
62401
62117
  return this.id;
62402
62118
  };
62403
- protoOf(ChannelJS).b3l = function () {
62119
+ protoOf(ChannelJS).h3h = function () {
62404
62120
  return this.number;
62405
62121
  };
62406
62122
  function LegChannelJS(channel) {
@@ -62414,7 +62130,7 @@ function requireClientsdkClientcore () {
62414
62130
  protoOf(LegChannelJS).r2d = function () {
62415
62131
  return this.user;
62416
62132
  };
62417
- protoOf(LegChannelJS).b3l = function () {
62133
+ protoOf(LegChannelJS).h3h = function () {
62418
62134
  return this.number;
62419
62135
  };
62420
62136
  function LegJS(leg) {
@@ -62434,25 +62150,25 @@ function requireClientsdkClientcore () {
62434
62150
  protoOf(LegJS).w2y = function () {
62435
62151
  return this.type;
62436
62152
  };
62437
- protoOf(LegJS).c3l = function () {
62153
+ protoOf(LegJS).i3h = function () {
62438
62154
  return this.direction;
62439
62155
  };
62440
62156
  protoOf(LegJS).z3e = function () {
62441
62157
  return this.conversationId;
62442
62158
  };
62443
- protoOf(LegJS).d3l = function () {
62159
+ protoOf(LegJS).j3h = function () {
62444
62160
  return this.status;
62445
62161
  };
62446
- protoOf(LegJS).e3l = function () {
62162
+ protoOf(LegJS).k3h = function () {
62447
62163
  return this.startTime;
62448
62164
  };
62449
- protoOf(LegJS).f3l = function () {
62165
+ protoOf(LegJS).l3h = function () {
62450
62166
  return this.endTime;
62451
62167
  };
62452
62168
  protoOf(LegJS).a3f = function () {
62453
62169
  return this.from;
62454
62170
  };
62455
- protoOf(LegJS).a3l = function () {
62171
+ protoOf(LegJS).g3h = function () {
62456
62172
  return this.to;
62457
62173
  };
62458
62174
  var ChannelTypeJS_APP_instance;
@@ -62640,34 +62356,34 @@ function requireClientsdkClientcore () {
62640
62356
  this.CONVERSATION_MAX_NUMBER_OF_MEMBERS = 'conversation:error:maximum-number-of-members';
62641
62357
  this.CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED = 'custom-data:error:max-data-sum-limit-exceeded';
62642
62358
  }
62643
- protoOf(CSErrorCodesJS).i3l = function () {
62359
+ protoOf(CSErrorCodesJS).o3h = function () {
62644
62360
  return this.CONVERSATION_DUPLICATE_NAME;
62645
62361
  };
62646
- protoOf(CSErrorCodesJS).j3l = function () {
62362
+ protoOf(CSErrorCodesJS).p3h = function () {
62647
62363
  return this.MEMBER_ALREADY_JOINED;
62648
62364
  };
62649
- protoOf(CSErrorCodesJS).k3l = function () {
62365
+ protoOf(CSErrorCodesJS).q3h = function () {
62650
62366
  return this.MEMBER_ALREADY_INVITED;
62651
62367
  };
62652
- protoOf(CSErrorCodesJS).l3l = function () {
62368
+ protoOf(CSErrorCodesJS).r3h = function () {
62653
62369
  return this.CONVERSATION_NOT_FOUND;
62654
62370
  };
62655
- protoOf(CSErrorCodesJS).m3l = function () {
62371
+ protoOf(CSErrorCodesJS).s3h = function () {
62656
62372
  return this.MEMBER_NOT_FOUND;
62657
62373
  };
62658
- protoOf(CSErrorCodesJS).n3l = function () {
62374
+ protoOf(CSErrorCodesJS).t3h = function () {
62659
62375
  return this.USER_NOT_FOUND;
62660
62376
  };
62661
- protoOf(CSErrorCodesJS).o3l = function () {
62377
+ protoOf(CSErrorCodesJS).u3h = function () {
62662
62378
  return this.INVALID_CURSOR;
62663
62379
  };
62664
- protoOf(CSErrorCodesJS).p3l = function () {
62380
+ protoOf(CSErrorCodesJS).v3h = function () {
62665
62381
  return this.VALIDATION_FAIL;
62666
62382
  };
62667
- protoOf(CSErrorCodesJS).q3l = function () {
62383
+ protoOf(CSErrorCodesJS).w3h = function () {
62668
62384
  return this.CONVERSATION_MAX_NUMBER_OF_MEMBERS;
62669
62385
  };
62670
- protoOf(CSErrorCodesJS).r3l = function () {
62386
+ protoOf(CSErrorCodesJS).x3h = function () {
62671
62387
  return this.CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED;
62672
62388
  };
62673
62389
  var CSErrorCodesJS_instance;
@@ -62695,52 +62411,52 @@ function requireClientsdkClientcore () {
62695
62411
  this.PING_TIMEOUT_DISCONNECT = 'session:disconnect:ping-timeout';
62696
62412
  this.TRANSPORT_CLOSED_DISCONNECT = 'session:disconnect:websocket-transport-closed';
62697
62413
  }
62698
- protoOf(SessionErrorCodesJS).s3l = function () {
62414
+ protoOf(SessionErrorCodesJS).y3h = function () {
62699
62415
  return this.EMPTY_TOKEN;
62700
62416
  };
62701
- protoOf(SessionErrorCodesJS).t3l = function () {
62417
+ protoOf(SessionErrorCodesJS).z3h = function () {
62702
62418
  return this.FORCED_DISCONNECT;
62703
62419
  };
62704
- protoOf(SessionErrorCodesJS).u3l = function () {
62420
+ protoOf(SessionErrorCodesJS).a3i = function () {
62705
62421
  return this.TIMEOUT;
62706
62422
  };
62707
- protoOf(SessionErrorCodesJS).v3l = function () {
62423
+ protoOf(SessionErrorCodesJS).b3i = function () {
62708
62424
  return this.INTERNAL_FAILURE;
62709
62425
  };
62710
- protoOf(SessionErrorCodesJS).w3l = function () {
62426
+ protoOf(SessionErrorCodesJS).c3i = function () {
62711
62427
  return this.NO_ACTIVE_SESSION;
62712
62428
  };
62713
- protoOf(SessionErrorCodesJS).x3l = function () {
62429
+ protoOf(SessionErrorCodesJS).d3i = function () {
62714
62430
  return this.ALREADY_ACTIVE_SESSION;
62715
62431
  };
62716
- protoOf(SessionErrorCodesJS).y3l = function () {
62432
+ protoOf(SessionErrorCodesJS).e3i = function () {
62717
62433
  return this.INVALID_TOKEN;
62718
62434
  };
62719
- protoOf(SessionErrorCodesJS).z3l = function () {
62435
+ protoOf(SessionErrorCodesJS).f3i = function () {
62720
62436
  return this.EXPIRED_TOKEN;
62721
62437
  };
62722
- protoOf(SessionErrorCodesJS).a3m = function () {
62438
+ protoOf(SessionErrorCodesJS).g3i = function () {
62723
62439
  return this.INVALID_USER;
62724
62440
  };
62725
- protoOf(SessionErrorCodesJS).b3m = function () {
62441
+ protoOf(SessionErrorCodesJS).h3i = function () {
62726
62442
  return this.AUTHORIZATION_ERROR;
62727
62443
  };
62728
- protoOf(SessionErrorCodesJS).c3m = function () {
62444
+ protoOf(SessionErrorCodesJS).i3i = function () {
62729
62445
  return this.INVALID_SESSION;
62730
62446
  };
62731
- protoOf(SessionErrorCodesJS).d3m = function () {
62447
+ protoOf(SessionErrorCodesJS).j3i = function () {
62732
62448
  return this.MAX_OPEN_SESSIONS;
62733
62449
  };
62734
- protoOf(SessionErrorCodesJS).e3m = function () {
62450
+ protoOf(SessionErrorCodesJS).k3i = function () {
62735
62451
  return this.INVALID_SOCKET_TRANSPORT;
62736
62452
  };
62737
- protoOf(SessionErrorCodesJS).f3m = function () {
62453
+ protoOf(SessionErrorCodesJS).l3i = function () {
62738
62454
  return this.CLIENT_DISCONNECT;
62739
62455
  };
62740
- protoOf(SessionErrorCodesJS).g3m = function () {
62456
+ protoOf(SessionErrorCodesJS).m3i = function () {
62741
62457
  return this.PING_TIMEOUT_DISCONNECT;
62742
62458
  };
62743
- protoOf(SessionErrorCodesJS).h3m = function () {
62459
+ protoOf(SessionErrorCodesJS).n3i = function () {
62744
62460
  return this.TRANSPORT_CLOSED_DISCONNECT;
62745
62461
  };
62746
62462
  var SessionErrorCodesJS_instance;
@@ -62762,7 +62478,7 @@ function requireClientsdkClientcore () {
62762
62478
  protoOf(VonageErrorJS).j2d = function () {
62763
62479
  return this.code;
62764
62480
  };
62765
- protoOf(VonageErrorJS).i3m = function () {
62481
+ protoOf(VonageErrorJS).o3i = function () {
62766
62482
  return this.kmpCause;
62767
62483
  };
62768
62484
  var VonageErrorTypeJS_CS_ERROR_instance;
@@ -63827,16 +63543,42 @@ function requireClientsdkClientcore () {
63827
63543
  };
63828
63544
  }
63829
63545
  function IChatClientJS$deleteEvent$lambda$lambda($reject, $resolve) {
63830
- return function (it) {
63546
+ return function (err) {
63547
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63831
63548
  var tmp;
63832
- if (it instanceof VonageError) {
63833
- tmp = $reject(new VonageErrorJS(it));
63549
+ if (tmp0_safe_receiver == null) {
63550
+ tmp = null;
63834
63551
  } else {
63835
- if (!(it == null)) {
63836
- tmp = $reject(it);
63552
+ var tmp$ret$0;
63553
+ // Inline function 'kotlin.let' call
63554
+ // Inline function 'kotlin.contracts.contract' call
63555
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
63556
+ tmp = Unit_getInstance();
63557
+ }
63558
+ var tmp2_elvis_lhs = tmp;
63559
+ var tmp_0;
63560
+ if (tmp2_elvis_lhs == null) {
63561
+ var tmp1_safe_receiver = err;
63562
+ var tmp_1;
63563
+ if (tmp1_safe_receiver == null) {
63564
+ tmp_1 = null;
63837
63565
  } else {
63838
- tmp = $resolve(null);
63566
+ var tmp$ret$1;
63567
+ // Inline function 'kotlin.let' call
63568
+ // Inline function 'kotlin.contracts.contract' call
63569
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
63570
+ tmp_1 = Unit_getInstance();
63839
63571
  }
63572
+ tmp_0 = tmp_1;
63573
+ } else {
63574
+ tmp_0 = tmp2_elvis_lhs;
63575
+ }
63576
+ var tmp3_elvis_lhs = tmp_0;
63577
+ var tmp_2;
63578
+ if (tmp3_elvis_lhs == null) {
63579
+ tmp_2 = $resolve(null);
63580
+ } else {
63581
+ tmp_2 = Unit_getInstance();
63840
63582
  }
63841
63583
  return Unit_getInstance();
63842
63584
  };
@@ -63938,7 +63680,7 @@ function requireClientsdkClientcore () {
63938
63680
  Enum.call(this, name, ordinal);
63939
63681
  this.coreRegion = coreRegion;
63940
63682
  }
63941
- protoOf(CoreClientConfigRegionJS).n3m = function () {
63683
+ protoOf(CoreClientConfigRegionJS).t3i = function () {
63942
63684
  return this.coreRegion;
63943
63685
  };
63944
63686
  defineProp(protoOf(CoreClientConfigRegionJS), 'name', protoOf(CoreClientConfigRegionJS).mc, VOID);
@@ -63946,73 +63688,73 @@ function requireClientsdkClientcore () {
63946
63688
  function CoreClientConfigJS(region) {
63947
63689
  region = region === VOID ? get_DEFAULT_REGION() : region;
63948
63690
  this.region = region;
63949
- this.o3m_1 = this.region.coreRegion.j2l_1;
63950
- this.p3m_1 = this.region.coreRegion.k2l_1;
63691
+ this.u3i_1 = this.region.coreRegion.j2l_1;
63692
+ this.v3i_1 = this.region.coreRegion.k2l_1;
63951
63693
  var tmp = this;
63952
63694
  DefaultConfig_getInstance();
63953
- tmp.q3m_1 = '/v2/rtc';
63695
+ tmp.w3i_1 = '/v2/rtc';
63954
63696
  var tmp_0 = this;
63955
63697
  DefaultConfig_getInstance();
63956
- tmp_0.r3m_1 = true;
63957
- this.s3m_1 = false;
63698
+ tmp_0.x3i_1 = true;
63699
+ this.y3i_1 = false;
63958
63700
  }
63959
- protoOf(CoreClientConfigJS).t3m = function () {
63701
+ protoOf(CoreClientConfigJS).z3i = function () {
63960
63702
  return this.region;
63961
63703
  };
63962
- protoOf(CoreClientConfigJS).u3m = function (_set____db54di) {
63963
- this.o3m_1 = _set____db54di;
63704
+ protoOf(CoreClientConfigJS).a3j = function (_set____db54di) {
63705
+ this.u3i_1 = _set____db54di;
63964
63706
  };
63965
- protoOf(CoreClientConfigJS).v3m = function () {
63966
- return this.o3m_1;
63707
+ protoOf(CoreClientConfigJS).b3j = function () {
63708
+ return this.u3i_1;
63967
63709
  };
63968
- protoOf(CoreClientConfigJS).w3m = function (_set____db54di) {
63969
- this.p3m_1 = _set____db54di;
63710
+ protoOf(CoreClientConfigJS).c3j = function (_set____db54di) {
63711
+ this.v3i_1 = _set____db54di;
63970
63712
  };
63971
- protoOf(CoreClientConfigJS).x3m = function () {
63972
- return this.p3m_1;
63713
+ protoOf(CoreClientConfigJS).d3j = function () {
63714
+ return this.v3i_1;
63973
63715
  };
63974
- protoOf(CoreClientConfigJS).y3m = function (_set____db54di) {
63975
- this.q3m_1 = _set____db54di;
63716
+ protoOf(CoreClientConfigJS).e3j = function (_set____db54di) {
63717
+ this.w3i_1 = _set____db54di;
63976
63718
  };
63977
- protoOf(CoreClientConfigJS).z3m = function () {
63978
- return this.q3m_1;
63719
+ protoOf(CoreClientConfigJS).f3j = function () {
63720
+ return this.w3i_1;
63979
63721
  };
63980
- protoOf(CoreClientConfigJS).a3n = function (_set____db54di) {
63981
- this.r3m_1 = _set____db54di;
63722
+ protoOf(CoreClientConfigJS).g3j = function (_set____db54di) {
63723
+ this.x3i_1 = _set____db54di;
63982
63724
  };
63983
- protoOf(CoreClientConfigJS).b3n = function () {
63984
- return this.r3m_1;
63725
+ protoOf(CoreClientConfigJS).h3j = function () {
63726
+ return this.x3i_1;
63985
63727
  };
63986
- protoOf(CoreClientConfigJS).c3n = function (_set____db54di) {
63987
- this.s3m_1 = _set____db54di;
63728
+ protoOf(CoreClientConfigJS).i3j = function (_set____db54di) {
63729
+ this.y3i_1 = _set____db54di;
63988
63730
  };
63989
- protoOf(CoreClientConfigJS).d3n = function () {
63990
- return this.s3m_1;
63731
+ protoOf(CoreClientConfigJS).j3j = function () {
63732
+ return this.y3i_1;
63991
63733
  };
63992
63734
  defineProp(protoOf(CoreClientConfigJS), 'apiUrl', function () {
63993
- return this.v3m();
63735
+ return this.b3j();
63994
63736
  }, function (value) {
63995
- this.u3m(value);
63737
+ this.a3j(value);
63996
63738
  });
63997
63739
  defineProp(protoOf(CoreClientConfigJS), 'websocketUrl', function () {
63998
- return this.x3m();
63740
+ return this.d3j();
63999
63741
  }, function (value) {
64000
- this.w3m(value);
63742
+ this.c3j(value);
64001
63743
  });
64002
63744
  defineProp(protoOf(CoreClientConfigJS), 'websocketPath', function () {
64003
- return this.z3m();
63745
+ return this.f3j();
64004
63746
  }, function (value) {
64005
- this.y3m(value);
63747
+ this.e3j(value);
64006
63748
  });
64007
63749
  defineProp(protoOf(CoreClientConfigJS), 'rtcStatsTelemetry', function () {
64008
- return this.b3n();
63750
+ return this.h3j();
64009
63751
  }, function (value) {
64010
- this.a3n(value);
63752
+ this.g3j(value);
64011
63753
  });
64012
63754
  defineProp(protoOf(CoreClientConfigJS), 'autoReconnectMedia', function () {
64013
- return this.d3n();
63755
+ return this.j3j();
64014
63756
  }, function (value) {
64015
- this.c3n(value);
63757
+ this.i3j(value);
64016
63758
  });
64017
63759
  function TopicJS(name, tag) {
64018
63760
  this.name = name;
@@ -64021,7 +63763,7 @@ function requireClientsdkClientcore () {
64021
63763
  protoOf(TopicJS).mc = function () {
64022
63764
  return this.name;
64023
63765
  };
64024
- protoOf(TopicJS).e3n = function () {
63766
+ protoOf(TopicJS).k3j = function () {
64025
63767
  return this.tag;
64026
63768
  };
64027
63769
  protoOf(TopicJS).r2 = function () {
@@ -64030,13 +63772,13 @@ function requireClientsdkClientcore () {
64030
63772
  protoOf(TopicJS).s2 = function () {
64031
63773
  return this.tag;
64032
63774
  };
64033
- protoOf(TopicJS).f3n = function (name, tag) {
63775
+ protoOf(TopicJS).l3j = function (name, tag) {
64034
63776
  return new TopicJS(name, tag);
64035
63777
  };
64036
63778
  protoOf(TopicJS).copy = function (name, tag, $super) {
64037
63779
  name = name === VOID ? this.name : name;
64038
63780
  tag = tag === VOID ? this.tag : tag;
64039
- return this.f3n(name, tag);
63781
+ return this.l3j(name, tag);
64040
63782
  };
64041
63783
  protoOf(TopicJS).toString = function () {
64042
63784
  return 'TopicJS(name=' + this.name + ', tag=' + this.tag + ')';
@@ -64215,30 +63957,93 @@ function requireClientsdkClientcore () {
64215
63957
  };
64216
63958
  defineProp(protoOf(SessionErrorReasonJS), 'name', protoOf(SessionErrorReasonJS).mc, VOID);
64217
63959
  defineProp(protoOf(SessionErrorReasonJS), 'ordinal', protoOf(SessionErrorReasonJS).nc, VOID);
64218
- function ICoreClientJS$createSession$lambda$lambda($reject, $resolve) {
63960
+ function ICoreClientJS$createSession$lambda$lambda($resolve, $reject) {
64219
63961
  return function (err, sessionId) {
64220
- if (!(err == null))
64221
- $reject(err);
64222
- else if (!(sessionId == null))
64223
- $resolve(sessionId);
64224
- else
64225
- $reject(newThrowable(''));
63962
+ var tmp0_safe_receiver = sessionId;
63963
+ var tmp;
63964
+ if (tmp0_safe_receiver == null) {
63965
+ tmp = null;
63966
+ } else {
63967
+ var tmp$ret$0;
63968
+ // Inline function 'kotlin.let' call
63969
+ // Inline function 'kotlin.contracts.contract' call
63970
+ tmp$ret$0 = $resolve(tmp0_safe_receiver);
63971
+ tmp = Unit_getInstance();
63972
+ }
63973
+ var tmp2_elvis_lhs = tmp;
63974
+ var tmp_0;
63975
+ if (tmp2_elvis_lhs == null) {
63976
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
63977
+ var tmp_1;
63978
+ if (tmp1_safe_receiver == null) {
63979
+ tmp_1 = null;
63980
+ } else {
63981
+ var tmp$ret$1;
63982
+ // Inline function 'kotlin.let' call
63983
+ // Inline function 'kotlin.contracts.contract' call
63984
+ tmp$ret$1 = $reject(new VonageErrorJS(tmp1_safe_receiver));
63985
+ tmp_1 = Unit_getInstance();
63986
+ }
63987
+ tmp_0 = tmp_1;
63988
+ } else {
63989
+ tmp_0 = tmp2_elvis_lhs;
63990
+ }
63991
+ var tmp4_elvis_lhs = tmp_0;
63992
+ var tmp_2;
63993
+ if (tmp4_elvis_lhs == null) {
63994
+ var tmp3_elvis_lhs = err;
63995
+ tmp_2 = $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
63996
+ } else {
63997
+ tmp_2 = Unit_getInstance();
63998
+ }
64226
63999
  return Unit_getInstance();
64227
64000
  };
64228
64001
  }
64229
64002
  function ICoreClientJS$createSession$lambda(this$0, $token, $sessionId) {
64230
64003
  return function (resolve, reject) {
64231
64004
  var tmp = this$0.core;
64232
- tmp.v19($token, $sessionId, ICoreClientJS$createSession$lambda$lambda(reject, resolve));
64005
+ tmp.v19($token, $sessionId, ICoreClientJS$createSession$lambda$lambda(resolve, reject));
64233
64006
  return Unit_getInstance();
64234
64007
  };
64235
64008
  }
64236
64009
  function ICoreClientJS$deleteSession$lambda$lambda($reject, $resolve) {
64237
64010
  return function (err) {
64238
- if (!(err == null))
64239
- $reject(err);
64240
- else
64241
- $resolve(null);
64011
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64012
+ var tmp;
64013
+ if (tmp0_safe_receiver == null) {
64014
+ tmp = null;
64015
+ } else {
64016
+ var tmp$ret$0;
64017
+ // Inline function 'kotlin.let' call
64018
+ // Inline function 'kotlin.contracts.contract' call
64019
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64020
+ tmp = Unit_getInstance();
64021
+ }
64022
+ var tmp2_elvis_lhs = tmp;
64023
+ var tmp_0;
64024
+ if (tmp2_elvis_lhs == null) {
64025
+ var tmp1_safe_receiver = err;
64026
+ var tmp_1;
64027
+ if (tmp1_safe_receiver == null) {
64028
+ tmp_1 = null;
64029
+ } else {
64030
+ var tmp$ret$1;
64031
+ // Inline function 'kotlin.let' call
64032
+ // Inline function 'kotlin.contracts.contract' call
64033
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64034
+ tmp_1 = Unit_getInstance();
64035
+ }
64036
+ tmp_0 = tmp_1;
64037
+ } else {
64038
+ tmp_0 = tmp2_elvis_lhs;
64039
+ }
64040
+ var tmp3_elvis_lhs = tmp_0;
64041
+ var tmp_2;
64042
+ if (tmp3_elvis_lhs == null) {
64043
+ tmp_2 = $resolve(null);
64044
+ } else {
64045
+ tmp_2 = Unit_getInstance();
64046
+ }
64242
64047
  return Unit_getInstance();
64243
64048
  };
64244
64049
  }
@@ -64251,10 +64056,42 @@ function requireClientsdkClientcore () {
64251
64056
  }
64252
64057
  function ICoreClientJS$refreshSession$lambda$lambda($reject, $resolve) {
64253
64058
  return function (err) {
64254
- if (!(err == null))
64255
- $reject(err);
64256
- else
64257
- $resolve(null);
64059
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64060
+ var tmp;
64061
+ if (tmp0_safe_receiver == null) {
64062
+ tmp = null;
64063
+ } else {
64064
+ var tmp$ret$0;
64065
+ // Inline function 'kotlin.let' call
64066
+ // Inline function 'kotlin.contracts.contract' call
64067
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64068
+ tmp = Unit_getInstance();
64069
+ }
64070
+ var tmp2_elvis_lhs = tmp;
64071
+ var tmp_0;
64072
+ if (tmp2_elvis_lhs == null) {
64073
+ var tmp1_safe_receiver = err;
64074
+ var tmp_1;
64075
+ if (tmp1_safe_receiver == null) {
64076
+ tmp_1 = null;
64077
+ } else {
64078
+ var tmp$ret$1;
64079
+ // Inline function 'kotlin.let' call
64080
+ // Inline function 'kotlin.contracts.contract' call
64081
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64082
+ tmp_1 = Unit_getInstance();
64083
+ }
64084
+ tmp_0 = tmp_1;
64085
+ } else {
64086
+ tmp_0 = tmp2_elvis_lhs;
64087
+ }
64088
+ var tmp3_elvis_lhs = tmp_0;
64089
+ var tmp_2;
64090
+ if (tmp3_elvis_lhs == null) {
64091
+ tmp_2 = $resolve(null);
64092
+ } else {
64093
+ tmp_2 = Unit_getInstance();
64094
+ }
64258
64095
  return Unit_getInstance();
64259
64096
  };
64260
64097
  }
@@ -64281,10 +64118,28 @@ function requireClientsdkClientcore () {
64281
64118
  var tmp2_elvis_lhs = tmp;
64282
64119
  var tmp_0;
64283
64120
  if (tmp2_elvis_lhs == null) {
64284
- var tmp1_elvis_lhs = err;
64285
- tmp_0 = $reject(tmp1_elvis_lhs == null ? newThrowable() : tmp1_elvis_lhs);
64121
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
64122
+ var tmp_1;
64123
+ if (tmp1_safe_receiver == null) {
64124
+ tmp_1 = null;
64125
+ } else {
64126
+ var tmp$ret$1;
64127
+ // Inline function 'kotlin.let' call
64128
+ // Inline function 'kotlin.contracts.contract' call
64129
+ tmp$ret$1 = $reject(new VonageErrorJS(tmp1_safe_receiver));
64130
+ tmp_1 = Unit_getInstance();
64131
+ }
64132
+ tmp_0 = tmp_1;
64286
64133
  } else {
64287
- tmp_0 = Unit_getInstance();
64134
+ tmp_0 = tmp2_elvis_lhs;
64135
+ }
64136
+ var tmp4_elvis_lhs = tmp_0;
64137
+ var tmp_2;
64138
+ if (tmp4_elvis_lhs == null) {
64139
+ var tmp3_elvis_lhs = err;
64140
+ tmp_2 = $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
64141
+ } else {
64142
+ tmp_2 = Unit_getInstance();
64288
64143
  }
64289
64144
  return Unit_getInstance();
64290
64145
  };
@@ -64312,10 +64167,28 @@ function requireClientsdkClientcore () {
64312
64167
  var tmp2_elvis_lhs = tmp;
64313
64168
  var tmp_0;
64314
64169
  if (tmp2_elvis_lhs == null) {
64315
- var tmp1_elvis_lhs = err;
64316
- tmp_0 = $reject(tmp1_elvis_lhs == null ? newThrowable() : tmp1_elvis_lhs);
64170
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
64171
+ var tmp_1;
64172
+ if (tmp1_safe_receiver == null) {
64173
+ tmp_1 = null;
64174
+ } else {
64175
+ var tmp$ret$1;
64176
+ // Inline function 'kotlin.let' call
64177
+ // Inline function 'kotlin.contracts.contract' call
64178
+ tmp$ret$1 = $reject(new VonageErrorJS(tmp1_safe_receiver));
64179
+ tmp_1 = Unit_getInstance();
64180
+ }
64181
+ tmp_0 = tmp_1;
64182
+ } else {
64183
+ tmp_0 = tmp2_elvis_lhs;
64184
+ }
64185
+ var tmp4_elvis_lhs = tmp_0;
64186
+ var tmp_2;
64187
+ if (tmp4_elvis_lhs == null) {
64188
+ var tmp3_elvis_lhs = err;
64189
+ tmp_2 = $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
64317
64190
  } else {
64318
- tmp_0 = Unit_getInstance();
64191
+ tmp_2 = Unit_getInstance();
64319
64192
  }
64320
64193
  return Unit_getInstance();
64321
64194
  };
@@ -64502,22 +64375,22 @@ function requireClientsdkClientcore () {
64502
64375
  return _this__u8e3s4 == null ? null : equals(_this__u8e3s4, undefined) ? null : _this__u8e3s4;
64503
64376
  }
64504
64377
  function createVonageLoggerJS$1($name, $minLogLevel, $topics, $onLog) {
64505
- this.p3n_1 = $onLog;
64506
- this.m3n_1 = $name;
64507
- this.n3n_1 = $minLogLevel;
64508
- this.o3n_1 = $topics;
64378
+ this.v3j_1 = $onLog;
64379
+ this.s3j_1 = $name;
64380
+ this.t3j_1 = $minLogLevel;
64381
+ this.u3j_1 = $topics;
64509
64382
  }
64510
64383
  protoOf(createVonageLoggerJS$1).mc = function () {
64511
- return this.m3n_1;
64384
+ return this.s3j_1;
64512
64385
  };
64513
64386
  protoOf(createVonageLoggerJS$1).c34 = function () {
64514
- return this.n3n_1;
64387
+ return this.t3j_1;
64515
64388
  };
64516
64389
  protoOf(createVonageLoggerJS$1).u33 = function () {
64517
- return this.o3n_1;
64390
+ return this.u3j_1;
64518
64391
  };
64519
64392
  protoOf(createVonageLoggerJS$1).onLog = function (logLevel, topic, message) {
64520
- this.p3n_1(logLevel, topic, message);
64393
+ this.v3j_1(logLevel, topic, message);
64521
64394
  };
64522
64395
  defineProp(protoOf(createVonageLoggerJS$1), 'name', function () {
64523
64396
  return this.mc();
@@ -64719,12 +64592,42 @@ function requireClientsdkClientcore () {
64719
64592
  defineProp(protoOf(HangupReasonJS), 'ordinal', protoOf(HangupReasonJS).nc, VOID);
64720
64593
  function IVoiceClientJS$serverCall$lambda$lambda($resolve, $reject) {
64721
64594
  return function (err, callId) {
64595
+ var tmp0_safe_receiver = callId;
64722
64596
  var tmp;
64723
- if (!(callId == null)) {
64724
- tmp = $resolve(callId);
64597
+ if (tmp0_safe_receiver == null) {
64598
+ tmp = null;
64725
64599
  } else {
64726
- var tmp0_elvis_lhs = err;
64727
- tmp = $reject(tmp0_elvis_lhs == null ? newThrowable('') : tmp0_elvis_lhs);
64600
+ var tmp$ret$0;
64601
+ // Inline function 'kotlin.let' call
64602
+ // Inline function 'kotlin.contracts.contract' call
64603
+ tmp$ret$0 = $resolve(tmp0_safe_receiver);
64604
+ tmp = Unit_getInstance();
64605
+ }
64606
+ var tmp2_elvis_lhs = tmp;
64607
+ var tmp_0;
64608
+ if (tmp2_elvis_lhs == null) {
64609
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
64610
+ var tmp_1;
64611
+ if (tmp1_safe_receiver == null) {
64612
+ tmp_1 = null;
64613
+ } else {
64614
+ var tmp$ret$1;
64615
+ // Inline function 'kotlin.let' call
64616
+ // Inline function 'kotlin.contracts.contract' call
64617
+ tmp$ret$1 = $reject(new VonageErrorJS(tmp1_safe_receiver));
64618
+ tmp_1 = Unit_getInstance();
64619
+ }
64620
+ tmp_0 = tmp_1;
64621
+ } else {
64622
+ tmp_0 = tmp2_elvis_lhs;
64623
+ }
64624
+ var tmp4_elvis_lhs = tmp_0;
64625
+ var tmp_2;
64626
+ if (tmp4_elvis_lhs == null) {
64627
+ var tmp3_elvis_lhs = err;
64628
+ tmp_2 = $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
64629
+ } else {
64630
+ tmp_2 = Unit_getInstance();
64728
64631
  }
64729
64632
  return Unit_getInstance();
64730
64633
  };
@@ -64738,11 +64641,41 @@ function requireClientsdkClientcore () {
64738
64641
  }
64739
64642
  function IVoiceClientJS$reconnectCall$lambda$lambda($reject, $resolve) {
64740
64643
  return function (err) {
64644
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64741
64645
  var tmp;
64742
- if (!(err == null)) {
64743
- tmp = $reject(err instanceof Error ? err : THROW_CCE());
64646
+ if (tmp0_safe_receiver == null) {
64647
+ tmp = null;
64744
64648
  } else {
64745
- tmp = $resolve(null);
64649
+ var tmp$ret$0;
64650
+ // Inline function 'kotlin.let' call
64651
+ // Inline function 'kotlin.contracts.contract' call
64652
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64653
+ tmp = Unit_getInstance();
64654
+ }
64655
+ var tmp2_elvis_lhs = tmp;
64656
+ var tmp_0;
64657
+ if (tmp2_elvis_lhs == null) {
64658
+ var tmp1_safe_receiver = err;
64659
+ var tmp_1;
64660
+ if (tmp1_safe_receiver == null) {
64661
+ tmp_1 = null;
64662
+ } else {
64663
+ var tmp$ret$1;
64664
+ // Inline function 'kotlin.let' call
64665
+ // Inline function 'kotlin.contracts.contract' call
64666
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64667
+ tmp_1 = Unit_getInstance();
64668
+ }
64669
+ tmp_0 = tmp_1;
64670
+ } else {
64671
+ tmp_0 = tmp2_elvis_lhs;
64672
+ }
64673
+ var tmp3_elvis_lhs = tmp_0;
64674
+ var tmp_2;
64675
+ if (tmp3_elvis_lhs == null) {
64676
+ tmp_2 = $resolve(null);
64677
+ } else {
64678
+ tmp_2 = Unit_getInstance();
64746
64679
  }
64747
64680
  return Unit_getInstance();
64748
64681
  };
@@ -64756,12 +64689,42 @@ function requireClientsdkClientcore () {
64756
64689
  }
64757
64690
  function IVoiceClientJS$getLeg$lambda$lambda($resolve, $reject) {
64758
64691
  return function (err, leg) {
64692
+ var tmp0_safe_receiver = leg;
64759
64693
  var tmp;
64760
- if (!(leg == null)) {
64761
- tmp = $resolve(new LegJS(leg));
64694
+ if (tmp0_safe_receiver == null) {
64695
+ tmp = null;
64696
+ } else {
64697
+ var tmp$ret$0;
64698
+ // Inline function 'kotlin.let' call
64699
+ // Inline function 'kotlin.contracts.contract' call
64700
+ tmp$ret$0 = $resolve(new LegJS(tmp0_safe_receiver));
64701
+ tmp = Unit_getInstance();
64702
+ }
64703
+ var tmp2_elvis_lhs = tmp;
64704
+ var tmp_0;
64705
+ if (tmp2_elvis_lhs == null) {
64706
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
64707
+ var tmp_1;
64708
+ if (tmp1_safe_receiver == null) {
64709
+ tmp_1 = null;
64710
+ } else {
64711
+ var tmp$ret$1;
64712
+ // Inline function 'kotlin.let' call
64713
+ // Inline function 'kotlin.contracts.contract' call
64714
+ tmp$ret$1 = $reject(new VonageErrorJS(tmp1_safe_receiver));
64715
+ tmp_1 = Unit_getInstance();
64716
+ }
64717
+ tmp_0 = tmp_1;
64718
+ } else {
64719
+ tmp_0 = tmp2_elvis_lhs;
64720
+ }
64721
+ var tmp4_elvis_lhs = tmp_0;
64722
+ var tmp_2;
64723
+ if (tmp4_elvis_lhs == null) {
64724
+ var tmp3_elvis_lhs = err;
64725
+ tmp_2 = $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
64762
64726
  } else {
64763
- var tmp0_elvis_lhs = err;
64764
- tmp = $reject(tmp0_elvis_lhs == null ? newThrowable('') : tmp0_elvis_lhs);
64727
+ tmp_2 = Unit_getInstance();
64765
64728
  }
64766
64729
  return Unit_getInstance();
64767
64730
  };
@@ -64774,12 +64737,42 @@ function requireClientsdkClientcore () {
64774
64737
  };
64775
64738
  }
64776
64739
  function IVoiceClientJS$answer$lambda$lambda($reject, $resolve) {
64777
- return function (it) {
64740
+ return function (err) {
64741
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64778
64742
  var tmp;
64779
- if (!(it == null)) {
64780
- tmp = $reject(it instanceof Error ? it : THROW_CCE());
64743
+ if (tmp0_safe_receiver == null) {
64744
+ tmp = null;
64745
+ } else {
64746
+ var tmp$ret$0;
64747
+ // Inline function 'kotlin.let' call
64748
+ // Inline function 'kotlin.contracts.contract' call
64749
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64750
+ tmp = Unit_getInstance();
64751
+ }
64752
+ var tmp2_elvis_lhs = tmp;
64753
+ var tmp_0;
64754
+ if (tmp2_elvis_lhs == null) {
64755
+ var tmp1_safe_receiver = err;
64756
+ var tmp_1;
64757
+ if (tmp1_safe_receiver == null) {
64758
+ tmp_1 = null;
64759
+ } else {
64760
+ var tmp$ret$1;
64761
+ // Inline function 'kotlin.let' call
64762
+ // Inline function 'kotlin.contracts.contract' call
64763
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64764
+ tmp_1 = Unit_getInstance();
64765
+ }
64766
+ tmp_0 = tmp_1;
64767
+ } else {
64768
+ tmp_0 = tmp2_elvis_lhs;
64769
+ }
64770
+ var tmp3_elvis_lhs = tmp_0;
64771
+ var tmp_2;
64772
+ if (tmp3_elvis_lhs == null) {
64773
+ tmp_2 = $resolve(null);
64781
64774
  } else {
64782
- tmp = $resolve(null);
64775
+ tmp_2 = Unit_getInstance();
64783
64776
  }
64784
64777
  return Unit_getInstance();
64785
64778
  };
@@ -64792,12 +64785,42 @@ function requireClientsdkClientcore () {
64792
64785
  };
64793
64786
  }
64794
64787
  function IVoiceClientJS$reject$lambda$lambda($reject, $resolve) {
64795
- return function (it) {
64788
+ return function (err) {
64789
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64796
64790
  var tmp;
64797
- if (!(it == null)) {
64798
- tmp = $reject(it instanceof Error ? it : THROW_CCE());
64791
+ if (tmp0_safe_receiver == null) {
64792
+ tmp = null;
64799
64793
  } else {
64800
- tmp = $resolve(null);
64794
+ var tmp$ret$0;
64795
+ // Inline function 'kotlin.let' call
64796
+ // Inline function 'kotlin.contracts.contract' call
64797
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64798
+ tmp = Unit_getInstance();
64799
+ }
64800
+ var tmp2_elvis_lhs = tmp;
64801
+ var tmp_0;
64802
+ if (tmp2_elvis_lhs == null) {
64803
+ var tmp1_safe_receiver = err;
64804
+ var tmp_1;
64805
+ if (tmp1_safe_receiver == null) {
64806
+ tmp_1 = null;
64807
+ } else {
64808
+ var tmp$ret$1;
64809
+ // Inline function 'kotlin.let' call
64810
+ // Inline function 'kotlin.contracts.contract' call
64811
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64812
+ tmp_1 = Unit_getInstance();
64813
+ }
64814
+ tmp_0 = tmp_1;
64815
+ } else {
64816
+ tmp_0 = tmp2_elvis_lhs;
64817
+ }
64818
+ var tmp3_elvis_lhs = tmp_0;
64819
+ var tmp_2;
64820
+ if (tmp3_elvis_lhs == null) {
64821
+ tmp_2 = $resolve(null);
64822
+ } else {
64823
+ tmp_2 = Unit_getInstance();
64801
64824
  }
64802
64825
  return Unit_getInstance();
64803
64826
  };
@@ -64809,14 +64832,43 @@ function requireClientsdkClientcore () {
64809
64832
  return Unit_getInstance();
64810
64833
  };
64811
64834
  }
64812
- function IVoiceClientJS$hangup$lambda$lambda($resolve, $reject) {
64813
- return function (it) {
64814
- var tmp0_subject = it;
64835
+ function IVoiceClientJS$hangup$lambda$lambda($reject, $resolve) {
64836
+ return function (err) {
64837
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64815
64838
  var tmp;
64816
- if (tmp0_subject == null) {
64817
- tmp = $resolve(null);
64839
+ if (tmp0_safe_receiver == null) {
64840
+ tmp = null;
64841
+ } else {
64842
+ var tmp$ret$0;
64843
+ // Inline function 'kotlin.let' call
64844
+ // Inline function 'kotlin.contracts.contract' call
64845
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64846
+ tmp = Unit_getInstance();
64847
+ }
64848
+ var tmp2_elvis_lhs = tmp;
64849
+ var tmp_0;
64850
+ if (tmp2_elvis_lhs == null) {
64851
+ var tmp1_safe_receiver = err;
64852
+ var tmp_1;
64853
+ if (tmp1_safe_receiver == null) {
64854
+ tmp_1 = null;
64855
+ } else {
64856
+ var tmp$ret$1;
64857
+ // Inline function 'kotlin.let' call
64858
+ // Inline function 'kotlin.contracts.contract' call
64859
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64860
+ tmp_1 = Unit_getInstance();
64861
+ }
64862
+ tmp_0 = tmp_1;
64863
+ } else {
64864
+ tmp_0 = tmp2_elvis_lhs;
64865
+ }
64866
+ var tmp3_elvis_lhs = tmp_0;
64867
+ var tmp_2;
64868
+ if (tmp3_elvis_lhs == null) {
64869
+ tmp_2 = $resolve(null);
64818
64870
  } else {
64819
- tmp = $reject(it instanceof Error ? it : THROW_CCE());
64871
+ tmp_2 = Unit_getInstance();
64820
64872
  }
64821
64873
  return Unit_getInstance();
64822
64874
  };
@@ -64824,17 +64876,47 @@ function requireClientsdkClientcore () {
64824
64876
  function IVoiceClientJS$hangup$lambda(this$0, $callId, $reasonText, $reasonCode) {
64825
64877
  return function (resolve, reject) {
64826
64878
  var tmp = this$0.core;
64827
- tmp.c18($callId, $reasonText, $reasonCode, IVoiceClientJS$hangup$lambda$lambda(resolve, reject));
64879
+ tmp.c18($callId, $reasonText, $reasonCode, IVoiceClientJS$hangup$lambda$lambda(reject, resolve));
64828
64880
  return Unit_getInstance();
64829
64881
  };
64830
64882
  }
64831
64883
  function IVoiceClientJS$say$lambda$lambda($reject, $resolve) {
64832
- return function (it) {
64884
+ return function (err) {
64885
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64833
64886
  var tmp;
64834
- if (!(it == null)) {
64835
- tmp = $reject(it instanceof Error ? it : THROW_CCE());
64887
+ if (tmp0_safe_receiver == null) {
64888
+ tmp = null;
64889
+ } else {
64890
+ var tmp$ret$0;
64891
+ // Inline function 'kotlin.let' call
64892
+ // Inline function 'kotlin.contracts.contract' call
64893
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64894
+ tmp = Unit_getInstance();
64895
+ }
64896
+ var tmp2_elvis_lhs = tmp;
64897
+ var tmp_0;
64898
+ if (tmp2_elvis_lhs == null) {
64899
+ var tmp1_safe_receiver = err;
64900
+ var tmp_1;
64901
+ if (tmp1_safe_receiver == null) {
64902
+ tmp_1 = null;
64903
+ } else {
64904
+ var tmp$ret$1;
64905
+ // Inline function 'kotlin.let' call
64906
+ // Inline function 'kotlin.contracts.contract' call
64907
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64908
+ tmp_1 = Unit_getInstance();
64909
+ }
64910
+ tmp_0 = tmp_1;
64836
64911
  } else {
64837
- tmp = $resolve(null);
64912
+ tmp_0 = tmp2_elvis_lhs;
64913
+ }
64914
+ var tmp3_elvis_lhs = tmp_0;
64915
+ var tmp_2;
64916
+ if (tmp3_elvis_lhs == null) {
64917
+ tmp_2 = $resolve(null);
64918
+ } else {
64919
+ tmp_2 = Unit_getInstance();
64838
64920
  }
64839
64921
  return Unit_getInstance();
64840
64922
  };
@@ -64858,12 +64940,42 @@ function requireClientsdkClientcore () {
64858
64940
  };
64859
64941
  }
64860
64942
  function IVoiceClientJS$mute$lambda$lambda($reject, $resolve) {
64861
- return function (it) {
64943
+ return function (err) {
64944
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64862
64945
  var tmp;
64863
- if (!(it == null)) {
64864
- tmp = $reject(it instanceof Error ? it : THROW_CCE());
64946
+ if (tmp0_safe_receiver == null) {
64947
+ tmp = null;
64865
64948
  } else {
64866
- tmp = $resolve(null);
64949
+ var tmp$ret$0;
64950
+ // Inline function 'kotlin.let' call
64951
+ // Inline function 'kotlin.contracts.contract' call
64952
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64953
+ tmp = Unit_getInstance();
64954
+ }
64955
+ var tmp2_elvis_lhs = tmp;
64956
+ var tmp_0;
64957
+ if (tmp2_elvis_lhs == null) {
64958
+ var tmp1_safe_receiver = err;
64959
+ var tmp_1;
64960
+ if (tmp1_safe_receiver == null) {
64961
+ tmp_1 = null;
64962
+ } else {
64963
+ var tmp$ret$1;
64964
+ // Inline function 'kotlin.let' call
64965
+ // Inline function 'kotlin.contracts.contract' call
64966
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64967
+ tmp_1 = Unit_getInstance();
64968
+ }
64969
+ tmp_0 = tmp_1;
64970
+ } else {
64971
+ tmp_0 = tmp2_elvis_lhs;
64972
+ }
64973
+ var tmp3_elvis_lhs = tmp_0;
64974
+ var tmp_2;
64975
+ if (tmp3_elvis_lhs == null) {
64976
+ tmp_2 = $resolve(null);
64977
+ } else {
64978
+ tmp_2 = Unit_getInstance();
64867
64979
  }
64868
64980
  return Unit_getInstance();
64869
64981
  };
@@ -64876,11 +64988,43 @@ function requireClientsdkClientcore () {
64876
64988
  };
64877
64989
  }
64878
64990
  function IVoiceClientJS$unmute$lambda$lambda($reject, $resolve) {
64879
- return function (it) {
64880
- if (!(it == null))
64881
- $reject(it);
64882
- else
64883
- $resolve(null);
64991
+ return function (err) {
64992
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64993
+ var tmp;
64994
+ if (tmp0_safe_receiver == null) {
64995
+ tmp = null;
64996
+ } else {
64997
+ var tmp$ret$0;
64998
+ // Inline function 'kotlin.let' call
64999
+ // Inline function 'kotlin.contracts.contract' call
65000
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
65001
+ tmp = Unit_getInstance();
65002
+ }
65003
+ var tmp2_elvis_lhs = tmp;
65004
+ var tmp_0;
65005
+ if (tmp2_elvis_lhs == null) {
65006
+ var tmp1_safe_receiver = err;
65007
+ var tmp_1;
65008
+ if (tmp1_safe_receiver == null) {
65009
+ tmp_1 = null;
65010
+ } else {
65011
+ var tmp$ret$1;
65012
+ // Inline function 'kotlin.let' call
65013
+ // Inline function 'kotlin.contracts.contract' call
65014
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
65015
+ tmp_1 = Unit_getInstance();
65016
+ }
65017
+ tmp_0 = tmp_1;
65018
+ } else {
65019
+ tmp_0 = tmp2_elvis_lhs;
65020
+ }
65021
+ var tmp3_elvis_lhs = tmp_0;
65022
+ var tmp_2;
65023
+ if (tmp3_elvis_lhs == null) {
65024
+ tmp_2 = $resolve(null);
65025
+ } else {
65026
+ tmp_2 = Unit_getInstance();
65027
+ }
64884
65028
  return Unit_getInstance();
64885
65029
  };
64886
65030
  }
@@ -64892,11 +65036,43 @@ function requireClientsdkClientcore () {
64892
65036
  };
64893
65037
  }
64894
65038
  function IVoiceClientJS$enableEarmuff$lambda$lambda($reject, $resolve) {
64895
- return function (it) {
64896
- if (!(it == null))
64897
- $reject(it);
64898
- else
64899
- $resolve(null);
65039
+ return function (err) {
65040
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
65041
+ var tmp;
65042
+ if (tmp0_safe_receiver == null) {
65043
+ tmp = null;
65044
+ } else {
65045
+ var tmp$ret$0;
65046
+ // Inline function 'kotlin.let' call
65047
+ // Inline function 'kotlin.contracts.contract' call
65048
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
65049
+ tmp = Unit_getInstance();
65050
+ }
65051
+ var tmp2_elvis_lhs = tmp;
65052
+ var tmp_0;
65053
+ if (tmp2_elvis_lhs == null) {
65054
+ var tmp1_safe_receiver = err;
65055
+ var tmp_1;
65056
+ if (tmp1_safe_receiver == null) {
65057
+ tmp_1 = null;
65058
+ } else {
65059
+ var tmp$ret$1;
65060
+ // Inline function 'kotlin.let' call
65061
+ // Inline function 'kotlin.contracts.contract' call
65062
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
65063
+ tmp_1 = Unit_getInstance();
65064
+ }
65065
+ tmp_0 = tmp_1;
65066
+ } else {
65067
+ tmp_0 = tmp2_elvis_lhs;
65068
+ }
65069
+ var tmp3_elvis_lhs = tmp_0;
65070
+ var tmp_2;
65071
+ if (tmp3_elvis_lhs == null) {
65072
+ tmp_2 = $resolve(null);
65073
+ } else {
65074
+ tmp_2 = Unit_getInstance();
65075
+ }
64900
65076
  return Unit_getInstance();
64901
65077
  };
64902
65078
  }
@@ -64908,11 +65084,43 @@ function requireClientsdkClientcore () {
64908
65084
  };
64909
65085
  }
64910
65086
  function IVoiceClientJS$disableEarmuff$lambda$lambda($reject, $resolve) {
64911
- return function (it) {
64912
- if (!(it == null))
64913
- $reject(it);
64914
- else
64915
- $resolve(null);
65087
+ return function (err) {
65088
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
65089
+ var tmp;
65090
+ if (tmp0_safe_receiver == null) {
65091
+ tmp = null;
65092
+ } else {
65093
+ var tmp$ret$0;
65094
+ // Inline function 'kotlin.let' call
65095
+ // Inline function 'kotlin.contracts.contract' call
65096
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
65097
+ tmp = Unit_getInstance();
65098
+ }
65099
+ var tmp2_elvis_lhs = tmp;
65100
+ var tmp_0;
65101
+ if (tmp2_elvis_lhs == null) {
65102
+ var tmp1_safe_receiver = err;
65103
+ var tmp_1;
65104
+ if (tmp1_safe_receiver == null) {
65105
+ tmp_1 = null;
65106
+ } else {
65107
+ var tmp$ret$1;
65108
+ // Inline function 'kotlin.let' call
65109
+ // Inline function 'kotlin.contracts.contract' call
65110
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
65111
+ tmp_1 = Unit_getInstance();
65112
+ }
65113
+ tmp_0 = tmp_1;
65114
+ } else {
65115
+ tmp_0 = tmp2_elvis_lhs;
65116
+ }
65117
+ var tmp3_elvis_lhs = tmp_0;
65118
+ var tmp_2;
65119
+ if (tmp3_elvis_lhs == null) {
65120
+ tmp_2 = $resolve(null);
65121
+ } else {
65122
+ tmp_2 = Unit_getInstance();
65123
+ }
64916
65124
  return Unit_getInstance();
64917
65125
  };
64918
65126
  }
@@ -64924,11 +65132,43 @@ function requireClientsdkClientcore () {
64924
65132
  };
64925
65133
  }
64926
65134
  function IVoiceClientJS$sendDTMF$lambda$lambda($reject, $resolve) {
64927
- return function (it) {
64928
- if (!(it == null))
64929
- $reject(it);
64930
- else
64931
- $resolve(null);
65135
+ return function (err) {
65136
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
65137
+ var tmp;
65138
+ if (tmp0_safe_receiver == null) {
65139
+ tmp = null;
65140
+ } else {
65141
+ var tmp$ret$0;
65142
+ // Inline function 'kotlin.let' call
65143
+ // Inline function 'kotlin.contracts.contract' call
65144
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
65145
+ tmp = Unit_getInstance();
65146
+ }
65147
+ var tmp2_elvis_lhs = tmp;
65148
+ var tmp_0;
65149
+ if (tmp2_elvis_lhs == null) {
65150
+ var tmp1_safe_receiver = err;
65151
+ var tmp_1;
65152
+ if (tmp1_safe_receiver == null) {
65153
+ tmp_1 = null;
65154
+ } else {
65155
+ var tmp$ret$1;
65156
+ // Inline function 'kotlin.let' call
65157
+ // Inline function 'kotlin.contracts.contract' call
65158
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
65159
+ tmp_1 = Unit_getInstance();
65160
+ }
65161
+ tmp_0 = tmp_1;
65162
+ } else {
65163
+ tmp_0 = tmp2_elvis_lhs;
65164
+ }
65165
+ var tmp3_elvis_lhs = tmp_0;
65166
+ var tmp_2;
65167
+ if (tmp3_elvis_lhs == null) {
65168
+ tmp_2 = $resolve(null);
65169
+ } else {
65170
+ tmp_2 = Unit_getInstance();
65171
+ }
64932
65172
  return Unit_getInstance();
64933
65173
  };
64934
65174
  }
@@ -64957,13 +65197,13 @@ function requireClientsdkClientcore () {
64957
65197
  protoOf(VoiceInviteFromInfoJS).s2 = function () {
64958
65198
  return this.type;
64959
65199
  };
64960
- protoOf(VoiceInviteFromInfoJS).w3n = function (id, type) {
65200
+ protoOf(VoiceInviteFromInfoJS).c3k = function (id, type) {
64961
65201
  return new VoiceInviteFromInfoJS(id, type);
64962
65202
  };
64963
65203
  protoOf(VoiceInviteFromInfoJS).copy = function (id, type, $super) {
64964
65204
  id = id === VOID ? this.id : id;
64965
65205
  type = type === VOID ? this.type : type;
64966
- return this.w3n(id, type);
65206
+ return this.c3k(id, type);
64967
65207
  };
64968
65208
  protoOf(VoiceInviteFromInfoJS).toString = function () {
64969
65209
  return 'VoiceInviteFromInfoJS(id=' + this.id + ', type=' + this.type + ')';
@@ -65077,41 +65317,41 @@ function requireClientsdkClientcore () {
65077
65317
  cause = cause === VOID ? null : cause;
65078
65318
  extendThrowable(this);
65079
65319
  captureStack(this, HttpClientErrorJS);
65080
- this.x3n_1 = message;
65081
- this.y3n_1 = cause;
65320
+ this.d3k_1 = message;
65321
+ this.e3k_1 = cause;
65082
65322
  }
65083
65323
  protoOf(HttpClientErrorJS).i5 = function () {
65084
- return this.x3n_1;
65324
+ return this.d3k_1;
65085
65325
  };
65086
65326
  protoOf(HttpClientErrorJS).j5 = function () {
65087
- return this.y3n_1;
65327
+ return this.e3k_1;
65088
65328
  };
65089
- protoOf(HttpClientErrorJS).z3n = function () {
65090
- var tmp0_elvis_lhs = this.x3n_1;
65329
+ protoOf(HttpClientErrorJS).f3k = function () {
65330
+ var tmp0_elvis_lhs = this.d3k_1;
65091
65331
  var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
65092
- var tmp_0 = this.y3n_1;
65332
+ var tmp_0 = this.e3k_1;
65093
65333
  return new HTTPClientError(tmp, tmp_0 instanceof Exception ? tmp_0 : null);
65094
65334
  };
65095
65335
  protoOf(HttpClientErrorJS).r2 = function () {
65096
- return this.x3n_1;
65336
+ return this.d3k_1;
65097
65337
  };
65098
65338
  protoOf(HttpClientErrorJS).s2 = function () {
65099
- return this.y3n_1;
65339
+ return this.e3k_1;
65100
65340
  };
65101
- protoOf(HttpClientErrorJS).a3o = function (message, cause) {
65341
+ protoOf(HttpClientErrorJS).g3k = function (message, cause) {
65102
65342
  return new HttpClientErrorJS(message, cause);
65103
65343
  };
65104
65344
  protoOf(HttpClientErrorJS).copy = function (message, cause, $super) {
65105
- message = message === VOID ? this.x3n_1 : message;
65106
- cause = cause === VOID ? this.y3n_1 : cause;
65107
- return this.a3o(message, cause);
65345
+ message = message === VOID ? this.d3k_1 : message;
65346
+ cause = cause === VOID ? this.e3k_1 : cause;
65347
+ return this.g3k(message, cause);
65108
65348
  };
65109
65349
  protoOf(HttpClientErrorJS).toString = function () {
65110
- return 'HttpClientErrorJS(message=' + this.x3n_1 + ', cause=' + this.y3n_1 + ')';
65350
+ return 'HttpClientErrorJS(message=' + this.d3k_1 + ', cause=' + this.e3k_1 + ')';
65111
65351
  };
65112
65352
  protoOf(HttpClientErrorJS).hashCode = function () {
65113
- var result = this.x3n_1 == null ? 0 : getStringHashCode(this.x3n_1);
65114
- result = imul(result, 31) + (this.y3n_1 == null ? 0 : hashCode(this.y3n_1)) | 0;
65353
+ var result = this.d3k_1 == null ? 0 : getStringHashCode(this.d3k_1);
65354
+ result = imul(result, 31) + (this.e3k_1 == null ? 0 : hashCode(this.e3k_1)) | 0;
65115
65355
  return result;
65116
65356
  };
65117
65357
  protoOf(HttpClientErrorJS).equals = function (other) {
@@ -65120,9 +65360,9 @@ function requireClientsdkClientcore () {
65120
65360
  if (!(other instanceof HttpClientErrorJS))
65121
65361
  return false;
65122
65362
  var tmp0_other_with_cast = other instanceof HttpClientErrorJS ? other : THROW_CCE();
65123
- if (!(this.x3n_1 == tmp0_other_with_cast.x3n_1))
65363
+ if (!(this.d3k_1 == tmp0_other_with_cast.d3k_1))
65124
65364
  return false;
65125
- if (!equals(this.y3n_1, tmp0_other_with_cast.y3n_1))
65365
+ if (!equals(this.e3k_1, tmp0_other_with_cast.e3k_1))
65126
65366
  return false;
65127
65367
  return true;
65128
65368
  };
@@ -65132,13 +65372,13 @@ function requireClientsdkClientcore () {
65132
65372
  defineProp(protoOf(HttpClientErrorJS), 'cause', function () {
65133
65373
  return this.j5();
65134
65374
  }, VOID);
65135
- defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).z3n, VOID);
65375
+ defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).f3k, VOID);
65136
65376
  function HttpClientResponseJS(statusCode, body) {
65137
65377
  body = body === VOID ? null : body;
65138
65378
  this.statusCode = statusCode;
65139
65379
  this.body = body;
65140
65380
  }
65141
- protoOf(HttpClientResponseJS).b3o = function () {
65381
+ protoOf(HttpClientResponseJS).h3k = function () {
65142
65382
  return this.statusCode;
65143
65383
  };
65144
65384
  protoOf(HttpClientResponseJS).b3f = function () {
@@ -65150,13 +65390,13 @@ function requireClientsdkClientcore () {
65150
65390
  protoOf(HttpClientResponseJS).s2 = function () {
65151
65391
  return this.body;
65152
65392
  };
65153
- protoOf(HttpClientResponseJS).c3o = function (statusCode, body) {
65393
+ protoOf(HttpClientResponseJS).i3k = function (statusCode, body) {
65154
65394
  return new HttpClientResponseJS(statusCode, body);
65155
65395
  };
65156
65396
  protoOf(HttpClientResponseJS).copy = function (statusCode, body, $super) {
65157
65397
  statusCode = statusCode === VOID ? this.statusCode : statusCode;
65158
65398
  body = body === VOID ? this.body : body;
65159
- return this.c3o(statusCode, body);
65399
+ return this.i3k(statusCode, body);
65160
65400
  };
65161
65401
  protoOf(HttpClientResponseJS).toString = function () {
65162
65402
  return 'HttpClientResponseJS(statusCode=' + this.statusCode + ', body=' + this.body + ')';
@@ -65259,31 +65499,31 @@ function requireClientsdkClientcore () {
65259
65499
  this.packet_cnt = packet_cnt;
65260
65500
  this.packet_loss_perc = packet_loss_perc;
65261
65501
  }
65262
- protoOf(RTCQualityJS).f3o = function () {
65502
+ protoOf(RTCQualityJS).l3k = function () {
65263
65503
  return this.mos_score;
65264
65504
  };
65265
- protoOf(RTCQualityJS).g3o = function () {
65505
+ protoOf(RTCQualityJS).m3k = function () {
65266
65506
  return this.quality_percentage;
65267
65507
  };
65268
- protoOf(RTCQualityJS).h3o = function () {
65508
+ protoOf(RTCQualityJS).n3k = function () {
65269
65509
  return this.jitter_min_var;
65270
65510
  };
65271
- protoOf(RTCQualityJS).i3o = function () {
65511
+ protoOf(RTCQualityJS).o3k = function () {
65272
65512
  return this.jitter_max_var;
65273
65513
  };
65274
- protoOf(RTCQualityJS).j3o = function () {
65514
+ protoOf(RTCQualityJS).p3k = function () {
65275
65515
  return this.jitter_loss_rate;
65276
65516
  };
65277
- protoOf(RTCQualityJS).k3o = function () {
65517
+ protoOf(RTCQualityJS).q3k = function () {
65278
65518
  return this.jitter_burst_rate;
65279
65519
  };
65280
- protoOf(RTCQualityJS).l3o = function () {
65520
+ protoOf(RTCQualityJS).r3k = function () {
65281
65521
  return this.flaw_total;
65282
65522
  };
65283
- protoOf(RTCQualityJS).m3o = function () {
65523
+ protoOf(RTCQualityJS).s3k = function () {
65284
65524
  return this.packet_cnt;
65285
65525
  };
65286
- protoOf(RTCQualityJS).n3o = function () {
65526
+ protoOf(RTCQualityJS).t3k = function () {
65287
65527
  return this.packet_loss_perc;
65288
65528
  };
65289
65529
  protoOf(RTCQualityJS).r2 = function () {
@@ -65292,28 +65532,28 @@ function requireClientsdkClientcore () {
65292
65532
  protoOf(RTCQualityJS).s2 = function () {
65293
65533
  return this.quality_percentage;
65294
65534
  };
65295
- protoOf(RTCQualityJS).o3o = function () {
65535
+ protoOf(RTCQualityJS).u3k = function () {
65296
65536
  return this.jitter_min_var;
65297
65537
  };
65298
- protoOf(RTCQualityJS).p3o = function () {
65538
+ protoOf(RTCQualityJS).v3k = function () {
65299
65539
  return this.jitter_max_var;
65300
65540
  };
65301
- protoOf(RTCQualityJS).q3o = function () {
65541
+ protoOf(RTCQualityJS).w3k = function () {
65302
65542
  return this.jitter_loss_rate;
65303
65543
  };
65304
- protoOf(RTCQualityJS).r3o = function () {
65544
+ protoOf(RTCQualityJS).x3k = function () {
65305
65545
  return this.jitter_burst_rate;
65306
65546
  };
65307
- protoOf(RTCQualityJS).s3o = function () {
65547
+ protoOf(RTCQualityJS).y3k = function () {
65308
65548
  return this.flaw_total;
65309
65549
  };
65310
- protoOf(RTCQualityJS).t3o = function () {
65550
+ protoOf(RTCQualityJS).z3k = function () {
65311
65551
  return this.packet_cnt;
65312
65552
  };
65313
- protoOf(RTCQualityJS).u3o = function () {
65553
+ protoOf(RTCQualityJS).a3l = function () {
65314
65554
  return this.packet_loss_perc;
65315
65555
  };
65316
- 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) {
65556
+ 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) {
65317
65557
  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);
65318
65558
  };
65319
65559
  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) {
@@ -65326,7 +65566,7 @@ function requireClientsdkClientcore () {
65326
65566
  flaw_total = flaw_total === VOID ? this.flaw_total : flaw_total;
65327
65567
  packet_cnt = packet_cnt === VOID ? this.packet_cnt : packet_cnt;
65328
65568
  packet_loss_perc = packet_loss_perc === VOID ? this.packet_loss_perc : packet_loss_perc;
65329
- 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);
65569
+ 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);
65330
65570
  };
65331
65571
  protoOf(RTCQualityJS).toString = function () {
65332
65572
  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 + ')';
@@ -65393,34 +65633,34 @@ function requireClientsdkClientcore () {
65393
65633
  this.audioRtt = audioRtt;
65394
65634
  this.audioSentJitter = audioSentJitter;
65395
65635
  }
65396
- protoOf(RTCStatsJS).w3o = function () {
65636
+ protoOf(RTCStatsJS).c3l = function () {
65397
65637
  return this.audioRecvPackets;
65398
65638
  };
65399
- protoOf(RTCStatsJS).x3o = function () {
65639
+ protoOf(RTCStatsJS).d3l = function () {
65400
65640
  return this.audioRecvPacketsLost;
65401
65641
  };
65402
- protoOf(RTCStatsJS).y3o = function () {
65642
+ protoOf(RTCStatsJS).e3l = function () {
65403
65643
  return this.audioRecvBytes;
65404
65644
  };
65405
- protoOf(RTCStatsJS).z3o = function () {
65645
+ protoOf(RTCStatsJS).f3l = function () {
65406
65646
  return this.audioRecvJitter;
65407
65647
  };
65408
- protoOf(RTCStatsJS).a3p = function () {
65648
+ protoOf(RTCStatsJS).g3l = function () {
65409
65649
  return this.audioSentPackets;
65410
65650
  };
65411
- protoOf(RTCStatsJS).b3p = function () {
65651
+ protoOf(RTCStatsJS).h3l = function () {
65412
65652
  return this.audioSentBytes;
65413
65653
  };
65414
- protoOf(RTCStatsJS).c3p = function () {
65654
+ protoOf(RTCStatsJS).i3l = function () {
65415
65655
  return this.audioSentPacketsLost;
65416
65656
  };
65417
- protoOf(RTCStatsJS).d3p = function () {
65657
+ protoOf(RTCStatsJS).j3l = function () {
65418
65658
  return this.audioRtt;
65419
65659
  };
65420
- protoOf(RTCStatsJS).e3p = function () {
65660
+ protoOf(RTCStatsJS).k3l = function () {
65421
65661
  return this.audioSentJitter;
65422
65662
  };
65423
- protoOf(RTCStatsJS).f3p = function () {
65663
+ protoOf(RTCStatsJS).l3l = function () {
65424
65664
  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));
65425
65665
  };
65426
65666
  protoOf(RTCStatsJS).r2 = function () {
@@ -65429,28 +65669,28 @@ function requireClientsdkClientcore () {
65429
65669
  protoOf(RTCStatsJS).s2 = function () {
65430
65670
  return this.audioRecvPacketsLost;
65431
65671
  };
65432
- protoOf(RTCStatsJS).o3o = function () {
65672
+ protoOf(RTCStatsJS).u3k = function () {
65433
65673
  return this.audioRecvBytes;
65434
65674
  };
65435
- protoOf(RTCStatsJS).p3o = function () {
65675
+ protoOf(RTCStatsJS).v3k = function () {
65436
65676
  return this.audioRecvJitter;
65437
65677
  };
65438
- protoOf(RTCStatsJS).q3o = function () {
65678
+ protoOf(RTCStatsJS).w3k = function () {
65439
65679
  return this.audioSentPackets;
65440
65680
  };
65441
- protoOf(RTCStatsJS).r3o = function () {
65681
+ protoOf(RTCStatsJS).x3k = function () {
65442
65682
  return this.audioSentBytes;
65443
65683
  };
65444
- protoOf(RTCStatsJS).s3o = function () {
65684
+ protoOf(RTCStatsJS).y3k = function () {
65445
65685
  return this.audioSentPacketsLost;
65446
65686
  };
65447
- protoOf(RTCStatsJS).t3o = function () {
65687
+ protoOf(RTCStatsJS).z3k = function () {
65448
65688
  return this.audioRtt;
65449
65689
  };
65450
- protoOf(RTCStatsJS).u3o = function () {
65690
+ protoOf(RTCStatsJS).a3l = function () {
65451
65691
  return this.audioSentJitter;
65452
65692
  };
65453
- protoOf(RTCStatsJS).g3p = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
65693
+ protoOf(RTCStatsJS).m3l = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
65454
65694
  return new RTCStatsJS(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
65455
65695
  };
65456
65696
  protoOf(RTCStatsJS).copy = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, $super) {
@@ -65463,7 +65703,7 @@ function requireClientsdkClientcore () {
65463
65703
  audioSentPacketsLost = audioSentPacketsLost === VOID ? this.audioSentPacketsLost : audioSentPacketsLost;
65464
65704
  audioRtt = audioRtt === VOID ? this.audioRtt : audioRtt;
65465
65705
  audioSentJitter = audioSentJitter === VOID ? this.audioSentJitter : audioSentJitter;
65466
- return this.g3p(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
65706
+ return this.m3l(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
65467
65707
  };
65468
65708
  protoOf(RTCStatsJS).toString = function () {
65469
65709
  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) + ')';
@@ -65569,7 +65809,7 @@ function requireClientsdkClientcore () {
65569
65809
  };
65570
65810
  }
65571
65811
  function HttpClientJSAdapter$1($js) {
65572
- this.h3p_1 = $js;
65812
+ this.n3l_1 = $js;
65573
65813
  }
65574
65814
  protoOf(HttpClientJSAdapter$1).t35 = function (verb, url, headers, body, callback) {
65575
65815
  var tmp = verb.toString();
@@ -65577,7 +65817,7 @@ function requireClientsdkClientcore () {
65577
65817
  // Inline function 'kotlin.contracts.contract' call
65578
65818
  // Inline function 'vonage.<no name provided>.request.<anonymous>' call
65579
65819
  var tmp_0 = fromMap(JSON, headers);
65580
- this.h3p_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
65820
+ this.n3l_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
65581
65821
  };
65582
65822
  function SocketClientJSAdapter$o$emit$lambda($callback) {
65583
65823
  return function (err, response) {
@@ -65600,11 +65840,11 @@ function requireClientsdkClientcore () {
65600
65840
  };
65601
65841
  }
65602
65842
  function SocketClientJSAdapter$adapter$1($js) {
65603
- this.j3p_1 = $js;
65604
- this.i3p_1 = null;
65843
+ this.p3l_1 = $js;
65844
+ this.o3l_1 = null;
65605
65845
  }
65606
65846
  protoOf(SocketClientJSAdapter$adapter$1).c36 = function (_set____db54di) {
65607
- this.i3p_1 = _set____db54di;
65847
+ this.o3l_1 = _set____db54di;
65608
65848
  };
65609
65849
  protoOf(SocketClientJSAdapter$adapter$1).w35 = function (type, msg, callback) {
65610
65850
  var tmp;
@@ -65617,28 +65857,28 @@ function requireClientsdkClientcore () {
65617
65857
  tmp = fromMap(JSON, msg);
65618
65858
  }
65619
65859
  var tmp_0 = tmp;
65620
- this.j3p_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
65860
+ this.p3l_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
65621
65861
  };
65622
65862
  protoOf(SocketClientJSAdapter$adapter$1).x35 = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query) {
65623
- this.j3p_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
65863
+ this.p3l_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
65624
65864
  };
65625
65865
  protoOf(SocketClientJSAdapter$adapter$1).y35 = function () {
65626
- this.j3p_1.disconnect();
65866
+ this.p3l_1.disconnect();
65627
65867
  };
65628
65868
  protoOf(SocketClientJSAdapter$adapter$1).z35 = function (sessionId, token) {
65629
- this.j3p_1.setConnectParamsSocketConfig(sessionId, token);
65869
+ this.p3l_1.setConnectParamsSocketConfig(sessionId, token);
65630
65870
  };
65631
65871
  protoOf(SocketClientJSAdapter$adapter$1).a36 = function (sessionId) {
65632
- this.j3p_1.setSocketSessionId(sessionId);
65872
+ this.p3l_1.setSocketSessionId(sessionId);
65633
65873
  };
65634
65874
  protoOf(SocketClientJSAdapter$adapter$1).b36 = function (milliseconds, callback) {
65635
- this.j3p_1.startVerifyResponseTimer(milliseconds, callback);
65875
+ this.p3l_1.startVerifyResponseTimer(milliseconds, callback);
65636
65876
  };
65637
65877
  function SocketClientJSAdapter$1($adapter) {
65638
- this.k3p_1 = $adapter;
65878
+ this.q3l_1 = $adapter;
65639
65879
  }
65640
65880
  protoOf(SocketClientJSAdapter$1).didReceiveNewSocketEvent = function (body) {
65641
- var tmp0_safe_receiver = this.k3p_1.i3p_1;
65881
+ var tmp0_safe_receiver = this.q3l_1.o3l_1;
65642
65882
  if (tmp0_safe_receiver == null)
65643
65883
  null;
65644
65884
  else {
@@ -65670,7 +65910,7 @@ function requireClientsdkClientcore () {
65670
65910
  var tmp;
65671
65911
  switch (reason) {
65672
65912
  case 'NXMCORE_REASON_SERVER_DISCONNECTED':
65673
- var tmp1_safe_receiver_0 = this.k3p_1.i3p_1;
65913
+ var tmp1_safe_receiver_0 = this.q3l_1.o3l_1;
65674
65914
  var tmp_0;
65675
65915
  if (tmp1_safe_receiver_0 == null) {
65676
65916
  tmp_0 = null;
@@ -65682,7 +65922,7 @@ function requireClientsdkClientcore () {
65682
65922
  tmp = tmp_0;
65683
65923
  break;
65684
65924
  case 'NXMCORE_REASON_CLIENT_DISCONNECTED':
65685
- var tmp2_safe_receiver = this.k3p_1.i3p_1;
65925
+ var tmp2_safe_receiver = this.q3l_1.o3l_1;
65686
65926
  var tmp_1;
65687
65927
  if (tmp2_safe_receiver == null) {
65688
65928
  tmp_1 = null;
@@ -65694,7 +65934,7 @@ function requireClientsdkClientcore () {
65694
65934
  tmp = tmp_1;
65695
65935
  break;
65696
65936
  case 'NXMCORE_CLIENT_NETWORK_ERROR':
65697
- var tmp3_safe_receiver = this.k3p_1.i3p_1;
65937
+ var tmp3_safe_receiver = this.q3l_1.o3l_1;
65698
65938
  var tmp_2;
65699
65939
  if (tmp3_safe_receiver == null) {
65700
65940
  tmp_2 = null;
@@ -65706,7 +65946,7 @@ function requireClientsdkClientcore () {
65706
65946
  tmp = tmp_2;
65707
65947
  break;
65708
65948
  case 'NXMCORE_REASON_PING_TIMEOUT':
65709
- var tmp4_safe_receiver = this.k3p_1.i3p_1;
65949
+ var tmp4_safe_receiver = this.q3l_1.o3l_1;
65710
65950
  var tmp_3;
65711
65951
  if (tmp4_safe_receiver == null) {
65712
65952
  tmp_3 = null;
@@ -65718,7 +65958,7 @@ function requireClientsdkClientcore () {
65718
65958
  tmp = tmp_3;
65719
65959
  break;
65720
65960
  default:
65721
- var tmp5_safe_receiver = this.k3p_1.i3p_1;
65961
+ var tmp5_safe_receiver = this.q3l_1.o3l_1;
65722
65962
  var tmp_4;
65723
65963
  if (tmp5_safe_receiver == null) {
65724
65964
  tmp_4 = null;
@@ -65733,52 +65973,52 @@ function requireClientsdkClientcore () {
65733
65973
  }
65734
65974
  };
65735
65975
  function MediaClientJSAdapter$adapter$1($js) {
65736
- this.m3p_1 = $js;
65737
- this.l3p_1 = null;
65976
+ this.s3l_1 = $js;
65977
+ this.r3l_1 = null;
65738
65978
  }
65739
65979
  protoOf(MediaClientJSAdapter$adapter$1).m36 = function (_set____db54di) {
65740
- this.l3p_1 = _set____db54di;
65980
+ this.r3l_1 = _set____db54di;
65741
65981
  };
65742
65982
  protoOf(MediaClientJSAdapter$adapter$1).f36 = function (closure) {
65743
- this.m3p_1.enableMediaOutbound(closure);
65983
+ this.s3l_1.enableMediaOutbound(closure);
65744
65984
  };
65745
- protoOf(MediaClientJSAdapter$adapter$1).n3p = function (closure, offerSDP, rtcId) {
65746
- this.m3p_1.enableMediaInbound(closure, offerSDP, rtcId);
65985
+ protoOf(MediaClientJSAdapter$adapter$1).t3l = function (closure, offerSDP, rtcId) {
65986
+ this.s3l_1.enableMediaInbound(closure, offerSDP, rtcId);
65747
65987
  };
65748
65988
  protoOf(MediaClientJSAdapter$adapter$1).g36 = function (closure, offerSDP, rtcId) {
65749
- return this.n3p(closure, offerSDP, rtcId);
65989
+ return this.t3l(closure, offerSDP, rtcId);
65750
65990
  };
65751
65991
  protoOf(MediaClientJSAdapter$adapter$1).h36 = function (id, sdp) {
65752
- this.m3p_1.processAnswer(id, sdp);
65992
+ this.s3l_1.processAnswer(id, sdp);
65753
65993
  };
65754
65994
  protoOf(MediaClientJSAdapter$adapter$1).i36 = function (id) {
65755
- this.m3p_1.disableMedia(id);
65995
+ this.s3l_1.disableMedia(id);
65756
65996
  };
65757
65997
  protoOf(MediaClientJSAdapter$adapter$1).j36 = function (id) {
65758
- this.m3p_1.mute(id);
65998
+ this.s3l_1.mute(id);
65759
65999
  };
65760
66000
  protoOf(MediaClientJSAdapter$adapter$1).k36 = function (id) {
65761
- this.m3p_1.unmute(id);
66001
+ this.s3l_1.unmute(id);
65762
66002
  };
65763
66003
  protoOf(MediaClientJSAdapter$adapter$1).l36 = function (interval, mediaId) {
65764
- this.m3p_1.enableRtcStatsCollection(interval, mediaId);
66004
+ this.s3l_1.enableRtcStatsCollection(interval, mediaId);
65765
66005
  };
65766
66006
  function MediaClientJSAdapter$1($adapter) {
65767
- this.o3p_1 = $adapter;
66007
+ this.u3l_1 = $adapter;
65768
66008
  }
65769
66009
  protoOf(MediaClientJSAdapter$1).onRtcStats = function (rtcStats, legId) {
65770
- var tmp0_safe_receiver = this.o3p_1.l3p_1;
66010
+ var tmp0_safe_receiver = this.u3l_1.r3l_1;
65771
66011
  if (tmp0_safe_receiver == null)
65772
66012
  null;
65773
66013
  else {
65774
- tmp0_safe_receiver.c39(rtcStats.f3p(), legId);
66014
+ tmp0_safe_receiver.c39(rtcStats.l3l(), legId);
65775
66015
  }
65776
66016
  };
65777
66017
  protoOf(MediaClientJSAdapter$1).onConnectionChange = function (id, status) {
65778
66018
  switch (status) {
65779
66019
  case 'new':
65780
66020
  case 'checking':
65781
- var tmp1_safe_receiver = this.o3p_1.l3p_1;
66021
+ var tmp1_safe_receiver = this.u3l_1.r3l_1;
65782
66022
  if (tmp1_safe_receiver == null)
65783
66023
  null;
65784
66024
  else {
@@ -65787,7 +66027,7 @@ function requireClientsdkClientcore () {
65787
66027
 
65788
66028
  break;
65789
66029
  case 'connecting':
65790
- var tmp2_safe_receiver = this.o3p_1.l3p_1;
66030
+ var tmp2_safe_receiver = this.u3l_1.r3l_1;
65791
66031
  if (tmp2_safe_receiver == null)
65792
66032
  null;
65793
66033
  else {
@@ -65796,7 +66036,7 @@ function requireClientsdkClientcore () {
65796
66036
 
65797
66037
  break;
65798
66038
  case 'connected':
65799
- var tmp3_safe_receiver = this.o3p_1.l3p_1;
66039
+ var tmp3_safe_receiver = this.u3l_1.r3l_1;
65800
66040
  if (tmp3_safe_receiver == null)
65801
66041
  null;
65802
66042
  else {
@@ -65805,7 +66045,7 @@ function requireClientsdkClientcore () {
65805
66045
 
65806
66046
  break;
65807
66047
  case 'disconnected':
65808
- var tmp4_safe_receiver = this.o3p_1.l3p_1;
66048
+ var tmp4_safe_receiver = this.u3l_1.r3l_1;
65809
66049
  if (tmp4_safe_receiver == null)
65810
66050
  null;
65811
66051
  else {
@@ -65814,7 +66054,7 @@ function requireClientsdkClientcore () {
65814
66054
 
65815
66055
  break;
65816
66056
  case 'closed':
65817
- var tmp5_safe_receiver = this.o3p_1.l3p_1;
66057
+ var tmp5_safe_receiver = this.u3l_1.r3l_1;
65818
66058
  if (tmp5_safe_receiver == null)
65819
66059
  null;
65820
66060
  else {
@@ -65823,7 +66063,7 @@ function requireClientsdkClientcore () {
65823
66063
 
65824
66064
  break;
65825
66065
  case 'failed':
65826
- var tmp6_safe_receiver = this.o3p_1.l3p_1;
66066
+ var tmp6_safe_receiver = this.u3l_1.r3l_1;
65827
66067
  if (tmp6_safe_receiver == null)
65828
66068
  null;
65829
66069
  else {
@@ -65832,7 +66072,7 @@ function requireClientsdkClientcore () {
65832
66072
 
65833
66073
  break;
65834
66074
  default:
65835
- var tmp7_safe_receiver = this.o3p_1.l3p_1;
66075
+ var tmp7_safe_receiver = this.u3l_1.r3l_1;
65836
66076
  if (tmp7_safe_receiver == null)
65837
66077
  null;
65838
66078
  else {
@@ -66058,12 +66298,12 @@ function requireClientsdkClientcore () {
66058
66298
  protoOf(Some).r2 = function () {
66059
66299
  return this.value;
66060
66300
  };
66061
- protoOf(Some).p3p = function (value) {
66301
+ protoOf(Some).v3l = function (value) {
66062
66302
  return new Some(value);
66063
66303
  };
66064
66304
  protoOf(Some).copy = function (value, $super) {
66065
66305
  value = value === VOID ? this.value : value;
66066
- return this.p3p(value);
66306
+ return this.v3l(value);
66067
66307
  };
66068
66308
  protoOf(Some).toString = function () {
66069
66309
  return 'Some(value=' + this.value + ')';
@@ -66305,24 +66545,24 @@ function requireClientsdkClientcore () {
66305
66545
  $vonage.EventDeleteConversationEventJS = EventDeleteConversationEventJS;
66306
66546
  var $vonage = _.vonage || (_.vonage = {});
66307
66547
  $vonage.MessageTextEventJS = MessageTextEventJS;
66308
- $vonage.MessageTextEventJS.Body = Body;
66548
+ $vonage.MessageTextEventJS.MessageTextEventBody = MessageTextEventBody;
66309
66549
  $vonage.MessageCustomEventJS = MessageCustomEventJS;
66310
- $vonage.MessageCustomEventJS.Body = Body_0;
66550
+ $vonage.MessageCustomEventJS.MessageCustomEventBody = MessageCustomEventBody;
66311
66551
  $vonage.MessageAudioEventJS = MessageAudioEventJS;
66312
- $vonage.MessageAudioEventJS.Body = Body_1;
66552
+ $vonage.MessageAudioEventJS.MessageAudioEventBody = MessageAudioEventBody;
66313
66553
  $vonage.MessageVideoEventJS = MessageVideoEventJS;
66314
- $vonage.MessageVideoEventJS.Body = Body_2;
66554
+ $vonage.MessageVideoEventJS.MessageVideoEventBody = MessageVideoEventBody;
66315
66555
  $vonage.MessageImageEventJS = MessageImageEventJS;
66316
- $vonage.MessageImageEventJS.Body = Body_3;
66556
+ $vonage.MessageImageEventJS.MessageImageEventBody = MessageImageEventBody;
66317
66557
  $vonage.MessageFileEventJS = MessageFileEventJS;
66318
- $vonage.MessageFileEventJS.Body = Body_4;
66558
+ $vonage.MessageFileEventJS.MessageFileEventBody = MessageFileEventBody;
66319
66559
  $vonage.MessageVCardEventJS = MessageVCardEventJS;
66320
- $vonage.MessageVCardEventJS.Body = Body_5;
66560
+ $vonage.MessageVCardEventJS.MessageVCardEventBody = MessageVCardEventBody;
66321
66561
  $vonage.MessageLocationEventJS = MessageLocationEventJS;
66322
- $vonage.MessageLocationEventJS.Body = Body_6;
66562
+ $vonage.MessageLocationEventJS.MessageLocationEventBody = MessageLocationEventBody;
66323
66563
  $vonage.MessageLocationEventJS.Location = Location_0;
66324
66564
  $vonage.MessageTemplateEventJS = MessageTemplateEventJS;
66325
- $vonage.MessageTemplateEventJS.Body = Body_7;
66565
+ $vonage.MessageTemplateEventJS.MessageTemplateEventBody = MessageTemplateEventBody;
66326
66566
  $vonage.MessageTemplateEventJS.TemplateObject = TemplateObject_0;
66327
66567
  $vonage.MessageTemplateEventJS.WhatsappObject = WhatsappObject_0;
66328
66568
  var $vonage = _.vonage || (_.vonage = {});
@@ -66981,18 +67221,21 @@ class SocketClient {
66981
67221
  }
66982
67222
  }
66983
67223
 
67224
+ /**
67225
+ * A group of Topics that a {@link VonageLogger} can subscribe to
67226
+ */
66984
67227
  const Topics = clientsdkClientcore_jsExports.vonage.Topics;
66985
67228
  const Topic = clientsdkClientcore_jsExports.vonage.TopicJS;
66986
67229
  const LoggingLevel = clientsdkClientcore_jsExports.vonage.LoggingLevelJS;
66987
67230
  /**
66988
- * @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
67231
+ * @deprecated Use {@link ClientInitConfigObject.loggingLevel} instead.
66989
67232
  * @param level - The logging level to set.
66990
67233
  */
66991
67234
  const setDefaultLoggingLevel = (level) => {
66992
67235
  clientsdkClientcore_jsExports.vonage.setDefaultLoggingLevel(level instanceof LoggingLevel ? level : LoggingLevel[level]);
66993
67236
  };
66994
67237
  /**
66995
- * @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
67238
+ * @deprecated Use {@link ClientInitConfigObject.loggingLevel} instead.
66996
67239
  * @param level - The logging level to set.
66997
67240
  */
66998
67241
  const setVonageClientLoggingLevel = setDefaultLoggingLevel;
@@ -67011,15 +67254,6 @@ const createVonageLogger = (name, onLog, minLogLevel, topics) => clientsdkClient
67011
67254
  : undefined, topics === null || topics === void 0 ? void 0 : topics.map((topic) => (topic instanceof Topics ? topic : Topics[topic])), (level, topic, message) => onLog(level, topic, message));
67012
67255
 
67013
67256
  const ConfigRegion = clientsdkClientcore_jsExports.vonage.CoreClientConfigRegionJS;
67014
- /**
67015
- * Represents the configuration object for the client.
67016
- *
67017
- * The `ClientConfig` class provides a convenient way to configure the client by specifying various properties.
67018
- * These properties control different aspects of the client's behavior, such as API URLs, media reoffer, and WebSocket settings.
67019
- *
67020
- * @example
67021
- * [[include:snippet_setClientConfig.txt]]
67022
- */
67023
67257
  class ClientConfig extends clientsdkClientcore_jsExports.vonage.CoreClientConfigJS {
67024
67258
  /**
67025
67259
  * Constructs a new instance of the class.
@@ -67067,15 +67301,16 @@ const convertInitConfig = (config) => {
67067
67301
  : null });
67068
67302
  };
67069
67303
 
67070
- const ChannelType = clientsdkClientcore_jsExports.vonage.ChannelTypeJS;
67071
- const PresentingOrder = clientsdkClientcore_jsExports.vonage.PresentingOrderJS;
67072
- const OrderBy = clientsdkClientcore_jsExports.vonage.OrderByJS;
67304
+ const ChannelType = clientsdkClientcore_jsExports.vonage.ChannelTypeJS;
67073
67305
 
67074
67306
  const VonageError = clientsdkClientcore_jsExports.vonage.VonageErrorJS;
67075
67307
  const VonageErrorType = clientsdkClientcore_jsExports.vonage.VonageErrorTypeJS;
67076
67308
  const CSErrorCodes = clientsdkClientcore_jsExports.vonage.CSErrorCodesJS;
67077
67309
  const SessionErrorCodes = clientsdkClientcore_jsExports.vonage.SessionErrorCodesJS;
67078
67310
 
67311
+ const PresentingOrder = clientsdkClientcore_jsExports.vonage.PresentingOrderJS;
67312
+ const OrderBy = clientsdkClientcore_jsExports.vonage.OrderByJS;
67313
+
67079
67314
  const Option = clientsdkClientcore_jsExports.vonage.utils.OptionJS;
67080
67315
  const mapOption = (value) => {
67081
67316
  if (value == null)
@@ -67084,7 +67319,15 @@ const mapOption = (value) => {
67084
67319
  return new Option.None();
67085
67320
  return new Option.Some(value);
67086
67321
  };
67322
+ /**
67323
+ * @param value The wrapped value
67324
+ * @returns An {@link Option.Some}
67325
+ */
67087
67326
  const some = (value) => new Option.Some(value);
67327
+ /**
67328
+ *
67329
+ * @returns An {@link Option.None}
67330
+ */
67088
67331
  const none = () => new Option.None();
67089
67332
 
67090
67333
  const CancelReason = clientsdkClientcore_jsExports.vonage.CancelReasonJS;
@@ -67194,8 +67437,8 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67194
67437
  * @param callback - the callback to register for the event
67195
67438
  * @returns a symbol that can be used to unregister the callback
67196
67439
  * @remarks
67197
- * Besure to store the symbol returned by this method so you can unregister the callback later.
67198
- * We recommend deregistering callbacks when you no longer need them. See {@link off}.
67440
+ * Be sure to store the symbol returned by this method so you can unregister the callback later.
67441
+ * We recommend unregistering callbacks when you no longer need them. See {@link off}.
67199
67442
  */
67200
67443
  on(event, callback) {
67201
67444
  const callbackSymbol = Symbol(event);
@@ -67547,7 +67790,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67547
67790
  * @group Chat
67548
67791
  * @beta
67549
67792
  * @param id - the Conversation's id
67550
- * @param name - the namne of the user to invite
67793
+ * @param name - the name of the user to invite
67551
67794
  * @returns the `memberId` of the member
67552
67795
  */
67553
67796
  inviteToConversation(id, name) {
@@ -67725,7 +67968,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67725
67968
  * Send a template message to a Conversation.
67726
67969
  *
67727
67970
  * @example
67728
- * [[include: snippet_SendMessageTemplateEvent.txt]]
67971
+ * [[include: snippet_SendTemplateMessage.txt]]
67729
67972
  *
67730
67973
  * @group Chat
67731
67974
  * @beta
@@ -67774,7 +68017,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67774
68017
  * @group Chat
67775
68018
  * @beta
67776
68019
  * @param id - the Conversation's id
67777
- * @param type - the type of the custom event. Type must start with `custom:<...>`
68020
+ * @param evenType - the type of the custom event. Type must start with `custom:<...>`
67778
68021
  * @param customData - the body of the event
67779
68022
  * @returns the `timestamp` of the message
67780
68023
  */