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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/api_docs/ts/assets/navigation.js +1 -1
  2. package/api_docs/ts/assets/search.js +1 -1
  3. package/api_docs/ts/classes/ClientConfig.html +2 -7
  4. package/api_docs/ts/classes/ClientInitConfig.html +1 -1
  5. package/api_docs/ts/classes/VonageClient.html +35 -35
  6. package/api_docs/ts/functions/none.html +2 -0
  7. package/api_docs/ts/functions/setDefaultLoggingLevel.html +2 -2
  8. package/api_docs/ts/functions/setVonageClientLoggingLevel.html +2 -2
  9. package/api_docs/ts/functions/some.html +3 -0
  10. package/api_docs/ts/index.html +4 -4
  11. package/api_docs/ts/interfaces/CallSayParams.html +8 -0
  12. package/api_docs/ts/interfaces/Channel.html +8 -0
  13. package/api_docs/ts/interfaces/ClientConfigObject.html +18 -0
  14. package/api_docs/ts/interfaces/ClientInitConfigObject.html +24 -0
  15. package/api_docs/ts/interfaces/Conversation.html +20 -0
  16. package/api_docs/ts/interfaces/ConversationProperties.html +8 -0
  17. package/api_docs/ts/interfaces/ConversationTimestamp.html +5 -0
  18. package/api_docs/ts/interfaces/ConversationsPage.html +8 -0
  19. package/api_docs/ts/interfaces/CreateConversationParameters.html +15 -0
  20. package/api_docs/ts/interfaces/CustomConversationEvent.html +8 -8
  21. package/api_docs/ts/interfaces/EmbeddedInfo.html +4 -4
  22. package/api_docs/ts/interfaces/EphemeralConversationEvent.html +6 -6
  23. package/api_docs/ts/interfaces/EventDeleteConversationEvent.html +7 -7
  24. package/api_docs/ts/interfaces/EventsPage.html +8 -0
  25. package/api_docs/ts/interfaces/GetConversationEventsParameters.html +14 -0
  26. package/api_docs/ts/interfaces/GetConversationMembersParameters.html +8 -0
  27. package/api_docs/ts/interfaces/GetConversationsParameters.html +12 -0
  28. package/api_docs/ts/interfaces/Leg.html +20 -0
  29. package/api_docs/ts/interfaces/LegChannel.html +8 -0
  30. package/api_docs/ts/interfaces/Location.html +3 -2
  31. package/api_docs/ts/interfaces/Member.html +12 -0
  32. package/api_docs/ts/interfaces/MemberChannel.html +8 -0
  33. package/api_docs/ts/interfaces/MemberEventBody.html +6 -0
  34. package/api_docs/ts/interfaces/MemberInvitedEvent.html +2 -2
  35. package/api_docs/ts/interfaces/MemberJoinedEvent.html +7 -7
  36. package/api_docs/ts/interfaces/MemberLeftEvent.html +7 -7
  37. package/api_docs/ts/interfaces/MemberTimestamp.html +5 -0
  38. package/api_docs/ts/interfaces/MembersPage.html +8 -0
  39. package/api_docs/ts/interfaces/MessageAudioEvent.html +10 -10
  40. package/api_docs/ts/interfaces/MessageAudioEventBody.html +6 -0
  41. package/api_docs/ts/interfaces/MessageCustomEvent.html +8 -8
  42. package/api_docs/ts/interfaces/MessageCustomEventBody.html +6 -0
  43. package/api_docs/ts/interfaces/MessageFileEvent.html +10 -10
  44. package/api_docs/ts/interfaces/MessageFileEventBody.html +7 -0
  45. package/api_docs/ts/interfaces/MessageImageEvent.html +10 -10
  46. package/api_docs/ts/interfaces/MessageImageEventBody.html +7 -0
  47. package/api_docs/ts/interfaces/MessageLocationEvent.html +10 -10
  48. package/api_docs/ts/interfaces/MessageLocationEventBody.html +7 -0
  49. package/api_docs/ts/interfaces/MessageTemplateEvent.html +10 -10
  50. package/api_docs/ts/interfaces/MessageTemplateEventBody.html +10 -0
  51. package/api_docs/ts/interfaces/MessageTextEvent.html +8 -8
  52. package/api_docs/ts/interfaces/MessageTextEventBody.html +7 -0
  53. package/api_docs/ts/interfaces/MessageVCardEvent.html +10 -10
  54. package/api_docs/ts/interfaces/MessageVCardEventBody.html +7 -0
  55. package/api_docs/ts/interfaces/MessageVideoEvent.html +10 -10
  56. package/api_docs/ts/interfaces/MessageVideoEventBody.html +7 -0
  57. package/api_docs/ts/interfaces/RTCQuality.html +11 -0
  58. package/api_docs/ts/interfaces/RtcStats.html +11 -0
  59. package/api_docs/ts/interfaces/System.html +3 -2
  60. package/api_docs/ts/interfaces/Template.html +3 -2
  61. package/api_docs/ts/interfaces/UpdateConversationParameters.html +12 -2
  62. package/api_docs/ts/interfaces/User.html +16 -0
  63. package/api_docs/ts/interfaces/UserChannels.html +14 -0
  64. package/api_docs/ts/interfaces/UserTimestamp.html +5 -0
  65. package/api_docs/ts/interfaces/VonageEvent.html +2 -0
  66. package/api_docs/ts/interfaces/VonageLogger.html +10 -0
  67. package/api_docs/ts/interfaces/Whatsapp.html +3 -2
  68. package/api_docs/ts/modules.html +64 -16
  69. package/api_docs/ts/types/ChannelType.html +2 -0
  70. package/api_docs/ts/types/ConfigRegion.html +3 -0
  71. package/api_docs/ts/types/ConversationEvent.html +2 -0
  72. package/api_docs/ts/types/ConversationState.html +2 -0
  73. package/api_docs/ts/types/CustomData.html +2 -2
  74. package/api_docs/ts/types/From.html +2 -0
  75. package/api_docs/ts/types/Json.html +2 -0
  76. package/api_docs/ts/types/JsonValue.html +2 -0
  77. package/api_docs/ts/types/LoggingLevel.html +4 -0
  78. package/api_docs/ts/types/MemberState.html +2 -0
  79. package/api_docs/ts/types/NonPersistentConversationEvent.html +2 -0
  80. package/api_docs/ts/types/Option.html +3 -0
  81. package/api_docs/ts/types/OrderBy.html +2 -0
  82. package/api_docs/ts/types/PersistentConversationEvent.html +2 -0
  83. package/api_docs/ts/types/PresentingOrder.html +2 -0
  84. package/api_docs/ts/types/Topics.html +2 -0
  85. package/api_docs/ts/variables/Topics-1.html +2 -0
  86. package/dist/client/VonageClient.d.ts +74 -7
  87. package/dist/client/index.cjs +1325 -1082
  88. package/dist/client/index.mjs +1325 -1082
  89. package/dist/kotlin/JsUnions.d.ts +127 -101
  90. package/dist/kotlin/clientsdk-clientcore_js.d.ts +19 -36
  91. package/dist/utils/ClientConfig.d.ts +45 -9
  92. package/dist/utils/ConversationEventBodies.d.ts +134 -0
  93. package/dist/utils/ConversationModels.d.ts +133 -18
  94. package/dist/utils/JsonUtils.d.ts +6 -0
  95. package/dist/utils/Option.d.ts +14 -0
  96. package/dist/utils/RequestParameterModels.d.ts +82 -0
  97. package/dist/utils/index.d.ts +1 -0
  98. package/dist/utils/logging.d.ts +26 -2
  99. package/dist/vonageClientSDK.js +1264 -1064
  100. package/dist/vonageClientSDK.min.js +1 -1
  101. package/dist/vonageClientSDK.min.mjs +1 -1
  102. package/dist/vonageClientSDK.mjs +1264 -1064
  103. package/package.json +4 -2
  104. package/typedoc.json +6 -3
  105. package/api_docs/ts/interfaces/ConversationEvent.html +0 -8
  106. package/api_docs/ts/interfaces/ConversationState.html +0 -198
  107. package/api_docs/ts/interfaces/From.html +0 -4
  108. package/api_docs/ts/interfaces/MemberState.html +0 -198
  109. package/api_docs/ts/interfaces/NonPersistentConversationEvent.html +0 -8
  110. package/api_docs/ts/interfaces/PersistentConversationEvent.html +0 -9
@@ -19413,7 +19413,6 @@ function requireClientsdkClientcore () {
19413
19413
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
19414
19414
  var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.m;
19415
19415
  var numberToLong = kotlin_kotlin.$_$.i6;
19416
- var Exception_init_$Create$ = kotlin_kotlin.$_$.z;
19417
19416
  var Map = kotlin_kotlin.$_$.v2;
19418
19417
  var MutableMap = kotlin_kotlin.$_$.x2;
19419
19418
  var getKClassFromExpression = kotlin_kotlin.$_$.d;
@@ -19433,6 +19432,7 @@ function requireClientsdkClientcore () {
19433
19432
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
19434
19433
  var listOf = kotlin_kotlin.$_$.f4;
19435
19434
  var listOf_0 = kotlin_kotlin.$_$.e4;
19435
+ var Exception_init_$Create$ = kotlin_kotlin.$_$.z;
19436
19436
  var replaceFirst = kotlin_kotlin.$_$.f7;
19437
19437
  var charSequenceLength = kotlin_kotlin.$_$.c5;
19438
19438
  var Exception_init_$Init$_1 = kotlin_kotlin.$_$.y;
@@ -20042,6 +20042,9 @@ function requireClientsdkClientcore () {
20042
20042
  function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
20043
20043
  }
20044
20044
  setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
20045
+ function onConversationEvent(event) {
20046
+ }
20047
+ setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
20045
20048
  function onAudioSay() {
20046
20049
  }
20047
20050
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -20051,10 +20054,7 @@ function requireClientsdkClientcore () {
20051
20054
  function onAudioDTMFUpdate(conversationId, legId, digits) {
20052
20055
  }
20053
20056
  setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
20054
- function onConversationEvent(event) {
20055
- }
20056
- setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
20057
- setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
20057
+ setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
20058
20058
  setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
20059
20059
  setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
20060
20060
  setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
@@ -20064,8 +20064,10 @@ function requireClientsdkClientcore () {
20064
20064
  setMetadataFor(CSErrorCodes, 'CSErrorCodes', objectMeta);
20065
20065
  setMetadataFor(InternalError, 'InternalError', classMeta, Exception);
20066
20066
  setMetadataFor(CustomLoggersLimitReached, 'CustomLoggersLimitReached', classMeta, InternalError);
20067
+ setMetadataFor(MediaTimeout, 'MediaTimeout', classMeta, InternalError);
20067
20068
  setMetadataFor(NoInviteFound, 'NoInviteFound', classMeta, InternalError);
20068
20069
  setMetadataFor(InvalidCallAction, 'InvalidCallAction', classMeta, InternalError);
20070
+ setMetadataFor(NoOfferFound, 'NoOfferFound', classMeta, InternalError);
20069
20071
  setMetadataFor(InboundCallFailed, 'InboundCallFailed', classMeta, InternalError);
20070
20072
  setMetadataFor(NoCallFound, 'NoCallFound', classMeta, InternalError);
20071
20073
  setMetadataFor(AuthorizationError_0, 'AuthorizationError', classMeta, InternalError);
@@ -20073,8 +20075,8 @@ function requireClientsdkClientcore () {
20073
20075
  setMetadataFor(NoConversationFound, 'NoConversationFound', classMeta, InternalError);
20074
20076
  setMetadataFor(NoLegFound, 'NoLegFound', classMeta, InternalError);
20075
20077
  setMetadataFor(IllegalArgumentException_0, 'IllegalArgumentException', classMeta, InternalError);
20076
- setMetadataFor(UnexpectedNullValue, 'UnexpectedNullValue', classMeta, InternalError);
20077
20078
  setMetadataFor(ServiceTempNotAvailable, 'ServiceTempNotAvailable', classMeta, InternalError);
20079
+ setMetadataFor(UnexpectedNullValue, 'UnexpectedNullValue', classMeta, InternalError);
20078
20080
  setMetadataFor(ServiceNotAvailable, 'ServiceNotAvailable', classMeta, InternalError);
20079
20081
  setMetadataFor(ParsingException, 'ParsingException', classMeta, InternalError);
20080
20082
  setMetadataFor(SessionErrorCodes, 'SessionErrorCodes', objectMeta);
@@ -20181,7 +20183,7 @@ function requireClientsdkClientcore () {
20181
20183
  setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
20182
20184
  setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
20183
20185
  setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
20184
- setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
20186
+ setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
20185
20187
  setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
20186
20188
  setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
20187
20189
  setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
@@ -43902,12 +43904,11 @@ function requireClientsdkClientcore () {
43902
43904
  return function (response) {
43903
43905
  var tmp0_subject = response;
43904
43906
  var tmp;
43905
- if (tmp0_subject instanceof Exception) {
43906
- tmp = $callback(toVonageError(response), null);
43907
+ if (tmp0_subject instanceof GetConversation) {
43908
+ tmp = $callback(null, Companion_getInstance_127().z2j(response));
43907
43909
  } else {
43908
- if (tmp0_subject instanceof GetConversation) {
43909
- tmp = $callback(null, Companion_getInstance_127().z2j(response));
43910
- }
43910
+ invokeCallbackWithError(response, $callback);
43911
+ tmp = Unit_getInstance();
43911
43912
  }
43912
43913
  return Unit_getInstance();
43913
43914
  };
@@ -44132,7 +44133,7 @@ function requireClientsdkClientcore () {
44132
44133
  // Inline function 'kotlin.run' call
44133
44134
  // Inline function 'kotlin.contracts.contract' call
44134
44135
  var message = 'At least one between text, imageUrl, videoUrl, audioUrl, fileUrl, vCardUrl or customBody must be provided.';
44135
- $callback(toVonageError(new IllegalArgumentException_0(message)), null);
44136
+ invokeCallbackWithError(new IllegalArgumentException_0(message), $callback);
44136
44137
  return Unit_getInstance();
44137
44138
  tmp_1 = tmp$ret$0;
44138
44139
  } else {
@@ -44143,7 +44144,7 @@ function requireClientsdkClientcore () {
44143
44144
  var tmp_2;
44144
44145
  if ($p instanceof IllegalArgumentException) {
44145
44146
  var error = $p;
44146
- $callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
44147
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), $callback);
44147
44148
  return Unit_getInstance();
44148
44149
  } else {
44149
44150
  throw $p;
@@ -44187,7 +44188,7 @@ function requireClientsdkClientcore () {
44187
44188
  var tmp_1;
44188
44189
  if ($p instanceof IllegalArgumentException) {
44189
44190
  var error = $p;
44190
- $callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
44191
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), $callback);
44191
44192
  return Unit_getInstance();
44192
44193
  } else {
44193
44194
  throw $p;
@@ -44231,7 +44232,7 @@ function requireClientsdkClientcore () {
44231
44232
  var tmp_1;
44232
44233
  if ($p instanceof IllegalArgumentException) {
44233
44234
  var error = $p;
44234
- $callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
44235
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), $callback);
44235
44236
  return Unit_getInstance();
44236
44237
  } else {
44237
44238
  throw $p;
@@ -44300,7 +44301,7 @@ function requireClientsdkClientcore () {
44300
44301
  var tmp_3;
44301
44302
  if ($p instanceof IllegalArgumentException) {
44302
44303
  var error = $p;
44303
- callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
44304
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), callback);
44304
44305
  return Unit_getInstance();
44305
44306
  } else {
44306
44307
  throw $p;
@@ -44319,7 +44320,7 @@ function requireClientsdkClientcore () {
44319
44320
  var tmp_0;
44320
44321
  if ($p instanceof IllegalArgumentException) {
44321
44322
  var error = $p;
44322
- callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
44323
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), callback);
44323
44324
  return Unit_getInstance();
44324
44325
  } else {
44325
44326
  throw $p;
@@ -44432,20 +44433,6 @@ function requireClientsdkClientcore () {
44432
44433
  var tmp = new GetMyMemberRequest(cid);
44433
44434
  this.q2j_1.c1a(new Action_0(tmp, new ActionMeta(VOID, VOID, ChatAPIImpl$deleteEvent$lambda(this, id, cid, callback))));
44434
44435
  };
44435
- function invokeCallbackWithError(e, callback) {
44436
- if (e instanceof Exception)
44437
- callback(toVonageError(e), null);
44438
- else {
44439
- callback(toVonageError(new UnexpectedNullValue()), null);
44440
- }
44441
- }
44442
- function invokeCallbackWithError_0(e, callback) {
44443
- if (e instanceof Exception)
44444
- callback(toVonageError(e));
44445
- else {
44446
- callback(toVonageError(new UnexpectedNullValue()));
44447
- }
44448
- }
44449
44436
  var LoggingLevel_Verbose_instance;
44450
44437
  var LoggingLevel_Debug_instance;
44451
44438
  var LoggingLevel_Info_instance;
@@ -44571,7 +44558,8 @@ function requireClientsdkClientcore () {
44571
44558
  var tmp0_subject = response;
44572
44559
  var tmp;
44573
44560
  if (tmp0_subject instanceof Exception) {
44574
- tmp = $callback(toVonageError(response), null);
44561
+ invokeCallbackWithError(response, $callback);
44562
+ tmp = Unit_getInstance();
44575
44563
  } else {
44576
44564
  if (tmp0_subject instanceof GetConversation) {
44577
44565
  var tmp1_safe_receiver = response.b1k_1;
@@ -44593,7 +44581,8 @@ function requireClientsdkClientcore () {
44593
44581
  var tmp0_subject = response;
44594
44582
  var tmp;
44595
44583
  if (tmp0_subject instanceof Exception) {
44596
- tmp = $callback(toVonageError(response), null);
44584
+ invokeCallbackWithError(response, $callback);
44585
+ tmp = Unit_getInstance();
44597
44586
  } else {
44598
44587
  if (tmp0_subject instanceof GetUser) {
44599
44588
  var tmp1_safe_receiver = response.e1q_1;
@@ -44701,6 +44690,10 @@ function requireClientsdkClientcore () {
44701
44690
  InternalError.call(this, 'internal:error:custom_loggers_limit_exceeded', 'Exceeded Max number of Custom Client Loggers. Provided: ' + provided + ', Limit: ' + limit);
44702
44691
  captureStack(this, CustomLoggersLimitReached);
44703
44692
  }
44693
+ function MediaTimeout() {
44694
+ InternalError.call(this, 'voice:error:media_timeout', 'Media Timeout');
44695
+ captureStack(this, MediaTimeout);
44696
+ }
44704
44697
  function NoInviteFound() {
44705
44698
  InternalError.call(this, 'voice:error:no_invite_found', 'No invite found');
44706
44699
  captureStack(this, NoInviteFound);
@@ -44709,6 +44702,10 @@ function requireClientsdkClientcore () {
44709
44702
  InternalError.call(this, 'voice:error:invalid_call_action', 'Invalid call action');
44710
44703
  captureStack(this, InvalidCallAction);
44711
44704
  }
44705
+ function NoOfferFound() {
44706
+ InternalError.call(this, 'voice:error:no_offer_found', 'No offer found');
44707
+ captureStack(this, NoOfferFound);
44708
+ }
44712
44709
  function InboundCallFailed(cause) {
44713
44710
  cause = cause === VOID ? null : cause;
44714
44711
  InternalError.call(this, 'voice:error:inbound_call_failed', 'Inbound call failed', cause);
@@ -44741,10 +44738,6 @@ function requireClientsdkClientcore () {
44741
44738
  InternalError.call(this, 'internal:error:illegal_argument_exception', message == null ? 'Incorrect arguments provided to method' : message, cause);
44742
44739
  captureStack(this, IllegalArgumentException_0);
44743
44740
  }
44744
- function UnexpectedNullValue() {
44745
- InternalError.call(this, 'internal:error:unexpected_null_value', 'Unexpected Null Value');
44746
- captureStack(this, UnexpectedNullValue);
44747
- }
44748
44741
  function InternalError(code, message, cause) {
44749
44742
  message = message === VOID ? null : message;
44750
44743
  cause = cause === VOID ? null : cause;
@@ -44756,6 +44749,10 @@ function requireClientsdkClientcore () {
44756
44749
  InternalError.call(this, 'internal:error:serviceNotAvailable', 'ServiceTempNotAvailable');
44757
44750
  captureStack(this, ServiceTempNotAvailable);
44758
44751
  }
44752
+ function UnexpectedNullValue() {
44753
+ InternalError.call(this, 'internal:error:unexpected_null_value', 'Unexpected Null Value');
44754
+ captureStack(this, UnexpectedNullValue);
44755
+ }
44759
44756
  function ServiceNotAvailable(statusCode) {
44760
44757
  statusCode = statusCode === VOID ? 500 : statusCode;
44761
44758
  InternalError.call(this, 'internal:error:service_no_available', 'ServiceNotAvailable:' + statusCode);
@@ -44815,16 +44812,8 @@ function requireClientsdkClientcore () {
44815
44812
  new SessionErrorMessages();
44816
44813
  return SessionErrorMessages_instance;
44817
44814
  }
44818
- function VonageError_init_$Init$($this) {
44819
- VonageError.call($this, VonageErrorType_UNKNOWN_ERROR_getInstance());
44820
- return $this;
44821
- }
44822
- function VonageError_init_$Create$() {
44823
- var tmp = VonageError_init_$Init$(objectCreate(protoOf(VonageError)));
44824
- captureStack(tmp, VonageError_init_$Create$);
44825
- return tmp;
44826
- }
44827
44815
  function VonageError(type, code, message, cause) {
44816
+ type = type === VOID ? VonageErrorType_UNKNOWN_ERROR_getInstance() : type;
44828
44817
  code = code === VOID ? null : code;
44829
44818
  message = message === VOID ? null : message;
44830
44819
  cause = cause === VOID ? null : cause;
@@ -44833,9 +44822,6 @@ function requireClientsdkClientcore () {
44833
44822
  this.i2o_1 = type;
44834
44823
  this.j2o_1 = code;
44835
44824
  }
44836
- protoOf(VonageError).toString = function () {
44837
- return 'VonageError(type=' + this.i2o_1 + ', code=' + this.j2o_1 + ', message=' + this.message + ', cause=' + this.cause + ')';
44838
- };
44839
44825
  var VonageErrorType_CS_ERROR_instance;
44840
44826
  var VonageErrorType_SESSION_ERROR_instance;
44841
44827
  var VonageErrorType_INTERNAL_ERROR_instance;
@@ -44861,49 +44847,69 @@ function requireClientsdkClientcore () {
44861
44847
  }
44862
44848
  function toVonageError(_this__u8e3s4) {
44863
44849
  var tmp;
44864
- if (_this__u8e3s4 instanceof SessionError) {
44865
- var tmp_0 = VonageErrorType_SESSION_ERROR_getInstance();
44866
- var tmp_1 = _this__u8e3s4.j2d();
44867
- var tmp_2 = _this__u8e3s4.i5();
44868
- var tmp1_elvis_lhs = _this__u8e3s4.cause;
44869
- tmp = new VonageError(tmp_0, tmp_1, tmp_2, tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs);
44850
+ if (_this__u8e3s4 instanceof VonageError) {
44851
+ tmp = _this__u8e3s4;
44870
44852
  } else {
44871
- if (_this__u8e3s4 instanceof CSError) {
44872
- var tmp_3 = VonageErrorType_CS_ERROR_getInstance();
44873
- var tmp2_safe_receiver = _this__u8e3s4.x1i_1;
44874
- var tmp_4;
44875
- if (tmp2_safe_receiver == null) {
44876
- tmp_4 = null;
44877
- } else {
44878
- // Inline function 'kotlin.let' call
44879
- // Inline function 'kotlin.contracts.contract' call
44880
- // Inline function 'com.vonage.clientcore.core.api.errors.toVonageError.<anonymous>' call
44881
- tmp_4 = 'Invalid Parameters:' + tmp2_safe_receiver;
44882
- }
44883
- tmp = new VonageError(tmp_3, _this__u8e3s4.u1i_1, _this__u8e3s4.v1i_1 + ' - ' + tmp_4);
44853
+ if (_this__u8e3s4 instanceof SessionError) {
44854
+ var tmp_0 = VonageErrorType_SESSION_ERROR_getInstance();
44855
+ var tmp_1 = _this__u8e3s4.j2d();
44856
+ var tmp_2 = _this__u8e3s4.i5();
44857
+ var tmp1_elvis_lhs = _this__u8e3s4.cause;
44858
+ tmp = new VonageError(tmp_0, tmp_1, tmp_2, tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs);
44884
44859
  } else {
44885
- if (_this__u8e3s4 instanceof HTTPClientError) {
44886
- tmp = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), VOID, _this__u8e3s4.message, _this__u8e3s4);
44860
+ if (_this__u8e3s4 instanceof CSError) {
44861
+ var tmp_3 = VonageErrorType_CS_ERROR_getInstance();
44862
+ var tmp2_safe_receiver = _this__u8e3s4.x1i_1;
44863
+ var tmp_4;
44864
+ if (tmp2_safe_receiver == null) {
44865
+ tmp_4 = null;
44866
+ } else {
44867
+ // Inline function 'kotlin.let' call
44868
+ // Inline function 'kotlin.contracts.contract' call
44869
+ // Inline function 'com.vonage.clientcore.core.api.errors.toVonageError.<anonymous>' call
44870
+ tmp_4 = 'Invalid Parameters:' + tmp2_safe_receiver;
44871
+ }
44872
+ tmp = new VonageError(tmp_3, _this__u8e3s4.u1i_1, _this__u8e3s4.v1i_1 + ' - ' + tmp_4);
44887
44873
  } else {
44888
- if (_this__u8e3s4 instanceof InternalError) {
44889
- var tmp_5;
44890
- if (_this__u8e3s4 instanceof ServiceTempNotAvailable) {
44891
- tmp_5 = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4);
44874
+ if (_this__u8e3s4 instanceof HTTPClientError) {
44875
+ tmp = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), VOID, _this__u8e3s4.message, _this__u8e3s4);
44876
+ } else {
44877
+ if (_this__u8e3s4 instanceof InternalError) {
44878
+ var tmp_5;
44879
+ if (_this__u8e3s4 instanceof ServiceTempNotAvailable) {
44880
+ tmp_5 = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4);
44881
+ } else {
44882
+ tmp_5 = new VonageError(VonageErrorType_INTERNAL_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4.cause);
44883
+ }
44884
+ tmp = tmp_5;
44892
44885
  } else {
44893
- tmp_5 = new VonageError(VonageErrorType_INTERNAL_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4.cause);
44886
+ var tmp_6 = VonageErrorType_UNKNOWN_ERROR_getInstance();
44887
+ var tmp_7 = _this__u8e3s4.message;
44888
+ var tmp4_elvis_lhs = _this__u8e3s4.cause;
44889
+ tmp = new VonageError(tmp_6, null, tmp_7, tmp4_elvis_lhs == null ? _this__u8e3s4 : tmp4_elvis_lhs);
44894
44890
  }
44895
- tmp = tmp_5;
44896
- } else {
44897
- var tmp_6 = VonageErrorType_UNKNOWN_ERROR_getInstance();
44898
- var tmp_7 = _this__u8e3s4.message;
44899
- var tmp4_elvis_lhs = _this__u8e3s4.cause;
44900
- tmp = new VonageError(tmp_6, null, tmp_7, tmp4_elvis_lhs == null ? _this__u8e3s4 : tmp4_elvis_lhs);
44901
44891
  }
44902
44892
  }
44903
44893
  }
44904
44894
  }
44905
44895
  return tmp;
44906
44896
  }
44897
+ function invokeCallbackWithError(e, callback) {
44898
+ if (e instanceof Exception)
44899
+ callback(toVonageError(e), null);
44900
+ else {
44901
+ callback(toVonageError(new UnexpectedNullValue()), null);
44902
+ }
44903
+ }
44904
+ function invokeCallbackWithError_0(e, callback) {
44905
+ return invokeCallbackWithError(e, invokeCallbackWithError$lambda(callback));
44906
+ }
44907
+ function invokeCallbackWithError$lambda($callback) {
44908
+ return function (exception, _anonymous_parameter_1__qggqgd) {
44909
+ $callback(exception);
44910
+ return Unit_getInstance();
44911
+ };
44912
+ }
44907
44913
  function VonageErrorType_CS_ERROR_getInstance() {
44908
44914
  VonageErrorType_initEntries();
44909
44915
  return VonageErrorType_CS_ERROR_instance;
@@ -47978,7 +47984,8 @@ function requireClientsdkClientcore () {
47978
47984
  return function (e) {
47979
47985
  var tmp;
47980
47986
  if (!(e == null)) {
47981
- tmp = $callback(new SessionNoActiveSessionError(), null);
47987
+ invokeCallbackWithError(new SessionNoActiveSessionError(), $callback);
47988
+ tmp = Unit_getInstance();
47982
47989
  } else {
47983
47990
  onCreateSession(this$0, $callback);
47984
47991
  this$0.z2v_1.c1a(Action_init_$Create$(new SocketConnect($token, $sessionId)));
@@ -47992,7 +47999,8 @@ function requireClientsdkClientcore () {
47992
47999
  var tmp0_subject = it;
47993
48000
  var tmp;
47994
48001
  if (tmp0_subject instanceof Exception) {
47995
- tmp = $callback(it);
48002
+ invokeCallbackWithError_0(it, $callback);
48003
+ tmp = Unit_getInstance();
47996
48004
  } else {
47997
48005
  this$0.z2v_1.c1a(Action_init_$Create$(new SocketSetSession($sessionId, $token)));
47998
48006
  tmp = $callback(null);
@@ -48120,7 +48128,8 @@ function requireClientsdkClientcore () {
48120
48128
  if (state.g2w_1.r2e_1.equals(SocketConnectionStatus_Connected_getInstance())) {
48121
48129
  this$0.z2v_1.c1a(Action_init_$Create$(SocketDisconnect_getInstance()));
48122
48130
  }
48123
- tmp = $callback(s.p2w_1.q2_1, null);
48131
+ invokeCallbackWithError(s.p2w_1.q2_1, $callback);
48132
+ tmp = Unit_getInstance();
48124
48133
  } else {
48125
48134
  if (s instanceof Resolved) {
48126
48135
  var tmp1_safe_receiver = $cleanup._v;
@@ -48209,7 +48218,7 @@ function requireClientsdkClientcore () {
48209
48218
  var tmp0_elvis_lhs = this.z2v_1.t2o(getKClass(SessionReducer));
48210
48219
  var tmp;
48211
48220
  if (tmp0_elvis_lhs == null) {
48212
- return callback(new SessionFailedInternalError(), null);
48221
+ return invokeCallbackWithError(new SessionFailedInternalError(), callback);
48213
48222
  } else {
48214
48223
  tmp = tmp0_elvis_lhs;
48215
48224
  }
@@ -48227,13 +48236,13 @@ function requireClientsdkClientcore () {
48227
48236
  var tmp0_elvis_lhs = this.z2v_1.t2o(getKClass(SessionReducer));
48228
48237
  var tmp;
48229
48238
  if (tmp0_elvis_lhs == null) {
48230
- return callback(new SessionFailedInternalError());
48239
+ return invokeCallbackWithError_0(new SessionFailedInternalError(), callback);
48231
48240
  } else {
48232
48241
  tmp = tmp0_elvis_lhs;
48233
48242
  }
48234
48243
  var state = tmp;
48235
48244
  if (state.f2w_1.f1().n1z() == null)
48236
- return callback(new SessionNoActiveSessionError());
48245
+ return invokeCallbackWithError_0(new SessionNoActiveSessionError(), callback);
48237
48246
  onDeleteSession(this, callback);
48238
48247
  this.z2v_1.c1a(Action_init_$Create$(DeleteSession_getInstance()));
48239
48248
  this.z2v_1.c1a(Action_init_$Create$(SocketDisconnect_getInstance()));
@@ -48242,13 +48251,13 @@ function requireClientsdkClientcore () {
48242
48251
  var tmp0_elvis_lhs = this.z2v_1.t2o(getKClass(SessionReducer));
48243
48252
  var tmp;
48244
48253
  if (tmp0_elvis_lhs == null) {
48245
- return callback(new SessionFailedInternalError());
48254
+ return invokeCallbackWithError_0(new SessionFailedInternalError(), callback);
48246
48255
  } else {
48247
48256
  tmp = tmp0_elvis_lhs;
48248
48257
  }
48249
48258
  var state = tmp;
48250
48259
  if (state.f2w_1.f1().n1z() == null)
48251
- return callback(new SessionNoActiveSessionError());
48260
+ return invokeCallbackWithError_0(new SessionNoActiveSessionError(), callback);
48252
48261
  var sessionId = ensureNotNull(state.f2w_1.f1().n1z());
48253
48262
  var tmp_0 = new UpdateSessionRequest(sessionId, token);
48254
48263
  this.z2v_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, SessionAPIImpl$refreshSession$lambda(callback, this, sessionId, token))));
@@ -48393,7 +48402,7 @@ function requireClientsdkClientcore () {
48393
48402
  var tmp0_elvis_lhs = getCallStateByLeg($this, callId);
48394
48403
  var tmp;
48395
48404
  if (tmp0_elvis_lhs == null) {
48396
- return toVonageError(new NoCallFound());
48405
+ return new NoCallFound();
48397
48406
  } else {
48398
48407
  tmp = tmp0_elvis_lhs;
48399
48408
  }
@@ -48404,7 +48413,7 @@ function requireClientsdkClientcore () {
48404
48413
  action(callMemberShipState.n2x_1, callMemberShipState.o2x_1);
48405
48414
  tmp_0 = null;
48406
48415
  } else {
48407
- tmp_0 = toVonageError(new InvalidCallAction());
48416
+ tmp_0 = new InvalidCallAction();
48408
48417
  }
48409
48418
  return tmp_0;
48410
48419
  }
@@ -48597,7 +48606,7 @@ function requireClientsdkClientcore () {
48597
48606
  null;
48598
48607
  else
48599
48608
  tmp1_safe_receiver();
48600
- $callback(toVonageError(Exception_init_$Create$('Media Timeout')), null);
48609
+ invokeCallbackWithError(new MediaTimeout(), $callback);
48601
48610
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
48602
48611
  tmp = Unit_getInstance();
48603
48612
  } else {
@@ -48629,7 +48638,8 @@ function requireClientsdkClientcore () {
48629
48638
  var tmp;
48630
48639
  if (tmp0_subject instanceof Exception) {
48631
48640
  this$0.q2x_1.c1a(Action_init_$Create$(new CallKnockingRequestFailure($tmp0_safe_receiver.h2x_1, it)));
48632
- tmp = $callback(toVonageError(it), null);
48641
+ invokeCallbackWithError(it, $callback);
48642
+ tmp = Unit_getInstance();
48633
48643
  } else {
48634
48644
  var tmp_0 = getKClass(CallReducer);
48635
48645
  $cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$serverCall$lambda$lambda$lambda$lambda$lambda($tmp0_safe_receiver, $cancel, $callback, this$0, $legId));
@@ -48681,7 +48691,7 @@ function requireClientsdkClientcore () {
48681
48691
  else
48682
48692
  tmp4_safe_receiver();
48683
48693
  ;
48684
- $callback(toVonageError(Exception_init_$Create$('Media Timeout')), null);
48694
+ invokeCallbackWithError(new MediaTimeout(), $callback);
48685
48695
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
48686
48696
  tmp = Unit_getInstance();
48687
48697
  break;
@@ -48719,37 +48729,46 @@ function requireClientsdkClientcore () {
48719
48729
  cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$serverCall$lambda$lambda(this$0, legId, cancel, $callback));
48720
48730
  tmp = Unit_getInstance();
48721
48731
  } else {
48722
- if (tmp0_subject instanceof Exception) {
48723
- tmp = $callback(toVonageError(it), null);
48724
- } else {
48725
- tmp = $callback(VonageError_init_$Create$(), null);
48726
- }
48732
+ invokeCallbackWithError(it, $callback);
48733
+ tmp = Unit_getInstance();
48727
48734
  }
48728
48735
  return Unit_getInstance();
48729
48736
  };
48730
48737
  }
48731
48738
  function VoiceAPIImpl$reconnectCall$lambda$lambda(this$0, $callId, $once, $callback) {
48732
48739
  return function () {
48733
- var state = ensureNotNull(this$0.q2x_1.t2o(getKClass(CallReducer)));
48734
- var tmp0_safe_receiver = state.u2x_1.u1($callId);
48735
- var legState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j2x_1;
48736
- var call = state.u2x_1.u1($callId);
48737
- var tmp1_safe_receiver = legState;
48738
- var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1();
48740
+ var tmp0_elvis_lhs = this$0.q2x_1.t2o(getKClass(CallReducer));
48739
48741
  var tmp;
48742
+ if (tmp0_elvis_lhs == null) {
48743
+ return Unit_getInstance();
48744
+ } else {
48745
+ tmp = tmp0_elvis_lhs;
48746
+ }
48747
+ var state = tmp;
48748
+ var tmp1_elvis_lhs = state.u2x_1.u1($callId);
48749
+ var tmp_0;
48750
+ if (tmp1_elvis_lhs == null) {
48751
+ return Unit_getInstance();
48752
+ } else {
48753
+ tmp_0 = tmp1_elvis_lhs;
48754
+ }
48755
+ var call = tmp_0;
48756
+ var legState = call.j2x_1;
48757
+ var tmp2_subject = legState.f1();
48758
+ var tmp_1;
48740
48759
  if (tmp2_subject instanceof Started) {
48741
48760
  var tmp3_safe_receiver = $once._v;
48742
48761
  if (tmp3_safe_receiver == null)
48743
48762
  null;
48744
48763
  else
48745
48764
  tmp3_safe_receiver();
48746
- var tmp_0;
48747
- if (ensureNotNull(call).e2x_1) {
48748
- tmp_0 = $callback(null);
48765
+ var tmp_2;
48766
+ if (call.e2x_1) {
48767
+ tmp_2 = $callback(null);
48749
48768
  }
48750
- tmp = tmp_0;
48769
+ tmp_1 = tmp_2;
48751
48770
  } else {
48752
- tmp = Unit_getInstance();
48771
+ tmp_1 = Unit_getInstance();
48753
48772
  }
48754
48773
  return Unit_getInstance();
48755
48774
  };
@@ -48764,7 +48783,8 @@ function requireClientsdkClientcore () {
48764
48783
  var tmp0_subject = it;
48765
48784
  var tmp;
48766
48785
  if (tmp0_subject instanceof Exception) {
48767
- tmp = $callback(toVonageError(it));
48786
+ invokeCallbackWithError_0(it, $callback);
48787
+ tmp = Unit_getInstance();
48768
48788
  } else {
48769
48789
  tmp = $callback(null);
48770
48790
  }
@@ -48784,7 +48804,8 @@ function requireClientsdkClientcore () {
48784
48804
  case -1:
48785
48805
  var tmp$ret$1;
48786
48806
  // Inline function 'kotlin.let' call
48787
- var tmp0_let = $callback(toVonageError(new NoInviteFound()));
48807
+ invokeCallbackWithError_0(new NoInviteFound(), $callback);
48808
+ var tmp0_let = Unit_getInstance();
48788
48809
  // Inline function 'kotlin.contracts.contract' call
48789
48810
  var tmp$ret$0;
48790
48811
  // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.answerCall.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
@@ -48814,7 +48835,7 @@ function requireClientsdkClientcore () {
48814
48835
  var tmp2_also = tmp5_safe_receiver == null ? null : tmp5_safe_receiver();
48815
48836
  // Inline function 'kotlin.contracts.contract' call
48816
48837
  // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.answerCall.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
48817
- $callback(toVonageError(new InboundCallFailed()));
48838
+ invokeCallbackWithError_0(new InboundCallFailed(), $callback);
48818
48839
  tmp$ret$3 = tmp2_also;
48819
48840
 
48820
48841
  tmp = Unit_getInstance();
@@ -48831,34 +48852,41 @@ function requireClientsdkClientcore () {
48831
48852
  return new StoredSubscription(VoiceAPIImpl$answerCall$lambda$lambda$lambda$lambda(this$0, $legIdOrErr, $callback, $cancel));
48832
48853
  };
48833
48854
  }
48834
- function VoiceAPIImpl$answerCall$lambda$lambda($callback, this$0) {
48855
+ function VoiceAPIImpl$answerCall$lambda$lambda(this$0, $callback) {
48835
48856
  return function (legIdOrErr) {
48836
48857
  var tmp0_subject = legIdOrErr;
48837
48858
  var tmp;
48838
- if (tmp0_subject instanceof Exception) {
48839
- tmp = $callback(toVonageError(new InboundCallFailed(legIdOrErr)));
48859
+ if (!(tmp0_subject == null) ? typeof tmp0_subject === 'string' : false) {
48860
+ var cancel = {_v: null};
48861
+ var tmp_0 = getKClass(CallReducer);
48862
+ cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$answerCall$lambda$lambda$lambda(this$0, legIdOrErr, $callback, cancel));
48863
+ tmp = Unit_getInstance();
48840
48864
  } else {
48841
- if (!(tmp0_subject == null) ? typeof tmp0_subject === 'string' : false) {
48842
- var cancel = {_v: null};
48843
- var tmp_0 = getKClass(CallReducer);
48844
- cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$answerCall$lambda$lambda$lambda(this$0, legIdOrErr, $callback, cancel));
48845
- tmp = Unit_getInstance();
48846
- } else {
48847
- tmp = $callback(VonageError_init_$Create$());
48848
- }
48865
+ invokeCallbackWithError_0(new InboundCallFailed(legIdOrErr instanceof Exception ? legIdOrErr : null), $callback);
48866
+ tmp = Unit_getInstance();
48849
48867
  }
48850
48868
  return Unit_getInstance();
48851
48869
  };
48852
48870
  }
48853
- function VoiceAPIImpl$answerCall$lambda($callback, this$0, $callId, $invite) {
48871
+ function VoiceAPIImpl$answerCall$lambda($callback, $invite, this$0, $callId) {
48854
48872
  return function (it) {
48855
48873
  var tmp0_subject = it;
48856
48874
  var tmp;
48857
48875
  if (tmp0_subject instanceof Exception) {
48858
- tmp = $callback(toVonageError(it));
48876
+ invokeCallbackWithError_0(it, $callback);
48877
+ tmp = Unit_getInstance();
48859
48878
  } else {
48860
- var tmp_0 = new SetupInboundCall($callId, $invite.c2y_1, $invite.b2y_1, $invite.z2x_1, ensureNotNull($invite.d2y_1), null);
48861
- this$0.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$answerCall$lambda$lambda($callback, this$0))));
48879
+ var tmp1_elvis_lhs = $invite.d2y_1;
48880
+ if (tmp1_elvis_lhs == null) {
48881
+ var tmp$ret$0;
48882
+ // Inline function 'kotlin.run' call
48883
+ // Inline function 'kotlin.contracts.contract' call
48884
+ invokeCallbackWithError_0(new NoOfferFound(), $callback);
48885
+ return Unit_getInstance();
48886
+ } else
48887
+ tmp1_elvis_lhs;
48888
+ var tmp_0 = new SetupInboundCall($callId, $invite.c2y_1, $invite.b2y_1, $invite.z2x_1, $invite.d2y_1, null);
48889
+ this$0.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$answerCall$lambda$lambda(this$0, $callback))));
48862
48890
  tmp = Unit_getInstance();
48863
48891
  }
48864
48892
  return Unit_getInstance();
@@ -48869,7 +48897,8 @@ function requireClientsdkClientcore () {
48869
48897
  var tmp0_subject = it;
48870
48898
  var tmp;
48871
48899
  if (tmp0_subject instanceof Exception) {
48872
- tmp = $callback(toVonageError(it));
48900
+ invokeCallbackWithError_0(it, $callback);
48901
+ tmp = Unit_getInstance();
48873
48902
  } else {
48874
48903
  tmp = $callback(null);
48875
48904
  }
@@ -48881,7 +48910,8 @@ function requireClientsdkClientcore () {
48881
48910
  var tmp0_subject = it;
48882
48911
  var tmp;
48883
48912
  if (tmp0_subject instanceof Exception) {
48884
- tmp = $callback(toVonageError(it));
48913
+ invokeCallbackWithError_0(it, $callback);
48914
+ tmp = Unit_getInstance();
48885
48915
  } else {
48886
48916
  tmp = $callback(null);
48887
48917
  }
@@ -48893,7 +48923,8 @@ function requireClientsdkClientcore () {
48893
48923
  var tmp0_subject = it;
48894
48924
  var tmp;
48895
48925
  if (tmp0_subject instanceof Exception) {
48896
- tmp = $callback(toVonageError(it));
48926
+ invokeCallbackWithError_0(it, $callback);
48927
+ tmp = Unit_getInstance();
48897
48928
  } else {
48898
48929
  tmp = $callback(null);
48899
48930
  }
@@ -48913,7 +48944,8 @@ function requireClientsdkClientcore () {
48913
48944
  var tmp0_subject = it;
48914
48945
  var tmp;
48915
48946
  if (tmp0_subject instanceof Exception) {
48916
- tmp = $callback(toVonageError(it));
48947
+ invokeCallbackWithError_0(it, $callback);
48948
+ tmp = Unit_getInstance();
48917
48949
  } else {
48918
48950
  tmp = $callback(null);
48919
48951
  }
@@ -48933,7 +48965,8 @@ function requireClientsdkClientcore () {
48933
48965
  var tmp0_subject = it;
48934
48966
  var tmp;
48935
48967
  if (tmp0_subject instanceof Exception) {
48936
- tmp = $callback(toVonageError(it));
48968
+ invokeCallbackWithError_0(it, $callback);
48969
+ tmp = Unit_getInstance();
48937
48970
  } else {
48938
48971
  tmp = $callback(null);
48939
48972
  }
@@ -48953,7 +48986,8 @@ function requireClientsdkClientcore () {
48953
48986
  var tmp0_subject = it;
48954
48987
  var tmp;
48955
48988
  if (tmp0_subject instanceof Exception) {
48956
- tmp = $callback(toVonageError(it));
48989
+ invokeCallbackWithError_0(it, $callback);
48990
+ tmp = Unit_getInstance();
48957
48991
  } else {
48958
48992
  tmp = $callback(null);
48959
48993
  }
@@ -48973,7 +49007,8 @@ function requireClientsdkClientcore () {
48973
49007
  var tmp0_subject = it;
48974
49008
  var tmp;
48975
49009
  if (tmp0_subject instanceof Exception) {
48976
- tmp = $callback(toVonageError(it));
49010
+ invokeCallbackWithError_0(it, $callback);
49011
+ tmp = Unit_getInstance();
48977
49012
  } else {
48978
49013
  tmp = $callback(null);
48979
49014
  }
@@ -48993,7 +49028,8 @@ function requireClientsdkClientcore () {
48993
49028
  var tmp0_subject = it;
48994
49029
  var tmp;
48995
49030
  if (tmp0_subject instanceof Exception) {
48996
- tmp = $callback(toVonageError(it));
49031
+ invokeCallbackWithError_0(it, $callback);
49032
+ tmp = Unit_getInstance();
48997
49033
  } else {
48998
49034
  tmp = $callback(null);
48999
49035
  }
@@ -49827,11 +49863,12 @@ function requireClientsdkClientcore () {
49827
49863
  this$0.q2x_1.c1a(Action_init_$Create$(new CallReconnect($legId, memberResponse.k1j_1, $legResponse.c1d_1)));
49828
49864
  tmp_0 = Unit_getInstance();
49829
49865
  } else {
49830
- tmp_0 = $callback(toVonageError(new MemberNotInConversation()));
49866
+ invokeCallbackWithError_0(new MemberNotInConversation(), $callback);
49867
+ tmp_0 = Unit_getInstance();
49831
49868
  }
49832
49869
  tmp = tmp_0;
49833
49870
  } else {
49834
- $callback(toVonageError(new NoConversationFound()));
49871
+ invokeCallbackWithError_0(new NoConversationFound(), $callback);
49835
49872
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
49836
49873
  tmp = Unit_getInstance();
49837
49874
  }
@@ -49847,7 +49884,7 @@ function requireClientsdkClientcore () {
49847
49884
  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))));
49848
49885
  tmp = Unit_getInstance();
49849
49886
  } else {
49850
- $callback(toVonageError(new NoLegFound()));
49887
+ invokeCallbackWithError_0(new NoLegFound(), $callback);
49851
49888
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
49852
49889
  tmp = Unit_getInstance();
49853
49890
  }
@@ -49875,71 +49912,44 @@ function requireClientsdkClientcore () {
49875
49912
  this.t2x_1 = listener;
49876
49913
  };
49877
49914
  protoOf(VoiceAPIImpl).z17 = function (legId, callback) {
49878
- var sessionState = ensureNotNull(this.q2x_1.t2o(getKClass(SessionReducer)));
49879
- var tmp;
49880
- if (sessionState.f2w_1.f1() instanceof Active) {
49881
- tmp = '';
49882
- } else {
49883
- // Inline function 'kotlin.let' call
49884
- callback(toVonageError(new SessionNoActiveSessionError()), null);
49885
- // Inline function 'kotlin.contracts.contract' call
49886
- // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.getLeg.<anonymous>' call
49887
- tmp = null;
49888
- }
49889
- if (tmp == null)
49915
+ if (getSessionUserOrError(this.q2x_1, callback) == null)
49890
49916
  return Unit_getInstance();
49891
- var tmp_0 = new GetLegRequest(legId);
49892
- this.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$getLeg$lambda(callback))));
49917
+ var tmp = new GetLegRequest(legId);
49918
+ this.q2x_1.c1a(new Action_0(tmp, new ActionMeta(VOID, VOID, VoiceAPIImpl$getLeg$lambda(callback))));
49893
49919
  };
49894
49920
  protoOf(VoiceAPIImpl).x17 = function (context, callback) {
49895
- var sessionState = ensureNotNull(this.q2x_1.t2o(getKClass(SessionReducer)));
49896
- var s = sessionState.f2w_1.f1();
49921
+ var tmp0_elvis_lhs = getSessionUserOrError(this.q2x_1, callback);
49897
49922
  var tmp;
49898
- if (s instanceof Active) {
49899
- tmp = s.v2d_1.p2k_1;
49900
- } else {
49901
- // Inline function 'kotlin.let' call
49902
- callback(toVonageError(new SessionNoActiveSessionError()), null);
49903
- // Inline function 'kotlin.contracts.contract' call
49904
- // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.serverCall.<anonymous>' call
49905
- tmp = null;
49906
- }
49907
- var tmp0_elvis_lhs = tmp;
49908
- var tmp_0;
49909
49923
  if (tmp0_elvis_lhs == null) {
49910
49924
  return Unit_getInstance();
49911
49925
  } else {
49912
- tmp_0 = tmp0_elvis_lhs;
49926
+ tmp = tmp0_elvis_lhs;
49913
49927
  }
49914
- var user = tmp_0;
49915
- var tmp_1 = new SetupOutboundCall(user, context);
49916
- this.q2x_1.c1a(new Action_0(tmp_1, new ActionMeta(VOID, VOID, VoiceAPIImpl$serverCall$lambda(this, callback))));
49928
+ var user = tmp;
49929
+ var tmp_0 = new SetupOutboundCall(user.p2k_1, context);
49930
+ this.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$serverCall$lambda(this, callback))));
49917
49931
  };
49918
49932
  protoOf(VoiceAPIImpl).y17 = function (callId, callback) {
49919
49933
  var once = {_v: null};
49920
49934
  var tmp = getKClass(CallReducer);
49921
49935
  once._v = this.q2x_1.a2p(tmp, VoiceAPIImpl$reconnectCall$lambda(this, callId, once, callback));
49922
- var sessionState = this.q2x_1.t2o(getKClass(SessionReducer));
49923
- var tmp1_safe_receiver = sessionState == null ? null : sessionState.f2w_1;
49924
- if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1())instanceof Active) {
49925
- var callState = ensureNotNull(this.q2x_1.t2o(getKClass(CallReducer)));
49926
- var call = callState.u2x_1.u1(callId);
49927
- var tmp4_safe_receiver = call == null ? null : call.i2x_1;
49928
- var tmp_0 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.f1();
49929
- var memberState = tmp_0 instanceof Joined ? tmp_0 : null;
49930
- if (call == null ? true : memberState == null) {
49931
- getCallDetailsAndDispatchCallReconnect(this, callId, callback);
49932
- } else {
49933
- this.q2x_1.c1a(Action_init_$Create$(new CallReconnect(callId, memberState.o2x_1, memberState.n2x_1)));
49934
- }
49936
+ if (getSessionUserOrError_0(this.q2x_1, callback) == null)
49937
+ return Unit_getInstance();
49938
+ var callState = ensureNotNull(this.q2x_1.t2o(getKClass(CallReducer)));
49939
+ var call = callState.u2x_1.u1(callId);
49940
+ var tmp2_safe_receiver = call == null ? null : call.i2x_1;
49941
+ var tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.f1();
49942
+ var memberState = tmp_0 instanceof Joined ? tmp_0 : null;
49943
+ if (call == null ? true : memberState == null) {
49944
+ getCallDetailsAndDispatchCallReconnect(this, callId, callback);
49935
49945
  } else {
49936
- callback(toVonageError(new SessionNoActiveSessionError()));
49946
+ this.q2x_1.c1a(Action_init_$Create$(new CallReconnect(callId, memberState.o2x_1, memberState.n2x_1)));
49937
49947
  }
49938
49948
  };
49939
49949
  protoOf(VoiceAPIImpl).a18 = function (callId, callback) {
49940
49950
  var invite = ensureNotNull(this.q2x_1.t2o(getKClass(InviteReducer))).s2y_1.u1(callId);
49941
49951
  if (invite == null) {
49942
- callback(toVonageError(new NoInviteFound()));
49952
+ invokeCallbackWithError_0(new NoInviteFound(), callback);
49943
49953
  return Unit_getInstance();
49944
49954
  }
49945
49955
  var tmp;
@@ -49958,7 +49968,7 @@ function requireClientsdkClientcore () {
49958
49968
  tmp = tmp_3 instanceof Left;
49959
49969
  }
49960
49970
  if (tmp) {
49961
- callback(toVonageError(new InvalidCallAction()));
49971
+ invokeCallbackWithError_0(new InvalidCallAction(), callback);
49962
49972
  return Unit_getInstance();
49963
49973
  }
49964
49974
  StaticConfig_getInstance();
@@ -49969,7 +49979,7 @@ function requireClientsdkClientcore () {
49969
49979
  protoOf(VoiceAPIImpl).b18 = function (callId, callback) {
49970
49980
  var invite = ensureNotNull(this.q2x_1.t2o(getKClass(InviteReducer))).s2y_1.u1(callId);
49971
49981
  if (invite == null) {
49972
- callback(toVonageError(new NoInviteFound()));
49982
+ invokeCallbackWithError_0(new NoInviteFound(), callback);
49973
49983
  return Unit_getInstance();
49974
49984
  }
49975
49985
  var tmp;
@@ -49988,16 +49998,16 @@ function requireClientsdkClientcore () {
49988
49998
  tmp = tmp_3 instanceof Left;
49989
49999
  }
49990
50000
  if (tmp) {
49991
- callback(toVonageError(new InvalidCallAction()));
50001
+ invokeCallbackWithError_0(new InvalidCallAction(), callback);
49992
50002
  return Unit_getInstance();
49993
50003
  }
49994
50004
  var tmp_4 = new MemberJoinRequest(invite.c2y_1, invite.b2y_1);
49995
- this.q2x_1.c1a(new Action_0(tmp_4, new ActionMeta(VOID, callId, VoiceAPIImpl$answerCall$lambda(callback, this, callId, invite))));
50005
+ this.q2x_1.c1a(new Action_0(tmp_4, new ActionMeta(VOID, callId, VoiceAPIImpl$answerCall$lambda(callback, invite, this, callId))));
49996
50006
  };
49997
50007
  protoOf(VoiceAPIImpl).c18 = function (callId, reasonText, reasonCode, callback) {
49998
50008
  var call = ensureNotNull(this.q2x_1.t2o(getKClass(CallReducer))).u2x_1.u1(callId);
49999
50009
  if (call == null) {
50000
- callback(toVonageError(new NoCallFound()));
50010
+ invokeCallbackWithError_0(new NoCallFound(), callback);
50001
50011
  return Unit_getInstance();
50002
50012
  }
50003
50013
  this.q2x_1.c1a(Action_init_$Create$(new MediaDisable(callId)));
@@ -50010,7 +50020,7 @@ function requireClientsdkClientcore () {
50010
50020
  var tmp_0 = new DeleteKnockerRequest(callMemberShipState.o2z_1);
50011
50021
  this.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, callId, VoiceAPIImpl$hangupCall$lambda_0(callback))));
50012
50022
  } else {
50013
- callback(toVonageError(new InvalidCallAction()));
50023
+ invokeCallbackWithError_0(new InvalidCallAction(), callback);
50014
50024
  }
50015
50025
  }
50016
50026
  };
@@ -50021,7 +50031,7 @@ function requireClientsdkClientcore () {
50021
50031
  else {
50022
50032
  // Inline function 'kotlin.let' call
50023
50033
  // Inline function 'kotlin.contracts.contract' call
50024
- callback(tmp0_safe_receiver);
50034
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
50025
50035
  }
50026
50036
  };
50027
50037
  protoOf(VoiceAPIImpl).e18 = function (callId, callback) {
@@ -50031,7 +50041,7 @@ function requireClientsdkClientcore () {
50031
50041
  else {
50032
50042
  // Inline function 'kotlin.let' call
50033
50043
  // Inline function 'kotlin.contracts.contract' call
50034
- callback(tmp0_safe_receiver);
50044
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
50035
50045
  }
50036
50046
  };
50037
50047
  protoOf(VoiceAPIImpl).f18 = function (callId, callback) {
@@ -50041,7 +50051,7 @@ function requireClientsdkClientcore () {
50041
50051
  else {
50042
50052
  // Inline function 'kotlin.let' call
50043
50053
  // Inline function 'kotlin.contracts.contract' call
50044
- callback(tmp0_safe_receiver);
50054
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
50045
50055
  }
50046
50056
  };
50047
50057
  protoOf(VoiceAPIImpl).g18 = function (callId, callback) {
@@ -50051,7 +50061,7 @@ function requireClientsdkClientcore () {
50051
50061
  else {
50052
50062
  // Inline function 'kotlin.let' call
50053
50063
  // Inline function 'kotlin.contracts.contract' call
50054
- callback(tmp0_safe_receiver);
50064
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
50055
50065
  }
50056
50066
  };
50057
50067
  protoOf(VoiceAPIImpl).h18 = function (callId, digits, callback) {
@@ -50061,7 +50071,7 @@ function requireClientsdkClientcore () {
50061
50071
  else {
50062
50072
  // Inline function 'kotlin.let' call
50063
50073
  // Inline function 'kotlin.contracts.contract' call
50064
- callback(tmp0_safe_receiver);
50074
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
50065
50075
  }
50066
50076
  };
50067
50077
  protoOf(VoiceAPIImpl).i18 = function (callId, text, level, loop, queue, voiceName, ssml, callback) {
@@ -50071,7 +50081,7 @@ function requireClientsdkClientcore () {
50071
50081
  else {
50072
50082
  // Inline function 'kotlin.let' call
50073
50083
  // Inline function 'kotlin.contracts.contract' call
50074
- callback(tmp0_safe_receiver);
50084
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
50075
50085
  }
50076
50086
  };
50077
50087
  function SetupOutboundCall(user, context) {
@@ -59546,7 +59556,7 @@ function requireClientsdkClientcore () {
59546
59556
  tmp = s.v2d_1;
59547
59557
  } else {
59548
59558
  // Inline function 'kotlin.let' call
59549
- callback(toVonageError(new SessionNoActiveSessionError()), null);
59559
+ invokeCallbackWithError(new SessionNoActiveSessionError(), callback);
59550
59560
  // Inline function 'kotlin.contracts.contract' call
59551
59561
  // Inline function 'com.vonage.clientcore.utils.getSessionUserOrError.<anonymous>' call
59552
59562
  tmp = null;
@@ -60306,24 +60316,24 @@ function requireClientsdkClientcore () {
60306
60316
  setMetadataFor(EventDeleteConversationEventJS, 'EventDeleteConversationEventJS', classMeta, VOID, [PersistentConversationEventJS, JSONBodyEventJS]);
60307
60317
  setMetadataFor(MessageEventJS, 'MessageEventJS', interfaceMeta);
60308
60318
  setMetadataFor(MessageEventBodyJS, 'MessageEventBodyJS', interfaceMeta);
60309
- setMetadataFor(Body, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60319
+ setMetadataFor(MessageTextEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60310
60320
  setMetadataFor(MessageTextEventJS, 'MessageTextEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60311
- setMetadataFor(Body_0, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60321
+ setMetadataFor(MessageCustomEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60312
60322
  setMetadataFor(MessageCustomEventJS, 'MessageCustomEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60313
- setMetadataFor(Body_1, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60323
+ setMetadataFor(MessageAudioEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60314
60324
  setMetadataFor(MessageAudioEventJS, 'MessageAudioEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60315
- setMetadataFor(Body_2, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60325
+ setMetadataFor(MessageVideoEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60316
60326
  setMetadataFor(MessageVideoEventJS, 'MessageVideoEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60317
- setMetadataFor(Body_3, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60327
+ setMetadataFor(MessageImageEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60318
60328
  setMetadataFor(MessageImageEventJS, 'MessageImageEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60319
- setMetadataFor(Body_4, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60329
+ setMetadataFor(MessageFileEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60320
60330
  setMetadataFor(MessageFileEventJS, 'MessageFileEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60321
- setMetadataFor(Body_5, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60331
+ setMetadataFor(MessageVCardEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60322
60332
  setMetadataFor(MessageVCardEventJS, 'MessageVCardEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60323
- setMetadataFor(Body_6, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60333
+ setMetadataFor(MessageLocationEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60324
60334
  setMetadataFor(Location_0, 'Location', classMeta);
60325
60335
  setMetadataFor(MessageLocationEventJS, 'MessageLocationEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
60326
- setMetadataFor(Body_7, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60336
+ setMetadataFor(MessageTemplateEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
60327
60337
  setMetadataFor(TemplateObject_0, 'TemplateObject', classMeta);
60328
60338
  setMetadataFor(WhatsappObject_0, 'WhatsappObject', classMeta);
60329
60339
  setMetadataFor(MessageTemplateEventJS, 'MessageTemplateEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
@@ -60637,268 +60647,163 @@ function requireClientsdkClientcore () {
60637
60647
  return this.user;
60638
60648
  };
60639
60649
  function MemberInvitedEventJS(event) {
60640
- this.c3f_1 = 'member:invited';
60641
- this.d3f_1 = event.w2q_1;
60642
- this.e3f_1 = event.x2q_1;
60643
- this.f3f_1 = event.y2q_1;
60644
- this.g3f_1 = map(event.z2q_1);
60645
- this.h3f_1 = new MemberEventBodyJS(event.a2r_1);
60650
+ this.kind = 'member:invited';
60651
+ this.id = event.w2q_1;
60652
+ this.timestamp = event.x2q_1;
60653
+ this.conversationId = event.y2q_1;
60654
+ this.from = map(event.z2q_1);
60655
+ this.body = new MemberEventBodyJS(event.a2r_1);
60646
60656
  }
60647
60657
  protoOf(MemberInvitedEventJS).lf = function () {
60648
- return this.c3f_1;
60658
+ return this.kind;
60649
60659
  };
60650
60660
  protoOf(MemberInvitedEventJS).n1z = function () {
60651
- return this.d3f_1;
60661
+ return this.id;
60652
60662
  };
60653
60663
  protoOf(MemberInvitedEventJS).g2b = function () {
60654
- return this.e3f_1;
60664
+ return this.timestamp;
60655
60665
  };
60656
60666
  protoOf(MemberInvitedEventJS).z3e = function () {
60657
- return this.f3f_1;
60667
+ return this.conversationId;
60658
60668
  };
60659
60669
  protoOf(MemberInvitedEventJS).a3f = function () {
60660
- return this.g3f_1;
60670
+ return this.from;
60661
60671
  };
60662
60672
  protoOf(MemberInvitedEventJS).b3f = function () {
60663
- return this.h3f_1;
60673
+ return this.body;
60664
60674
  };
60665
- defineProp(protoOf(MemberInvitedEventJS), 'kind', function () {
60666
- return this.lf();
60667
- }, VOID);
60668
- defineProp(protoOf(MemberInvitedEventJS), 'id', function () {
60669
- return this.n1z();
60670
- }, VOID);
60671
- defineProp(protoOf(MemberInvitedEventJS), 'timestamp', function () {
60672
- return this.g2b();
60673
- }, VOID);
60674
- defineProp(protoOf(MemberInvitedEventJS), 'conversationId', function () {
60675
- return this.z3e();
60676
- }, VOID);
60677
- defineProp(protoOf(MemberInvitedEventJS), 'from', function () {
60678
- return this.a3f();
60679
- }, VOID);
60680
- defineProp(protoOf(MemberInvitedEventJS), 'body', function () {
60681
- return this.b3f();
60682
- }, VOID);
60683
60675
  function MemberJoinedEventJS(event) {
60684
- this.i3f_1 = 'member:joined';
60685
- this.j3f_1 = event.b2r_1;
60686
- this.k3f_1 = event.c2r_1;
60687
- this.l3f_1 = event.d2r_1;
60688
- this.m3f_1 = map(event.e2r_1);
60689
- this.n3f_1 = new MemberEventBodyJS(event.f2r_1);
60676
+ this.kind = 'member:joined';
60677
+ this.id = event.b2r_1;
60678
+ this.timestamp = event.c2r_1;
60679
+ this.conversationId = event.d2r_1;
60680
+ this.from = map(event.e2r_1);
60681
+ this.body = new MemberEventBodyJS(event.f2r_1);
60690
60682
  }
60691
60683
  protoOf(MemberJoinedEventJS).lf = function () {
60692
- return this.i3f_1;
60684
+ return this.kind;
60693
60685
  };
60694
60686
  protoOf(MemberJoinedEventJS).n1z = function () {
60695
- return this.j3f_1;
60687
+ return this.id;
60696
60688
  };
60697
60689
  protoOf(MemberJoinedEventJS).g2b = function () {
60698
- return this.k3f_1;
60690
+ return this.timestamp;
60699
60691
  };
60700
60692
  protoOf(MemberJoinedEventJS).z3e = function () {
60701
- return this.l3f_1;
60693
+ return this.conversationId;
60702
60694
  };
60703
60695
  protoOf(MemberJoinedEventJS).a3f = function () {
60704
- return this.m3f_1;
60696
+ return this.from;
60705
60697
  };
60706
60698
  protoOf(MemberJoinedEventJS).b3f = function () {
60707
- return this.n3f_1;
60699
+ return this.body;
60708
60700
  };
60709
- defineProp(protoOf(MemberJoinedEventJS), 'kind', function () {
60710
- return this.lf();
60711
- }, VOID);
60712
- defineProp(protoOf(MemberJoinedEventJS), 'id', function () {
60713
- return this.n1z();
60714
- }, VOID);
60715
- defineProp(protoOf(MemberJoinedEventJS), 'timestamp', function () {
60716
- return this.g2b();
60717
- }, VOID);
60718
- defineProp(protoOf(MemberJoinedEventJS), 'conversationId', function () {
60719
- return this.z3e();
60720
- }, VOID);
60721
- defineProp(protoOf(MemberJoinedEventJS), 'from', function () {
60722
- return this.a3f();
60723
- }, VOID);
60724
- defineProp(protoOf(MemberJoinedEventJS), 'body', function () {
60725
- return this.b3f();
60726
- }, VOID);
60727
60701
  function MemberLeftEventJS(event) {
60728
- this.o3f_1 = 'member:left';
60729
- this.p3f_1 = event.g2r_1;
60730
- this.q3f_1 = event.h2r_1;
60731
- this.r3f_1 = event.i2r_1;
60732
- this.s3f_1 = map(event.j2r_1);
60733
- this.t3f_1 = new MemberEventBodyJS(event.k2r_1);
60702
+ this.kind = 'member:left';
60703
+ this.id = event.g2r_1;
60704
+ this.timestamp = event.h2r_1;
60705
+ this.conversationId = event.i2r_1;
60706
+ this.from = map(event.j2r_1);
60707
+ this.body = new MemberEventBodyJS(event.k2r_1);
60734
60708
  }
60735
60709
  protoOf(MemberLeftEventJS).lf = function () {
60736
- return this.o3f_1;
60710
+ return this.kind;
60737
60711
  };
60738
60712
  protoOf(MemberLeftEventJS).n1z = function () {
60739
- return this.p3f_1;
60713
+ return this.id;
60740
60714
  };
60741
60715
  protoOf(MemberLeftEventJS).g2b = function () {
60742
- return this.q3f_1;
60716
+ return this.timestamp;
60743
60717
  };
60744
60718
  protoOf(MemberLeftEventJS).z3e = function () {
60745
- return this.r3f_1;
60719
+ return this.conversationId;
60746
60720
  };
60747
60721
  protoOf(MemberLeftEventJS).a3f = function () {
60748
- return this.s3f_1;
60722
+ return this.from;
60749
60723
  };
60750
60724
  protoOf(MemberLeftEventJS).b3f = function () {
60751
- return this.t3f_1;
60725
+ return this.body;
60752
60726
  };
60753
- defineProp(protoOf(MemberLeftEventJS), 'kind', function () {
60754
- return this.lf();
60755
- }, VOID);
60756
- defineProp(protoOf(MemberLeftEventJS), 'id', function () {
60757
- return this.n1z();
60758
- }, VOID);
60759
- defineProp(protoOf(MemberLeftEventJS), 'timestamp', function () {
60760
- return this.g2b();
60761
- }, VOID);
60762
- defineProp(protoOf(MemberLeftEventJS), 'conversationId', function () {
60763
- return this.z3e();
60764
- }, VOID);
60765
- defineProp(protoOf(MemberLeftEventJS), 'from', function () {
60766
- return this.a3f();
60767
- }, VOID);
60768
- defineProp(protoOf(MemberLeftEventJS), 'body', function () {
60769
- return this.b3f();
60770
- }, VOID);
60771
60727
  function JSONBodyEventJS() {
60772
60728
  }
60773
60729
  function CustomConversationEventJS(event) {
60774
- this.u3f_1 = 'custom';
60775
- this.v3f_1 = event.l2r_1;
60776
- this.w3f_1 = event.m2r_1;
60777
- this.x3f_1 = event.n2r_1;
60778
- this.y3f_1 = map(event.o2r_1);
60730
+ this.kind = 'custom';
60731
+ this.id = event.l2r_1;
60732
+ this.timestamp = event.m2r_1;
60733
+ this.conversationId = event.n2r_1;
60734
+ this.from = map(event.o2r_1);
60779
60735
  this.eventType = event.q2r_1;
60780
- this.z3f_1 = event.p2r_1;
60736
+ this.body = event.p2r_1;
60781
60737
  }
60782
60738
  protoOf(CustomConversationEventJS).lf = function () {
60783
- return this.u3f_1;
60739
+ return this.kind;
60784
60740
  };
60785
60741
  protoOf(CustomConversationEventJS).n1z = function () {
60786
- return this.v3f_1;
60742
+ return this.id;
60787
60743
  };
60788
60744
  protoOf(CustomConversationEventJS).g2b = function () {
60789
- return this.w3f_1;
60745
+ return this.timestamp;
60790
60746
  };
60791
60747
  protoOf(CustomConversationEventJS).z3e = function () {
60792
- return this.x3f_1;
60748
+ return this.conversationId;
60793
60749
  };
60794
60750
  protoOf(CustomConversationEventJS).a3f = function () {
60795
- return this.y3f_1;
60751
+ return this.from;
60796
60752
  };
60797
- protoOf(CustomConversationEventJS).a3g = function () {
60753
+ protoOf(CustomConversationEventJS).c3f = function () {
60798
60754
  return this.eventType;
60799
60755
  };
60800
60756
  protoOf(CustomConversationEventJS).b3f = function () {
60801
- return this.z3f_1;
60757
+ return this.body;
60802
60758
  };
60803
- defineProp(protoOf(CustomConversationEventJS), 'kind', function () {
60804
- return this.lf();
60805
- }, VOID);
60806
- defineProp(protoOf(CustomConversationEventJS), 'id', function () {
60807
- return this.n1z();
60808
- }, VOID);
60809
- defineProp(protoOf(CustomConversationEventJS), 'timestamp', function () {
60810
- return this.g2b();
60811
- }, VOID);
60812
- defineProp(protoOf(CustomConversationEventJS), 'conversationId', function () {
60813
- return this.z3e();
60814
- }, VOID);
60815
- defineProp(protoOf(CustomConversationEventJS), 'from', function () {
60816
- return this.a3f();
60817
- }, VOID);
60818
- defineProp(protoOf(CustomConversationEventJS), 'body', function () {
60819
- return this.b3f();
60820
- }, VOID);
60821
60759
  function EphemeralConversationEventJS(event) {
60822
- this.b3g_1 = 'ephemeral';
60823
- this.c3g_1 = event.r2r_1;
60824
- this.d3g_1 = event.s2r_1;
60825
- this.e3g_1 = map(event.t2r_1);
60826
- this.f3g_1 = event.u2r_1;
60760
+ this.kind = 'ephemeral';
60761
+ this.timestamp = event.r2r_1;
60762
+ this.conversationId = event.s2r_1;
60763
+ this.from = map(event.t2r_1);
60764
+ this.body = event.u2r_1;
60827
60765
  }
60828
60766
  protoOf(EphemeralConversationEventJS).lf = function () {
60829
- return this.b3g_1;
60767
+ return this.kind;
60830
60768
  };
60831
60769
  protoOf(EphemeralConversationEventJS).g2b = function () {
60832
- return this.c3g_1;
60770
+ return this.timestamp;
60833
60771
  };
60834
60772
  protoOf(EphemeralConversationEventJS).z3e = function () {
60835
- return this.d3g_1;
60773
+ return this.conversationId;
60836
60774
  };
60837
60775
  protoOf(EphemeralConversationEventJS).a3f = function () {
60838
- return this.e3g_1;
60776
+ return this.from;
60839
60777
  };
60840
60778
  protoOf(EphemeralConversationEventJS).b3f = function () {
60841
- return this.f3g_1;
60779
+ return this.body;
60842
60780
  };
60843
- defineProp(protoOf(EphemeralConversationEventJS), 'kind', function () {
60844
- return this.lf();
60845
- }, VOID);
60846
- defineProp(protoOf(EphemeralConversationEventJS), 'timestamp', function () {
60847
- return this.g2b();
60848
- }, VOID);
60849
- defineProp(protoOf(EphemeralConversationEventJS), 'conversationId', function () {
60850
- return this.z3e();
60851
- }, VOID);
60852
- defineProp(protoOf(EphemeralConversationEventJS), 'from', function () {
60853
- return this.a3f();
60854
- }, VOID);
60855
- defineProp(protoOf(EphemeralConversationEventJS), 'body', function () {
60856
- return this.b3f();
60857
- }, VOID);
60858
60781
  function EventDeleteConversationEventJS(event) {
60859
- this.g3g_1 = 'event:delete';
60860
- this.h3g_1 = event.v2r_1;
60861
- this.i3g_1 = event.w2r_1;
60862
- this.j3g_1 = event.x2r_1;
60863
- this.k3g_1 = map(event.y2r_1);
60864
- this.l3g_1 = event.z2r_1;
60782
+ this.kind = 'event:delete';
60783
+ this.id = event.v2r_1;
60784
+ this.timestamp = event.w2r_1;
60785
+ this.conversationId = event.x2r_1;
60786
+ this.from = map(event.y2r_1);
60787
+ this.body = event.z2r_1;
60865
60788
  }
60866
60789
  protoOf(EventDeleteConversationEventJS).lf = function () {
60867
- return this.g3g_1;
60790
+ return this.kind;
60868
60791
  };
60869
60792
  protoOf(EventDeleteConversationEventJS).n1z = function () {
60870
- return this.h3g_1;
60793
+ return this.id;
60871
60794
  };
60872
60795
  protoOf(EventDeleteConversationEventJS).g2b = function () {
60873
- return this.i3g_1;
60796
+ return this.timestamp;
60874
60797
  };
60875
60798
  protoOf(EventDeleteConversationEventJS).z3e = function () {
60876
- return this.j3g_1;
60799
+ return this.conversationId;
60877
60800
  };
60878
60801
  protoOf(EventDeleteConversationEventJS).a3f = function () {
60879
- return this.k3g_1;
60802
+ return this.from;
60880
60803
  };
60881
60804
  protoOf(EventDeleteConversationEventJS).b3f = function () {
60882
- return this.l3g_1;
60805
+ return this.body;
60883
60806
  };
60884
- defineProp(protoOf(EventDeleteConversationEventJS), 'kind', function () {
60885
- return this.lf();
60886
- }, VOID);
60887
- defineProp(protoOf(EventDeleteConversationEventJS), 'id', function () {
60888
- return this.n1z();
60889
- }, VOID);
60890
- defineProp(protoOf(EventDeleteConversationEventJS), 'timestamp', function () {
60891
- return this.g2b();
60892
- }, VOID);
60893
- defineProp(protoOf(EventDeleteConversationEventJS), 'conversationId', function () {
60894
- return this.z3e();
60895
- }, VOID);
60896
- defineProp(protoOf(EventDeleteConversationEventJS), 'from', function () {
60897
- return this.a3f();
60898
- }, VOID);
60899
- defineProp(protoOf(EventDeleteConversationEventJS), 'body', function () {
60900
- return this.b3f();
60901
- }, VOID);
60902
60807
  function map(_this__u8e3s4) {
60903
60808
  var tmp;
60904
60809
  if (_this__u8e3s4 instanceof EmbeddedInfo) {
@@ -60990,527 +60895,356 @@ function requireClientsdkClientcore () {
60990
60895
  }
60991
60896
  function MessageEventBodyJS() {
60992
60897
  }
60993
- function Body(body) {
60898
+ function MessageTextEventBody(body) {
60994
60899
  this.text = body.w2s_1;
60995
- this.n3g_1 = body.x2s_1;
60900
+ this.deleted = body.x2s_1;
60996
60901
  }
60997
- protoOf(Body).o3g = function () {
60902
+ protoOf(MessageTextEventBody).d3f = function () {
60998
60903
  return this.text;
60999
60904
  };
61000
- protoOf(Body).m3g = function () {
61001
- return this.n3g_1;
60905
+ protoOf(MessageTextEventBody).e3f = function () {
60906
+ return this.deleted;
61002
60907
  };
61003
- defineProp(protoOf(Body), 'deleted', function () {
61004
- return this.m3g();
61005
- }, VOID);
61006
60908
  function MessageTextEventJS(event) {
61007
- this.p3g_1 = 'message:text';
61008
- this.q3g_1 = event.a2t_1;
61009
- this.r3g_1 = event.y2s_1;
61010
- this.s3g_1 = event.z2s_1;
61011
- this.t3g_1 = map(event.b2t_1);
61012
- this.u3g_1 = new Body(event.c2t_1);
60909
+ this.kind = 'message:text';
60910
+ this.id = event.a2t_1;
60911
+ this.timestamp = event.y2s_1;
60912
+ this.conversationId = event.z2s_1;
60913
+ this.from = map(event.b2t_1);
60914
+ this.body = new MessageTextEventBody(event.c2t_1);
61013
60915
  }
61014
60916
  protoOf(MessageTextEventJS).lf = function () {
61015
- return this.p3g_1;
60917
+ return this.kind;
61016
60918
  };
61017
60919
  protoOf(MessageTextEventJS).n1z = function () {
61018
- return this.q3g_1;
60920
+ return this.id;
61019
60921
  };
61020
60922
  protoOf(MessageTextEventJS).g2b = function () {
61021
- return this.r3g_1;
60923
+ return this.timestamp;
61022
60924
  };
61023
60925
  protoOf(MessageTextEventJS).z3e = function () {
61024
- return this.s3g_1;
60926
+ return this.conversationId;
61025
60927
  };
61026
60928
  protoOf(MessageTextEventJS).a3f = function () {
61027
- return this.t3g_1;
60929
+ return this.from;
61028
60930
  };
61029
60931
  protoOf(MessageTextEventJS).b3f = function () {
61030
- return this.u3g_1;
60932
+ return this.body;
61031
60933
  };
61032
- defineProp(protoOf(MessageTextEventJS), 'kind', function () {
61033
- return this.lf();
61034
- }, VOID);
61035
- defineProp(protoOf(MessageTextEventJS), 'id', function () {
61036
- return this.n1z();
61037
- }, VOID);
61038
- defineProp(protoOf(MessageTextEventJS), 'timestamp', function () {
61039
- return this.g2b();
61040
- }, VOID);
61041
- defineProp(protoOf(MessageTextEventJS), 'conversationId', function () {
61042
- return this.z3e();
61043
- }, VOID);
61044
- defineProp(protoOf(MessageTextEventJS), 'from', function () {
61045
- return this.a3f();
61046
- }, VOID);
61047
- defineProp(protoOf(MessageTextEventJS), 'body', function () {
61048
- return this.b3f();
61049
- }, VOID);
61050
- function Body_0(body) {
60934
+ function MessageCustomEventBody(body) {
61051
60935
  this.customData = body.d2t_1;
61052
- this.v3g_1 = body.e2t_1;
60936
+ this.deleted = body.e2t_1;
61053
60937
  }
61054
- protoOf(Body_0).w3g = function () {
60938
+ protoOf(MessageCustomEventBody).f3f = function () {
61055
60939
  return this.customData;
61056
60940
  };
61057
- protoOf(Body_0).m3g = function () {
61058
- return this.v3g_1;
60941
+ protoOf(MessageCustomEventBody).e3f = function () {
60942
+ return this.deleted;
61059
60943
  };
61060
- defineProp(protoOf(Body_0), 'deleted', function () {
61061
- return this.m3g();
61062
- }, VOID);
61063
60944
  function MessageCustomEventJS(event) {
61064
- this.x3g_1 = 'message:custom';
61065
- this.y3g_1 = event.h2t_1;
61066
- this.z3g_1 = event.f2t_1;
61067
- this.a3h_1 = event.g2t_1;
61068
- this.b3h_1 = map(event.i2t_1);
61069
- this.c3h_1 = new Body_0(event.j2t_1);
60945
+ this.kind = 'message:custom';
60946
+ this.id = event.h2t_1;
60947
+ this.timestamp = event.f2t_1;
60948
+ this.conversationId = event.g2t_1;
60949
+ this.from = map(event.i2t_1);
60950
+ this.body = new MessageCustomEventBody(event.j2t_1);
61070
60951
  }
61071
60952
  protoOf(MessageCustomEventJS).lf = function () {
61072
- return this.x3g_1;
60953
+ return this.kind;
61073
60954
  };
61074
60955
  protoOf(MessageCustomEventJS).n1z = function () {
61075
- return this.y3g_1;
60956
+ return this.id;
61076
60957
  };
61077
60958
  protoOf(MessageCustomEventJS).g2b = function () {
61078
- return this.z3g_1;
60959
+ return this.timestamp;
61079
60960
  };
61080
60961
  protoOf(MessageCustomEventJS).z3e = function () {
61081
- return this.a3h_1;
60962
+ return this.conversationId;
61082
60963
  };
61083
60964
  protoOf(MessageCustomEventJS).a3f = function () {
61084
- return this.b3h_1;
60965
+ return this.from;
61085
60966
  };
61086
60967
  protoOf(MessageCustomEventJS).b3f = function () {
61087
- return this.c3h_1;
60968
+ return this.body;
61088
60969
  };
61089
- defineProp(protoOf(MessageCustomEventJS), 'kind', function () {
61090
- return this.lf();
61091
- }, VOID);
61092
- defineProp(protoOf(MessageCustomEventJS), 'id', function () {
61093
- return this.n1z();
61094
- }, VOID);
61095
- defineProp(protoOf(MessageCustomEventJS), 'timestamp', function () {
61096
- return this.g2b();
61097
- }, VOID);
61098
- defineProp(protoOf(MessageCustomEventJS), 'conversationId', function () {
61099
- return this.z3e();
61100
- }, VOID);
61101
- defineProp(protoOf(MessageCustomEventJS), 'from', function () {
61102
- return this.a3f();
61103
- }, VOID);
61104
- defineProp(protoOf(MessageCustomEventJS), 'body', function () {
61105
- return this.b3f();
61106
- }, VOID);
61107
- function Body_1(body) {
60970
+ function MessageAudioEventBody(body) {
61108
60971
  this.audioUrl = body.y2t_1;
61109
- this.d3h_1 = body.z2t_1;
60972
+ this.deleted = body.z2t_1;
61110
60973
  }
61111
- protoOf(Body_1).e3h = function () {
60974
+ protoOf(MessageAudioEventBody).g3f = function () {
61112
60975
  return this.audioUrl;
61113
60976
  };
61114
- protoOf(Body_1).m3g = function () {
61115
- return this.d3h_1;
60977
+ protoOf(MessageAudioEventBody).e3f = function () {
60978
+ return this.deleted;
61116
60979
  };
61117
- defineProp(protoOf(Body_1), 'deleted', function () {
61118
- return this.m3g();
61119
- }, VOID);
61120
60980
  function MessageAudioEventJS(event) {
61121
- this.f3h_1 = 'message:audio';
61122
- this.g3h_1 = event.c2u_1;
61123
- this.h3h_1 = event.a2u_1;
61124
- this.i3h_1 = event.b2u_1;
61125
- this.j3h_1 = map(event.d2u_1);
61126
- this.k3h_1 = new Body_1(event.e2u_1);
60981
+ this.kind = 'message:audio';
60982
+ this.id = event.c2u_1;
60983
+ this.timestamp = event.a2u_1;
60984
+ this.conversationId = event.b2u_1;
60985
+ this.from = map(event.d2u_1);
60986
+ this.body = new MessageAudioEventBody(event.e2u_1);
61127
60987
  }
61128
60988
  protoOf(MessageAudioEventJS).lf = function () {
61129
- return this.f3h_1;
60989
+ return this.kind;
61130
60990
  };
61131
60991
  protoOf(MessageAudioEventJS).n1z = function () {
61132
- return this.g3h_1;
60992
+ return this.id;
61133
60993
  };
61134
60994
  protoOf(MessageAudioEventJS).g2b = function () {
61135
- return this.h3h_1;
60995
+ return this.timestamp;
61136
60996
  };
61137
60997
  protoOf(MessageAudioEventJS).z3e = function () {
61138
- return this.i3h_1;
60998
+ return this.conversationId;
61139
60999
  };
61140
61000
  protoOf(MessageAudioEventJS).a3f = function () {
61141
- return this.j3h_1;
61001
+ return this.from;
61142
61002
  };
61143
61003
  protoOf(MessageAudioEventJS).b3f = function () {
61144
- return this.k3h_1;
61004
+ return this.body;
61145
61005
  };
61146
- defineProp(protoOf(MessageAudioEventJS), 'kind', function () {
61147
- return this.lf();
61148
- }, VOID);
61149
- defineProp(protoOf(MessageAudioEventJS), 'id', function () {
61150
- return this.n1z();
61151
- }, VOID);
61152
- defineProp(protoOf(MessageAudioEventJS), 'timestamp', function () {
61153
- return this.g2b();
61154
- }, VOID);
61155
- defineProp(protoOf(MessageAudioEventJS), 'conversationId', function () {
61156
- return this.z3e();
61157
- }, VOID);
61158
- defineProp(protoOf(MessageAudioEventJS), 'from', function () {
61159
- return this.a3f();
61160
- }, VOID);
61161
- defineProp(protoOf(MessageAudioEventJS), 'body', function () {
61162
- return this.b3f();
61163
- }, VOID);
61164
- function Body_2(body) {
61006
+ function MessageVideoEventBody(body) {
61165
61007
  this.videoUrl = body.r2t_1;
61166
- this.l3h_1 = body.s2t_1;
61008
+ this.deleted = body.s2t_1;
61167
61009
  }
61168
- protoOf(Body_2).m3h = function () {
61010
+ protoOf(MessageVideoEventBody).h3f = function () {
61169
61011
  return this.videoUrl;
61170
61012
  };
61171
- protoOf(Body_2).m3g = function () {
61172
- return this.l3h_1;
61013
+ protoOf(MessageVideoEventBody).e3f = function () {
61014
+ return this.deleted;
61173
61015
  };
61174
- defineProp(protoOf(Body_2), 'deleted', function () {
61175
- return this.m3g();
61176
- }, VOID);
61177
61016
  function MessageVideoEventJS(event) {
61178
- this.n3h_1 = 'message:video';
61179
- this.o3h_1 = event.v2t_1;
61180
- this.p3h_1 = event.t2t_1;
61181
- this.q3h_1 = event.u2t_1;
61182
- this.r3h_1 = map(event.w2t_1);
61183
- this.s3h_1 = new Body_2(event.x2t_1);
61017
+ this.kind = 'message:video';
61018
+ this.id = event.v2t_1;
61019
+ this.timestamp = event.t2t_1;
61020
+ this.conversationId = event.u2t_1;
61021
+ this.from = map(event.w2t_1);
61022
+ this.body = new MessageVideoEventBody(event.x2t_1);
61184
61023
  }
61185
61024
  protoOf(MessageVideoEventJS).lf = function () {
61186
- return this.n3h_1;
61025
+ return this.kind;
61187
61026
  };
61188
61027
  protoOf(MessageVideoEventJS).n1z = function () {
61189
- return this.o3h_1;
61028
+ return this.id;
61190
61029
  };
61191
61030
  protoOf(MessageVideoEventJS).g2b = function () {
61192
- return this.p3h_1;
61031
+ return this.timestamp;
61193
61032
  };
61194
61033
  protoOf(MessageVideoEventJS).z3e = function () {
61195
- return this.q3h_1;
61034
+ return this.conversationId;
61196
61035
  };
61197
61036
  protoOf(MessageVideoEventJS).a3f = function () {
61198
- return this.r3h_1;
61037
+ return this.from;
61199
61038
  };
61200
61039
  protoOf(MessageVideoEventJS).b3f = function () {
61201
- return this.s3h_1;
61040
+ return this.body;
61202
61041
  };
61203
- defineProp(protoOf(MessageVideoEventJS), 'kind', function () {
61204
- return this.lf();
61205
- }, VOID);
61206
- defineProp(protoOf(MessageVideoEventJS), 'id', function () {
61207
- return this.n1z();
61208
- }, VOID);
61209
- defineProp(protoOf(MessageVideoEventJS), 'timestamp', function () {
61210
- return this.g2b();
61211
- }, VOID);
61212
- defineProp(protoOf(MessageVideoEventJS), 'conversationId', function () {
61213
- return this.z3e();
61214
- }, VOID);
61215
- defineProp(protoOf(MessageVideoEventJS), 'from', function () {
61216
- return this.a3f();
61217
- }, VOID);
61218
- defineProp(protoOf(MessageVideoEventJS), 'body', function () {
61219
- return this.b3f();
61220
- }, VOID);
61221
- function Body_3(body) {
61042
+ function MessageImageEventBody(body) {
61222
61043
  this.imageUrl = body.k2t_1;
61223
- this.t3h_1 = body.l2t_1;
61044
+ this.deleted = body.l2t_1;
61224
61045
  }
61225
- protoOf(Body_3).u3h = function () {
61046
+ protoOf(MessageImageEventBody).i3f = function () {
61226
61047
  return this.imageUrl;
61227
61048
  };
61228
- protoOf(Body_3).m3g = function () {
61229
- return this.t3h_1;
61049
+ protoOf(MessageImageEventBody).e3f = function () {
61050
+ return this.deleted;
61230
61051
  };
61231
- defineProp(protoOf(Body_3), 'deleted', function () {
61232
- return this.m3g();
61233
- }, VOID);
61234
61052
  function MessageImageEventJS(event) {
61235
- this.v3h_1 = 'message:image';
61236
- this.w3h_1 = event.o2t_1;
61237
- this.x3h_1 = event.m2t_1;
61238
- this.y3h_1 = event.n2t_1;
61239
- this.z3h_1 = map(event.p2t_1);
61240
- this.a3i_1 = new Body_3(event.q2t_1);
61053
+ this.kind = 'message:image';
61054
+ this.id = event.o2t_1;
61055
+ this.timestamp = event.m2t_1;
61056
+ this.conversationId = event.n2t_1;
61057
+ this.from = map(event.p2t_1);
61058
+ this.body = new MessageImageEventBody(event.q2t_1);
61241
61059
  }
61242
61060
  protoOf(MessageImageEventJS).lf = function () {
61243
- return this.v3h_1;
61061
+ return this.kind;
61244
61062
  };
61245
61063
  protoOf(MessageImageEventJS).n1z = function () {
61246
- return this.w3h_1;
61064
+ return this.id;
61247
61065
  };
61248
61066
  protoOf(MessageImageEventJS).g2b = function () {
61249
- return this.x3h_1;
61067
+ return this.timestamp;
61250
61068
  };
61251
61069
  protoOf(MessageImageEventJS).z3e = function () {
61252
- return this.y3h_1;
61070
+ return this.conversationId;
61253
61071
  };
61254
61072
  protoOf(MessageImageEventJS).a3f = function () {
61255
- return this.z3h_1;
61073
+ return this.from;
61256
61074
  };
61257
61075
  protoOf(MessageImageEventJS).b3f = function () {
61258
- return this.a3i_1;
61076
+ return this.body;
61259
61077
  };
61260
- defineProp(protoOf(MessageImageEventJS), 'kind', function () {
61261
- return this.lf();
61262
- }, VOID);
61263
- defineProp(protoOf(MessageImageEventJS), 'id', function () {
61264
- return this.n1z();
61265
- }, VOID);
61266
- defineProp(protoOf(MessageImageEventJS), 'timestamp', function () {
61267
- return this.g2b();
61268
- }, VOID);
61269
- defineProp(protoOf(MessageImageEventJS), 'conversationId', function () {
61270
- return this.z3e();
61271
- }, VOID);
61272
- defineProp(protoOf(MessageImageEventJS), 'from', function () {
61273
- return this.a3f();
61274
- }, VOID);
61275
- defineProp(protoOf(MessageImageEventJS), 'body', function () {
61276
- return this.b3f();
61277
- }, VOID);
61278
- function Body_4(body) {
61078
+ function MessageFileEventBody(body) {
61279
61079
  this.fileUrl = body.f2u_1;
61280
- this.b3i_1 = body.g2u_1;
61080
+ this.deleted = body.g2u_1;
61281
61081
  }
61282
- protoOf(Body_4).c3i = function () {
61082
+ protoOf(MessageFileEventBody).j3f = function () {
61283
61083
  return this.fileUrl;
61284
61084
  };
61285
- protoOf(Body_4).m3g = function () {
61286
- return this.b3i_1;
61085
+ protoOf(MessageFileEventBody).e3f = function () {
61086
+ return this.deleted;
61287
61087
  };
61288
- defineProp(protoOf(Body_4), 'deleted', function () {
61289
- return this.m3g();
61290
- }, VOID);
61291
61088
  function MessageFileEventJS(event) {
61292
- this.d3i_1 = 'message:file';
61293
- this.e3i_1 = event.j2u_1;
61294
- this.f3i_1 = event.h2u_1;
61295
- this.g3i_1 = event.i2u_1;
61296
- this.h3i_1 = map(event.k2u_1);
61297
- this.i3i_1 = new Body_4(event.l2u_1);
61089
+ this.kind = 'message:file';
61090
+ this.id = event.j2u_1;
61091
+ this.timestamp = event.h2u_1;
61092
+ this.conversationId = event.i2u_1;
61093
+ this.from = map(event.k2u_1);
61094
+ this.body = new MessageFileEventBody(event.l2u_1);
61298
61095
  }
61299
61096
  protoOf(MessageFileEventJS).lf = function () {
61300
- return this.d3i_1;
61097
+ return this.kind;
61301
61098
  };
61302
61099
  protoOf(MessageFileEventJS).n1z = function () {
61303
- return this.e3i_1;
61100
+ return this.id;
61304
61101
  };
61305
61102
  protoOf(MessageFileEventJS).g2b = function () {
61306
- return this.f3i_1;
61103
+ return this.timestamp;
61307
61104
  };
61308
61105
  protoOf(MessageFileEventJS).z3e = function () {
61309
- return this.g3i_1;
61106
+ return this.conversationId;
61310
61107
  };
61311
61108
  protoOf(MessageFileEventJS).a3f = function () {
61312
- return this.h3i_1;
61109
+ return this.from;
61313
61110
  };
61314
61111
  protoOf(MessageFileEventJS).b3f = function () {
61315
- return this.i3i_1;
61112
+ return this.body;
61316
61113
  };
61317
- defineProp(protoOf(MessageFileEventJS), 'kind', function () {
61318
- return this.lf();
61319
- }, VOID);
61320
- defineProp(protoOf(MessageFileEventJS), 'id', function () {
61321
- return this.n1z();
61322
- }, VOID);
61323
- defineProp(protoOf(MessageFileEventJS), 'timestamp', function () {
61324
- return this.g2b();
61325
- }, VOID);
61326
- defineProp(protoOf(MessageFileEventJS), 'conversationId', function () {
61327
- return this.z3e();
61328
- }, VOID);
61329
- defineProp(protoOf(MessageFileEventJS), 'from', function () {
61330
- return this.a3f();
61331
- }, VOID);
61332
- defineProp(protoOf(MessageFileEventJS), 'body', function () {
61333
- return this.b3f();
61334
- }, VOID);
61335
- function Body_5(body) {
61114
+ function MessageVCardEventBody(body) {
61336
61115
  this.vcardUrl = body.m2u_1;
61337
- this.j3i_1 = body.n2u_1;
61116
+ this.deleted = body.n2u_1;
61338
61117
  }
61339
- protoOf(Body_5).k3i = function () {
61118
+ protoOf(MessageVCardEventBody).k3f = function () {
61340
61119
  return this.vcardUrl;
61341
61120
  };
61342
- protoOf(Body_5).m3g = function () {
61343
- return this.j3i_1;
61121
+ protoOf(MessageVCardEventBody).e3f = function () {
61122
+ return this.deleted;
61344
61123
  };
61345
- defineProp(protoOf(Body_5), 'deleted', function () {
61346
- return this.m3g();
61347
- }, VOID);
61348
61124
  function MessageVCardEventJS(event) {
61349
- this.l3i_1 = 'message:vcard';
61350
- this.m3i_1 = event.q2u_1;
61351
- this.n3i_1 = event.o2u_1;
61352
- this.o3i_1 = event.p2u_1;
61353
- this.p3i_1 = map(event.r2u_1);
61354
- this.q3i_1 = new Body_5(event.s2u_1);
61125
+ this.kind = 'message:vcard';
61126
+ this.id = event.q2u_1;
61127
+ this.timestamp = event.o2u_1;
61128
+ this.conversationId = event.p2u_1;
61129
+ this.from = map(event.r2u_1);
61130
+ this.body = new MessageVCardEventBody(event.s2u_1);
61355
61131
  }
61356
61132
  protoOf(MessageVCardEventJS).lf = function () {
61357
- return this.l3i_1;
61133
+ return this.kind;
61358
61134
  };
61359
61135
  protoOf(MessageVCardEventJS).n1z = function () {
61360
- return this.m3i_1;
61136
+ return this.id;
61361
61137
  };
61362
61138
  protoOf(MessageVCardEventJS).g2b = function () {
61363
- return this.n3i_1;
61139
+ return this.timestamp;
61364
61140
  };
61365
61141
  protoOf(MessageVCardEventJS).z3e = function () {
61366
- return this.o3i_1;
61142
+ return this.conversationId;
61367
61143
  };
61368
61144
  protoOf(MessageVCardEventJS).a3f = function () {
61369
- return this.p3i_1;
61145
+ return this.from;
61370
61146
  };
61371
61147
  protoOf(MessageVCardEventJS).b3f = function () {
61372
- return this.q3i_1;
61148
+ return this.body;
61373
61149
  };
61374
- defineProp(protoOf(MessageVCardEventJS), 'kind', function () {
61375
- return this.lf();
61376
- }, VOID);
61377
- defineProp(protoOf(MessageVCardEventJS), 'id', function () {
61378
- return this.n1z();
61379
- }, VOID);
61380
- defineProp(protoOf(MessageVCardEventJS), 'timestamp', function () {
61381
- return this.g2b();
61382
- }, VOID);
61383
- defineProp(protoOf(MessageVCardEventJS), 'conversationId', function () {
61384
- return this.z3e();
61385
- }, VOID);
61386
- defineProp(protoOf(MessageVCardEventJS), 'from', function () {
61387
- return this.a3f();
61388
- }, VOID);
61389
- defineProp(protoOf(MessageVCardEventJS), 'body', function () {
61390
- return this.b3f();
61391
- }, VOID);
61392
- function Body_6(body) {
61150
+ function MessageLocationEventBody(body) {
61393
61151
  this.location = new Location_0(body.b2v_1);
61394
- this.r3i_1 = body.c2v_1;
61152
+ this.deleted = body.c2v_1;
61395
61153
  }
61396
- protoOf(Body_6).s3i = function () {
61154
+ protoOf(MessageLocationEventBody).l3f = function () {
61397
61155
  return this.location;
61398
61156
  };
61399
- protoOf(Body_6).m3g = function () {
61400
- return this.r3i_1;
61157
+ protoOf(MessageLocationEventBody).e3f = function () {
61158
+ return this.deleted;
61401
61159
  };
61402
- defineProp(protoOf(Body_6), 'deleted', function () {
61403
- return this.m3g();
61404
- }, VOID);
61405
61160
  function Location_0(location) {
61406
61161
  this.longitude = location.f2c_1;
61407
61162
  this.latitude = location.g2c_1;
61408
61163
  this.name = location.h2c_1;
61409
61164
  this.address = location.i2c_1;
61410
61165
  }
61411
- protoOf(Location_0).t3i = function () {
61166
+ protoOf(Location_0).m3f = function () {
61412
61167
  return this.longitude;
61413
61168
  };
61414
- protoOf(Location_0).u3i = function () {
61169
+ protoOf(Location_0).n3f = function () {
61415
61170
  return this.latitude;
61416
61171
  };
61417
61172
  protoOf(Location_0).mc = function () {
61418
61173
  return this.name;
61419
61174
  };
61420
- protoOf(Location_0).v3i = function () {
61175
+ protoOf(Location_0).o3f = function () {
61421
61176
  return this.address;
61422
61177
  };
61423
61178
  function MessageLocationEventJS(event) {
61424
- this.w3i_1 = 'message:location';
61425
- this.x3i_1 = event.f2v_1;
61426
- this.y3i_1 = event.d2v_1;
61427
- this.z3i_1 = event.e2v_1;
61428
- this.a3j_1 = map(event.g2v_1);
61429
- this.b3j_1 = new Body_6(event.h2v_1);
61179
+ this.kind = 'message:location';
61180
+ this.id = event.f2v_1;
61181
+ this.timestamp = event.d2v_1;
61182
+ this.conversationId = event.e2v_1;
61183
+ this.from = map(event.g2v_1);
61184
+ this.body = new MessageLocationEventBody(event.h2v_1);
61430
61185
  }
61431
61186
  protoOf(MessageLocationEventJS).lf = function () {
61432
- return this.w3i_1;
61187
+ return this.kind;
61433
61188
  };
61434
61189
  protoOf(MessageLocationEventJS).n1z = function () {
61435
- return this.x3i_1;
61190
+ return this.id;
61436
61191
  };
61437
61192
  protoOf(MessageLocationEventJS).g2b = function () {
61438
- return this.y3i_1;
61193
+ return this.timestamp;
61439
61194
  };
61440
61195
  protoOf(MessageLocationEventJS).z3e = function () {
61441
- return this.z3i_1;
61196
+ return this.conversationId;
61442
61197
  };
61443
61198
  protoOf(MessageLocationEventJS).a3f = function () {
61444
- return this.a3j_1;
61199
+ return this.from;
61445
61200
  };
61446
61201
  protoOf(MessageLocationEventJS).b3f = function () {
61447
- return this.b3j_1;
61202
+ return this.body;
61448
61203
  };
61449
- defineProp(protoOf(MessageLocationEventJS), 'kind', function () {
61450
- return this.lf();
61451
- }, VOID);
61452
- defineProp(protoOf(MessageLocationEventJS), 'id', function () {
61453
- return this.n1z();
61454
- }, VOID);
61455
- defineProp(protoOf(MessageLocationEventJS), 'timestamp', function () {
61456
- return this.g2b();
61457
- }, VOID);
61458
- defineProp(protoOf(MessageLocationEventJS), 'conversationId', function () {
61459
- return this.z3e();
61460
- }, VOID);
61461
- defineProp(protoOf(MessageLocationEventJS), 'from', function () {
61462
- return this.a3f();
61463
- }, VOID);
61464
- defineProp(protoOf(MessageLocationEventJS), 'body', function () {
61465
- return this.b3f();
61466
- }, VOID);
61467
- function Body_7(body) {
61204
+ function MessageTemplateEventBody(body) {
61468
61205
  this.body = body;
61469
61206
  this.template = new TemplateObject_0(this.body.t2u_1);
61470
61207
  this.whatsapp = new WhatsappObject_0(this.body.u2u_1);
61471
- this.c3j_1 = this.body.v2u_1;
61208
+ this.deleted = this.body.v2u_1;
61472
61209
  }
61473
- protoOf(Body_7).b3f = function () {
61210
+ protoOf(MessageTemplateEventBody).b3f = function () {
61474
61211
  return this.body;
61475
61212
  };
61476
- protoOf(Body_7).d3j = function () {
61213
+ protoOf(MessageTemplateEventBody).p3f = function () {
61477
61214
  return this.template;
61478
61215
  };
61479
- protoOf(Body_7).e3j = function () {
61216
+ protoOf(MessageTemplateEventBody).q3f = function () {
61480
61217
  return this.whatsapp;
61481
61218
  };
61482
- protoOf(Body_7).m3g = function () {
61483
- return this.c3j_1;
61219
+ protoOf(MessageTemplateEventBody).e3f = function () {
61220
+ return this.deleted;
61484
61221
  };
61485
- protoOf(Body_7).r2 = function () {
61222
+ protoOf(MessageTemplateEventBody).r2 = function () {
61486
61223
  return this.body;
61487
61224
  };
61488
- protoOf(Body_7).f3j = function (body) {
61489
- return new Body_7(body);
61225
+ protoOf(MessageTemplateEventBody).r3f = function (body) {
61226
+ return new MessageTemplateEventBody(body);
61490
61227
  };
61491
- protoOf(Body_7).copy = function (body, $super) {
61228
+ protoOf(MessageTemplateEventBody).copy = function (body, $super) {
61492
61229
  body = body === VOID ? this.body : body;
61493
- return this.f3j(body);
61230
+ return this.r3f(body);
61494
61231
  };
61495
- protoOf(Body_7).toString = function () {
61232
+ protoOf(MessageTemplateEventBody).toString = function () {
61496
61233
  return 'Body(body=' + this.body + ')';
61497
61234
  };
61498
- protoOf(Body_7).hashCode = function () {
61235
+ protoOf(MessageTemplateEventBody).hashCode = function () {
61499
61236
  return this.body.hashCode();
61500
61237
  };
61501
- protoOf(Body_7).equals = function (other) {
61238
+ protoOf(MessageTemplateEventBody).equals = function (other) {
61502
61239
  if (this === other)
61503
61240
  return true;
61504
- if (!(other instanceof Body_7))
61241
+ if (!(other instanceof MessageTemplateEventBody))
61505
61242
  return false;
61506
- var tmp0_other_with_cast = other instanceof Body_7 ? other : THROW_CCE();
61243
+ var tmp0_other_with_cast = other instanceof MessageTemplateEventBody ? other : THROW_CCE();
61507
61244
  if (!this.body.equals(tmp0_other_with_cast.body))
61508
61245
  return false;
61509
61246
  return true;
61510
61247
  };
61511
- defineProp(protoOf(Body_7), 'deleted', function () {
61512
- return this.m3g();
61513
- }, VOID);
61514
61248
  function TemplateObject_0(template) {
61515
61249
  this.name = template.x2b_1;
61516
61250
  var tmp = this;
@@ -61527,63 +61261,45 @@ function requireClientsdkClientcore () {
61527
61261
  protoOf(TemplateObject_0).mc = function () {
61528
61262
  return this.name;
61529
61263
  };
61530
- protoOf(TemplateObject_0).g3j = function () {
61264
+ protoOf(TemplateObject_0).s3f = function () {
61531
61265
  return this.parameters;
61532
61266
  };
61533
61267
  function WhatsappObject_0(whatsapp) {
61534
61268
  this.policy = whatsapp.b2c_1;
61535
61269
  this.locale = whatsapp.c2c_1;
61536
61270
  }
61537
- protoOf(WhatsappObject_0).h3j = function () {
61271
+ protoOf(WhatsappObject_0).t3f = function () {
61538
61272
  return this.policy;
61539
61273
  };
61540
- protoOf(WhatsappObject_0).i3j = function () {
61274
+ protoOf(WhatsappObject_0).u3f = function () {
61541
61275
  return this.locale;
61542
61276
  };
61543
61277
  function MessageTemplateEventJS(event) {
61544
- this.j3j_1 = 'message:template';
61545
- this.k3j_1 = event.y2u_1;
61546
- this.l3j_1 = event.w2u_1;
61547
- this.m3j_1 = event.x2u_1;
61548
- this.n3j_1 = map(event.z2u_1);
61549
- this.o3j_1 = new Body_7(event.a2v_1);
61278
+ this.kind = 'message:template';
61279
+ this.id = event.y2u_1;
61280
+ this.timestamp = event.w2u_1;
61281
+ this.conversationId = event.x2u_1;
61282
+ this.from = map(event.z2u_1);
61283
+ this.body = new MessageTemplateEventBody(event.a2v_1);
61550
61284
  }
61551
61285
  protoOf(MessageTemplateEventJS).lf = function () {
61552
- return this.j3j_1;
61286
+ return this.kind;
61553
61287
  };
61554
61288
  protoOf(MessageTemplateEventJS).n1z = function () {
61555
- return this.k3j_1;
61289
+ return this.id;
61556
61290
  };
61557
61291
  protoOf(MessageTemplateEventJS).g2b = function () {
61558
- return this.l3j_1;
61292
+ return this.timestamp;
61559
61293
  };
61560
61294
  protoOf(MessageTemplateEventJS).z3e = function () {
61561
- return this.m3j_1;
61295
+ return this.conversationId;
61562
61296
  };
61563
61297
  protoOf(MessageTemplateEventJS).a3f = function () {
61564
- return this.n3j_1;
61298
+ return this.from;
61565
61299
  };
61566
61300
  protoOf(MessageTemplateEventJS).b3f = function () {
61567
- return this.o3j_1;
61301
+ return this.body;
61568
61302
  };
61569
- defineProp(protoOf(MessageTemplateEventJS), 'kind', function () {
61570
- return this.lf();
61571
- }, VOID);
61572
- defineProp(protoOf(MessageTemplateEventJS), 'id', function () {
61573
- return this.n1z();
61574
- }, VOID);
61575
- defineProp(protoOf(MessageTemplateEventJS), 'timestamp', function () {
61576
- return this.g2b();
61577
- }, VOID);
61578
- defineProp(protoOf(MessageTemplateEventJS), 'conversationId', function () {
61579
- return this.z3e();
61580
- }, VOID);
61581
- defineProp(protoOf(MessageTemplateEventJS), 'from', function () {
61582
- return this.a3f();
61583
- }, VOID);
61584
- defineProp(protoOf(MessageTemplateEventJS), 'body', function () {
61585
- return this.b3f();
61586
- }, VOID);
61587
61303
  var PresentingOrderJS_ASC_instance;
61588
61304
  var PresentingOrderJS_DESC_instance;
61589
61305
  function values() {
@@ -61613,7 +61329,7 @@ function requireClientsdkClientcore () {
61613
61329
  Enum.call(this, name, ordinal);
61614
61330
  this.corePresentingOrder = corePresentingOrder;
61615
61331
  }
61616
- protoOf(PresentingOrderJS).r3j = function () {
61332
+ protoOf(PresentingOrderJS).x3f = function () {
61617
61333
  return this.corePresentingOrder;
61618
61334
  };
61619
61335
  defineProp(protoOf(PresentingOrderJS), 'name', protoOf(PresentingOrderJS).mc, VOID);
@@ -61647,7 +61363,7 @@ function requireClientsdkClientcore () {
61647
61363
  Enum.call(this, name, ordinal);
61648
61364
  this.coreOrderBy = coreOrderBy;
61649
61365
  }
61650
- protoOf(OrderByJS).u3j = function () {
61366
+ protoOf(OrderByJS).a3g = function () {
61651
61367
  return this.coreOrderBy;
61652
61368
  };
61653
61369
  defineProp(protoOf(OrderByJS), 'name', protoOf(OrderByJS).mc, VOID);
@@ -61660,13 +61376,13 @@ function requireClientsdkClientcore () {
61660
61376
  var tmp_1 = this;
61661
61377
  tmp_1.customData = properties == null ? null : properties.x2p_1;
61662
61378
  }
61663
- protoOf(Properties).v3j = function () {
61379
+ protoOf(Properties).b3g = function () {
61664
61380
  return this.ttl;
61665
61381
  };
61666
- protoOf(Properties).w3j = function () {
61382
+ protoOf(Properties).c3g = function () {
61667
61383
  return this.customSortKey;
61668
61384
  };
61669
- protoOf(Properties).w3g = function () {
61385
+ protoOf(Properties).f3f = function () {
61670
61386
  return this.customData;
61671
61387
  };
61672
61388
  function ConversationJS(conversation) {
@@ -61696,13 +61412,13 @@ function requireClientsdkClientcore () {
61696
61412
  protoOf(ConversationJS).y3e = function () {
61697
61413
  return this.memberId;
61698
61414
  };
61699
- protoOf(ConversationJS).x3j = function () {
61415
+ protoOf(ConversationJS).d3g = function () {
61700
61416
  return this.memberState;
61701
61417
  };
61702
- protoOf(ConversationJS).y3j = function () {
61418
+ protoOf(ConversationJS).e3g = function () {
61703
61419
  return this.displayName;
61704
61420
  };
61705
- protoOf(ConversationJS).u3h = function () {
61421
+ protoOf(ConversationJS).i3f = function () {
61706
61422
  return this.imageUrl;
61707
61423
  };
61708
61424
  protoOf(ConversationJS).h3a = function () {
@@ -61717,13 +61433,13 @@ function requireClientsdkClientcore () {
61717
61433
  this.INACTIVE = 'INACTIVE';
61718
61434
  this.DELETED = 'DELETED';
61719
61435
  }
61720
- protoOf(ConversationStateJS).z3j = function () {
61436
+ protoOf(ConversationStateJS).f3g = function () {
61721
61437
  return this.ACTIVE;
61722
61438
  };
61723
- protoOf(ConversationStateJS).a3k = function () {
61439
+ protoOf(ConversationStateJS).g3g = function () {
61724
61440
  return this.INACTIVE;
61725
61441
  };
61726
- protoOf(ConversationStateJS).b3k = function () {
61442
+ protoOf(ConversationStateJS).h3g = function () {
61727
61443
  return this.DELETED;
61728
61444
  };
61729
61445
  protoOf(ConversationStateJS).toString = function () {
@@ -61751,13 +61467,13 @@ function requireClientsdkClientcore () {
61751
61467
  this.updated = conversationTimestamp.k2q_1;
61752
61468
  this.destroyed = conversationTimestamp.l2q_1;
61753
61469
  }
61754
- protoOf(ConversationTimestampJS).c3k = function () {
61470
+ protoOf(ConversationTimestampJS).i3g = function () {
61755
61471
  return this.created;
61756
61472
  };
61757
- protoOf(ConversationTimestampJS).d3k = function () {
61473
+ protoOf(ConversationTimestampJS).j3g = function () {
61758
61474
  return this.updated;
61759
61475
  };
61760
- protoOf(ConversationTimestampJS).e3k = function () {
61476
+ protoOf(ConversationTimestampJS).k3g = function () {
61761
61477
  return this.destroyed;
61762
61478
  };
61763
61479
  function ConversationsPageJS(conversationsPage) {
@@ -61779,7 +61495,7 @@ function requireClientsdkClientcore () {
61779
61495
  this.previousCursor = conversationsPage.n2q_1;
61780
61496
  this.nextCursor = conversationsPage.o2q_1;
61781
61497
  }
61782
- protoOf(ConversationsPageJS).f3k = function () {
61498
+ protoOf(ConversationsPageJS).l3g = function () {
61783
61499
  return this.conversations;
61784
61500
  };
61785
61501
  protoOf(ConversationsPageJS).w3e = function () {
@@ -61837,7 +61553,7 @@ function requireClientsdkClientcore () {
61837
61553
  protoOf(MemberJS).r2d = function () {
61838
61554
  return this.user;
61839
61555
  };
61840
- protoOf(MemberJS).g3k = function () {
61556
+ protoOf(MemberJS).m3g = function () {
61841
61557
  return this.channel;
61842
61558
  };
61843
61559
  protoOf(MemberJS).g2b = function () {
@@ -61850,16 +61566,16 @@ function requireClientsdkClientcore () {
61850
61566
  this.LEFT = 'LEFT';
61851
61567
  this.UNKNOWN = 'UNKNOWN';
61852
61568
  }
61853
- protoOf(MemberStateJSObj).h3k = function () {
61569
+ protoOf(MemberStateJSObj).n3g = function () {
61854
61570
  return this.INVITED;
61855
61571
  };
61856
- protoOf(MemberStateJSObj).i3k = function () {
61572
+ protoOf(MemberStateJSObj).o3g = function () {
61857
61573
  return this.JOINED;
61858
61574
  };
61859
- protoOf(MemberStateJSObj).j3k = function () {
61575
+ protoOf(MemberStateJSObj).p3g = function () {
61860
61576
  return this.LEFT;
61861
61577
  };
61862
- protoOf(MemberStateJSObj).k3k = function () {
61578
+ protoOf(MemberStateJSObj).q3g = function () {
61863
61579
  return this.UNKNOWN;
61864
61580
  };
61865
61581
  protoOf(MemberStateJSObj).toString = function () {
@@ -61887,13 +61603,13 @@ function requireClientsdkClientcore () {
61887
61603
  this.joined = memberTimestamp.r2s_1;
61888
61604
  this.left = memberTimestamp.s2s_1;
61889
61605
  }
61890
- protoOf(MemberTimestampJS).l3k = function () {
61606
+ protoOf(MemberTimestampJS).r3g = function () {
61891
61607
  return this.invited;
61892
61608
  };
61893
- protoOf(MemberTimestampJS).m3k = function () {
61609
+ protoOf(MemberTimestampJS).s3g = function () {
61894
61610
  return this.joined;
61895
61611
  };
61896
- protoOf(MemberTimestampJS).n3k = function () {
61612
+ protoOf(MemberTimestampJS).t3g = function () {
61897
61613
  return this.left;
61898
61614
  };
61899
61615
  function MembersPageJS(membersPage) {
@@ -61915,7 +61631,7 @@ function requireClientsdkClientcore () {
61915
61631
  this.previousCursor = membersPage.u2s_1;
61916
61632
  this.nextCursor = membersPage.v2s_1;
61917
61633
  }
61918
- protoOf(MembersPageJS).o3k = function () {
61634
+ protoOf(MembersPageJS).u3g = function () {
61919
61635
  return this.members;
61920
61636
  };
61921
61637
  protoOf(MembersPageJS).w3e = function () {
@@ -61961,19 +61677,19 @@ function requireClientsdkClientcore () {
61961
61677
  protoOf(UserJS).mc = function () {
61962
61678
  return this.name;
61963
61679
  };
61964
- protoOf(UserJS).y3j = function () {
61680
+ protoOf(UserJS).e3g = function () {
61965
61681
  return this.displayName;
61966
61682
  };
61967
- protoOf(UserJS).p3k = function () {
61683
+ protoOf(UserJS).v3g = function () {
61968
61684
  return this.channels;
61969
61685
  };
61970
61686
  protoOf(UserJS).g2b = function () {
61971
61687
  return this.timestamp;
61972
61688
  };
61973
- protoOf(UserJS).u3h = function () {
61689
+ protoOf(UserJS).i3f = function () {
61974
61690
  return this.imageUrl;
61975
61691
  };
61976
- protoOf(UserJS).w3g = function () {
61692
+ protoOf(UserJS).f3f = function () {
61977
61693
  return this.customData;
61978
61694
  };
61979
61695
  function UserTimestampJS(userTimestamp) {
@@ -61981,13 +61697,13 @@ function requireClientsdkClientcore () {
61981
61697
  this.updated = userTimestamp.u2v_1;
61982
61698
  this.destroyed = userTimestamp.v2v_1;
61983
61699
  }
61984
- protoOf(UserTimestampJS).c3k = function () {
61700
+ protoOf(UserTimestampJS).i3g = function () {
61985
61701
  return this.created;
61986
61702
  };
61987
- protoOf(UserTimestampJS).d3k = function () {
61703
+ protoOf(UserTimestampJS).j3g = function () {
61988
61704
  return this.updated;
61989
61705
  };
61990
- protoOf(UserTimestampJS).e3k = function () {
61706
+ protoOf(UserTimestampJS).k3g = function () {
61991
61707
  return this.destroyed;
61992
61708
  };
61993
61709
  function UserChannelsJS(userChannels) {
@@ -62300,37 +62016,37 @@ function requireClientsdkClientcore () {
62300
62016
  }
62301
62017
  tmp_29.messenger = tmp_31;
62302
62018
  }
62303
- protoOf(UserChannelsJS).q3k = function () {
62019
+ protoOf(UserChannelsJS).w3g = function () {
62304
62020
  return this.app;
62305
62021
  };
62306
- protoOf(UserChannelsJS).r3k = function () {
62022
+ protoOf(UserChannelsJS).x3g = function () {
62307
62023
  return this.phone;
62308
62024
  };
62309
- protoOf(UserChannelsJS).s3k = function () {
62025
+ protoOf(UserChannelsJS).y3g = function () {
62310
62026
  return this.pstn;
62311
62027
  };
62312
- protoOf(UserChannelsJS).t3k = function () {
62028
+ protoOf(UserChannelsJS).z3g = function () {
62313
62029
  return this.sip;
62314
62030
  };
62315
- protoOf(UserChannelsJS).u3k = function () {
62031
+ protoOf(UserChannelsJS).a3h = function () {
62316
62032
  return this.vbc;
62317
62033
  };
62318
- protoOf(UserChannelsJS).v3k = function () {
62034
+ protoOf(UserChannelsJS).b3h = function () {
62319
62035
  return this.websocket;
62320
62036
  };
62321
- protoOf(UserChannelsJS).w3k = function () {
62037
+ protoOf(UserChannelsJS).c3h = function () {
62322
62038
  return this.sms;
62323
62039
  };
62324
- protoOf(UserChannelsJS).x3k = function () {
62040
+ protoOf(UserChannelsJS).d3h = function () {
62325
62041
  return this.mms;
62326
62042
  };
62327
- protoOf(UserChannelsJS).e3j = function () {
62043
+ protoOf(UserChannelsJS).q3f = function () {
62328
62044
  return this.whatsapp;
62329
62045
  };
62330
- protoOf(UserChannelsJS).y3k = function () {
62046
+ protoOf(UserChannelsJS).e3h = function () {
62331
62047
  return this.viber;
62332
62048
  };
62333
- protoOf(UserChannelsJS).z3k = function () {
62049
+ protoOf(UserChannelsJS).f3h = function () {
62334
62050
  return this.messenger;
62335
62051
  };
62336
62052
  function MemberChannelJS(memberChannel) {
@@ -62366,7 +62082,7 @@ function requireClientsdkClientcore () {
62366
62082
  protoOf(MemberChannelJS).a3f = function () {
62367
62083
  return this.from;
62368
62084
  };
62369
- protoOf(MemberChannelJS).a3l = function () {
62085
+ protoOf(MemberChannelJS).g3h = function () {
62370
62086
  return this.to;
62371
62087
  };
62372
62088
  function ChannelJS(channel) {
@@ -62376,7 +62092,7 @@ function requireClientsdkClientcore () {
62376
62092
  protoOf(ChannelJS).n1z = function () {
62377
62093
  return this.id;
62378
62094
  };
62379
- protoOf(ChannelJS).b3l = function () {
62095
+ protoOf(ChannelJS).h3h = function () {
62380
62096
  return this.number;
62381
62097
  };
62382
62098
  function LegChannelJS(channel) {
@@ -62390,7 +62106,7 @@ function requireClientsdkClientcore () {
62390
62106
  protoOf(LegChannelJS).r2d = function () {
62391
62107
  return this.user;
62392
62108
  };
62393
- protoOf(LegChannelJS).b3l = function () {
62109
+ protoOf(LegChannelJS).h3h = function () {
62394
62110
  return this.number;
62395
62111
  };
62396
62112
  function LegJS(leg) {
@@ -62410,25 +62126,25 @@ function requireClientsdkClientcore () {
62410
62126
  protoOf(LegJS).w2y = function () {
62411
62127
  return this.type;
62412
62128
  };
62413
- protoOf(LegJS).c3l = function () {
62129
+ protoOf(LegJS).i3h = function () {
62414
62130
  return this.direction;
62415
62131
  };
62416
62132
  protoOf(LegJS).z3e = function () {
62417
62133
  return this.conversationId;
62418
62134
  };
62419
- protoOf(LegJS).d3l = function () {
62135
+ protoOf(LegJS).j3h = function () {
62420
62136
  return this.status;
62421
62137
  };
62422
- protoOf(LegJS).e3l = function () {
62138
+ protoOf(LegJS).k3h = function () {
62423
62139
  return this.startTime;
62424
62140
  };
62425
- protoOf(LegJS).f3l = function () {
62141
+ protoOf(LegJS).l3h = function () {
62426
62142
  return this.endTime;
62427
62143
  };
62428
62144
  protoOf(LegJS).a3f = function () {
62429
62145
  return this.from;
62430
62146
  };
62431
- protoOf(LegJS).a3l = function () {
62147
+ protoOf(LegJS).g3h = function () {
62432
62148
  return this.to;
62433
62149
  };
62434
62150
  var ChannelTypeJS_APP_instance;
@@ -62616,34 +62332,34 @@ function requireClientsdkClientcore () {
62616
62332
  this.CONVERSATION_MAX_NUMBER_OF_MEMBERS = 'conversation:error:maximum-number-of-members';
62617
62333
  this.CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED = 'custom-data:error:max-data-sum-limit-exceeded';
62618
62334
  }
62619
- protoOf(CSErrorCodesJS).i3l = function () {
62335
+ protoOf(CSErrorCodesJS).o3h = function () {
62620
62336
  return this.CONVERSATION_DUPLICATE_NAME;
62621
62337
  };
62622
- protoOf(CSErrorCodesJS).j3l = function () {
62338
+ protoOf(CSErrorCodesJS).p3h = function () {
62623
62339
  return this.MEMBER_ALREADY_JOINED;
62624
62340
  };
62625
- protoOf(CSErrorCodesJS).k3l = function () {
62341
+ protoOf(CSErrorCodesJS).q3h = function () {
62626
62342
  return this.MEMBER_ALREADY_INVITED;
62627
62343
  };
62628
- protoOf(CSErrorCodesJS).l3l = function () {
62344
+ protoOf(CSErrorCodesJS).r3h = function () {
62629
62345
  return this.CONVERSATION_NOT_FOUND;
62630
62346
  };
62631
- protoOf(CSErrorCodesJS).m3l = function () {
62347
+ protoOf(CSErrorCodesJS).s3h = function () {
62632
62348
  return this.MEMBER_NOT_FOUND;
62633
62349
  };
62634
- protoOf(CSErrorCodesJS).n3l = function () {
62350
+ protoOf(CSErrorCodesJS).t3h = function () {
62635
62351
  return this.USER_NOT_FOUND;
62636
62352
  };
62637
- protoOf(CSErrorCodesJS).o3l = function () {
62353
+ protoOf(CSErrorCodesJS).u3h = function () {
62638
62354
  return this.INVALID_CURSOR;
62639
62355
  };
62640
- protoOf(CSErrorCodesJS).p3l = function () {
62356
+ protoOf(CSErrorCodesJS).v3h = function () {
62641
62357
  return this.VALIDATION_FAIL;
62642
62358
  };
62643
- protoOf(CSErrorCodesJS).q3l = function () {
62359
+ protoOf(CSErrorCodesJS).w3h = function () {
62644
62360
  return this.CONVERSATION_MAX_NUMBER_OF_MEMBERS;
62645
62361
  };
62646
- protoOf(CSErrorCodesJS).r3l = function () {
62362
+ protoOf(CSErrorCodesJS).x3h = function () {
62647
62363
  return this.CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED;
62648
62364
  };
62649
62365
  var CSErrorCodesJS_instance;
@@ -62671,52 +62387,52 @@ function requireClientsdkClientcore () {
62671
62387
  this.PING_TIMEOUT_DISCONNECT = 'session:disconnect:ping-timeout';
62672
62388
  this.TRANSPORT_CLOSED_DISCONNECT = 'session:disconnect:websocket-transport-closed';
62673
62389
  }
62674
- protoOf(SessionErrorCodesJS).s3l = function () {
62390
+ protoOf(SessionErrorCodesJS).y3h = function () {
62675
62391
  return this.EMPTY_TOKEN;
62676
62392
  };
62677
- protoOf(SessionErrorCodesJS).t3l = function () {
62393
+ protoOf(SessionErrorCodesJS).z3h = function () {
62678
62394
  return this.FORCED_DISCONNECT;
62679
62395
  };
62680
- protoOf(SessionErrorCodesJS).u3l = function () {
62396
+ protoOf(SessionErrorCodesJS).a3i = function () {
62681
62397
  return this.TIMEOUT;
62682
62398
  };
62683
- protoOf(SessionErrorCodesJS).v3l = function () {
62399
+ protoOf(SessionErrorCodesJS).b3i = function () {
62684
62400
  return this.INTERNAL_FAILURE;
62685
62401
  };
62686
- protoOf(SessionErrorCodesJS).w3l = function () {
62402
+ protoOf(SessionErrorCodesJS).c3i = function () {
62687
62403
  return this.NO_ACTIVE_SESSION;
62688
62404
  };
62689
- protoOf(SessionErrorCodesJS).x3l = function () {
62405
+ protoOf(SessionErrorCodesJS).d3i = function () {
62690
62406
  return this.ALREADY_ACTIVE_SESSION;
62691
62407
  };
62692
- protoOf(SessionErrorCodesJS).y3l = function () {
62408
+ protoOf(SessionErrorCodesJS).e3i = function () {
62693
62409
  return this.INVALID_TOKEN;
62694
62410
  };
62695
- protoOf(SessionErrorCodesJS).z3l = function () {
62411
+ protoOf(SessionErrorCodesJS).f3i = function () {
62696
62412
  return this.EXPIRED_TOKEN;
62697
62413
  };
62698
- protoOf(SessionErrorCodesJS).a3m = function () {
62414
+ protoOf(SessionErrorCodesJS).g3i = function () {
62699
62415
  return this.INVALID_USER;
62700
62416
  };
62701
- protoOf(SessionErrorCodesJS).b3m = function () {
62417
+ protoOf(SessionErrorCodesJS).h3i = function () {
62702
62418
  return this.AUTHORIZATION_ERROR;
62703
62419
  };
62704
- protoOf(SessionErrorCodesJS).c3m = function () {
62420
+ protoOf(SessionErrorCodesJS).i3i = function () {
62705
62421
  return this.INVALID_SESSION;
62706
62422
  };
62707
- protoOf(SessionErrorCodesJS).d3m = function () {
62423
+ protoOf(SessionErrorCodesJS).j3i = function () {
62708
62424
  return this.MAX_OPEN_SESSIONS;
62709
62425
  };
62710
- protoOf(SessionErrorCodesJS).e3m = function () {
62426
+ protoOf(SessionErrorCodesJS).k3i = function () {
62711
62427
  return this.INVALID_SOCKET_TRANSPORT;
62712
62428
  };
62713
- protoOf(SessionErrorCodesJS).f3m = function () {
62429
+ protoOf(SessionErrorCodesJS).l3i = function () {
62714
62430
  return this.CLIENT_DISCONNECT;
62715
62431
  };
62716
- protoOf(SessionErrorCodesJS).g3m = function () {
62432
+ protoOf(SessionErrorCodesJS).m3i = function () {
62717
62433
  return this.PING_TIMEOUT_DISCONNECT;
62718
62434
  };
62719
- protoOf(SessionErrorCodesJS).h3m = function () {
62435
+ protoOf(SessionErrorCodesJS).n3i = function () {
62720
62436
  return this.TRANSPORT_CLOSED_DISCONNECT;
62721
62437
  };
62722
62438
  var SessionErrorCodesJS_instance;
@@ -62738,7 +62454,7 @@ function requireClientsdkClientcore () {
62738
62454
  protoOf(VonageErrorJS).j2d = function () {
62739
62455
  return this.code;
62740
62456
  };
62741
- protoOf(VonageErrorJS).i3m = function () {
62457
+ protoOf(VonageErrorJS).o3i = function () {
62742
62458
  return this.kmpCause;
62743
62459
  };
62744
62460
  var VonageErrorTypeJS_CS_ERROR_instance;
@@ -63803,16 +63519,42 @@ function requireClientsdkClientcore () {
63803
63519
  };
63804
63520
  }
63805
63521
  function IChatClientJS$deleteEvent$lambda$lambda($reject, $resolve) {
63806
- return function (it) {
63522
+ return function (err) {
63523
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63807
63524
  var tmp;
63808
- if (it instanceof VonageError) {
63809
- tmp = $reject(new VonageErrorJS(it));
63525
+ if (tmp0_safe_receiver == null) {
63526
+ tmp = null;
63810
63527
  } else {
63811
- if (!(it == null)) {
63812
- tmp = $reject(it);
63528
+ var tmp$ret$0;
63529
+ // Inline function 'kotlin.let' call
63530
+ // Inline function 'kotlin.contracts.contract' call
63531
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
63532
+ tmp = Unit_getInstance();
63533
+ }
63534
+ var tmp2_elvis_lhs = tmp;
63535
+ var tmp_0;
63536
+ if (tmp2_elvis_lhs == null) {
63537
+ var tmp1_safe_receiver = err;
63538
+ var tmp_1;
63539
+ if (tmp1_safe_receiver == null) {
63540
+ tmp_1 = null;
63813
63541
  } else {
63814
- tmp = $resolve(null);
63542
+ var tmp$ret$1;
63543
+ // Inline function 'kotlin.let' call
63544
+ // Inline function 'kotlin.contracts.contract' call
63545
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
63546
+ tmp_1 = Unit_getInstance();
63815
63547
  }
63548
+ tmp_0 = tmp_1;
63549
+ } else {
63550
+ tmp_0 = tmp2_elvis_lhs;
63551
+ }
63552
+ var tmp3_elvis_lhs = tmp_0;
63553
+ var tmp_2;
63554
+ if (tmp3_elvis_lhs == null) {
63555
+ tmp_2 = $resolve(null);
63556
+ } else {
63557
+ tmp_2 = Unit_getInstance();
63816
63558
  }
63817
63559
  return Unit_getInstance();
63818
63560
  };
@@ -63914,7 +63656,7 @@ function requireClientsdkClientcore () {
63914
63656
  Enum.call(this, name, ordinal);
63915
63657
  this.coreRegion = coreRegion;
63916
63658
  }
63917
- protoOf(CoreClientConfigRegionJS).n3m = function () {
63659
+ protoOf(CoreClientConfigRegionJS).t3i = function () {
63918
63660
  return this.coreRegion;
63919
63661
  };
63920
63662
  defineProp(protoOf(CoreClientConfigRegionJS), 'name', protoOf(CoreClientConfigRegionJS).mc, VOID);
@@ -63922,73 +63664,73 @@ function requireClientsdkClientcore () {
63922
63664
  function CoreClientConfigJS(region) {
63923
63665
  region = region === VOID ? get_DEFAULT_REGION() : region;
63924
63666
  this.region = region;
63925
- this.o3m_1 = this.region.coreRegion.j2l_1;
63926
- this.p3m_1 = this.region.coreRegion.k2l_1;
63667
+ this.u3i_1 = this.region.coreRegion.j2l_1;
63668
+ this.v3i_1 = this.region.coreRegion.k2l_1;
63927
63669
  var tmp = this;
63928
63670
  DefaultConfig_getInstance();
63929
- tmp.q3m_1 = '/v2/rtc';
63671
+ tmp.w3i_1 = '/v2/rtc';
63930
63672
  var tmp_0 = this;
63931
63673
  DefaultConfig_getInstance();
63932
- tmp_0.r3m_1 = true;
63933
- this.s3m_1 = false;
63674
+ tmp_0.x3i_1 = true;
63675
+ this.y3i_1 = false;
63934
63676
  }
63935
- protoOf(CoreClientConfigJS).t3m = function () {
63677
+ protoOf(CoreClientConfigJS).z3i = function () {
63936
63678
  return this.region;
63937
63679
  };
63938
- protoOf(CoreClientConfigJS).u3m = function (_set____db54di) {
63939
- this.o3m_1 = _set____db54di;
63680
+ protoOf(CoreClientConfigJS).a3j = function (_set____db54di) {
63681
+ this.u3i_1 = _set____db54di;
63940
63682
  };
63941
- protoOf(CoreClientConfigJS).v3m = function () {
63942
- return this.o3m_1;
63683
+ protoOf(CoreClientConfigJS).b3j = function () {
63684
+ return this.u3i_1;
63943
63685
  };
63944
- protoOf(CoreClientConfigJS).w3m = function (_set____db54di) {
63945
- this.p3m_1 = _set____db54di;
63686
+ protoOf(CoreClientConfigJS).c3j = function (_set____db54di) {
63687
+ this.v3i_1 = _set____db54di;
63946
63688
  };
63947
- protoOf(CoreClientConfigJS).x3m = function () {
63948
- return this.p3m_1;
63689
+ protoOf(CoreClientConfigJS).d3j = function () {
63690
+ return this.v3i_1;
63949
63691
  };
63950
- protoOf(CoreClientConfigJS).y3m = function (_set____db54di) {
63951
- this.q3m_1 = _set____db54di;
63692
+ protoOf(CoreClientConfigJS).e3j = function (_set____db54di) {
63693
+ this.w3i_1 = _set____db54di;
63952
63694
  };
63953
- protoOf(CoreClientConfigJS).z3m = function () {
63954
- return this.q3m_1;
63695
+ protoOf(CoreClientConfigJS).f3j = function () {
63696
+ return this.w3i_1;
63955
63697
  };
63956
- protoOf(CoreClientConfigJS).a3n = function (_set____db54di) {
63957
- this.r3m_1 = _set____db54di;
63698
+ protoOf(CoreClientConfigJS).g3j = function (_set____db54di) {
63699
+ this.x3i_1 = _set____db54di;
63958
63700
  };
63959
- protoOf(CoreClientConfigJS).b3n = function () {
63960
- return this.r3m_1;
63701
+ protoOf(CoreClientConfigJS).h3j = function () {
63702
+ return this.x3i_1;
63961
63703
  };
63962
- protoOf(CoreClientConfigJS).c3n = function (_set____db54di) {
63963
- this.s3m_1 = _set____db54di;
63704
+ protoOf(CoreClientConfigJS).i3j = function (_set____db54di) {
63705
+ this.y3i_1 = _set____db54di;
63964
63706
  };
63965
- protoOf(CoreClientConfigJS).d3n = function () {
63966
- return this.s3m_1;
63707
+ protoOf(CoreClientConfigJS).j3j = function () {
63708
+ return this.y3i_1;
63967
63709
  };
63968
63710
  defineProp(protoOf(CoreClientConfigJS), 'apiUrl', function () {
63969
- return this.v3m();
63711
+ return this.b3j();
63970
63712
  }, function (value) {
63971
- this.u3m(value);
63713
+ this.a3j(value);
63972
63714
  });
63973
63715
  defineProp(protoOf(CoreClientConfigJS), 'websocketUrl', function () {
63974
- return this.x3m();
63716
+ return this.d3j();
63975
63717
  }, function (value) {
63976
- this.w3m(value);
63718
+ this.c3j(value);
63977
63719
  });
63978
63720
  defineProp(protoOf(CoreClientConfigJS), 'websocketPath', function () {
63979
- return this.z3m();
63721
+ return this.f3j();
63980
63722
  }, function (value) {
63981
- this.y3m(value);
63723
+ this.e3j(value);
63982
63724
  });
63983
63725
  defineProp(protoOf(CoreClientConfigJS), 'rtcStatsTelemetry', function () {
63984
- return this.b3n();
63726
+ return this.h3j();
63985
63727
  }, function (value) {
63986
- this.a3n(value);
63728
+ this.g3j(value);
63987
63729
  });
63988
63730
  defineProp(protoOf(CoreClientConfigJS), 'autoReconnectMedia', function () {
63989
- return this.d3n();
63731
+ return this.j3j();
63990
63732
  }, function (value) {
63991
- this.c3n(value);
63733
+ this.i3j(value);
63992
63734
  });
63993
63735
  function TopicJS(name, tag) {
63994
63736
  this.name = name;
@@ -63997,7 +63739,7 @@ function requireClientsdkClientcore () {
63997
63739
  protoOf(TopicJS).mc = function () {
63998
63740
  return this.name;
63999
63741
  };
64000
- protoOf(TopicJS).e3n = function () {
63742
+ protoOf(TopicJS).k3j = function () {
64001
63743
  return this.tag;
64002
63744
  };
64003
63745
  protoOf(TopicJS).r2 = function () {
@@ -64006,13 +63748,13 @@ function requireClientsdkClientcore () {
64006
63748
  protoOf(TopicJS).s2 = function () {
64007
63749
  return this.tag;
64008
63750
  };
64009
- protoOf(TopicJS).f3n = function (name, tag) {
63751
+ protoOf(TopicJS).l3j = function (name, tag) {
64010
63752
  return new TopicJS(name, tag);
64011
63753
  };
64012
63754
  protoOf(TopicJS).copy = function (name, tag, $super) {
64013
63755
  name = name === VOID ? this.name : name;
64014
63756
  tag = tag === VOID ? this.tag : tag;
64015
- return this.f3n(name, tag);
63757
+ return this.l3j(name, tag);
64016
63758
  };
64017
63759
  protoOf(TopicJS).toString = function () {
64018
63760
  return 'TopicJS(name=' + this.name + ', tag=' + this.tag + ')';
@@ -64191,30 +63933,93 @@ function requireClientsdkClientcore () {
64191
63933
  };
64192
63934
  defineProp(protoOf(SessionErrorReasonJS), 'name', protoOf(SessionErrorReasonJS).mc, VOID);
64193
63935
  defineProp(protoOf(SessionErrorReasonJS), 'ordinal', protoOf(SessionErrorReasonJS).nc, VOID);
64194
- function ICoreClientJS$createSession$lambda$lambda($reject, $resolve) {
63936
+ function ICoreClientJS$createSession$lambda$lambda($resolve, $reject) {
64195
63937
  return function (err, sessionId) {
64196
- if (!(err == null))
64197
- $reject(err);
64198
- else if (!(sessionId == null))
64199
- $resolve(sessionId);
64200
- else
64201
- $reject(newThrowable(''));
63938
+ var tmp0_safe_receiver = sessionId;
63939
+ var tmp;
63940
+ if (tmp0_safe_receiver == null) {
63941
+ tmp = null;
63942
+ } else {
63943
+ var tmp$ret$0;
63944
+ // Inline function 'kotlin.let' call
63945
+ // Inline function 'kotlin.contracts.contract' call
63946
+ tmp$ret$0 = $resolve(tmp0_safe_receiver);
63947
+ tmp = Unit_getInstance();
63948
+ }
63949
+ var tmp2_elvis_lhs = tmp;
63950
+ var tmp_0;
63951
+ if (tmp2_elvis_lhs == null) {
63952
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
63953
+ var tmp_1;
63954
+ if (tmp1_safe_receiver == null) {
63955
+ tmp_1 = null;
63956
+ } else {
63957
+ var tmp$ret$1;
63958
+ // Inline function 'kotlin.let' call
63959
+ // Inline function 'kotlin.contracts.contract' call
63960
+ tmp$ret$1 = $reject(new VonageErrorJS(tmp1_safe_receiver));
63961
+ tmp_1 = Unit_getInstance();
63962
+ }
63963
+ tmp_0 = tmp_1;
63964
+ } else {
63965
+ tmp_0 = tmp2_elvis_lhs;
63966
+ }
63967
+ var tmp4_elvis_lhs = tmp_0;
63968
+ var tmp_2;
63969
+ if (tmp4_elvis_lhs == null) {
63970
+ var tmp3_elvis_lhs = err;
63971
+ tmp_2 = $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
63972
+ } else {
63973
+ tmp_2 = Unit_getInstance();
63974
+ }
64202
63975
  return Unit_getInstance();
64203
63976
  };
64204
63977
  }
64205
63978
  function ICoreClientJS$createSession$lambda(this$0, $token, $sessionId) {
64206
63979
  return function (resolve, reject) {
64207
63980
  var tmp = this$0.core;
64208
- tmp.v19($token, $sessionId, ICoreClientJS$createSession$lambda$lambda(reject, resolve));
63981
+ tmp.v19($token, $sessionId, ICoreClientJS$createSession$lambda$lambda(resolve, reject));
64209
63982
  return Unit_getInstance();
64210
63983
  };
64211
63984
  }
64212
63985
  function ICoreClientJS$deleteSession$lambda$lambda($reject, $resolve) {
64213
63986
  return function (err) {
64214
- if (!(err == null))
64215
- $reject(err);
64216
- else
64217
- $resolve(null);
63987
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63988
+ var tmp;
63989
+ if (tmp0_safe_receiver == null) {
63990
+ tmp = null;
63991
+ } else {
63992
+ var tmp$ret$0;
63993
+ // Inline function 'kotlin.let' call
63994
+ // Inline function 'kotlin.contracts.contract' call
63995
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
63996
+ tmp = Unit_getInstance();
63997
+ }
63998
+ var tmp2_elvis_lhs = tmp;
63999
+ var tmp_0;
64000
+ if (tmp2_elvis_lhs == null) {
64001
+ var tmp1_safe_receiver = err;
64002
+ var tmp_1;
64003
+ if (tmp1_safe_receiver == null) {
64004
+ tmp_1 = null;
64005
+ } else {
64006
+ var tmp$ret$1;
64007
+ // Inline function 'kotlin.let' call
64008
+ // Inline function 'kotlin.contracts.contract' call
64009
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64010
+ tmp_1 = Unit_getInstance();
64011
+ }
64012
+ tmp_0 = tmp_1;
64013
+ } else {
64014
+ tmp_0 = tmp2_elvis_lhs;
64015
+ }
64016
+ var tmp3_elvis_lhs = tmp_0;
64017
+ var tmp_2;
64018
+ if (tmp3_elvis_lhs == null) {
64019
+ tmp_2 = $resolve(null);
64020
+ } else {
64021
+ tmp_2 = Unit_getInstance();
64022
+ }
64218
64023
  return Unit_getInstance();
64219
64024
  };
64220
64025
  }
@@ -64227,10 +64032,42 @@ function requireClientsdkClientcore () {
64227
64032
  }
64228
64033
  function ICoreClientJS$refreshSession$lambda$lambda($reject, $resolve) {
64229
64034
  return function (err) {
64230
- if (!(err == null))
64231
- $reject(err);
64232
- else
64233
- $resolve(null);
64035
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64036
+ var tmp;
64037
+ if (tmp0_safe_receiver == null) {
64038
+ tmp = null;
64039
+ } else {
64040
+ var tmp$ret$0;
64041
+ // Inline function 'kotlin.let' call
64042
+ // Inline function 'kotlin.contracts.contract' call
64043
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64044
+ tmp = Unit_getInstance();
64045
+ }
64046
+ var tmp2_elvis_lhs = tmp;
64047
+ var tmp_0;
64048
+ if (tmp2_elvis_lhs == null) {
64049
+ var tmp1_safe_receiver = err;
64050
+ var tmp_1;
64051
+ if (tmp1_safe_receiver == null) {
64052
+ tmp_1 = null;
64053
+ } else {
64054
+ var tmp$ret$1;
64055
+ // Inline function 'kotlin.let' call
64056
+ // Inline function 'kotlin.contracts.contract' call
64057
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64058
+ tmp_1 = Unit_getInstance();
64059
+ }
64060
+ tmp_0 = tmp_1;
64061
+ } else {
64062
+ tmp_0 = tmp2_elvis_lhs;
64063
+ }
64064
+ var tmp3_elvis_lhs = tmp_0;
64065
+ var tmp_2;
64066
+ if (tmp3_elvis_lhs == null) {
64067
+ tmp_2 = $resolve(null);
64068
+ } else {
64069
+ tmp_2 = Unit_getInstance();
64070
+ }
64234
64071
  return Unit_getInstance();
64235
64072
  };
64236
64073
  }
@@ -64257,10 +64094,28 @@ function requireClientsdkClientcore () {
64257
64094
  var tmp2_elvis_lhs = tmp;
64258
64095
  var tmp_0;
64259
64096
  if (tmp2_elvis_lhs == null) {
64260
- var tmp1_elvis_lhs = err;
64261
- tmp_0 = $reject(tmp1_elvis_lhs == null ? newThrowable() : tmp1_elvis_lhs);
64097
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
64098
+ var tmp_1;
64099
+ if (tmp1_safe_receiver == null) {
64100
+ tmp_1 = null;
64101
+ } else {
64102
+ var tmp$ret$1;
64103
+ // Inline function 'kotlin.let' call
64104
+ // Inline function 'kotlin.contracts.contract' call
64105
+ tmp$ret$1 = $reject(new VonageErrorJS(tmp1_safe_receiver));
64106
+ tmp_1 = Unit_getInstance();
64107
+ }
64108
+ tmp_0 = tmp_1;
64262
64109
  } else {
64263
- tmp_0 = Unit_getInstance();
64110
+ tmp_0 = tmp2_elvis_lhs;
64111
+ }
64112
+ var tmp4_elvis_lhs = tmp_0;
64113
+ var tmp_2;
64114
+ if (tmp4_elvis_lhs == null) {
64115
+ var tmp3_elvis_lhs = err;
64116
+ tmp_2 = $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
64117
+ } else {
64118
+ tmp_2 = Unit_getInstance();
64264
64119
  }
64265
64120
  return Unit_getInstance();
64266
64121
  };
@@ -64288,10 +64143,28 @@ function requireClientsdkClientcore () {
64288
64143
  var tmp2_elvis_lhs = tmp;
64289
64144
  var tmp_0;
64290
64145
  if (tmp2_elvis_lhs == null) {
64291
- var tmp1_elvis_lhs = err;
64292
- tmp_0 = $reject(tmp1_elvis_lhs == null ? newThrowable() : tmp1_elvis_lhs);
64146
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
64147
+ var tmp_1;
64148
+ if (tmp1_safe_receiver == null) {
64149
+ tmp_1 = null;
64150
+ } else {
64151
+ var tmp$ret$1;
64152
+ // Inline function 'kotlin.let' call
64153
+ // Inline function 'kotlin.contracts.contract' call
64154
+ tmp$ret$1 = $reject(new VonageErrorJS(tmp1_safe_receiver));
64155
+ tmp_1 = Unit_getInstance();
64156
+ }
64157
+ tmp_0 = tmp_1;
64158
+ } else {
64159
+ tmp_0 = tmp2_elvis_lhs;
64160
+ }
64161
+ var tmp4_elvis_lhs = tmp_0;
64162
+ var tmp_2;
64163
+ if (tmp4_elvis_lhs == null) {
64164
+ var tmp3_elvis_lhs = err;
64165
+ tmp_2 = $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
64293
64166
  } else {
64294
- tmp_0 = Unit_getInstance();
64167
+ tmp_2 = Unit_getInstance();
64295
64168
  }
64296
64169
  return Unit_getInstance();
64297
64170
  };
@@ -64478,22 +64351,22 @@ function requireClientsdkClientcore () {
64478
64351
  return _this__u8e3s4 == null ? null : equals(_this__u8e3s4, undefined) ? null : _this__u8e3s4;
64479
64352
  }
64480
64353
  function createVonageLoggerJS$1($name, $minLogLevel, $topics, $onLog) {
64481
- this.p3n_1 = $onLog;
64482
- this.m3n_1 = $name;
64483
- this.n3n_1 = $minLogLevel;
64484
- this.o3n_1 = $topics;
64354
+ this.v3j_1 = $onLog;
64355
+ this.s3j_1 = $name;
64356
+ this.t3j_1 = $minLogLevel;
64357
+ this.u3j_1 = $topics;
64485
64358
  }
64486
64359
  protoOf(createVonageLoggerJS$1).mc = function () {
64487
- return this.m3n_1;
64360
+ return this.s3j_1;
64488
64361
  };
64489
64362
  protoOf(createVonageLoggerJS$1).c34 = function () {
64490
- return this.n3n_1;
64363
+ return this.t3j_1;
64491
64364
  };
64492
64365
  protoOf(createVonageLoggerJS$1).u33 = function () {
64493
- return this.o3n_1;
64366
+ return this.u3j_1;
64494
64367
  };
64495
64368
  protoOf(createVonageLoggerJS$1).onLog = function (logLevel, topic, message) {
64496
- this.p3n_1(logLevel, topic, message);
64369
+ this.v3j_1(logLevel, topic, message);
64497
64370
  };
64498
64371
  defineProp(protoOf(createVonageLoggerJS$1), 'name', function () {
64499
64372
  return this.mc();
@@ -64695,12 +64568,42 @@ function requireClientsdkClientcore () {
64695
64568
  defineProp(protoOf(HangupReasonJS), 'ordinal', protoOf(HangupReasonJS).nc, VOID);
64696
64569
  function IVoiceClientJS$serverCall$lambda$lambda($resolve, $reject) {
64697
64570
  return function (err, callId) {
64571
+ var tmp0_safe_receiver = callId;
64698
64572
  var tmp;
64699
- if (!(callId == null)) {
64700
- tmp = $resolve(callId);
64573
+ if (tmp0_safe_receiver == null) {
64574
+ tmp = null;
64701
64575
  } else {
64702
- var tmp0_elvis_lhs = err;
64703
- tmp = $reject(tmp0_elvis_lhs == null ? newThrowable('') : tmp0_elvis_lhs);
64576
+ var tmp$ret$0;
64577
+ // Inline function 'kotlin.let' call
64578
+ // Inline function 'kotlin.contracts.contract' call
64579
+ tmp$ret$0 = $resolve(tmp0_safe_receiver);
64580
+ tmp = Unit_getInstance();
64581
+ }
64582
+ var tmp2_elvis_lhs = tmp;
64583
+ var tmp_0;
64584
+ if (tmp2_elvis_lhs == null) {
64585
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
64586
+ var tmp_1;
64587
+ if (tmp1_safe_receiver == null) {
64588
+ tmp_1 = null;
64589
+ } else {
64590
+ var tmp$ret$1;
64591
+ // Inline function 'kotlin.let' call
64592
+ // Inline function 'kotlin.contracts.contract' call
64593
+ tmp$ret$1 = $reject(new VonageErrorJS(tmp1_safe_receiver));
64594
+ tmp_1 = Unit_getInstance();
64595
+ }
64596
+ tmp_0 = tmp_1;
64597
+ } else {
64598
+ tmp_0 = tmp2_elvis_lhs;
64599
+ }
64600
+ var tmp4_elvis_lhs = tmp_0;
64601
+ var tmp_2;
64602
+ if (tmp4_elvis_lhs == null) {
64603
+ var tmp3_elvis_lhs = err;
64604
+ tmp_2 = $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
64605
+ } else {
64606
+ tmp_2 = Unit_getInstance();
64704
64607
  }
64705
64608
  return Unit_getInstance();
64706
64609
  };
@@ -64714,11 +64617,41 @@ function requireClientsdkClientcore () {
64714
64617
  }
64715
64618
  function IVoiceClientJS$reconnectCall$lambda$lambda($reject, $resolve) {
64716
64619
  return function (err) {
64620
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64717
64621
  var tmp;
64718
- if (!(err == null)) {
64719
- tmp = $reject(err instanceof Error ? err : THROW_CCE());
64622
+ if (tmp0_safe_receiver == null) {
64623
+ tmp = null;
64720
64624
  } else {
64721
- tmp = $resolve(null);
64625
+ var tmp$ret$0;
64626
+ // Inline function 'kotlin.let' call
64627
+ // Inline function 'kotlin.contracts.contract' call
64628
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64629
+ tmp = Unit_getInstance();
64630
+ }
64631
+ var tmp2_elvis_lhs = tmp;
64632
+ var tmp_0;
64633
+ if (tmp2_elvis_lhs == null) {
64634
+ var tmp1_safe_receiver = err;
64635
+ var tmp_1;
64636
+ if (tmp1_safe_receiver == null) {
64637
+ tmp_1 = null;
64638
+ } else {
64639
+ var tmp$ret$1;
64640
+ // Inline function 'kotlin.let' call
64641
+ // Inline function 'kotlin.contracts.contract' call
64642
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64643
+ tmp_1 = Unit_getInstance();
64644
+ }
64645
+ tmp_0 = tmp_1;
64646
+ } else {
64647
+ tmp_0 = tmp2_elvis_lhs;
64648
+ }
64649
+ var tmp3_elvis_lhs = tmp_0;
64650
+ var tmp_2;
64651
+ if (tmp3_elvis_lhs == null) {
64652
+ tmp_2 = $resolve(null);
64653
+ } else {
64654
+ tmp_2 = Unit_getInstance();
64722
64655
  }
64723
64656
  return Unit_getInstance();
64724
64657
  };
@@ -64732,12 +64665,42 @@ function requireClientsdkClientcore () {
64732
64665
  }
64733
64666
  function IVoiceClientJS$getLeg$lambda$lambda($resolve, $reject) {
64734
64667
  return function (err, leg) {
64668
+ var tmp0_safe_receiver = leg;
64735
64669
  var tmp;
64736
- if (!(leg == null)) {
64737
- tmp = $resolve(new LegJS(leg));
64670
+ if (tmp0_safe_receiver == null) {
64671
+ tmp = null;
64672
+ } else {
64673
+ var tmp$ret$0;
64674
+ // Inline function 'kotlin.let' call
64675
+ // Inline function 'kotlin.contracts.contract' call
64676
+ tmp$ret$0 = $resolve(new LegJS(tmp0_safe_receiver));
64677
+ tmp = Unit_getInstance();
64678
+ }
64679
+ var tmp2_elvis_lhs = tmp;
64680
+ var tmp_0;
64681
+ if (tmp2_elvis_lhs == null) {
64682
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
64683
+ var tmp_1;
64684
+ if (tmp1_safe_receiver == null) {
64685
+ tmp_1 = null;
64686
+ } else {
64687
+ var tmp$ret$1;
64688
+ // Inline function 'kotlin.let' call
64689
+ // Inline function 'kotlin.contracts.contract' call
64690
+ tmp$ret$1 = $reject(new VonageErrorJS(tmp1_safe_receiver));
64691
+ tmp_1 = Unit_getInstance();
64692
+ }
64693
+ tmp_0 = tmp_1;
64694
+ } else {
64695
+ tmp_0 = tmp2_elvis_lhs;
64696
+ }
64697
+ var tmp4_elvis_lhs = tmp_0;
64698
+ var tmp_2;
64699
+ if (tmp4_elvis_lhs == null) {
64700
+ var tmp3_elvis_lhs = err;
64701
+ tmp_2 = $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
64738
64702
  } else {
64739
- var tmp0_elvis_lhs = err;
64740
- tmp = $reject(tmp0_elvis_lhs == null ? newThrowable('') : tmp0_elvis_lhs);
64703
+ tmp_2 = Unit_getInstance();
64741
64704
  }
64742
64705
  return Unit_getInstance();
64743
64706
  };
@@ -64750,12 +64713,42 @@ function requireClientsdkClientcore () {
64750
64713
  };
64751
64714
  }
64752
64715
  function IVoiceClientJS$answer$lambda$lambda($reject, $resolve) {
64753
- return function (it) {
64716
+ return function (err) {
64717
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64754
64718
  var tmp;
64755
- if (!(it == null)) {
64756
- tmp = $reject(it instanceof Error ? it : THROW_CCE());
64719
+ if (tmp0_safe_receiver == null) {
64720
+ tmp = null;
64721
+ } else {
64722
+ var tmp$ret$0;
64723
+ // Inline function 'kotlin.let' call
64724
+ // Inline function 'kotlin.contracts.contract' call
64725
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64726
+ tmp = Unit_getInstance();
64727
+ }
64728
+ var tmp2_elvis_lhs = tmp;
64729
+ var tmp_0;
64730
+ if (tmp2_elvis_lhs == null) {
64731
+ var tmp1_safe_receiver = err;
64732
+ var tmp_1;
64733
+ if (tmp1_safe_receiver == null) {
64734
+ tmp_1 = null;
64735
+ } else {
64736
+ var tmp$ret$1;
64737
+ // Inline function 'kotlin.let' call
64738
+ // Inline function 'kotlin.contracts.contract' call
64739
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64740
+ tmp_1 = Unit_getInstance();
64741
+ }
64742
+ tmp_0 = tmp_1;
64743
+ } else {
64744
+ tmp_0 = tmp2_elvis_lhs;
64745
+ }
64746
+ var tmp3_elvis_lhs = tmp_0;
64747
+ var tmp_2;
64748
+ if (tmp3_elvis_lhs == null) {
64749
+ tmp_2 = $resolve(null);
64757
64750
  } else {
64758
- tmp = $resolve(null);
64751
+ tmp_2 = Unit_getInstance();
64759
64752
  }
64760
64753
  return Unit_getInstance();
64761
64754
  };
@@ -64768,12 +64761,42 @@ function requireClientsdkClientcore () {
64768
64761
  };
64769
64762
  }
64770
64763
  function IVoiceClientJS$reject$lambda$lambda($reject, $resolve) {
64771
- return function (it) {
64764
+ return function (err) {
64765
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64772
64766
  var tmp;
64773
- if (!(it == null)) {
64774
- tmp = $reject(it instanceof Error ? it : THROW_CCE());
64767
+ if (tmp0_safe_receiver == null) {
64768
+ tmp = null;
64775
64769
  } else {
64776
- tmp = $resolve(null);
64770
+ var tmp$ret$0;
64771
+ // Inline function 'kotlin.let' call
64772
+ // Inline function 'kotlin.contracts.contract' call
64773
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64774
+ tmp = Unit_getInstance();
64775
+ }
64776
+ var tmp2_elvis_lhs = tmp;
64777
+ var tmp_0;
64778
+ if (tmp2_elvis_lhs == null) {
64779
+ var tmp1_safe_receiver = err;
64780
+ var tmp_1;
64781
+ if (tmp1_safe_receiver == null) {
64782
+ tmp_1 = null;
64783
+ } else {
64784
+ var tmp$ret$1;
64785
+ // Inline function 'kotlin.let' call
64786
+ // Inline function 'kotlin.contracts.contract' call
64787
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64788
+ tmp_1 = Unit_getInstance();
64789
+ }
64790
+ tmp_0 = tmp_1;
64791
+ } else {
64792
+ tmp_0 = tmp2_elvis_lhs;
64793
+ }
64794
+ var tmp3_elvis_lhs = tmp_0;
64795
+ var tmp_2;
64796
+ if (tmp3_elvis_lhs == null) {
64797
+ tmp_2 = $resolve(null);
64798
+ } else {
64799
+ tmp_2 = Unit_getInstance();
64777
64800
  }
64778
64801
  return Unit_getInstance();
64779
64802
  };
@@ -64785,14 +64808,43 @@ function requireClientsdkClientcore () {
64785
64808
  return Unit_getInstance();
64786
64809
  };
64787
64810
  }
64788
- function IVoiceClientJS$hangup$lambda$lambda($resolve, $reject) {
64789
- return function (it) {
64790
- var tmp0_subject = it;
64811
+ function IVoiceClientJS$hangup$lambda$lambda($reject, $resolve) {
64812
+ return function (err) {
64813
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64791
64814
  var tmp;
64792
- if (tmp0_subject == null) {
64793
- tmp = $resolve(null);
64815
+ if (tmp0_safe_receiver == null) {
64816
+ tmp = null;
64817
+ } else {
64818
+ var tmp$ret$0;
64819
+ // Inline function 'kotlin.let' call
64820
+ // Inline function 'kotlin.contracts.contract' call
64821
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64822
+ tmp = Unit_getInstance();
64823
+ }
64824
+ var tmp2_elvis_lhs = tmp;
64825
+ var tmp_0;
64826
+ if (tmp2_elvis_lhs == null) {
64827
+ var tmp1_safe_receiver = err;
64828
+ var tmp_1;
64829
+ if (tmp1_safe_receiver == null) {
64830
+ tmp_1 = null;
64831
+ } else {
64832
+ var tmp$ret$1;
64833
+ // Inline function 'kotlin.let' call
64834
+ // Inline function 'kotlin.contracts.contract' call
64835
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64836
+ tmp_1 = Unit_getInstance();
64837
+ }
64838
+ tmp_0 = tmp_1;
64839
+ } else {
64840
+ tmp_0 = tmp2_elvis_lhs;
64841
+ }
64842
+ var tmp3_elvis_lhs = tmp_0;
64843
+ var tmp_2;
64844
+ if (tmp3_elvis_lhs == null) {
64845
+ tmp_2 = $resolve(null);
64794
64846
  } else {
64795
- tmp = $reject(it instanceof Error ? it : THROW_CCE());
64847
+ tmp_2 = Unit_getInstance();
64796
64848
  }
64797
64849
  return Unit_getInstance();
64798
64850
  };
@@ -64800,17 +64852,47 @@ function requireClientsdkClientcore () {
64800
64852
  function IVoiceClientJS$hangup$lambda(this$0, $callId, $reasonText, $reasonCode) {
64801
64853
  return function (resolve, reject) {
64802
64854
  var tmp = this$0.core;
64803
- tmp.c18($callId, $reasonText, $reasonCode, IVoiceClientJS$hangup$lambda$lambda(resolve, reject));
64855
+ tmp.c18($callId, $reasonText, $reasonCode, IVoiceClientJS$hangup$lambda$lambda(reject, resolve));
64804
64856
  return Unit_getInstance();
64805
64857
  };
64806
64858
  }
64807
64859
  function IVoiceClientJS$say$lambda$lambda($reject, $resolve) {
64808
- return function (it) {
64860
+ return function (err) {
64861
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64809
64862
  var tmp;
64810
- if (!(it == null)) {
64811
- tmp = $reject(it instanceof Error ? it : THROW_CCE());
64863
+ if (tmp0_safe_receiver == null) {
64864
+ tmp = null;
64865
+ } else {
64866
+ var tmp$ret$0;
64867
+ // Inline function 'kotlin.let' call
64868
+ // Inline function 'kotlin.contracts.contract' call
64869
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64870
+ tmp = Unit_getInstance();
64871
+ }
64872
+ var tmp2_elvis_lhs = tmp;
64873
+ var tmp_0;
64874
+ if (tmp2_elvis_lhs == null) {
64875
+ var tmp1_safe_receiver = err;
64876
+ var tmp_1;
64877
+ if (tmp1_safe_receiver == null) {
64878
+ tmp_1 = null;
64879
+ } else {
64880
+ var tmp$ret$1;
64881
+ // Inline function 'kotlin.let' call
64882
+ // Inline function 'kotlin.contracts.contract' call
64883
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64884
+ tmp_1 = Unit_getInstance();
64885
+ }
64886
+ tmp_0 = tmp_1;
64812
64887
  } else {
64813
- tmp = $resolve(null);
64888
+ tmp_0 = tmp2_elvis_lhs;
64889
+ }
64890
+ var tmp3_elvis_lhs = tmp_0;
64891
+ var tmp_2;
64892
+ if (tmp3_elvis_lhs == null) {
64893
+ tmp_2 = $resolve(null);
64894
+ } else {
64895
+ tmp_2 = Unit_getInstance();
64814
64896
  }
64815
64897
  return Unit_getInstance();
64816
64898
  };
@@ -64834,12 +64916,42 @@ function requireClientsdkClientcore () {
64834
64916
  };
64835
64917
  }
64836
64918
  function IVoiceClientJS$mute$lambda$lambda($reject, $resolve) {
64837
- return function (it) {
64919
+ return function (err) {
64920
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64838
64921
  var tmp;
64839
- if (!(it == null)) {
64840
- tmp = $reject(it instanceof Error ? it : THROW_CCE());
64922
+ if (tmp0_safe_receiver == null) {
64923
+ tmp = null;
64841
64924
  } else {
64842
- tmp = $resolve(null);
64925
+ var tmp$ret$0;
64926
+ // Inline function 'kotlin.let' call
64927
+ // Inline function 'kotlin.contracts.contract' call
64928
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64929
+ tmp = Unit_getInstance();
64930
+ }
64931
+ var tmp2_elvis_lhs = tmp;
64932
+ var tmp_0;
64933
+ if (tmp2_elvis_lhs == null) {
64934
+ var tmp1_safe_receiver = err;
64935
+ var tmp_1;
64936
+ if (tmp1_safe_receiver == null) {
64937
+ tmp_1 = null;
64938
+ } else {
64939
+ var tmp$ret$1;
64940
+ // Inline function 'kotlin.let' call
64941
+ // Inline function 'kotlin.contracts.contract' call
64942
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64943
+ tmp_1 = Unit_getInstance();
64944
+ }
64945
+ tmp_0 = tmp_1;
64946
+ } else {
64947
+ tmp_0 = tmp2_elvis_lhs;
64948
+ }
64949
+ var tmp3_elvis_lhs = tmp_0;
64950
+ var tmp_2;
64951
+ if (tmp3_elvis_lhs == null) {
64952
+ tmp_2 = $resolve(null);
64953
+ } else {
64954
+ tmp_2 = Unit_getInstance();
64843
64955
  }
64844
64956
  return Unit_getInstance();
64845
64957
  };
@@ -64852,11 +64964,43 @@ function requireClientsdkClientcore () {
64852
64964
  };
64853
64965
  }
64854
64966
  function IVoiceClientJS$unmute$lambda$lambda($reject, $resolve) {
64855
- return function (it) {
64856
- if (!(it == null))
64857
- $reject(it);
64858
- else
64859
- $resolve(null);
64967
+ return function (err) {
64968
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
64969
+ var tmp;
64970
+ if (tmp0_safe_receiver == null) {
64971
+ tmp = null;
64972
+ } else {
64973
+ var tmp$ret$0;
64974
+ // Inline function 'kotlin.let' call
64975
+ // Inline function 'kotlin.contracts.contract' call
64976
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
64977
+ tmp = Unit_getInstance();
64978
+ }
64979
+ var tmp2_elvis_lhs = tmp;
64980
+ var tmp_0;
64981
+ if (tmp2_elvis_lhs == null) {
64982
+ var tmp1_safe_receiver = err;
64983
+ var tmp_1;
64984
+ if (tmp1_safe_receiver == null) {
64985
+ tmp_1 = null;
64986
+ } else {
64987
+ var tmp$ret$1;
64988
+ // Inline function 'kotlin.let' call
64989
+ // Inline function 'kotlin.contracts.contract' call
64990
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
64991
+ tmp_1 = Unit_getInstance();
64992
+ }
64993
+ tmp_0 = tmp_1;
64994
+ } else {
64995
+ tmp_0 = tmp2_elvis_lhs;
64996
+ }
64997
+ var tmp3_elvis_lhs = tmp_0;
64998
+ var tmp_2;
64999
+ if (tmp3_elvis_lhs == null) {
65000
+ tmp_2 = $resolve(null);
65001
+ } else {
65002
+ tmp_2 = Unit_getInstance();
65003
+ }
64860
65004
  return Unit_getInstance();
64861
65005
  };
64862
65006
  }
@@ -64868,11 +65012,43 @@ function requireClientsdkClientcore () {
64868
65012
  };
64869
65013
  }
64870
65014
  function IVoiceClientJS$enableEarmuff$lambda$lambda($reject, $resolve) {
64871
- return function (it) {
64872
- if (!(it == null))
64873
- $reject(it);
64874
- else
64875
- $resolve(null);
65015
+ return function (err) {
65016
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
65017
+ var tmp;
65018
+ if (tmp0_safe_receiver == null) {
65019
+ tmp = null;
65020
+ } else {
65021
+ var tmp$ret$0;
65022
+ // Inline function 'kotlin.let' call
65023
+ // Inline function 'kotlin.contracts.contract' call
65024
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
65025
+ tmp = Unit_getInstance();
65026
+ }
65027
+ var tmp2_elvis_lhs = tmp;
65028
+ var tmp_0;
65029
+ if (tmp2_elvis_lhs == null) {
65030
+ var tmp1_safe_receiver = err;
65031
+ var tmp_1;
65032
+ if (tmp1_safe_receiver == null) {
65033
+ tmp_1 = null;
65034
+ } else {
65035
+ var tmp$ret$1;
65036
+ // Inline function 'kotlin.let' call
65037
+ // Inline function 'kotlin.contracts.contract' call
65038
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
65039
+ tmp_1 = Unit_getInstance();
65040
+ }
65041
+ tmp_0 = tmp_1;
65042
+ } else {
65043
+ tmp_0 = tmp2_elvis_lhs;
65044
+ }
65045
+ var tmp3_elvis_lhs = tmp_0;
65046
+ var tmp_2;
65047
+ if (tmp3_elvis_lhs == null) {
65048
+ tmp_2 = $resolve(null);
65049
+ } else {
65050
+ tmp_2 = Unit_getInstance();
65051
+ }
64876
65052
  return Unit_getInstance();
64877
65053
  };
64878
65054
  }
@@ -64884,11 +65060,43 @@ function requireClientsdkClientcore () {
64884
65060
  };
64885
65061
  }
64886
65062
  function IVoiceClientJS$disableEarmuff$lambda$lambda($reject, $resolve) {
64887
- return function (it) {
64888
- if (!(it == null))
64889
- $reject(it);
64890
- else
64891
- $resolve(null);
65063
+ return function (err) {
65064
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
65065
+ var tmp;
65066
+ if (tmp0_safe_receiver == null) {
65067
+ tmp = null;
65068
+ } else {
65069
+ var tmp$ret$0;
65070
+ // Inline function 'kotlin.let' call
65071
+ // Inline function 'kotlin.contracts.contract' call
65072
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
65073
+ tmp = Unit_getInstance();
65074
+ }
65075
+ var tmp2_elvis_lhs = tmp;
65076
+ var tmp_0;
65077
+ if (tmp2_elvis_lhs == null) {
65078
+ var tmp1_safe_receiver = err;
65079
+ var tmp_1;
65080
+ if (tmp1_safe_receiver == null) {
65081
+ tmp_1 = null;
65082
+ } else {
65083
+ var tmp$ret$1;
65084
+ // Inline function 'kotlin.let' call
65085
+ // Inline function 'kotlin.contracts.contract' call
65086
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
65087
+ tmp_1 = Unit_getInstance();
65088
+ }
65089
+ tmp_0 = tmp_1;
65090
+ } else {
65091
+ tmp_0 = tmp2_elvis_lhs;
65092
+ }
65093
+ var tmp3_elvis_lhs = tmp_0;
65094
+ var tmp_2;
65095
+ if (tmp3_elvis_lhs == null) {
65096
+ tmp_2 = $resolve(null);
65097
+ } else {
65098
+ tmp_2 = Unit_getInstance();
65099
+ }
64892
65100
  return Unit_getInstance();
64893
65101
  };
64894
65102
  }
@@ -64900,11 +65108,43 @@ function requireClientsdkClientcore () {
64900
65108
  };
64901
65109
  }
64902
65110
  function IVoiceClientJS$sendDTMF$lambda$lambda($reject, $resolve) {
64903
- return function (it) {
64904
- if (!(it == null))
64905
- $reject(it);
64906
- else
64907
- $resolve(null);
65111
+ return function (err) {
65112
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
65113
+ var tmp;
65114
+ if (tmp0_safe_receiver == null) {
65115
+ tmp = null;
65116
+ } else {
65117
+ var tmp$ret$0;
65118
+ // Inline function 'kotlin.let' call
65119
+ // Inline function 'kotlin.contracts.contract' call
65120
+ tmp$ret$0 = $reject(new VonageErrorJS(tmp0_safe_receiver));
65121
+ tmp = Unit_getInstance();
65122
+ }
65123
+ var tmp2_elvis_lhs = tmp;
65124
+ var tmp_0;
65125
+ if (tmp2_elvis_lhs == null) {
65126
+ var tmp1_safe_receiver = err;
65127
+ var tmp_1;
65128
+ if (tmp1_safe_receiver == null) {
65129
+ tmp_1 = null;
65130
+ } else {
65131
+ var tmp$ret$1;
65132
+ // Inline function 'kotlin.let' call
65133
+ // Inline function 'kotlin.contracts.contract' call
65134
+ tmp$ret$1 = $reject(tmp1_safe_receiver);
65135
+ tmp_1 = Unit_getInstance();
65136
+ }
65137
+ tmp_0 = tmp_1;
65138
+ } else {
65139
+ tmp_0 = tmp2_elvis_lhs;
65140
+ }
65141
+ var tmp3_elvis_lhs = tmp_0;
65142
+ var tmp_2;
65143
+ if (tmp3_elvis_lhs == null) {
65144
+ tmp_2 = $resolve(null);
65145
+ } else {
65146
+ tmp_2 = Unit_getInstance();
65147
+ }
64908
65148
  return Unit_getInstance();
64909
65149
  };
64910
65150
  }
@@ -64933,13 +65173,13 @@ function requireClientsdkClientcore () {
64933
65173
  protoOf(VoiceInviteFromInfoJS).s2 = function () {
64934
65174
  return this.type;
64935
65175
  };
64936
- protoOf(VoiceInviteFromInfoJS).w3n = function (id, type) {
65176
+ protoOf(VoiceInviteFromInfoJS).c3k = function (id, type) {
64937
65177
  return new VoiceInviteFromInfoJS(id, type);
64938
65178
  };
64939
65179
  protoOf(VoiceInviteFromInfoJS).copy = function (id, type, $super) {
64940
65180
  id = id === VOID ? this.id : id;
64941
65181
  type = type === VOID ? this.type : type;
64942
- return this.w3n(id, type);
65182
+ return this.c3k(id, type);
64943
65183
  };
64944
65184
  protoOf(VoiceInviteFromInfoJS).toString = function () {
64945
65185
  return 'VoiceInviteFromInfoJS(id=' + this.id + ', type=' + this.type + ')';
@@ -65053,41 +65293,41 @@ function requireClientsdkClientcore () {
65053
65293
  cause = cause === VOID ? null : cause;
65054
65294
  extendThrowable(this);
65055
65295
  captureStack(this, HttpClientErrorJS);
65056
- this.x3n_1 = message;
65057
- this.y3n_1 = cause;
65296
+ this.d3k_1 = message;
65297
+ this.e3k_1 = cause;
65058
65298
  }
65059
65299
  protoOf(HttpClientErrorJS).i5 = function () {
65060
- return this.x3n_1;
65300
+ return this.d3k_1;
65061
65301
  };
65062
65302
  protoOf(HttpClientErrorJS).j5 = function () {
65063
- return this.y3n_1;
65303
+ return this.e3k_1;
65064
65304
  };
65065
- protoOf(HttpClientErrorJS).z3n = function () {
65066
- var tmp0_elvis_lhs = this.x3n_1;
65305
+ protoOf(HttpClientErrorJS).f3k = function () {
65306
+ var tmp0_elvis_lhs = this.d3k_1;
65067
65307
  var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
65068
- var tmp_0 = this.y3n_1;
65308
+ var tmp_0 = this.e3k_1;
65069
65309
  return new HTTPClientError(tmp, tmp_0 instanceof Exception ? tmp_0 : null);
65070
65310
  };
65071
65311
  protoOf(HttpClientErrorJS).r2 = function () {
65072
- return this.x3n_1;
65312
+ return this.d3k_1;
65073
65313
  };
65074
65314
  protoOf(HttpClientErrorJS).s2 = function () {
65075
- return this.y3n_1;
65315
+ return this.e3k_1;
65076
65316
  };
65077
- protoOf(HttpClientErrorJS).a3o = function (message, cause) {
65317
+ protoOf(HttpClientErrorJS).g3k = function (message, cause) {
65078
65318
  return new HttpClientErrorJS(message, cause);
65079
65319
  };
65080
65320
  protoOf(HttpClientErrorJS).copy = function (message, cause, $super) {
65081
- message = message === VOID ? this.x3n_1 : message;
65082
- cause = cause === VOID ? this.y3n_1 : cause;
65083
- return this.a3o(message, cause);
65321
+ message = message === VOID ? this.d3k_1 : message;
65322
+ cause = cause === VOID ? this.e3k_1 : cause;
65323
+ return this.g3k(message, cause);
65084
65324
  };
65085
65325
  protoOf(HttpClientErrorJS).toString = function () {
65086
- return 'HttpClientErrorJS(message=' + this.x3n_1 + ', cause=' + this.y3n_1 + ')';
65326
+ return 'HttpClientErrorJS(message=' + this.d3k_1 + ', cause=' + this.e3k_1 + ')';
65087
65327
  };
65088
65328
  protoOf(HttpClientErrorJS).hashCode = function () {
65089
- var result = this.x3n_1 == null ? 0 : getStringHashCode(this.x3n_1);
65090
- result = imul(result, 31) + (this.y3n_1 == null ? 0 : hashCode(this.y3n_1)) | 0;
65329
+ var result = this.d3k_1 == null ? 0 : getStringHashCode(this.d3k_1);
65330
+ result = imul(result, 31) + (this.e3k_1 == null ? 0 : hashCode(this.e3k_1)) | 0;
65091
65331
  return result;
65092
65332
  };
65093
65333
  protoOf(HttpClientErrorJS).equals = function (other) {
@@ -65096,9 +65336,9 @@ function requireClientsdkClientcore () {
65096
65336
  if (!(other instanceof HttpClientErrorJS))
65097
65337
  return false;
65098
65338
  var tmp0_other_with_cast = other instanceof HttpClientErrorJS ? other : THROW_CCE();
65099
- if (!(this.x3n_1 == tmp0_other_with_cast.x3n_1))
65339
+ if (!(this.d3k_1 == tmp0_other_with_cast.d3k_1))
65100
65340
  return false;
65101
- if (!equals(this.y3n_1, tmp0_other_with_cast.y3n_1))
65341
+ if (!equals(this.e3k_1, tmp0_other_with_cast.e3k_1))
65102
65342
  return false;
65103
65343
  return true;
65104
65344
  };
@@ -65108,13 +65348,13 @@ function requireClientsdkClientcore () {
65108
65348
  defineProp(protoOf(HttpClientErrorJS), 'cause', function () {
65109
65349
  return this.j5();
65110
65350
  }, VOID);
65111
- defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).z3n, VOID);
65351
+ defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).f3k, VOID);
65112
65352
  function HttpClientResponseJS(statusCode, body) {
65113
65353
  body = body === VOID ? null : body;
65114
65354
  this.statusCode = statusCode;
65115
65355
  this.body = body;
65116
65356
  }
65117
- protoOf(HttpClientResponseJS).b3o = function () {
65357
+ protoOf(HttpClientResponseJS).h3k = function () {
65118
65358
  return this.statusCode;
65119
65359
  };
65120
65360
  protoOf(HttpClientResponseJS).b3f = function () {
@@ -65126,13 +65366,13 @@ function requireClientsdkClientcore () {
65126
65366
  protoOf(HttpClientResponseJS).s2 = function () {
65127
65367
  return this.body;
65128
65368
  };
65129
- protoOf(HttpClientResponseJS).c3o = function (statusCode, body) {
65369
+ protoOf(HttpClientResponseJS).i3k = function (statusCode, body) {
65130
65370
  return new HttpClientResponseJS(statusCode, body);
65131
65371
  };
65132
65372
  protoOf(HttpClientResponseJS).copy = function (statusCode, body, $super) {
65133
65373
  statusCode = statusCode === VOID ? this.statusCode : statusCode;
65134
65374
  body = body === VOID ? this.body : body;
65135
- return this.c3o(statusCode, body);
65375
+ return this.i3k(statusCode, body);
65136
65376
  };
65137
65377
  protoOf(HttpClientResponseJS).toString = function () {
65138
65378
  return 'HttpClientResponseJS(statusCode=' + this.statusCode + ', body=' + this.body + ')';
@@ -65235,31 +65475,31 @@ function requireClientsdkClientcore () {
65235
65475
  this.packet_cnt = packet_cnt;
65236
65476
  this.packet_loss_perc = packet_loss_perc;
65237
65477
  }
65238
- protoOf(RTCQualityJS).f3o = function () {
65478
+ protoOf(RTCQualityJS).l3k = function () {
65239
65479
  return this.mos_score;
65240
65480
  };
65241
- protoOf(RTCQualityJS).g3o = function () {
65481
+ protoOf(RTCQualityJS).m3k = function () {
65242
65482
  return this.quality_percentage;
65243
65483
  };
65244
- protoOf(RTCQualityJS).h3o = function () {
65484
+ protoOf(RTCQualityJS).n3k = function () {
65245
65485
  return this.jitter_min_var;
65246
65486
  };
65247
- protoOf(RTCQualityJS).i3o = function () {
65487
+ protoOf(RTCQualityJS).o3k = function () {
65248
65488
  return this.jitter_max_var;
65249
65489
  };
65250
- protoOf(RTCQualityJS).j3o = function () {
65490
+ protoOf(RTCQualityJS).p3k = function () {
65251
65491
  return this.jitter_loss_rate;
65252
65492
  };
65253
- protoOf(RTCQualityJS).k3o = function () {
65493
+ protoOf(RTCQualityJS).q3k = function () {
65254
65494
  return this.jitter_burst_rate;
65255
65495
  };
65256
- protoOf(RTCQualityJS).l3o = function () {
65496
+ protoOf(RTCQualityJS).r3k = function () {
65257
65497
  return this.flaw_total;
65258
65498
  };
65259
- protoOf(RTCQualityJS).m3o = function () {
65499
+ protoOf(RTCQualityJS).s3k = function () {
65260
65500
  return this.packet_cnt;
65261
65501
  };
65262
- protoOf(RTCQualityJS).n3o = function () {
65502
+ protoOf(RTCQualityJS).t3k = function () {
65263
65503
  return this.packet_loss_perc;
65264
65504
  };
65265
65505
  protoOf(RTCQualityJS).r2 = function () {
@@ -65268,28 +65508,28 @@ function requireClientsdkClientcore () {
65268
65508
  protoOf(RTCQualityJS).s2 = function () {
65269
65509
  return this.quality_percentage;
65270
65510
  };
65271
- protoOf(RTCQualityJS).o3o = function () {
65511
+ protoOf(RTCQualityJS).u3k = function () {
65272
65512
  return this.jitter_min_var;
65273
65513
  };
65274
- protoOf(RTCQualityJS).p3o = function () {
65514
+ protoOf(RTCQualityJS).v3k = function () {
65275
65515
  return this.jitter_max_var;
65276
65516
  };
65277
- protoOf(RTCQualityJS).q3o = function () {
65517
+ protoOf(RTCQualityJS).w3k = function () {
65278
65518
  return this.jitter_loss_rate;
65279
65519
  };
65280
- protoOf(RTCQualityJS).r3o = function () {
65520
+ protoOf(RTCQualityJS).x3k = function () {
65281
65521
  return this.jitter_burst_rate;
65282
65522
  };
65283
- protoOf(RTCQualityJS).s3o = function () {
65523
+ protoOf(RTCQualityJS).y3k = function () {
65284
65524
  return this.flaw_total;
65285
65525
  };
65286
- protoOf(RTCQualityJS).t3o = function () {
65526
+ protoOf(RTCQualityJS).z3k = function () {
65287
65527
  return this.packet_cnt;
65288
65528
  };
65289
- protoOf(RTCQualityJS).u3o = function () {
65529
+ protoOf(RTCQualityJS).a3l = function () {
65290
65530
  return this.packet_loss_perc;
65291
65531
  };
65292
- 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) {
65532
+ 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) {
65293
65533
  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);
65294
65534
  };
65295
65535
  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) {
@@ -65302,7 +65542,7 @@ function requireClientsdkClientcore () {
65302
65542
  flaw_total = flaw_total === VOID ? this.flaw_total : flaw_total;
65303
65543
  packet_cnt = packet_cnt === VOID ? this.packet_cnt : packet_cnt;
65304
65544
  packet_loss_perc = packet_loss_perc === VOID ? this.packet_loss_perc : packet_loss_perc;
65305
- 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);
65545
+ 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);
65306
65546
  };
65307
65547
  protoOf(RTCQualityJS).toString = function () {
65308
65548
  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 + ')';
@@ -65369,34 +65609,34 @@ function requireClientsdkClientcore () {
65369
65609
  this.audioRtt = audioRtt;
65370
65610
  this.audioSentJitter = audioSentJitter;
65371
65611
  }
65372
- protoOf(RTCStatsJS).w3o = function () {
65612
+ protoOf(RTCStatsJS).c3l = function () {
65373
65613
  return this.audioRecvPackets;
65374
65614
  };
65375
- protoOf(RTCStatsJS).x3o = function () {
65615
+ protoOf(RTCStatsJS).d3l = function () {
65376
65616
  return this.audioRecvPacketsLost;
65377
65617
  };
65378
- protoOf(RTCStatsJS).y3o = function () {
65618
+ protoOf(RTCStatsJS).e3l = function () {
65379
65619
  return this.audioRecvBytes;
65380
65620
  };
65381
- protoOf(RTCStatsJS).z3o = function () {
65621
+ protoOf(RTCStatsJS).f3l = function () {
65382
65622
  return this.audioRecvJitter;
65383
65623
  };
65384
- protoOf(RTCStatsJS).a3p = function () {
65624
+ protoOf(RTCStatsJS).g3l = function () {
65385
65625
  return this.audioSentPackets;
65386
65626
  };
65387
- protoOf(RTCStatsJS).b3p = function () {
65627
+ protoOf(RTCStatsJS).h3l = function () {
65388
65628
  return this.audioSentBytes;
65389
65629
  };
65390
- protoOf(RTCStatsJS).c3p = function () {
65630
+ protoOf(RTCStatsJS).i3l = function () {
65391
65631
  return this.audioSentPacketsLost;
65392
65632
  };
65393
- protoOf(RTCStatsJS).d3p = function () {
65633
+ protoOf(RTCStatsJS).j3l = function () {
65394
65634
  return this.audioRtt;
65395
65635
  };
65396
- protoOf(RTCStatsJS).e3p = function () {
65636
+ protoOf(RTCStatsJS).k3l = function () {
65397
65637
  return this.audioSentJitter;
65398
65638
  };
65399
- protoOf(RTCStatsJS).f3p = function () {
65639
+ protoOf(RTCStatsJS).l3l = function () {
65400
65640
  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));
65401
65641
  };
65402
65642
  protoOf(RTCStatsJS).r2 = function () {
@@ -65405,28 +65645,28 @@ function requireClientsdkClientcore () {
65405
65645
  protoOf(RTCStatsJS).s2 = function () {
65406
65646
  return this.audioRecvPacketsLost;
65407
65647
  };
65408
- protoOf(RTCStatsJS).o3o = function () {
65648
+ protoOf(RTCStatsJS).u3k = function () {
65409
65649
  return this.audioRecvBytes;
65410
65650
  };
65411
- protoOf(RTCStatsJS).p3o = function () {
65651
+ protoOf(RTCStatsJS).v3k = function () {
65412
65652
  return this.audioRecvJitter;
65413
65653
  };
65414
- protoOf(RTCStatsJS).q3o = function () {
65654
+ protoOf(RTCStatsJS).w3k = function () {
65415
65655
  return this.audioSentPackets;
65416
65656
  };
65417
- protoOf(RTCStatsJS).r3o = function () {
65657
+ protoOf(RTCStatsJS).x3k = function () {
65418
65658
  return this.audioSentBytes;
65419
65659
  };
65420
- protoOf(RTCStatsJS).s3o = function () {
65660
+ protoOf(RTCStatsJS).y3k = function () {
65421
65661
  return this.audioSentPacketsLost;
65422
65662
  };
65423
- protoOf(RTCStatsJS).t3o = function () {
65663
+ protoOf(RTCStatsJS).z3k = function () {
65424
65664
  return this.audioRtt;
65425
65665
  };
65426
- protoOf(RTCStatsJS).u3o = function () {
65666
+ protoOf(RTCStatsJS).a3l = function () {
65427
65667
  return this.audioSentJitter;
65428
65668
  };
65429
- protoOf(RTCStatsJS).g3p = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
65669
+ protoOf(RTCStatsJS).m3l = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
65430
65670
  return new RTCStatsJS(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
65431
65671
  };
65432
65672
  protoOf(RTCStatsJS).copy = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, $super) {
@@ -65439,7 +65679,7 @@ function requireClientsdkClientcore () {
65439
65679
  audioSentPacketsLost = audioSentPacketsLost === VOID ? this.audioSentPacketsLost : audioSentPacketsLost;
65440
65680
  audioRtt = audioRtt === VOID ? this.audioRtt : audioRtt;
65441
65681
  audioSentJitter = audioSentJitter === VOID ? this.audioSentJitter : audioSentJitter;
65442
- return this.g3p(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
65682
+ return this.m3l(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
65443
65683
  };
65444
65684
  protoOf(RTCStatsJS).toString = function () {
65445
65685
  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) + ')';
@@ -65545,7 +65785,7 @@ function requireClientsdkClientcore () {
65545
65785
  };
65546
65786
  }
65547
65787
  function HttpClientJSAdapter$1($js) {
65548
- this.h3p_1 = $js;
65788
+ this.n3l_1 = $js;
65549
65789
  }
65550
65790
  protoOf(HttpClientJSAdapter$1).t35 = function (verb, url, headers, body, callback) {
65551
65791
  var tmp = verb.toString();
@@ -65553,7 +65793,7 @@ function requireClientsdkClientcore () {
65553
65793
  // Inline function 'kotlin.contracts.contract' call
65554
65794
  // Inline function 'vonage.<no name provided>.request.<anonymous>' call
65555
65795
  var tmp_0 = fromMap(JSON, headers);
65556
- this.h3p_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
65796
+ this.n3l_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
65557
65797
  };
65558
65798
  function SocketClientJSAdapter$o$emit$lambda($callback) {
65559
65799
  return function (err, response) {
@@ -65576,11 +65816,11 @@ function requireClientsdkClientcore () {
65576
65816
  };
65577
65817
  }
65578
65818
  function SocketClientJSAdapter$adapter$1($js) {
65579
- this.j3p_1 = $js;
65580
- this.i3p_1 = null;
65819
+ this.p3l_1 = $js;
65820
+ this.o3l_1 = null;
65581
65821
  }
65582
65822
  protoOf(SocketClientJSAdapter$adapter$1).c36 = function (_set____db54di) {
65583
- this.i3p_1 = _set____db54di;
65823
+ this.o3l_1 = _set____db54di;
65584
65824
  };
65585
65825
  protoOf(SocketClientJSAdapter$adapter$1).w35 = function (type, msg, callback) {
65586
65826
  var tmp;
@@ -65593,28 +65833,28 @@ function requireClientsdkClientcore () {
65593
65833
  tmp = fromMap(JSON, msg);
65594
65834
  }
65595
65835
  var tmp_0 = tmp;
65596
- this.j3p_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
65836
+ this.p3l_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
65597
65837
  };
65598
65838
  protoOf(SocketClientJSAdapter$adapter$1).x35 = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query) {
65599
- this.j3p_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
65839
+ this.p3l_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
65600
65840
  };
65601
65841
  protoOf(SocketClientJSAdapter$adapter$1).y35 = function () {
65602
- this.j3p_1.disconnect();
65842
+ this.p3l_1.disconnect();
65603
65843
  };
65604
65844
  protoOf(SocketClientJSAdapter$adapter$1).z35 = function (sessionId, token) {
65605
- this.j3p_1.setConnectParamsSocketConfig(sessionId, token);
65845
+ this.p3l_1.setConnectParamsSocketConfig(sessionId, token);
65606
65846
  };
65607
65847
  protoOf(SocketClientJSAdapter$adapter$1).a36 = function (sessionId) {
65608
- this.j3p_1.setSocketSessionId(sessionId);
65848
+ this.p3l_1.setSocketSessionId(sessionId);
65609
65849
  };
65610
65850
  protoOf(SocketClientJSAdapter$adapter$1).b36 = function (milliseconds, callback) {
65611
- this.j3p_1.startVerifyResponseTimer(milliseconds, callback);
65851
+ this.p3l_1.startVerifyResponseTimer(milliseconds, callback);
65612
65852
  };
65613
65853
  function SocketClientJSAdapter$1($adapter) {
65614
- this.k3p_1 = $adapter;
65854
+ this.q3l_1 = $adapter;
65615
65855
  }
65616
65856
  protoOf(SocketClientJSAdapter$1).didReceiveNewSocketEvent = function (body) {
65617
- var tmp0_safe_receiver = this.k3p_1.i3p_1;
65857
+ var tmp0_safe_receiver = this.q3l_1.o3l_1;
65618
65858
  if (tmp0_safe_receiver == null)
65619
65859
  null;
65620
65860
  else {
@@ -65646,7 +65886,7 @@ function requireClientsdkClientcore () {
65646
65886
  var tmp;
65647
65887
  switch (reason) {
65648
65888
  case 'NXMCORE_REASON_SERVER_DISCONNECTED':
65649
- var tmp1_safe_receiver_0 = this.k3p_1.i3p_1;
65889
+ var tmp1_safe_receiver_0 = this.q3l_1.o3l_1;
65650
65890
  var tmp_0;
65651
65891
  if (tmp1_safe_receiver_0 == null) {
65652
65892
  tmp_0 = null;
@@ -65658,7 +65898,7 @@ function requireClientsdkClientcore () {
65658
65898
  tmp = tmp_0;
65659
65899
  break;
65660
65900
  case 'NXMCORE_REASON_CLIENT_DISCONNECTED':
65661
- var tmp2_safe_receiver = this.k3p_1.i3p_1;
65901
+ var tmp2_safe_receiver = this.q3l_1.o3l_1;
65662
65902
  var tmp_1;
65663
65903
  if (tmp2_safe_receiver == null) {
65664
65904
  tmp_1 = null;
@@ -65670,7 +65910,7 @@ function requireClientsdkClientcore () {
65670
65910
  tmp = tmp_1;
65671
65911
  break;
65672
65912
  case 'NXMCORE_CLIENT_NETWORK_ERROR':
65673
- var tmp3_safe_receiver = this.k3p_1.i3p_1;
65913
+ var tmp3_safe_receiver = this.q3l_1.o3l_1;
65674
65914
  var tmp_2;
65675
65915
  if (tmp3_safe_receiver == null) {
65676
65916
  tmp_2 = null;
@@ -65682,7 +65922,7 @@ function requireClientsdkClientcore () {
65682
65922
  tmp = tmp_2;
65683
65923
  break;
65684
65924
  case 'NXMCORE_REASON_PING_TIMEOUT':
65685
- var tmp4_safe_receiver = this.k3p_1.i3p_1;
65925
+ var tmp4_safe_receiver = this.q3l_1.o3l_1;
65686
65926
  var tmp_3;
65687
65927
  if (tmp4_safe_receiver == null) {
65688
65928
  tmp_3 = null;
@@ -65694,7 +65934,7 @@ function requireClientsdkClientcore () {
65694
65934
  tmp = tmp_3;
65695
65935
  break;
65696
65936
  default:
65697
- var tmp5_safe_receiver = this.k3p_1.i3p_1;
65937
+ var tmp5_safe_receiver = this.q3l_1.o3l_1;
65698
65938
  var tmp_4;
65699
65939
  if (tmp5_safe_receiver == null) {
65700
65940
  tmp_4 = null;
@@ -65709,52 +65949,52 @@ function requireClientsdkClientcore () {
65709
65949
  }
65710
65950
  };
65711
65951
  function MediaClientJSAdapter$adapter$1($js) {
65712
- this.m3p_1 = $js;
65713
- this.l3p_1 = null;
65952
+ this.s3l_1 = $js;
65953
+ this.r3l_1 = null;
65714
65954
  }
65715
65955
  protoOf(MediaClientJSAdapter$adapter$1).m36 = function (_set____db54di) {
65716
- this.l3p_1 = _set____db54di;
65956
+ this.r3l_1 = _set____db54di;
65717
65957
  };
65718
65958
  protoOf(MediaClientJSAdapter$adapter$1).f36 = function (closure) {
65719
- this.m3p_1.enableMediaOutbound(closure);
65959
+ this.s3l_1.enableMediaOutbound(closure);
65720
65960
  };
65721
- protoOf(MediaClientJSAdapter$adapter$1).n3p = function (closure, offerSDP, rtcId) {
65722
- this.m3p_1.enableMediaInbound(closure, offerSDP, rtcId);
65961
+ protoOf(MediaClientJSAdapter$adapter$1).t3l = function (closure, offerSDP, rtcId) {
65962
+ this.s3l_1.enableMediaInbound(closure, offerSDP, rtcId);
65723
65963
  };
65724
65964
  protoOf(MediaClientJSAdapter$adapter$1).g36 = function (closure, offerSDP, rtcId) {
65725
- return this.n3p(closure, offerSDP, rtcId);
65965
+ return this.t3l(closure, offerSDP, rtcId);
65726
65966
  };
65727
65967
  protoOf(MediaClientJSAdapter$adapter$1).h36 = function (id, sdp) {
65728
- this.m3p_1.processAnswer(id, sdp);
65968
+ this.s3l_1.processAnswer(id, sdp);
65729
65969
  };
65730
65970
  protoOf(MediaClientJSAdapter$adapter$1).i36 = function (id) {
65731
- this.m3p_1.disableMedia(id);
65971
+ this.s3l_1.disableMedia(id);
65732
65972
  };
65733
65973
  protoOf(MediaClientJSAdapter$adapter$1).j36 = function (id) {
65734
- this.m3p_1.mute(id);
65974
+ this.s3l_1.mute(id);
65735
65975
  };
65736
65976
  protoOf(MediaClientJSAdapter$adapter$1).k36 = function (id) {
65737
- this.m3p_1.unmute(id);
65977
+ this.s3l_1.unmute(id);
65738
65978
  };
65739
65979
  protoOf(MediaClientJSAdapter$adapter$1).l36 = function (interval, mediaId) {
65740
- this.m3p_1.enableRtcStatsCollection(interval, mediaId);
65980
+ this.s3l_1.enableRtcStatsCollection(interval, mediaId);
65741
65981
  };
65742
65982
  function MediaClientJSAdapter$1($adapter) {
65743
- this.o3p_1 = $adapter;
65983
+ this.u3l_1 = $adapter;
65744
65984
  }
65745
65985
  protoOf(MediaClientJSAdapter$1).onRtcStats = function (rtcStats, legId) {
65746
- var tmp0_safe_receiver = this.o3p_1.l3p_1;
65986
+ var tmp0_safe_receiver = this.u3l_1.r3l_1;
65747
65987
  if (tmp0_safe_receiver == null)
65748
65988
  null;
65749
65989
  else {
65750
- tmp0_safe_receiver.c39(rtcStats.f3p(), legId);
65990
+ tmp0_safe_receiver.c39(rtcStats.l3l(), legId);
65751
65991
  }
65752
65992
  };
65753
65993
  protoOf(MediaClientJSAdapter$1).onConnectionChange = function (id, status) {
65754
65994
  switch (status) {
65755
65995
  case 'new':
65756
65996
  case 'checking':
65757
- var tmp1_safe_receiver = this.o3p_1.l3p_1;
65997
+ var tmp1_safe_receiver = this.u3l_1.r3l_1;
65758
65998
  if (tmp1_safe_receiver == null)
65759
65999
  null;
65760
66000
  else {
@@ -65763,7 +66003,7 @@ function requireClientsdkClientcore () {
65763
66003
 
65764
66004
  break;
65765
66005
  case 'connecting':
65766
- var tmp2_safe_receiver = this.o3p_1.l3p_1;
66006
+ var tmp2_safe_receiver = this.u3l_1.r3l_1;
65767
66007
  if (tmp2_safe_receiver == null)
65768
66008
  null;
65769
66009
  else {
@@ -65772,7 +66012,7 @@ function requireClientsdkClientcore () {
65772
66012
 
65773
66013
  break;
65774
66014
  case 'connected':
65775
- var tmp3_safe_receiver = this.o3p_1.l3p_1;
66015
+ var tmp3_safe_receiver = this.u3l_1.r3l_1;
65776
66016
  if (tmp3_safe_receiver == null)
65777
66017
  null;
65778
66018
  else {
@@ -65781,7 +66021,7 @@ function requireClientsdkClientcore () {
65781
66021
 
65782
66022
  break;
65783
66023
  case 'disconnected':
65784
- var tmp4_safe_receiver = this.o3p_1.l3p_1;
66024
+ var tmp4_safe_receiver = this.u3l_1.r3l_1;
65785
66025
  if (tmp4_safe_receiver == null)
65786
66026
  null;
65787
66027
  else {
@@ -65790,7 +66030,7 @@ function requireClientsdkClientcore () {
65790
66030
 
65791
66031
  break;
65792
66032
  case 'closed':
65793
- var tmp5_safe_receiver = this.o3p_1.l3p_1;
66033
+ var tmp5_safe_receiver = this.u3l_1.r3l_1;
65794
66034
  if (tmp5_safe_receiver == null)
65795
66035
  null;
65796
66036
  else {
@@ -65799,7 +66039,7 @@ function requireClientsdkClientcore () {
65799
66039
 
65800
66040
  break;
65801
66041
  case 'failed':
65802
- var tmp6_safe_receiver = this.o3p_1.l3p_1;
66042
+ var tmp6_safe_receiver = this.u3l_1.r3l_1;
65803
66043
  if (tmp6_safe_receiver == null)
65804
66044
  null;
65805
66045
  else {
@@ -65808,7 +66048,7 @@ function requireClientsdkClientcore () {
65808
66048
 
65809
66049
  break;
65810
66050
  default:
65811
- var tmp7_safe_receiver = this.o3p_1.l3p_1;
66051
+ var tmp7_safe_receiver = this.u3l_1.r3l_1;
65812
66052
  if (tmp7_safe_receiver == null)
65813
66053
  null;
65814
66054
  else {
@@ -66034,12 +66274,12 @@ function requireClientsdkClientcore () {
66034
66274
  protoOf(Some).r2 = function () {
66035
66275
  return this.value;
66036
66276
  };
66037
- protoOf(Some).p3p = function (value) {
66277
+ protoOf(Some).v3l = function (value) {
66038
66278
  return new Some(value);
66039
66279
  };
66040
66280
  protoOf(Some).copy = function (value, $super) {
66041
66281
  value = value === VOID ? this.value : value;
66042
- return this.p3p(value);
66282
+ return this.v3l(value);
66043
66283
  };
66044
66284
  protoOf(Some).toString = function () {
66045
66285
  return 'Some(value=' + this.value + ')';
@@ -66281,24 +66521,24 @@ function requireClientsdkClientcore () {
66281
66521
  $vonage.EventDeleteConversationEventJS = EventDeleteConversationEventJS;
66282
66522
  var $vonage = _.vonage || (_.vonage = {});
66283
66523
  $vonage.MessageTextEventJS = MessageTextEventJS;
66284
- $vonage.MessageTextEventJS.Body = Body;
66524
+ $vonage.MessageTextEventJS.MessageTextEventBody = MessageTextEventBody;
66285
66525
  $vonage.MessageCustomEventJS = MessageCustomEventJS;
66286
- $vonage.MessageCustomEventJS.Body = Body_0;
66526
+ $vonage.MessageCustomEventJS.MessageCustomEventBody = MessageCustomEventBody;
66287
66527
  $vonage.MessageAudioEventJS = MessageAudioEventJS;
66288
- $vonage.MessageAudioEventJS.Body = Body_1;
66528
+ $vonage.MessageAudioEventJS.MessageAudioEventBody = MessageAudioEventBody;
66289
66529
  $vonage.MessageVideoEventJS = MessageVideoEventJS;
66290
- $vonage.MessageVideoEventJS.Body = Body_2;
66530
+ $vonage.MessageVideoEventJS.MessageVideoEventBody = MessageVideoEventBody;
66291
66531
  $vonage.MessageImageEventJS = MessageImageEventJS;
66292
- $vonage.MessageImageEventJS.Body = Body_3;
66532
+ $vonage.MessageImageEventJS.MessageImageEventBody = MessageImageEventBody;
66293
66533
  $vonage.MessageFileEventJS = MessageFileEventJS;
66294
- $vonage.MessageFileEventJS.Body = Body_4;
66534
+ $vonage.MessageFileEventJS.MessageFileEventBody = MessageFileEventBody;
66295
66535
  $vonage.MessageVCardEventJS = MessageVCardEventJS;
66296
- $vonage.MessageVCardEventJS.Body = Body_5;
66536
+ $vonage.MessageVCardEventJS.MessageVCardEventBody = MessageVCardEventBody;
66297
66537
  $vonage.MessageLocationEventJS = MessageLocationEventJS;
66298
- $vonage.MessageLocationEventJS.Body = Body_6;
66538
+ $vonage.MessageLocationEventJS.MessageLocationEventBody = MessageLocationEventBody;
66299
66539
  $vonage.MessageLocationEventJS.Location = Location_0;
66300
66540
  $vonage.MessageTemplateEventJS = MessageTemplateEventJS;
66301
- $vonage.MessageTemplateEventJS.Body = Body_7;
66541
+ $vonage.MessageTemplateEventJS.MessageTemplateEventBody = MessageTemplateEventBody;
66302
66542
  $vonage.MessageTemplateEventJS.TemplateObject = TemplateObject_0;
66303
66543
  $vonage.MessageTemplateEventJS.WhatsappObject = WhatsappObject_0;
66304
66544
  var $vonage = _.vonage || (_.vonage = {});
@@ -66957,18 +67197,21 @@ class SocketClient {
66957
67197
  }
66958
67198
  }
66959
67199
 
67200
+ /**
67201
+ * A group of Topics that a {@link VonageLogger} can subscribe to
67202
+ */
66960
67203
  const Topics = clientsdkClientcore_jsExports.vonage.Topics;
66961
67204
  const Topic = clientsdkClientcore_jsExports.vonage.TopicJS;
66962
67205
  const LoggingLevel = clientsdkClientcore_jsExports.vonage.LoggingLevelJS;
66963
67206
  /**
66964
- * @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
67207
+ * @deprecated Use {@link ClientInitConfigObject.loggingLevel} instead.
66965
67208
  * @param level - The logging level to set.
66966
67209
  */
66967
67210
  const setDefaultLoggingLevel = (level) => {
66968
67211
  clientsdkClientcore_jsExports.vonage.setDefaultLoggingLevel(level instanceof LoggingLevel ? level : LoggingLevel[level]);
66969
67212
  };
66970
67213
  /**
66971
- * @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
67214
+ * @deprecated Use {@link ClientInitConfigObject.loggingLevel} instead.
66972
67215
  * @param level - The logging level to set.
66973
67216
  */
66974
67217
  const setVonageClientLoggingLevel = setDefaultLoggingLevel;
@@ -66987,15 +67230,6 @@ const createVonageLogger = (name, onLog, minLogLevel, topics) => clientsdkClient
66987
67230
  : undefined, topics === null || topics === void 0 ? void 0 : topics.map((topic) => (topic instanceof Topics ? topic : Topics[topic])), (level, topic, message) => onLog(level, topic, message));
66988
67231
 
66989
67232
  const ConfigRegion = clientsdkClientcore_jsExports.vonage.CoreClientConfigRegionJS;
66990
- /**
66991
- * Represents the configuration object for the client.
66992
- *
66993
- * The `ClientConfig` class provides a convenient way to configure the client by specifying various properties.
66994
- * These properties control different aspects of the client's behavior, such as API URLs, media reoffer, and WebSocket settings.
66995
- *
66996
- * @example
66997
- * [[include:snippet_setClientConfig.txt]]
66998
- */
66999
67233
  class ClientConfig extends clientsdkClientcore_jsExports.vonage.CoreClientConfigJS {
67000
67234
  /**
67001
67235
  * Constructs a new instance of the class.
@@ -67043,15 +67277,16 @@ const convertInitConfig = (config) => {
67043
67277
  : null });
67044
67278
  };
67045
67279
 
67046
- const ChannelType = clientsdkClientcore_jsExports.vonage.ChannelTypeJS;
67047
- const PresentingOrder = clientsdkClientcore_jsExports.vonage.PresentingOrderJS;
67048
- const OrderBy = clientsdkClientcore_jsExports.vonage.OrderByJS;
67280
+ const ChannelType = clientsdkClientcore_jsExports.vonage.ChannelTypeJS;
67049
67281
 
67050
67282
  const VonageError = clientsdkClientcore_jsExports.vonage.VonageErrorJS;
67051
67283
  const VonageErrorType = clientsdkClientcore_jsExports.vonage.VonageErrorTypeJS;
67052
67284
  const CSErrorCodes = clientsdkClientcore_jsExports.vonage.CSErrorCodesJS;
67053
67285
  const SessionErrorCodes = clientsdkClientcore_jsExports.vonage.SessionErrorCodesJS;
67054
67286
 
67287
+ const PresentingOrder = clientsdkClientcore_jsExports.vonage.PresentingOrderJS;
67288
+ const OrderBy = clientsdkClientcore_jsExports.vonage.OrderByJS;
67289
+
67055
67290
  const Option = clientsdkClientcore_jsExports.vonage.utils.OptionJS;
67056
67291
  const mapOption = (value) => {
67057
67292
  if (value == null)
@@ -67060,7 +67295,15 @@ const mapOption = (value) => {
67060
67295
  return new Option.None();
67061
67296
  return new Option.Some(value);
67062
67297
  };
67298
+ /**
67299
+ * @param value The wrapped value
67300
+ * @returns An {@link Option.Some}
67301
+ */
67063
67302
  const some = (value) => new Option.Some(value);
67303
+ /**
67304
+ *
67305
+ * @returns An {@link Option.None}
67306
+ */
67064
67307
  const none = () => new Option.None();
67065
67308
 
67066
67309
  const CancelReason = clientsdkClientcore_jsExports.vonage.CancelReasonJS;
@@ -67170,8 +67413,8 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67170
67413
  * @param callback - the callback to register for the event
67171
67414
  * @returns a symbol that can be used to unregister the callback
67172
67415
  * @remarks
67173
- * Besure to store the symbol returned by this method so you can unregister the callback later.
67174
- * We recommend deregistering callbacks when you no longer need them. See {@link off}.
67416
+ * Be sure to store the symbol returned by this method so you can unregister the callback later.
67417
+ * We recommend unregistering callbacks when you no longer need them. See {@link off}.
67175
67418
  */
67176
67419
  on(event, callback) {
67177
67420
  const callbackSymbol = Symbol(event);
@@ -67523,7 +67766,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67523
67766
  * @group Chat
67524
67767
  * @beta
67525
67768
  * @param id - the Conversation's id
67526
- * @param name - the namne of the user to invite
67769
+ * @param name - the name of the user to invite
67527
67770
  * @returns the `memberId` of the member
67528
67771
  */
67529
67772
  inviteToConversation(id, name) {
@@ -67701,7 +67944,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67701
67944
  * Send a template message to a Conversation.
67702
67945
  *
67703
67946
  * @example
67704
- * [[include: snippet_SendMessageTemplateEvent.txt]]
67947
+ * [[include: snippet_SendTemplateMessage.txt]]
67705
67948
  *
67706
67949
  * @group Chat
67707
67950
  * @beta
@@ -67750,7 +67993,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67750
67993
  * @group Chat
67751
67994
  * @beta
67752
67995
  * @param id - the Conversation's id
67753
- * @param type - the type of the custom event. Type must start with `custom:<...>`
67996
+ * @param evenType - the type of the custom event. Type must start with `custom:<...>`
67754
67997
  * @param customData - the body of the event
67755
67998
  * @returns the `timestamp` of the message
67756
67999
  */