@vonage/client-sdk 2.6.1 → 2.6.2-snapshot.20260820113314
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.
- package/api_docs/ts/assets/hierarchy.js +1 -0
- package/api_docs/ts/assets/highlight.css +1 -1
- package/api_docs/ts/assets/icons.js +17 -14
- package/api_docs/ts/assets/icons.svg +1 -1
- package/api_docs/ts/assets/main.js +5 -4
- package/api_docs/ts/assets/navigation.js +1 -1
- package/api_docs/ts/assets/search.js +1 -1
- package/api_docs/ts/assets/style.css +1460 -1224
- package/api_docs/ts/classes/ClientConfig.html +207 -16
- package/api_docs/ts/classes/ClientInitConfig.html +130 -14
- package/api_docs/ts/classes/VonageClient.html +1697 -335
- package/api_docs/ts/enums/CallDisconnectReason.html +54 -3
- package/api_docs/ts/enums/CancelReason.html +66 -6
- package/api_docs/ts/enums/HangupReason.html +70 -7
- package/api_docs/ts/enums/LegStatus.html +62 -5
- package/api_docs/ts/enums/LoggingLevel.html +74 -8
- package/api_docs/ts/enums/MemberChannelType.html +94 -13
- package/api_docs/ts/enums/OrderBy.html +58 -2
- package/api_docs/ts/enums/PresentingOrder.html +62 -8
- package/api_docs/ts/enums/SessionErrorReason.html +62 -5
- package/api_docs/ts/enums/VoiceChannelType.html +66 -6
- package/api_docs/ts/enums/VonageErrorType.html +70 -7
- package/api_docs/ts/functions/none.html +42 -2
- package/api_docs/ts/functions/some.html +48 -3
- package/api_docs/ts/hierarchy.html +30 -0
- package/api_docs/ts/index.html +102 -26
- package/api_docs/ts/interfaces/CallSayParams.html +75 -8
- package/api_docs/ts/interfaces/Channel.html +67 -6
- package/api_docs/ts/interfaces/Conversation.html +127 -20
- package/api_docs/ts/interfaces/ConversationProperties.html +75 -8
- package/api_docs/ts/interfaces/ConversationTimestamp.html +75 -5
- package/api_docs/ts/interfaces/ConversationsPage.html +81 -8
- package/api_docs/ts/interfaces/CreateConversationParameters.html +88 -15
- package/api_docs/ts/interfaces/EmergencyCallData.html +67 -6
- package/api_docs/ts/interfaces/EmergencyCallOptions.html +57 -4
- package/api_docs/ts/interfaces/EphemeralConversationEvent.html +81 -12
- package/api_docs/ts/interfaces/EventsPage.html +81 -8
- package/api_docs/ts/interfaces/GetCallLegsParameters.html +69 -8
- package/api_docs/ts/interfaces/GetConversationEventsParameters.html +87 -14
- package/api_docs/ts/interfaces/GetConversationMembersParameters.html +69 -8
- package/api_docs/ts/interfaces/GetConversationsParameters.html +81 -12
- package/api_docs/ts/interfaces/Leg.html +131 -21
- package/api_docs/ts/interfaces/LegChannel.html +75 -8
- package/api_docs/ts/interfaces/LegsPage.html +81 -8
- package/api_docs/ts/interfaces/Location.html +67 -6
- package/api_docs/ts/interfaces/Member.html +81 -12
- package/api_docs/ts/interfaces/MemberChannel.html +69 -8
- package/api_docs/ts/interfaces/MemberEventBody.html +75 -7
- package/api_docs/ts/interfaces/MemberTimestamp.html +75 -5
- package/api_docs/ts/interfaces/MembersPage.html +81 -8
- package/api_docs/ts/interfaces/MessageAudioEventBody.html +67 -5
- package/api_docs/ts/interfaces/MessageCustomEventBody.html +67 -5
- package/api_docs/ts/interfaces/MessageFileEventBody.html +67 -6
- package/api_docs/ts/interfaces/MessageImageEventBody.html +67 -6
- package/api_docs/ts/interfaces/MessageLocationEventBody.html +67 -6
- package/api_docs/ts/interfaces/MessageTemplateEventBody.html +93 -9
- package/api_docs/ts/interfaces/MessageTextEventBody.html +67 -6
- package/api_docs/ts/interfaces/MessageVCardEventBody.html +67 -6
- package/api_docs/ts/interfaces/MessageVideoEventBody.html +67 -6
- package/api_docs/ts/interfaces/RTCQuality.html +123 -11
- package/api_docs/ts/interfaces/RtcStats.html +179 -18
- package/api_docs/ts/interfaces/Template.html +59 -4
- package/api_docs/ts/interfaces/UpdateConversationParameters.html +87 -14
- package/api_docs/ts/interfaces/User.html +107 -16
- package/api_docs/ts/interfaces/UserChannels.html +139 -13
- package/api_docs/ts/interfaces/UserTimestamp.html +75 -5
- package/api_docs/ts/interfaces/VonageError.html +89 -12
- package/api_docs/ts/interfaces/VonageEvent.html +131 -22
- package/api_docs/ts/interfaces/Whatsapp.html +59 -4
- package/api_docs/ts/modules.html +69 -74
- package/api_docs/ts/types/ClientConfigObject.html +52 -5
- package/api_docs/ts/types/ClientInitConfigObject.html +59 -4
- package/api_docs/ts/types/ConfigRegion.html +34 -2
- package/api_docs/ts/types/ConversationEvent.html +34 -2
- package/api_docs/ts/types/CustomData.html +34 -2
- package/api_docs/ts/types/Json.html +34 -2
- package/api_docs/ts/types/JsonValue.html +34 -2
- package/api_docs/ts/types/MemberStatus.html +34 -2
- package/api_docs/ts/types/Option.html +38 -2
- package/api_docs/ts/types/PersistentConversationEvent.html +34 -2
- package/api_docs/ts/types/Topics.html +34 -2
- package/api_docs/ts/types/VonageLogger.html +59 -4
- package/api_docs/ts/variables/Topics.html +34 -0
- package/api_docs/ts/variables/VonageError.html +38 -0
- package/dist/client/VonageClient.d.ts +704 -704
- package/dist/client/index.cjs +45072 -36319
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.mjs +44700 -35947
- package/dist/coreExtend.d.ts +107 -107
- package/dist/kotlin/JsUnions.d.ts +443 -443
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +724 -145
- package/dist/utils/ClientConfig.d.ts +104 -104
- package/dist/utils/ConversationEventBodies.d.ts +125 -125
- package/dist/utils/ConversationModels.d.ts +170 -170
- package/dist/utils/Enums.d.ts +56 -56
- package/dist/utils/ErrorModels.d.ts +23 -23
- package/dist/utils/JsonUtils.d.ts +15 -15
- package/dist/utils/Option.d.ts +19 -19
- package/dist/utils/RequestParameterModels.d.ts +134 -134
- package/dist/utils/index.d.ts +10 -10
- package/dist/utils/jsEnumToVonageObject.d.ts +10 -10
- package/dist/utils/logging.d.ts +53 -53
- package/dist/utils/vonage.d.ts +2 -2
- package/dist/vonageClientSDK.js +44299 -35558
- package/dist/vonageClientSDK.min.js +25 -25
- package/dist/vonageClientSDK.min.mjs +26 -26
- package/dist/vonageClientSDK.mjs +44299 -35558
- package/package.json +6 -6
- package/typedoc.json +3 -0
- package/api_docs/ts/variables/Topics-1.html +0 -2
- package/api_docs/ts/variables/VonageError-1.html +0 -3
|
@@ -1,69 +1,152 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
<a href="
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
<a href="
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
<
|
|
20
|
-
<
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
<a href="
|
|
29
|
-
<a href="
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
<a href="
|
|
34
|
-
<a href="
|
|
35
|
-
<a href="
|
|
36
|
-
<a href="
|
|
37
|
-
<a href="
|
|
38
|
-
<a href="
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<
|
|
42
|
-
<a href="
|
|
43
|
-
<a href="
|
|
44
|
-
<a href="
|
|
45
|
-
<a href="
|
|
46
|
-
<a href="
|
|
47
|
-
<a href="
|
|
48
|
-
<a href="
|
|
49
|
-
<a href="
|
|
50
|
-
<a href="
|
|
51
|
-
<a href="
|
|
52
|
-
<a href="
|
|
53
|
-
<a href="
|
|
54
|
-
<a href="
|
|
55
|
-
<a href="
|
|
56
|
-
<a href="
|
|
57
|
-
<a href="
|
|
58
|
-
<a href="
|
|
59
|
-
<a href="
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>VonageClient | @vonage/client-sdk - v0.0.0</title><meta name="description" content="Documentation for @vonage/client-sdk"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@vonage/client-sdk - v0.0.0</a>
|
|
3
|
+
<div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
|
|
4
|
+
<ul role="listbox" id="tsd-search-results"></ul>
|
|
5
|
+
<div id="tsd-search-status" aria-live="polite" aria-atomic="true">
|
|
6
|
+
<div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header>
|
|
7
|
+
<div class="container container-main">
|
|
8
|
+
<div class="col-content">
|
|
9
|
+
<div class="tsd-page-title">
|
|
10
|
+
<ul class="tsd-breadcrumb" aria-label="Breadcrumb">
|
|
11
|
+
<li><a href="" aria-current="page">VonageClient</a></li></ul>
|
|
12
|
+
<h1>Class VonageClient</h1></div>
|
|
13
|
+
<section class="tsd-panel tsd-comment">
|
|
14
|
+
<div class="tsd-comment tsd-typography"><p>VonageClient is the main entry point for the Vonage Client SDK.</p>
|
|
15
|
+
</div></section>
|
|
16
|
+
<section class="tsd-panel tsd-hierarchy" data-refl="235">
|
|
17
|
+
<h4>Hierarchy</h4>
|
|
18
|
+
<ul class="tsd-hierarchy">
|
|
19
|
+
<li class="tsd-hierarchy-item"><span class="tsd-signature-type">CombinedClientJS</span>
|
|
20
|
+
<ul class="tsd-hierarchy">
|
|
21
|
+
<li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">VonageClient</span></li></ul></li></ul></section>
|
|
22
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
23
|
+
<section class="tsd-panel tsd-index-panel">
|
|
24
|
+
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
25
|
+
<h5 class="tsd-index-heading uppercase">Index</h5></summary>
|
|
26
|
+
<div class="tsd-accordion-details">
|
|
27
|
+
<section class="tsd-index-section">
|
|
28
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="accessors">Accessors<a href="#accessors" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
29
|
+
<div class="tsd-index-list"><a href="#emergencycore" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>emergency<wbr/>Core</span></a>
|
|
30
|
+
</div></section>
|
|
31
|
+
<section class="tsd-index-section">
|
|
32
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="methods">Methods<a href="#methods" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
33
|
+
<div class="tsd-index-list"><a href="#clearcallbacks" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>clear<wbr/>Callbacks</span></a>
|
|
34
|
+
<a href="#createsession" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Session</span></a>
|
|
35
|
+
<a href="#getconversation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversation</span></a>
|
|
36
|
+
<a href="#off" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>off</span></a>
|
|
37
|
+
<a href="#on" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>on</span></a>
|
|
38
|
+
<a href="#setconfig" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Config</span></a>
|
|
39
|
+
<a href="#updateconversation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>update<wbr/>Conversation</span></a>
|
|
40
|
+
</div></section>
|
|
41
|
+
<section class="tsd-index-section">
|
|
42
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="chat">Chat<a href="#chat" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
43
|
+
<div class="tsd-index-list"><a href="#createconversation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Conversation</span></a>
|
|
44
|
+
<a href="#deleteconversation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>delete<wbr/>Conversation</span></a>
|
|
45
|
+
<a href="#deleteevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>delete<wbr/>Event</span></a>
|
|
46
|
+
<a href="#getconversationevents" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversation<wbr/>Events</span></a>
|
|
47
|
+
<a href="#getconversationmember" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversation<wbr/>Member</span></a>
|
|
48
|
+
<a href="#getconversationmembers" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversation<wbr/>Members</span></a>
|
|
49
|
+
<a href="#getconversations" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversations</span></a>
|
|
50
|
+
<a href="#invitetoconversation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>invite<wbr/>To<wbr/>Conversation</span></a>
|
|
51
|
+
<a href="#joinconversation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>join<wbr/>Conversation</span></a>
|
|
52
|
+
<a href="#leaveconversation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>leave<wbr/>Conversation</span></a>
|
|
53
|
+
<a href="#sendcustomevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Custom<wbr/>Event</span></a>
|
|
54
|
+
<a href="#sendephemeralevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Ephemeral<wbr/>Event</span></a>
|
|
55
|
+
<a href="#sendmessageaudioevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Audio<wbr/>Event</span></a>
|
|
56
|
+
<a href="#sendmessagecustomevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Custom<wbr/>Event</span></a>
|
|
57
|
+
<a href="#sendmessagefileevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>File<wbr/>Event</span></a>
|
|
58
|
+
<a href="#sendmessageimageevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Image<wbr/>Event</span></a>
|
|
59
|
+
<a href="#sendmessagelocationevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Location<wbr/>Event</span></a>
|
|
60
|
+
<a href="#sendmessageseenevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Seen<wbr/>Event</span></a>
|
|
61
|
+
<a href="#sendmessagetemplateevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Template<wbr/>Event</span></a>
|
|
62
|
+
<a href="#sendmessagetextevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Text<wbr/>Event</span></a>
|
|
63
|
+
<a href="#sendmessagevcardevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>V<wbr/>Card<wbr/>Event</span></a>
|
|
64
|
+
<a href="#sendmessagevideoevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Video<wbr/>Event</span></a>
|
|
65
|
+
</div></section>
|
|
66
|
+
<section class="tsd-index-section">
|
|
67
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="emergency">Emergency<a href="#emergency" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
68
|
+
<div class="tsd-index-list"><a href="#disableearmuffemergencycall" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Earmuff<wbr/>Emergency<wbr/>Call</span></a>
|
|
69
|
+
<a href="#emergencycall" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>emergency<wbr/>Call</span></a>
|
|
70
|
+
<a href="#enableearmuffemergencycall" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Earmuff<wbr/>Emergency<wbr/>Call</span></a>
|
|
71
|
+
<a href="#hangupemergencycall" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>hangup<wbr/>Emergency<wbr/>Call</span></a>
|
|
72
|
+
<a href="#muteemergencycall" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mute<wbr/>Emergency<wbr/>Call</span></a>
|
|
73
|
+
<a href="#reconnectemergencycall" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>reconnect<wbr/>Emergency<wbr/>Call</span></a>
|
|
74
|
+
<a href="#unmuteemergencycall" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>unmute<wbr/>Emergency<wbr/>Call</span></a>
|
|
75
|
+
</div></section>
|
|
76
|
+
<section class="tsd-index-section">
|
|
77
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="voice">Voice<a href="#voice" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
78
|
+
<div class="tsd-index-list"><a href="#answer" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>answer</span></a>
|
|
79
|
+
<a href="#disableautogaincontrol" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Auto<wbr/>Gain<wbr/>Control</span></a>
|
|
80
|
+
<a href="#disableearmuff" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Earmuff</span></a>
|
|
81
|
+
<a href="#disableechocancellation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Echo<wbr/>Cancellation</span></a>
|
|
82
|
+
<a href="#disablenoisesuppression" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Noise<wbr/>Suppression</span></a>
|
|
83
|
+
<a href="#enableautogaincontrol" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Auto<wbr/>Gain<wbr/>Control</span></a>
|
|
84
|
+
<a href="#enableearmuff" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Earmuff</span></a>
|
|
85
|
+
<a href="#enableechocancellation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Echo<wbr/>Cancellation</span></a>
|
|
86
|
+
<a href="#enablenoisesuppression" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Noise<wbr/>Suppression</span></a>
|
|
87
|
+
<a href="#getaudiooutputelement" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Audio<wbr/>Output<wbr/>Element</span></a>
|
|
88
|
+
<a href="#getcalllegs" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Call<wbr/>Legs</span></a>
|
|
89
|
+
<a href="#getleg" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Leg</span></a>
|
|
90
|
+
<a href="#getpeerconnection" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Peer<wbr/>Connection</span></a>
|
|
91
|
+
<a href="#hangup" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>hangup</span></a>
|
|
92
|
+
<a href="#mute" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mute</span></a>
|
|
93
|
+
<a href="#reconnectcall" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>reconnect<wbr/>Call</span></a>
|
|
94
|
+
<a href="#reject" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>reject</span></a>
|
|
95
|
+
<a href="#say" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>say</span></a>
|
|
96
|
+
<a href="#senddtmf" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>DTMF</span></a>
|
|
97
|
+
<a href="#servercall" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>server<wbr/>Call</span></a>
|
|
98
|
+
<a href="#unmute" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>unmute</span></a>
|
|
99
|
+
</div></section></div></details></section></section>
|
|
100
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Accessors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
101
|
+
<h2 class="tsd-anchor-link" id="accessors-1">Accessors<a href="#accessors-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
102
|
+
<section>
|
|
103
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
104
|
+
<h3 class="tsd-anchor-link" id="emergencycore"><span>emergency<wbr/>Core</span><a href="#emergencycore" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
105
|
+
<ul class="tsd-signatures tsd-is-inherited">
|
|
106
|
+
<li>
|
|
107
|
+
<div class="tsd-signature" id="emergencycoreemergencycore"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">emergencyCore</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
|
|
108
|
+
<div class="tsd-description">
|
|
109
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4><aside class="tsd-sources">
|
|
110
|
+
<p>Inherited from vonage.CombinedClientJS.emergencyCore</p></aside></div></li></ul></section></section></details>
|
|
111
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
112
|
+
<h2 class="tsd-anchor-link" id="methods-1">Methods<a href="#methods-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
113
|
+
<section>
|
|
114
|
+
<section class="tsd-panel tsd-member">
|
|
115
|
+
<h3 class="tsd-anchor-link" id="clearcallbacks"><span>clear<wbr/>Callbacks</span><a href="#clearcallbacks" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
116
|
+
<ul class="tsd-signatures">
|
|
117
|
+
<li class="">
|
|
118
|
+
<div class="tsd-signature tsd-anchor-link" id="clearcallbacks-1"><span class="tsd-kind-call-signature">clearCallbacks</span><span class="tsd-signature-symbol"><</span><br/> <a class="tsd-signature-type tsd-kind-type-parameter" href="#clearcallbackst">T</a> <span class="tsd-signature-keyword">extends</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"mute"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"conversationEvent"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callHangup"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaDisconnect"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"legStatusUpdate"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"rtcStatsUpdate"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callInvite"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callInviteCancel"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"sessionError"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaError"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"emergencyCallDisconnected"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"emergencyCallHangup"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callTransfer"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"earmuff"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"dtmf"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaReconnecting"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaReconnection"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"reconnecting"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"reconnection"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"peerConnectionCreated"</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#clearcallbackst">T</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#clearcallbacks-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
119
|
+
<div class="tsd-description">
|
|
120
|
+
<div class="tsd-comment tsd-typography"><p>Clear all callbacks for an event.</p>
|
|
121
|
+
</div>
|
|
122
|
+
<section class="tsd-panel">
|
|
123
|
+
<h4>Type Parameters</h4>
|
|
124
|
+
<ul class="tsd-type-parameter-list">
|
|
125
|
+
<li><span id="clearcallbackst"><span class="tsd-kind-type-parameter">T</span> <span class="tsd-signature-keyword">extends</span> <br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"mute"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"conversationEvent"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callHangup"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaDisconnect"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"legStatusUpdate"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"rtcStatsUpdate"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callInvite"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callInviteCancel"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"sessionError"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaError"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"emergencyCallDisconnected"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"emergencyCallHangup"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callTransfer"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"earmuff"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"dtmf"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaReconnecting"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaReconnection"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"reconnecting"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"reconnection"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"peerConnectionCreated"</span></span></li></ul></section>
|
|
126
|
+
<div class="tsd-parameters">
|
|
127
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
128
|
+
<ul class="tsd-parameter-list">
|
|
129
|
+
<li><span><span class="tsd-kind-parameter">event</span>: <a class="tsd-signature-type tsd-kind-type-parameter" href="#clearcallbackst">T</a></span>
|
|
130
|
+
<div class="tsd-comment tsd-typography"><p>the event to unregister from (e.g. 'legStatusUpdate')</p>
|
|
131
|
+
</div></li></ul></div>
|
|
132
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><p>void</p>
|
|
133
|
+
|
|
134
|
+
<div class="tsd-comment tsd-typography">
|
|
135
|
+
<div class="tsd-tag-example">
|
|
136
|
+
<h4 class="tsd-anchor-link" id="example">Example<a href="#example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">client.clearCallbacks('sessionError');
|
|
137
|
+
</code><button type="button">Copy</button></pre>
|
|
138
|
+
|
|
139
|
+
</div>
|
|
140
|
+
<div class="tsd-tag-remarks">
|
|
141
|
+
<h4 class="tsd-anchor-link" id="remarks">Remarks<a href="#remarks" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>This is useful for cleaning up callbacks when you no longer need them.</p>
|
|
142
|
+
</div></div></div></li></ul></section>
|
|
143
|
+
<section class="tsd-panel tsd-member">
|
|
144
|
+
<h3 class="tsd-anchor-link" id="createsession"><span>create<wbr/>Session</span><a href="#createsession" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
145
|
+
<ul class="tsd-signatures">
|
|
146
|
+
<li class="">
|
|
147
|
+
<div class="tsd-signature tsd-anchor-link" id="createsession-1"><span class="tsd-kind-call-signature">createSession</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">token</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">sessionId</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</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"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#createsession-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
148
|
+
<div class="tsd-description">
|
|
149
|
+
<div class="tsd-comment tsd-typography"><p>Create (or reconnect to) a session.</p>
|
|
67
150
|
<p>When <code>sessionId</code> is omitted or <code>null</code>, a completely new session is created.</p>
|
|
68
151
|
<p>When <code>sessionId</code> is set to the value returned by a <strong>previous</strong> <code>createSession</code> call, the
|
|
69
152
|
Conversation Service will replay any pending events into the new session. In particular, an
|
|
@@ -71,275 +154,1554 @@ unanswered inbound call invite that arrived before a page refresh will be re-del
|
|
|
71
154
|
<code>onCallInvite</code> fires automatically — no extra API call is needed.</p>
|
|
72
155
|
<p><strong>Important:</strong> The Conversation Service retains pending events for approximately 30 seconds.
|
|
73
156
|
Persist the session ID (e.g. in <code>sessionStorage</code>) and pass it back within that window.</p>
|
|
74
|
-
</div
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
</div
|
|
81
|
-
|
|
82
|
-
<div class="tsd-comment tsd-typography"><
|
|
83
|
-
</
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
</div><section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="on.on-1.T-2" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">T</span><span class="tsd-signature-keyword"> extends </span><span class="tsd-signature-type">"mute"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"conversationEvent"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"callHangup"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"callMediaDisconnect"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"legStatusUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"rtcStatsUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"callInvite"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"callInviteCancel"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"sessionError"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"callMediaError"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"emergencyCallDisconnected"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"emergencyCallHangup"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"callTransfer"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"earmuff"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"dtmf"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"callMediaReconnecting"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"callMediaReconnection"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"reconnecting"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"reconnection"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"peerConnectionCreated"</span></span></li><li><span><a id="on.on-1.P" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">P</span><span class="tsd-signature-keyword"> extends </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span>, <span class="tsd-kind-parameter">callQuality</span>, <span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span>, <span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span>, <span class="tsd-kind-parameter">legId</span>, <span class="tsd-kind-parameter">legStatus</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">stats</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">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span>, <span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span>, <span class="tsd-kind-parameter">from</span>, <span class="tsd-kind-parameter">channelType</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span>, <span class="tsd-kind-parameter">error</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</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">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</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">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span>, <span class="tsd-kind-parameter">pc</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span>, <span class="tsd-kind-parameter">legId</span>, <span class="tsd-kind-parameter">isMuted</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span>, <span class="tsd-kind-parameter">conversationId</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span>, <span class="tsd-kind-parameter">legId</span>, <span class="tsd-kind-parameter">earmuffStatus</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span>, <span class="tsd-kind-parameter">legId</span>, <span class="tsd-kind-parameter">digits</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</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">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</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">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></span></li></ul></section><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a class="tsd-signature-type tsd-kind-type-parameter" href="VonageClient.html#on.on-1.T-2">T</a></span><div class="tsd-comment tsd-typography"><p>the event to register for (e.g. 'legStatusUpdate')</p>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
</code><button>Copy</button></pre>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
<
|
|
103
|
-
|
|
104
|
-
|
|
157
|
+
</div>
|
|
158
|
+
<div class="tsd-parameters">
|
|
159
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
160
|
+
<ul class="tsd-parameter-list">
|
|
161
|
+
<li><span><span class="tsd-kind-parameter">token</span>: <span class="tsd-signature-type">string</span></span>
|
|
162
|
+
<div class="tsd-comment tsd-typography"><p>JWT token of the user.</p>
|
|
163
|
+
</div></li>
|
|
164
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">sessionId</span>: <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span></span>
|
|
165
|
+
<div class="tsd-comment tsd-typography"><p>Optional previous session ID. Omit or pass <code>null</code> for a fresh session.</p>
|
|
166
|
+
</div></li></ul></div>
|
|
167
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>The <code>sessionId</code> of the newly established session.</p>
|
|
168
|
+
|
|
169
|
+
<div class="tsd-comment tsd-typography">
|
|
170
|
+
<div class="tsd-tag-example">
|
|
171
|
+
<h4 class="tsd-anchor-link" id="example-1">Example<a href="#example-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const token = 'token';
|
|
172
|
+
|
|
173
|
+
try {
|
|
174
|
+
const sessionId: string = await client.createSession(token);
|
|
175
|
+
console.log({ sessionId });
|
|
176
|
+
} catch (e) {
|
|
177
|
+
console.log({ e });
|
|
178
|
+
}
|
|
179
|
+
</code><button type="button">Copy</button></pre>
|
|
180
|
+
|
|
181
|
+
</div></div><aside class="tsd-sources">
|
|
182
|
+
<p>Overrides vonage.CombinedClientJS.createSession</p></aside></div></li></ul></section>
|
|
183
|
+
<section class="tsd-panel tsd-member">
|
|
184
|
+
<h3 class="tsd-anchor-link" id="getconversation"><span>get<wbr/>Conversation</span><a href="#getconversation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
185
|
+
<ul class="tsd-signatures">
|
|
186
|
+
<li class="">
|
|
187
|
+
<div class="tsd-signature tsd-anchor-link" id="getconversation-1"><span class="tsd-kind-call-signature">getConversation</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">conversationIdOrName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><a href="../interfaces/Conversation.html" class="tsd-signature-type tsd-kind-interface">Conversation</a><span class="tsd-signature-symbol">></span><a href="#getconversation-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
188
|
+
<div class="tsd-description">
|
|
189
|
+
<div class="tsd-comment tsd-typography"><p>Get a Conversation</p>
|
|
190
|
+
</div>
|
|
191
|
+
<div class="tsd-parameters">
|
|
192
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
193
|
+
<ul class="tsd-parameter-list">
|
|
194
|
+
<li><span><span class="tsd-kind-parameter">conversationIdOrName</span>: <span class="tsd-signature-type">string</span></span>
|
|
195
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id or conversation name</p>
|
|
196
|
+
</div></li></ul></div>
|
|
197
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/Conversation.html" class="tsd-signature-type tsd-kind-interface">Conversation</a><span class="tsd-signature-symbol">></span></h4><p>the <code>Conversation</code></p>
|
|
198
|
+
|
|
199
|
+
<div class="tsd-comment tsd-typography">
|
|
200
|
+
<div class="tsd-tag-example">
|
|
201
|
+
<h4 class="tsd-anchor-link" id="example-2">Example<a href="#example-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">try {
|
|
202
|
+
const conversation: Conversation = await client.getConversation(
|
|
203
|
+
'conversationIdOrName'
|
|
204
|
+
);
|
|
205
|
+
console.log({ conversation });
|
|
206
|
+
} catch (e) {
|
|
207
|
+
console.log({ e });
|
|
208
|
+
}
|
|
209
|
+
</code><button type="button">Copy</button></pre>
|
|
210
|
+
|
|
211
|
+
</div></div><aside class="tsd-sources">
|
|
212
|
+
<p>Overrides vonage.CombinedClientJS.getConversation</p></aside></div></li></ul></section>
|
|
213
|
+
<section class="tsd-panel tsd-member">
|
|
214
|
+
<h3 class="tsd-anchor-link" id="off"><span>off</span><a href="#off" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
215
|
+
<ul class="tsd-signatures">
|
|
216
|
+
<li class="">
|
|
217
|
+
<div class="tsd-signature tsd-anchor-link" id="off-1"><span class="tsd-kind-call-signature">off</span><span class="tsd-signature-symbol"><</span><br/> <a class="tsd-signature-type tsd-kind-type-parameter" href="#offt">T</a> <span class="tsd-signature-keyword">extends</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"mute"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"conversationEvent"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callHangup"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaDisconnect"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"legStatusUpdate"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"rtcStatsUpdate"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callInvite"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callInviteCancel"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"sessionError"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaError"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"emergencyCallDisconnected"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"emergencyCallHangup"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callTransfer"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"earmuff"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"dtmf"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaReconnecting"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaReconnection"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"reconnecting"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"reconnection"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"peerConnectionCreated"</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#offt">T</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">callbackSymbol</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">symbol</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#off-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
218
|
+
<div class="tsd-description">
|
|
219
|
+
<div class="tsd-comment tsd-typography"><p>Unregister a callback for an event.</p>
|
|
220
|
+
</div>
|
|
221
|
+
<section class="tsd-panel">
|
|
222
|
+
<h4>Type Parameters</h4>
|
|
223
|
+
<ul class="tsd-type-parameter-list">
|
|
224
|
+
<li><span id="offt"><span class="tsd-kind-type-parameter">T</span> <span class="tsd-signature-keyword">extends</span> <br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"mute"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"conversationEvent"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callHangup"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaDisconnect"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"legStatusUpdate"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"rtcStatsUpdate"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callInvite"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callInviteCancel"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"sessionError"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaError"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"emergencyCallDisconnected"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"emergencyCallHangup"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callTransfer"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"earmuff"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"dtmf"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaReconnecting"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaReconnection"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"reconnecting"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"reconnection"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"peerConnectionCreated"</span></span></li></ul></section>
|
|
225
|
+
<div class="tsd-parameters">
|
|
226
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
227
|
+
<ul class="tsd-parameter-list">
|
|
228
|
+
<li><span><span class="tsd-kind-parameter">event</span>: <a class="tsd-signature-type tsd-kind-type-parameter" href="#offt">T</a></span>
|
|
229
|
+
<div class="tsd-comment tsd-typography"><p>the event to register for (e.g. 'legStatusUpdate')</p>
|
|
230
|
+
</div></li>
|
|
231
|
+
<li><span><span class="tsd-kind-parameter">callbackSymbol</span>: <span class="tsd-signature-type">symbol</span></span>
|
|
232
|
+
<div class="tsd-comment tsd-typography"><p>the callback symbol to unregister</p>
|
|
233
|
+
</div></li></ul></div>
|
|
234
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>true if the callback was unregistered, false otherwise</p>
|
|
235
|
+
|
|
236
|
+
<div class="tsd-comment tsd-typography">
|
|
237
|
+
<div class="tsd-tag-example">
|
|
238
|
+
<h4 class="tsd-anchor-link" id="example-3">Example<a href="#example-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">client.off('reconnecting', reeconnectingListener);
|
|
239
|
+
client.off('reconnection', reeconnectionListener);
|
|
240
|
+
client.off('sessionError', sessionErrorListener);
|
|
241
|
+
</code><button type="button">Copy</button></pre>
|
|
242
|
+
|
|
243
|
+
</div>
|
|
244
|
+
<div class="tsd-tag-remarks">
|
|
245
|
+
<h4 class="tsd-anchor-link" id="remarks-1">Remarks<a href="#remarks-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>We recommend deregistering callbacks when you no longer need them.</p>
|
|
246
|
+
</div></div></div></li></ul></section>
|
|
247
|
+
<section class="tsd-panel tsd-member">
|
|
248
|
+
<h3 class="tsd-anchor-link" id="on"><span>on</span><a href="#on" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
249
|
+
<ul class="tsd-signatures">
|
|
250
|
+
<li class="">
|
|
251
|
+
<div class="tsd-signature tsd-anchor-link" id="on-1"><span class="tsd-kind-call-signature">on</span><span class="tsd-signature-symbol"><</span><br/> <a class="tsd-signature-type tsd-kind-type-parameter" href="#ont">T</a> <span class="tsd-signature-keyword">extends</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"mute"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"conversationEvent"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callHangup"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaDisconnect"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"legStatusUpdate"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"rtcStatsUpdate"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callInvite"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callInviteCancel"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"sessionError"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaError"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"emergencyCallDisconnected"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"emergencyCallHangup"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callTransfer"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"earmuff"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"dtmf"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaReconnecting"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaReconnection"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"reconnecting"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"reconnection"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"peerConnectionCreated"</span><span class="tsd-signature-symbol">,</span><br/> <a class="tsd-signature-type tsd-kind-type-parameter" href="#onp">P</a> <span class="tsd-signature-keyword">extends</span><br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="../types/ConversationEvent.html" class="tsd-signature-type tsd-kind-type-alias">ConversationEvent</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">callQuality</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">RTCQualityJS</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">:</span> <a href="../enums/HangupReason.html" class="tsd-signature-type tsd-kind-enum">HangupReason</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><br/> )<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"networkChange"</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">legId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">legStatus</span><span class="tsd-signature-symbol">:</span> <a href="../enums/LegStatus.html" class="tsd-signature-type tsd-kind-enum">LegStatus</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">stats</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">RTCStatsJS</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">:</span> <a href="../enums/CancelReason.html" class="tsd-signature-type tsd-kind-enum">CancelReason</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">from</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">channelType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/VoiceChannelType.html" class="tsd-signature-type tsd-kind-enum">VoiceChannelType</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">:</span> <a href="../enums/SessionErrorReason.html" class="tsd-signature-type tsd-kind-enum">SessionErrorReason</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">error</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/VonageError.html" class="tsd-signature-type tsd-kind-interface">VonageError</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">pc</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">RTCPeerConnection</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">legId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">isMuted</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">conversationId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">legId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">earmuffStatus</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">legId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">digits</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#ont">T</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">callback</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#onp">P</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">symbol</span><a href="#on-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
252
|
+
<div class="tsd-description">
|
|
253
|
+
<div class="tsd-comment tsd-typography"><p>Register a callback for an event.</p>
|
|
254
|
+
</div>
|
|
255
|
+
<section class="tsd-panel">
|
|
256
|
+
<h4>Type Parameters</h4>
|
|
257
|
+
<ul class="tsd-type-parameter-list">
|
|
258
|
+
<li><span id="ont"><span class="tsd-kind-type-parameter">T</span> <span class="tsd-signature-keyword">extends</span> <br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"mute"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"conversationEvent"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callHangup"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaDisconnect"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"legStatusUpdate"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"rtcStatsUpdate"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callInvite"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callInviteCancel"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"sessionError"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaError"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"emergencyCallDisconnected"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"emergencyCallHangup"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callTransfer"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"earmuff"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"dtmf"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaReconnecting"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"callMediaReconnection"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"reconnecting"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"reconnection"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"peerConnectionCreated"</span></span></li>
|
|
259
|
+
<li><span id="onp"><span class="tsd-kind-type-parameter">P</span> <span class="tsd-signature-keyword">extends</span> <br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="../types/ConversationEvent.html" class="tsd-signature-type tsd-kind-type-alias">ConversationEvent</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">callQuality</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">RTCQualityJS</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">:</span> <a href="../enums/HangupReason.html" class="tsd-signature-type tsd-kind-enum">HangupReason</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><br/> )<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"networkChange"</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">legId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">legStatus</span><span class="tsd-signature-symbol">:</span> <a href="../enums/LegStatus.html" class="tsd-signature-type tsd-kind-enum">LegStatus</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">stats</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">RTCStatsJS</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">:</span> <a href="../enums/CancelReason.html" class="tsd-signature-type tsd-kind-enum">CancelReason</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">from</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">channelType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/VoiceChannelType.html" class="tsd-signature-type tsd-kind-enum">VoiceChannelType</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">reason</span><span class="tsd-signature-symbol">:</span> <a href="../enums/SessionErrorReason.html" class="tsd-signature-type tsd-kind-enum">SessionErrorReason</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">error</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/VonageError.html" class="tsd-signature-type tsd-kind-interface">VonageError</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">pc</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">RTCPeerConnection</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">legId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">isMuted</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">conversationId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">legId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">earmuffStatus</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">legId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">digits</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span>)</span></li></ul></section>
|
|
260
|
+
<div class="tsd-parameters">
|
|
261
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
262
|
+
<ul class="tsd-parameter-list">
|
|
263
|
+
<li><span><span class="tsd-kind-parameter">event</span>: <a class="tsd-signature-type tsd-kind-type-parameter" href="#ont">T</a></span>
|
|
264
|
+
<div class="tsd-comment tsd-typography"><p>the event to register for (e.g. 'legStatusUpdate')</p>
|
|
265
|
+
</div></li>
|
|
266
|
+
<li><span><span class="tsd-kind-parameter">callback</span>: <a class="tsd-signature-type tsd-kind-type-parameter" href="#onp">P</a></span>
|
|
267
|
+
<div class="tsd-comment tsd-typography"><p>the callback to register for the event</p>
|
|
268
|
+
</div></li></ul></div>
|
|
269
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">symbol</span></h4><p>a symbol that can be used to unregister the callback</p>
|
|
270
|
+
|
|
271
|
+
<div class="tsd-comment tsd-typography">
|
|
272
|
+
<div class="tsd-tag-example">
|
|
273
|
+
<h4 class="tsd-anchor-link" id="example-4">Example<a href="#example-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const eventHandler = (event: ConversationEvent) => {
|
|
274
|
+
if (event.kind == 'member:invited') {
|
|
275
|
+
console.log(`Member invited: ${event.body.memberId}`);
|
|
276
|
+
} else if (event.kind == 'member:joined') {
|
|
277
|
+
console.log(`Member joined: ${event.body.memberId}`);
|
|
278
|
+
} else if (event.kind == 'member:left') {
|
|
279
|
+
console.log(`Member left: ${event.body.memberId}`);
|
|
280
|
+
} else if (event.kind == 'ephemeral') {
|
|
281
|
+
console.log(`Ephemeral event: ${event.body}`);
|
|
282
|
+
} else if (event.kind == 'custom') {
|
|
283
|
+
console.log(`Custom event: ${event.body}`);
|
|
284
|
+
} else if (event.kind == 'message:text') {
|
|
285
|
+
console.log(`Text message: ${event.body.text}`);
|
|
286
|
+
} else if (event.kind == 'message:custom') {
|
|
287
|
+
console.log(`Custom message: ${event.body.customData}`);
|
|
288
|
+
} else if (event.kind == 'message:image') {
|
|
289
|
+
console.log(`Image message: ${event.body.imageUrl}`);
|
|
290
|
+
} else if (event.kind == 'message:video') {
|
|
291
|
+
console.log(`Video message: ${event.body.videoUrl}`);
|
|
292
|
+
} else if (event.kind == 'message:audio') {
|
|
293
|
+
console.log(`Audio message: ${event.body.audioUrl}`);
|
|
294
|
+
} else if (event.kind == 'message:file') {
|
|
295
|
+
console.log(`File message: ${event.body.fileUrl}`);
|
|
296
|
+
} else if (event.kind == 'message:vcard') {
|
|
297
|
+
console.log(`Vcard message: ${event.body.vcardUrl}`);
|
|
298
|
+
} else if (event.kind == 'message:location') {
|
|
299
|
+
console.log(`Location message: ${event.body.location}`);
|
|
300
|
+
} else if (event.kind == 'message:template') {
|
|
301
|
+
console.log(`Template message: ${event.body.template}`);
|
|
302
|
+
} else if (event.kind == 'event:delete') {
|
|
303
|
+
console.log(`Template message: ${event.body}`);
|
|
304
|
+
} else if (event.kind == 'message:seen') {
|
|
305
|
+
console.log(`Template message: ${event.body}`);
|
|
306
|
+
} else if (event.kind == 'message:delivered') {
|
|
307
|
+
console.log(`Message delivered event: ${event.body}`);
|
|
308
|
+
} else if (event.kind == 'message:rejected') {
|
|
309
|
+
console.log(`Message rejected event ${event.body}`);
|
|
310
|
+
} else if (event.kind == 'message:submitted') {
|
|
311
|
+
console.log(`Message delivered event ${event.body}`);
|
|
312
|
+
} else if (event.kind == 'message:undeliverable') {
|
|
313
|
+
console.log(`Message undeliverable event ${event.body}`);
|
|
314
|
+
} else {
|
|
315
|
+
exhaustiveCheck(event);
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
const listener = client.on('conversationEvent', eventHandler);
|
|
320
|
+
|
|
321
|
+
client.off('conversationEvent', listener);
|
|
322
|
+
</code><button type="button">Copy</button></pre>
|
|
323
|
+
|
|
324
|
+
</div>
|
|
325
|
+
<div class="tsd-tag-remarks">
|
|
326
|
+
<h4 class="tsd-anchor-link" id="remarks-2">Remarks<a href="#remarks-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>Be sure to store the symbol returned by this method so you can unregister the callback later.
|
|
327
|
+
We recommend unregistering callbacks when you no longer need them. See <a href="#off" class="tsd-kind-method">off</a>.</p>
|
|
328
|
+
</div></div></div></li></ul></section>
|
|
329
|
+
<section class="tsd-panel tsd-member">
|
|
330
|
+
<h3 class="tsd-anchor-link" id="setconfig"><span>set<wbr/>Config</span><a href="#setconfig" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
331
|
+
<ul class="tsd-signatures">
|
|
332
|
+
<li class="">
|
|
333
|
+
<div class="tsd-signature tsd-anchor-link" id="setconfig-1"><span class="tsd-kind-call-signature">setConfig</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">config</span><span class="tsd-signature-symbol">:</span> <a href="../types/ClientConfigObject.html" class="tsd-signature-type tsd-kind-type-alias">ClientConfigObject</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#setconfig-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
334
|
+
<div class="tsd-description">
|
|
335
|
+
<div class="tsd-comment tsd-typography"><p>Set a configuration for the client SDK</p>
|
|
336
|
+
</div>
|
|
337
|
+
<div class="tsd-parameters">
|
|
338
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
339
|
+
<ul class="tsd-parameter-list">
|
|
340
|
+
<li><span><span class="tsd-kind-parameter">config</span>: <a href="../types/ClientConfigObject.html" class="tsd-signature-type tsd-kind-type-alias">ClientConfigObject</a></span>
|
|
341
|
+
<div class="tsd-comment tsd-typography"><p>A configuration object</p>
|
|
342
|
+
</div></li></ul></div>
|
|
343
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><p>void</p>
|
|
344
|
+
|
|
345
|
+
<div class="tsd-comment tsd-typography">
|
|
346
|
+
<div class="tsd-tag-example">
|
|
347
|
+
<h4 class="tsd-anchor-link" id="example-5">Example<a href="#example-5" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const config: ClientConfig = new ClientConfig(ConfigRegion.EU);
|
|
348
|
+
config.apiUrl = 'https://api.example.com';
|
|
349
|
+
config.websocketUrl = 'https://ws.example.com';
|
|
350
|
+
config.rtcStatsTelemetry = true;
|
|
351
|
+
config.autoReconnectMedia = false;
|
|
352
|
+
client.setConfig(config);
|
|
353
|
+
// or
|
|
354
|
+
client.setConfig({
|
|
355
|
+
apiUrl: 'https://api.example.com',
|
|
356
|
+
websocketUrl: 'https://ws.example.com',
|
|
357
|
+
region: 'EU'
|
|
358
|
+
});
|
|
359
|
+
</code><button type="button">Copy</button></pre>
|
|
360
|
+
|
|
361
|
+
</div></div><aside class="tsd-sources">
|
|
362
|
+
<p>Overrides vonage.CombinedClientJS.setConfig</p></aside></div></li></ul></section>
|
|
363
|
+
<section class="tsd-panel tsd-member">
|
|
364
|
+
<h3 class="tsd-anchor-link" id="updateconversation"><span>update<wbr/>Conversation</span><a href="#updateconversation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
365
|
+
<ul class="tsd-signatures">
|
|
366
|
+
<li class="">
|
|
367
|
+
<div class="tsd-signature tsd-anchor-link" id="updateconversation-1"><span class="tsd-kind-call-signature">updateConversation</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">conversationId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">parameters</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/UpdateConversationParameters.html" class="tsd-signature-type tsd-kind-interface">UpdateConversationParameters</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/Conversation.html" class="tsd-signature-type tsd-kind-interface">Conversation</a><span class="tsd-signature-symbol">></span><a href="#updateconversation-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
368
|
+
<div class="tsd-description">
|
|
369
|
+
<div class="tsd-comment tsd-typography"><p>Updates a conversation object identified by its unique conversation ID.</p>
|
|
105
370
|
<p>This method overrides the conversation properties to the provided parameters and rest remains as it is.</p>
|
|
106
|
-
</div
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
</div
|
|
113
|
-
|
|
114
|
-
<div class="tsd-comment tsd-typography"><
|
|
115
|
-
</
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
<div class="tsd-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
</code><button>Copy</button></pre>
|
|
133
|
-
|
|
134
|
-
</div
|
|
135
|
-
</
|
|
136
|
-
|
|
137
|
-
<
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<div class="tsd-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
</div
|
|
147
|
-
|
|
148
|
-
<
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
</div
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
</code><button>Copy</button></pre>
|
|
166
|
-
|
|
167
|
-
</div
|
|
168
|
-
</
|
|
169
|
-
|
|
170
|
-
<
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
</
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
</div><aside class="tsd-sources"
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
<
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
</div
|
|
200
|
-
<div class="tsd-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
</div
|
|
206
|
-
<
|
|
207
|
-
|
|
208
|
-
</div
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
<div class="tsd-
|
|
213
|
-
|
|
214
|
-
</
|
|
215
|
-
|
|
216
|
-
</div
|
|
217
|
-
</
|
|
218
|
-
|
|
219
|
-
<
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
</div
|
|
226
|
-
<div class="tsd-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
</div
|
|
232
|
-
<
|
|
233
|
-
|
|
234
|
-
</div
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
<div class="tsd-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
</
|
|
249
|
-
|
|
250
|
-
</div
|
|
251
|
-
</
|
|
252
|
-
<
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
<
|
|
256
|
-
|
|
257
|
-
<div class="tsd-
|
|
258
|
-
|
|
259
|
-
</div
|
|
260
|
-
<div class="tsd-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
<
|
|
264
|
-
|
|
265
|
-
</div
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
</div
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
</
|
|
281
|
-
|
|
282
|
-
</
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
371
|
+
</div>
|
|
372
|
+
<div class="tsd-parameters">
|
|
373
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
374
|
+
<ul class="tsd-parameter-list">
|
|
375
|
+
<li><span><span class="tsd-kind-parameter">conversationId</span>: <span class="tsd-signature-type">string</span></span>
|
|
376
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id.</p>
|
|
377
|
+
</div></li>
|
|
378
|
+
<li><span><span class="tsd-kind-parameter">parameters</span>: <a href="../interfaces/UpdateConversationParameters.html" class="tsd-signature-type tsd-kind-interface">UpdateConversationParameters</a></span>
|
|
379
|
+
<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>
|
|
380
|
+
</div></li></ul></div>
|
|
381
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/Conversation.html" class="tsd-signature-type tsd-kind-interface">Conversation</a><span class="tsd-signature-symbol">></span></h4><p><code>conversation</code>, this object will contain the updated conversation properties if the update is successful.</p>
|
|
382
|
+
|
|
383
|
+
<div class="tsd-comment tsd-typography">
|
|
384
|
+
<div class="tsd-tag-example">
|
|
385
|
+
<h4 class="tsd-anchor-link" id="example-6">Example<a href="#example-6" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const conversation = await client.updateConversation('ConversationID', {
|
|
386
|
+
// Update Name
|
|
387
|
+
name: some('name'),
|
|
388
|
+
// Reset Display Name
|
|
389
|
+
displayName: some(null),
|
|
390
|
+
// Update imageUrl
|
|
391
|
+
imageUrl: 'imageUrl',
|
|
392
|
+
// Leave TTL as is (implicitly via omission)
|
|
393
|
+
// Leave customSortKey as is (explicitly via none)
|
|
394
|
+
customSortKey: none(),
|
|
395
|
+
customData: { key: 'value' }
|
|
396
|
+
});
|
|
397
|
+
</code><button type="button">Copy</button></pre>
|
|
398
|
+
|
|
399
|
+
</div></div><aside class="tsd-sources">
|
|
400
|
+
<p>Overrides vonage.CombinedClientJS.updateConversation</p></aside></div></li></ul></section></section></details>
|
|
401
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Chat"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
402
|
+
<h2 class="tsd-anchor-link" id="chat-1">Chat<a href="#chat-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
403
|
+
<section>
|
|
404
|
+
<section class="tsd-panel tsd-member">
|
|
405
|
+
<h3 class="tsd-anchor-link" id="createconversation"><span>create<wbr/>Conversation</span><a href="#createconversation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
406
|
+
<ul class="tsd-signatures">
|
|
407
|
+
<li class="">
|
|
408
|
+
<div class="tsd-signature tsd-anchor-link" id="createconversation-1"><span class="tsd-kind-call-signature">createConversation</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">parameters</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">Nullable</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/CreateConversationParameters.html" class="tsd-signature-type tsd-kind-interface">CreateConversationParameters</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#createconversation-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
409
|
+
<div class="tsd-description">
|
|
410
|
+
<div class="tsd-comment tsd-typography"><p>Create a conversation</p>
|
|
411
|
+
</div>
|
|
412
|
+
<div class="tsd-parameters">
|
|
413
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
414
|
+
<ul class="tsd-parameter-list">
|
|
415
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">parameters</span>: <span class="tsd-signature-type">Nullable</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/CreateConversationParameters.html" class="tsd-signature-type tsd-kind-interface">CreateConversationParameters</a><span class="tsd-signature-symbol">></span></span>
|
|
416
|
+
<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>
|
|
417
|
+
</div></li></ul></div>
|
|
418
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>cid</code> of the conversation</p>
|
|
419
|
+
|
|
420
|
+
<div class="tsd-comment tsd-typography">
|
|
421
|
+
<div class="tsd-tag-example">
|
|
422
|
+
<h4 class="tsd-anchor-link" id="example-7">Example<a href="#example-7" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const conversationId = await client.createConversation({
|
|
423
|
+
name: 'name',
|
|
424
|
+
displayName: 'displayName',
|
|
425
|
+
imageUrl: 'imageUrl',
|
|
426
|
+
ttl: 60,
|
|
427
|
+
customSortKey: 'customSortKey',
|
|
428
|
+
customData: { key: 'value' }
|
|
429
|
+
});
|
|
430
|
+
</code><button type="button">Copy</button></pre>
|
|
431
|
+
|
|
432
|
+
</div></div><aside class="tsd-sources">
|
|
433
|
+
<p>Overrides vonage.CombinedClientJS.createConversation</p></aside></div></li></ul></section>
|
|
434
|
+
<section class="tsd-panel tsd-member">
|
|
435
|
+
<h3 class="tsd-anchor-link" id="deleteconversation"><span>delete<wbr/>Conversation</span><a href="#deleteconversation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
436
|
+
<ul class="tsd-signatures">
|
|
437
|
+
<li class="">
|
|
438
|
+
<div class="tsd-signature tsd-anchor-link" id="deleteconversation-1"><span class="tsd-kind-call-signature">deleteConversation</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#deleteconversation-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
439
|
+
<div class="tsd-description">
|
|
440
|
+
<div class="tsd-comment tsd-typography"><p>Delete a Conversation</p>
|
|
441
|
+
</div>
|
|
442
|
+
<div class="tsd-parameters">
|
|
443
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
444
|
+
<ul class="tsd-parameter-list">
|
|
445
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
446
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
447
|
+
</div></li></ul></div>
|
|
448
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
449
|
+
|
|
450
|
+
<div class="tsd-comment tsd-typography">
|
|
451
|
+
<div class="tsd-tag-example">
|
|
452
|
+
<h4 class="tsd-anchor-link" id="example-8">Example<a href="#example-8" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">await client.deleteConversation('CONVERSATION_ID');
|
|
453
|
+
</code><button type="button">Copy</button></pre>
|
|
454
|
+
|
|
455
|
+
</div></div><aside class="tsd-sources">
|
|
456
|
+
<p>Overrides vonage.CombinedClientJS.deleteConversation</p></aside></div></li></ul></section>
|
|
457
|
+
<section class="tsd-panel tsd-member">
|
|
458
|
+
<h3 class="tsd-anchor-link" id="deleteevent"><span>delete<wbr/>Event</span><a href="#deleteevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
459
|
+
<ul class="tsd-signatures">
|
|
460
|
+
<li class="">
|
|
461
|
+
<div class="tsd-signature tsd-anchor-link" id="deleteevent-1"><span class="tsd-kind-call-signature">deleteEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">conversationId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#deleteevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
462
|
+
<div class="tsd-description">
|
|
463
|
+
<div class="tsd-comment tsd-typography"><p>Delete an Event in a Conversation</p>
|
|
464
|
+
</div>
|
|
465
|
+
<div class="tsd-parameters">
|
|
466
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
467
|
+
<ul class="tsd-parameter-list">
|
|
468
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">number</span></span>
|
|
469
|
+
<div class="tsd-comment tsd-typography"><p>the id for the Event to be deleted</p>
|
|
470
|
+
</div></li>
|
|
471
|
+
<li><span><span class="tsd-kind-parameter">conversationId</span>: <span class="tsd-signature-type">string</span></span>
|
|
472
|
+
<div class="tsd-comment tsd-typography"><p>the id for the conversation, the event belongs to.</p>
|
|
473
|
+
</div></li></ul></div>
|
|
474
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
475
|
+
|
|
476
|
+
<div class="tsd-comment tsd-typography">
|
|
477
|
+
<div class="tsd-tag-example">
|
|
478
|
+
<h4 class="tsd-anchor-link" id="example-9">Example<a href="#example-9" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">await client.deleteEvent(123, 'CONVERSATION_ID');
|
|
479
|
+
</code><button type="button">Copy</button></pre>
|
|
480
|
+
|
|
481
|
+
</div></div><aside class="tsd-sources">
|
|
482
|
+
<p>Overrides vonage.CombinedClientJS.deleteEvent</p></aside></div></li></ul></section>
|
|
483
|
+
<section class="tsd-panel tsd-member">
|
|
484
|
+
<h3 class="tsd-anchor-link" id="getconversationevents"><span>get<wbr/>Conversation<wbr/>Events</span><a href="#getconversationevents" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
485
|
+
<ul class="tsd-signatures">
|
|
486
|
+
<li class="">
|
|
487
|
+
<div class="tsd-signature tsd-anchor-link" id="getconversationevents-1"><span class="tsd-kind-call-signature">getConversationEvents</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">parameters</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">Nullable</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/GetConversationEventsParameters.html" class="tsd-signature-type tsd-kind-interface">GetConversationEventsParameters</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/EventsPage.html" class="tsd-signature-type tsd-kind-interface">EventsPage</a><span class="tsd-signature-symbol">></span><a href="#getconversationevents-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
488
|
+
<div class="tsd-description">
|
|
489
|
+
<div class="tsd-comment tsd-typography"><p>Get a Conversation's Events</p>
|
|
490
|
+
</div>
|
|
491
|
+
<div class="tsd-parameters">
|
|
492
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
493
|
+
<ul class="tsd-parameter-list">
|
|
494
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
495
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
496
|
+
</div></li>
|
|
497
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">parameters</span>: <span class="tsd-signature-type">Nullable</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/GetConversationEventsParameters.html" class="tsd-signature-type tsd-kind-interface">GetConversationEventsParameters</a><span class="tsd-signature-symbol">></span></span>
|
|
498
|
+
<div class="tsd-comment tsd-typography"><p>A <a href="../interfaces/GetConversationEventsParameters.html" class="tsd-kind-interface">GetConversationEventsParameters</a> object containing the parameters for the request.</p>
|
|
499
|
+
</div></li></ul></div>
|
|
500
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/EventsPage.html" class="tsd-signature-type tsd-kind-interface">EventsPage</a><span class="tsd-signature-symbol">></span></h4><p>a <a href="../interfaces/EventsPage.html" class="tsd-kind-interface">EventsPage</a> containing the events</p>
|
|
501
|
+
|
|
502
|
+
<div class="tsd-comment tsd-typography">
|
|
503
|
+
<div class="tsd-tag-example">
|
|
504
|
+
<h4 class="tsd-anchor-link" id="example-10">Example<a href="#example-10" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const { events, nextCursor, previousCursor } =
|
|
505
|
+
await client.getConversationEvents('CONVERSATION_ID', {
|
|
506
|
+
order: PresentingOrder.DESC,
|
|
507
|
+
pageSize: 10,
|
|
508
|
+
cursor: undefined,
|
|
509
|
+
eventFilter: ['message', 'member:joined'], // event filter query
|
|
510
|
+
includeDeletedEvents: false,
|
|
511
|
+
startId: 3 // start event id
|
|
512
|
+
});
|
|
513
|
+
</code><button type="button">Copy</button></pre>
|
|
514
|
+
|
|
515
|
+
</div></div><aside class="tsd-sources">
|
|
516
|
+
<p>Overrides vonage.CombinedClientJS.getConversationEvents</p></aside></div></li></ul></section>
|
|
517
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
518
|
+
<h3 class="tsd-anchor-link" id="getconversationmember"><span>get<wbr/>Conversation<wbr/>Member</span><a href="#getconversationmember" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
519
|
+
<ul class="tsd-signatures tsd-is-inherited">
|
|
520
|
+
<li class="tsd-is-inherited">
|
|
521
|
+
<div class="tsd-signature tsd-anchor-link" id="getconversationmember-1"><span class="tsd-kind-call-signature">getConversationMember</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">cid</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">mid</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><a href="../interfaces/Member.html" class="tsd-signature-type tsd-kind-interface">Member</a><span class="tsd-signature-symbol">></span><a href="#getconversationmember-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
522
|
+
<div class="tsd-description">
|
|
523
|
+
<div class="tsd-comment tsd-typography"><p>Get a Member of a Conversation</p>
|
|
524
|
+
</div>
|
|
525
|
+
<div class="tsd-parameters">
|
|
526
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
527
|
+
<ul class="tsd-parameter-list">
|
|
528
|
+
<li><span><span class="tsd-kind-parameter">cid</span>: <span class="tsd-signature-type">string</span></span>
|
|
529
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
530
|
+
</div></li>
|
|
531
|
+
<li><span><span class="tsd-kind-parameter">mid</span>: <span class="tsd-signature-type">string</span></span>
|
|
532
|
+
<div class="tsd-comment tsd-typography"><p>the Member's id</p>
|
|
533
|
+
</div></li></ul></div>
|
|
534
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/Member.html" class="tsd-signature-type tsd-kind-interface">Member</a><span class="tsd-signature-symbol">></span></h4><p>the <code>Member</code></p>
|
|
535
|
+
|
|
536
|
+
<div class="tsd-comment tsd-typography">
|
|
537
|
+
<div class="tsd-tag-example">
|
|
538
|
+
<h4 class="tsd-anchor-link" id="example-11">Example<a href="#example-11" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const { id, state, channel } = await client.getConversationMember(
|
|
539
|
+
'CONVERSATION_ID',
|
|
540
|
+
'MEMBER_ID'
|
|
541
|
+
);
|
|
542
|
+
console.log(
|
|
543
|
+
`Member ID: ${id}, State: ${state}, Channel Type: ${channel?.type}`
|
|
544
|
+
);
|
|
545
|
+
</code><button type="button">Copy</button></pre>
|
|
546
|
+
|
|
547
|
+
</div></div><aside class="tsd-sources">
|
|
548
|
+
<p>Inherited from vonage.CombinedClientJS.getConversationMember</p></aside></div></li></ul></section>
|
|
549
|
+
<section class="tsd-panel tsd-member">
|
|
550
|
+
<h3 class="tsd-anchor-link" id="getconversationmembers"><span>get<wbr/>Conversation<wbr/>Members</span><a href="#getconversationmembers" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
551
|
+
<ul class="tsd-signatures">
|
|
552
|
+
<li class="">
|
|
553
|
+
<div class="tsd-signature tsd-anchor-link" id="getconversationmembers-1"><span class="tsd-kind-call-signature">getConversationMembers</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">parameters</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">Nullable</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/GetConversationMembersParameters.html" class="tsd-signature-type tsd-kind-interface">GetConversationMembersParameters</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/MembersPage.html" class="tsd-signature-type tsd-kind-interface">MembersPage</a><span class="tsd-signature-symbol">></span><a href="#getconversationmembers-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
554
|
+
<div class="tsd-description">
|
|
555
|
+
<div class="tsd-comment tsd-typography"><p>Get a Conversation's Members</p>
|
|
556
|
+
</div>
|
|
557
|
+
<div class="tsd-parameters">
|
|
558
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
559
|
+
<ul class="tsd-parameter-list">
|
|
560
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
561
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
562
|
+
</div></li>
|
|
563
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">parameters</span>: <span class="tsd-signature-type">Nullable</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/GetConversationMembersParameters.html" class="tsd-signature-type tsd-kind-interface">GetConversationMembersParameters</a><span class="tsd-signature-symbol">></span></span>
|
|
564
|
+
<div class="tsd-comment tsd-typography"><p>A <a href="../interfaces/GetConversationMembersParameters.html" class="tsd-kind-interface">GetConversationMembersParameters</a> object containing the parameters for the request.</p>
|
|
565
|
+
</div></li></ul></div>
|
|
566
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/MembersPage.html" class="tsd-signature-type tsd-kind-interface">MembersPage</a><span class="tsd-signature-symbol">></span></h4><p>a <code>MembersPage</code> containing the members</p>
|
|
567
|
+
|
|
568
|
+
<div class="tsd-comment tsd-typography">
|
|
569
|
+
<div class="tsd-tag-example">
|
|
570
|
+
<h4 class="tsd-anchor-link" id="example-12">Example<a href="#example-12" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const { members, nextCursor, previousCursor } =
|
|
571
|
+
await client.getConversationMembers('CONVERSATION_ID', {
|
|
572
|
+
order: PresentingOrder.ASC,
|
|
573
|
+
pageSize: 10
|
|
574
|
+
});
|
|
575
|
+
</code><button type="button">Copy</button></pre>
|
|
576
|
+
|
|
577
|
+
</div></div><aside class="tsd-sources">
|
|
578
|
+
<p>Overrides vonage.CombinedClientJS.getConversationMembers</p></aside></div></li></ul></section>
|
|
579
|
+
<section class="tsd-panel tsd-member">
|
|
580
|
+
<h3 class="tsd-anchor-link" id="getconversations"><span>get<wbr/>Conversations</span><a href="#getconversations" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
581
|
+
<ul class="tsd-signatures">
|
|
582
|
+
<li class="">
|
|
583
|
+
<div class="tsd-signature tsd-anchor-link" id="getconversations-1"><span class="tsd-kind-call-signature">getConversations</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">parameters</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">Nullable</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/GetConversationsParameters.html" class="tsd-signature-type tsd-kind-interface">GetConversationsParameters</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/ConversationsPage.html" class="tsd-signature-type tsd-kind-interface">ConversationsPage</a><span class="tsd-signature-symbol">></span><a href="#getconversations-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
584
|
+
<div class="tsd-description">
|
|
585
|
+
<div class="tsd-comment tsd-typography"><p>Get a list of Conversations for the user.</p>
|
|
586
|
+
</div>
|
|
587
|
+
<div class="tsd-parameters">
|
|
588
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
589
|
+
<ul class="tsd-parameter-list">
|
|
590
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">parameters</span>: <span class="tsd-signature-type">Nullable</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/GetConversationsParameters.html" class="tsd-signature-type tsd-kind-interface">GetConversationsParameters</a><span class="tsd-signature-symbol">></span></span>
|
|
591
|
+
<div class="tsd-comment tsd-typography"><p>A <a href="../interfaces/GetConversationsParameters.html" class="tsd-kind-interface">GetConversationsParameters</a> object containing the parameters for the request.</p>
|
|
592
|
+
</div></li></ul></div>
|
|
593
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/ConversationsPage.html" class="tsd-signature-type tsd-kind-interface">ConversationsPage</a><span class="tsd-signature-symbol">></span></h4><p>a <code>ConversationsPage</code> containing the conversations</p>
|
|
594
|
+
|
|
595
|
+
<div class="tsd-comment tsd-typography">
|
|
596
|
+
<div class="tsd-tag-example">
|
|
597
|
+
<h4 class="tsd-anchor-link" id="example-13">Example<a href="#example-13" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const { conversations, nextCursor, previousCursor } =
|
|
598
|
+
await client.getConversations({
|
|
599
|
+
order: PresentingOrder.DESC,
|
|
600
|
+
pageSize: 10,
|
|
601
|
+
cursor: undefined,
|
|
602
|
+
includeCustomData: true,
|
|
603
|
+
orderBy: OrderBy.CUSTOM_SORT_KEY
|
|
604
|
+
});
|
|
605
|
+
</code><button type="button">Copy</button></pre>
|
|
606
|
+
|
|
607
|
+
</div></div><aside class="tsd-sources">
|
|
608
|
+
<p>Overrides vonage.CombinedClientJS.getConversations</p></aside></div></li></ul></section>
|
|
609
|
+
<section class="tsd-panel tsd-member">
|
|
610
|
+
<h3 class="tsd-anchor-link" id="invitetoconversation"><span>invite<wbr/>To<wbr/>Conversation</span><a href="#invitetoconversation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
611
|
+
<ul class="tsd-signatures">
|
|
612
|
+
<li class="">
|
|
613
|
+
<div class="tsd-signature tsd-anchor-link" id="invitetoconversation-1"><span class="tsd-kind-call-signature">inviteToConversation</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#invitetoconversation-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
614
|
+
<div class="tsd-description">
|
|
615
|
+
<div class="tsd-comment tsd-typography"><p>Invite a user to a Conversation by user's <code>name</code></p>
|
|
616
|
+
</div>
|
|
617
|
+
<div class="tsd-parameters">
|
|
618
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
619
|
+
<ul class="tsd-parameter-list">
|
|
620
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
621
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
622
|
+
</div></li>
|
|
623
|
+
<li><span><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></span>
|
|
624
|
+
<div class="tsd-comment tsd-typography"><p>the name of the user to invite</p>
|
|
625
|
+
</div></li></ul></div>
|
|
626
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>memberId</code> of the member</p>
|
|
627
|
+
|
|
628
|
+
<div class="tsd-comment tsd-typography">
|
|
629
|
+
<div class="tsd-tag-example">
|
|
630
|
+
<h4 class="tsd-anchor-link" id="example-14">Example<a href="#example-14" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const memberId = await client.inviteToConversation(
|
|
631
|
+
'CONVERSATION_ID',
|
|
632
|
+
'USERNAME'
|
|
633
|
+
);
|
|
634
|
+
</code><button type="button">Copy</button></pre>
|
|
635
|
+
|
|
636
|
+
</div></div><aside class="tsd-sources">
|
|
637
|
+
<p>Overrides vonage.CombinedClientJS.inviteToConversation</p></aside></div></li></ul></section>
|
|
638
|
+
<section class="tsd-panel tsd-member">
|
|
639
|
+
<h3 class="tsd-anchor-link" id="joinconversation"><span>join<wbr/>Conversation</span><a href="#joinconversation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
640
|
+
<ul class="tsd-signatures">
|
|
641
|
+
<li class="">
|
|
642
|
+
<div class="tsd-signature tsd-anchor-link" id="joinconversation-1"><span class="tsd-kind-call-signature">joinConversation</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#joinconversation-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
643
|
+
<div class="tsd-description">
|
|
644
|
+
<div class="tsd-comment tsd-typography"><p>Join a Conversation</p>
|
|
645
|
+
</div>
|
|
646
|
+
<div class="tsd-parameters">
|
|
647
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
648
|
+
<ul class="tsd-parameter-list">
|
|
649
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
650
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
651
|
+
</div></li></ul></div>
|
|
652
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>memberId</code> of the member</p>
|
|
653
|
+
|
|
654
|
+
<div class="tsd-comment tsd-typography">
|
|
655
|
+
<div class="tsd-tag-example">
|
|
656
|
+
<h4 class="tsd-anchor-link" id="example-15">Example<a href="#example-15" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const memberId = await client.joinConversation('CONVERSATION_ID');
|
|
657
|
+
</code><button type="button">Copy</button></pre>
|
|
658
|
+
|
|
659
|
+
</div></div><aside class="tsd-sources">
|
|
660
|
+
<p>Overrides vonage.CombinedClientJS.joinConversation</p></aside></div></li></ul></section>
|
|
661
|
+
<section class="tsd-panel tsd-member">
|
|
662
|
+
<h3 class="tsd-anchor-link" id="leaveconversation"><span>leave<wbr/>Conversation</span><a href="#leaveconversation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
663
|
+
<ul class="tsd-signatures">
|
|
664
|
+
<li class="">
|
|
665
|
+
<div class="tsd-signature tsd-anchor-link" id="leaveconversation-1"><span class="tsd-kind-call-signature">leaveConversation</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#leaveconversation-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
666
|
+
<div class="tsd-description">
|
|
667
|
+
<div class="tsd-comment tsd-typography"><p>Leave a Conversation</p>
|
|
668
|
+
</div>
|
|
669
|
+
<div class="tsd-parameters">
|
|
670
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
671
|
+
<ul class="tsd-parameter-list">
|
|
672
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
673
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
674
|
+
</div></li></ul></div>
|
|
675
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
676
|
+
|
|
677
|
+
<div class="tsd-comment tsd-typography">
|
|
678
|
+
<div class="tsd-tag-example">
|
|
679
|
+
<h4 class="tsd-anchor-link" id="example-16">Example<a href="#example-16" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">await client.leaveConversation('CONVERSATION_ID');
|
|
680
|
+
</code><button type="button">Copy</button></pre>
|
|
681
|
+
|
|
682
|
+
</div></div><aside class="tsd-sources">
|
|
683
|
+
<p>Overrides vonage.CombinedClientJS.leaveConversation</p></aside></div></li></ul></section>
|
|
684
|
+
<section class="tsd-panel tsd-member">
|
|
685
|
+
<h3 class="tsd-anchor-link" id="sendcustomevent"><span>send<wbr/>Custom<wbr/>Event</span><a href="#sendcustomevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
686
|
+
<ul class="tsd-signatures">
|
|
687
|
+
<li class="">
|
|
688
|
+
<div class="tsd-signature tsd-anchor-link" id="sendcustomevent-1"><span class="tsd-kind-call-signature">sendCustomEvent</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">eventType</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">customData</span><span class="tsd-signature-symbol">:</span> <a href="../types/CustomData.html" class="tsd-signature-type tsd-kind-type-alias">CustomData</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#sendcustomevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
689
|
+
<div class="tsd-description">
|
|
690
|
+
<div class="tsd-comment tsd-typography"><p>Send a Custom event to a Conversation</p>
|
|
691
|
+
</div>
|
|
692
|
+
<div class="tsd-parameters">
|
|
693
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
694
|
+
<ul class="tsd-parameter-list">
|
|
695
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
696
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
697
|
+
</div></li>
|
|
698
|
+
<li><span><span class="tsd-kind-parameter">eventType</span>: <span class="tsd-signature-type">string</span></span></li>
|
|
699
|
+
<li><span><span class="tsd-kind-parameter">customData</span>: <a href="../types/CustomData.html" class="tsd-signature-type tsd-kind-type-alias">CustomData</a></span>
|
|
700
|
+
<div class="tsd-comment tsd-typography"><p>the body of the event</p>
|
|
701
|
+
</div></li></ul></div>
|
|
702
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>timestamp</code> of the message</p>
|
|
703
|
+
|
|
704
|
+
<div class="tsd-comment tsd-typography">
|
|
705
|
+
<div class="tsd-tag-example">
|
|
706
|
+
<h4 class="tsd-anchor-link" id="example-17">Example<a href="#example-17" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const customData = {
|
|
707
|
+
key1: 'val1',
|
|
708
|
+
key2: 'val2'
|
|
709
|
+
};
|
|
710
|
+
|
|
711
|
+
const timestamp = await client.sendCustomEvent(
|
|
712
|
+
'CONVERSATION_ID',
|
|
713
|
+
'custom:test',
|
|
714
|
+
customData // or JSON.stringify(customData)
|
|
715
|
+
);
|
|
716
|
+
</code><button type="button">Copy</button></pre>
|
|
717
|
+
|
|
718
|
+
</div></div><aside class="tsd-sources">
|
|
719
|
+
<p>Overrides vonage.CombinedClientJS.sendCustomEvent</p></aside></div></li></ul></section>
|
|
720
|
+
<section class="tsd-panel tsd-member">
|
|
721
|
+
<h3 class="tsd-anchor-link" id="sendephemeralevent"><span>send<wbr/>Ephemeral<wbr/>Event</span><a href="#sendephemeralevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
722
|
+
<ul class="tsd-signatures">
|
|
723
|
+
<li class="">
|
|
724
|
+
<div class="tsd-signature tsd-anchor-link" id="sendephemeralevent-1"><span class="tsd-kind-call-signature">sendEphemeralEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">customData</span><span class="tsd-signature-symbol">:</span> <a href="../types/CustomData.html" class="tsd-signature-type tsd-kind-type-alias">CustomData</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#sendephemeralevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
725
|
+
<div class="tsd-description">
|
|
726
|
+
<div class="tsd-comment tsd-typography"><p>Send an ephemeral event to a Conversation</p>
|
|
727
|
+
</div>
|
|
728
|
+
<div class="tsd-parameters">
|
|
729
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
730
|
+
<ul class="tsd-parameter-list">
|
|
731
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
732
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
733
|
+
</div></li>
|
|
734
|
+
<li><span><span class="tsd-kind-parameter">customData</span>: <a href="../types/CustomData.html" class="tsd-signature-type tsd-kind-type-alias">CustomData</a></span>
|
|
735
|
+
<div class="tsd-comment tsd-typography"><p>the body of the event</p>
|
|
736
|
+
</div></li></ul></div>
|
|
737
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>timestamp</code> of the message</p>
|
|
738
|
+
|
|
739
|
+
<div class="tsd-comment tsd-typography">
|
|
740
|
+
<div class="tsd-tag-example">
|
|
741
|
+
<h4 class="tsd-anchor-link" id="example-18">Example<a href="#example-18" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const memberId = 'MEMBER_ID';
|
|
742
|
+
const readMessageEvent = {
|
|
743
|
+
type: `${memberId}:readUpdate`,
|
|
744
|
+
eventId: 'EVENT_ID',
|
|
745
|
+
timestamp: 'TIMESTAMP'
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
const timestamp = await client.sendEphemeralEvent(
|
|
749
|
+
'CONVERSATION_ID',
|
|
750
|
+
readMessageEvent // or JSON.stringify(readMessageEvent)
|
|
751
|
+
);
|
|
752
|
+
</code><button type="button">Copy</button></pre>
|
|
753
|
+
|
|
754
|
+
</div></div><aside class="tsd-sources">
|
|
755
|
+
<p>Overrides vonage.CombinedClientJS.sendEphemeralEvent</p></aside></div></li></ul></section>
|
|
756
|
+
<section class="tsd-panel tsd-member">
|
|
757
|
+
<h3 class="tsd-anchor-link" id="sendmessageaudioevent"><span>send<wbr/>Message<wbr/>Audio<wbr/>Event</span><a href="#sendmessageaudioevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
758
|
+
<ul class="tsd-signatures">
|
|
759
|
+
<li class="">
|
|
760
|
+
<div class="tsd-signature tsd-anchor-link" id="sendmessageaudioevent-1"><span class="tsd-kind-call-signature">sendMessageAudioEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">audioUrl</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">URL</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"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#sendmessageaudioevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
761
|
+
<div class="tsd-description">
|
|
762
|
+
<div class="tsd-comment tsd-typography"><p>Send a audio message to a Conversation.</p>
|
|
763
|
+
</div>
|
|
764
|
+
<div class="tsd-parameters">
|
|
765
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
766
|
+
<ul class="tsd-parameter-list">
|
|
767
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
768
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
769
|
+
</div></li>
|
|
770
|
+
<li><span><span class="tsd-kind-parameter">audioUrl</span>: <span class="tsd-signature-type">URL</span></span>
|
|
771
|
+
<div class="tsd-comment tsd-typography"><p>the url of the audio resource.</p>
|
|
772
|
+
</div></li></ul></div>
|
|
773
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>timestamp</code> of the message</p>
|
|
774
|
+
|
|
775
|
+
<div class="tsd-comment tsd-typography">
|
|
776
|
+
<div class="tsd-tag-example">
|
|
777
|
+
<h4 class="tsd-anchor-link" id="example-19">Example<a href="#example-19" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const timestamp = await client.sendMessageAudioEvent(
|
|
778
|
+
'CONVERSATION_ID',
|
|
779
|
+
audioURL
|
|
780
|
+
);
|
|
781
|
+
</code><button type="button">Copy</button></pre>
|
|
782
|
+
|
|
783
|
+
</div></div><aside class="tsd-sources">
|
|
784
|
+
<p>Overrides vonage.CombinedClientJS.sendMessageAudioEvent</p></aside></div></li></ul></section>
|
|
785
|
+
<section class="tsd-panel tsd-member">
|
|
786
|
+
<h3 class="tsd-anchor-link" id="sendmessagecustomevent"><span>send<wbr/>Message<wbr/>Custom<wbr/>Event</span><a href="#sendmessagecustomevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
787
|
+
<ul class="tsd-signatures">
|
|
788
|
+
<li class="">
|
|
789
|
+
<div class="tsd-signature tsd-anchor-link" id="sendmessagecustomevent-1"><span class="tsd-kind-call-signature">sendMessageCustomEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">customData</span><span class="tsd-signature-symbol">:</span> <a href="../types/CustomData.html" class="tsd-signature-type tsd-kind-type-alias">CustomData</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#sendmessagecustomevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
790
|
+
<div class="tsd-description">
|
|
791
|
+
<div class="tsd-comment tsd-typography"><p>Send a custom message to a Conversation</p>
|
|
792
|
+
</div>
|
|
793
|
+
<div class="tsd-parameters">
|
|
794
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
795
|
+
<ul class="tsd-parameter-list">
|
|
796
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
797
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
798
|
+
</div></li>
|
|
799
|
+
<li><span><span class="tsd-kind-parameter">customData</span>: <a href="../types/CustomData.html" class="tsd-signature-type tsd-kind-type-alias">CustomData</a></span>
|
|
800
|
+
<div class="tsd-comment tsd-typography"><p>the body of the message</p>
|
|
801
|
+
</div></li></ul></div>
|
|
802
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>timestamp</code> of the message</p>
|
|
803
|
+
|
|
804
|
+
<div class="tsd-comment tsd-typography">
|
|
805
|
+
<div class="tsd-tag-example">
|
|
806
|
+
<h4 class="tsd-anchor-link" id="example-20">Example<a href="#example-20" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const attachmentPayload = {
|
|
807
|
+
attachment: {
|
|
808
|
+
payload: {
|
|
809
|
+
buttons: [
|
|
810
|
+
{
|
|
811
|
+
payload: '{"<cid>": "$","action": "connect","mid": "<mid>"}',
|
|
812
|
+
title: 'Connect to an agent',
|
|
813
|
+
type: 'postback'
|
|
814
|
+
}
|
|
815
|
+
],
|
|
816
|
+
template_type: 'button',
|
|
817
|
+
text: "Hi, My name is Chatbot, Welcome to my chatbot's corner. How can We help you"
|
|
818
|
+
},
|
|
819
|
+
type: 'template'
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
const timestamp = await client.sendMessageCustomEvent(
|
|
824
|
+
'CONVERSATION_ID',
|
|
825
|
+
attachmentPayload // or JSON.stringify(attachmentPayload)
|
|
826
|
+
);
|
|
827
|
+
</code><button type="button">Copy</button></pre>
|
|
828
|
+
|
|
829
|
+
</div></div><aside class="tsd-sources">
|
|
830
|
+
<p>Overrides vonage.CombinedClientJS.sendMessageCustomEvent</p></aside></div></li></ul></section>
|
|
831
|
+
<section class="tsd-panel tsd-member">
|
|
832
|
+
<h3 class="tsd-anchor-link" id="sendmessagefileevent"><span>send<wbr/>Message<wbr/>File<wbr/>Event</span><a href="#sendmessagefileevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
833
|
+
<ul class="tsd-signatures">
|
|
834
|
+
<li class="">
|
|
835
|
+
<div class="tsd-signature tsd-anchor-link" id="sendmessagefileevent-1"><span class="tsd-kind-call-signature">sendMessageFileEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">fileUrl</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">URL</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"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#sendmessagefileevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
836
|
+
<div class="tsd-description">
|
|
837
|
+
<div class="tsd-comment tsd-typography"><p>Send a file message to a Conversation.</p>
|
|
838
|
+
</div>
|
|
839
|
+
<div class="tsd-parameters">
|
|
840
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
841
|
+
<ul class="tsd-parameter-list">
|
|
842
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
843
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
844
|
+
</div></li>
|
|
845
|
+
<li><span><span class="tsd-kind-parameter">fileUrl</span>: <span class="tsd-signature-type">URL</span></span>
|
|
846
|
+
<div class="tsd-comment tsd-typography"><p>the url of the file resource.</p>
|
|
847
|
+
</div></li></ul></div>
|
|
848
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>timestamp</code> of the message</p>
|
|
849
|
+
|
|
850
|
+
<div class="tsd-comment tsd-typography">
|
|
851
|
+
<div class="tsd-tag-example">
|
|
852
|
+
<h4 class="tsd-anchor-link" id="example-21">Example<a href="#example-21" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const timestamp = await client.sendMessageFileEvent(
|
|
853
|
+
'CONVERSATION_ID',
|
|
854
|
+
fileURL
|
|
855
|
+
);
|
|
856
|
+
</code><button type="button">Copy</button></pre>
|
|
857
|
+
|
|
858
|
+
</div></div><aside class="tsd-sources">
|
|
859
|
+
<p>Overrides vonage.CombinedClientJS.sendMessageFileEvent</p></aside></div></li></ul></section>
|
|
860
|
+
<section class="tsd-panel tsd-member">
|
|
861
|
+
<h3 class="tsd-anchor-link" id="sendmessageimageevent"><span>send<wbr/>Message<wbr/>Image<wbr/>Event</span><a href="#sendmessageimageevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
862
|
+
<ul class="tsd-signatures">
|
|
863
|
+
<li class="">
|
|
864
|
+
<div class="tsd-signature tsd-anchor-link" id="sendmessageimageevent-1"><span class="tsd-kind-call-signature">sendMessageImageEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">imageUrl</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">URL</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"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#sendmessageimageevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
865
|
+
<div class="tsd-description">
|
|
866
|
+
<div class="tsd-comment tsd-typography"><p>Send a Image message to a Conversation.</p>
|
|
867
|
+
</div>
|
|
868
|
+
<div class="tsd-parameters">
|
|
869
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
870
|
+
<ul class="tsd-parameter-list">
|
|
871
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
872
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
873
|
+
</div></li>
|
|
874
|
+
<li><span><span class="tsd-kind-parameter">imageUrl</span>: <span class="tsd-signature-type">URL</span></span>
|
|
875
|
+
<div class="tsd-comment tsd-typography"><p>the url of the image resource.</p>
|
|
876
|
+
</div></li></ul></div>
|
|
877
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>timestamp</code> of the message</p>
|
|
878
|
+
|
|
879
|
+
<div class="tsd-comment tsd-typography">
|
|
880
|
+
<div class="tsd-tag-example">
|
|
881
|
+
<h4 class="tsd-anchor-link" id="example-22">Example<a href="#example-22" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const timestamp = await client.sendMessageImageEvent(
|
|
882
|
+
'CONVERSATION_ID',
|
|
883
|
+
imageUrl
|
|
884
|
+
);
|
|
885
|
+
</code><button type="button">Copy</button></pre>
|
|
886
|
+
|
|
887
|
+
</div></div><aside class="tsd-sources">
|
|
888
|
+
<p>Overrides vonage.CombinedClientJS.sendMessageImageEvent</p></aside></div></li></ul></section>
|
|
889
|
+
<section class="tsd-panel tsd-member">
|
|
890
|
+
<h3 class="tsd-anchor-link" id="sendmessagelocationevent"><span>send<wbr/>Message<wbr/>Location<wbr/>Event</span><a href="#sendmessagelocationevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
891
|
+
<ul class="tsd-signatures">
|
|
892
|
+
<li class="">
|
|
893
|
+
<div class="tsd-signature tsd-anchor-link" id="sendmessagelocationevent-1"><span class="tsd-kind-call-signature">sendMessageLocationEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">location</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/Location.html" class="tsd-signature-type tsd-kind-interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#sendmessagelocationevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
894
|
+
<div class="tsd-description">
|
|
895
|
+
<div class="tsd-comment tsd-typography"><p>Send a Location message to a Conversation.</p>
|
|
896
|
+
</div>
|
|
897
|
+
<div class="tsd-parameters">
|
|
898
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
899
|
+
<ul class="tsd-parameter-list">
|
|
900
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
901
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
902
|
+
</div></li>
|
|
903
|
+
<li><span><span class="tsd-kind-parameter">location</span>: <a href="../interfaces/Location.html" class="tsd-signature-type tsd-kind-interface">Location</a></span>
|
|
904
|
+
<div class="tsd-comment tsd-typography"><p>the description of the location.</p>
|
|
905
|
+
</div></li></ul></div>
|
|
906
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>timestamp</code> of the message</p>
|
|
907
|
+
|
|
908
|
+
<div class="tsd-comment tsd-typography">
|
|
909
|
+
<div class="tsd-tag-example">
|
|
910
|
+
<h4 class="tsd-anchor-link" id="example-23">Example<a href="#example-23" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const timestamp = await client.sendMessageLocationEvent('CONVERSATION_ID', {
|
|
911
|
+
latitude: 'LATITUDE',
|
|
912
|
+
longitude: 'LONGITUDE',
|
|
913
|
+
name: 'Name', //optional
|
|
914
|
+
address: 'Address' //optional
|
|
915
|
+
});
|
|
916
|
+
</code><button type="button">Copy</button></pre>
|
|
917
|
+
|
|
918
|
+
</div></div><aside class="tsd-sources">
|
|
919
|
+
<p>Overrides vonage.CombinedClientJS.sendMessageLocationEvent</p></aside></div></li></ul></section>
|
|
920
|
+
<section class="tsd-panel tsd-member">
|
|
921
|
+
<h3 class="tsd-anchor-link" id="sendmessageseenevent"><span>send<wbr/>Message<wbr/>Seen<wbr/>Event</span><a href="#sendmessageseenevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
922
|
+
<ul class="tsd-signatures">
|
|
923
|
+
<li class="">
|
|
924
|
+
<div class="tsd-signature tsd-anchor-link" id="sendmessageseenevent-1"><span class="tsd-kind-call-signature">sendMessageSeenEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">conversationId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#sendmessageseenevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
925
|
+
<div class="tsd-description">
|
|
926
|
+
<div class="tsd-comment tsd-typography"><p>Send a message seen event to a Conversation</p>
|
|
927
|
+
</div>
|
|
928
|
+
<div class="tsd-parameters">
|
|
929
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
930
|
+
<ul class="tsd-parameter-list">
|
|
931
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">number</span></span>
|
|
932
|
+
<div class="tsd-comment tsd-typography"><p>the event id</p>
|
|
933
|
+
</div></li>
|
|
934
|
+
<li><span><span class="tsd-kind-parameter">conversationId</span>: <span class="tsd-signature-type">string</span></span>
|
|
935
|
+
<div class="tsd-comment tsd-typography"><p>the conversation id</p>
|
|
936
|
+
</div></li></ul></div>
|
|
937
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>timestamp</code> of the message</p>
|
|
938
|
+
|
|
939
|
+
<div class="tsd-comment tsd-typography">
|
|
940
|
+
<div class="tsd-tag-example">
|
|
941
|
+
<h4 class="tsd-anchor-link" id="example-24">Example<a href="#example-24" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const eventId = 0;
|
|
942
|
+
|
|
943
|
+
const timestamp = await client.sendMessageSeenEvent(
|
|
944
|
+
eventId,
|
|
945
|
+
'conversation_id'
|
|
946
|
+
);
|
|
947
|
+
</code><button type="button">Copy</button></pre>
|
|
948
|
+
|
|
949
|
+
</div></div><aside class="tsd-sources">
|
|
950
|
+
<p>Overrides vonage.CombinedClientJS.sendMessageSeenEvent</p></aside></div></li></ul></section>
|
|
951
|
+
<section class="tsd-panel tsd-member">
|
|
952
|
+
<h3 class="tsd-anchor-link" id="sendmessagetemplateevent"><span>send<wbr/>Message<wbr/>Template<wbr/>Event</span><a href="#sendmessagetemplateevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
953
|
+
<ul class="tsd-signatures">
|
|
954
|
+
<li class="">
|
|
955
|
+
<div class="tsd-signature tsd-anchor-link" id="sendmessagetemplateevent-1"><span class="tsd-kind-call-signature">sendMessageTemplateEvent</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">templateObject</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/Template.html" class="tsd-signature-type tsd-kind-interface">Template</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">whatsappObject</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/Whatsapp.html" class="tsd-signature-type tsd-kind-interface">Whatsapp</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#sendmessagetemplateevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
956
|
+
<div class="tsd-description">
|
|
957
|
+
<div class="tsd-comment tsd-typography"><p>Send a template message to a Conversation.</p>
|
|
958
|
+
</div>
|
|
959
|
+
<div class="tsd-parameters">
|
|
960
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
961
|
+
<ul class="tsd-parameter-list">
|
|
962
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
963
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
964
|
+
</div></li>
|
|
965
|
+
<li><span><span class="tsd-kind-parameter">templateObject</span>: <a href="../interfaces/Template.html" class="tsd-signature-type tsd-kind-interface">Template</a></span>
|
|
966
|
+
<div class="tsd-comment tsd-typography"><p>the description(name and paramters) of the template.</p>
|
|
967
|
+
</div></li>
|
|
968
|
+
<li><span><span class="tsd-kind-parameter">whatsappObject</span>: <a href="../interfaces/Whatsapp.html" class="tsd-signature-type tsd-kind-interface">Whatsapp</a></span>
|
|
969
|
+
<div class="tsd-comment tsd-typography"><p>the description(locale and policies of business account) of the location.</p>
|
|
970
|
+
</div></li></ul></div>
|
|
971
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>timestamp</code> of the message</p>
|
|
972
|
+
|
|
973
|
+
<div class="tsd-comment tsd-typography">
|
|
974
|
+
<div class="tsd-tag-example">
|
|
975
|
+
<h4 class="tsd-anchor-link" id="example-25">Example<a href="#example-25" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const timestamp = await client.sendMessageTemplateEvent(
|
|
976
|
+
'CONVERSATION_ID',
|
|
977
|
+
{
|
|
978
|
+
name: 'name',
|
|
979
|
+
parameters: ['Params1'] // optional
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
policy: '',
|
|
983
|
+
locale: ''
|
|
984
|
+
}
|
|
985
|
+
);
|
|
986
|
+
</code><button type="button">Copy</button></pre>
|
|
987
|
+
|
|
988
|
+
</div></div><aside class="tsd-sources">
|
|
989
|
+
<p>Overrides vonage.CombinedClientJS.sendMessageTemplateEvent</p></aside></div></li></ul></section>
|
|
990
|
+
<section class="tsd-panel tsd-member">
|
|
991
|
+
<h3 class="tsd-anchor-link" id="sendmessagetextevent"><span>send<wbr/>Message<wbr/>Text<wbr/>Event</span><a href="#sendmessagetextevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
992
|
+
<ul class="tsd-signatures">
|
|
993
|
+
<li class="">
|
|
994
|
+
<div class="tsd-signature tsd-anchor-link" id="sendmessagetextevent-1"><span class="tsd-kind-call-signature">sendMessageTextEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">text</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">raw</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</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"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#sendmessagetextevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
995
|
+
<div class="tsd-description">
|
|
996
|
+
<div class="tsd-comment tsd-typography"><p>Send a text message to a Conversation</p>
|
|
997
|
+
</div>
|
|
998
|
+
<div class="tsd-parameters">
|
|
999
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1000
|
+
<ul class="tsd-parameter-list">
|
|
1001
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
1002
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
1003
|
+
</div></li>
|
|
1004
|
+
<li><span><span class="tsd-kind-parameter">text</span>: <span class="tsd-signature-type">string</span></span>
|
|
1005
|
+
<div class="tsd-comment tsd-typography"><p>the Body of the message</p>
|
|
1006
|
+
</div></li>
|
|
1007
|
+
<li><span><span class="tsd-kind-parameter">raw</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span>
|
|
1008
|
+
<div class="tsd-comment tsd-typography"><p>whether to send the text as raw or not (default: false, not recommended)</p>
|
|
1009
|
+
</div></li></ul></div>
|
|
1010
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>timestamp</code> of the message</p>
|
|
1011
|
+
|
|
1012
|
+
<div class="tsd-comment tsd-typography">
|
|
1013
|
+
<div class="tsd-tag-example">
|
|
1014
|
+
<h4 class="tsd-anchor-link" id="example-26">Example<a href="#example-26" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const timestamp = await client.sendMessageTextEvent(
|
|
1015
|
+
'CONVERSATION_ID',
|
|
1016
|
+
'Hello World!'
|
|
1017
|
+
);
|
|
1018
|
+
</code><button type="button">Copy</button></pre>
|
|
1019
|
+
|
|
1020
|
+
</div></div><aside class="tsd-sources">
|
|
1021
|
+
<p>Overrides vonage.CombinedClientJS.sendMessageTextEvent</p></aside></div></li></ul></section>
|
|
1022
|
+
<section class="tsd-panel tsd-member">
|
|
1023
|
+
<h3 class="tsd-anchor-link" id="sendmessagevcardevent"><span>send<wbr/>Message<wbr/>V<wbr/>Card<wbr/>Event</span><a href="#sendmessagevcardevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1024
|
+
<ul class="tsd-signatures">
|
|
1025
|
+
<li class="">
|
|
1026
|
+
<div class="tsd-signature tsd-anchor-link" id="sendmessagevcardevent-1"><span class="tsd-kind-call-signature">sendMessageVCardEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">vCardUrl</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">URL</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"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#sendmessagevcardevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1027
|
+
<div class="tsd-description">
|
|
1028
|
+
<div class="tsd-comment tsd-typography"><p>Send a vcard message to a Conversation.</p>
|
|
1029
|
+
</div>
|
|
1030
|
+
<div class="tsd-parameters">
|
|
1031
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1032
|
+
<ul class="tsd-parameter-list">
|
|
1033
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
1034
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
1035
|
+
</div></li>
|
|
1036
|
+
<li><span><span class="tsd-kind-parameter">vCardUrl</span>: <span class="tsd-signature-type">URL</span></span>
|
|
1037
|
+
<div class="tsd-comment tsd-typography"><p>the url of the vCardUrl resource.</p>
|
|
1038
|
+
</div></li></ul></div>
|
|
1039
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>timestamp</code> of the message</p>
|
|
1040
|
+
|
|
1041
|
+
<div class="tsd-comment tsd-typography">
|
|
1042
|
+
<div class="tsd-tag-example">
|
|
1043
|
+
<h4 class="tsd-anchor-link" id="example-27">Example<a href="#example-27" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const timestamp = await client.sendMessageVCardEvent(
|
|
1044
|
+
'CONVERSATION_ID',
|
|
1045
|
+
vCardUrl
|
|
1046
|
+
);
|
|
1047
|
+
</code><button type="button">Copy</button></pre>
|
|
1048
|
+
|
|
1049
|
+
</div></div><aside class="tsd-sources">
|
|
1050
|
+
<p>Overrides vonage.CombinedClientJS.sendMessageVCardEvent</p></aside></div></li></ul></section>
|
|
1051
|
+
<section class="tsd-panel tsd-member">
|
|
1052
|
+
<h3 class="tsd-anchor-link" id="sendmessagevideoevent"><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" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1053
|
+
<ul class="tsd-signatures">
|
|
1054
|
+
<li class="">
|
|
1055
|
+
<div class="tsd-signature tsd-anchor-link" id="sendmessagevideoevent-1"><span class="tsd-kind-call-signature">sendMessageVideoEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">videoUrl</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">URL</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"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#sendmessagevideoevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1056
|
+
<div class="tsd-description">
|
|
1057
|
+
<div class="tsd-comment tsd-typography"><p>Send a Vidoe message to a Conversation.</p>
|
|
1058
|
+
</div>
|
|
1059
|
+
<div class="tsd-parameters">
|
|
1060
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1061
|
+
<ul class="tsd-parameter-list">
|
|
1062
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
1063
|
+
<div class="tsd-comment tsd-typography"><p>the Conversation's id</p>
|
|
1064
|
+
</div></li>
|
|
1065
|
+
<li><span><span class="tsd-kind-parameter">videoUrl</span>: <span class="tsd-signature-type">URL</span></span>
|
|
1066
|
+
<div class="tsd-comment tsd-typography"><p>the url of the video resource.</p>
|
|
1067
|
+
</div></li></ul></div>
|
|
1068
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>timestamp</code> of the message</p>
|
|
1069
|
+
|
|
1070
|
+
<div class="tsd-comment tsd-typography">
|
|
1071
|
+
<div class="tsd-tag-example">
|
|
1072
|
+
<h4 class="tsd-anchor-link" id="example-28">Example<a href="#example-28" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const timestamp = await client.sendMessageVideoEvent(
|
|
1073
|
+
'CONVERSATION_ID',
|
|
1074
|
+
videoURL
|
|
1075
|
+
);
|
|
1076
|
+
</code><button type="button">Copy</button></pre>
|
|
1077
|
+
|
|
1078
|
+
</div></div><aside class="tsd-sources">
|
|
1079
|
+
<p>Overrides vonage.CombinedClientJS.sendMessageVideoEvent</p></aside></div></li></ul></section></section></details>
|
|
1080
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Emergency"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
1081
|
+
<h2 class="tsd-anchor-link" id="emergency-1">Emergency<a href="#emergency-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
1082
|
+
<section>
|
|
1083
|
+
<section class="tsd-panel tsd-member">
|
|
1084
|
+
<h3 class="tsd-anchor-link" id="disableearmuffemergencycall"><span>disable<wbr/>Earmuff<wbr/>Emergency<wbr/>Call</span><a href="#disableearmuffemergencycall" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1085
|
+
<ul class="tsd-signatures">
|
|
1086
|
+
<li class="">
|
|
1087
|
+
<div class="tsd-signature tsd-anchor-link" id="disableearmuffemergencycall-1"><span class="tsd-kind-call-signature">disableEarmuffEmergencyCall</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#disableearmuffemergencycall-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1088
|
+
<div class="tsd-description">
|
|
1089
|
+
<div class="tsd-comment tsd-typography"><p>Disable earmuff for an emergency call.</p>
|
|
1090
|
+
</div>
|
|
1091
|
+
<div class="tsd-parameters">
|
|
1092
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1093
|
+
<ul class="tsd-parameter-list">
|
|
1094
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1095
|
+
<div class="tsd-comment tsd-typography"><p>the <code>callId</code> of the call to disable earmuff for</p>
|
|
1096
|
+
</div></li></ul></div>
|
|
1097
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1098
|
+
<aside class="tsd-sources">
|
|
1099
|
+
<p>Overrides vonage.CombinedClientJS.disableEarmuffEmergencyCall</p></aside></div></li></ul></section>
|
|
1100
|
+
<section class="tsd-panel tsd-member">
|
|
1101
|
+
<h3 class="tsd-anchor-link" id="emergencycall"><span>emergency<wbr/>Call</span><a href="#emergencycall" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1102
|
+
<ul class="tsd-signatures">
|
|
1103
|
+
<li class="">
|
|
1104
|
+
<div class="tsd-signature tsd-anchor-link" id="emergencycall-1"><span class="tsd-kind-call-signature">emergencyCall</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">token</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">from</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">to</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">Nullable</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">EmergencyCallOptionsJS</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">EmergencyCallDataJS</span><span class="tsd-signature-symbol">></span><a href="#emergencycall-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1105
|
+
<div class="tsd-description">
|
|
1106
|
+
<div class="tsd-comment tsd-typography"><p>Starts an emergency call.</p>
|
|
1107
|
+
</div>
|
|
1108
|
+
<div class="tsd-parameters">
|
|
1109
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1110
|
+
<ul class="tsd-parameter-list">
|
|
1111
|
+
<li><span><span class="tsd-kind-parameter">token</span>: <span class="tsd-signature-type">string</span></span></li>
|
|
1112
|
+
<li><span><span class="tsd-kind-parameter">from</span>: <span class="tsd-signature-type">string</span></span></li>
|
|
1113
|
+
<li><span><span class="tsd-kind-parameter">to</span>: <span class="tsd-signature-type">string</span></span></li>
|
|
1114
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">options</span>: <span class="tsd-signature-type">Nullable</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">EmergencyCallOptionsJS</span><span class="tsd-signature-symbol">></span></span>
|
|
1115
|
+
<div class="tsd-comment tsd-typography"><p>Optional <a href="../interfaces/EmergencyCallOptions.html" class="tsd-kind-interface">EmergencyCallOptions</a> containing call options</p>
|
|
1116
|
+
</div></li></ul></div>
|
|
1117
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">EmergencyCallDataJS</span><span class="tsd-signature-symbol">></span></h4><p>the result containing <code>callId</code> and <code>reconnectToken</code></p>
|
|
1118
|
+
<aside class="tsd-sources">
|
|
1119
|
+
<p>Overrides vonage.CombinedClientJS.emergencyCall</p></aside></div></li></ul></section>
|
|
1120
|
+
<section class="tsd-panel tsd-member">
|
|
1121
|
+
<h3 class="tsd-anchor-link" id="enableearmuffemergencycall"><span>enable<wbr/>Earmuff<wbr/>Emergency<wbr/>Call</span><a href="#enableearmuffemergencycall" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1122
|
+
<ul class="tsd-signatures">
|
|
1123
|
+
<li class="">
|
|
1124
|
+
<div class="tsd-signature tsd-anchor-link" id="enableearmuffemergencycall-1"><span class="tsd-kind-call-signature">enableEarmuffEmergencyCall</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#enableearmuffemergencycall-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1125
|
+
<div class="tsd-description">
|
|
1126
|
+
<div class="tsd-comment tsd-typography"><p>Enable earmuff for an emergency call.</p>
|
|
1127
|
+
</div>
|
|
1128
|
+
<div class="tsd-parameters">
|
|
1129
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1130
|
+
<ul class="tsd-parameter-list">
|
|
1131
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1132
|
+
<div class="tsd-comment tsd-typography"><p>the <code>callId</code> of the call to enable earmuff for</p>
|
|
1133
|
+
</div></li></ul></div>
|
|
1134
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1135
|
+
<aside class="tsd-sources">
|
|
1136
|
+
<p>Overrides vonage.CombinedClientJS.enableEarmuffEmergencyCall</p></aside></div></li></ul></section>
|
|
1137
|
+
<section class="tsd-panel tsd-member">
|
|
1138
|
+
<h3 class="tsd-anchor-link" id="hangupemergencycall"><span>hangup<wbr/>Emergency<wbr/>Call</span><a href="#hangupemergencycall" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1139
|
+
<ul class="tsd-signatures">
|
|
1140
|
+
<li class="">
|
|
1141
|
+
<div class="tsd-signature tsd-anchor-link" id="hangupemergencycall-1"><span class="tsd-kind-call-signature">hangupEmergencyCall</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#hangupemergencycall-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1142
|
+
<div class="tsd-description">
|
|
1143
|
+
<div class="tsd-comment tsd-typography"><p>Hangup an emergency call.</p>
|
|
1144
|
+
</div>
|
|
1145
|
+
<div class="tsd-parameters">
|
|
1146
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1147
|
+
<ul class="tsd-parameter-list">
|
|
1148
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1149
|
+
<div class="tsd-comment tsd-typography"><p>the <code>callId</code> of the call to hangup</p>
|
|
1150
|
+
</div></li></ul></div>
|
|
1151
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1152
|
+
</div></li></ul></section>
|
|
1153
|
+
<section class="tsd-panel tsd-member">
|
|
1154
|
+
<h3 class="tsd-anchor-link" id="muteemergencycall"><span>mute<wbr/>Emergency<wbr/>Call</span><a href="#muteemergencycall" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1155
|
+
<ul class="tsd-signatures">
|
|
1156
|
+
<li class="">
|
|
1157
|
+
<div class="tsd-signature tsd-anchor-link" id="muteemergencycall-1"><span class="tsd-kind-call-signature">muteEmergencyCall</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#muteemergencycall-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1158
|
+
<div class="tsd-description">
|
|
1159
|
+
<div class="tsd-comment tsd-typography"><p>Mute an emergency call.</p>
|
|
1160
|
+
</div>
|
|
1161
|
+
<div class="tsd-parameters">
|
|
1162
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1163
|
+
<ul class="tsd-parameter-list">
|
|
1164
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1165
|
+
<div class="tsd-comment tsd-typography"><p>the <code>callId</code> of the call to mute</p>
|
|
1166
|
+
</div></li></ul></div>
|
|
1167
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1168
|
+
<aside class="tsd-sources">
|
|
1169
|
+
<p>Overrides vonage.CombinedClientJS.muteEmergencyCall</p></aside></div></li></ul></section>
|
|
1170
|
+
<section class="tsd-panel tsd-member">
|
|
1171
|
+
<h3 class="tsd-anchor-link" id="reconnectemergencycall"><span>reconnect<wbr/>Emergency<wbr/>Call</span><a href="#reconnectemergencycall" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1172
|
+
<ul class="tsd-signatures">
|
|
1173
|
+
<li class="">
|
|
1174
|
+
<div class="tsd-signature tsd-anchor-link" id="reconnectemergencycall-1"><span class="tsd-kind-call-signature">reconnectEmergencyCall</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">token</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">reconnectToken</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#reconnectemergencycall-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1175
|
+
<div class="tsd-description">
|
|
1176
|
+
<div class="tsd-comment tsd-typography"><p>Reconnects an existing emergency call.</p>
|
|
1177
|
+
</div>
|
|
1178
|
+
<div class="tsd-parameters">
|
|
1179
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1180
|
+
<ul class="tsd-parameter-list">
|
|
1181
|
+
<li><span><span class="tsd-kind-parameter">token</span>: <span class="tsd-signature-type">string</span></span></li>
|
|
1182
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span></li>
|
|
1183
|
+
<li><span><span class="tsd-kind-parameter">reconnectToken</span>: <span class="tsd-signature-type">string</span></span></li></ul></div>
|
|
1184
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1185
|
+
<aside class="tsd-sources">
|
|
1186
|
+
<p>Overrides vonage.CombinedClientJS.reconnectEmergencyCall</p></aside></div></li></ul></section>
|
|
1187
|
+
<section class="tsd-panel tsd-member">
|
|
1188
|
+
<h3 class="tsd-anchor-link" id="unmuteemergencycall"><span>unmute<wbr/>Emergency<wbr/>Call</span><a href="#unmuteemergencycall" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1189
|
+
<ul class="tsd-signatures">
|
|
1190
|
+
<li class="">
|
|
1191
|
+
<div class="tsd-signature tsd-anchor-link" id="unmuteemergencycall-1"><span class="tsd-kind-call-signature">unmuteEmergencyCall</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#unmuteemergencycall-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1192
|
+
<div class="tsd-description">
|
|
1193
|
+
<div class="tsd-comment tsd-typography"><p>Unmute an emergency call.</p>
|
|
1194
|
+
</div>
|
|
1195
|
+
<div class="tsd-parameters">
|
|
1196
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1197
|
+
<ul class="tsd-parameter-list">
|
|
1198
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1199
|
+
<div class="tsd-comment tsd-typography"><p>the <code>callId</code> of the call to unmute</p>
|
|
1200
|
+
</div></li></ul></div>
|
|
1201
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1202
|
+
<aside class="tsd-sources">
|
|
1203
|
+
<p>Overrides vonage.CombinedClientJS.unmuteEmergencyCall</p></aside></div></li></ul></section></section></details>
|
|
1204
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Voice"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
1205
|
+
<h2 class="tsd-anchor-link" id="voice-1">Voice<a href="#voice-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
1206
|
+
<section>
|
|
1207
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
1208
|
+
<h3 class="tsd-anchor-link" id="answer"><span>answer</span><a href="#answer" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1209
|
+
<ul class="tsd-signatures tsd-is-inherited">
|
|
1210
|
+
<li class="tsd-is-inherited">
|
|
1211
|
+
<div class="tsd-signature tsd-anchor-link" id="answer-1"><span class="tsd-kind-call-signature">answer</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#answer-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1212
|
+
<div class="tsd-description">
|
|
1213
|
+
<div class="tsd-comment tsd-typography"><p>Answer a call</p>
|
|
1214
|
+
</div>
|
|
1215
|
+
<div class="tsd-parameters">
|
|
1216
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1217
|
+
<ul class="tsd-parameter-list">
|
|
1218
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1219
|
+
<div class="tsd-comment tsd-typography"><p>Call ID</p>
|
|
1220
|
+
</div></li></ul></div>
|
|
1221
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1222
|
+
|
|
1223
|
+
<div class="tsd-comment tsd-typography">
|
|
1224
|
+
<div class="tsd-tag-example">
|
|
1225
|
+
<h4 class="tsd-anchor-link" id="example-29">Example<a href="#example-29" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const callId = 'callId';
|
|
1226
|
+
await client.answer(callId);
|
|
1227
|
+
</code><button type="button">Copy</button></pre>
|
|
1228
|
+
|
|
1229
|
+
</div></div><aside class="tsd-sources">
|
|
1230
|
+
<p>Inherited from vonage.CombinedClientJS.answer</p></aside></div></li></ul></section>
|
|
1231
|
+
<section class="tsd-panel tsd-member">
|
|
1232
|
+
<h3 class="tsd-anchor-link" id="disableautogaincontrol"><span>disable<wbr/>Auto<wbr/>Gain<wbr/>Control</span><a href="#disableautogaincontrol" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1233
|
+
<ul class="tsd-signatures">
|
|
1234
|
+
<li class="">
|
|
1235
|
+
<div class="tsd-signature tsd-anchor-link" id="disableautogaincontrol-1"><span class="tsd-kind-call-signature">disableAutoGainControl</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#disableautogaincontrol-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1236
|
+
<div class="tsd-description"><code class="tsd-tag">Experimental</code>
|
|
1237
|
+
<div class="tsd-comment tsd-typography"><p>Disable auto gain control on a call's audio track.</p>
|
|
1238
|
+
</div>
|
|
1239
|
+
<div class="tsd-parameters">
|
|
1240
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1241
|
+
<ul class="tsd-parameter-list">
|
|
1242
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
1243
|
+
<div class="tsd-comment tsd-typography"><p>The Call Id</p>
|
|
1244
|
+
</div></li></ul></div>
|
|
1245
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1246
|
+
<p>Overrides vonage.CombinedClientJS.disableAutoGainControl</p></aside></div></li></ul></section>
|
|
1247
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
1248
|
+
<h3 class="tsd-anchor-link" id="disableearmuff"><span>disable<wbr/>Earmuff</span><a href="#disableearmuff" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1249
|
+
<ul class="tsd-signatures tsd-is-inherited">
|
|
1250
|
+
<li class="tsd-is-inherited">
|
|
1251
|
+
<div class="tsd-signature tsd-anchor-link" id="disableearmuff-1"><span class="tsd-kind-call-signature">disableEarmuff</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#disableearmuff-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1252
|
+
<div class="tsd-description">
|
|
1253
|
+
<div class="tsd-comment tsd-typography"><p>Unearmuff your leg of a call</p>
|
|
1254
|
+
</div>
|
|
1255
|
+
<div class="tsd-parameters">
|
|
1256
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1257
|
+
<ul class="tsd-parameter-list">
|
|
1258
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1259
|
+
<div class="tsd-comment tsd-typography"><p>Call ID</p>
|
|
1260
|
+
</div></li></ul></div>
|
|
1261
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1262
|
+
|
|
1263
|
+
<div class="tsd-comment tsd-typography">
|
|
1264
|
+
<div class="tsd-tag-example">
|
|
1265
|
+
<h4 class="tsd-anchor-link" id="example-30">Example<a href="#example-30" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const callId = 'callId';
|
|
1266
|
+
await client.disableEarmuff(callId);
|
|
1267
|
+
</code><button type="button">Copy</button></pre>
|
|
1268
|
+
|
|
1269
|
+
</div></div><aside class="tsd-sources">
|
|
1270
|
+
<p>Inherited from vonage.CombinedClientJS.disableEarmuff</p></aside></div></li></ul></section>
|
|
1271
|
+
<section class="tsd-panel tsd-member">
|
|
1272
|
+
<h3 class="tsd-anchor-link" id="disableechocancellation"><span>disable<wbr/>Echo<wbr/>Cancellation</span><a href="#disableechocancellation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1273
|
+
<ul class="tsd-signatures">
|
|
1274
|
+
<li class="">
|
|
1275
|
+
<div class="tsd-signature tsd-anchor-link" id="disableechocancellation-1"><span class="tsd-kind-call-signature">disableEchoCancellation</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#disableechocancellation-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1276
|
+
<div class="tsd-description"><code class="tsd-tag">Experimental</code>
|
|
1277
|
+
<div class="tsd-comment tsd-typography"><p>Disable echo cancellation on a call's audio track.</p>
|
|
1278
|
+
</div>
|
|
1279
|
+
<div class="tsd-parameters">
|
|
1280
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1281
|
+
<ul class="tsd-parameter-list">
|
|
1282
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
1283
|
+
<div class="tsd-comment tsd-typography"><p>The Call Id</p>
|
|
1284
|
+
</div></li></ul></div>
|
|
1285
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1286
|
+
<p>Overrides vonage.CombinedClientJS.disableEchoCancellation</p></aside></div></li></ul></section>
|
|
1287
|
+
<section class="tsd-panel tsd-member">
|
|
1288
|
+
<h3 class="tsd-anchor-link" id="disablenoisesuppression"><span>disable<wbr/>Noise<wbr/>Suppression</span><a href="#disablenoisesuppression" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1289
|
+
<ul class="tsd-signatures">
|
|
1290
|
+
<li class="">
|
|
1291
|
+
<div class="tsd-signature tsd-anchor-link" id="disablenoisesuppression-1"><span class="tsd-kind-call-signature">disableNoiseSuppression</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#disablenoisesuppression-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1292
|
+
<div class="tsd-description"><code class="tsd-tag">Experimental</code>
|
|
1293
|
+
<div class="tsd-comment tsd-typography"><p>Disable noise suppression on a call's audio track.</p>
|
|
1294
|
+
</div>
|
|
1295
|
+
<div class="tsd-parameters">
|
|
1296
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1297
|
+
<ul class="tsd-parameter-list">
|
|
1298
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
1299
|
+
<div class="tsd-comment tsd-typography"><p>The Call Id</p>
|
|
1300
|
+
</div></li></ul></div>
|
|
1301
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1302
|
+
<p>Overrides vonage.CombinedClientJS.disableNoiseSuppression</p></aside></div></li></ul></section>
|
|
1303
|
+
<section class="tsd-panel tsd-member">
|
|
1304
|
+
<h3 class="tsd-anchor-link" id="enableautogaincontrol"><span>enable<wbr/>Auto<wbr/>Gain<wbr/>Control</span><a href="#enableautogaincontrol" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1305
|
+
<ul class="tsd-signatures">
|
|
1306
|
+
<li class="">
|
|
1307
|
+
<div class="tsd-signature tsd-anchor-link" id="enableautogaincontrol-1"><span class="tsd-kind-call-signature">enableAutoGainControl</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#enableautogaincontrol-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1308
|
+
<div class="tsd-description"><code class="tsd-tag">Experimental</code>
|
|
1309
|
+
<div class="tsd-comment tsd-typography"><p>Enable auto gain control on a call's audio track.</p>
|
|
1310
|
+
</div>
|
|
1311
|
+
<div class="tsd-parameters">
|
|
1312
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1313
|
+
<ul class="tsd-parameter-list">
|
|
1314
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
1315
|
+
<div class="tsd-comment tsd-typography"><p>The Call Id</p>
|
|
1316
|
+
</div></li></ul></div>
|
|
1317
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1318
|
+
<p>Overrides vonage.CombinedClientJS.enableAutoGainControl</p></aside></div></li></ul></section>
|
|
1319
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
1320
|
+
<h3 class="tsd-anchor-link" id="enableearmuff"><span>enable<wbr/>Earmuff</span><a href="#enableearmuff" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1321
|
+
<ul class="tsd-signatures tsd-is-inherited">
|
|
1322
|
+
<li class="tsd-is-inherited">
|
|
1323
|
+
<div class="tsd-signature tsd-anchor-link" id="enableearmuff-1"><span class="tsd-kind-call-signature">enableEarmuff</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#enableearmuff-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1324
|
+
<div class="tsd-description">
|
|
1325
|
+
<div class="tsd-comment tsd-typography"><p>Earmuff your leg of a call</p>
|
|
1326
|
+
</div>
|
|
1327
|
+
<div class="tsd-parameters">
|
|
1328
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1329
|
+
<ul class="tsd-parameter-list">
|
|
1330
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1331
|
+
<div class="tsd-comment tsd-typography"><p>Call ID</p>
|
|
1332
|
+
</div></li></ul></div>
|
|
1333
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1334
|
+
|
|
1335
|
+
<div class="tsd-comment tsd-typography">
|
|
1336
|
+
<div class="tsd-tag-example">
|
|
1337
|
+
<h4 class="tsd-anchor-link" id="example-31">Example<a href="#example-31" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const callId = 'callId';
|
|
1338
|
+
await client.enableEarmuff(callId);
|
|
1339
|
+
</code><button type="button">Copy</button></pre>
|
|
1340
|
+
|
|
1341
|
+
</div></div><aside class="tsd-sources">
|
|
1342
|
+
<p>Inherited from vonage.CombinedClientJS.enableEarmuff</p></aside></div></li></ul></section>
|
|
1343
|
+
<section class="tsd-panel tsd-member">
|
|
1344
|
+
<h3 class="tsd-anchor-link" id="enableechocancellation"><span>enable<wbr/>Echo<wbr/>Cancellation</span><a href="#enableechocancellation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1345
|
+
<ul class="tsd-signatures">
|
|
1346
|
+
<li class="">
|
|
1347
|
+
<div class="tsd-signature tsd-anchor-link" id="enableechocancellation-1"><span class="tsd-kind-call-signature">enableEchoCancellation</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#enableechocancellation-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1348
|
+
<div class="tsd-description"><code class="tsd-tag">Experimental</code>
|
|
1349
|
+
<div class="tsd-comment tsd-typography"><p>Enable echo cancellation on a call's audio track.</p>
|
|
1350
|
+
</div>
|
|
1351
|
+
<div class="tsd-parameters">
|
|
1352
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1353
|
+
<ul class="tsd-parameter-list">
|
|
1354
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
1355
|
+
<div class="tsd-comment tsd-typography"><p>The Call Id</p>
|
|
1356
|
+
</div></li></ul></div>
|
|
1357
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1358
|
+
<p>Overrides vonage.CombinedClientJS.enableEchoCancellation</p></aside></div></li></ul></section>
|
|
1359
|
+
<section class="tsd-panel tsd-member">
|
|
1360
|
+
<h3 class="tsd-anchor-link" id="enablenoisesuppression"><span>enable<wbr/>Noise<wbr/>Suppression</span><a href="#enablenoisesuppression" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1361
|
+
<ul class="tsd-signatures">
|
|
1362
|
+
<li class="">
|
|
1363
|
+
<div class="tsd-signature tsd-anchor-link" id="enablenoisesuppression-1"><span class="tsd-kind-call-signature">enableNoiseSuppression</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#enablenoisesuppression-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1364
|
+
<div class="tsd-description"><code class="tsd-tag">Experimental</code>
|
|
1365
|
+
<div class="tsd-comment tsd-typography"><p>Enable noise suppression on a call's audio track.</p>
|
|
1366
|
+
</div>
|
|
1367
|
+
<div class="tsd-parameters">
|
|
1368
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1369
|
+
<ul class="tsd-parameter-list">
|
|
1370
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
1371
|
+
<div class="tsd-comment tsd-typography"><p>The Call Id</p>
|
|
1372
|
+
</div></li></ul></div>
|
|
1373
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1374
|
+
<p>Overrides vonage.CombinedClientJS.enableNoiseSuppression</p></aside></div></li></ul></section>
|
|
1375
|
+
<section class="tsd-panel tsd-member">
|
|
1376
|
+
<h3 class="tsd-anchor-link" id="getaudiooutputelement"><span>get<wbr/>Audio<wbr/>Output<wbr/>Element</span><a href="#getaudiooutputelement" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1377
|
+
<ul class="tsd-signatures">
|
|
1378
|
+
<li class="">
|
|
1379
|
+
<div class="tsd-signature tsd-anchor-link" id="getaudiooutputelement-1"><span class="tsd-kind-call-signature">getAudioOutputElement</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">HTMLAudioElement</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span><a href="#getaudiooutputelement-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1380
|
+
<div class="tsd-description"><code class="tsd-tag">Experimental</code>
|
|
1381
|
+
<div class="tsd-comment tsd-typography"><p>Get the HTML Audio Element for the SDK.
|
|
288
1382
|
It can be used to route output to other devices.</p>
|
|
289
|
-
</div
|
|
290
|
-
|
|
291
|
-
</
|
|
292
|
-
<
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
</div
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
<
|
|
304
|
-
</code><
|
|
305
|
-
|
|
306
|
-
</div
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
</code><button>Copy</button></pre>
|
|
320
|
-
|
|
321
|
-
</div
|
|
322
|
-
</
|
|
323
|
-
|
|
324
|
-
<
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
<div class="tsd-
|
|
329
|
-
|
|
330
|
-
</div
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
<
|
|
335
|
-
|
|
336
|
-
</div
|
|
1383
|
+
</div>
|
|
1384
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">HTMLAudioElement</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span></h4><aside class="tsd-sources">
|
|
1385
|
+
<p>Overrides vonage.CombinedClientJS.getAudioOutputElement</p></aside></div></li></ul></section>
|
|
1386
|
+
<section class="tsd-panel tsd-member">
|
|
1387
|
+
<h3 class="tsd-anchor-link" id="getcalllegs"><span>get<wbr/>Call<wbr/>Legs</span><a href="#getcalllegs" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1388
|
+
<ul class="tsd-signatures">
|
|
1389
|
+
<li class="">
|
|
1390
|
+
<div class="tsd-signature tsd-anchor-link" id="getcalllegs-1"><span class="tsd-kind-call-signature">getCallLegs</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">parameters</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">Nullable</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/GetCallLegsParameters.html" class="tsd-signature-type tsd-kind-interface">GetCallLegsParameters</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/LegsPage.html" class="tsd-signature-type tsd-kind-interface">LegsPage</a><span class="tsd-signature-symbol">></span><a href="#getcalllegs-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1391
|
+
<div class="tsd-description">
|
|
1392
|
+
<div class="tsd-comment tsd-typography"><p>Get a Call's Legs</p>
|
|
1393
|
+
</div>
|
|
1394
|
+
<div class="tsd-parameters">
|
|
1395
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1396
|
+
<ul class="tsd-parameter-list">
|
|
1397
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span></li>
|
|
1398
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">parameters</span>: <span class="tsd-signature-type">Nullable</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/GetCallLegsParameters.html" class="tsd-signature-type tsd-kind-interface">GetCallLegsParameters</a><span class="tsd-signature-symbol">></span></span>
|
|
1399
|
+
<div class="tsd-comment tsd-typography"><p>A <a href="../interfaces/GetCallLegsParameters.html" class="tsd-kind-interface">GetCallLegsParameters</a> object containing the parameters for the request.</p>
|
|
1400
|
+
</div></li></ul></div>
|
|
1401
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/LegsPage.html" class="tsd-signature-type tsd-kind-interface">LegsPage</a><span class="tsd-signature-symbol">></span></h4><p>a <code>LegsPage</code> containing the legs</p>
|
|
1402
|
+
|
|
1403
|
+
<div class="tsd-comment tsd-typography">
|
|
1404
|
+
<div class="tsd-tag-example">
|
|
1405
|
+
<h4 class="tsd-anchor-link" id="example-32">Example<a href="#example-32" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const { legs, nextCursor, previousCursor } = await client.getCallLegs(
|
|
1406
|
+
'callId',
|
|
1407
|
+
{
|
|
1408
|
+
order: PresentingOrder.DESC,
|
|
1409
|
+
pageSize: 10,
|
|
1410
|
+
cursor: undefined
|
|
1411
|
+
}
|
|
1412
|
+
);
|
|
1413
|
+
</code><button type="button">Copy</button></pre>
|
|
1414
|
+
|
|
1415
|
+
</div></div><aside class="tsd-sources">
|
|
1416
|
+
<p>Overrides vonage.CombinedClientJS.getCallLegs</p></aside></div></li></ul></section>
|
|
1417
|
+
<section class="tsd-panel tsd-member">
|
|
1418
|
+
<h3 class="tsd-anchor-link" id="getleg"><span>get<wbr/>Leg</span><a href="#getleg" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1419
|
+
<ul class="tsd-signatures">
|
|
1420
|
+
<li class="">
|
|
1421
|
+
<div class="tsd-signature tsd-anchor-link" id="getleg-1"><span class="tsd-kind-call-signature">getLeg</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">legId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">LegJS</span><span class="tsd-signature-symbol">></span><a href="#getleg-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1422
|
+
<div class="tsd-description">
|
|
1423
|
+
<div class="tsd-comment tsd-typography"><p>Get the Leg for a call</p>
|
|
1424
|
+
</div>
|
|
1425
|
+
<div class="tsd-parameters">
|
|
1426
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1427
|
+
<ul class="tsd-parameter-list">
|
|
1428
|
+
<li><span><span class="tsd-kind-parameter">legId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1429
|
+
<div class="tsd-comment tsd-typography"><p>The Leg Id</p>
|
|
1430
|
+
</div></li></ul></div>
|
|
1431
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">LegJS</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
1432
|
+
<p>Overrides vonage.CombinedClientJS.getLeg</p></aside></div></li></ul></section>
|
|
1433
|
+
<section class="tsd-panel tsd-member">
|
|
1434
|
+
<h3 class="tsd-anchor-link" id="getpeerconnection"><span>get<wbr/>Peer<wbr/>Connection</span><a href="#getpeerconnection" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1435
|
+
<ul class="tsd-signatures">
|
|
1436
|
+
<li class="">
|
|
1437
|
+
<div class="tsd-signature tsd-anchor-link" id="getpeerconnection-1"><span class="tsd-kind-call-signature">getPeerConnection</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">RTCPeerConnection</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span><a href="#getpeerconnection-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1438
|
+
<div class="tsd-description"><code class="tsd-tag">Experimental</code>
|
|
1439
|
+
<div class="tsd-comment tsd-typography"><p>Get the Peer Connection for a call</p>
|
|
1440
|
+
</div>
|
|
1441
|
+
<div class="tsd-parameters">
|
|
1442
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1443
|
+
<ul class="tsd-parameter-list">
|
|
1444
|
+
<li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span>
|
|
1445
|
+
<div class="tsd-comment tsd-typography"><p>The Call Id</p>
|
|
1446
|
+
</div></li></ul></div>
|
|
1447
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">RTCPeerConnection</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span></h4><aside class="tsd-sources">
|
|
1448
|
+
<p>Overrides vonage.CombinedClientJS.getPeerConnection</p></aside></div></li></ul></section>
|
|
1449
|
+
<section class="tsd-panel tsd-member">
|
|
1450
|
+
<h3 class="tsd-anchor-link" id="hangup"><span>hangup</span><a href="#hangup" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1451
|
+
<ul class="tsd-signatures">
|
|
1452
|
+
<li class="">
|
|
1453
|
+
<div class="tsd-signature tsd-anchor-link" id="hangup-1"><span class="tsd-kind-call-signature">hangup</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">reasonText</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">reasonCode</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#hangup-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1454
|
+
<div class="tsd-description">
|
|
1455
|
+
<div class="tsd-comment tsd-typography"><p>Hangup a call.</p>
|
|
1456
|
+
</div>
|
|
1457
|
+
<div class="tsd-parameters">
|
|
1458
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1459
|
+
<ul class="tsd-parameter-list">
|
|
1460
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1461
|
+
<div class="tsd-comment tsd-typography"><p>the <code>callId</code> of the call to hangup</p>
|
|
1462
|
+
</div></li>
|
|
1463
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">reasonText</span>: <span class="tsd-signature-type">string</span></span>
|
|
1464
|
+
<div class="tsd-comment tsd-typography"><p>optional reason text to send to the other party</p>
|
|
1465
|
+
</div></li>
|
|
1466
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">reasonCode</span>: <span class="tsd-signature-type">string</span></span>
|
|
1467
|
+
<div class="tsd-comment tsd-typography"><p>optional reason code to send to the other party</p>
|
|
1468
|
+
</div></li></ul></div>
|
|
1469
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1470
|
+
|
|
1471
|
+
<div class="tsd-comment tsd-typography">
|
|
1472
|
+
<div class="tsd-tag-example">
|
|
1473
|
+
<h4 class="tsd-anchor-link" id="example-33">Example<a href="#example-33" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const callId = 'callId';
|
|
1474
|
+
await client.hangup(callId);
|
|
1475
|
+
</code><button type="button">Copy</button></pre>
|
|
1476
|
+
|
|
1477
|
+
</div></div><aside class="tsd-sources">
|
|
1478
|
+
<p>Overrides vonage.CombinedClientJS.hangup</p></aside></div></li></ul></section>
|
|
1479
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
1480
|
+
<h3 class="tsd-anchor-link" id="mute"><span>mute</span><a href="#mute" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1481
|
+
<ul class="tsd-signatures tsd-is-inherited">
|
|
1482
|
+
<li class="tsd-is-inherited">
|
|
1483
|
+
<div class="tsd-signature tsd-anchor-link" id="mute-1"><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-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#mute-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1484
|
+
<div class="tsd-description">
|
|
1485
|
+
<div class="tsd-comment tsd-typography"><p>Mute your leg of a call</p>
|
|
1486
|
+
</div>
|
|
1487
|
+
<div class="tsd-parameters">
|
|
1488
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1489
|
+
<ul class="tsd-parameter-list">
|
|
1490
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1491
|
+
<div class="tsd-comment tsd-typography"><p>Call ID</p>
|
|
1492
|
+
</div></li></ul></div>
|
|
1493
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1494
|
+
|
|
1495
|
+
<div class="tsd-comment tsd-typography">
|
|
1496
|
+
<div class="tsd-tag-example">
|
|
1497
|
+
<h4 class="tsd-anchor-link" id="example-34">Example<a href="#example-34" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const callId = 'callId';
|
|
1498
|
+
await client.mute(callId);
|
|
1499
|
+
</code><button type="button">Copy</button></pre>
|
|
1500
|
+
|
|
1501
|
+
</div></div><aside class="tsd-sources">
|
|
1502
|
+
<p>Inherited from vonage.CombinedClientJS.mute</p></aside></div></li></ul></section>
|
|
1503
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
1504
|
+
<h3 class="tsd-anchor-link" id="reconnectcall"><span>reconnect<wbr/>Call</span><a href="#reconnectcall" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1505
|
+
<ul class="tsd-signatures tsd-is-inherited">
|
|
1506
|
+
<li class="tsd-is-inherited">
|
|
1507
|
+
<div class="tsd-signature tsd-anchor-link" id="reconnectcall-1"><span class="tsd-kind-call-signature">reconnectCall</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#reconnectcall-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1508
|
+
<div class="tsd-description">
|
|
1509
|
+
<div class="tsd-comment tsd-typography"><p>Reconnect a call</p>
|
|
1510
|
+
</div>
|
|
1511
|
+
<div class="tsd-parameters">
|
|
1512
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1513
|
+
<ul class="tsd-parameter-list">
|
|
1514
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1515
|
+
<div class="tsd-comment tsd-typography"><p>Call ID</p>
|
|
1516
|
+
</div></li></ul></div>
|
|
1517
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1518
|
+
|
|
1519
|
+
<div class="tsd-comment tsd-typography">
|
|
1520
|
+
<div class="tsd-tag-example">
|
|
1521
|
+
<h4 class="tsd-anchor-link" id="example-35">Example<a href="#example-35" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const callId = 'callId';
|
|
1522
|
+
await client.reconnectCall(callId);
|
|
1523
|
+
</code><button type="button">Copy</button></pre>
|
|
1524
|
+
|
|
1525
|
+
</div></div><aside class="tsd-sources">
|
|
1526
|
+
<p>Inherited from vonage.CombinedClientJS.reconnectCall</p></aside></div></li></ul></section>
|
|
1527
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
1528
|
+
<h3 class="tsd-anchor-link" id="reject"><span>reject</span><a href="#reject" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1529
|
+
<ul class="tsd-signatures tsd-is-inherited">
|
|
1530
|
+
<li class="tsd-is-inherited">
|
|
1531
|
+
<div class="tsd-signature tsd-anchor-link" id="reject-1"><span class="tsd-kind-call-signature">reject</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#reject-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1532
|
+
<div class="tsd-description">
|
|
1533
|
+
<div class="tsd-comment tsd-typography"><p>Reject a call</p>
|
|
1534
|
+
</div>
|
|
1535
|
+
<div class="tsd-parameters">
|
|
1536
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1537
|
+
<ul class="tsd-parameter-list">
|
|
1538
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1539
|
+
<div class="tsd-comment tsd-typography"><p>Call ID</p>
|
|
1540
|
+
</div></li></ul></div>
|
|
1541
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1542
|
+
|
|
1543
|
+
<div class="tsd-comment tsd-typography">
|
|
1544
|
+
<div class="tsd-tag-example">
|
|
1545
|
+
<h4 class="tsd-anchor-link" id="example-36">Example<a href="#example-36" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const callId = 'callId';
|
|
1546
|
+
await client.reject(callId);
|
|
1547
|
+
</code><button type="button">Copy</button></pre>
|
|
1548
|
+
|
|
1549
|
+
</div></div><aside class="tsd-sources">
|
|
1550
|
+
<p>Inherited from vonage.CombinedClientJS.reject</p></aside></div></li></ul></section>
|
|
1551
|
+
<section class="tsd-panel tsd-member">
|
|
1552
|
+
<h3 class="tsd-anchor-link" id="say"><span>say</span><a href="#say" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1553
|
+
<ul class="tsd-signatures">
|
|
1554
|
+
<li class="">
|
|
1555
|
+
<div class="tsd-signature tsd-anchor-link" id="say-1"><span class="tsd-kind-call-signature">say</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">text</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#say-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1556
|
+
<div class="tsd-description">
|
|
1557
|
+
<div class="tsd-comment tsd-typography"><p>Sends a TTS message to the Call</p>
|
|
1558
|
+
</div>
|
|
1559
|
+
<div class="tsd-parameters">
|
|
1560
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1561
|
+
<ul class="tsd-parameter-list">
|
|
1562
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1563
|
+
<div class="tsd-comment tsd-typography"><p>the <code>callId</code> of the call to send the message to</p>
|
|
1564
|
+
</div></li>
|
|
1565
|
+
<li><span><span class="tsd-kind-parameter">text</span>: <span class="tsd-signature-type">string</span></span>
|
|
1566
|
+
<div class="tsd-comment tsd-typography"><p>the text to send</p>
|
|
1567
|
+
</div></li></ul></div>
|
|
1568
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1569
|
+
<aside class="tsd-sources">
|
|
1570
|
+
<p>Overrides vonage.CombinedClientJS.say</p></aside></div></li>
|
|
1571
|
+
<li class="">
|
|
1572
|
+
<div class="tsd-signature tsd-anchor-link" id="say-2"><span class="tsd-kind-call-signature">say</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/CallSayParams.html" class="tsd-signature-type tsd-kind-interface">CallSayParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#say-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1573
|
+
<div class="tsd-description">
|
|
1574
|
+
<div class="tsd-comment tsd-typography"><p>Sends a TTS message to the Call</p>
|
|
1575
|
+
</div>
|
|
1576
|
+
<div class="tsd-parameters">
|
|
1577
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1578
|
+
<ul class="tsd-parameter-list">
|
|
1579
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1580
|
+
<div class="tsd-comment tsd-typography"><p>the <code>callId</code> of the call to send the message to</p>
|
|
1581
|
+
</div></li>
|
|
1582
|
+
<li><span><span class="tsd-kind-parameter">params</span>: <a href="../interfaces/CallSayParams.html" class="tsd-signature-type tsd-kind-interface">CallSayParams</a></span>
|
|
1583
|
+
<div class="tsd-comment tsd-typography"><p>the <code>CallSayParams</code> to send</p>
|
|
1584
|
+
</div></li></ul></div>
|
|
1585
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1586
|
+
|
|
1587
|
+
<div class="tsd-comment tsd-typography">
|
|
1588
|
+
<div class="tsd-tag-example">
|
|
1589
|
+
<h4 class="tsd-anchor-link" id="example-37">Example<a href="#example-37" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const callId = 'callId';
|
|
1590
|
+
await client.say(callId, 'Hello World');
|
|
1591
|
+
const ssmlExample =
|
|
1592
|
+
'<speak>Hello World <break strength="weak"/> I am using <say-as interpret-as="character">SSML</say-as> <break strength="weak" /> how cool is that? </speak>';
|
|
1593
|
+
await client.say(callId, {
|
|
1594
|
+
text: ssmlExample,
|
|
1595
|
+
voiceName: 'Kimberly',
|
|
1596
|
+
ssml: true,
|
|
1597
|
+
level: 1,
|
|
1598
|
+
loop: 2
|
|
1599
|
+
});
|
|
1600
|
+
</code><button type="button">Copy</button></pre>
|
|
1601
|
+
|
|
1602
|
+
</div></div><aside class="tsd-sources">
|
|
1603
|
+
<p>Overrides vonage.CombinedClientJS.say</p></aside></div></li></ul></section>
|
|
1604
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
1605
|
+
<h3 class="tsd-anchor-link" id="senddtmf"><span>send<wbr/>DTMF</span><a href="#senddtmf" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1606
|
+
<ul class="tsd-signatures tsd-is-inherited">
|
|
1607
|
+
<li class="tsd-is-inherited">
|
|
1608
|
+
<div class="tsd-signature tsd-anchor-link" id="senddtmf-1"><span class="tsd-kind-call-signature">sendDTMF</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">digits</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#senddtmf-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1609
|
+
<div class="tsd-description">
|
|
1610
|
+
<div class="tsd-comment tsd-typography"><p>Send a string of digits to a call via DTMF</p>
|
|
1611
|
+
</div>
|
|
1612
|
+
<div class="tsd-parameters">
|
|
1613
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1614
|
+
<ul class="tsd-parameter-list">
|
|
1615
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1616
|
+
<div class="tsd-comment tsd-typography"><p>Call ID</p>
|
|
1617
|
+
</div></li>
|
|
1618
|
+
<li><span><span class="tsd-kind-parameter">digits</span>: <span class="tsd-signature-type">string</span></span>
|
|
1619
|
+
<div class="tsd-comment tsd-typography"><p>DTMF digits</p>
|
|
1620
|
+
</div></li></ul></div>
|
|
1621
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1622
|
+
|
|
1623
|
+
<div class="tsd-comment tsd-typography">
|
|
1624
|
+
<div class="tsd-tag-example">
|
|
1625
|
+
<h4 class="tsd-anchor-link" id="example-38">Example<a href="#example-38" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const callId = 'callId';
|
|
1626
|
+
await client.sendDTMF(callId, '1234');
|
|
1627
|
+
</code><button type="button">Copy</button></pre>
|
|
1628
|
+
|
|
1629
|
+
</div></div><aside class="tsd-sources">
|
|
1630
|
+
<p>Inherited from vonage.CombinedClientJS.sendDTMF</p></aside></div></li></ul></section>
|
|
1631
|
+
<section class="tsd-panel tsd-member">
|
|
1632
|
+
<h3 class="tsd-anchor-link" id="servercall"><span>server<wbr/>Call</span><a href="#servercall" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1633
|
+
<ul class="tsd-signatures">
|
|
1634
|
+
<li class="">
|
|
1635
|
+
<div class="tsd-signature tsd-anchor-link" id="servercall-1"><span class="tsd-kind-call-signature">serverCall</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">context</span><span class="tsd-signature-symbol">?:</span> <a href="../types/Json.html" class="tsd-signature-type tsd-kind-type-alias">Json</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><a href="#servercall-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1636
|
+
<div class="tsd-description">
|
|
1637
|
+
<div class="tsd-comment tsd-typography"><p>Make a server call to the Vonage API.
|
|
337
1638
|
This is used to initiate a call using the Voice API and NCCO.</p>
|
|
338
|
-
</div
|
|
339
|
-
|
|
340
|
-
<
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
</div
|
|
345
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Inherited from vonage.CombinedClientJS.unmute</p></aside></li></ul></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-alpha" name="alpha" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Alpha</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-beta" name="beta" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Beta</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#emergencyCore" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>emergency<wbr/>Core</span></a><a href="#clearCallbacks" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>clear<wbr/>Callbacks</span></a><a href="#createSession" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Session</span></a><a href="#getConversation" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversation</span></a><a href="#off" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>off</span></a><a href="#on" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>on</span></a><a href="#setConfig" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Config</span></a><a href="#updateConversation" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>update<wbr/>Conversation</span></a><a href="#createConversation" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Conversation</span></a><a href="#deleteConversation" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>delete<wbr/>Conversation</span></a><a href="#deleteEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>delete<wbr/>Event</span></a><a href="#getConversationEvents" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversation<wbr/>Events</span></a><a href="#getConversationMember" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversation<wbr/>Member</span></a><a href="#getConversationMembers" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversation<wbr/>Members</span></a><a href="#getConversations" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversations</span></a><a href="#inviteToConversation" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>invite<wbr/>To<wbr/>Conversation</span></a><a href="#joinConversation" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>join<wbr/>Conversation</span></a><a href="#leaveConversation" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>leave<wbr/>Conversation</span></a><a href="#sendCustomEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Custom<wbr/>Event</span></a><a href="#sendEphemeralEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Ephemeral<wbr/>Event</span></a><a href="#sendMessageAudioEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Audio<wbr/>Event</span></a><a href="#sendMessageCustomEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Custom<wbr/>Event</span></a><a href="#sendMessageFileEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>File<wbr/>Event</span></a><a href="#sendMessageImageEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Image<wbr/>Event</span></a><a href="#sendMessageLocationEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Location<wbr/>Event</span></a><a href="#sendMessageSeenEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Seen<wbr/>Event</span></a><a href="#sendMessageTemplateEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Template<wbr/>Event</span></a><a href="#sendMessageTextEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Text<wbr/>Event</span></a><a href="#sendMessageVCardEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>MessageVCard<wbr/>Event</span></a><a href="#sendMessageVideoEvent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Video<wbr/>Event</span></a><a href="#disableEarmuffEmergencyCall" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Earmuff<wbr/>Emergency<wbr/>Call</span></a><a href="#emergencyCall" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>emergency<wbr/>Call</span></a><a href="#enableEarmuffEmergencyCall" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Earmuff<wbr/>Emergency<wbr/>Call</span></a><a href="#hangupEmergencyCall" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>hangup<wbr/>Emergency<wbr/>Call</span></a><a href="#muteEmergencyCall" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mute<wbr/>Emergency<wbr/>Call</span></a><a href="#reconnectEmergencyCall" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>reconnect<wbr/>Emergency<wbr/>Call</span></a><a href="#unmuteEmergencyCall" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>unmute<wbr/>Emergency<wbr/>Call</span></a><a href="#answer" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>answer</span></a><a href="#disableAutoGainControl" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Auto<wbr/>Gain<wbr/>Control</span></a><a href="#disableEarmuff" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Earmuff</span></a><a href="#disableEchoCancellation" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Echo<wbr/>Cancellation</span></a><a href="#disableNoiseSuppression" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Noise<wbr/>Suppression</span></a><a href="#enableAutoGainControl" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Auto<wbr/>Gain<wbr/>Control</span></a><a href="#enableEarmuff" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Earmuff</span></a><a href="#enableEchoCancellation" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Echo<wbr/>Cancellation</span></a><a href="#enableNoiseSuppression" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Noise<wbr/>Suppression</span></a><a href="#getAudioOutputElement" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Audio<wbr/>Output<wbr/>Element</span></a><a href="#getCallLegs" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Call<wbr/>Legs</span></a><a href="#getLeg" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Leg</span></a><a href="#getPeerConnection" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Peer<wbr/>Connection</span></a><a href="#hangup" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>hangup</span></a><a href="#mute" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mute</span></a><a href="#reconnectCall" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>reconnect<wbr/>Call</span></a><a href="#reject" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>reject</span></a><a href="#say" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>say</span></a><a href="#sendDTMF" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>sendDTMF</span></a><a href="#serverCall" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>server<wbr/>Call</span></a><a href="#unmute" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>unmute</span></a></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@vonage/client-sdk - v0.0.0</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
|
|
1639
|
+
</div>
|
|
1640
|
+
<div class="tsd-parameters">
|
|
1641
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1642
|
+
<ul class="tsd-parameter-list">
|
|
1643
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">context</span>: <a href="../types/Json.html" class="tsd-signature-type tsd-kind-type-alias">Json</a></span>
|
|
1644
|
+
<div class="tsd-comment tsd-typography"><p>the context to send to the server passed as Custom data to the voice answer webhook</p>
|
|
1645
|
+
</div></li></ul></div>
|
|
1646
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>the <code>callId</code> of the call</p>
|
|
1647
|
+
|
|
1648
|
+
<div class="tsd-comment tsd-typography">
|
|
1649
|
+
<div class="tsd-tag-example">
|
|
1650
|
+
<h4 class="tsd-anchor-link" id="example-39">Example<a href="#example-39" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="txt">const context = {
|
|
1651
|
+
callee: 'user1'
|
|
1652
|
+
};
|
|
1653
|
+
|
|
1654
|
+
const callId = await client.serverCall(context);
|
|
1655
|
+
</code><button type="button">Copy</button></pre>
|
|
1656
|
+
|
|
1657
|
+
</div></div><aside class="tsd-sources">
|
|
1658
|
+
<p>Overrides vonage.CombinedClientJS.serverCall</p></aside></div></li></ul></section>
|
|
1659
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
1660
|
+
<h3 class="tsd-anchor-link" id="unmute"><span>unmute</span><a href="#unmute" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
1661
|
+
<ul class="tsd-signatures tsd-is-inherited">
|
|
1662
|
+
<li class="tsd-is-inherited">
|
|
1663
|
+
<div class="tsd-signature tsd-anchor-link" id="unmute-1"><span class="tsd-kind-call-signature">unmute</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#unmute-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
1664
|
+
<div class="tsd-description">
|
|
1665
|
+
<div class="tsd-comment tsd-typography"><p>Unmute your leg of a call</p>
|
|
1666
|
+
</div>
|
|
1667
|
+
<div class="tsd-parameters">
|
|
1668
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
1669
|
+
<ul class="tsd-parameter-list">
|
|
1670
|
+
<li><span><span class="tsd-kind-parameter">callId</span>: <span class="tsd-signature-type">string</span></span>
|
|
1671
|
+
<div class="tsd-comment tsd-typography"><p>Call ID</p>
|
|
1672
|
+
</div></li></ul></div>
|
|
1673
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>void</p>
|
|
1674
|
+
<aside class="tsd-sources">
|
|
1675
|
+
<p>Inherited from vonage.CombinedClientJS.unmute</p></aside></div></li></ul></section></section></details></div>
|
|
1676
|
+
<div class="col-sidebar">
|
|
1677
|
+
<div class="page-menu">
|
|
1678
|
+
<div class="tsd-navigation settings">
|
|
1679
|
+
<details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
1680
|
+
<h3>Settings</h3></summary>
|
|
1681
|
+
<div class="tsd-accordion-details">
|
|
1682
|
+
<div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
|
|
1683
|
+
<ul id="tsd-filter-options">
|
|
1684
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
|
|
1685
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
|
|
1686
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li>
|
|
1687
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-alpha" name="alpha" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Alpha</span></label></li>
|
|
1688
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-beta" name="beta" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Beta</span></label></li></ul></div>
|
|
1689
|
+
<div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
1690
|
+
<details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
1691
|
+
<h3>On This Page</h3></summary>
|
|
1692
|
+
<div class="tsd-accordion-details">
|
|
1693
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Accessors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Accessors</summary>
|
|
1694
|
+
<div><a href="#emergencycore" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>emergency<wbr/>Core</span></a></div></details>
|
|
1695
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary>
|
|
1696
|
+
<div><a href="#clearcallbacks"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>clear<wbr/>Callbacks</span></a><a href="#createsession"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Session</span></a><a href="#getconversation"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversation</span></a><a href="#off"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>off</span></a><a href="#on"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>on</span></a><a href="#setconfig"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Config</span></a><a href="#updateconversation"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>update<wbr/>Conversation</span></a></div></details>
|
|
1697
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Chat"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Chat</summary>
|
|
1698
|
+
<div><a href="#createconversation"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Conversation</span></a><a href="#deleteconversation"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>delete<wbr/>Conversation</span></a><a href="#deleteevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>delete<wbr/>Event</span></a><a href="#getconversationevents"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversation<wbr/>Events</span></a><a href="#getconversationmember" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversation<wbr/>Member</span></a><a href="#getconversationmembers"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversation<wbr/>Members</span></a><a href="#getconversations"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Conversations</span></a><a href="#invitetoconversation"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>invite<wbr/>To<wbr/>Conversation</span></a><a href="#joinconversation"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>join<wbr/>Conversation</span></a><a href="#leaveconversation"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>leave<wbr/>Conversation</span></a><a href="#sendcustomevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Custom<wbr/>Event</span></a><a href="#sendephemeralevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Ephemeral<wbr/>Event</span></a><a href="#sendmessageaudioevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Audio<wbr/>Event</span></a><a href="#sendmessagecustomevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Custom<wbr/>Event</span></a><a href="#sendmessagefileevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>File<wbr/>Event</span></a><a href="#sendmessageimageevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Image<wbr/>Event</span></a><a href="#sendmessagelocationevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Location<wbr/>Event</span></a><a href="#sendmessageseenevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Seen<wbr/>Event</span></a><a href="#sendmessagetemplateevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Template<wbr/>Event</span></a><a href="#sendmessagetextevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Text<wbr/>Event</span></a><a href="#sendmessagevcardevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>V<wbr/>Card<wbr/>Event</span></a><a href="#sendmessagevideoevent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message<wbr/>Video<wbr/>Event</span></a></div></details>
|
|
1699
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Emergency"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Emergency</summary>
|
|
1700
|
+
<div><a href="#disableearmuffemergencycall"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Earmuff<wbr/>Emergency<wbr/>Call</span></a><a href="#emergencycall"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>emergency<wbr/>Call</span></a><a href="#enableearmuffemergencycall"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Earmuff<wbr/>Emergency<wbr/>Call</span></a><a href="#hangupemergencycall"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>hangup<wbr/>Emergency<wbr/>Call</span></a><a href="#muteemergencycall"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mute<wbr/>Emergency<wbr/>Call</span></a><a href="#reconnectemergencycall"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>reconnect<wbr/>Emergency<wbr/>Call</span></a><a href="#unmuteemergencycall"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>unmute<wbr/>Emergency<wbr/>Call</span></a></div></details>
|
|
1701
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Voice"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Voice</summary>
|
|
1702
|
+
<div><a href="#answer" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>answer</span></a><a href="#disableautogaincontrol"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Auto<wbr/>Gain<wbr/>Control</span></a><a href="#disableearmuff" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Earmuff</span></a><a href="#disableechocancellation"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Echo<wbr/>Cancellation</span></a><a href="#disablenoisesuppression"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>disable<wbr/>Noise<wbr/>Suppression</span></a><a href="#enableautogaincontrol"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Auto<wbr/>Gain<wbr/>Control</span></a><a href="#enableearmuff" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Earmuff</span></a><a href="#enableechocancellation"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Echo<wbr/>Cancellation</span></a><a href="#enablenoisesuppression"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enable<wbr/>Noise<wbr/>Suppression</span></a><a href="#getaudiooutputelement"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Audio<wbr/>Output<wbr/>Element</span></a><a href="#getcalllegs"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Call<wbr/>Legs</span></a><a href="#getleg"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Leg</span></a><a href="#getpeerconnection"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Peer<wbr/>Connection</span></a><a href="#hangup"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>hangup</span></a><a href="#mute" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mute</span></a><a href="#reconnectcall" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>reconnect<wbr/>Call</span></a><a href="#reject" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>reject</span></a><a href="#say"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>say</span></a><a href="#senddtmf" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>DTMF</span></a><a href="#servercall"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>server<wbr/>Call</span></a><a href="#unmute" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>unmute</span></a></div></details></div></details></div>
|
|
1703
|
+
<div class="site-menu">
|
|
1704
|
+
<nav class="tsd-navigation"><a href="../modules.html">@vonage/client-sdk - v0.0.0</a>
|
|
1705
|
+
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
1706
|
+
<li>Loading...</li></ul></nav></div></div></div><footer></footer>
|
|
1707
|
+
<div class="overlay"></div></body></html>
|