@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
@@ -18974,7 +18974,6 @@
18974
18974
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
18975
18975
  var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.m;
18976
18976
  var numberToLong = kotlin_kotlin.$_$.i6;
18977
- var Exception_init_$Create$ = kotlin_kotlin.$_$.z;
18978
18977
  var Map = kotlin_kotlin.$_$.v2;
18979
18978
  var MutableMap = kotlin_kotlin.$_$.x2;
18980
18979
  var getKClassFromExpression = kotlin_kotlin.$_$.d;
@@ -18994,6 +18993,7 @@
18994
18993
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
18995
18994
  var listOf = kotlin_kotlin.$_$.f4;
18996
18995
  var listOf_0 = kotlin_kotlin.$_$.e4;
18996
+ var Exception_init_$Create$ = kotlin_kotlin.$_$.z;
18997
18997
  var replaceFirst = kotlin_kotlin.$_$.f7;
18998
18998
  var charSequenceLength = kotlin_kotlin.$_$.c5;
18999
18999
  var Exception_init_$Init$_1 = kotlin_kotlin.$_$.y;
@@ -19600,6 +19600,9 @@
19600
19600
  function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
19601
19601
  }
19602
19602
  setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
19603
+ function onConversationEvent(event) {
19604
+ }
19605
+ setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
19603
19606
  function onAudioSay() {
19604
19607
  }
19605
19608
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -19609,10 +19612,7 @@
19609
19612
  function onAudioDTMFUpdate(conversationId, legId, digits) {
19610
19613
  }
19611
19614
  setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
19612
- function onConversationEvent(event) {
19613
- }
19614
- setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
19615
- setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
19615
+ setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
19616
19616
  setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
19617
19617
  setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
19618
19618
  setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
@@ -19622,8 +19622,10 @@
19622
19622
  setMetadataFor(CSErrorCodes, 'CSErrorCodes', objectMeta);
19623
19623
  setMetadataFor(InternalError, 'InternalError', classMeta, Exception);
19624
19624
  setMetadataFor(CustomLoggersLimitReached, 'CustomLoggersLimitReached', classMeta, InternalError);
19625
+ setMetadataFor(MediaTimeout, 'MediaTimeout', classMeta, InternalError);
19625
19626
  setMetadataFor(NoInviteFound, 'NoInviteFound', classMeta, InternalError);
19626
19627
  setMetadataFor(InvalidCallAction, 'InvalidCallAction', classMeta, InternalError);
19628
+ setMetadataFor(NoOfferFound, 'NoOfferFound', classMeta, InternalError);
19627
19629
  setMetadataFor(InboundCallFailed, 'InboundCallFailed', classMeta, InternalError);
19628
19630
  setMetadataFor(NoCallFound, 'NoCallFound', classMeta, InternalError);
19629
19631
  setMetadataFor(AuthorizationError_0, 'AuthorizationError', classMeta, InternalError);
@@ -19631,8 +19633,8 @@
19631
19633
  setMetadataFor(NoConversationFound, 'NoConversationFound', classMeta, InternalError);
19632
19634
  setMetadataFor(NoLegFound, 'NoLegFound', classMeta, InternalError);
19633
19635
  setMetadataFor(IllegalArgumentException_0, 'IllegalArgumentException', classMeta, InternalError);
19634
- setMetadataFor(UnexpectedNullValue, 'UnexpectedNullValue', classMeta, InternalError);
19635
19636
  setMetadataFor(ServiceTempNotAvailable, 'ServiceTempNotAvailable', classMeta, InternalError);
19637
+ setMetadataFor(UnexpectedNullValue, 'UnexpectedNullValue', classMeta, InternalError);
19636
19638
  setMetadataFor(ServiceNotAvailable, 'ServiceNotAvailable', classMeta, InternalError);
19637
19639
  setMetadataFor(ParsingException, 'ParsingException', classMeta, InternalError);
19638
19640
  setMetadataFor(SessionErrorCodes, 'SessionErrorCodes', objectMeta);
@@ -19719,7 +19721,7 @@
19719
19721
  setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
19720
19722
  setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
19721
19723
  setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
19722
- setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, AudioEventListener, ConversationEventListener]);
19724
+ setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
19723
19725
  setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
19724
19726
  setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
19725
19727
  setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
@@ -42940,12 +42942,11 @@
42940
42942
  function ChatAPIImpl$updateConversation$lambda($callback) {
42941
42943
  return function (response) {
42942
42944
  var tmp0_subject = response;
42943
- if (tmp0_subject instanceof Exception) {
42944
- $callback(toVonageError(response), null);
42945
+ if (tmp0_subject instanceof GetConversation) {
42946
+ $callback(null, Companion_getInstance_127().z2j(response));
42945
42947
  } else {
42946
- if (tmp0_subject instanceof GetConversation) {
42947
- $callback(null, Companion_getInstance_127().z2j(response));
42948
- }
42948
+ invokeCallbackWithError(response, $callback);
42949
+ Unit_getInstance();
42949
42950
  }
42950
42951
  return Unit_getInstance();
42951
42952
  };
@@ -43159,7 +43160,7 @@
43159
43160
  // Inline function 'kotlin.run' call
43160
43161
  // Inline function 'kotlin.contracts.contract' call
43161
43162
  var message = 'At least one between text, imageUrl, videoUrl, audioUrl, fileUrl, vCardUrl or customBody must be provided.';
43162
- $callback(toVonageError(new IllegalArgumentException_0(message)), null);
43163
+ invokeCallbackWithError(new IllegalArgumentException_0(message), $callback);
43163
43164
  return Unit_getInstance();
43164
43165
  tmp_1 = tmp$ret$0;
43165
43166
  } else {
@@ -43169,7 +43170,7 @@
43169
43170
  } catch ($p) {
43170
43171
  if ($p instanceof IllegalArgumentException) {
43171
43172
  var error = $p;
43172
- $callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
43173
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), $callback);
43173
43174
  return Unit_getInstance();
43174
43175
  } else {
43175
43176
  throw $p;
@@ -43209,7 +43210,7 @@
43209
43210
  } catch ($p) {
43210
43211
  if ($p instanceof IllegalArgumentException) {
43211
43212
  var error = $p;
43212
- $callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
43213
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), $callback);
43213
43214
  return Unit_getInstance();
43214
43215
  } else {
43215
43216
  throw $p;
@@ -43249,7 +43250,7 @@
43249
43250
  } catch ($p) {
43250
43251
  if ($p instanceof IllegalArgumentException) {
43251
43252
  var error = $p;
43252
- $callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
43253
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), $callback);
43253
43254
  return Unit_getInstance();
43254
43255
  } else {
43255
43256
  throw $p;
@@ -43314,7 +43315,7 @@
43314
43315
  } catch ($p) {
43315
43316
  if ($p instanceof IllegalArgumentException) {
43316
43317
  var error = $p;
43317
- callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
43318
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), callback);
43318
43319
  return Unit_getInstance();
43319
43320
  } else {
43320
43321
  throw $p;
@@ -43332,7 +43333,7 @@
43332
43333
  } catch ($p) {
43333
43334
  if ($p instanceof IllegalArgumentException) {
43334
43335
  var error = $p;
43335
- callback(toVonageError(new IllegalArgumentException_0(VOID, error)), null);
43336
+ invokeCallbackWithError(new IllegalArgumentException_0(VOID, error), callback);
43336
43337
  return Unit_getInstance();
43337
43338
  } else {
43338
43339
  throw $p;
@@ -43445,20 +43446,6 @@
43445
43446
  var tmp = new GetMyMemberRequest(cid);
43446
43447
  this.q2j_1.c1a(new Action_0(tmp, new ActionMeta(VOID, VOID, ChatAPIImpl$deleteEvent$lambda(this, id, cid, callback))));
43447
43448
  };
43448
- function invokeCallbackWithError(e, callback) {
43449
- if (e instanceof Exception)
43450
- callback(toVonageError(e), null);
43451
- else {
43452
- callback(toVonageError(new UnexpectedNullValue()), null);
43453
- }
43454
- }
43455
- function invokeCallbackWithError_0(e, callback) {
43456
- if (e instanceof Exception)
43457
- callback(toVonageError(e));
43458
- else {
43459
- callback(toVonageError(new UnexpectedNullValue()));
43460
- }
43461
- }
43462
43449
  var LoggingLevel_Verbose_instance;
43463
43450
  var LoggingLevel_Debug_instance;
43464
43451
  var LoggingLevel_Info_instance;
@@ -43583,7 +43570,8 @@
43583
43570
  return function (response) {
43584
43571
  var tmp0_subject = response;
43585
43572
  if (tmp0_subject instanceof Exception) {
43586
- $callback(toVonageError(response), null);
43573
+ invokeCallbackWithError(response, $callback);
43574
+ Unit_getInstance();
43587
43575
  } else {
43588
43576
  if (tmp0_subject instanceof GetConversation) {
43589
43577
  var tmp1_safe_receiver = response.b1k_1;
@@ -43604,7 +43592,8 @@
43604
43592
  return function (response) {
43605
43593
  var tmp0_subject = response;
43606
43594
  if (tmp0_subject instanceof Exception) {
43607
- $callback(toVonageError(response), null);
43595
+ invokeCallbackWithError(response, $callback);
43596
+ Unit_getInstance();
43608
43597
  } else {
43609
43598
  if (tmp0_subject instanceof GetUser) {
43610
43599
  var tmp1_safe_receiver = response.e1q_1;
@@ -43712,6 +43701,10 @@
43712
43701
  InternalError.call(this, 'internal:error:custom_loggers_limit_exceeded', 'Exceeded Max number of Custom Client Loggers. Provided: ' + provided + ', Limit: ' + limit);
43713
43702
  captureStack(this, CustomLoggersLimitReached);
43714
43703
  }
43704
+ function MediaTimeout() {
43705
+ InternalError.call(this, 'voice:error:media_timeout', 'Media Timeout');
43706
+ captureStack(this, MediaTimeout);
43707
+ }
43715
43708
  function NoInviteFound() {
43716
43709
  InternalError.call(this, 'voice:error:no_invite_found', 'No invite found');
43717
43710
  captureStack(this, NoInviteFound);
@@ -43720,6 +43713,10 @@
43720
43713
  InternalError.call(this, 'voice:error:invalid_call_action', 'Invalid call action');
43721
43714
  captureStack(this, InvalidCallAction);
43722
43715
  }
43716
+ function NoOfferFound() {
43717
+ InternalError.call(this, 'voice:error:no_offer_found', 'No offer found');
43718
+ captureStack(this, NoOfferFound);
43719
+ }
43723
43720
  function InboundCallFailed(cause) {
43724
43721
  cause = cause === VOID ? null : cause;
43725
43722
  InternalError.call(this, 'voice:error:inbound_call_failed', 'Inbound call failed', cause);
@@ -43752,10 +43749,6 @@
43752
43749
  InternalError.call(this, 'internal:error:illegal_argument_exception', message == null ? 'Incorrect arguments provided to method' : message, cause);
43753
43750
  captureStack(this, IllegalArgumentException_0);
43754
43751
  }
43755
- function UnexpectedNullValue() {
43756
- InternalError.call(this, 'internal:error:unexpected_null_value', 'Unexpected Null Value');
43757
- captureStack(this, UnexpectedNullValue);
43758
- }
43759
43752
  function InternalError(code, message, cause) {
43760
43753
  message = message === VOID ? null : message;
43761
43754
  cause = cause === VOID ? null : cause;
@@ -43767,6 +43760,10 @@
43767
43760
  InternalError.call(this, 'internal:error:serviceNotAvailable', 'ServiceTempNotAvailable');
43768
43761
  captureStack(this, ServiceTempNotAvailable);
43769
43762
  }
43763
+ function UnexpectedNullValue() {
43764
+ InternalError.call(this, 'internal:error:unexpected_null_value', 'Unexpected Null Value');
43765
+ captureStack(this, UnexpectedNullValue);
43766
+ }
43770
43767
  function ServiceNotAvailable(statusCode) {
43771
43768
  statusCode = statusCode === VOID ? 500 : statusCode;
43772
43769
  InternalError.call(this, 'internal:error:service_no_available', 'ServiceNotAvailable:' + statusCode);
@@ -43826,16 +43823,8 @@
43826
43823
  new SessionErrorMessages();
43827
43824
  return SessionErrorMessages_instance;
43828
43825
  }
43829
- function VonageError_init_$Init$($this) {
43830
- VonageError.call($this, VonageErrorType_UNKNOWN_ERROR_getInstance());
43831
- return $this;
43832
- }
43833
- function VonageError_init_$Create$() {
43834
- var tmp = VonageError_init_$Init$(objectCreate(protoOf(VonageError)));
43835
- captureStack(tmp, VonageError_init_$Create$);
43836
- return tmp;
43837
- }
43838
43826
  function VonageError(type, code, message, cause) {
43827
+ type = type === VOID ? VonageErrorType_UNKNOWN_ERROR_getInstance() : type;
43839
43828
  code = code === VOID ? null : code;
43840
43829
  message = message === VOID ? null : message;
43841
43830
  cause = cause === VOID ? null : cause;
@@ -43844,9 +43833,6 @@
43844
43833
  this.i2o_1 = type;
43845
43834
  this.j2o_1 = code;
43846
43835
  }
43847
- protoOf(VonageError).toString = function () {
43848
- return 'VonageError(type=' + this.i2o_1 + ', code=' + this.j2o_1 + ', message=' + this.message + ', cause=' + this.cause + ')';
43849
- };
43850
43836
  var VonageErrorType_CS_ERROR_instance;
43851
43837
  var VonageErrorType_SESSION_ERROR_instance;
43852
43838
  var VonageErrorType_INTERNAL_ERROR_instance;
@@ -43870,49 +43856,69 @@
43870
43856
  }
43871
43857
  function toVonageError(_this__u8e3s4) {
43872
43858
  var tmp;
43873
- if (_this__u8e3s4 instanceof SessionError) {
43874
- var tmp_0 = VonageErrorType_SESSION_ERROR_getInstance();
43875
- var tmp_1 = _this__u8e3s4.j2d();
43876
- var tmp_2 = _this__u8e3s4.i5();
43877
- var tmp1_elvis_lhs = _this__u8e3s4.cause;
43878
- tmp = new VonageError(tmp_0, tmp_1, tmp_2, tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs);
43859
+ if (_this__u8e3s4 instanceof VonageError) {
43860
+ tmp = _this__u8e3s4;
43879
43861
  } else {
43880
- if (_this__u8e3s4 instanceof CSError) {
43881
- var tmp_3 = VonageErrorType_CS_ERROR_getInstance();
43882
- var tmp2_safe_receiver = _this__u8e3s4.x1i_1;
43883
- var tmp_4;
43884
- if (tmp2_safe_receiver == null) {
43885
- tmp_4 = null;
43886
- } else {
43887
- // Inline function 'kotlin.let' call
43888
- // Inline function 'kotlin.contracts.contract' call
43889
- // Inline function 'com.vonage.clientcore.core.api.errors.toVonageError.<anonymous>' call
43890
- tmp_4 = 'Invalid Parameters:' + tmp2_safe_receiver;
43891
- }
43892
- tmp = new VonageError(tmp_3, _this__u8e3s4.u1i_1, _this__u8e3s4.v1i_1 + ' - ' + tmp_4);
43862
+ if (_this__u8e3s4 instanceof SessionError) {
43863
+ var tmp_0 = VonageErrorType_SESSION_ERROR_getInstance();
43864
+ var tmp_1 = _this__u8e3s4.j2d();
43865
+ var tmp_2 = _this__u8e3s4.i5();
43866
+ var tmp1_elvis_lhs = _this__u8e3s4.cause;
43867
+ tmp = new VonageError(tmp_0, tmp_1, tmp_2, tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs);
43893
43868
  } else {
43894
- if (_this__u8e3s4 instanceof HTTPClientError) {
43895
- tmp = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), VOID, _this__u8e3s4.message, _this__u8e3s4);
43869
+ if (_this__u8e3s4 instanceof CSError) {
43870
+ var tmp_3 = VonageErrorType_CS_ERROR_getInstance();
43871
+ var tmp2_safe_receiver = _this__u8e3s4.x1i_1;
43872
+ var tmp_4;
43873
+ if (tmp2_safe_receiver == null) {
43874
+ tmp_4 = null;
43875
+ } else {
43876
+ // Inline function 'kotlin.let' call
43877
+ // Inline function 'kotlin.contracts.contract' call
43878
+ // Inline function 'com.vonage.clientcore.core.api.errors.toVonageError.<anonymous>' call
43879
+ tmp_4 = 'Invalid Parameters:' + tmp2_safe_receiver;
43880
+ }
43881
+ tmp = new VonageError(tmp_3, _this__u8e3s4.u1i_1, _this__u8e3s4.v1i_1 + ' - ' + tmp_4);
43896
43882
  } else {
43897
- if (_this__u8e3s4 instanceof InternalError) {
43898
- var tmp_5;
43899
- if (_this__u8e3s4 instanceof ServiceTempNotAvailable) {
43900
- tmp_5 = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4);
43883
+ if (_this__u8e3s4 instanceof HTTPClientError) {
43884
+ tmp = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), VOID, _this__u8e3s4.message, _this__u8e3s4);
43885
+ } else {
43886
+ if (_this__u8e3s4 instanceof InternalError) {
43887
+ var tmp_5;
43888
+ if (_this__u8e3s4 instanceof ServiceTempNotAvailable) {
43889
+ tmp_5 = new VonageError(VonageErrorType_NETWORK_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4);
43890
+ } else {
43891
+ tmp_5 = new VonageError(VonageErrorType_INTERNAL_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4.cause);
43892
+ }
43893
+ tmp = tmp_5;
43901
43894
  } else {
43902
- tmp_5 = new VonageError(VonageErrorType_INTERNAL_ERROR_getInstance(), _this__u8e3s4.b2n_1, _this__u8e3s4.message, _this__u8e3s4.cause);
43895
+ var tmp_6 = VonageErrorType_UNKNOWN_ERROR_getInstance();
43896
+ var tmp_7 = _this__u8e3s4.message;
43897
+ var tmp4_elvis_lhs = _this__u8e3s4.cause;
43898
+ tmp = new VonageError(tmp_6, null, tmp_7, tmp4_elvis_lhs == null ? _this__u8e3s4 : tmp4_elvis_lhs);
43903
43899
  }
43904
- tmp = tmp_5;
43905
- } else {
43906
- var tmp_6 = VonageErrorType_UNKNOWN_ERROR_getInstance();
43907
- var tmp_7 = _this__u8e3s4.message;
43908
- var tmp4_elvis_lhs = _this__u8e3s4.cause;
43909
- tmp = new VonageError(tmp_6, null, tmp_7, tmp4_elvis_lhs == null ? _this__u8e3s4 : tmp4_elvis_lhs);
43910
43900
  }
43911
43901
  }
43912
43902
  }
43913
43903
  }
43914
43904
  return tmp;
43915
43905
  }
43906
+ function invokeCallbackWithError(e, callback) {
43907
+ if (e instanceof Exception)
43908
+ callback(toVonageError(e), null);
43909
+ else {
43910
+ callback(toVonageError(new UnexpectedNullValue()), null);
43911
+ }
43912
+ }
43913
+ function invokeCallbackWithError_0(e, callback) {
43914
+ return invokeCallbackWithError(e, invokeCallbackWithError$lambda(callback));
43915
+ }
43916
+ function invokeCallbackWithError$lambda($callback) {
43917
+ return function (exception, _anonymous_parameter_1__qggqgd) {
43918
+ $callback(exception);
43919
+ return Unit_getInstance();
43920
+ };
43921
+ }
43916
43922
  function VonageErrorType_CS_ERROR_getInstance() {
43917
43923
  VonageErrorType_initEntries();
43918
43924
  return VonageErrorType_CS_ERROR_instance;
@@ -46985,7 +46991,8 @@
46985
46991
  function SessionAPIImpl$createSession$lambda($callback, this$0, $token, $sessionId) {
46986
46992
  return function (e) {
46987
46993
  if (!(e == null)) {
46988
- $callback(new SessionNoActiveSessionError(), null);
46994
+ invokeCallbackWithError(new SessionNoActiveSessionError(), $callback);
46995
+ Unit_getInstance();
46989
46996
  } else {
46990
46997
  onCreateSession(this$0, $callback);
46991
46998
  this$0.z2v_1.c1a(Action_init_$Create$(new SocketConnect($token, $sessionId)));
@@ -46998,7 +47005,8 @@
46998
47005
  return function (it) {
46999
47006
  var tmp0_subject = it;
47000
47007
  if (tmp0_subject instanceof Exception) {
47001
- $callback(it);
47008
+ invokeCallbackWithError_0(it, $callback);
47009
+ Unit_getInstance();
47002
47010
  } else {
47003
47011
  this$0.z2v_1.c1a(Action_init_$Create$(new SocketSetSession($sessionId, $token)));
47004
47012
  $callback(null);
@@ -47109,7 +47117,8 @@
47109
47117
  if (state.g2w_1.r2e_1.equals(SocketConnectionStatus_Connected_getInstance())) {
47110
47118
  this$0.z2v_1.c1a(Action_init_$Create$(SocketDisconnect_getInstance()));
47111
47119
  }
47112
- $callback(s.p2w_1.q2_1, null);
47120
+ invokeCallbackWithError(s.p2w_1.q2_1, $callback);
47121
+ Unit_getInstance();
47113
47122
  } else {
47114
47123
  if (s instanceof Resolved) {
47115
47124
  var tmp1_safe_receiver = $cleanup._v;
@@ -47194,7 +47203,7 @@
47194
47203
  var tmp0_elvis_lhs = this.z2v_1.t2o(getKClass(SessionReducer));
47195
47204
  var tmp;
47196
47205
  if (tmp0_elvis_lhs == null) {
47197
- return callback(new SessionFailedInternalError(), null);
47206
+ return invokeCallbackWithError(new SessionFailedInternalError(), callback);
47198
47207
  } else {
47199
47208
  tmp = tmp0_elvis_lhs;
47200
47209
  }
@@ -47212,13 +47221,13 @@
47212
47221
  var tmp0_elvis_lhs = this.z2v_1.t2o(getKClass(SessionReducer));
47213
47222
  var tmp;
47214
47223
  if (tmp0_elvis_lhs == null) {
47215
- return callback(new SessionFailedInternalError());
47224
+ return invokeCallbackWithError_0(new SessionFailedInternalError(), callback);
47216
47225
  } else {
47217
47226
  tmp = tmp0_elvis_lhs;
47218
47227
  }
47219
47228
  var state = tmp;
47220
47229
  if (state.f2w_1.f1().n1z() == null)
47221
- return callback(new SessionNoActiveSessionError());
47230
+ return invokeCallbackWithError_0(new SessionNoActiveSessionError(), callback);
47222
47231
  onDeleteSession(this, callback);
47223
47232
  this.z2v_1.c1a(Action_init_$Create$(DeleteSession_getInstance()));
47224
47233
  this.z2v_1.c1a(Action_init_$Create$(SocketDisconnect_getInstance()));
@@ -47227,13 +47236,13 @@
47227
47236
  var tmp0_elvis_lhs = this.z2v_1.t2o(getKClass(SessionReducer));
47228
47237
  var tmp;
47229
47238
  if (tmp0_elvis_lhs == null) {
47230
- return callback(new SessionFailedInternalError());
47239
+ return invokeCallbackWithError_0(new SessionFailedInternalError(), callback);
47231
47240
  } else {
47232
47241
  tmp = tmp0_elvis_lhs;
47233
47242
  }
47234
47243
  var state = tmp;
47235
47244
  if (state.f2w_1.f1().n1z() == null)
47236
- return callback(new SessionNoActiveSessionError());
47245
+ return invokeCallbackWithError_0(new SessionNoActiveSessionError(), callback);
47237
47246
  var sessionId = ensureNotNull(state.f2w_1.f1().n1z());
47238
47247
  var tmp_0 = new UpdateSessionRequest(sessionId, token);
47239
47248
  this.z2v_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, SessionAPIImpl$refreshSession$lambda(callback, this, sessionId, token))));
@@ -47377,7 +47386,7 @@
47377
47386
  var tmp0_elvis_lhs = getCallStateByLeg($this, callId);
47378
47387
  var tmp;
47379
47388
  if (tmp0_elvis_lhs == null) {
47380
- return toVonageError(new NoCallFound());
47389
+ return new NoCallFound();
47381
47390
  } else {
47382
47391
  tmp = tmp0_elvis_lhs;
47383
47392
  }
@@ -47388,7 +47397,7 @@
47388
47397
  action(callMemberShipState.n2x_1, callMemberShipState.o2x_1);
47389
47398
  tmp_0 = null;
47390
47399
  } else {
47391
- tmp_0 = toVonageError(new InvalidCallAction());
47400
+ tmp_0 = new InvalidCallAction();
47392
47401
  }
47393
47402
  return tmp_0;
47394
47403
  }
@@ -47578,7 +47587,7 @@
47578
47587
  ;
47579
47588
  else
47580
47589
  tmp1_safe_receiver();
47581
- $callback(toVonageError(Exception_init_$Create$('Media Timeout')), null);
47590
+ invokeCallbackWithError(new MediaTimeout(), $callback);
47582
47591
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
47583
47592
  Unit_getInstance();
47584
47593
  } else {
@@ -47607,7 +47616,8 @@
47607
47616
  var tmp0_subject = it;
47608
47617
  if (tmp0_subject instanceof Exception) {
47609
47618
  this$0.q2x_1.c1a(Action_init_$Create$(new CallKnockingRequestFailure($tmp0_safe_receiver.h2x_1, it)));
47610
- $callback(toVonageError(it), null);
47619
+ invokeCallbackWithError(it, $callback);
47620
+ Unit_getInstance();
47611
47621
  } else {
47612
47622
  var tmp_0 = getKClass(CallReducer);
47613
47623
  $cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$serverCall$lambda$lambda$lambda$lambda$lambda($tmp0_safe_receiver, $cancel, $callback, this$0, $legId));
@@ -47655,7 +47665,7 @@
47655
47665
  ;
47656
47666
  else
47657
47667
  tmp4_safe_receiver();
47658
- $callback(toVonageError(Exception_init_$Create$('Media Timeout')), null);
47668
+ invokeCallbackWithError(new MediaTimeout(), $callback);
47659
47669
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
47660
47670
  Unit_getInstance();
47661
47671
  break;
@@ -47690,30 +47700,39 @@
47690
47700
  cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$serverCall$lambda$lambda(this$0, legId, cancel, $callback));
47691
47701
  Unit_getInstance();
47692
47702
  } else {
47693
- if (tmp0_subject instanceof Exception) {
47694
- $callback(toVonageError(it), null);
47695
- } else {
47696
- $callback(VonageError_init_$Create$(), null);
47697
- }
47703
+ invokeCallbackWithError(it, $callback);
47704
+ Unit_getInstance();
47698
47705
  }
47699
47706
  return Unit_getInstance();
47700
47707
  };
47701
47708
  }
47702
47709
  function VoiceAPIImpl$reconnectCall$lambda$lambda(this$0, $callId, $once, $callback) {
47703
47710
  return function () {
47704
- var state = ensureNotNull(this$0.q2x_1.t2o(getKClass(CallReducer)));
47705
- var tmp0_safe_receiver = state.u2x_1.u1($callId);
47706
- var legState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j2x_1;
47707
- var call = state.u2x_1.u1($callId);
47708
- var tmp1_safe_receiver = legState;
47709
- var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1();
47711
+ var tmp0_elvis_lhs = this$0.q2x_1.t2o(getKClass(CallReducer));
47712
+ var tmp;
47713
+ if (tmp0_elvis_lhs == null) {
47714
+ return Unit_getInstance();
47715
+ } else {
47716
+ tmp = tmp0_elvis_lhs;
47717
+ }
47718
+ var state = tmp;
47719
+ var tmp1_elvis_lhs = state.u2x_1.u1($callId);
47720
+ var tmp_0;
47721
+ if (tmp1_elvis_lhs == null) {
47722
+ return Unit_getInstance();
47723
+ } else {
47724
+ tmp_0 = tmp1_elvis_lhs;
47725
+ }
47726
+ var call = tmp_0;
47727
+ var legState = call.j2x_1;
47728
+ var tmp2_subject = legState.f1();
47710
47729
  if (tmp2_subject instanceof Started) {
47711
47730
  var tmp3_safe_receiver = $once._v;
47712
47731
  if (tmp3_safe_receiver == null)
47713
47732
  ;
47714
47733
  else
47715
47734
  tmp3_safe_receiver();
47716
- if (ensureNotNull(call).e2x_1) {
47735
+ if (call.e2x_1) {
47717
47736
  $callback(null);
47718
47737
  }
47719
47738
  } else {
@@ -47731,7 +47750,8 @@
47731
47750
  return function (it) {
47732
47751
  var tmp0_subject = it;
47733
47752
  if (tmp0_subject instanceof Exception) {
47734
- $callback(toVonageError(it));
47753
+ invokeCallbackWithError_0(it, $callback);
47754
+ Unit_getInstance();
47735
47755
  } else {
47736
47756
  $callback(null);
47737
47757
  }
@@ -47749,7 +47769,8 @@
47749
47769
  switch (tmp0) {
47750
47770
  case -1:
47751
47771
  // Inline function 'kotlin.let' call
47752
- $callback(toVonageError(new NoInviteFound()));
47772
+ invokeCallbackWithError_0(new NoInviteFound(), $callback);
47773
+ Unit_getInstance();
47753
47774
  // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.answerCall.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
47754
47775
  var tmp0_safe_receiver_0 = $cancel._v;
47755
47776
  tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0();
@@ -47773,7 +47794,7 @@
47773
47794
  tmp5_safe_receiver == null ? null : tmp5_safe_receiver();
47774
47795
  // Inline function 'kotlin.contracts.contract' call
47775
47796
  // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.answerCall.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
47776
- $callback(toVonageError(new InboundCallFailed()));
47797
+ invokeCallbackWithError_0(new InboundCallFailed(), $callback);
47777
47798
 
47778
47799
  Unit_getInstance();
47779
47800
  break;
@@ -47789,32 +47810,37 @@
47789
47810
  return new StoredSubscription(VoiceAPIImpl$answerCall$lambda$lambda$lambda$lambda(this$0, $legIdOrErr, $callback, $cancel));
47790
47811
  };
47791
47812
  }
47792
- function VoiceAPIImpl$answerCall$lambda$lambda($callback, this$0) {
47813
+ function VoiceAPIImpl$answerCall$lambda$lambda(this$0, $callback) {
47793
47814
  return function (legIdOrErr) {
47794
47815
  var tmp0_subject = legIdOrErr;
47795
- if (tmp0_subject instanceof Exception) {
47796
- $callback(toVonageError(new InboundCallFailed(legIdOrErr)));
47816
+ if (!(tmp0_subject == null) ? typeof tmp0_subject === 'string' : false) {
47817
+ var cancel = {_v: null};
47818
+ var tmp_0 = getKClass(CallReducer);
47819
+ cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$answerCall$lambda$lambda$lambda(this$0, legIdOrErr, $callback, cancel));
47820
+ Unit_getInstance();
47797
47821
  } else {
47798
- if (!(tmp0_subject == null) ? typeof tmp0_subject === 'string' : false) {
47799
- var cancel = {_v: null};
47800
- var tmp_0 = getKClass(CallReducer);
47801
- cancel._v = this$0.q2x_1.a2p(tmp_0, VoiceAPIImpl$answerCall$lambda$lambda$lambda(this$0, legIdOrErr, $callback, cancel));
47802
- Unit_getInstance();
47803
- } else {
47804
- $callback(VonageError_init_$Create$());
47805
- }
47822
+ invokeCallbackWithError_0(new InboundCallFailed(legIdOrErr instanceof Exception ? legIdOrErr : null), $callback);
47823
+ Unit_getInstance();
47806
47824
  }
47807
47825
  return Unit_getInstance();
47808
47826
  };
47809
47827
  }
47810
- function VoiceAPIImpl$answerCall$lambda($callback, this$0, $callId, $invite) {
47828
+ function VoiceAPIImpl$answerCall$lambda($callback, $invite, this$0, $callId) {
47811
47829
  return function (it) {
47812
47830
  var tmp0_subject = it;
47813
47831
  if (tmp0_subject instanceof Exception) {
47814
- $callback(toVonageError(it));
47832
+ invokeCallbackWithError_0(it, $callback);
47833
+ Unit_getInstance();
47815
47834
  } else {
47816
- var tmp_0 = new SetupInboundCall($callId, $invite.c2y_1, $invite.b2y_1, $invite.z2x_1, ensureNotNull($invite.d2y_1), null);
47817
- this$0.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$answerCall$lambda$lambda($callback, this$0))));
47835
+ var tmp1_elvis_lhs = $invite.d2y_1;
47836
+ if (tmp1_elvis_lhs == null) {
47837
+ // Inline function 'kotlin.run' call
47838
+ // Inline function 'kotlin.contracts.contract' call
47839
+ invokeCallbackWithError_0(new NoOfferFound(), $callback);
47840
+ return Unit_getInstance();
47841
+ }
47842
+ var tmp_0 = new SetupInboundCall($callId, $invite.c2y_1, $invite.b2y_1, $invite.z2x_1, $invite.d2y_1, null);
47843
+ this$0.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$answerCall$lambda$lambda(this$0, $callback))));
47818
47844
  Unit_getInstance();
47819
47845
  }
47820
47846
  return Unit_getInstance();
@@ -47824,7 +47850,8 @@
47824
47850
  return function (it) {
47825
47851
  var tmp0_subject = it;
47826
47852
  if (tmp0_subject instanceof Exception) {
47827
- $callback(toVonageError(it));
47853
+ invokeCallbackWithError_0(it, $callback);
47854
+ Unit_getInstance();
47828
47855
  } else {
47829
47856
  $callback(null);
47830
47857
  }
@@ -47835,7 +47862,8 @@
47835
47862
  return function (it) {
47836
47863
  var tmp0_subject = it;
47837
47864
  if (tmp0_subject instanceof Exception) {
47838
- $callback(toVonageError(it));
47865
+ invokeCallbackWithError_0(it, $callback);
47866
+ Unit_getInstance();
47839
47867
  } else {
47840
47868
  $callback(null);
47841
47869
  }
@@ -47846,7 +47874,8 @@
47846
47874
  return function (it) {
47847
47875
  var tmp0_subject = it;
47848
47876
  if (tmp0_subject instanceof Exception) {
47849
- $callback(toVonageError(it));
47877
+ invokeCallbackWithError_0(it, $callback);
47878
+ Unit_getInstance();
47850
47879
  } else {
47851
47880
  $callback(null);
47852
47881
  }
@@ -47865,7 +47894,8 @@
47865
47894
  return function (it) {
47866
47895
  var tmp0_subject = it;
47867
47896
  if (tmp0_subject instanceof Exception) {
47868
- $callback(toVonageError(it));
47897
+ invokeCallbackWithError_0(it, $callback);
47898
+ Unit_getInstance();
47869
47899
  } else {
47870
47900
  $callback(null);
47871
47901
  }
@@ -47884,7 +47914,8 @@
47884
47914
  return function (it) {
47885
47915
  var tmp0_subject = it;
47886
47916
  if (tmp0_subject instanceof Exception) {
47887
- $callback(toVonageError(it));
47917
+ invokeCallbackWithError_0(it, $callback);
47918
+ Unit_getInstance();
47888
47919
  } else {
47889
47920
  $callback(null);
47890
47921
  }
@@ -47903,7 +47934,8 @@
47903
47934
  return function (it) {
47904
47935
  var tmp0_subject = it;
47905
47936
  if (tmp0_subject instanceof Exception) {
47906
- $callback(toVonageError(it));
47937
+ invokeCallbackWithError_0(it, $callback);
47938
+ Unit_getInstance();
47907
47939
  } else {
47908
47940
  $callback(null);
47909
47941
  }
@@ -47922,7 +47954,8 @@
47922
47954
  return function (it) {
47923
47955
  var tmp0_subject = it;
47924
47956
  if (tmp0_subject instanceof Exception) {
47925
- $callback(toVonageError(it));
47957
+ invokeCallbackWithError_0(it, $callback);
47958
+ Unit_getInstance();
47926
47959
  } else {
47927
47960
  $callback(null);
47928
47961
  }
@@ -47941,7 +47974,8 @@
47941
47974
  return function (it) {
47942
47975
  var tmp0_subject = it;
47943
47976
  if (tmp0_subject instanceof Exception) {
47944
- $callback(toVonageError(it));
47977
+ invokeCallbackWithError_0(it, $callback);
47978
+ Unit_getInstance();
47945
47979
  } else {
47946
47980
  $callback(null);
47947
47981
  }
@@ -48739,10 +48773,11 @@
48739
48773
  this$0.q2x_1.c1a(Action_init_$Create$(new CallReconnect($legId, memberResponse.k1j_1, $legResponse.c1d_1)));
48740
48774
  Unit_getInstance();
48741
48775
  } else {
48742
- $callback(toVonageError(new MemberNotInConversation()));
48776
+ invokeCallbackWithError_0(new MemberNotInConversation(), $callback);
48777
+ Unit_getInstance();
48743
48778
  }
48744
48779
  } else {
48745
- $callback(toVonageError(new NoConversationFound()));
48780
+ invokeCallbackWithError_0(new NoConversationFound(), $callback);
48746
48781
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
48747
48782
  Unit_getInstance();
48748
48783
  }
@@ -48757,7 +48792,7 @@
48757
48792
  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))));
48758
48793
  Unit_getInstance();
48759
48794
  } else {
48760
- $callback(toVonageError(new NoLegFound()));
48795
+ invokeCallbackWithError_0(new NoLegFound(), $callback);
48761
48796
  this$0.q2x_1.c1a(Action_init_$Create$(new CallCleanup($legId)));
48762
48797
  Unit_getInstance();
48763
48798
  }
@@ -48785,71 +48820,44 @@
48785
48820
  this.t2x_1 = listener;
48786
48821
  };
48787
48822
  protoOf(VoiceAPIImpl).z17 = function (legId, callback) {
48788
- var sessionState = ensureNotNull(this.q2x_1.t2o(getKClass(SessionReducer)));
48789
- var tmp;
48790
- if (sessionState.f2w_1.f1() instanceof Active) {
48791
- tmp = '';
48792
- } else {
48793
- // Inline function 'kotlin.let' call
48794
- callback(toVonageError(new SessionNoActiveSessionError()), null);
48795
- // Inline function 'kotlin.contracts.contract' call
48796
- // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.getLeg.<anonymous>' call
48797
- tmp = null;
48798
- }
48799
- if (tmp == null)
48823
+ if (getSessionUserOrError(this.q2x_1, callback) == null)
48800
48824
  return Unit_getInstance();
48801
- var tmp_0 = new GetLegRequest(legId);
48802
- this.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$getLeg$lambda(callback))));
48825
+ var tmp = new GetLegRequest(legId);
48826
+ this.q2x_1.c1a(new Action_0(tmp, new ActionMeta(VOID, VOID, VoiceAPIImpl$getLeg$lambda(callback))));
48803
48827
  };
48804
48828
  protoOf(VoiceAPIImpl).x17 = function (context, callback) {
48805
- var sessionState = ensureNotNull(this.q2x_1.t2o(getKClass(SessionReducer)));
48806
- var s = sessionState.f2w_1.f1();
48829
+ var tmp0_elvis_lhs = getSessionUserOrError(this.q2x_1, callback);
48807
48830
  var tmp;
48808
- if (s instanceof Active) {
48809
- tmp = s.v2d_1.p2k_1;
48810
- } else {
48811
- // Inline function 'kotlin.let' call
48812
- callback(toVonageError(new SessionNoActiveSessionError()), null);
48813
- // Inline function 'kotlin.contracts.contract' call
48814
- // Inline function 'com.vonage.clientcore.core.api.VoiceAPIImpl.serverCall.<anonymous>' call
48815
- tmp = null;
48816
- }
48817
- var tmp0_elvis_lhs = tmp;
48818
- var tmp_0;
48819
48831
  if (tmp0_elvis_lhs == null) {
48820
48832
  return Unit_getInstance();
48821
48833
  } else {
48822
- tmp_0 = tmp0_elvis_lhs;
48834
+ tmp = tmp0_elvis_lhs;
48823
48835
  }
48824
- var user = tmp_0;
48825
- var tmp_1 = new SetupOutboundCall(user, context);
48826
- this.q2x_1.c1a(new Action_0(tmp_1, new ActionMeta(VOID, VOID, VoiceAPIImpl$serverCall$lambda(this, callback))));
48836
+ var user = tmp;
48837
+ var tmp_0 = new SetupOutboundCall(user.p2k_1, context);
48838
+ this.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$serverCall$lambda(this, callback))));
48827
48839
  };
48828
48840
  protoOf(VoiceAPIImpl).y17 = function (callId, callback) {
48829
48841
  var once = {_v: null};
48830
48842
  var tmp = getKClass(CallReducer);
48831
48843
  once._v = this.q2x_1.a2p(tmp, VoiceAPIImpl$reconnectCall$lambda(this, callId, once, callback));
48832
- var sessionState = this.q2x_1.t2o(getKClass(SessionReducer));
48833
- var tmp1_safe_receiver = sessionState == null ? null : sessionState.f2w_1;
48834
- if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1())instanceof Active) {
48835
- var callState = ensureNotNull(this.q2x_1.t2o(getKClass(CallReducer)));
48836
- var call = callState.u2x_1.u1(callId);
48837
- var tmp4_safe_receiver = call == null ? null : call.i2x_1;
48838
- var tmp_0 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.f1();
48839
- var memberState = tmp_0 instanceof Joined ? tmp_0 : null;
48840
- if (call == null ? true : memberState == null) {
48841
- getCallDetailsAndDispatchCallReconnect(this, callId, callback);
48842
- } else {
48843
- this.q2x_1.c1a(Action_init_$Create$(new CallReconnect(callId, memberState.o2x_1, memberState.n2x_1)));
48844
- }
48844
+ if (getSessionUserOrError_0(this.q2x_1, callback) == null)
48845
+ return Unit_getInstance();
48846
+ var callState = ensureNotNull(this.q2x_1.t2o(getKClass(CallReducer)));
48847
+ var call = callState.u2x_1.u1(callId);
48848
+ var tmp2_safe_receiver = call == null ? null : call.i2x_1;
48849
+ var tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.f1();
48850
+ var memberState = tmp_0 instanceof Joined ? tmp_0 : null;
48851
+ if (call == null ? true : memberState == null) {
48852
+ getCallDetailsAndDispatchCallReconnect(this, callId, callback);
48845
48853
  } else {
48846
- callback(toVonageError(new SessionNoActiveSessionError()));
48854
+ this.q2x_1.c1a(Action_init_$Create$(new CallReconnect(callId, memberState.o2x_1, memberState.n2x_1)));
48847
48855
  }
48848
48856
  };
48849
48857
  protoOf(VoiceAPIImpl).a18 = function (callId, callback) {
48850
48858
  var invite = ensureNotNull(this.q2x_1.t2o(getKClass(InviteReducer))).s2y_1.u1(callId);
48851
48859
  if (invite == null) {
48852
- callback(toVonageError(new NoInviteFound()));
48860
+ invokeCallbackWithError_0(new NoInviteFound(), callback);
48853
48861
  return Unit_getInstance();
48854
48862
  }
48855
48863
  var tmp;
@@ -48868,7 +48876,7 @@
48868
48876
  tmp = tmp_3 instanceof Left;
48869
48877
  }
48870
48878
  if (tmp) {
48871
- callback(toVonageError(new InvalidCallAction()));
48879
+ invokeCallbackWithError_0(new InvalidCallAction(), callback);
48872
48880
  return Unit_getInstance();
48873
48881
  }
48874
48882
  StaticConfig_getInstance();
@@ -48879,7 +48887,7 @@
48879
48887
  protoOf(VoiceAPIImpl).b18 = function (callId, callback) {
48880
48888
  var invite = ensureNotNull(this.q2x_1.t2o(getKClass(InviteReducer))).s2y_1.u1(callId);
48881
48889
  if (invite == null) {
48882
- callback(toVonageError(new NoInviteFound()));
48890
+ invokeCallbackWithError_0(new NoInviteFound(), callback);
48883
48891
  return Unit_getInstance();
48884
48892
  }
48885
48893
  var tmp;
@@ -48898,16 +48906,16 @@
48898
48906
  tmp = tmp_3 instanceof Left;
48899
48907
  }
48900
48908
  if (tmp) {
48901
- callback(toVonageError(new InvalidCallAction()));
48909
+ invokeCallbackWithError_0(new InvalidCallAction(), callback);
48902
48910
  return Unit_getInstance();
48903
48911
  }
48904
48912
  var tmp_4 = new MemberJoinRequest(invite.c2y_1, invite.b2y_1);
48905
- this.q2x_1.c1a(new Action_0(tmp_4, new ActionMeta(VOID, callId, VoiceAPIImpl$answerCall$lambda(callback, this, callId, invite))));
48913
+ this.q2x_1.c1a(new Action_0(tmp_4, new ActionMeta(VOID, callId, VoiceAPIImpl$answerCall$lambda(callback, invite, this, callId))));
48906
48914
  };
48907
48915
  protoOf(VoiceAPIImpl).c18 = function (callId, reasonText, reasonCode, callback) {
48908
48916
  var call = ensureNotNull(this.q2x_1.t2o(getKClass(CallReducer))).u2x_1.u1(callId);
48909
48917
  if (call == null) {
48910
- callback(toVonageError(new NoCallFound()));
48918
+ invokeCallbackWithError_0(new NoCallFound(), callback);
48911
48919
  return Unit_getInstance();
48912
48920
  }
48913
48921
  this.q2x_1.c1a(Action_init_$Create$(new MediaDisable(callId)));
@@ -48920,7 +48928,7 @@
48920
48928
  var tmp_0 = new DeleteKnockerRequest(callMemberShipState.o2z_1);
48921
48929
  this.q2x_1.c1a(new Action_0(tmp_0, new ActionMeta(VOID, callId, VoiceAPIImpl$hangupCall$lambda_0(callback))));
48922
48930
  } else {
48923
- callback(toVonageError(new InvalidCallAction()));
48931
+ invokeCallbackWithError_0(new InvalidCallAction(), callback);
48924
48932
  }
48925
48933
  }
48926
48934
  };
@@ -48931,7 +48939,7 @@
48931
48939
  else {
48932
48940
  // Inline function 'kotlin.let' call
48933
48941
  // Inline function 'kotlin.contracts.contract' call
48934
- callback(tmp0_safe_receiver);
48942
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
48935
48943
  }
48936
48944
  };
48937
48945
  protoOf(VoiceAPIImpl).e18 = function (callId, callback) {
@@ -48941,7 +48949,7 @@
48941
48949
  else {
48942
48950
  // Inline function 'kotlin.let' call
48943
48951
  // Inline function 'kotlin.contracts.contract' call
48944
- callback(tmp0_safe_receiver);
48952
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
48945
48953
  }
48946
48954
  };
48947
48955
  protoOf(VoiceAPIImpl).f18 = function (callId, callback) {
@@ -48951,7 +48959,7 @@
48951
48959
  else {
48952
48960
  // Inline function 'kotlin.let' call
48953
48961
  // Inline function 'kotlin.contracts.contract' call
48954
- callback(tmp0_safe_receiver);
48962
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
48955
48963
  }
48956
48964
  };
48957
48965
  protoOf(VoiceAPIImpl).g18 = function (callId, callback) {
@@ -48961,7 +48969,7 @@
48961
48969
  else {
48962
48970
  // Inline function 'kotlin.let' call
48963
48971
  // Inline function 'kotlin.contracts.contract' call
48964
- callback(tmp0_safe_receiver);
48972
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
48965
48973
  }
48966
48974
  };
48967
48975
  protoOf(VoiceAPIImpl).h18 = function (callId, digits, callback) {
@@ -48971,7 +48979,7 @@
48971
48979
  else {
48972
48980
  // Inline function 'kotlin.let' call
48973
48981
  // Inline function 'kotlin.contracts.contract' call
48974
- callback(tmp0_safe_receiver);
48982
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
48975
48983
  }
48976
48984
  };
48977
48985
  protoOf(VoiceAPIImpl).i18 = function (callId, text, level, loop, queue, voiceName, ssml, callback) {
@@ -48981,7 +48989,7 @@
48981
48989
  else {
48982
48990
  // Inline function 'kotlin.let' call
48983
48991
  // Inline function 'kotlin.contracts.contract' call
48984
- callback(tmp0_safe_receiver);
48992
+ invokeCallbackWithError_0(tmp0_safe_receiver, callback);
48985
48993
  }
48986
48994
  };
48987
48995
  function SetupOutboundCall(user, context) {
@@ -58385,7 +58393,7 @@
58385
58393
  tmp = s.v2d_1;
58386
58394
  } else {
58387
58395
  // Inline function 'kotlin.let' call
58388
- callback(toVonageError(new SessionNoActiveSessionError()), null);
58396
+ invokeCallbackWithError(new SessionNoActiveSessionError(), callback);
58389
58397
  // Inline function 'kotlin.contracts.contract' call
58390
58398
  // Inline function 'com.vonage.clientcore.utils.getSessionUserOrError.<anonymous>' call
58391
58399
  tmp = null;
@@ -59132,24 +59140,24 @@
59132
59140
  setMetadataFor(EventDeleteConversationEventJS, 'EventDeleteConversationEventJS', classMeta, VOID, [PersistentConversationEventJS, JSONBodyEventJS]);
59133
59141
  setMetadataFor(MessageEventJS, 'MessageEventJS', interfaceMeta);
59134
59142
  setMetadataFor(MessageEventBodyJS, 'MessageEventBodyJS', interfaceMeta);
59135
- setMetadataFor(Body, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59143
+ setMetadataFor(MessageTextEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59136
59144
  setMetadataFor(MessageTextEventJS, 'MessageTextEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59137
- setMetadataFor(Body_0, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59145
+ setMetadataFor(MessageCustomEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59138
59146
  setMetadataFor(MessageCustomEventJS, 'MessageCustomEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59139
- setMetadataFor(Body_1, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59147
+ setMetadataFor(MessageAudioEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59140
59148
  setMetadataFor(MessageAudioEventJS, 'MessageAudioEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59141
- setMetadataFor(Body_2, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59149
+ setMetadataFor(MessageVideoEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59142
59150
  setMetadataFor(MessageVideoEventJS, 'MessageVideoEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59143
- setMetadataFor(Body_3, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59151
+ setMetadataFor(MessageImageEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59144
59152
  setMetadataFor(MessageImageEventJS, 'MessageImageEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59145
- setMetadataFor(Body_4, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59153
+ setMetadataFor(MessageFileEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59146
59154
  setMetadataFor(MessageFileEventJS, 'MessageFileEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59147
- setMetadataFor(Body_5, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59155
+ setMetadataFor(MessageVCardEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59148
59156
  setMetadataFor(MessageVCardEventJS, 'MessageVCardEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59149
- setMetadataFor(Body_6, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59157
+ setMetadataFor(MessageLocationEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59150
59158
  setMetadataFor(Location_0, 'Location', classMeta);
59151
59159
  setMetadataFor(MessageLocationEventJS, 'MessageLocationEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
59152
- setMetadataFor(Body_7, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59160
+ setMetadataFor(MessageTemplateEventBody, 'Body', classMeta, VOID, [MessageEventBodyJS]);
59153
59161
  setMetadataFor(TemplateObject_0, 'TemplateObject', classMeta);
59154
59162
  setMetadataFor(WhatsappObject_0, 'WhatsappObject', classMeta);
59155
59163
  setMetadataFor(MessageTemplateEventJS, 'MessageTemplateEventJS', classMeta, VOID, [MessageEventJS, PersistentConversationEventJS]);
@@ -59463,268 +59471,163 @@
59463
59471
  return this.user;
59464
59472
  };
59465
59473
  function MemberInvitedEventJS(event) {
59466
- this.c3f_1 = 'member:invited';
59467
- this.d3f_1 = event.w2q_1;
59468
- this.e3f_1 = event.x2q_1;
59469
- this.f3f_1 = event.y2q_1;
59470
- this.g3f_1 = map(event.z2q_1);
59471
- this.h3f_1 = new MemberEventBodyJS(event.a2r_1);
59474
+ this.kind = 'member:invited';
59475
+ this.id = event.w2q_1;
59476
+ this.timestamp = event.x2q_1;
59477
+ this.conversationId = event.y2q_1;
59478
+ this.from = map(event.z2q_1);
59479
+ this.body = new MemberEventBodyJS(event.a2r_1);
59472
59480
  }
59473
59481
  protoOf(MemberInvitedEventJS).lf = function () {
59474
- return this.c3f_1;
59482
+ return this.kind;
59475
59483
  };
59476
59484
  protoOf(MemberInvitedEventJS).n1z = function () {
59477
- return this.d3f_1;
59485
+ return this.id;
59478
59486
  };
59479
59487
  protoOf(MemberInvitedEventJS).g2b = function () {
59480
- return this.e3f_1;
59488
+ return this.timestamp;
59481
59489
  };
59482
59490
  protoOf(MemberInvitedEventJS).z3e = function () {
59483
- return this.f3f_1;
59491
+ return this.conversationId;
59484
59492
  };
59485
59493
  protoOf(MemberInvitedEventJS).a3f = function () {
59486
- return this.g3f_1;
59494
+ return this.from;
59487
59495
  };
59488
59496
  protoOf(MemberInvitedEventJS).b3f = function () {
59489
- return this.h3f_1;
59497
+ return this.body;
59490
59498
  };
59491
- defineProp(protoOf(MemberInvitedEventJS), 'kind', function () {
59492
- return this.lf();
59493
- }, VOID);
59494
- defineProp(protoOf(MemberInvitedEventJS), 'id', function () {
59495
- return this.n1z();
59496
- }, VOID);
59497
- defineProp(protoOf(MemberInvitedEventJS), 'timestamp', function () {
59498
- return this.g2b();
59499
- }, VOID);
59500
- defineProp(protoOf(MemberInvitedEventJS), 'conversationId', function () {
59501
- return this.z3e();
59502
- }, VOID);
59503
- defineProp(protoOf(MemberInvitedEventJS), 'from', function () {
59504
- return this.a3f();
59505
- }, VOID);
59506
- defineProp(protoOf(MemberInvitedEventJS), 'body', function () {
59507
- return this.b3f();
59508
- }, VOID);
59509
59499
  function MemberJoinedEventJS(event) {
59510
- this.i3f_1 = 'member:joined';
59511
- this.j3f_1 = event.b2r_1;
59512
- this.k3f_1 = event.c2r_1;
59513
- this.l3f_1 = event.d2r_1;
59514
- this.m3f_1 = map(event.e2r_1);
59515
- this.n3f_1 = new MemberEventBodyJS(event.f2r_1);
59500
+ this.kind = 'member:joined';
59501
+ this.id = event.b2r_1;
59502
+ this.timestamp = event.c2r_1;
59503
+ this.conversationId = event.d2r_1;
59504
+ this.from = map(event.e2r_1);
59505
+ this.body = new MemberEventBodyJS(event.f2r_1);
59516
59506
  }
59517
59507
  protoOf(MemberJoinedEventJS).lf = function () {
59518
- return this.i3f_1;
59508
+ return this.kind;
59519
59509
  };
59520
59510
  protoOf(MemberJoinedEventJS).n1z = function () {
59521
- return this.j3f_1;
59511
+ return this.id;
59522
59512
  };
59523
59513
  protoOf(MemberJoinedEventJS).g2b = function () {
59524
- return this.k3f_1;
59514
+ return this.timestamp;
59525
59515
  };
59526
59516
  protoOf(MemberJoinedEventJS).z3e = function () {
59527
- return this.l3f_1;
59517
+ return this.conversationId;
59528
59518
  };
59529
59519
  protoOf(MemberJoinedEventJS).a3f = function () {
59530
- return this.m3f_1;
59520
+ return this.from;
59531
59521
  };
59532
59522
  protoOf(MemberJoinedEventJS).b3f = function () {
59533
- return this.n3f_1;
59523
+ return this.body;
59534
59524
  };
59535
- defineProp(protoOf(MemberJoinedEventJS), 'kind', function () {
59536
- return this.lf();
59537
- }, VOID);
59538
- defineProp(protoOf(MemberJoinedEventJS), 'id', function () {
59539
- return this.n1z();
59540
- }, VOID);
59541
- defineProp(protoOf(MemberJoinedEventJS), 'timestamp', function () {
59542
- return this.g2b();
59543
- }, VOID);
59544
- defineProp(protoOf(MemberJoinedEventJS), 'conversationId', function () {
59545
- return this.z3e();
59546
- }, VOID);
59547
- defineProp(protoOf(MemberJoinedEventJS), 'from', function () {
59548
- return this.a3f();
59549
- }, VOID);
59550
- defineProp(protoOf(MemberJoinedEventJS), 'body', function () {
59551
- return this.b3f();
59552
- }, VOID);
59553
59525
  function MemberLeftEventJS(event) {
59554
- this.o3f_1 = 'member:left';
59555
- this.p3f_1 = event.g2r_1;
59556
- this.q3f_1 = event.h2r_1;
59557
- this.r3f_1 = event.i2r_1;
59558
- this.s3f_1 = map(event.j2r_1);
59559
- this.t3f_1 = new MemberEventBodyJS(event.k2r_1);
59526
+ this.kind = 'member:left';
59527
+ this.id = event.g2r_1;
59528
+ this.timestamp = event.h2r_1;
59529
+ this.conversationId = event.i2r_1;
59530
+ this.from = map(event.j2r_1);
59531
+ this.body = new MemberEventBodyJS(event.k2r_1);
59560
59532
  }
59561
59533
  protoOf(MemberLeftEventJS).lf = function () {
59562
- return this.o3f_1;
59534
+ return this.kind;
59563
59535
  };
59564
59536
  protoOf(MemberLeftEventJS).n1z = function () {
59565
- return this.p3f_1;
59537
+ return this.id;
59566
59538
  };
59567
59539
  protoOf(MemberLeftEventJS).g2b = function () {
59568
- return this.q3f_1;
59540
+ return this.timestamp;
59569
59541
  };
59570
59542
  protoOf(MemberLeftEventJS).z3e = function () {
59571
- return this.r3f_1;
59543
+ return this.conversationId;
59572
59544
  };
59573
59545
  protoOf(MemberLeftEventJS).a3f = function () {
59574
- return this.s3f_1;
59546
+ return this.from;
59575
59547
  };
59576
59548
  protoOf(MemberLeftEventJS).b3f = function () {
59577
- return this.t3f_1;
59549
+ return this.body;
59578
59550
  };
59579
- defineProp(protoOf(MemberLeftEventJS), 'kind', function () {
59580
- return this.lf();
59581
- }, VOID);
59582
- defineProp(protoOf(MemberLeftEventJS), 'id', function () {
59583
- return this.n1z();
59584
- }, VOID);
59585
- defineProp(protoOf(MemberLeftEventJS), 'timestamp', function () {
59586
- return this.g2b();
59587
- }, VOID);
59588
- defineProp(protoOf(MemberLeftEventJS), 'conversationId', function () {
59589
- return this.z3e();
59590
- }, VOID);
59591
- defineProp(protoOf(MemberLeftEventJS), 'from', function () {
59592
- return this.a3f();
59593
- }, VOID);
59594
- defineProp(protoOf(MemberLeftEventJS), 'body', function () {
59595
- return this.b3f();
59596
- }, VOID);
59597
59551
  function JSONBodyEventJS() {
59598
59552
  }
59599
59553
  function CustomConversationEventJS(event) {
59600
- this.u3f_1 = 'custom';
59601
- this.v3f_1 = event.l2r_1;
59602
- this.w3f_1 = event.m2r_1;
59603
- this.x3f_1 = event.n2r_1;
59604
- this.y3f_1 = map(event.o2r_1);
59554
+ this.kind = 'custom';
59555
+ this.id = event.l2r_1;
59556
+ this.timestamp = event.m2r_1;
59557
+ this.conversationId = event.n2r_1;
59558
+ this.from = map(event.o2r_1);
59605
59559
  this.eventType = event.q2r_1;
59606
- this.z3f_1 = event.p2r_1;
59560
+ this.body = event.p2r_1;
59607
59561
  }
59608
59562
  protoOf(CustomConversationEventJS).lf = function () {
59609
- return this.u3f_1;
59563
+ return this.kind;
59610
59564
  };
59611
59565
  protoOf(CustomConversationEventJS).n1z = function () {
59612
- return this.v3f_1;
59566
+ return this.id;
59613
59567
  };
59614
59568
  protoOf(CustomConversationEventJS).g2b = function () {
59615
- return this.w3f_1;
59569
+ return this.timestamp;
59616
59570
  };
59617
59571
  protoOf(CustomConversationEventJS).z3e = function () {
59618
- return this.x3f_1;
59572
+ return this.conversationId;
59619
59573
  };
59620
59574
  protoOf(CustomConversationEventJS).a3f = function () {
59621
- return this.y3f_1;
59575
+ return this.from;
59622
59576
  };
59623
- protoOf(CustomConversationEventJS).a3g = function () {
59577
+ protoOf(CustomConversationEventJS).c3f = function () {
59624
59578
  return this.eventType;
59625
59579
  };
59626
59580
  protoOf(CustomConversationEventJS).b3f = function () {
59627
- return this.z3f_1;
59581
+ return this.body;
59628
59582
  };
59629
- defineProp(protoOf(CustomConversationEventJS), 'kind', function () {
59630
- return this.lf();
59631
- }, VOID);
59632
- defineProp(protoOf(CustomConversationEventJS), 'id', function () {
59633
- return this.n1z();
59634
- }, VOID);
59635
- defineProp(protoOf(CustomConversationEventJS), 'timestamp', function () {
59636
- return this.g2b();
59637
- }, VOID);
59638
- defineProp(protoOf(CustomConversationEventJS), 'conversationId', function () {
59639
- return this.z3e();
59640
- }, VOID);
59641
- defineProp(protoOf(CustomConversationEventJS), 'from', function () {
59642
- return this.a3f();
59643
- }, VOID);
59644
- defineProp(protoOf(CustomConversationEventJS), 'body', function () {
59645
- return this.b3f();
59646
- }, VOID);
59647
59583
  function EphemeralConversationEventJS(event) {
59648
- this.b3g_1 = 'ephemeral';
59649
- this.c3g_1 = event.r2r_1;
59650
- this.d3g_1 = event.s2r_1;
59651
- this.e3g_1 = map(event.t2r_1);
59652
- this.f3g_1 = event.u2r_1;
59584
+ this.kind = 'ephemeral';
59585
+ this.timestamp = event.r2r_1;
59586
+ this.conversationId = event.s2r_1;
59587
+ this.from = map(event.t2r_1);
59588
+ this.body = event.u2r_1;
59653
59589
  }
59654
59590
  protoOf(EphemeralConversationEventJS).lf = function () {
59655
- return this.b3g_1;
59591
+ return this.kind;
59656
59592
  };
59657
59593
  protoOf(EphemeralConversationEventJS).g2b = function () {
59658
- return this.c3g_1;
59594
+ return this.timestamp;
59659
59595
  };
59660
59596
  protoOf(EphemeralConversationEventJS).z3e = function () {
59661
- return this.d3g_1;
59597
+ return this.conversationId;
59662
59598
  };
59663
59599
  protoOf(EphemeralConversationEventJS).a3f = function () {
59664
- return this.e3g_1;
59600
+ return this.from;
59665
59601
  };
59666
59602
  protoOf(EphemeralConversationEventJS).b3f = function () {
59667
- return this.f3g_1;
59603
+ return this.body;
59668
59604
  };
59669
- defineProp(protoOf(EphemeralConversationEventJS), 'kind', function () {
59670
- return this.lf();
59671
- }, VOID);
59672
- defineProp(protoOf(EphemeralConversationEventJS), 'timestamp', function () {
59673
- return this.g2b();
59674
- }, VOID);
59675
- defineProp(protoOf(EphemeralConversationEventJS), 'conversationId', function () {
59676
- return this.z3e();
59677
- }, VOID);
59678
- defineProp(protoOf(EphemeralConversationEventJS), 'from', function () {
59679
- return this.a3f();
59680
- }, VOID);
59681
- defineProp(protoOf(EphemeralConversationEventJS), 'body', function () {
59682
- return this.b3f();
59683
- }, VOID);
59684
59605
  function EventDeleteConversationEventJS(event) {
59685
- this.g3g_1 = 'event:delete';
59686
- this.h3g_1 = event.v2r_1;
59687
- this.i3g_1 = event.w2r_1;
59688
- this.j3g_1 = event.x2r_1;
59689
- this.k3g_1 = map(event.y2r_1);
59690
- this.l3g_1 = event.z2r_1;
59606
+ this.kind = 'event:delete';
59607
+ this.id = event.v2r_1;
59608
+ this.timestamp = event.w2r_1;
59609
+ this.conversationId = event.x2r_1;
59610
+ this.from = map(event.y2r_1);
59611
+ this.body = event.z2r_1;
59691
59612
  }
59692
59613
  protoOf(EventDeleteConversationEventJS).lf = function () {
59693
- return this.g3g_1;
59614
+ return this.kind;
59694
59615
  };
59695
59616
  protoOf(EventDeleteConversationEventJS).n1z = function () {
59696
- return this.h3g_1;
59617
+ return this.id;
59697
59618
  };
59698
59619
  protoOf(EventDeleteConversationEventJS).g2b = function () {
59699
- return this.i3g_1;
59620
+ return this.timestamp;
59700
59621
  };
59701
59622
  protoOf(EventDeleteConversationEventJS).z3e = function () {
59702
- return this.j3g_1;
59623
+ return this.conversationId;
59703
59624
  };
59704
59625
  protoOf(EventDeleteConversationEventJS).a3f = function () {
59705
- return this.k3g_1;
59626
+ return this.from;
59706
59627
  };
59707
59628
  protoOf(EventDeleteConversationEventJS).b3f = function () {
59708
- return this.l3g_1;
59629
+ return this.body;
59709
59630
  };
59710
- defineProp(protoOf(EventDeleteConversationEventJS), 'kind', function () {
59711
- return this.lf();
59712
- }, VOID);
59713
- defineProp(protoOf(EventDeleteConversationEventJS), 'id', function () {
59714
- return this.n1z();
59715
- }, VOID);
59716
- defineProp(protoOf(EventDeleteConversationEventJS), 'timestamp', function () {
59717
- return this.g2b();
59718
- }, VOID);
59719
- defineProp(protoOf(EventDeleteConversationEventJS), 'conversationId', function () {
59720
- return this.z3e();
59721
- }, VOID);
59722
- defineProp(protoOf(EventDeleteConversationEventJS), 'from', function () {
59723
- return this.a3f();
59724
- }, VOID);
59725
- defineProp(protoOf(EventDeleteConversationEventJS), 'body', function () {
59726
- return this.b3f();
59727
- }, VOID);
59728
59631
  function map(_this__u8e3s4) {
59729
59632
  var tmp;
59730
59633
  if (_this__u8e3s4 instanceof EmbeddedInfo) {
@@ -59816,527 +59719,356 @@
59816
59719
  }
59817
59720
  function MessageEventBodyJS() {
59818
59721
  }
59819
- function Body(body) {
59722
+ function MessageTextEventBody(body) {
59820
59723
  this.text = body.w2s_1;
59821
- this.n3g_1 = body.x2s_1;
59724
+ this.deleted = body.x2s_1;
59822
59725
  }
59823
- protoOf(Body).o3g = function () {
59726
+ protoOf(MessageTextEventBody).d3f = function () {
59824
59727
  return this.text;
59825
59728
  };
59826
- protoOf(Body).m3g = function () {
59827
- return this.n3g_1;
59729
+ protoOf(MessageTextEventBody).e3f = function () {
59730
+ return this.deleted;
59828
59731
  };
59829
- defineProp(protoOf(Body), 'deleted', function () {
59830
- return this.m3g();
59831
- }, VOID);
59832
59732
  function MessageTextEventJS(event) {
59833
- this.p3g_1 = 'message:text';
59834
- this.q3g_1 = event.a2t_1;
59835
- this.r3g_1 = event.y2s_1;
59836
- this.s3g_1 = event.z2s_1;
59837
- this.t3g_1 = map(event.b2t_1);
59838
- this.u3g_1 = new Body(event.c2t_1);
59733
+ this.kind = 'message:text';
59734
+ this.id = event.a2t_1;
59735
+ this.timestamp = event.y2s_1;
59736
+ this.conversationId = event.z2s_1;
59737
+ this.from = map(event.b2t_1);
59738
+ this.body = new MessageTextEventBody(event.c2t_1);
59839
59739
  }
59840
59740
  protoOf(MessageTextEventJS).lf = function () {
59841
- return this.p3g_1;
59741
+ return this.kind;
59842
59742
  };
59843
59743
  protoOf(MessageTextEventJS).n1z = function () {
59844
- return this.q3g_1;
59744
+ return this.id;
59845
59745
  };
59846
59746
  protoOf(MessageTextEventJS).g2b = function () {
59847
- return this.r3g_1;
59747
+ return this.timestamp;
59848
59748
  };
59849
59749
  protoOf(MessageTextEventJS).z3e = function () {
59850
- return this.s3g_1;
59750
+ return this.conversationId;
59851
59751
  };
59852
59752
  protoOf(MessageTextEventJS).a3f = function () {
59853
- return this.t3g_1;
59753
+ return this.from;
59854
59754
  };
59855
59755
  protoOf(MessageTextEventJS).b3f = function () {
59856
- return this.u3g_1;
59756
+ return this.body;
59857
59757
  };
59858
- defineProp(protoOf(MessageTextEventJS), 'kind', function () {
59859
- return this.lf();
59860
- }, VOID);
59861
- defineProp(protoOf(MessageTextEventJS), 'id', function () {
59862
- return this.n1z();
59863
- }, VOID);
59864
- defineProp(protoOf(MessageTextEventJS), 'timestamp', function () {
59865
- return this.g2b();
59866
- }, VOID);
59867
- defineProp(protoOf(MessageTextEventJS), 'conversationId', function () {
59868
- return this.z3e();
59869
- }, VOID);
59870
- defineProp(protoOf(MessageTextEventJS), 'from', function () {
59871
- return this.a3f();
59872
- }, VOID);
59873
- defineProp(protoOf(MessageTextEventJS), 'body', function () {
59874
- return this.b3f();
59875
- }, VOID);
59876
- function Body_0(body) {
59758
+ function MessageCustomEventBody(body) {
59877
59759
  this.customData = body.d2t_1;
59878
- this.v3g_1 = body.e2t_1;
59760
+ this.deleted = body.e2t_1;
59879
59761
  }
59880
- protoOf(Body_0).w3g = function () {
59762
+ protoOf(MessageCustomEventBody).f3f = function () {
59881
59763
  return this.customData;
59882
59764
  };
59883
- protoOf(Body_0).m3g = function () {
59884
- return this.v3g_1;
59765
+ protoOf(MessageCustomEventBody).e3f = function () {
59766
+ return this.deleted;
59885
59767
  };
59886
- defineProp(protoOf(Body_0), 'deleted', function () {
59887
- return this.m3g();
59888
- }, VOID);
59889
59768
  function MessageCustomEventJS(event) {
59890
- this.x3g_1 = 'message:custom';
59891
- this.y3g_1 = event.h2t_1;
59892
- this.z3g_1 = event.f2t_1;
59893
- this.a3h_1 = event.g2t_1;
59894
- this.b3h_1 = map(event.i2t_1);
59895
- this.c3h_1 = new Body_0(event.j2t_1);
59769
+ this.kind = 'message:custom';
59770
+ this.id = event.h2t_1;
59771
+ this.timestamp = event.f2t_1;
59772
+ this.conversationId = event.g2t_1;
59773
+ this.from = map(event.i2t_1);
59774
+ this.body = new MessageCustomEventBody(event.j2t_1);
59896
59775
  }
59897
59776
  protoOf(MessageCustomEventJS).lf = function () {
59898
- return this.x3g_1;
59777
+ return this.kind;
59899
59778
  };
59900
59779
  protoOf(MessageCustomEventJS).n1z = function () {
59901
- return this.y3g_1;
59780
+ return this.id;
59902
59781
  };
59903
59782
  protoOf(MessageCustomEventJS).g2b = function () {
59904
- return this.z3g_1;
59783
+ return this.timestamp;
59905
59784
  };
59906
59785
  protoOf(MessageCustomEventJS).z3e = function () {
59907
- return this.a3h_1;
59786
+ return this.conversationId;
59908
59787
  };
59909
59788
  protoOf(MessageCustomEventJS).a3f = function () {
59910
- return this.b3h_1;
59789
+ return this.from;
59911
59790
  };
59912
59791
  protoOf(MessageCustomEventJS).b3f = function () {
59913
- return this.c3h_1;
59792
+ return this.body;
59914
59793
  };
59915
- defineProp(protoOf(MessageCustomEventJS), 'kind', function () {
59916
- return this.lf();
59917
- }, VOID);
59918
- defineProp(protoOf(MessageCustomEventJS), 'id', function () {
59919
- return this.n1z();
59920
- }, VOID);
59921
- defineProp(protoOf(MessageCustomEventJS), 'timestamp', function () {
59922
- return this.g2b();
59923
- }, VOID);
59924
- defineProp(protoOf(MessageCustomEventJS), 'conversationId', function () {
59925
- return this.z3e();
59926
- }, VOID);
59927
- defineProp(protoOf(MessageCustomEventJS), 'from', function () {
59928
- return this.a3f();
59929
- }, VOID);
59930
- defineProp(protoOf(MessageCustomEventJS), 'body', function () {
59931
- return this.b3f();
59932
- }, VOID);
59933
- function Body_1(body) {
59794
+ function MessageAudioEventBody(body) {
59934
59795
  this.audioUrl = body.y2t_1;
59935
- this.d3h_1 = body.z2t_1;
59796
+ this.deleted = body.z2t_1;
59936
59797
  }
59937
- protoOf(Body_1).e3h = function () {
59798
+ protoOf(MessageAudioEventBody).g3f = function () {
59938
59799
  return this.audioUrl;
59939
59800
  };
59940
- protoOf(Body_1).m3g = function () {
59941
- return this.d3h_1;
59801
+ protoOf(MessageAudioEventBody).e3f = function () {
59802
+ return this.deleted;
59942
59803
  };
59943
- defineProp(protoOf(Body_1), 'deleted', function () {
59944
- return this.m3g();
59945
- }, VOID);
59946
59804
  function MessageAudioEventJS(event) {
59947
- this.f3h_1 = 'message:audio';
59948
- this.g3h_1 = event.c2u_1;
59949
- this.h3h_1 = event.a2u_1;
59950
- this.i3h_1 = event.b2u_1;
59951
- this.j3h_1 = map(event.d2u_1);
59952
- this.k3h_1 = new Body_1(event.e2u_1);
59805
+ this.kind = 'message:audio';
59806
+ this.id = event.c2u_1;
59807
+ this.timestamp = event.a2u_1;
59808
+ this.conversationId = event.b2u_1;
59809
+ this.from = map(event.d2u_1);
59810
+ this.body = new MessageAudioEventBody(event.e2u_1);
59953
59811
  }
59954
59812
  protoOf(MessageAudioEventJS).lf = function () {
59955
- return this.f3h_1;
59813
+ return this.kind;
59956
59814
  };
59957
59815
  protoOf(MessageAudioEventJS).n1z = function () {
59958
- return this.g3h_1;
59816
+ return this.id;
59959
59817
  };
59960
59818
  protoOf(MessageAudioEventJS).g2b = function () {
59961
- return this.h3h_1;
59819
+ return this.timestamp;
59962
59820
  };
59963
59821
  protoOf(MessageAudioEventJS).z3e = function () {
59964
- return this.i3h_1;
59822
+ return this.conversationId;
59965
59823
  };
59966
59824
  protoOf(MessageAudioEventJS).a3f = function () {
59967
- return this.j3h_1;
59825
+ return this.from;
59968
59826
  };
59969
59827
  protoOf(MessageAudioEventJS).b3f = function () {
59970
- return this.k3h_1;
59828
+ return this.body;
59971
59829
  };
59972
- defineProp(protoOf(MessageAudioEventJS), 'kind', function () {
59973
- return this.lf();
59974
- }, VOID);
59975
- defineProp(protoOf(MessageAudioEventJS), 'id', function () {
59976
- return this.n1z();
59977
- }, VOID);
59978
- defineProp(protoOf(MessageAudioEventJS), 'timestamp', function () {
59979
- return this.g2b();
59980
- }, VOID);
59981
- defineProp(protoOf(MessageAudioEventJS), 'conversationId', function () {
59982
- return this.z3e();
59983
- }, VOID);
59984
- defineProp(protoOf(MessageAudioEventJS), 'from', function () {
59985
- return this.a3f();
59986
- }, VOID);
59987
- defineProp(protoOf(MessageAudioEventJS), 'body', function () {
59988
- return this.b3f();
59989
- }, VOID);
59990
- function Body_2(body) {
59830
+ function MessageVideoEventBody(body) {
59991
59831
  this.videoUrl = body.r2t_1;
59992
- this.l3h_1 = body.s2t_1;
59832
+ this.deleted = body.s2t_1;
59993
59833
  }
59994
- protoOf(Body_2).m3h = function () {
59834
+ protoOf(MessageVideoEventBody).h3f = function () {
59995
59835
  return this.videoUrl;
59996
59836
  };
59997
- protoOf(Body_2).m3g = function () {
59998
- return this.l3h_1;
59837
+ protoOf(MessageVideoEventBody).e3f = function () {
59838
+ return this.deleted;
59999
59839
  };
60000
- defineProp(protoOf(Body_2), 'deleted', function () {
60001
- return this.m3g();
60002
- }, VOID);
60003
59840
  function MessageVideoEventJS(event) {
60004
- this.n3h_1 = 'message:video';
60005
- this.o3h_1 = event.v2t_1;
60006
- this.p3h_1 = event.t2t_1;
60007
- this.q3h_1 = event.u2t_1;
60008
- this.r3h_1 = map(event.w2t_1);
60009
- this.s3h_1 = new Body_2(event.x2t_1);
59841
+ this.kind = 'message:video';
59842
+ this.id = event.v2t_1;
59843
+ this.timestamp = event.t2t_1;
59844
+ this.conversationId = event.u2t_1;
59845
+ this.from = map(event.w2t_1);
59846
+ this.body = new MessageVideoEventBody(event.x2t_1);
60010
59847
  }
60011
59848
  protoOf(MessageVideoEventJS).lf = function () {
60012
- return this.n3h_1;
59849
+ return this.kind;
60013
59850
  };
60014
59851
  protoOf(MessageVideoEventJS).n1z = function () {
60015
- return this.o3h_1;
59852
+ return this.id;
60016
59853
  };
60017
59854
  protoOf(MessageVideoEventJS).g2b = function () {
60018
- return this.p3h_1;
59855
+ return this.timestamp;
60019
59856
  };
60020
59857
  protoOf(MessageVideoEventJS).z3e = function () {
60021
- return this.q3h_1;
59858
+ return this.conversationId;
60022
59859
  };
60023
59860
  protoOf(MessageVideoEventJS).a3f = function () {
60024
- return this.r3h_1;
59861
+ return this.from;
60025
59862
  };
60026
59863
  protoOf(MessageVideoEventJS).b3f = function () {
60027
- return this.s3h_1;
59864
+ return this.body;
60028
59865
  };
60029
- defineProp(protoOf(MessageVideoEventJS), 'kind', function () {
60030
- return this.lf();
60031
- }, VOID);
60032
- defineProp(protoOf(MessageVideoEventJS), 'id', function () {
60033
- return this.n1z();
60034
- }, VOID);
60035
- defineProp(protoOf(MessageVideoEventJS), 'timestamp', function () {
60036
- return this.g2b();
60037
- }, VOID);
60038
- defineProp(protoOf(MessageVideoEventJS), 'conversationId', function () {
60039
- return this.z3e();
60040
- }, VOID);
60041
- defineProp(protoOf(MessageVideoEventJS), 'from', function () {
60042
- return this.a3f();
60043
- }, VOID);
60044
- defineProp(protoOf(MessageVideoEventJS), 'body', function () {
60045
- return this.b3f();
60046
- }, VOID);
60047
- function Body_3(body) {
59866
+ function MessageImageEventBody(body) {
60048
59867
  this.imageUrl = body.k2t_1;
60049
- this.t3h_1 = body.l2t_1;
59868
+ this.deleted = body.l2t_1;
60050
59869
  }
60051
- protoOf(Body_3).u3h = function () {
59870
+ protoOf(MessageImageEventBody).i3f = function () {
60052
59871
  return this.imageUrl;
60053
59872
  };
60054
- protoOf(Body_3).m3g = function () {
60055
- return this.t3h_1;
59873
+ protoOf(MessageImageEventBody).e3f = function () {
59874
+ return this.deleted;
60056
59875
  };
60057
- defineProp(protoOf(Body_3), 'deleted', function () {
60058
- return this.m3g();
60059
- }, VOID);
60060
59876
  function MessageImageEventJS(event) {
60061
- this.v3h_1 = 'message:image';
60062
- this.w3h_1 = event.o2t_1;
60063
- this.x3h_1 = event.m2t_1;
60064
- this.y3h_1 = event.n2t_1;
60065
- this.z3h_1 = map(event.p2t_1);
60066
- this.a3i_1 = new Body_3(event.q2t_1);
59877
+ this.kind = 'message:image';
59878
+ this.id = event.o2t_1;
59879
+ this.timestamp = event.m2t_1;
59880
+ this.conversationId = event.n2t_1;
59881
+ this.from = map(event.p2t_1);
59882
+ this.body = new MessageImageEventBody(event.q2t_1);
60067
59883
  }
60068
59884
  protoOf(MessageImageEventJS).lf = function () {
60069
- return this.v3h_1;
59885
+ return this.kind;
60070
59886
  };
60071
59887
  protoOf(MessageImageEventJS).n1z = function () {
60072
- return this.w3h_1;
59888
+ return this.id;
60073
59889
  };
60074
59890
  protoOf(MessageImageEventJS).g2b = function () {
60075
- return this.x3h_1;
59891
+ return this.timestamp;
60076
59892
  };
60077
59893
  protoOf(MessageImageEventJS).z3e = function () {
60078
- return this.y3h_1;
59894
+ return this.conversationId;
60079
59895
  };
60080
59896
  protoOf(MessageImageEventJS).a3f = function () {
60081
- return this.z3h_1;
59897
+ return this.from;
60082
59898
  };
60083
59899
  protoOf(MessageImageEventJS).b3f = function () {
60084
- return this.a3i_1;
59900
+ return this.body;
60085
59901
  };
60086
- defineProp(protoOf(MessageImageEventJS), 'kind', function () {
60087
- return this.lf();
60088
- }, VOID);
60089
- defineProp(protoOf(MessageImageEventJS), 'id', function () {
60090
- return this.n1z();
60091
- }, VOID);
60092
- defineProp(protoOf(MessageImageEventJS), 'timestamp', function () {
60093
- return this.g2b();
60094
- }, VOID);
60095
- defineProp(protoOf(MessageImageEventJS), 'conversationId', function () {
60096
- return this.z3e();
60097
- }, VOID);
60098
- defineProp(protoOf(MessageImageEventJS), 'from', function () {
60099
- return this.a3f();
60100
- }, VOID);
60101
- defineProp(protoOf(MessageImageEventJS), 'body', function () {
60102
- return this.b3f();
60103
- }, VOID);
60104
- function Body_4(body) {
59902
+ function MessageFileEventBody(body) {
60105
59903
  this.fileUrl = body.f2u_1;
60106
- this.b3i_1 = body.g2u_1;
59904
+ this.deleted = body.g2u_1;
60107
59905
  }
60108
- protoOf(Body_4).c3i = function () {
59906
+ protoOf(MessageFileEventBody).j3f = function () {
60109
59907
  return this.fileUrl;
60110
59908
  };
60111
- protoOf(Body_4).m3g = function () {
60112
- return this.b3i_1;
59909
+ protoOf(MessageFileEventBody).e3f = function () {
59910
+ return this.deleted;
60113
59911
  };
60114
- defineProp(protoOf(Body_4), 'deleted', function () {
60115
- return this.m3g();
60116
- }, VOID);
60117
59912
  function MessageFileEventJS(event) {
60118
- this.d3i_1 = 'message:file';
60119
- this.e3i_1 = event.j2u_1;
60120
- this.f3i_1 = event.h2u_1;
60121
- this.g3i_1 = event.i2u_1;
60122
- this.h3i_1 = map(event.k2u_1);
60123
- this.i3i_1 = new Body_4(event.l2u_1);
59913
+ this.kind = 'message:file';
59914
+ this.id = event.j2u_1;
59915
+ this.timestamp = event.h2u_1;
59916
+ this.conversationId = event.i2u_1;
59917
+ this.from = map(event.k2u_1);
59918
+ this.body = new MessageFileEventBody(event.l2u_1);
60124
59919
  }
60125
59920
  protoOf(MessageFileEventJS).lf = function () {
60126
- return this.d3i_1;
59921
+ return this.kind;
60127
59922
  };
60128
59923
  protoOf(MessageFileEventJS).n1z = function () {
60129
- return this.e3i_1;
59924
+ return this.id;
60130
59925
  };
60131
59926
  protoOf(MessageFileEventJS).g2b = function () {
60132
- return this.f3i_1;
59927
+ return this.timestamp;
60133
59928
  };
60134
59929
  protoOf(MessageFileEventJS).z3e = function () {
60135
- return this.g3i_1;
59930
+ return this.conversationId;
60136
59931
  };
60137
59932
  protoOf(MessageFileEventJS).a3f = function () {
60138
- return this.h3i_1;
59933
+ return this.from;
60139
59934
  };
60140
59935
  protoOf(MessageFileEventJS).b3f = function () {
60141
- return this.i3i_1;
59936
+ return this.body;
60142
59937
  };
60143
- defineProp(protoOf(MessageFileEventJS), 'kind', function () {
60144
- return this.lf();
60145
- }, VOID);
60146
- defineProp(protoOf(MessageFileEventJS), 'id', function () {
60147
- return this.n1z();
60148
- }, VOID);
60149
- defineProp(protoOf(MessageFileEventJS), 'timestamp', function () {
60150
- return this.g2b();
60151
- }, VOID);
60152
- defineProp(protoOf(MessageFileEventJS), 'conversationId', function () {
60153
- return this.z3e();
60154
- }, VOID);
60155
- defineProp(protoOf(MessageFileEventJS), 'from', function () {
60156
- return this.a3f();
60157
- }, VOID);
60158
- defineProp(protoOf(MessageFileEventJS), 'body', function () {
60159
- return this.b3f();
60160
- }, VOID);
60161
- function Body_5(body) {
59938
+ function MessageVCardEventBody(body) {
60162
59939
  this.vcardUrl = body.m2u_1;
60163
- this.j3i_1 = body.n2u_1;
59940
+ this.deleted = body.n2u_1;
60164
59941
  }
60165
- protoOf(Body_5).k3i = function () {
59942
+ protoOf(MessageVCardEventBody).k3f = function () {
60166
59943
  return this.vcardUrl;
60167
59944
  };
60168
- protoOf(Body_5).m3g = function () {
60169
- return this.j3i_1;
59945
+ protoOf(MessageVCardEventBody).e3f = function () {
59946
+ return this.deleted;
60170
59947
  };
60171
- defineProp(protoOf(Body_5), 'deleted', function () {
60172
- return this.m3g();
60173
- }, VOID);
60174
59948
  function MessageVCardEventJS(event) {
60175
- this.l3i_1 = 'message:vcard';
60176
- this.m3i_1 = event.q2u_1;
60177
- this.n3i_1 = event.o2u_1;
60178
- this.o3i_1 = event.p2u_1;
60179
- this.p3i_1 = map(event.r2u_1);
60180
- this.q3i_1 = new Body_5(event.s2u_1);
59949
+ this.kind = 'message:vcard';
59950
+ this.id = event.q2u_1;
59951
+ this.timestamp = event.o2u_1;
59952
+ this.conversationId = event.p2u_1;
59953
+ this.from = map(event.r2u_1);
59954
+ this.body = new MessageVCardEventBody(event.s2u_1);
60181
59955
  }
60182
59956
  protoOf(MessageVCardEventJS).lf = function () {
60183
- return this.l3i_1;
59957
+ return this.kind;
60184
59958
  };
60185
59959
  protoOf(MessageVCardEventJS).n1z = function () {
60186
- return this.m3i_1;
59960
+ return this.id;
60187
59961
  };
60188
59962
  protoOf(MessageVCardEventJS).g2b = function () {
60189
- return this.n3i_1;
59963
+ return this.timestamp;
60190
59964
  };
60191
59965
  protoOf(MessageVCardEventJS).z3e = function () {
60192
- return this.o3i_1;
59966
+ return this.conversationId;
60193
59967
  };
60194
59968
  protoOf(MessageVCardEventJS).a3f = function () {
60195
- return this.p3i_1;
59969
+ return this.from;
60196
59970
  };
60197
59971
  protoOf(MessageVCardEventJS).b3f = function () {
60198
- return this.q3i_1;
59972
+ return this.body;
60199
59973
  };
60200
- defineProp(protoOf(MessageVCardEventJS), 'kind', function () {
60201
- return this.lf();
60202
- }, VOID);
60203
- defineProp(protoOf(MessageVCardEventJS), 'id', function () {
60204
- return this.n1z();
60205
- }, VOID);
60206
- defineProp(protoOf(MessageVCardEventJS), 'timestamp', function () {
60207
- return this.g2b();
60208
- }, VOID);
60209
- defineProp(protoOf(MessageVCardEventJS), 'conversationId', function () {
60210
- return this.z3e();
60211
- }, VOID);
60212
- defineProp(protoOf(MessageVCardEventJS), 'from', function () {
60213
- return this.a3f();
60214
- }, VOID);
60215
- defineProp(protoOf(MessageVCardEventJS), 'body', function () {
60216
- return this.b3f();
60217
- }, VOID);
60218
- function Body_6(body) {
59974
+ function MessageLocationEventBody(body) {
60219
59975
  this.location = new Location_0(body.b2v_1);
60220
- this.r3i_1 = body.c2v_1;
59976
+ this.deleted = body.c2v_1;
60221
59977
  }
60222
- protoOf(Body_6).s3i = function () {
59978
+ protoOf(MessageLocationEventBody).l3f = function () {
60223
59979
  return this.location;
60224
59980
  };
60225
- protoOf(Body_6).m3g = function () {
60226
- return this.r3i_1;
59981
+ protoOf(MessageLocationEventBody).e3f = function () {
59982
+ return this.deleted;
60227
59983
  };
60228
- defineProp(protoOf(Body_6), 'deleted', function () {
60229
- return this.m3g();
60230
- }, VOID);
60231
59984
  function Location_0(location) {
60232
59985
  this.longitude = location.f2c_1;
60233
59986
  this.latitude = location.g2c_1;
60234
59987
  this.name = location.h2c_1;
60235
59988
  this.address = location.i2c_1;
60236
59989
  }
60237
- protoOf(Location_0).t3i = function () {
59990
+ protoOf(Location_0).m3f = function () {
60238
59991
  return this.longitude;
60239
59992
  };
60240
- protoOf(Location_0).u3i = function () {
59993
+ protoOf(Location_0).n3f = function () {
60241
59994
  return this.latitude;
60242
59995
  };
60243
59996
  protoOf(Location_0).mc = function () {
60244
59997
  return this.name;
60245
59998
  };
60246
- protoOf(Location_0).v3i = function () {
59999
+ protoOf(Location_0).o3f = function () {
60247
60000
  return this.address;
60248
60001
  };
60249
60002
  function MessageLocationEventJS(event) {
60250
- this.w3i_1 = 'message:location';
60251
- this.x3i_1 = event.f2v_1;
60252
- this.y3i_1 = event.d2v_1;
60253
- this.z3i_1 = event.e2v_1;
60254
- this.a3j_1 = map(event.g2v_1);
60255
- this.b3j_1 = new Body_6(event.h2v_1);
60003
+ this.kind = 'message:location';
60004
+ this.id = event.f2v_1;
60005
+ this.timestamp = event.d2v_1;
60006
+ this.conversationId = event.e2v_1;
60007
+ this.from = map(event.g2v_1);
60008
+ this.body = new MessageLocationEventBody(event.h2v_1);
60256
60009
  }
60257
60010
  protoOf(MessageLocationEventJS).lf = function () {
60258
- return this.w3i_1;
60011
+ return this.kind;
60259
60012
  };
60260
60013
  protoOf(MessageLocationEventJS).n1z = function () {
60261
- return this.x3i_1;
60014
+ return this.id;
60262
60015
  };
60263
60016
  protoOf(MessageLocationEventJS).g2b = function () {
60264
- return this.y3i_1;
60017
+ return this.timestamp;
60265
60018
  };
60266
60019
  protoOf(MessageLocationEventJS).z3e = function () {
60267
- return this.z3i_1;
60020
+ return this.conversationId;
60268
60021
  };
60269
60022
  protoOf(MessageLocationEventJS).a3f = function () {
60270
- return this.a3j_1;
60023
+ return this.from;
60271
60024
  };
60272
60025
  protoOf(MessageLocationEventJS).b3f = function () {
60273
- return this.b3j_1;
60026
+ return this.body;
60274
60027
  };
60275
- defineProp(protoOf(MessageLocationEventJS), 'kind', function () {
60276
- return this.lf();
60277
- }, VOID);
60278
- defineProp(protoOf(MessageLocationEventJS), 'id', function () {
60279
- return this.n1z();
60280
- }, VOID);
60281
- defineProp(protoOf(MessageLocationEventJS), 'timestamp', function () {
60282
- return this.g2b();
60283
- }, VOID);
60284
- defineProp(protoOf(MessageLocationEventJS), 'conversationId', function () {
60285
- return this.z3e();
60286
- }, VOID);
60287
- defineProp(protoOf(MessageLocationEventJS), 'from', function () {
60288
- return this.a3f();
60289
- }, VOID);
60290
- defineProp(protoOf(MessageLocationEventJS), 'body', function () {
60291
- return this.b3f();
60292
- }, VOID);
60293
- function Body_7(body) {
60028
+ function MessageTemplateEventBody(body) {
60294
60029
  this.body = body;
60295
60030
  this.template = new TemplateObject_0(this.body.t2u_1);
60296
60031
  this.whatsapp = new WhatsappObject_0(this.body.u2u_1);
60297
- this.c3j_1 = this.body.v2u_1;
60032
+ this.deleted = this.body.v2u_1;
60298
60033
  }
60299
- protoOf(Body_7).b3f = function () {
60034
+ protoOf(MessageTemplateEventBody).b3f = function () {
60300
60035
  return this.body;
60301
60036
  };
60302
- protoOf(Body_7).d3j = function () {
60037
+ protoOf(MessageTemplateEventBody).p3f = function () {
60303
60038
  return this.template;
60304
60039
  };
60305
- protoOf(Body_7).e3j = function () {
60040
+ protoOf(MessageTemplateEventBody).q3f = function () {
60306
60041
  return this.whatsapp;
60307
60042
  };
60308
- protoOf(Body_7).m3g = function () {
60309
- return this.c3j_1;
60043
+ protoOf(MessageTemplateEventBody).e3f = function () {
60044
+ return this.deleted;
60310
60045
  };
60311
- protoOf(Body_7).r2 = function () {
60046
+ protoOf(MessageTemplateEventBody).r2 = function () {
60312
60047
  return this.body;
60313
60048
  };
60314
- protoOf(Body_7).f3j = function (body) {
60315
- return new Body_7(body);
60049
+ protoOf(MessageTemplateEventBody).r3f = function (body) {
60050
+ return new MessageTemplateEventBody(body);
60316
60051
  };
60317
- protoOf(Body_7).copy = function (body, $super) {
60052
+ protoOf(MessageTemplateEventBody).copy = function (body, $super) {
60318
60053
  body = body === VOID ? this.body : body;
60319
- return this.f3j(body);
60054
+ return this.r3f(body);
60320
60055
  };
60321
- protoOf(Body_7).toString = function () {
60056
+ protoOf(MessageTemplateEventBody).toString = function () {
60322
60057
  return 'Body(body=' + this.body + ')';
60323
60058
  };
60324
- protoOf(Body_7).hashCode = function () {
60059
+ protoOf(MessageTemplateEventBody).hashCode = function () {
60325
60060
  return this.body.hashCode();
60326
60061
  };
60327
- protoOf(Body_7).equals = function (other) {
60062
+ protoOf(MessageTemplateEventBody).equals = function (other) {
60328
60063
  if (this === other)
60329
60064
  return true;
60330
- if (!(other instanceof Body_7))
60065
+ if (!(other instanceof MessageTemplateEventBody))
60331
60066
  return false;
60332
- var tmp0_other_with_cast = other instanceof Body_7 ? other : THROW_CCE();
60067
+ var tmp0_other_with_cast = other instanceof MessageTemplateEventBody ? other : THROW_CCE();
60333
60068
  if (!this.body.equals(tmp0_other_with_cast.body))
60334
60069
  return false;
60335
60070
  return true;
60336
60071
  };
60337
- defineProp(protoOf(Body_7), 'deleted', function () {
60338
- return this.m3g();
60339
- }, VOID);
60340
60072
  function TemplateObject_0(template) {
60341
60073
  this.name = template.x2b_1;
60342
60074
  var tmp = this;
@@ -60353,63 +60085,45 @@
60353
60085
  protoOf(TemplateObject_0).mc = function () {
60354
60086
  return this.name;
60355
60087
  };
60356
- protoOf(TemplateObject_0).g3j = function () {
60088
+ protoOf(TemplateObject_0).s3f = function () {
60357
60089
  return this.parameters;
60358
60090
  };
60359
60091
  function WhatsappObject_0(whatsapp) {
60360
60092
  this.policy = whatsapp.b2c_1;
60361
60093
  this.locale = whatsapp.c2c_1;
60362
60094
  }
60363
- protoOf(WhatsappObject_0).h3j = function () {
60095
+ protoOf(WhatsappObject_0).t3f = function () {
60364
60096
  return this.policy;
60365
60097
  };
60366
- protoOf(WhatsappObject_0).i3j = function () {
60098
+ protoOf(WhatsappObject_0).u3f = function () {
60367
60099
  return this.locale;
60368
60100
  };
60369
60101
  function MessageTemplateEventJS(event) {
60370
- this.j3j_1 = 'message:template';
60371
- this.k3j_1 = event.y2u_1;
60372
- this.l3j_1 = event.w2u_1;
60373
- this.m3j_1 = event.x2u_1;
60374
- this.n3j_1 = map(event.z2u_1);
60375
- this.o3j_1 = new Body_7(event.a2v_1);
60102
+ this.kind = 'message:template';
60103
+ this.id = event.y2u_1;
60104
+ this.timestamp = event.w2u_1;
60105
+ this.conversationId = event.x2u_1;
60106
+ this.from = map(event.z2u_1);
60107
+ this.body = new MessageTemplateEventBody(event.a2v_1);
60376
60108
  }
60377
60109
  protoOf(MessageTemplateEventJS).lf = function () {
60378
- return this.j3j_1;
60110
+ return this.kind;
60379
60111
  };
60380
60112
  protoOf(MessageTemplateEventJS).n1z = function () {
60381
- return this.k3j_1;
60113
+ return this.id;
60382
60114
  };
60383
60115
  protoOf(MessageTemplateEventJS).g2b = function () {
60384
- return this.l3j_1;
60116
+ return this.timestamp;
60385
60117
  };
60386
60118
  protoOf(MessageTemplateEventJS).z3e = function () {
60387
- return this.m3j_1;
60119
+ return this.conversationId;
60388
60120
  };
60389
60121
  protoOf(MessageTemplateEventJS).a3f = function () {
60390
- return this.n3j_1;
60122
+ return this.from;
60391
60123
  };
60392
60124
  protoOf(MessageTemplateEventJS).b3f = function () {
60393
- return this.o3j_1;
60125
+ return this.body;
60394
60126
  };
60395
- defineProp(protoOf(MessageTemplateEventJS), 'kind', function () {
60396
- return this.lf();
60397
- }, VOID);
60398
- defineProp(protoOf(MessageTemplateEventJS), 'id', function () {
60399
- return this.n1z();
60400
- }, VOID);
60401
- defineProp(protoOf(MessageTemplateEventJS), 'timestamp', function () {
60402
- return this.g2b();
60403
- }, VOID);
60404
- defineProp(protoOf(MessageTemplateEventJS), 'conversationId', function () {
60405
- return this.z3e();
60406
- }, VOID);
60407
- defineProp(protoOf(MessageTemplateEventJS), 'from', function () {
60408
- return this.a3f();
60409
- }, VOID);
60410
- defineProp(protoOf(MessageTemplateEventJS), 'body', function () {
60411
- return this.b3f();
60412
- }, VOID);
60413
60127
  var PresentingOrderJS_ASC_instance;
60414
60128
  var PresentingOrderJS_DESC_instance;
60415
60129
  function values() {
@@ -60439,7 +60153,7 @@
60439
60153
  Enum.call(this, name, ordinal);
60440
60154
  this.corePresentingOrder = corePresentingOrder;
60441
60155
  }
60442
- protoOf(PresentingOrderJS).r3j = function () {
60156
+ protoOf(PresentingOrderJS).x3f = function () {
60443
60157
  return this.corePresentingOrder;
60444
60158
  };
60445
60159
  defineProp(protoOf(PresentingOrderJS), 'name', protoOf(PresentingOrderJS).mc, VOID);
@@ -60473,7 +60187,7 @@
60473
60187
  Enum.call(this, name, ordinal);
60474
60188
  this.coreOrderBy = coreOrderBy;
60475
60189
  }
60476
- protoOf(OrderByJS).u3j = function () {
60190
+ protoOf(OrderByJS).a3g = function () {
60477
60191
  return this.coreOrderBy;
60478
60192
  };
60479
60193
  defineProp(protoOf(OrderByJS), 'name', protoOf(OrderByJS).mc, VOID);
@@ -60486,13 +60200,13 @@
60486
60200
  var tmp_1 = this;
60487
60201
  tmp_1.customData = properties == null ? null : properties.x2p_1;
60488
60202
  }
60489
- protoOf(Properties).v3j = function () {
60203
+ protoOf(Properties).b3g = function () {
60490
60204
  return this.ttl;
60491
60205
  };
60492
- protoOf(Properties).w3j = function () {
60206
+ protoOf(Properties).c3g = function () {
60493
60207
  return this.customSortKey;
60494
60208
  };
60495
- protoOf(Properties).w3g = function () {
60209
+ protoOf(Properties).f3f = function () {
60496
60210
  return this.customData;
60497
60211
  };
60498
60212
  function ConversationJS(conversation) {
@@ -60522,13 +60236,13 @@
60522
60236
  protoOf(ConversationJS).y3e = function () {
60523
60237
  return this.memberId;
60524
60238
  };
60525
- protoOf(ConversationJS).x3j = function () {
60239
+ protoOf(ConversationJS).d3g = function () {
60526
60240
  return this.memberState;
60527
60241
  };
60528
- protoOf(ConversationJS).y3j = function () {
60242
+ protoOf(ConversationJS).e3g = function () {
60529
60243
  return this.displayName;
60530
60244
  };
60531
- protoOf(ConversationJS).u3h = function () {
60245
+ protoOf(ConversationJS).i3f = function () {
60532
60246
  return this.imageUrl;
60533
60247
  };
60534
60248
  protoOf(ConversationJS).h3a = function () {
@@ -60543,13 +60257,13 @@
60543
60257
  this.INACTIVE = 'INACTIVE';
60544
60258
  this.DELETED = 'DELETED';
60545
60259
  }
60546
- protoOf(ConversationStateJS).z3j = function () {
60260
+ protoOf(ConversationStateJS).f3g = function () {
60547
60261
  return this.ACTIVE;
60548
60262
  };
60549
- protoOf(ConversationStateJS).a3k = function () {
60263
+ protoOf(ConversationStateJS).g3g = function () {
60550
60264
  return this.INACTIVE;
60551
60265
  };
60552
- protoOf(ConversationStateJS).b3k = function () {
60266
+ protoOf(ConversationStateJS).h3g = function () {
60553
60267
  return this.DELETED;
60554
60268
  };
60555
60269
  protoOf(ConversationStateJS).toString = function () {
@@ -60577,13 +60291,13 @@
60577
60291
  this.updated = conversationTimestamp.k2q_1;
60578
60292
  this.destroyed = conversationTimestamp.l2q_1;
60579
60293
  }
60580
- protoOf(ConversationTimestampJS).c3k = function () {
60294
+ protoOf(ConversationTimestampJS).i3g = function () {
60581
60295
  return this.created;
60582
60296
  };
60583
- protoOf(ConversationTimestampJS).d3k = function () {
60297
+ protoOf(ConversationTimestampJS).j3g = function () {
60584
60298
  return this.updated;
60585
60299
  };
60586
- protoOf(ConversationTimestampJS).e3k = function () {
60300
+ protoOf(ConversationTimestampJS).k3g = function () {
60587
60301
  return this.destroyed;
60588
60302
  };
60589
60303
  function ConversationsPageJS(conversationsPage) {
@@ -60605,7 +60319,7 @@
60605
60319
  this.previousCursor = conversationsPage.n2q_1;
60606
60320
  this.nextCursor = conversationsPage.o2q_1;
60607
60321
  }
60608
- protoOf(ConversationsPageJS).f3k = function () {
60322
+ protoOf(ConversationsPageJS).l3g = function () {
60609
60323
  return this.conversations;
60610
60324
  };
60611
60325
  protoOf(ConversationsPageJS).w3e = function () {
@@ -60663,7 +60377,7 @@
60663
60377
  protoOf(MemberJS).r2d = function () {
60664
60378
  return this.user;
60665
60379
  };
60666
- protoOf(MemberJS).g3k = function () {
60380
+ protoOf(MemberJS).m3g = function () {
60667
60381
  return this.channel;
60668
60382
  };
60669
60383
  protoOf(MemberJS).g2b = function () {
@@ -60676,16 +60390,16 @@
60676
60390
  this.LEFT = 'LEFT';
60677
60391
  this.UNKNOWN = 'UNKNOWN';
60678
60392
  }
60679
- protoOf(MemberStateJSObj).h3k = function () {
60393
+ protoOf(MemberStateJSObj).n3g = function () {
60680
60394
  return this.INVITED;
60681
60395
  };
60682
- protoOf(MemberStateJSObj).i3k = function () {
60396
+ protoOf(MemberStateJSObj).o3g = function () {
60683
60397
  return this.JOINED;
60684
60398
  };
60685
- protoOf(MemberStateJSObj).j3k = function () {
60399
+ protoOf(MemberStateJSObj).p3g = function () {
60686
60400
  return this.LEFT;
60687
60401
  };
60688
- protoOf(MemberStateJSObj).k3k = function () {
60402
+ protoOf(MemberStateJSObj).q3g = function () {
60689
60403
  return this.UNKNOWN;
60690
60404
  };
60691
60405
  protoOf(MemberStateJSObj).toString = function () {
@@ -60713,13 +60427,13 @@
60713
60427
  this.joined = memberTimestamp.r2s_1;
60714
60428
  this.left = memberTimestamp.s2s_1;
60715
60429
  }
60716
- protoOf(MemberTimestampJS).l3k = function () {
60430
+ protoOf(MemberTimestampJS).r3g = function () {
60717
60431
  return this.invited;
60718
60432
  };
60719
- protoOf(MemberTimestampJS).m3k = function () {
60433
+ protoOf(MemberTimestampJS).s3g = function () {
60720
60434
  return this.joined;
60721
60435
  };
60722
- protoOf(MemberTimestampJS).n3k = function () {
60436
+ protoOf(MemberTimestampJS).t3g = function () {
60723
60437
  return this.left;
60724
60438
  };
60725
60439
  function MembersPageJS(membersPage) {
@@ -60741,7 +60455,7 @@
60741
60455
  this.previousCursor = membersPage.u2s_1;
60742
60456
  this.nextCursor = membersPage.v2s_1;
60743
60457
  }
60744
- protoOf(MembersPageJS).o3k = function () {
60458
+ protoOf(MembersPageJS).u3g = function () {
60745
60459
  return this.members;
60746
60460
  };
60747
60461
  protoOf(MembersPageJS).w3e = function () {
@@ -60787,19 +60501,19 @@
60787
60501
  protoOf(UserJS).mc = function () {
60788
60502
  return this.name;
60789
60503
  };
60790
- protoOf(UserJS).y3j = function () {
60504
+ protoOf(UserJS).e3g = function () {
60791
60505
  return this.displayName;
60792
60506
  };
60793
- protoOf(UserJS).p3k = function () {
60507
+ protoOf(UserJS).v3g = function () {
60794
60508
  return this.channels;
60795
60509
  };
60796
60510
  protoOf(UserJS).g2b = function () {
60797
60511
  return this.timestamp;
60798
60512
  };
60799
- protoOf(UserJS).u3h = function () {
60513
+ protoOf(UserJS).i3f = function () {
60800
60514
  return this.imageUrl;
60801
60515
  };
60802
- protoOf(UserJS).w3g = function () {
60516
+ protoOf(UserJS).f3f = function () {
60803
60517
  return this.customData;
60804
60518
  };
60805
60519
  function UserTimestampJS(userTimestamp) {
@@ -60807,13 +60521,13 @@
60807
60521
  this.updated = userTimestamp.u2v_1;
60808
60522
  this.destroyed = userTimestamp.v2v_1;
60809
60523
  }
60810
- protoOf(UserTimestampJS).c3k = function () {
60524
+ protoOf(UserTimestampJS).i3g = function () {
60811
60525
  return this.created;
60812
60526
  };
60813
- protoOf(UserTimestampJS).d3k = function () {
60527
+ protoOf(UserTimestampJS).j3g = function () {
60814
60528
  return this.updated;
60815
60529
  };
60816
- protoOf(UserTimestampJS).e3k = function () {
60530
+ protoOf(UserTimestampJS).k3g = function () {
60817
60531
  return this.destroyed;
60818
60532
  };
60819
60533
  function UserChannelsJS(userChannels) {
@@ -61126,37 +60840,37 @@
61126
60840
  }
61127
60841
  tmp_29.messenger = tmp_31;
61128
60842
  }
61129
- protoOf(UserChannelsJS).q3k = function () {
60843
+ protoOf(UserChannelsJS).w3g = function () {
61130
60844
  return this.app;
61131
60845
  };
61132
- protoOf(UserChannelsJS).r3k = function () {
60846
+ protoOf(UserChannelsJS).x3g = function () {
61133
60847
  return this.phone;
61134
60848
  };
61135
- protoOf(UserChannelsJS).s3k = function () {
60849
+ protoOf(UserChannelsJS).y3g = function () {
61136
60850
  return this.pstn;
61137
60851
  };
61138
- protoOf(UserChannelsJS).t3k = function () {
60852
+ protoOf(UserChannelsJS).z3g = function () {
61139
60853
  return this.sip;
61140
60854
  };
61141
- protoOf(UserChannelsJS).u3k = function () {
60855
+ protoOf(UserChannelsJS).a3h = function () {
61142
60856
  return this.vbc;
61143
60857
  };
61144
- protoOf(UserChannelsJS).v3k = function () {
60858
+ protoOf(UserChannelsJS).b3h = function () {
61145
60859
  return this.websocket;
61146
60860
  };
61147
- protoOf(UserChannelsJS).w3k = function () {
60861
+ protoOf(UserChannelsJS).c3h = function () {
61148
60862
  return this.sms;
61149
60863
  };
61150
- protoOf(UserChannelsJS).x3k = function () {
60864
+ protoOf(UserChannelsJS).d3h = function () {
61151
60865
  return this.mms;
61152
60866
  };
61153
- protoOf(UserChannelsJS).e3j = function () {
60867
+ protoOf(UserChannelsJS).q3f = function () {
61154
60868
  return this.whatsapp;
61155
60869
  };
61156
- protoOf(UserChannelsJS).y3k = function () {
60870
+ protoOf(UserChannelsJS).e3h = function () {
61157
60871
  return this.viber;
61158
60872
  };
61159
- protoOf(UserChannelsJS).z3k = function () {
60873
+ protoOf(UserChannelsJS).f3h = function () {
61160
60874
  return this.messenger;
61161
60875
  };
61162
60876
  function MemberChannelJS(memberChannel) {
@@ -61192,7 +60906,7 @@
61192
60906
  protoOf(MemberChannelJS).a3f = function () {
61193
60907
  return this.from;
61194
60908
  };
61195
- protoOf(MemberChannelJS).a3l = function () {
60909
+ protoOf(MemberChannelJS).g3h = function () {
61196
60910
  return this.to;
61197
60911
  };
61198
60912
  function ChannelJS(channel) {
@@ -61202,7 +60916,7 @@
61202
60916
  protoOf(ChannelJS).n1z = function () {
61203
60917
  return this.id;
61204
60918
  };
61205
- protoOf(ChannelJS).b3l = function () {
60919
+ protoOf(ChannelJS).h3h = function () {
61206
60920
  return this.number;
61207
60921
  };
61208
60922
  function LegChannelJS(channel) {
@@ -61216,7 +60930,7 @@
61216
60930
  protoOf(LegChannelJS).r2d = function () {
61217
60931
  return this.user;
61218
60932
  };
61219
- protoOf(LegChannelJS).b3l = function () {
60933
+ protoOf(LegChannelJS).h3h = function () {
61220
60934
  return this.number;
61221
60935
  };
61222
60936
  function LegJS(leg) {
@@ -61236,25 +60950,25 @@
61236
60950
  protoOf(LegJS).w2y = function () {
61237
60951
  return this.type;
61238
60952
  };
61239
- protoOf(LegJS).c3l = function () {
60953
+ protoOf(LegJS).i3h = function () {
61240
60954
  return this.direction;
61241
60955
  };
61242
60956
  protoOf(LegJS).z3e = function () {
61243
60957
  return this.conversationId;
61244
60958
  };
61245
- protoOf(LegJS).d3l = function () {
60959
+ protoOf(LegJS).j3h = function () {
61246
60960
  return this.status;
61247
60961
  };
61248
- protoOf(LegJS).e3l = function () {
60962
+ protoOf(LegJS).k3h = function () {
61249
60963
  return this.startTime;
61250
60964
  };
61251
- protoOf(LegJS).f3l = function () {
60965
+ protoOf(LegJS).l3h = function () {
61252
60966
  return this.endTime;
61253
60967
  };
61254
60968
  protoOf(LegJS).a3f = function () {
61255
60969
  return this.from;
61256
60970
  };
61257
- protoOf(LegJS).a3l = function () {
60971
+ protoOf(LegJS).g3h = function () {
61258
60972
  return this.to;
61259
60973
  };
61260
60974
  var ChannelTypeJS_APP_instance;
@@ -61442,34 +61156,34 @@
61442
61156
  this.CONVERSATION_MAX_NUMBER_OF_MEMBERS = 'conversation:error:maximum-number-of-members';
61443
61157
  this.CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED = 'custom-data:error:max-data-sum-limit-exceeded';
61444
61158
  }
61445
- protoOf(CSErrorCodesJS).i3l = function () {
61159
+ protoOf(CSErrorCodesJS).o3h = function () {
61446
61160
  return this.CONVERSATION_DUPLICATE_NAME;
61447
61161
  };
61448
- protoOf(CSErrorCodesJS).j3l = function () {
61162
+ protoOf(CSErrorCodesJS).p3h = function () {
61449
61163
  return this.MEMBER_ALREADY_JOINED;
61450
61164
  };
61451
- protoOf(CSErrorCodesJS).k3l = function () {
61165
+ protoOf(CSErrorCodesJS).q3h = function () {
61452
61166
  return this.MEMBER_ALREADY_INVITED;
61453
61167
  };
61454
- protoOf(CSErrorCodesJS).l3l = function () {
61168
+ protoOf(CSErrorCodesJS).r3h = function () {
61455
61169
  return this.CONVERSATION_NOT_FOUND;
61456
61170
  };
61457
- protoOf(CSErrorCodesJS).m3l = function () {
61171
+ protoOf(CSErrorCodesJS).s3h = function () {
61458
61172
  return this.MEMBER_NOT_FOUND;
61459
61173
  };
61460
- protoOf(CSErrorCodesJS).n3l = function () {
61174
+ protoOf(CSErrorCodesJS).t3h = function () {
61461
61175
  return this.USER_NOT_FOUND;
61462
61176
  };
61463
- protoOf(CSErrorCodesJS).o3l = function () {
61177
+ protoOf(CSErrorCodesJS).u3h = function () {
61464
61178
  return this.INVALID_CURSOR;
61465
61179
  };
61466
- protoOf(CSErrorCodesJS).p3l = function () {
61180
+ protoOf(CSErrorCodesJS).v3h = function () {
61467
61181
  return this.VALIDATION_FAIL;
61468
61182
  };
61469
- protoOf(CSErrorCodesJS).q3l = function () {
61183
+ protoOf(CSErrorCodesJS).w3h = function () {
61470
61184
  return this.CONVERSATION_MAX_NUMBER_OF_MEMBERS;
61471
61185
  };
61472
- protoOf(CSErrorCodesJS).r3l = function () {
61186
+ protoOf(CSErrorCodesJS).x3h = function () {
61473
61187
  return this.CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED;
61474
61188
  };
61475
61189
  var CSErrorCodesJS_instance;
@@ -61497,52 +61211,52 @@
61497
61211
  this.PING_TIMEOUT_DISCONNECT = 'session:disconnect:ping-timeout';
61498
61212
  this.TRANSPORT_CLOSED_DISCONNECT = 'session:disconnect:websocket-transport-closed';
61499
61213
  }
61500
- protoOf(SessionErrorCodesJS).s3l = function () {
61214
+ protoOf(SessionErrorCodesJS).y3h = function () {
61501
61215
  return this.EMPTY_TOKEN;
61502
61216
  };
61503
- protoOf(SessionErrorCodesJS).t3l = function () {
61217
+ protoOf(SessionErrorCodesJS).z3h = function () {
61504
61218
  return this.FORCED_DISCONNECT;
61505
61219
  };
61506
- protoOf(SessionErrorCodesJS).u3l = function () {
61220
+ protoOf(SessionErrorCodesJS).a3i = function () {
61507
61221
  return this.TIMEOUT;
61508
61222
  };
61509
- protoOf(SessionErrorCodesJS).v3l = function () {
61223
+ protoOf(SessionErrorCodesJS).b3i = function () {
61510
61224
  return this.INTERNAL_FAILURE;
61511
61225
  };
61512
- protoOf(SessionErrorCodesJS).w3l = function () {
61226
+ protoOf(SessionErrorCodesJS).c3i = function () {
61513
61227
  return this.NO_ACTIVE_SESSION;
61514
61228
  };
61515
- protoOf(SessionErrorCodesJS).x3l = function () {
61229
+ protoOf(SessionErrorCodesJS).d3i = function () {
61516
61230
  return this.ALREADY_ACTIVE_SESSION;
61517
61231
  };
61518
- protoOf(SessionErrorCodesJS).y3l = function () {
61232
+ protoOf(SessionErrorCodesJS).e3i = function () {
61519
61233
  return this.INVALID_TOKEN;
61520
61234
  };
61521
- protoOf(SessionErrorCodesJS).z3l = function () {
61235
+ protoOf(SessionErrorCodesJS).f3i = function () {
61522
61236
  return this.EXPIRED_TOKEN;
61523
61237
  };
61524
- protoOf(SessionErrorCodesJS).a3m = function () {
61238
+ protoOf(SessionErrorCodesJS).g3i = function () {
61525
61239
  return this.INVALID_USER;
61526
61240
  };
61527
- protoOf(SessionErrorCodesJS).b3m = function () {
61241
+ protoOf(SessionErrorCodesJS).h3i = function () {
61528
61242
  return this.AUTHORIZATION_ERROR;
61529
61243
  };
61530
- protoOf(SessionErrorCodesJS).c3m = function () {
61244
+ protoOf(SessionErrorCodesJS).i3i = function () {
61531
61245
  return this.INVALID_SESSION;
61532
61246
  };
61533
- protoOf(SessionErrorCodesJS).d3m = function () {
61247
+ protoOf(SessionErrorCodesJS).j3i = function () {
61534
61248
  return this.MAX_OPEN_SESSIONS;
61535
61249
  };
61536
- protoOf(SessionErrorCodesJS).e3m = function () {
61250
+ protoOf(SessionErrorCodesJS).k3i = function () {
61537
61251
  return this.INVALID_SOCKET_TRANSPORT;
61538
61252
  };
61539
- protoOf(SessionErrorCodesJS).f3m = function () {
61253
+ protoOf(SessionErrorCodesJS).l3i = function () {
61540
61254
  return this.CLIENT_DISCONNECT;
61541
61255
  };
61542
- protoOf(SessionErrorCodesJS).g3m = function () {
61256
+ protoOf(SessionErrorCodesJS).m3i = function () {
61543
61257
  return this.PING_TIMEOUT_DISCONNECT;
61544
61258
  };
61545
- protoOf(SessionErrorCodesJS).h3m = function () {
61259
+ protoOf(SessionErrorCodesJS).n3i = function () {
61546
61260
  return this.TRANSPORT_CLOSED_DISCONNECT;
61547
61261
  };
61548
61262
  var SessionErrorCodesJS_instance;
@@ -61564,7 +61278,7 @@
61564
61278
  protoOf(VonageErrorJS).j2d = function () {
61565
61279
  return this.code;
61566
61280
  };
61567
- protoOf(VonageErrorJS).i3m = function () {
61281
+ protoOf(VonageErrorJS).o3i = function () {
61568
61282
  return this.kmpCause;
61569
61283
  };
61570
61284
  var VonageErrorTypeJS_CS_ERROR_instance;
@@ -62569,15 +62283,39 @@
62569
62283
  };
62570
62284
  }
62571
62285
  function IChatClientJS$deleteEvent$lambda$lambda($reject, $resolve) {
62572
- return function (it) {
62573
- if (it instanceof VonageError) {
62574
- $reject(new VonageErrorJS(it));
62286
+ return function (err) {
62287
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
62288
+ var tmp;
62289
+ if (tmp0_safe_receiver == null) {
62290
+ tmp = null;
62575
62291
  } else {
62576
- if (!(it == null)) {
62577
- $reject(it);
62292
+ // Inline function 'kotlin.let' call
62293
+ // Inline function 'kotlin.contracts.contract' call
62294
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
62295
+ tmp = Unit_getInstance();
62296
+ }
62297
+ var tmp2_elvis_lhs = tmp;
62298
+ var tmp_0;
62299
+ if (tmp2_elvis_lhs == null) {
62300
+ var tmp1_safe_receiver = err;
62301
+ var tmp_1;
62302
+ if (tmp1_safe_receiver == null) {
62303
+ tmp_1 = null;
62578
62304
  } else {
62579
- $resolve(null);
62305
+ // Inline function 'kotlin.let' call
62306
+ // Inline function 'kotlin.contracts.contract' call
62307
+ $reject(tmp1_safe_receiver);
62308
+ tmp_1 = Unit_getInstance();
62580
62309
  }
62310
+ tmp_0 = tmp_1;
62311
+ } else {
62312
+ tmp_0 = tmp2_elvis_lhs;
62313
+ }
62314
+ var tmp3_elvis_lhs = tmp_0;
62315
+ if (tmp3_elvis_lhs == null) {
62316
+ $resolve(null);
62317
+ } else {
62318
+ Unit_getInstance();
62581
62319
  }
62582
62320
  return Unit_getInstance();
62583
62321
  };
@@ -62676,7 +62414,7 @@
62676
62414
  Enum.call(this, name, ordinal);
62677
62415
  this.coreRegion = coreRegion;
62678
62416
  }
62679
- protoOf(CoreClientConfigRegionJS).n3m = function () {
62417
+ protoOf(CoreClientConfigRegionJS).t3i = function () {
62680
62418
  return this.coreRegion;
62681
62419
  };
62682
62420
  defineProp(protoOf(CoreClientConfigRegionJS), 'name', protoOf(CoreClientConfigRegionJS).mc, VOID);
@@ -62684,73 +62422,73 @@
62684
62422
  function CoreClientConfigJS(region) {
62685
62423
  region = region === VOID ? get_DEFAULT_REGION() : region;
62686
62424
  this.region = region;
62687
- this.o3m_1 = this.region.coreRegion.j2l_1;
62688
- this.p3m_1 = this.region.coreRegion.k2l_1;
62425
+ this.u3i_1 = this.region.coreRegion.j2l_1;
62426
+ this.v3i_1 = this.region.coreRegion.k2l_1;
62689
62427
  var tmp = this;
62690
62428
  DefaultConfig_getInstance();
62691
- tmp.q3m_1 = '/v2/rtc';
62429
+ tmp.w3i_1 = '/v2/rtc';
62692
62430
  var tmp_0 = this;
62693
62431
  DefaultConfig_getInstance();
62694
- tmp_0.r3m_1 = true;
62695
- this.s3m_1 = false;
62432
+ tmp_0.x3i_1 = true;
62433
+ this.y3i_1 = false;
62696
62434
  }
62697
- protoOf(CoreClientConfigJS).t3m = function () {
62435
+ protoOf(CoreClientConfigJS).z3i = function () {
62698
62436
  return this.region;
62699
62437
  };
62700
- protoOf(CoreClientConfigJS).u3m = function (_set____db54di) {
62701
- this.o3m_1 = _set____db54di;
62438
+ protoOf(CoreClientConfigJS).a3j = function (_set____db54di) {
62439
+ this.u3i_1 = _set____db54di;
62702
62440
  };
62703
- protoOf(CoreClientConfigJS).v3m = function () {
62704
- return this.o3m_1;
62441
+ protoOf(CoreClientConfigJS).b3j = function () {
62442
+ return this.u3i_1;
62705
62443
  };
62706
- protoOf(CoreClientConfigJS).w3m = function (_set____db54di) {
62707
- this.p3m_1 = _set____db54di;
62444
+ protoOf(CoreClientConfigJS).c3j = function (_set____db54di) {
62445
+ this.v3i_1 = _set____db54di;
62708
62446
  };
62709
- protoOf(CoreClientConfigJS).x3m = function () {
62710
- return this.p3m_1;
62447
+ protoOf(CoreClientConfigJS).d3j = function () {
62448
+ return this.v3i_1;
62711
62449
  };
62712
- protoOf(CoreClientConfigJS).y3m = function (_set____db54di) {
62713
- this.q3m_1 = _set____db54di;
62450
+ protoOf(CoreClientConfigJS).e3j = function (_set____db54di) {
62451
+ this.w3i_1 = _set____db54di;
62714
62452
  };
62715
- protoOf(CoreClientConfigJS).z3m = function () {
62716
- return this.q3m_1;
62453
+ protoOf(CoreClientConfigJS).f3j = function () {
62454
+ return this.w3i_1;
62717
62455
  };
62718
- protoOf(CoreClientConfigJS).a3n = function (_set____db54di) {
62719
- this.r3m_1 = _set____db54di;
62456
+ protoOf(CoreClientConfigJS).g3j = function (_set____db54di) {
62457
+ this.x3i_1 = _set____db54di;
62720
62458
  };
62721
- protoOf(CoreClientConfigJS).b3n = function () {
62722
- return this.r3m_1;
62459
+ protoOf(CoreClientConfigJS).h3j = function () {
62460
+ return this.x3i_1;
62723
62461
  };
62724
- protoOf(CoreClientConfigJS).c3n = function (_set____db54di) {
62725
- this.s3m_1 = _set____db54di;
62462
+ protoOf(CoreClientConfigJS).i3j = function (_set____db54di) {
62463
+ this.y3i_1 = _set____db54di;
62726
62464
  };
62727
- protoOf(CoreClientConfigJS).d3n = function () {
62728
- return this.s3m_1;
62465
+ protoOf(CoreClientConfigJS).j3j = function () {
62466
+ return this.y3i_1;
62729
62467
  };
62730
62468
  defineProp(protoOf(CoreClientConfigJS), 'apiUrl', function () {
62731
- return this.v3m();
62469
+ return this.b3j();
62732
62470
  }, function (value) {
62733
- this.u3m(value);
62471
+ this.a3j(value);
62734
62472
  });
62735
62473
  defineProp(protoOf(CoreClientConfigJS), 'websocketUrl', function () {
62736
- return this.x3m();
62474
+ return this.d3j();
62737
62475
  }, function (value) {
62738
- this.w3m(value);
62476
+ this.c3j(value);
62739
62477
  });
62740
62478
  defineProp(protoOf(CoreClientConfigJS), 'websocketPath', function () {
62741
- return this.z3m();
62479
+ return this.f3j();
62742
62480
  }, function (value) {
62743
- this.y3m(value);
62481
+ this.e3j(value);
62744
62482
  });
62745
62483
  defineProp(protoOf(CoreClientConfigJS), 'rtcStatsTelemetry', function () {
62746
- return this.b3n();
62484
+ return this.h3j();
62747
62485
  }, function (value) {
62748
- this.a3n(value);
62486
+ this.g3j(value);
62749
62487
  });
62750
62488
  defineProp(protoOf(CoreClientConfigJS), 'autoReconnectMedia', function () {
62751
- return this.d3n();
62489
+ return this.j3j();
62752
62490
  }, function (value) {
62753
- this.c3n(value);
62491
+ this.i3j(value);
62754
62492
  });
62755
62493
  function TopicJS(name, tag) {
62756
62494
  this.name = name;
@@ -62759,7 +62497,7 @@
62759
62497
  protoOf(TopicJS).mc = function () {
62760
62498
  return this.name;
62761
62499
  };
62762
- protoOf(TopicJS).e3n = function () {
62500
+ protoOf(TopicJS).k3j = function () {
62763
62501
  return this.tag;
62764
62502
  };
62765
62503
  protoOf(TopicJS).r2 = function () {
@@ -62768,13 +62506,13 @@
62768
62506
  protoOf(TopicJS).s2 = function () {
62769
62507
  return this.tag;
62770
62508
  };
62771
- protoOf(TopicJS).f3n = function (name, tag) {
62509
+ protoOf(TopicJS).l3j = function (name, tag) {
62772
62510
  return new TopicJS(name, tag);
62773
62511
  };
62774
62512
  protoOf(TopicJS).copy = function (name, tag, $super) {
62775
62513
  name = name === VOID ? this.name : name;
62776
62514
  tag = tag === VOID ? this.tag : tag;
62777
- return this.f3n(name, tag);
62515
+ return this.l3j(name, tag);
62778
62516
  };
62779
62517
  protoOf(TopicJS).toString = function () {
62780
62518
  return 'TopicJS(name=' + this.name + ', tag=' + this.tag + ')';
@@ -62953,30 +62691,87 @@
62953
62691
  };
62954
62692
  defineProp(protoOf(SessionErrorReasonJS), 'name', protoOf(SessionErrorReasonJS).mc, VOID);
62955
62693
  defineProp(protoOf(SessionErrorReasonJS), 'ordinal', protoOf(SessionErrorReasonJS).nc, VOID);
62956
- function ICoreClientJS$createSession$lambda$lambda($reject, $resolve) {
62694
+ function ICoreClientJS$createSession$lambda$lambda($resolve, $reject) {
62957
62695
  return function (err, sessionId) {
62958
- if (!(err == null))
62959
- $reject(err);
62960
- else if (!(sessionId == null))
62961
- $resolve(sessionId);
62962
- else
62963
- $reject(newThrowable(''));
62696
+ var tmp0_safe_receiver = sessionId;
62697
+ var tmp;
62698
+ if (tmp0_safe_receiver == null) {
62699
+ tmp = null;
62700
+ } else {
62701
+ // Inline function 'kotlin.let' call
62702
+ // Inline function 'kotlin.contracts.contract' call
62703
+ $resolve(tmp0_safe_receiver);
62704
+ tmp = Unit_getInstance();
62705
+ }
62706
+ var tmp2_elvis_lhs = tmp;
62707
+ var tmp_0;
62708
+ if (tmp2_elvis_lhs == null) {
62709
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
62710
+ var tmp_1;
62711
+ if (tmp1_safe_receiver == null) {
62712
+ tmp_1 = null;
62713
+ } else {
62714
+ // Inline function 'kotlin.let' call
62715
+ // Inline function 'kotlin.contracts.contract' call
62716
+ $reject(new VonageErrorJS(tmp1_safe_receiver));
62717
+ tmp_1 = Unit_getInstance();
62718
+ }
62719
+ tmp_0 = tmp_1;
62720
+ } else {
62721
+ tmp_0 = tmp2_elvis_lhs;
62722
+ }
62723
+ var tmp4_elvis_lhs = tmp_0;
62724
+ if (tmp4_elvis_lhs == null) {
62725
+ var tmp3_elvis_lhs = err;
62726
+ $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
62727
+ } else {
62728
+ Unit_getInstance();
62729
+ }
62964
62730
  return Unit_getInstance();
62965
62731
  };
62966
62732
  }
62967
62733
  function ICoreClientJS$createSession$lambda(this$0, $token, $sessionId) {
62968
62734
  return function (resolve, reject) {
62969
62735
  var tmp = this$0.core;
62970
- tmp.v19($token, $sessionId, ICoreClientJS$createSession$lambda$lambda(reject, resolve));
62736
+ tmp.v19($token, $sessionId, ICoreClientJS$createSession$lambda$lambda(resolve, reject));
62971
62737
  return Unit_getInstance();
62972
62738
  };
62973
62739
  }
62974
62740
  function ICoreClientJS$deleteSession$lambda$lambda($reject, $resolve) {
62975
62741
  return function (err) {
62976
- if (!(err == null))
62977
- $reject(err);
62978
- else
62742
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
62743
+ var tmp;
62744
+ if (tmp0_safe_receiver == null) {
62745
+ tmp = null;
62746
+ } else {
62747
+ // Inline function 'kotlin.let' call
62748
+ // Inline function 'kotlin.contracts.contract' call
62749
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
62750
+ tmp = Unit_getInstance();
62751
+ }
62752
+ var tmp2_elvis_lhs = tmp;
62753
+ var tmp_0;
62754
+ if (tmp2_elvis_lhs == null) {
62755
+ var tmp1_safe_receiver = err;
62756
+ var tmp_1;
62757
+ if (tmp1_safe_receiver == null) {
62758
+ tmp_1 = null;
62759
+ } else {
62760
+ // Inline function 'kotlin.let' call
62761
+ // Inline function 'kotlin.contracts.contract' call
62762
+ $reject(tmp1_safe_receiver);
62763
+ tmp_1 = Unit_getInstance();
62764
+ }
62765
+ tmp_0 = tmp_1;
62766
+ } else {
62767
+ tmp_0 = tmp2_elvis_lhs;
62768
+ }
62769
+ var tmp3_elvis_lhs = tmp_0;
62770
+ if (tmp3_elvis_lhs == null) {
62979
62771
  $resolve(null);
62772
+ } else {
62773
+ Unit_getInstance();
62774
+ }
62980
62775
  return Unit_getInstance();
62981
62776
  };
62982
62777
  }
@@ -62989,10 +62784,39 @@
62989
62784
  }
62990
62785
  function ICoreClientJS$refreshSession$lambda$lambda($reject, $resolve) {
62991
62786
  return function (err) {
62992
- if (!(err == null))
62993
- $reject(err);
62994
- else
62787
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
62788
+ var tmp;
62789
+ if (tmp0_safe_receiver == null) {
62790
+ tmp = null;
62791
+ } else {
62792
+ // Inline function 'kotlin.let' call
62793
+ // Inline function 'kotlin.contracts.contract' call
62794
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
62795
+ tmp = Unit_getInstance();
62796
+ }
62797
+ var tmp2_elvis_lhs = tmp;
62798
+ var tmp_0;
62799
+ if (tmp2_elvis_lhs == null) {
62800
+ var tmp1_safe_receiver = err;
62801
+ var tmp_1;
62802
+ if (tmp1_safe_receiver == null) {
62803
+ tmp_1 = null;
62804
+ } else {
62805
+ // Inline function 'kotlin.let' call
62806
+ // Inline function 'kotlin.contracts.contract' call
62807
+ $reject(tmp1_safe_receiver);
62808
+ tmp_1 = Unit_getInstance();
62809
+ }
62810
+ tmp_0 = tmp_1;
62811
+ } else {
62812
+ tmp_0 = tmp2_elvis_lhs;
62813
+ }
62814
+ var tmp3_elvis_lhs = tmp_0;
62815
+ if (tmp3_elvis_lhs == null) {
62995
62816
  $resolve(null);
62817
+ } else {
62818
+ Unit_getInstance();
62819
+ }
62996
62820
  return Unit_getInstance();
62997
62821
  };
62998
62822
  }
@@ -63016,9 +62840,26 @@
63016
62840
  tmp = Unit_getInstance();
63017
62841
  }
63018
62842
  var tmp2_elvis_lhs = tmp;
62843
+ var tmp_0;
63019
62844
  if (tmp2_elvis_lhs == null) {
63020
- var tmp1_elvis_lhs = err;
63021
- $reject(tmp1_elvis_lhs == null ? newThrowable() : tmp1_elvis_lhs);
62845
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
62846
+ var tmp_1;
62847
+ if (tmp1_safe_receiver == null) {
62848
+ tmp_1 = null;
62849
+ } else {
62850
+ // Inline function 'kotlin.let' call
62851
+ // Inline function 'kotlin.contracts.contract' call
62852
+ $reject(new VonageErrorJS(tmp1_safe_receiver));
62853
+ tmp_1 = Unit_getInstance();
62854
+ }
62855
+ tmp_0 = tmp_1;
62856
+ } else {
62857
+ tmp_0 = tmp2_elvis_lhs;
62858
+ }
62859
+ var tmp4_elvis_lhs = tmp_0;
62860
+ if (tmp4_elvis_lhs == null) {
62861
+ var tmp3_elvis_lhs = err;
62862
+ $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
63022
62863
  } else {
63023
62864
  Unit_getInstance();
63024
62865
  }
@@ -63045,9 +62886,26 @@
63045
62886
  tmp = Unit_getInstance();
63046
62887
  }
63047
62888
  var tmp2_elvis_lhs = tmp;
62889
+ var tmp_0;
63048
62890
  if (tmp2_elvis_lhs == null) {
63049
- var tmp1_elvis_lhs = err;
63050
- $reject(tmp1_elvis_lhs == null ? newThrowable() : tmp1_elvis_lhs);
62891
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
62892
+ var tmp_1;
62893
+ if (tmp1_safe_receiver == null) {
62894
+ tmp_1 = null;
62895
+ } else {
62896
+ // Inline function 'kotlin.let' call
62897
+ // Inline function 'kotlin.contracts.contract' call
62898
+ $reject(new VonageErrorJS(tmp1_safe_receiver));
62899
+ tmp_1 = Unit_getInstance();
62900
+ }
62901
+ tmp_0 = tmp_1;
62902
+ } else {
62903
+ tmp_0 = tmp2_elvis_lhs;
62904
+ }
62905
+ var tmp4_elvis_lhs = tmp_0;
62906
+ if (tmp4_elvis_lhs == null) {
62907
+ var tmp3_elvis_lhs = err;
62908
+ $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
63051
62909
  } else {
63052
62910
  Unit_getInstance();
63053
62911
  }
@@ -63236,22 +63094,22 @@
63236
63094
  return _this__u8e3s4 == null ? null : equals(_this__u8e3s4, undefined) ? null : _this__u8e3s4;
63237
63095
  }
63238
63096
  function createVonageLoggerJS$1($name, $minLogLevel, $topics, $onLog) {
63239
- this.p3n_1 = $onLog;
63240
- this.m3n_1 = $name;
63241
- this.n3n_1 = $minLogLevel;
63242
- this.o3n_1 = $topics;
63097
+ this.v3j_1 = $onLog;
63098
+ this.s3j_1 = $name;
63099
+ this.t3j_1 = $minLogLevel;
63100
+ this.u3j_1 = $topics;
63243
63101
  }
63244
63102
  protoOf(createVonageLoggerJS$1).mc = function () {
63245
- return this.m3n_1;
63103
+ return this.s3j_1;
63246
63104
  };
63247
63105
  protoOf(createVonageLoggerJS$1).c34 = function () {
63248
- return this.n3n_1;
63106
+ return this.t3j_1;
63249
63107
  };
63250
63108
  protoOf(createVonageLoggerJS$1).u33 = function () {
63251
- return this.o3n_1;
63109
+ return this.u3j_1;
63252
63110
  };
63253
63111
  protoOf(createVonageLoggerJS$1).onLog = function (logLevel, topic, message) {
63254
- this.p3n_1(logLevel, topic, message);
63112
+ this.v3j_1(logLevel, topic, message);
63255
63113
  };
63256
63114
  defineProp(protoOf(createVonageLoggerJS$1), 'name', function () {
63257
63115
  return this.mc();
@@ -63453,11 +63311,39 @@
63453
63311
  defineProp(protoOf(HangupReasonJS), 'ordinal', protoOf(HangupReasonJS).nc, VOID);
63454
63312
  function IVoiceClientJS$serverCall$lambda$lambda($resolve, $reject) {
63455
63313
  return function (err, callId) {
63456
- if (!(callId == null)) {
63457
- $resolve(callId);
63314
+ var tmp0_safe_receiver = callId;
63315
+ var tmp;
63316
+ if (tmp0_safe_receiver == null) {
63317
+ tmp = null;
63318
+ } else {
63319
+ // Inline function 'kotlin.let' call
63320
+ // Inline function 'kotlin.contracts.contract' call
63321
+ $resolve(tmp0_safe_receiver);
63322
+ tmp = Unit_getInstance();
63323
+ }
63324
+ var tmp2_elvis_lhs = tmp;
63325
+ var tmp_0;
63326
+ if (tmp2_elvis_lhs == null) {
63327
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
63328
+ var tmp_1;
63329
+ if (tmp1_safe_receiver == null) {
63330
+ tmp_1 = null;
63331
+ } else {
63332
+ // Inline function 'kotlin.let' call
63333
+ // Inline function 'kotlin.contracts.contract' call
63334
+ $reject(new VonageErrorJS(tmp1_safe_receiver));
63335
+ tmp_1 = Unit_getInstance();
63336
+ }
63337
+ tmp_0 = tmp_1;
63338
+ } else {
63339
+ tmp_0 = tmp2_elvis_lhs;
63340
+ }
63341
+ var tmp4_elvis_lhs = tmp_0;
63342
+ if (tmp4_elvis_lhs == null) {
63343
+ var tmp3_elvis_lhs = err;
63344
+ $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
63458
63345
  } else {
63459
- var tmp0_elvis_lhs = err;
63460
- $reject(tmp0_elvis_lhs == null ? newThrowable('') : tmp0_elvis_lhs);
63346
+ Unit_getInstance();
63461
63347
  }
63462
63348
  return Unit_getInstance();
63463
63349
  };
@@ -63471,10 +63357,38 @@
63471
63357
  }
63472
63358
  function IVoiceClientJS$reconnectCall$lambda$lambda($reject, $resolve) {
63473
63359
  return function (err) {
63474
- if (!(err == null)) {
63475
- $reject(err instanceof Error ? err : THROW_CCE());
63360
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63361
+ var tmp;
63362
+ if (tmp0_safe_receiver == null) {
63363
+ tmp = null;
63476
63364
  } else {
63365
+ // Inline function 'kotlin.let' call
63366
+ // Inline function 'kotlin.contracts.contract' call
63367
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63368
+ tmp = Unit_getInstance();
63369
+ }
63370
+ var tmp2_elvis_lhs = tmp;
63371
+ var tmp_0;
63372
+ if (tmp2_elvis_lhs == null) {
63373
+ var tmp1_safe_receiver = err;
63374
+ var tmp_1;
63375
+ if (tmp1_safe_receiver == null) {
63376
+ tmp_1 = null;
63377
+ } else {
63378
+ // Inline function 'kotlin.let' call
63379
+ // Inline function 'kotlin.contracts.contract' call
63380
+ $reject(tmp1_safe_receiver);
63381
+ tmp_1 = Unit_getInstance();
63382
+ }
63383
+ tmp_0 = tmp_1;
63384
+ } else {
63385
+ tmp_0 = tmp2_elvis_lhs;
63386
+ }
63387
+ var tmp3_elvis_lhs = tmp_0;
63388
+ if (tmp3_elvis_lhs == null) {
63477
63389
  $resolve(null);
63390
+ } else {
63391
+ Unit_getInstance();
63478
63392
  }
63479
63393
  return Unit_getInstance();
63480
63394
  };
@@ -63488,11 +63402,39 @@
63488
63402
  }
63489
63403
  function IVoiceClientJS$getLeg$lambda$lambda($resolve, $reject) {
63490
63404
  return function (err, leg) {
63491
- if (!(leg == null)) {
63492
- $resolve(new LegJS(leg));
63405
+ var tmp0_safe_receiver = leg;
63406
+ var tmp;
63407
+ if (tmp0_safe_receiver == null) {
63408
+ tmp = null;
63409
+ } else {
63410
+ // Inline function 'kotlin.let' call
63411
+ // Inline function 'kotlin.contracts.contract' call
63412
+ $resolve(new LegJS(tmp0_safe_receiver));
63413
+ tmp = Unit_getInstance();
63414
+ }
63415
+ var tmp2_elvis_lhs = tmp;
63416
+ var tmp_0;
63417
+ if (tmp2_elvis_lhs == null) {
63418
+ var tmp1_safe_receiver = err instanceof VonageError ? err : null;
63419
+ var tmp_1;
63420
+ if (tmp1_safe_receiver == null) {
63421
+ tmp_1 = null;
63422
+ } else {
63423
+ // Inline function 'kotlin.let' call
63424
+ // Inline function 'kotlin.contracts.contract' call
63425
+ $reject(new VonageErrorJS(tmp1_safe_receiver));
63426
+ tmp_1 = Unit_getInstance();
63427
+ }
63428
+ tmp_0 = tmp_1;
63429
+ } else {
63430
+ tmp_0 = tmp2_elvis_lhs;
63431
+ }
63432
+ var tmp4_elvis_lhs = tmp_0;
63433
+ if (tmp4_elvis_lhs == null) {
63434
+ var tmp3_elvis_lhs = err;
63435
+ $reject(tmp3_elvis_lhs == null ? newThrowable() : tmp3_elvis_lhs);
63493
63436
  } else {
63494
- var tmp0_elvis_lhs = err;
63495
- $reject(tmp0_elvis_lhs == null ? newThrowable('') : tmp0_elvis_lhs);
63437
+ Unit_getInstance();
63496
63438
  }
63497
63439
  return Unit_getInstance();
63498
63440
  };
@@ -63505,11 +63447,39 @@
63505
63447
  };
63506
63448
  }
63507
63449
  function IVoiceClientJS$answer$lambda$lambda($reject, $resolve) {
63508
- return function (it) {
63509
- if (!(it == null)) {
63510
- $reject(it instanceof Error ? it : THROW_CCE());
63450
+ return function (err) {
63451
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63452
+ var tmp;
63453
+ if (tmp0_safe_receiver == null) {
63454
+ tmp = null;
63511
63455
  } else {
63456
+ // Inline function 'kotlin.let' call
63457
+ // Inline function 'kotlin.contracts.contract' call
63458
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63459
+ tmp = Unit_getInstance();
63460
+ }
63461
+ var tmp2_elvis_lhs = tmp;
63462
+ var tmp_0;
63463
+ if (tmp2_elvis_lhs == null) {
63464
+ var tmp1_safe_receiver = err;
63465
+ var tmp_1;
63466
+ if (tmp1_safe_receiver == null) {
63467
+ tmp_1 = null;
63468
+ } else {
63469
+ // Inline function 'kotlin.let' call
63470
+ // Inline function 'kotlin.contracts.contract' call
63471
+ $reject(tmp1_safe_receiver);
63472
+ tmp_1 = Unit_getInstance();
63473
+ }
63474
+ tmp_0 = tmp_1;
63475
+ } else {
63476
+ tmp_0 = tmp2_elvis_lhs;
63477
+ }
63478
+ var tmp3_elvis_lhs = tmp_0;
63479
+ if (tmp3_elvis_lhs == null) {
63512
63480
  $resolve(null);
63481
+ } else {
63482
+ Unit_getInstance();
63513
63483
  }
63514
63484
  return Unit_getInstance();
63515
63485
  };
@@ -63522,11 +63492,39 @@
63522
63492
  };
63523
63493
  }
63524
63494
  function IVoiceClientJS$reject$lambda$lambda($reject, $resolve) {
63525
- return function (it) {
63526
- if (!(it == null)) {
63527
- $reject(it instanceof Error ? it : THROW_CCE());
63495
+ return function (err) {
63496
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63497
+ var tmp;
63498
+ if (tmp0_safe_receiver == null) {
63499
+ tmp = null;
63500
+ } else {
63501
+ // Inline function 'kotlin.let' call
63502
+ // Inline function 'kotlin.contracts.contract' call
63503
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63504
+ tmp = Unit_getInstance();
63505
+ }
63506
+ var tmp2_elvis_lhs = tmp;
63507
+ var tmp_0;
63508
+ if (tmp2_elvis_lhs == null) {
63509
+ var tmp1_safe_receiver = err;
63510
+ var tmp_1;
63511
+ if (tmp1_safe_receiver == null) {
63512
+ tmp_1 = null;
63513
+ } else {
63514
+ // Inline function 'kotlin.let' call
63515
+ // Inline function 'kotlin.contracts.contract' call
63516
+ $reject(tmp1_safe_receiver);
63517
+ tmp_1 = Unit_getInstance();
63518
+ }
63519
+ tmp_0 = tmp_1;
63528
63520
  } else {
63521
+ tmp_0 = tmp2_elvis_lhs;
63522
+ }
63523
+ var tmp3_elvis_lhs = tmp_0;
63524
+ if (tmp3_elvis_lhs == null) {
63529
63525
  $resolve(null);
63526
+ } else {
63527
+ Unit_getInstance();
63530
63528
  }
63531
63529
  return Unit_getInstance();
63532
63530
  };
@@ -63538,13 +63536,40 @@
63538
63536
  return Unit_getInstance();
63539
63537
  };
63540
63538
  }
63541
- function IVoiceClientJS$hangup$lambda$lambda($resolve, $reject) {
63542
- return function (it) {
63543
- var tmp0_subject = it;
63544
- if (tmp0_subject == null) {
63539
+ function IVoiceClientJS$hangup$lambda$lambda($reject, $resolve) {
63540
+ return function (err) {
63541
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63542
+ var tmp;
63543
+ if (tmp0_safe_receiver == null) {
63544
+ tmp = null;
63545
+ } else {
63546
+ // Inline function 'kotlin.let' call
63547
+ // Inline function 'kotlin.contracts.contract' call
63548
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63549
+ tmp = Unit_getInstance();
63550
+ }
63551
+ var tmp2_elvis_lhs = tmp;
63552
+ var tmp_0;
63553
+ if (tmp2_elvis_lhs == null) {
63554
+ var tmp1_safe_receiver = err;
63555
+ var tmp_1;
63556
+ if (tmp1_safe_receiver == null) {
63557
+ tmp_1 = null;
63558
+ } else {
63559
+ // Inline function 'kotlin.let' call
63560
+ // Inline function 'kotlin.contracts.contract' call
63561
+ $reject(tmp1_safe_receiver);
63562
+ tmp_1 = Unit_getInstance();
63563
+ }
63564
+ tmp_0 = tmp_1;
63565
+ } else {
63566
+ tmp_0 = tmp2_elvis_lhs;
63567
+ }
63568
+ var tmp3_elvis_lhs = tmp_0;
63569
+ if (tmp3_elvis_lhs == null) {
63545
63570
  $resolve(null);
63546
63571
  } else {
63547
- $reject(it instanceof Error ? it : THROW_CCE());
63572
+ Unit_getInstance();
63548
63573
  }
63549
63574
  return Unit_getInstance();
63550
63575
  };
@@ -63552,16 +63577,44 @@
63552
63577
  function IVoiceClientJS$hangup$lambda(this$0, $callId, $reasonText, $reasonCode) {
63553
63578
  return function (resolve, reject) {
63554
63579
  var tmp = this$0.core;
63555
- tmp.c18($callId, $reasonText, $reasonCode, IVoiceClientJS$hangup$lambda$lambda(resolve, reject));
63580
+ tmp.c18($callId, $reasonText, $reasonCode, IVoiceClientJS$hangup$lambda$lambda(reject, resolve));
63556
63581
  return Unit_getInstance();
63557
63582
  };
63558
63583
  }
63559
63584
  function IVoiceClientJS$say$lambda$lambda($reject, $resolve) {
63560
- return function (it) {
63561
- if (!(it == null)) {
63562
- $reject(it instanceof Error ? it : THROW_CCE());
63585
+ return function (err) {
63586
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63587
+ var tmp;
63588
+ if (tmp0_safe_receiver == null) {
63589
+ tmp = null;
63590
+ } else {
63591
+ // Inline function 'kotlin.let' call
63592
+ // Inline function 'kotlin.contracts.contract' call
63593
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63594
+ tmp = Unit_getInstance();
63595
+ }
63596
+ var tmp2_elvis_lhs = tmp;
63597
+ var tmp_0;
63598
+ if (tmp2_elvis_lhs == null) {
63599
+ var tmp1_safe_receiver = err;
63600
+ var tmp_1;
63601
+ if (tmp1_safe_receiver == null) {
63602
+ tmp_1 = null;
63603
+ } else {
63604
+ // Inline function 'kotlin.let' call
63605
+ // Inline function 'kotlin.contracts.contract' call
63606
+ $reject(tmp1_safe_receiver);
63607
+ tmp_1 = Unit_getInstance();
63608
+ }
63609
+ tmp_0 = tmp_1;
63563
63610
  } else {
63611
+ tmp_0 = tmp2_elvis_lhs;
63612
+ }
63613
+ var tmp3_elvis_lhs = tmp_0;
63614
+ if (tmp3_elvis_lhs == null) {
63564
63615
  $resolve(null);
63616
+ } else {
63617
+ Unit_getInstance();
63565
63618
  }
63566
63619
  return Unit_getInstance();
63567
63620
  };
@@ -63585,11 +63638,39 @@
63585
63638
  };
63586
63639
  }
63587
63640
  function IVoiceClientJS$mute$lambda$lambda($reject, $resolve) {
63588
- return function (it) {
63589
- if (!(it == null)) {
63590
- $reject(it instanceof Error ? it : THROW_CCE());
63641
+ return function (err) {
63642
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63643
+ var tmp;
63644
+ if (tmp0_safe_receiver == null) {
63645
+ tmp = null;
63646
+ } else {
63647
+ // Inline function 'kotlin.let' call
63648
+ // Inline function 'kotlin.contracts.contract' call
63649
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63650
+ tmp = Unit_getInstance();
63651
+ }
63652
+ var tmp2_elvis_lhs = tmp;
63653
+ var tmp_0;
63654
+ if (tmp2_elvis_lhs == null) {
63655
+ var tmp1_safe_receiver = err;
63656
+ var tmp_1;
63657
+ if (tmp1_safe_receiver == null) {
63658
+ tmp_1 = null;
63659
+ } else {
63660
+ // Inline function 'kotlin.let' call
63661
+ // Inline function 'kotlin.contracts.contract' call
63662
+ $reject(tmp1_safe_receiver);
63663
+ tmp_1 = Unit_getInstance();
63664
+ }
63665
+ tmp_0 = tmp_1;
63591
63666
  } else {
63667
+ tmp_0 = tmp2_elvis_lhs;
63668
+ }
63669
+ var tmp3_elvis_lhs = tmp_0;
63670
+ if (tmp3_elvis_lhs == null) {
63592
63671
  $resolve(null);
63672
+ } else {
63673
+ Unit_getInstance();
63593
63674
  }
63594
63675
  return Unit_getInstance();
63595
63676
  };
@@ -63602,11 +63683,40 @@
63602
63683
  };
63603
63684
  }
63604
63685
  function IVoiceClientJS$unmute$lambda$lambda($reject, $resolve) {
63605
- return function (it) {
63606
- if (!(it == null))
63607
- $reject(it);
63608
- else
63686
+ return function (err) {
63687
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63688
+ var tmp;
63689
+ if (tmp0_safe_receiver == null) {
63690
+ tmp = null;
63691
+ } else {
63692
+ // Inline function 'kotlin.let' call
63693
+ // Inline function 'kotlin.contracts.contract' call
63694
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63695
+ tmp = Unit_getInstance();
63696
+ }
63697
+ var tmp2_elvis_lhs = tmp;
63698
+ var tmp_0;
63699
+ if (tmp2_elvis_lhs == null) {
63700
+ var tmp1_safe_receiver = err;
63701
+ var tmp_1;
63702
+ if (tmp1_safe_receiver == null) {
63703
+ tmp_1 = null;
63704
+ } else {
63705
+ // Inline function 'kotlin.let' call
63706
+ // Inline function 'kotlin.contracts.contract' call
63707
+ $reject(tmp1_safe_receiver);
63708
+ tmp_1 = Unit_getInstance();
63709
+ }
63710
+ tmp_0 = tmp_1;
63711
+ } else {
63712
+ tmp_0 = tmp2_elvis_lhs;
63713
+ }
63714
+ var tmp3_elvis_lhs = tmp_0;
63715
+ if (tmp3_elvis_lhs == null) {
63609
63716
  $resolve(null);
63717
+ } else {
63718
+ Unit_getInstance();
63719
+ }
63610
63720
  return Unit_getInstance();
63611
63721
  };
63612
63722
  }
@@ -63618,11 +63728,40 @@
63618
63728
  };
63619
63729
  }
63620
63730
  function IVoiceClientJS$enableEarmuff$lambda$lambda($reject, $resolve) {
63621
- return function (it) {
63622
- if (!(it == null))
63623
- $reject(it);
63624
- else
63731
+ return function (err) {
63732
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63733
+ var tmp;
63734
+ if (tmp0_safe_receiver == null) {
63735
+ tmp = null;
63736
+ } else {
63737
+ // Inline function 'kotlin.let' call
63738
+ // Inline function 'kotlin.contracts.contract' call
63739
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63740
+ tmp = Unit_getInstance();
63741
+ }
63742
+ var tmp2_elvis_lhs = tmp;
63743
+ var tmp_0;
63744
+ if (tmp2_elvis_lhs == null) {
63745
+ var tmp1_safe_receiver = err;
63746
+ var tmp_1;
63747
+ if (tmp1_safe_receiver == null) {
63748
+ tmp_1 = null;
63749
+ } else {
63750
+ // Inline function 'kotlin.let' call
63751
+ // Inline function 'kotlin.contracts.contract' call
63752
+ $reject(tmp1_safe_receiver);
63753
+ tmp_1 = Unit_getInstance();
63754
+ }
63755
+ tmp_0 = tmp_1;
63756
+ } else {
63757
+ tmp_0 = tmp2_elvis_lhs;
63758
+ }
63759
+ var tmp3_elvis_lhs = tmp_0;
63760
+ if (tmp3_elvis_lhs == null) {
63625
63761
  $resolve(null);
63762
+ } else {
63763
+ Unit_getInstance();
63764
+ }
63626
63765
  return Unit_getInstance();
63627
63766
  };
63628
63767
  }
@@ -63634,11 +63773,40 @@
63634
63773
  };
63635
63774
  }
63636
63775
  function IVoiceClientJS$disableEarmuff$lambda$lambda($reject, $resolve) {
63637
- return function (it) {
63638
- if (!(it == null))
63639
- $reject(it);
63640
- else
63776
+ return function (err) {
63777
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63778
+ var tmp;
63779
+ if (tmp0_safe_receiver == null) {
63780
+ tmp = null;
63781
+ } else {
63782
+ // Inline function 'kotlin.let' call
63783
+ // Inline function 'kotlin.contracts.contract' call
63784
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63785
+ tmp = Unit_getInstance();
63786
+ }
63787
+ var tmp2_elvis_lhs = tmp;
63788
+ var tmp_0;
63789
+ if (tmp2_elvis_lhs == null) {
63790
+ var tmp1_safe_receiver = err;
63791
+ var tmp_1;
63792
+ if (tmp1_safe_receiver == null) {
63793
+ tmp_1 = null;
63794
+ } else {
63795
+ // Inline function 'kotlin.let' call
63796
+ // Inline function 'kotlin.contracts.contract' call
63797
+ $reject(tmp1_safe_receiver);
63798
+ tmp_1 = Unit_getInstance();
63799
+ }
63800
+ tmp_0 = tmp_1;
63801
+ } else {
63802
+ tmp_0 = tmp2_elvis_lhs;
63803
+ }
63804
+ var tmp3_elvis_lhs = tmp_0;
63805
+ if (tmp3_elvis_lhs == null) {
63641
63806
  $resolve(null);
63807
+ } else {
63808
+ Unit_getInstance();
63809
+ }
63642
63810
  return Unit_getInstance();
63643
63811
  };
63644
63812
  }
@@ -63650,11 +63818,40 @@
63650
63818
  };
63651
63819
  }
63652
63820
  function IVoiceClientJS$sendDTMF$lambda$lambda($reject, $resolve) {
63653
- return function (it) {
63654
- if (!(it == null))
63655
- $reject(it);
63656
- else
63821
+ return function (err) {
63822
+ var tmp0_safe_receiver = err instanceof VonageError ? err : null;
63823
+ var tmp;
63824
+ if (tmp0_safe_receiver == null) {
63825
+ tmp = null;
63826
+ } else {
63827
+ // Inline function 'kotlin.let' call
63828
+ // Inline function 'kotlin.contracts.contract' call
63829
+ $reject(new VonageErrorJS(tmp0_safe_receiver));
63830
+ tmp = Unit_getInstance();
63831
+ }
63832
+ var tmp2_elvis_lhs = tmp;
63833
+ var tmp_0;
63834
+ if (tmp2_elvis_lhs == null) {
63835
+ var tmp1_safe_receiver = err;
63836
+ var tmp_1;
63837
+ if (tmp1_safe_receiver == null) {
63838
+ tmp_1 = null;
63839
+ } else {
63840
+ // Inline function 'kotlin.let' call
63841
+ // Inline function 'kotlin.contracts.contract' call
63842
+ $reject(tmp1_safe_receiver);
63843
+ tmp_1 = Unit_getInstance();
63844
+ }
63845
+ tmp_0 = tmp_1;
63846
+ } else {
63847
+ tmp_0 = tmp2_elvis_lhs;
63848
+ }
63849
+ var tmp3_elvis_lhs = tmp_0;
63850
+ if (tmp3_elvis_lhs == null) {
63657
63851
  $resolve(null);
63852
+ } else {
63853
+ Unit_getInstance();
63854
+ }
63658
63855
  return Unit_getInstance();
63659
63856
  };
63660
63857
  }
@@ -63683,13 +63880,13 @@
63683
63880
  protoOf(VoiceInviteFromInfoJS).s2 = function () {
63684
63881
  return this.type;
63685
63882
  };
63686
- protoOf(VoiceInviteFromInfoJS).w3n = function (id, type) {
63883
+ protoOf(VoiceInviteFromInfoJS).c3k = function (id, type) {
63687
63884
  return new VoiceInviteFromInfoJS(id, type);
63688
63885
  };
63689
63886
  protoOf(VoiceInviteFromInfoJS).copy = function (id, type, $super) {
63690
63887
  id = id === VOID ? this.id : id;
63691
63888
  type = type === VOID ? this.type : type;
63692
- return this.w3n(id, type);
63889
+ return this.c3k(id, type);
63693
63890
  };
63694
63891
  protoOf(VoiceInviteFromInfoJS).toString = function () {
63695
63892
  return 'VoiceInviteFromInfoJS(id=' + this.id + ', type=' + this.type + ')';
@@ -63803,41 +64000,41 @@
63803
64000
  cause = cause === VOID ? null : cause;
63804
64001
  extendThrowable(this);
63805
64002
  captureStack(this, HttpClientErrorJS);
63806
- this.x3n_1 = message;
63807
- this.y3n_1 = cause;
64003
+ this.d3k_1 = message;
64004
+ this.e3k_1 = cause;
63808
64005
  }
63809
64006
  protoOf(HttpClientErrorJS).i5 = function () {
63810
- return this.x3n_1;
64007
+ return this.d3k_1;
63811
64008
  };
63812
64009
  protoOf(HttpClientErrorJS).j5 = function () {
63813
- return this.y3n_1;
64010
+ return this.e3k_1;
63814
64011
  };
63815
- protoOf(HttpClientErrorJS).z3n = function () {
63816
- var tmp0_elvis_lhs = this.x3n_1;
64012
+ protoOf(HttpClientErrorJS).f3k = function () {
64013
+ var tmp0_elvis_lhs = this.d3k_1;
63817
64014
  var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
63818
- var tmp_0 = this.y3n_1;
64015
+ var tmp_0 = this.e3k_1;
63819
64016
  return new HTTPClientError(tmp, tmp_0 instanceof Exception ? tmp_0 : null);
63820
64017
  };
63821
64018
  protoOf(HttpClientErrorJS).r2 = function () {
63822
- return this.x3n_1;
64019
+ return this.d3k_1;
63823
64020
  };
63824
64021
  protoOf(HttpClientErrorJS).s2 = function () {
63825
- return this.y3n_1;
64022
+ return this.e3k_1;
63826
64023
  };
63827
- protoOf(HttpClientErrorJS).a3o = function (message, cause) {
64024
+ protoOf(HttpClientErrorJS).g3k = function (message, cause) {
63828
64025
  return new HttpClientErrorJS(message, cause);
63829
64026
  };
63830
64027
  protoOf(HttpClientErrorJS).copy = function (message, cause, $super) {
63831
- message = message === VOID ? this.x3n_1 : message;
63832
- cause = cause === VOID ? this.y3n_1 : cause;
63833
- return this.a3o(message, cause);
64028
+ message = message === VOID ? this.d3k_1 : message;
64029
+ cause = cause === VOID ? this.e3k_1 : cause;
64030
+ return this.g3k(message, cause);
63834
64031
  };
63835
64032
  protoOf(HttpClientErrorJS).toString = function () {
63836
- return 'HttpClientErrorJS(message=' + this.x3n_1 + ', cause=' + this.y3n_1 + ')';
64033
+ return 'HttpClientErrorJS(message=' + this.d3k_1 + ', cause=' + this.e3k_1 + ')';
63837
64034
  };
63838
64035
  protoOf(HttpClientErrorJS).hashCode = function () {
63839
- var result = this.x3n_1 == null ? 0 : getStringHashCode(this.x3n_1);
63840
- result = imul(result, 31) + (this.y3n_1 == null ? 0 : hashCode(this.y3n_1)) | 0;
64036
+ var result = this.d3k_1 == null ? 0 : getStringHashCode(this.d3k_1);
64037
+ result = imul(result, 31) + (this.e3k_1 == null ? 0 : hashCode(this.e3k_1)) | 0;
63841
64038
  return result;
63842
64039
  };
63843
64040
  protoOf(HttpClientErrorJS).equals = function (other) {
@@ -63846,9 +64043,9 @@
63846
64043
  if (!(other instanceof HttpClientErrorJS))
63847
64044
  return false;
63848
64045
  var tmp0_other_with_cast = other instanceof HttpClientErrorJS ? other : THROW_CCE();
63849
- if (!(this.x3n_1 == tmp0_other_with_cast.x3n_1))
64046
+ if (!(this.d3k_1 == tmp0_other_with_cast.d3k_1))
63850
64047
  return false;
63851
- if (!equals(this.y3n_1, tmp0_other_with_cast.y3n_1))
64048
+ if (!equals(this.e3k_1, tmp0_other_with_cast.e3k_1))
63852
64049
  return false;
63853
64050
  return true;
63854
64051
  };
@@ -63858,13 +64055,13 @@
63858
64055
  defineProp(protoOf(HttpClientErrorJS), 'cause', function () {
63859
64056
  return this.j5();
63860
64057
  }, VOID);
63861
- defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).z3n, VOID);
64058
+ defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).f3k, VOID);
63862
64059
  function HttpClientResponseJS(statusCode, body) {
63863
64060
  body = body === VOID ? null : body;
63864
64061
  this.statusCode = statusCode;
63865
64062
  this.body = body;
63866
64063
  }
63867
- protoOf(HttpClientResponseJS).b3o = function () {
64064
+ protoOf(HttpClientResponseJS).h3k = function () {
63868
64065
  return this.statusCode;
63869
64066
  };
63870
64067
  protoOf(HttpClientResponseJS).b3f = function () {
@@ -63876,13 +64073,13 @@
63876
64073
  protoOf(HttpClientResponseJS).s2 = function () {
63877
64074
  return this.body;
63878
64075
  };
63879
- protoOf(HttpClientResponseJS).c3o = function (statusCode, body) {
64076
+ protoOf(HttpClientResponseJS).i3k = function (statusCode, body) {
63880
64077
  return new HttpClientResponseJS(statusCode, body);
63881
64078
  };
63882
64079
  protoOf(HttpClientResponseJS).copy = function (statusCode, body, $super) {
63883
64080
  statusCode = statusCode === VOID ? this.statusCode : statusCode;
63884
64081
  body = body === VOID ? this.body : body;
63885
- return this.c3o(statusCode, body);
64082
+ return this.i3k(statusCode, body);
63886
64083
  };
63887
64084
  protoOf(HttpClientResponseJS).toString = function () {
63888
64085
  return 'HttpClientResponseJS(statusCode=' + this.statusCode + ', body=' + this.body + ')';
@@ -63985,31 +64182,31 @@
63985
64182
  this.packet_cnt = packet_cnt;
63986
64183
  this.packet_loss_perc = packet_loss_perc;
63987
64184
  }
63988
- protoOf(RTCQualityJS).f3o = function () {
64185
+ protoOf(RTCQualityJS).l3k = function () {
63989
64186
  return this.mos_score;
63990
64187
  };
63991
- protoOf(RTCQualityJS).g3o = function () {
64188
+ protoOf(RTCQualityJS).m3k = function () {
63992
64189
  return this.quality_percentage;
63993
64190
  };
63994
- protoOf(RTCQualityJS).h3o = function () {
64191
+ protoOf(RTCQualityJS).n3k = function () {
63995
64192
  return this.jitter_min_var;
63996
64193
  };
63997
- protoOf(RTCQualityJS).i3o = function () {
64194
+ protoOf(RTCQualityJS).o3k = function () {
63998
64195
  return this.jitter_max_var;
63999
64196
  };
64000
- protoOf(RTCQualityJS).j3o = function () {
64197
+ protoOf(RTCQualityJS).p3k = function () {
64001
64198
  return this.jitter_loss_rate;
64002
64199
  };
64003
- protoOf(RTCQualityJS).k3o = function () {
64200
+ protoOf(RTCQualityJS).q3k = function () {
64004
64201
  return this.jitter_burst_rate;
64005
64202
  };
64006
- protoOf(RTCQualityJS).l3o = function () {
64203
+ protoOf(RTCQualityJS).r3k = function () {
64007
64204
  return this.flaw_total;
64008
64205
  };
64009
- protoOf(RTCQualityJS).m3o = function () {
64206
+ protoOf(RTCQualityJS).s3k = function () {
64010
64207
  return this.packet_cnt;
64011
64208
  };
64012
- protoOf(RTCQualityJS).n3o = function () {
64209
+ protoOf(RTCQualityJS).t3k = function () {
64013
64210
  return this.packet_loss_perc;
64014
64211
  };
64015
64212
  protoOf(RTCQualityJS).r2 = function () {
@@ -64018,28 +64215,28 @@
64018
64215
  protoOf(RTCQualityJS).s2 = function () {
64019
64216
  return this.quality_percentage;
64020
64217
  };
64021
- protoOf(RTCQualityJS).o3o = function () {
64218
+ protoOf(RTCQualityJS).u3k = function () {
64022
64219
  return this.jitter_min_var;
64023
64220
  };
64024
- protoOf(RTCQualityJS).p3o = function () {
64221
+ protoOf(RTCQualityJS).v3k = function () {
64025
64222
  return this.jitter_max_var;
64026
64223
  };
64027
- protoOf(RTCQualityJS).q3o = function () {
64224
+ protoOf(RTCQualityJS).w3k = function () {
64028
64225
  return this.jitter_loss_rate;
64029
64226
  };
64030
- protoOf(RTCQualityJS).r3o = function () {
64227
+ protoOf(RTCQualityJS).x3k = function () {
64031
64228
  return this.jitter_burst_rate;
64032
64229
  };
64033
- protoOf(RTCQualityJS).s3o = function () {
64230
+ protoOf(RTCQualityJS).y3k = function () {
64034
64231
  return this.flaw_total;
64035
64232
  };
64036
- protoOf(RTCQualityJS).t3o = function () {
64233
+ protoOf(RTCQualityJS).z3k = function () {
64037
64234
  return this.packet_cnt;
64038
64235
  };
64039
- protoOf(RTCQualityJS).u3o = function () {
64236
+ protoOf(RTCQualityJS).a3l = function () {
64040
64237
  return this.packet_loss_perc;
64041
64238
  };
64042
- 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) {
64239
+ 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) {
64043
64240
  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);
64044
64241
  };
64045
64242
  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) {
@@ -64052,7 +64249,7 @@
64052
64249
  flaw_total = flaw_total === VOID ? this.flaw_total : flaw_total;
64053
64250
  packet_cnt = packet_cnt === VOID ? this.packet_cnt : packet_cnt;
64054
64251
  packet_loss_perc = packet_loss_perc === VOID ? this.packet_loss_perc : packet_loss_perc;
64055
- 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);
64252
+ 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);
64056
64253
  };
64057
64254
  protoOf(RTCQualityJS).toString = function () {
64058
64255
  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 + ')';
@@ -64119,34 +64316,34 @@
64119
64316
  this.audioRtt = audioRtt;
64120
64317
  this.audioSentJitter = audioSentJitter;
64121
64318
  }
64122
- protoOf(RTCStatsJS).w3o = function () {
64319
+ protoOf(RTCStatsJS).c3l = function () {
64123
64320
  return this.audioRecvPackets;
64124
64321
  };
64125
- protoOf(RTCStatsJS).x3o = function () {
64322
+ protoOf(RTCStatsJS).d3l = function () {
64126
64323
  return this.audioRecvPacketsLost;
64127
64324
  };
64128
- protoOf(RTCStatsJS).y3o = function () {
64325
+ protoOf(RTCStatsJS).e3l = function () {
64129
64326
  return this.audioRecvBytes;
64130
64327
  };
64131
- protoOf(RTCStatsJS).z3o = function () {
64328
+ protoOf(RTCStatsJS).f3l = function () {
64132
64329
  return this.audioRecvJitter;
64133
64330
  };
64134
- protoOf(RTCStatsJS).a3p = function () {
64331
+ protoOf(RTCStatsJS).g3l = function () {
64135
64332
  return this.audioSentPackets;
64136
64333
  };
64137
- protoOf(RTCStatsJS).b3p = function () {
64334
+ protoOf(RTCStatsJS).h3l = function () {
64138
64335
  return this.audioSentBytes;
64139
64336
  };
64140
- protoOf(RTCStatsJS).c3p = function () {
64337
+ protoOf(RTCStatsJS).i3l = function () {
64141
64338
  return this.audioSentPacketsLost;
64142
64339
  };
64143
- protoOf(RTCStatsJS).d3p = function () {
64340
+ protoOf(RTCStatsJS).j3l = function () {
64144
64341
  return this.audioRtt;
64145
64342
  };
64146
- protoOf(RTCStatsJS).e3p = function () {
64343
+ protoOf(RTCStatsJS).k3l = function () {
64147
64344
  return this.audioSentJitter;
64148
64345
  };
64149
- protoOf(RTCStatsJS).f3p = function () {
64346
+ protoOf(RTCStatsJS).l3l = function () {
64150
64347
  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));
64151
64348
  };
64152
64349
  protoOf(RTCStatsJS).r2 = function () {
@@ -64155,28 +64352,28 @@
64155
64352
  protoOf(RTCStatsJS).s2 = function () {
64156
64353
  return this.audioRecvPacketsLost;
64157
64354
  };
64158
- protoOf(RTCStatsJS).o3o = function () {
64355
+ protoOf(RTCStatsJS).u3k = function () {
64159
64356
  return this.audioRecvBytes;
64160
64357
  };
64161
- protoOf(RTCStatsJS).p3o = function () {
64358
+ protoOf(RTCStatsJS).v3k = function () {
64162
64359
  return this.audioRecvJitter;
64163
64360
  };
64164
- protoOf(RTCStatsJS).q3o = function () {
64361
+ protoOf(RTCStatsJS).w3k = function () {
64165
64362
  return this.audioSentPackets;
64166
64363
  };
64167
- protoOf(RTCStatsJS).r3o = function () {
64364
+ protoOf(RTCStatsJS).x3k = function () {
64168
64365
  return this.audioSentBytes;
64169
64366
  };
64170
- protoOf(RTCStatsJS).s3o = function () {
64367
+ protoOf(RTCStatsJS).y3k = function () {
64171
64368
  return this.audioSentPacketsLost;
64172
64369
  };
64173
- protoOf(RTCStatsJS).t3o = function () {
64370
+ protoOf(RTCStatsJS).z3k = function () {
64174
64371
  return this.audioRtt;
64175
64372
  };
64176
- protoOf(RTCStatsJS).u3o = function () {
64373
+ protoOf(RTCStatsJS).a3l = function () {
64177
64374
  return this.audioSentJitter;
64178
64375
  };
64179
- protoOf(RTCStatsJS).g3p = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
64376
+ protoOf(RTCStatsJS).m3l = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
64180
64377
  return new RTCStatsJS(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
64181
64378
  };
64182
64379
  protoOf(RTCStatsJS).copy = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, $super) {
@@ -64189,7 +64386,7 @@
64189
64386
  audioSentPacketsLost = audioSentPacketsLost === VOID ? this.audioSentPacketsLost : audioSentPacketsLost;
64190
64387
  audioRtt = audioRtt === VOID ? this.audioRtt : audioRtt;
64191
64388
  audioSentJitter = audioSentJitter === VOID ? this.audioSentJitter : audioSentJitter;
64192
- return this.g3p(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
64389
+ return this.m3l(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
64193
64390
  };
64194
64391
  protoOf(RTCStatsJS).toString = function () {
64195
64392
  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) + ')';
@@ -64294,7 +64491,7 @@
64294
64491
  };
64295
64492
  }
64296
64493
  function HttpClientJSAdapter$1($js) {
64297
- this.h3p_1 = $js;
64494
+ this.n3l_1 = $js;
64298
64495
  }
64299
64496
  protoOf(HttpClientJSAdapter$1).t35 = function (verb, url, headers, body, callback) {
64300
64497
  var tmp = verb.toString();
@@ -64302,7 +64499,7 @@
64302
64499
  // Inline function 'kotlin.contracts.contract' call
64303
64500
  // Inline function 'vonage.<no name provided>.request.<anonymous>' call
64304
64501
  var tmp_0 = fromMap(JSON, headers);
64305
- this.h3p_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
64502
+ this.n3l_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
64306
64503
  };
64307
64504
  function SocketClientJSAdapter$o$emit$lambda($callback) {
64308
64505
  return function (err, response) {
@@ -64325,11 +64522,11 @@
64325
64522
  };
64326
64523
  }
64327
64524
  function SocketClientJSAdapter$adapter$1($js) {
64328
- this.j3p_1 = $js;
64329
- this.i3p_1 = null;
64525
+ this.p3l_1 = $js;
64526
+ this.o3l_1 = null;
64330
64527
  }
64331
64528
  protoOf(SocketClientJSAdapter$adapter$1).c36 = function (_set____db54di) {
64332
- this.i3p_1 = _set____db54di;
64529
+ this.o3l_1 = _set____db54di;
64333
64530
  };
64334
64531
  protoOf(SocketClientJSAdapter$adapter$1).w35 = function (type, msg, callback) {
64335
64532
  var tmp;
@@ -64342,28 +64539,28 @@
64342
64539
  tmp = fromMap(JSON, msg);
64343
64540
  }
64344
64541
  var tmp_0 = tmp;
64345
- this.j3p_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
64542
+ this.p3l_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
64346
64543
  };
64347
64544
  protoOf(SocketClientJSAdapter$adapter$1).x35 = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query) {
64348
- this.j3p_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
64545
+ this.p3l_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
64349
64546
  };
64350
64547
  protoOf(SocketClientJSAdapter$adapter$1).y35 = function () {
64351
- this.j3p_1.disconnect();
64548
+ this.p3l_1.disconnect();
64352
64549
  };
64353
64550
  protoOf(SocketClientJSAdapter$adapter$1).z35 = function (sessionId, token) {
64354
- this.j3p_1.setConnectParamsSocketConfig(sessionId, token);
64551
+ this.p3l_1.setConnectParamsSocketConfig(sessionId, token);
64355
64552
  };
64356
64553
  protoOf(SocketClientJSAdapter$adapter$1).a36 = function (sessionId) {
64357
- this.j3p_1.setSocketSessionId(sessionId);
64554
+ this.p3l_1.setSocketSessionId(sessionId);
64358
64555
  };
64359
64556
  protoOf(SocketClientJSAdapter$adapter$1).b36 = function (milliseconds, callback) {
64360
- this.j3p_1.startVerifyResponseTimer(milliseconds, callback);
64557
+ this.p3l_1.startVerifyResponseTimer(milliseconds, callback);
64361
64558
  };
64362
64559
  function SocketClientJSAdapter$1($adapter) {
64363
- this.k3p_1 = $adapter;
64560
+ this.q3l_1 = $adapter;
64364
64561
  }
64365
64562
  protoOf(SocketClientJSAdapter$1).didReceiveNewSocketEvent = function (body) {
64366
- var tmp0_safe_receiver = this.k3p_1.i3p_1;
64563
+ var tmp0_safe_receiver = this.q3l_1.o3l_1;
64367
64564
  if (tmp0_safe_receiver == null)
64368
64565
  ;
64369
64566
  else {
@@ -64391,35 +64588,35 @@
64391
64588
  else {
64392
64589
  switch (reason) {
64393
64590
  case 'NXMCORE_REASON_SERVER_DISCONNECTED':
64394
- var tmp1_safe_receiver_0 = this.k3p_1.i3p_1;
64591
+ var tmp1_safe_receiver_0 = this.q3l_1.o3l_1;
64395
64592
  if (tmp1_safe_receiver_0 == null) ; else {
64396
64593
  tmp1_safe_receiver_0.g39(tmp1_safe_receiver, SocketConnectionFailedReason_ServerDisconnected_getInstance(), timestamp, retryNumber);
64397
64594
  Unit_getInstance();
64398
64595
  }
64399
64596
  break;
64400
64597
  case 'NXMCORE_REASON_CLIENT_DISCONNECTED':
64401
- var tmp2_safe_receiver = this.k3p_1.i3p_1;
64598
+ var tmp2_safe_receiver = this.q3l_1.o3l_1;
64402
64599
  if (tmp2_safe_receiver == null) ; else {
64403
64600
  tmp2_safe_receiver.g39(tmp1_safe_receiver, SocketConnectionFailedReason_ClientDisconnected_getInstance(), timestamp, retryNumber);
64404
64601
  Unit_getInstance();
64405
64602
  }
64406
64603
  break;
64407
64604
  case 'NXMCORE_CLIENT_NETWORK_ERROR':
64408
- var tmp3_safe_receiver = this.k3p_1.i3p_1;
64605
+ var tmp3_safe_receiver = this.q3l_1.o3l_1;
64409
64606
  if (tmp3_safe_receiver == null) ; else {
64410
64607
  tmp3_safe_receiver.g39(tmp1_safe_receiver, SocketConnectionFailedReason_ClientNetworkError_getInstance(), timestamp, retryNumber);
64411
64608
  Unit_getInstance();
64412
64609
  }
64413
64610
  break;
64414
64611
  case 'NXMCORE_REASON_PING_TIMEOUT':
64415
- var tmp4_safe_receiver = this.k3p_1.i3p_1;
64612
+ var tmp4_safe_receiver = this.q3l_1.o3l_1;
64416
64613
  if (tmp4_safe_receiver == null) ; else {
64417
64614
  tmp4_safe_receiver.g39(tmp1_safe_receiver, SocketConnectionFailedReason_PingTimeout_getInstance(), timestamp, retryNumber);
64418
64615
  Unit_getInstance();
64419
64616
  }
64420
64617
  break;
64421
64618
  default:
64422
- var tmp5_safe_receiver = this.k3p_1.i3p_1;
64619
+ var tmp5_safe_receiver = this.q3l_1.o3l_1;
64423
64620
  if (tmp5_safe_receiver == null) ; else {
64424
64621
  tmp5_safe_receiver.g39(tmp1_safe_receiver, null, timestamp, retryNumber);
64425
64622
  Unit_getInstance();
@@ -64429,52 +64626,52 @@
64429
64626
  }
64430
64627
  };
64431
64628
  function MediaClientJSAdapter$adapter$1($js) {
64432
- this.m3p_1 = $js;
64433
- this.l3p_1 = null;
64629
+ this.s3l_1 = $js;
64630
+ this.r3l_1 = null;
64434
64631
  }
64435
64632
  protoOf(MediaClientJSAdapter$adapter$1).m36 = function (_set____db54di) {
64436
- this.l3p_1 = _set____db54di;
64633
+ this.r3l_1 = _set____db54di;
64437
64634
  };
64438
64635
  protoOf(MediaClientJSAdapter$adapter$1).f36 = function (closure) {
64439
- this.m3p_1.enableMediaOutbound(closure);
64636
+ this.s3l_1.enableMediaOutbound(closure);
64440
64637
  };
64441
- protoOf(MediaClientJSAdapter$adapter$1).n3p = function (closure, offerSDP, rtcId) {
64442
- this.m3p_1.enableMediaInbound(closure, offerSDP, rtcId);
64638
+ protoOf(MediaClientJSAdapter$adapter$1).t3l = function (closure, offerSDP, rtcId) {
64639
+ this.s3l_1.enableMediaInbound(closure, offerSDP, rtcId);
64443
64640
  };
64444
64641
  protoOf(MediaClientJSAdapter$adapter$1).g36 = function (closure, offerSDP, rtcId) {
64445
- return this.n3p(closure, offerSDP, rtcId);
64642
+ return this.t3l(closure, offerSDP, rtcId);
64446
64643
  };
64447
64644
  protoOf(MediaClientJSAdapter$adapter$1).h36 = function (id, sdp) {
64448
- this.m3p_1.processAnswer(id, sdp);
64645
+ this.s3l_1.processAnswer(id, sdp);
64449
64646
  };
64450
64647
  protoOf(MediaClientJSAdapter$adapter$1).i36 = function (id) {
64451
- this.m3p_1.disableMedia(id);
64648
+ this.s3l_1.disableMedia(id);
64452
64649
  };
64453
64650
  protoOf(MediaClientJSAdapter$adapter$1).j36 = function (id) {
64454
- this.m3p_1.mute(id);
64651
+ this.s3l_1.mute(id);
64455
64652
  };
64456
64653
  protoOf(MediaClientJSAdapter$adapter$1).k36 = function (id) {
64457
- this.m3p_1.unmute(id);
64654
+ this.s3l_1.unmute(id);
64458
64655
  };
64459
64656
  protoOf(MediaClientJSAdapter$adapter$1).l36 = function (interval, mediaId) {
64460
- this.m3p_1.enableRtcStatsCollection(interval, mediaId);
64657
+ this.s3l_1.enableRtcStatsCollection(interval, mediaId);
64461
64658
  };
64462
64659
  function MediaClientJSAdapter$1($adapter) {
64463
- this.o3p_1 = $adapter;
64660
+ this.u3l_1 = $adapter;
64464
64661
  }
64465
64662
  protoOf(MediaClientJSAdapter$1).onRtcStats = function (rtcStats, legId) {
64466
- var tmp0_safe_receiver = this.o3p_1.l3p_1;
64663
+ var tmp0_safe_receiver = this.u3l_1.r3l_1;
64467
64664
  if (tmp0_safe_receiver == null)
64468
64665
  ;
64469
64666
  else {
64470
- tmp0_safe_receiver.c39(rtcStats.f3p(), legId);
64667
+ tmp0_safe_receiver.c39(rtcStats.l3l(), legId);
64471
64668
  }
64472
64669
  };
64473
64670
  protoOf(MediaClientJSAdapter$1).onConnectionChange = function (id, status) {
64474
64671
  switch (status) {
64475
64672
  case 'new':
64476
64673
  case 'checking':
64477
- var tmp1_safe_receiver = this.o3p_1.l3p_1;
64674
+ var tmp1_safe_receiver = this.u3l_1.r3l_1;
64478
64675
  if (tmp1_safe_receiver == null)
64479
64676
  ;
64480
64677
  else {
@@ -64483,7 +64680,7 @@
64483
64680
 
64484
64681
  break;
64485
64682
  case 'connecting':
64486
- var tmp2_safe_receiver = this.o3p_1.l3p_1;
64683
+ var tmp2_safe_receiver = this.u3l_1.r3l_1;
64487
64684
  if (tmp2_safe_receiver == null)
64488
64685
  ;
64489
64686
  else {
@@ -64492,7 +64689,7 @@
64492
64689
 
64493
64690
  break;
64494
64691
  case 'connected':
64495
- var tmp3_safe_receiver = this.o3p_1.l3p_1;
64692
+ var tmp3_safe_receiver = this.u3l_1.r3l_1;
64496
64693
  if (tmp3_safe_receiver == null)
64497
64694
  ;
64498
64695
  else {
@@ -64501,7 +64698,7 @@
64501
64698
 
64502
64699
  break;
64503
64700
  case 'disconnected':
64504
- var tmp4_safe_receiver = this.o3p_1.l3p_1;
64701
+ var tmp4_safe_receiver = this.u3l_1.r3l_1;
64505
64702
  if (tmp4_safe_receiver == null)
64506
64703
  ;
64507
64704
  else {
@@ -64510,7 +64707,7 @@
64510
64707
 
64511
64708
  break;
64512
64709
  case 'closed':
64513
- var tmp5_safe_receiver = this.o3p_1.l3p_1;
64710
+ var tmp5_safe_receiver = this.u3l_1.r3l_1;
64514
64711
  if (tmp5_safe_receiver == null)
64515
64712
  ;
64516
64713
  else {
@@ -64519,7 +64716,7 @@
64519
64716
 
64520
64717
  break;
64521
64718
  case 'failed':
64522
- var tmp6_safe_receiver = this.o3p_1.l3p_1;
64719
+ var tmp6_safe_receiver = this.u3l_1.r3l_1;
64523
64720
  if (tmp6_safe_receiver == null)
64524
64721
  ;
64525
64722
  else {
@@ -64528,7 +64725,7 @@
64528
64725
 
64529
64726
  break;
64530
64727
  default:
64531
- var tmp7_safe_receiver = this.o3p_1.l3p_1;
64728
+ var tmp7_safe_receiver = this.u3l_1.r3l_1;
64532
64729
  if (tmp7_safe_receiver == null)
64533
64730
  ;
64534
64731
  else {
@@ -64753,12 +64950,12 @@
64753
64950
  protoOf(Some).r2 = function () {
64754
64951
  return this.value;
64755
64952
  };
64756
- protoOf(Some).p3p = function (value) {
64953
+ protoOf(Some).v3l = function (value) {
64757
64954
  return new Some(value);
64758
64955
  };
64759
64956
  protoOf(Some).copy = function (value, $super) {
64760
64957
  value = value === VOID ? this.value : value;
64761
- return this.p3p(value);
64958
+ return this.v3l(value);
64762
64959
  };
64763
64960
  protoOf(Some).toString = function () {
64764
64961
  return 'Some(value=' + this.value + ')';
@@ -65000,24 +65197,24 @@
65000
65197
  $vonage.EventDeleteConversationEventJS = EventDeleteConversationEventJS;
65001
65198
  var $vonage = _.vonage || (_.vonage = {});
65002
65199
  $vonage.MessageTextEventJS = MessageTextEventJS;
65003
- $vonage.MessageTextEventJS.Body = Body;
65200
+ $vonage.MessageTextEventJS.MessageTextEventBody = MessageTextEventBody;
65004
65201
  $vonage.MessageCustomEventJS = MessageCustomEventJS;
65005
- $vonage.MessageCustomEventJS.Body = Body_0;
65202
+ $vonage.MessageCustomEventJS.MessageCustomEventBody = MessageCustomEventBody;
65006
65203
  $vonage.MessageAudioEventJS = MessageAudioEventJS;
65007
- $vonage.MessageAudioEventJS.Body = Body_1;
65204
+ $vonage.MessageAudioEventJS.MessageAudioEventBody = MessageAudioEventBody;
65008
65205
  $vonage.MessageVideoEventJS = MessageVideoEventJS;
65009
- $vonage.MessageVideoEventJS.Body = Body_2;
65206
+ $vonage.MessageVideoEventJS.MessageVideoEventBody = MessageVideoEventBody;
65010
65207
  $vonage.MessageImageEventJS = MessageImageEventJS;
65011
- $vonage.MessageImageEventJS.Body = Body_3;
65208
+ $vonage.MessageImageEventJS.MessageImageEventBody = MessageImageEventBody;
65012
65209
  $vonage.MessageFileEventJS = MessageFileEventJS;
65013
- $vonage.MessageFileEventJS.Body = Body_4;
65210
+ $vonage.MessageFileEventJS.MessageFileEventBody = MessageFileEventBody;
65014
65211
  $vonage.MessageVCardEventJS = MessageVCardEventJS;
65015
- $vonage.MessageVCardEventJS.Body = Body_5;
65212
+ $vonage.MessageVCardEventJS.MessageVCardEventBody = MessageVCardEventBody;
65016
65213
  $vonage.MessageLocationEventJS = MessageLocationEventJS;
65017
- $vonage.MessageLocationEventJS.Body = Body_6;
65214
+ $vonage.MessageLocationEventJS.MessageLocationEventBody = MessageLocationEventBody;
65018
65215
  $vonage.MessageLocationEventJS.Location = Location_0;
65019
65216
  $vonage.MessageTemplateEventJS = MessageTemplateEventJS;
65020
- $vonage.MessageTemplateEventJS.Body = Body_7;
65217
+ $vonage.MessageTemplateEventJS.MessageTemplateEventBody = MessageTemplateEventBody;
65021
65218
  $vonage.MessageTemplateEventJS.TemplateObject = TemplateObject_0;
65022
65219
  $vonage.MessageTemplateEventJS.WhatsappObject = WhatsappObject_0;
65023
65220
  var $vonage = _.vonage || (_.vonage = {});
@@ -76854,18 +77051,21 @@
76854
77051
  }
76855
77052
  }
76856
77053
 
77054
+ /**
77055
+ * A group of Topics that a {@link VonageLogger} can subscribe to
77056
+ */
76857
77057
  const Topics = clientsdkClientcore_jsExports.vonage.Topics;
76858
77058
  clientsdkClientcore_jsExports.vonage.TopicJS;
76859
77059
  const LoggingLevel = clientsdkClientcore_jsExports.vonage.LoggingLevelJS;
76860
77060
  /**
76861
- * @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
77061
+ * @deprecated Use {@link ClientInitConfigObject.loggingLevel} instead.
76862
77062
  * @param level - The logging level to set.
76863
77063
  */
76864
77064
  const setDefaultLoggingLevel = (level) => {
76865
77065
  clientsdkClientcore_jsExports.vonage.setDefaultLoggingLevel(level instanceof LoggingLevel ? level : LoggingLevel[level]);
76866
77066
  };
76867
77067
  /**
76868
- * @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
77068
+ * @deprecated Use {@link ClientInitConfigObject.loggingLevel} instead.
76869
77069
  * @param level - The logging level to set.
76870
77070
  */
76871
77071
  const setVonageClientLoggingLevel = setDefaultLoggingLevel;
@@ -76884,15 +77084,6 @@
76884
77084
  : undefined, topics === null || topics === void 0 ? void 0 : topics.map((topic) => (topic instanceof Topics ? topic : Topics[topic])), (level, topic, message) => onLog(level, topic, message));
76885
77085
 
76886
77086
  const ConfigRegion = clientsdkClientcore_jsExports.vonage.CoreClientConfigRegionJS;
76887
- /**
76888
- * Represents the configuration object for the client.
76889
- *
76890
- * The `ClientConfig` class provides a convenient way to configure the client by specifying various properties.
76891
- * These properties control different aspects of the client's behavior, such as API URLs, media reoffer, and WebSocket settings.
76892
- *
76893
- * @example
76894
- * [[include:snippet_setClientConfig.txt]]
76895
- */
76896
77087
  class ClientConfig extends clientsdkClientcore_jsExports.vonage.CoreClientConfigJS {
76897
77088
  /**
76898
77089
  * Constructs a new instance of the class.
@@ -76940,15 +77131,16 @@
76940
77131
  : null });
76941
77132
  };
76942
77133
 
76943
- const ChannelType = clientsdkClientcore_jsExports.vonage.ChannelTypeJS;
76944
- const PresentingOrder = clientsdkClientcore_jsExports.vonage.PresentingOrderJS;
76945
- const OrderBy = clientsdkClientcore_jsExports.vonage.OrderByJS;
77134
+ const ChannelType = clientsdkClientcore_jsExports.vonage.ChannelTypeJS;
76946
77135
 
76947
77136
  const VonageError = clientsdkClientcore_jsExports.vonage.VonageErrorJS;
76948
77137
  const VonageErrorType = clientsdkClientcore_jsExports.vonage.VonageErrorTypeJS;
76949
77138
  const CSErrorCodes = clientsdkClientcore_jsExports.vonage.CSErrorCodesJS;
76950
77139
  const SessionErrorCodes = clientsdkClientcore_jsExports.vonage.SessionErrorCodesJS;
76951
77140
 
77141
+ const PresentingOrder = clientsdkClientcore_jsExports.vonage.PresentingOrderJS;
77142
+ const OrderBy = clientsdkClientcore_jsExports.vonage.OrderByJS;
77143
+
76952
77144
  const Option = clientsdkClientcore_jsExports.vonage.utils.OptionJS;
76953
77145
  const mapOption = (value) => {
76954
77146
  if (value == null)
@@ -76957,7 +77149,15 @@
76957
77149
  return new Option.None();
76958
77150
  return new Option.Some(value);
76959
77151
  };
77152
+ /**
77153
+ * @param value The wrapped value
77154
+ * @returns An {@link Option.Some}
77155
+ */
76960
77156
  const some = (value) => new Option.Some(value);
77157
+ /**
77158
+ *
77159
+ * @returns An {@link Option.None}
77160
+ */
76961
77161
  const none = () => new Option.None();
76962
77162
 
76963
77163
  const CancelReason = clientsdkClientcore_jsExports.vonage.CancelReasonJS;
@@ -77067,8 +77267,8 @@
77067
77267
  * @param callback - the callback to register for the event
77068
77268
  * @returns a symbol that can be used to unregister the callback
77069
77269
  * @remarks
77070
- * Besure to store the symbol returned by this method so you can unregister the callback later.
77071
- * We recommend deregistering callbacks when you no longer need them. See {@link off}.
77270
+ * Be sure to store the symbol returned by this method so you can unregister the callback later.
77271
+ * We recommend unregistering callbacks when you no longer need them. See {@link off}.
77072
77272
  */
77073
77273
  on(event, callback) {
77074
77274
  const callbackSymbol = Symbol(event);
@@ -77420,7 +77620,7 @@
77420
77620
  * @group Chat
77421
77621
  * @beta
77422
77622
  * @param id - the Conversation's id
77423
- * @param name - the namne of the user to invite
77623
+ * @param name - the name of the user to invite
77424
77624
  * @returns the `memberId` of the member
77425
77625
  */
77426
77626
  inviteToConversation(id, name) {
@@ -77598,7 +77798,7 @@
77598
77798
  * Send a template message to a Conversation.
77599
77799
  *
77600
77800
  * @example
77601
- * [[include: snippet_SendMessageTemplateEvent.txt]]
77801
+ * [[include: snippet_SendTemplateMessage.txt]]
77602
77802
  *
77603
77803
  * @group Chat
77604
77804
  * @beta
@@ -77647,7 +77847,7 @@
77647
77847
  * @group Chat
77648
77848
  * @beta
77649
77849
  * @param id - the Conversation's id
77650
- * @param type - the type of the custom event. Type must start with `custom:<...>`
77850
+ * @param evenType - the type of the custom event. Type must start with `custom:<...>`
77651
77851
  * @param customData - the body of the event
77652
77852
  * @returns the `timestamp` of the message
77653
77853
  */