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

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.
@@ -85,7 +85,7 @@ We recommend unregistering callbacks when you no longer need them. See <a href="
85
85
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">conversationId</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the Conversation&#39;s id.</p>
86
86
  </div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">parameters</span>: <a href="../interfaces/UpdateConversationParameters.html" class="tsd-signature-type tsd-kind-interface">UpdateConversationParameters</a></h5><div class="tsd-comment tsd-typography"><p>The properties of the conversation. These will replace existing values to the provided ones, rest will remain as they are.</p>
87
87
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/Conversation.html" class="tsd-signature-type tsd-kind-interface">Conversation</a><span class="tsd-signature-symbol">&gt;</span></h4><p><code>conversation</code>, this object will contain the updated conversation properties if the update is successful.</p>
88
- <div class="tsd-comment tsd-typography"><h4>Example</h4><pre><code class="language-ts"><span class="hl-1">[[</span><span class="hl-4">include</span><span class="hl-1">: </span><span class="hl-4">snippet_updateConversation</span><span class="hl-1">.</span><span class="hl-4">txt</span><span class="hl-1">]]</span>
88
+ <div class="tsd-comment tsd-typography"><h4>Example</h4><pre><code class="language-ts"><span class="hl-1">[[</span><span class="hl-4">include</span><span class="hl-1">: </span><span class="hl-4">snippet_UpdateConversation</span><span class="hl-1">.</span><span class="hl-4">txt</span><span class="hl-1">]]</span>
89
89
  </code><button>Copy</button></pre>
90
90
  </div><aside class="tsd-sources"><p>Overrides vonage.CombinedClientJS.updateConversation</p></aside></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Chat</h2><section class="tsd-panel tsd-member"><a id="createConversation" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>create<wbr/>Conversation</span><a href="#createConversation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="createConversation.createConversation-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">create<wbr/>Conversation</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">parameters</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span><a href="#createConversation.createConversation-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><code class="tsd-tag ts-flagBeta">Beta</code> <div class="tsd-comment tsd-typography"><p>Create a conversation</p>
91
91
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">parameters</span>: <span class="tsd-signature-type ">Nullable</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CreateConversationParameters.html" class="tsd-signature-type tsd-kind-interface">CreateConversationParameters</a><span class="tsd-signature-symbol">&gt;</span></h5><div class="tsd-comment tsd-typography"><p>A <a href="../interfaces/CreateConversationParameters.html" class="tsd-kind-interface">CreateConversationParameters</a> object containing the parameters for the creation request.</p>
@@ -231,7 +231,7 @@ We recommend unregistering callbacks when you no longer need them. See <a href="
231
231
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the Conversation&#39;s id</p>
232
232
  </div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">vCardUrl</span>: <span class="tsd-signature-type ">URL</span></h5><div class="tsd-comment tsd-typography"><p>the url of the vCardUrl resource.</p>
233
233
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4><p>the <code>timestamp</code> of the message</p>
234
- <div class="tsd-comment tsd-typography"><h4>Example</h4><pre><code class="language-ts"><span class="hl-1">[[</span><span class="hl-4">include</span><span class="hl-1">: </span><span class="hl-4">snippet_SendVCardMessage</span><span class="hl-1">.</span><span class="hl-4">txt</span><span class="hl-1">]]</span>
234
+ <div class="tsd-comment tsd-typography"><h4>Example</h4><pre><code class="language-ts"><span class="hl-1">[[</span><span class="hl-4">include</span><span class="hl-1">: </span><span class="hl-4">snippet_SendVcardMessage</span><span class="hl-1">.</span><span class="hl-4">txt</span><span class="hl-1">]]</span>
235
235
  </code><button>Copy</button></pre>
236
236
  </div><aside class="tsd-sources"><p>Overrides vonage.CombinedClientJS.sendMessageVCardEvent</p></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="sendMessageVideoEvent" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>send<wbr/>Message<wbr/>Video<wbr/>Event</span><a href="#sendMessageVideoEvent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="sendMessageVideoEvent.sendMessageVideoEvent-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">send<wbr/>Message<wbr/>Video<wbr/>Event</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span>, <span class="tsd-kind-parameter">videoUrl</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span><a href="#sendMessageVideoEvent.sendMessageVideoEvent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><code class="tsd-tag ts-flagBeta">Beta</code> <div class="tsd-comment tsd-typography"><p>Send a Vidoe message to a Conversation.</p>
237
237
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the Conversation&#39;s id</p>
@@ -263,7 +263,7 @@ We recommend unregistering callbacks when you no longer need them. See <a href="
263
263
  </div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">reasonText</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>optional reason text to send to the other party</p>
264
264
  </div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">reasonCode</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>optional reason code to send to the other party</p>
265
265
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><p>void</p>
266
- <div class="tsd-comment tsd-typography"><h4>Example</h4><pre><code class="language-ts"><span class="hl-1">[[</span><span class="hl-4">include</span><span class="hl-1">: </span><span class="hl-4">snippet_Hangup</span><span class="hl-1">.</span><span class="hl-4">txt</span><span class="hl-1">]]</span>
266
+ <div class="tsd-comment tsd-typography"><h4>Example</h4><pre><code class="language-ts"><span class="hl-1">[[</span><span class="hl-4">include</span><span class="hl-1">: </span><span class="hl-4">snippet_CallHangup</span><span class="hl-1">.</span><span class="hl-4">txt</span><span class="hl-1">]]</span>
267
267
  </code><button>Copy</button></pre>
268
268
  </div><aside class="tsd-sources"><p>Overrides vonage.CombinedClientJS.hangup</p></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="mute" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>mute</span><a href="#mute" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="mute.mute-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">mute</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#mute.mute-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Mute your leg of a call</p>
269
269
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>Call ID</p>
@@ -209,7 +209,7 @@ export declare class VonageClient extends vonage.CombinedClientJS {
209
209
  * Hangup a call.
210
210
  *
211
211
  * @example
212
- * [[include: snippet_Hangup.txt]]
212
+ * [[include: snippet_CallHangup.txt]]
213
213
  *
214
214
  * @group Voice
215
215
  * @param callId - the `callId` of the call to hangup
@@ -364,7 +364,7 @@ export declare class VonageClient extends vonage.CombinedClientJS {
364
364
  * This method overrides the conversation properties to the provided parameters and rest remains as it is.
365
365
  *
366
366
  * @example
367
- * [[include: snippet_updateConversation.txt]]
367
+ * [[include: snippet_UpdateConversation.txt]]
368
368
  *
369
369
  * @param conversationId - the Conversation's id.
370
370
  * @param parameters - The properties of the conversation. These will replace existing values to the provided ones, rest will remain as they are.
@@ -502,7 +502,7 @@ export declare class VonageClient extends vonage.CombinedClientJS {
502
502
  * Send a vcard message to a Conversation.
503
503
  *
504
504
  * @example
505
- * [[include: snippet_SendVCardMessage.txt]]
505
+ * [[include: snippet_SendVcardMessage.txt]]
506
506
  *
507
507
  * @group Chat
508
508
  * @beta
@@ -20059,6 +20059,9 @@ function requireClientsdkClientcore () {
20059
20059
  setMetadataFor(Companion_121, 'Companion', objectMeta);
20060
20060
  setMetadataFor($serializer_143, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
20061
20061
  setMetadataFor(SessionTerminatedEvent, 'SessionTerminatedEvent', classMeta, VOID, [SocketEvent], VOID, {0: $serializer_getInstance_143});
20062
+ function onConversationEvent(event) {
20063
+ }
20064
+ setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
20062
20065
  function onRTCHangup(conversationId, legId, hangup) {
20063
20066
  }
20064
20067
  function onRTCTransfer(conversationId, legId) {
@@ -20066,9 +20069,6 @@ function requireClientsdkClientcore () {
20066
20069
  function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
20067
20070
  }
20068
20071
  setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
20069
- function onConversationEvent(event) {
20070
- }
20071
- setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
20072
20072
  function onAudioSay() {
20073
20073
  }
20074
20074
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -20078,7 +20078,7 @@ function requireClientsdkClientcore () {
20078
20078
  function onAudioDTMFUpdate(conversationId, legId, digits) {
20079
20079
  }
20080
20080
  setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
20081
- setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
20081
+ setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, RTCEventListener, AudioEventListener]);
20082
20082
  setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
20083
20083
  setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
20084
20084
  setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
@@ -20207,7 +20207,7 @@ function requireClientsdkClientcore () {
20207
20207
  setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
20208
20208
  setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
20209
20209
  setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
20210
- setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
20210
+ setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, RTCEventListener, AudioEventListener]);
20211
20211
  setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
20212
20212
  setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
20213
20213
  setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
@@ -56029,10 +56029,8 @@ function requireClientsdkClientcore () {
56029
56029
  }
56030
56030
  function SocketClientDelegate() {
56031
56031
  }
56032
- function SocketConfig(query, forceNew, path, transports, reconnection, reconnectionAttempts, reconnectionDelay, randomizationFactor) {
56033
- query = query === VOID ? '' : query;
56032
+ function SocketConfig(query, path, forceNew, transports, reconnection, reconnectionAttempts, reconnectionDelay, randomizationFactor) {
56034
56033
  forceNew = forceNew === VOID ? true : forceNew;
56035
- path = path === VOID ? '/rtc/' : path;
56036
56034
  var tmp;
56037
56035
  if (transports === VOID) {
56038
56036
  // Inline function 'kotlin.arrayOf' call
@@ -56048,8 +56046,8 @@ function requireClientsdkClientcore () {
56048
56046
  reconnectionDelay = reconnectionDelay === VOID ? 5 : reconnectionDelay;
56049
56047
  randomizationFactor = randomizationFactor === VOID ? 0.75 : randomizationFactor;
56050
56048
  this.h39_1 = query;
56051
- this.i39_1 = forceNew;
56052
- this.j39_1 = path;
56049
+ this.i39_1 = path;
56050
+ this.j39_1 = forceNew;
56053
56051
  this.k39_1 = transports;
56054
56052
  this.l39_1 = reconnection;
56055
56053
  this.m39_1 = reconnectionAttempts;
@@ -56057,12 +56055,12 @@ function requireClientsdkClientcore () {
56057
56055
  this.o39_1 = randomizationFactor;
56058
56056
  }
56059
56057
  protoOf(SocketConfig).toString = function () {
56060
- return 'SocketConfig(query=' + this.h39_1 + ', forceNew=' + this.i39_1 + ', path=' + this.j39_1 + ', transports=' + toString(this.k39_1) + ', reconnection=' + this.l39_1 + ', reconnectionAttempts=' + toString(this.m39_1) + ', reconnectionDelay=' + toString(this.n39_1) + ', randomizationFactor=' + toString(this.o39_1) + ')';
56058
+ return 'SocketConfig(query=' + this.h39_1 + ', path=' + this.i39_1 + ', forceNew=' + this.j39_1 + ', transports=' + toString(this.k39_1) + ', reconnection=' + this.l39_1 + ', reconnectionAttempts=' + toString(this.m39_1) + ', reconnectionDelay=' + toString(this.n39_1) + ', randomizationFactor=' + toString(this.o39_1) + ')';
56061
56059
  };
56062
56060
  protoOf(SocketConfig).hashCode = function () {
56063
56061
  var result = getStringHashCode(this.h39_1);
56064
- result = imul(result, 31) + (this.i39_1 | 0) | 0;
56065
- result = imul(result, 31) + getStringHashCode(this.j39_1) | 0;
56062
+ result = imul(result, 31) + getStringHashCode(this.i39_1) | 0;
56063
+ result = imul(result, 31) + (this.j39_1 | 0) | 0;
56066
56064
  result = imul(result, 31) + hashCode(this.k39_1) | 0;
56067
56065
  result = imul(result, 31) + (this.l39_1 | 0) | 0;
56068
56066
  result = imul(result, 31) + hashCode(this.m39_1) | 0;
@@ -56205,7 +56203,7 @@ function requireClientsdkClientcore () {
56205
56203
  $logger.y2x(VOID, SocketConnectionMiddleware$lambda$lambda$lambda_2(host, path));
56206
56204
  tmp_9 = Unit_getInstance();
56207
56205
  } else {
56208
- var config = new SocketConfig(query);
56206
+ var config = new SocketConfig(query, path);
56209
56207
  $ws.x35(host, path, config.m39_1, config.n39_1, config.o39_1, token, sessionId, query);
56210
56208
  StaticConfig_getInstance();
56211
56209
  $ws.b36(5000, SocketConnectionMiddleware$lambda$lambda$lambda_3($store, action));
@@ -67547,7 +67545,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67547
67545
  * Hangup a call.
67548
67546
  *
67549
67547
  * @example
67550
- * [[include: snippet_Hangup.txt]]
67548
+ * [[include: snippet_CallHangup.txt]]
67551
67549
  *
67552
67550
  * @group Voice
67553
67551
  * @param callId - the `callId` of the call to hangup
@@ -67688,7 +67686,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67688
67686
  * This method overrides the conversation properties to the provided parameters and rest remains as it is.
67689
67687
  *
67690
67688
  * @example
67691
- * [[include: snippet_updateConversation.txt]]
67689
+ * [[include: snippet_UpdateConversation.txt]]
67692
67690
  *
67693
67691
  * @param conversationId - the Conversation's id.
67694
67692
  * @param parameters - The properties of the conversation. These will replace existing values to the provided ones, rest will remain as they are.
@@ -67928,7 +67926,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67928
67926
  * Send a vcard message to a Conversation.
67929
67927
  *
67930
67928
  * @example
67931
- * [[include: snippet_SendVCardMessage.txt]]
67929
+ * [[include: snippet_SendVcardMessage.txt]]
67932
67930
  *
67933
67931
  * @group Chat
67934
67932
  * @beta
@@ -20035,6 +20035,9 @@ function requireClientsdkClientcore () {
20035
20035
  setMetadataFor(Companion_121, 'Companion', objectMeta);
20036
20036
  setMetadataFor($serializer_143, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
20037
20037
  setMetadataFor(SessionTerminatedEvent, 'SessionTerminatedEvent', classMeta, VOID, [SocketEvent], VOID, {0: $serializer_getInstance_143});
20038
+ function onConversationEvent(event) {
20039
+ }
20040
+ setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
20038
20041
  function onRTCHangup(conversationId, legId, hangup) {
20039
20042
  }
20040
20043
  function onRTCTransfer(conversationId, legId) {
@@ -20042,9 +20045,6 @@ function requireClientsdkClientcore () {
20042
20045
  function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
20043
20046
  }
20044
20047
  setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
20045
- function onConversationEvent(event) {
20046
- }
20047
- setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
20048
20048
  function onAudioSay() {
20049
20049
  }
20050
20050
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -20054,7 +20054,7 @@ function requireClientsdkClientcore () {
20054
20054
  function onAudioDTMFUpdate(conversationId, legId, digits) {
20055
20055
  }
20056
20056
  setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
20057
- setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
20057
+ setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, RTCEventListener, AudioEventListener]);
20058
20058
  setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
20059
20059
  setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
20060
20060
  setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
@@ -20183,7 +20183,7 @@ function requireClientsdkClientcore () {
20183
20183
  setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
20184
20184
  setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
20185
20185
  setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
20186
- setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
20186
+ setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, RTCEventListener, AudioEventListener]);
20187
20187
  setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
20188
20188
  setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
20189
20189
  setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
@@ -56005,10 +56005,8 @@ function requireClientsdkClientcore () {
56005
56005
  }
56006
56006
  function SocketClientDelegate() {
56007
56007
  }
56008
- function SocketConfig(query, forceNew, path, transports, reconnection, reconnectionAttempts, reconnectionDelay, randomizationFactor) {
56009
- query = query === VOID ? '' : query;
56008
+ function SocketConfig(query, path, forceNew, transports, reconnection, reconnectionAttempts, reconnectionDelay, randomizationFactor) {
56010
56009
  forceNew = forceNew === VOID ? true : forceNew;
56011
- path = path === VOID ? '/rtc/' : path;
56012
56010
  var tmp;
56013
56011
  if (transports === VOID) {
56014
56012
  // Inline function 'kotlin.arrayOf' call
@@ -56024,8 +56022,8 @@ function requireClientsdkClientcore () {
56024
56022
  reconnectionDelay = reconnectionDelay === VOID ? 5 : reconnectionDelay;
56025
56023
  randomizationFactor = randomizationFactor === VOID ? 0.75 : randomizationFactor;
56026
56024
  this.h39_1 = query;
56027
- this.i39_1 = forceNew;
56028
- this.j39_1 = path;
56025
+ this.i39_1 = path;
56026
+ this.j39_1 = forceNew;
56029
56027
  this.k39_1 = transports;
56030
56028
  this.l39_1 = reconnection;
56031
56029
  this.m39_1 = reconnectionAttempts;
@@ -56033,12 +56031,12 @@ function requireClientsdkClientcore () {
56033
56031
  this.o39_1 = randomizationFactor;
56034
56032
  }
56035
56033
  protoOf(SocketConfig).toString = function () {
56036
- return 'SocketConfig(query=' + this.h39_1 + ', forceNew=' + this.i39_1 + ', path=' + this.j39_1 + ', transports=' + toString(this.k39_1) + ', reconnection=' + this.l39_1 + ', reconnectionAttempts=' + toString(this.m39_1) + ', reconnectionDelay=' + toString(this.n39_1) + ', randomizationFactor=' + toString(this.o39_1) + ')';
56034
+ return 'SocketConfig(query=' + this.h39_1 + ', path=' + this.i39_1 + ', forceNew=' + this.j39_1 + ', transports=' + toString(this.k39_1) + ', reconnection=' + this.l39_1 + ', reconnectionAttempts=' + toString(this.m39_1) + ', reconnectionDelay=' + toString(this.n39_1) + ', randomizationFactor=' + toString(this.o39_1) + ')';
56037
56035
  };
56038
56036
  protoOf(SocketConfig).hashCode = function () {
56039
56037
  var result = getStringHashCode(this.h39_1);
56040
- result = imul(result, 31) + (this.i39_1 | 0) | 0;
56041
- result = imul(result, 31) + getStringHashCode(this.j39_1) | 0;
56038
+ result = imul(result, 31) + getStringHashCode(this.i39_1) | 0;
56039
+ result = imul(result, 31) + (this.j39_1 | 0) | 0;
56042
56040
  result = imul(result, 31) + hashCode(this.k39_1) | 0;
56043
56041
  result = imul(result, 31) + (this.l39_1 | 0) | 0;
56044
56042
  result = imul(result, 31) + hashCode(this.m39_1) | 0;
@@ -56181,7 +56179,7 @@ function requireClientsdkClientcore () {
56181
56179
  $logger.y2x(VOID, SocketConnectionMiddleware$lambda$lambda$lambda_2(host, path));
56182
56180
  tmp_9 = Unit_getInstance();
56183
56181
  } else {
56184
- var config = new SocketConfig(query);
56182
+ var config = new SocketConfig(query, path);
56185
56183
  $ws.x35(host, path, config.m39_1, config.n39_1, config.o39_1, token, sessionId, query);
56186
56184
  StaticConfig_getInstance();
56187
56185
  $ws.b36(5000, SocketConnectionMiddleware$lambda$lambda$lambda_3($store, action));
@@ -67523,7 +67521,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67523
67521
  * Hangup a call.
67524
67522
  *
67525
67523
  * @example
67526
- * [[include: snippet_Hangup.txt]]
67524
+ * [[include: snippet_CallHangup.txt]]
67527
67525
  *
67528
67526
  * @group Voice
67529
67527
  * @param callId - the `callId` of the call to hangup
@@ -67664,7 +67662,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67664
67662
  * This method overrides the conversation properties to the provided parameters and rest remains as it is.
67665
67663
  *
67666
67664
  * @example
67667
- * [[include: snippet_updateConversation.txt]]
67665
+ * [[include: snippet_UpdateConversation.txt]]
67668
67666
  *
67669
67667
  * @param conversationId - the Conversation's id.
67670
67668
  * @param parameters - The properties of the conversation. These will replace existing values to the provided ones, rest will remain as they are.
@@ -67904,7 +67902,7 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
67904
67902
  * Send a vcard message to a Conversation.
67905
67903
  *
67906
67904
  * @example
67907
- * [[include: snippet_SendVCardMessage.txt]]
67905
+ * [[include: snippet_SendVcardMessage.txt]]
67908
67906
  *
67909
67907
  * @group Chat
67910
67908
  * @beta
@@ -19593,6 +19593,9 @@
19593
19593
  setMetadataFor(Companion_121, 'Companion', objectMeta);
19594
19594
  setMetadataFor($serializer_143, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
19595
19595
  setMetadataFor(SessionTerminatedEvent, 'SessionTerminatedEvent', classMeta, VOID, [SocketEvent], VOID, {0: $serializer_getInstance_143});
19596
+ function onConversationEvent(event) {
19597
+ }
19598
+ setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
19596
19599
  function onRTCHangup(conversationId, legId, hangup) {
19597
19600
  }
19598
19601
  function onRTCTransfer(conversationId, legId) {
@@ -19600,9 +19603,6 @@
19600
19603
  function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
19601
19604
  }
19602
19605
  setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
19603
- function onConversationEvent(event) {
19604
- }
19605
- setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
19606
19606
  function onAudioSay() {
19607
19607
  }
19608
19608
  function onAudioMuteUpdate(conversationId, legId, isMuted) {
@@ -19612,7 +19612,7 @@
19612
19612
  function onAudioDTMFUpdate(conversationId, legId, digits) {
19613
19613
  }
19614
19614
  setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
19615
- setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
19615
+ setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, RTCEventListener, AudioEventListener]);
19616
19616
  setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
19617
19617
  setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
19618
19618
  setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
@@ -19721,7 +19721,7 @@
19721
19721
  setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
19722
19722
  setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
19723
19723
  setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
19724
- setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
19724
+ setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [ConversationEventListener, RTCEventListener, AudioEventListener]);
19725
19725
  setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
19726
19726
  setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
19727
19727
  setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
@@ -54861,10 +54861,8 @@
54861
54861
  }
54862
54862
  function SocketClientDelegate() {
54863
54863
  }
54864
- function SocketConfig(query, forceNew, path, transports, reconnection, reconnectionAttempts, reconnectionDelay, randomizationFactor) {
54865
- query = query === VOID ? '' : query;
54864
+ function SocketConfig(query, path, forceNew, transports, reconnection, reconnectionAttempts, reconnectionDelay, randomizationFactor) {
54866
54865
  forceNew = forceNew === VOID ? true : forceNew;
54867
- path = path === VOID ? '/rtc/' : path;
54868
54866
  var tmp;
54869
54867
  if (transports === VOID) {
54870
54868
  // Inline function 'kotlin.arrayOf' call
@@ -54880,8 +54878,8 @@
54880
54878
  reconnectionDelay = reconnectionDelay === VOID ? 5 : reconnectionDelay;
54881
54879
  randomizationFactor = randomizationFactor === VOID ? 0.75 : randomizationFactor;
54882
54880
  this.h39_1 = query;
54883
- this.i39_1 = forceNew;
54884
- this.j39_1 = path;
54881
+ this.i39_1 = path;
54882
+ this.j39_1 = forceNew;
54885
54883
  this.k39_1 = transports;
54886
54884
  this.l39_1 = reconnection;
54887
54885
  this.m39_1 = reconnectionAttempts;
@@ -54889,12 +54887,12 @@
54889
54887
  this.o39_1 = randomizationFactor;
54890
54888
  }
54891
54889
  protoOf(SocketConfig).toString = function () {
54892
- return 'SocketConfig(query=' + this.h39_1 + ', forceNew=' + this.i39_1 + ', path=' + this.j39_1 + ', transports=' + toString(this.k39_1) + ', reconnection=' + this.l39_1 + ', reconnectionAttempts=' + toString(this.m39_1) + ', reconnectionDelay=' + toString(this.n39_1) + ', randomizationFactor=' + toString(this.o39_1) + ')';
54890
+ return 'SocketConfig(query=' + this.h39_1 + ', path=' + this.i39_1 + ', forceNew=' + this.j39_1 + ', transports=' + toString(this.k39_1) + ', reconnection=' + this.l39_1 + ', reconnectionAttempts=' + toString(this.m39_1) + ', reconnectionDelay=' + toString(this.n39_1) + ', randomizationFactor=' + toString(this.o39_1) + ')';
54893
54891
  };
54894
54892
  protoOf(SocketConfig).hashCode = function () {
54895
54893
  var result = getStringHashCode(this.h39_1);
54896
- result = imul(result, 31) + (this.i39_1 | 0) | 0;
54897
- result = imul(result, 31) + getStringHashCode(this.j39_1) | 0;
54894
+ result = imul(result, 31) + getStringHashCode(this.i39_1) | 0;
54895
+ result = imul(result, 31) + (this.j39_1 | 0) | 0;
54898
54896
  result = imul(result, 31) + hashCode(this.k39_1) | 0;
54899
54897
  result = imul(result, 31) + (this.l39_1 | 0) | 0;
54900
54898
  result = imul(result, 31) + hashCode(this.m39_1) | 0;
@@ -55037,7 +55035,7 @@
55037
55035
  $logger.y2x(VOID, SocketConnectionMiddleware$lambda$lambda$lambda_2(host, path));
55038
55036
  tmp_9 = Unit_getInstance();
55039
55037
  } else {
55040
- var config = new SocketConfig(query);
55038
+ var config = new SocketConfig(query, path);
55041
55039
  $ws.x35(host, path, config.m39_1, config.n39_1, config.o39_1, token, sessionId, query);
55042
55040
  StaticConfig_getInstance();
55043
55041
  $ws.b36(5000, SocketConnectionMiddleware$lambda$lambda$lambda_3($store, action));
@@ -77377,7 +77375,7 @@
77377
77375
  * Hangup a call.
77378
77376
  *
77379
77377
  * @example
77380
- * [[include: snippet_Hangup.txt]]
77378
+ * [[include: snippet_CallHangup.txt]]
77381
77379
  *
77382
77380
  * @group Voice
77383
77381
  * @param callId - the `callId` of the call to hangup
@@ -77518,7 +77516,7 @@
77518
77516
  * This method overrides the conversation properties to the provided parameters and rest remains as it is.
77519
77517
  *
77520
77518
  * @example
77521
- * [[include: snippet_updateConversation.txt]]
77519
+ * [[include: snippet_UpdateConversation.txt]]
77522
77520
  *
77523
77521
  * @param conversationId - the Conversation's id.
77524
77522
  * @param parameters - The properties of the conversation. These will replace existing values to the provided ones, rest will remain as they are.
@@ -77758,7 +77756,7 @@
77758
77756
  * Send a vcard message to a Conversation.
77759
77757
  *
77760
77758
  * @example
77761
- * [[include: snippet_SendVCardMessage.txt]]
77759
+ * [[include: snippet_SendVcardMessage.txt]]
77762
77760
  *
77763
77761
  * @group Chat
77764
77762
  * @beta