@vonage/client-sdk 1.2.1-beta.7 → 1.2.1-snapshot.100.0
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/README.md +11 -8
- package/api_docs/ts/.nojekyll +1 -0
- package/api_docs/ts/assets/highlight.css +127 -0
- package/api_docs/ts/assets/main.js +59 -0
- package/api_docs/ts/assets/navigation.js +1 -0
- package/api_docs/ts/assets/search.js +1 -0
- package/api_docs/ts/assets/style.css +1394 -0
- package/api_docs/ts/classes/ClientConfig.html +13 -0
- package/api_docs/ts/classes/ClientInitConfig.html +12 -0
- package/api_docs/ts/classes/VonageClient.html +308 -0
- package/api_docs/ts/functions/none.html +2 -0
- package/api_docs/ts/functions/setDefaultLoggingLevel.html +3 -0
- package/api_docs/ts/functions/setVonageClientLoggingLevel.html +3 -0
- package/api_docs/ts/functions/some.html +3 -0
- package/api_docs/ts/index.html +33 -0
- package/api_docs/ts/interfaces/CallSayParams.html +8 -0
- package/api_docs/ts/interfaces/Channel.html +8 -0
- package/api_docs/ts/interfaces/ClientConfigObject.html +18 -0
- package/api_docs/ts/interfaces/ClientInitConfigObject.html +24 -0
- package/api_docs/ts/interfaces/Conversation.html +20 -0
- package/api_docs/ts/interfaces/ConversationProperties.html +8 -0
- package/api_docs/ts/interfaces/ConversationTimestamp.html +5 -0
- package/api_docs/ts/interfaces/ConversationsPage.html +8 -0
- package/api_docs/ts/interfaces/CreateConversationParameters.html +15 -0
- package/api_docs/ts/interfaces/CustomConversationEvent.html +17 -0
- package/api_docs/ts/interfaces/EmbeddedInfo.html +9 -0
- package/api_docs/ts/interfaces/EphemeralConversationEvent.html +13 -0
- package/api_docs/ts/interfaces/EventDeleteConversationEvent.html +15 -0
- package/api_docs/ts/interfaces/EventsPage.html +8 -0
- package/api_docs/ts/interfaces/GetConversationEventsParameters.html +14 -0
- package/api_docs/ts/interfaces/GetConversationMembersParameters.html +8 -0
- package/api_docs/ts/interfaces/GetConversationsParameters.html +12 -0
- package/api_docs/ts/interfaces/Leg.html +20 -0
- package/api_docs/ts/interfaces/LegChannel.html +8 -0
- package/api_docs/ts/interfaces/Location.html +6 -0
- package/api_docs/ts/interfaces/Member.html +12 -0
- package/api_docs/ts/interfaces/MemberChannel.html +8 -0
- package/api_docs/ts/interfaces/MemberEventBody.html +6 -0
- package/api_docs/ts/interfaces/MemberInvitedEvent.html +15 -0
- package/api_docs/ts/interfaces/MemberJoinedEvent.html +15 -0
- package/api_docs/ts/interfaces/MemberLeftEvent.html +15 -0
- package/api_docs/ts/interfaces/MemberTimestamp.html +5 -0
- package/api_docs/ts/interfaces/MembersPage.html +8 -0
- package/api_docs/ts/interfaces/MessageAudioEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageAudioEventBody.html +6 -0
- package/api_docs/ts/interfaces/MessageCustomEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageCustomEventBody.html +6 -0
- package/api_docs/ts/interfaces/MessageFileEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageFileEventBody.html +7 -0
- package/api_docs/ts/interfaces/MessageImageEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageImageEventBody.html +7 -0
- package/api_docs/ts/interfaces/MessageLocationEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageLocationEventBody.html +7 -0
- package/api_docs/ts/interfaces/MessageTemplateEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageTemplateEventBody.html +10 -0
- package/api_docs/ts/interfaces/MessageTextEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageTextEventBody.html +7 -0
- package/api_docs/ts/interfaces/MessageVCardEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageVCardEventBody.html +7 -0
- package/api_docs/ts/interfaces/MessageVideoEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageVideoEventBody.html +7 -0
- package/api_docs/ts/interfaces/RTCQuality.html +11 -0
- package/api_docs/ts/interfaces/RtcStats.html +11 -0
- package/api_docs/ts/interfaces/System.html +7 -0
- package/api_docs/ts/interfaces/Template.html +4 -0
- package/api_docs/ts/interfaces/UpdateConversationParameters.html +17 -0
- package/api_docs/ts/interfaces/User.html +16 -0
- package/api_docs/ts/interfaces/UserChannels.html +14 -0
- package/api_docs/ts/interfaces/UserTimestamp.html +5 -0
- package/api_docs/ts/interfaces/VonageEvent.html +2 -0
- package/api_docs/ts/interfaces/VonageLogger.html +10 -0
- package/api_docs/ts/interfaces/Whatsapp.html +4 -0
- package/api_docs/ts/modules.html +82 -0
- package/api_docs/ts/types/ChannelType.html +2 -0
- package/api_docs/ts/types/ConfigRegion.html +3 -0
- package/api_docs/ts/types/ConversationEvent.html +2 -0
- package/api_docs/ts/types/ConversationState.html +2 -0
- package/api_docs/ts/types/CustomData.html +3 -0
- package/api_docs/ts/types/From.html +2 -0
- package/api_docs/ts/types/Json.html +2 -0
- package/api_docs/ts/types/JsonValue.html +2 -0
- package/api_docs/ts/types/LoggingLevel.html +4 -0
- package/api_docs/ts/types/MemberState.html +2 -0
- package/api_docs/ts/types/NonPersistentConversationEvent.html +2 -0
- package/api_docs/ts/types/Option.html +3 -0
- package/api_docs/ts/types/OrderBy.html +2 -0
- package/api_docs/ts/types/PersistentConversationEvent.html +2 -0
- package/api_docs/ts/types/PresentingOrder.html +2 -0
- package/api_docs/ts/types/Topics.html +2 -0
- package/api_docs/ts/variables/Topics-1.html +2 -0
- package/dist/client/VonageClient.d.ts +250 -30
- package/dist/client/index.cjs +27917 -23291
- package/dist/client/index.mjs +27911 -23292
- package/dist/coreExtend.d.ts +9 -3
- package/dist/kotlin/JsUnions.d.ts +137 -96
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +239 -138
- package/dist/lib/MediaClient.d.ts +1 -1
- package/dist/lib/SocketClient.d.ts +7 -2
- package/dist/utils/ClientConfig.d.ts +69 -23
- package/dist/utils/ConversationEventBodies.d.ts +134 -0
- package/dist/utils/ConversationModels.d.ts +137 -5
- package/dist/utils/ErrorModels.d.ts +1 -0
- package/dist/utils/JsonUtils.d.ts +15 -0
- package/dist/utils/Option.d.ts +20 -0
- package/dist/utils/RequestParameterModels.d.ts +108 -0
- package/dist/utils/index.d.ts +6 -2
- package/dist/utils/logging.d.ts +53 -1
- package/dist/vonageClientSDK.js +27431 -22683
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +27425 -22684
- package/package.json +7 -3
- package/scripts/replaceAllDoNotUseOrImplement.js +25 -0
- package/typedoc.json +43 -0
- package/dist/global.d.ts +0 -7
- package/dist/lib/ConnectivityManager.d.ts +0 -11
package/dist/coreExtend.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import './kotlin/clientsdk-clientcore_js';
|
|
2
|
+
import { Json as InternalJson } from './utils/JsonUtils';
|
|
2
3
|
declare module './kotlin/clientsdk-clientcore_js' {
|
|
4
|
+
type Json = InternalJson;
|
|
3
5
|
namespace vonage {
|
|
4
6
|
interface CombinedClientJS {
|
|
5
7
|
/**
|
|
6
8
|
* Mute your leg of a call
|
|
7
9
|
*
|
|
8
10
|
* @example
|
|
9
|
-
* [[include:
|
|
11
|
+
* [[include: snippet_Mute.txt]]
|
|
10
12
|
*
|
|
11
13
|
* @param callId - Call ID
|
|
12
14
|
* @returns void
|
|
@@ -24,7 +26,7 @@ declare module './kotlin/clientsdk-clientcore_js' {
|
|
|
24
26
|
* Earmuff your leg of a call
|
|
25
27
|
*
|
|
26
28
|
* @example
|
|
27
|
-
* [[include:
|
|
29
|
+
* [[include: snippet_EnableEarmuff.txt]]
|
|
28
30
|
*
|
|
29
31
|
* @param callId - Call ID
|
|
30
32
|
* @returns void
|
|
@@ -33,6 +35,10 @@ declare module './kotlin/clientsdk-clientcore_js' {
|
|
|
33
35
|
enableEarmuff(callId: string): Promise<void>;
|
|
34
36
|
/**
|
|
35
37
|
* Unearmuff your leg of a call
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* [[include: snippet_DisableEarmuff.txt]]
|
|
41
|
+
*
|
|
36
42
|
* @param callId - Call ID
|
|
37
43
|
* @returns void
|
|
38
44
|
* @group Voice
|
|
@@ -42,7 +48,7 @@ declare module './kotlin/clientsdk-clientcore_js' {
|
|
|
42
48
|
* Send a string of digits to a call via DTMF
|
|
43
49
|
*
|
|
44
50
|
* @example
|
|
45
|
-
* [[include:
|
|
51
|
+
* [[include: snippet_Dtmf.txt]]
|
|
46
52
|
*
|
|
47
53
|
* @param callId - Call ID
|
|
48
54
|
* @param digits - DTMF digits
|
|
@@ -2,9 +2,9 @@ import { vonage } from './clientsdk-clientcore_js';
|
|
|
2
2
|
/**
|
|
3
3
|
* The EmbeddedInfo type
|
|
4
4
|
*
|
|
5
|
-
* @property kind
|
|
6
|
-
* @property memberId
|
|
7
|
-
* @property user
|
|
5
|
+
* @property kind The kind property of EmbeddedInfo
|
|
6
|
+
* @property memberId The memberId property of EmbeddedInfo
|
|
7
|
+
* @property user The user property of EmbeddedInfo
|
|
8
8
|
* @interface
|
|
9
9
|
*/
|
|
10
10
|
export type EmbeddedInfo = {
|
|
@@ -13,62 +13,87 @@ export type EmbeddedInfo = {
|
|
|
13
13
|
/**
|
|
14
14
|
* The System type
|
|
15
15
|
*
|
|
16
|
-
* @property
|
|
16
|
+
* @property kind The kind property of System
|
|
17
17
|
* @interface
|
|
18
18
|
*/
|
|
19
19
|
export type System = {
|
|
20
20
|
kind: 'system';
|
|
21
21
|
} & typeof vonage.SystemJS;
|
|
22
22
|
/**
|
|
23
|
-
* A From is a union of EmbeddedInfo, System
|
|
24
|
-
* @interface
|
|
23
|
+
* A From is a discriminated union of {@link EmbeddedInfo}, {@link System}
|
|
25
24
|
*/
|
|
26
25
|
export type From = EmbeddedInfo | System;
|
|
27
26
|
/**
|
|
28
27
|
* The EphemeralConversationEvent type
|
|
29
28
|
*
|
|
30
|
-
* @property kind
|
|
31
|
-
* @property timestamp
|
|
32
|
-
* @property conversationId
|
|
33
|
-
* @property from
|
|
34
|
-
* @property body
|
|
29
|
+
* @property kind The kind property of EphemeralConversationEvent
|
|
30
|
+
* @property timestamp The timestamp property of EphemeralConversationEvent
|
|
31
|
+
* @property conversationId The conversationId property of EphemeralConversationEvent
|
|
32
|
+
* @property from The {@link From} property of EphemeralConversationEvent
|
|
33
|
+
* @property body The body property of EphemeralConversationEvent
|
|
35
34
|
* @interface
|
|
35
|
+
* @group Chat
|
|
36
36
|
*/
|
|
37
37
|
export type EphemeralConversationEvent = {
|
|
38
38
|
kind: 'ephemeral';
|
|
39
39
|
from: From;
|
|
40
40
|
} & vonage.EphemeralConversationEventJS;
|
|
41
41
|
/**
|
|
42
|
-
* A NonPersistentConversationEvent is a
|
|
43
|
-
* @
|
|
42
|
+
* A NonPersistentConversationEvent is a {@link EphemeralConversationEvent}
|
|
43
|
+
* @group Chat
|
|
44
44
|
*/
|
|
45
45
|
export type NonPersistentConversationEvent = EphemeralConversationEvent;
|
|
46
|
+
import { MessageAudioEventBody } from '../utils/ConversationEventBodies';
|
|
47
|
+
import { MessageFileEventBody } from '../utils/ConversationEventBodies';
|
|
48
|
+
import { MessageImageEventBody } from '../utils/ConversationEventBodies';
|
|
49
|
+
import { MessageLocationEventBody } from '../utils/ConversationEventBodies';
|
|
50
|
+
import { MessageTemplateEventBody } from '../utils/ConversationEventBodies';
|
|
51
|
+
import { MessageVCardEventBody } from '../utils/ConversationEventBodies';
|
|
52
|
+
import { MessageVideoEventBody } from '../utils/ConversationEventBodies';
|
|
46
53
|
/**
|
|
47
54
|
* The CustomConversationEvent type
|
|
48
55
|
*
|
|
49
|
-
* @property kind
|
|
50
|
-
* @property id
|
|
51
|
-
* @property timestamp
|
|
52
|
-
* @property conversationId
|
|
53
|
-
* @property from
|
|
54
|
-
* @property eventType
|
|
55
|
-
* @property body
|
|
56
|
+
* @property kind The kind property of CustomConversationEvent
|
|
57
|
+
* @property id The id property of CustomConversationEvent
|
|
58
|
+
* @property timestamp The timestamp property of CustomConversationEvent
|
|
59
|
+
* @property conversationId The conversationId property of CustomConversationEvent
|
|
60
|
+
* @property from The {@link From} property of CustomConversationEvent
|
|
61
|
+
* @property eventType The eventType property of CustomConversationEvent
|
|
62
|
+
* @property body The body property of CustomConversationEvent
|
|
56
63
|
* @interface
|
|
64
|
+
* @group Chat
|
|
57
65
|
*/
|
|
58
66
|
export type CustomConversationEvent = {
|
|
59
67
|
kind: 'custom';
|
|
60
68
|
from: From;
|
|
61
69
|
} & vonage.CustomConversationEventJS;
|
|
70
|
+
/**
|
|
71
|
+
* The EventDeleteConversationEvent type
|
|
72
|
+
*
|
|
73
|
+
* @property kind The kind property of EventDeleteConversationEvent
|
|
74
|
+
* @property id The id property of EventDeleteConversationEvent
|
|
75
|
+
* @property timestamp The timestamp property of EventDeleteConversationEvent
|
|
76
|
+
* @property conversationId The conversationId property of EventDeleteConversationEvent
|
|
77
|
+
* @property from The {@link From} property of EventDeleteConversationEvent
|
|
78
|
+
* @property body The body property of EventDeleteConversationEvent
|
|
79
|
+
* @interface
|
|
80
|
+
* @group Chat
|
|
81
|
+
*/
|
|
82
|
+
export type EventDeleteConversationEvent = {
|
|
83
|
+
kind: 'event:delete';
|
|
84
|
+
from: From;
|
|
85
|
+
} & vonage.EventDeleteConversationEventJS;
|
|
62
86
|
/**
|
|
63
87
|
* The MemberInvitedEvent type
|
|
64
88
|
*
|
|
65
|
-
* @property kind
|
|
89
|
+
* @property kind The kind property of MemberInvitedEvent
|
|
66
90
|
* @property id The event id
|
|
67
91
|
* @property timestamp The event timestamp
|
|
68
92
|
* @property conversationId The conversation id
|
|
69
93
|
* @property from The event sender
|
|
70
94
|
* @property body The invited member
|
|
71
95
|
* @interface
|
|
96
|
+
* @group Chat
|
|
72
97
|
*/
|
|
73
98
|
export type MemberInvitedEvent = {
|
|
74
99
|
kind: 'member:invited';
|
|
@@ -77,13 +102,14 @@ export type MemberInvitedEvent = {
|
|
|
77
102
|
/**
|
|
78
103
|
* The MemberJoinedEvent type
|
|
79
104
|
*
|
|
80
|
-
* @property kind
|
|
81
|
-
* @property id
|
|
82
|
-
* @property timestamp
|
|
83
|
-
* @property conversationId
|
|
84
|
-
* @property from
|
|
85
|
-
* @property body
|
|
105
|
+
* @property kind The kind property of MemberJoinedEvent
|
|
106
|
+
* @property id The id property of MemberJoinedEvent
|
|
107
|
+
* @property timestamp The timestamp property of MemberJoinedEvent
|
|
108
|
+
* @property conversationId The conversationId property of MemberJoinedEvent
|
|
109
|
+
* @property from The {@link From} property of MemberJoinedEvent
|
|
110
|
+
* @property body The body property of MemberJoinedEvent
|
|
86
111
|
* @interface
|
|
112
|
+
* @group Chat
|
|
87
113
|
*/
|
|
88
114
|
export type MemberJoinedEvent = {
|
|
89
115
|
kind: 'member:joined';
|
|
@@ -92,13 +118,14 @@ export type MemberJoinedEvent = {
|
|
|
92
118
|
/**
|
|
93
119
|
* The MemberLeftEvent type
|
|
94
120
|
*
|
|
95
|
-
* @property kind
|
|
96
|
-
* @property id
|
|
97
|
-
* @property timestamp
|
|
98
|
-
* @property conversationId
|
|
99
|
-
* @property from
|
|
100
|
-
* @property body
|
|
121
|
+
* @property kind The kind property of MemberLeftEvent
|
|
122
|
+
* @property id The id property of MemberLeftEvent
|
|
123
|
+
* @property timestamp The timestamp property of MemberLeftEvent
|
|
124
|
+
* @property conversationId The conversationId property of MemberLeftEvent
|
|
125
|
+
* @property from The {@link From} property of MemberLeftEvent
|
|
126
|
+
* @property body The body property of MemberLeftEvent
|
|
101
127
|
* @interface
|
|
128
|
+
* @group Chat
|
|
102
129
|
*/
|
|
103
130
|
export type MemberLeftEvent = {
|
|
104
131
|
kind: 'member:left';
|
|
@@ -107,28 +134,31 @@ export type MemberLeftEvent = {
|
|
|
107
134
|
/**
|
|
108
135
|
* The MessageAudioEvent type
|
|
109
136
|
*
|
|
110
|
-
* @property kind
|
|
111
|
-
* @property id
|
|
112
|
-
* @property timestamp
|
|
113
|
-
* @property conversationId
|
|
114
|
-
* @property from
|
|
115
|
-
* @property body
|
|
137
|
+
* @property kind The kind property of MessageAudioEvent
|
|
138
|
+
* @property id The id property of MessageAudioEvent
|
|
139
|
+
* @property timestamp The timestamp property of MessageAudioEvent
|
|
140
|
+
* @property conversationId The conversationId property of MessageAudioEvent
|
|
141
|
+
* @property from The {@link From} property of MessageAudioEvent
|
|
142
|
+
* @property body The body property of MessageAudioEvent
|
|
116
143
|
* @interface
|
|
144
|
+
* @group Chat
|
|
117
145
|
*/
|
|
118
146
|
export type MessageAudioEvent = {
|
|
119
147
|
kind: 'message:audio';
|
|
120
148
|
from: From;
|
|
149
|
+
body: MessageAudioEventBody;
|
|
121
150
|
} & vonage.MessageAudioEventJS;
|
|
122
151
|
/**
|
|
123
152
|
* The MessageCustomEvent type
|
|
124
153
|
*
|
|
125
|
-
* @property kind
|
|
126
|
-
* @property id
|
|
127
|
-
* @property timestamp
|
|
128
|
-
* @property conversationId
|
|
129
|
-
* @property from
|
|
130
|
-
* @property body
|
|
154
|
+
* @property kind The kind property of MessageCustomEvent
|
|
155
|
+
* @property id The id property of MessageCustomEvent
|
|
156
|
+
* @property timestamp The timestamp property of MessageCustomEvent
|
|
157
|
+
* @property conversationId The conversationId property of MessageCustomEvent
|
|
158
|
+
* @property from The {@link From} property of MessageCustomEvent
|
|
159
|
+
* @property body The body property of MessageCustomEvent
|
|
131
160
|
* @interface
|
|
161
|
+
* @group Chat
|
|
132
162
|
*/
|
|
133
163
|
export type MessageCustomEvent = {
|
|
134
164
|
kind: 'message:custom';
|
|
@@ -137,73 +167,82 @@ export type MessageCustomEvent = {
|
|
|
137
167
|
/**
|
|
138
168
|
* The MessageFileEvent type
|
|
139
169
|
*
|
|
140
|
-
* @property kind
|
|
141
|
-
* @property id
|
|
142
|
-
* @property timestamp
|
|
143
|
-
* @property conversationId
|
|
144
|
-
* @property from
|
|
145
|
-
* @property body
|
|
170
|
+
* @property kind The kind property of MessageFileEvent
|
|
171
|
+
* @property id The id property of MessageFileEvent
|
|
172
|
+
* @property timestamp The timestamp property of MessageFileEvent
|
|
173
|
+
* @property conversationId The conversationId property of MessageFileEvent
|
|
174
|
+
* @property from The {@link From} property of MessageFileEvent
|
|
175
|
+
* @property body The body property of MessageFileEvent
|
|
146
176
|
* @interface
|
|
177
|
+
* @group Chat
|
|
147
178
|
*/
|
|
148
179
|
export type MessageFileEvent = {
|
|
149
180
|
kind: 'message:file';
|
|
150
181
|
from: From;
|
|
182
|
+
body: MessageFileEventBody;
|
|
151
183
|
} & vonage.MessageFileEventJS;
|
|
152
184
|
/**
|
|
153
185
|
* The MessageImageEvent type
|
|
154
186
|
*
|
|
155
|
-
* @property kind
|
|
156
|
-
* @property id
|
|
157
|
-
* @property timestamp
|
|
158
|
-
* @property conversationId
|
|
159
|
-
* @property from
|
|
160
|
-
* @property body
|
|
187
|
+
* @property kind The kind property of MessageImageEvent
|
|
188
|
+
* @property id The id property of MessageImageEvent
|
|
189
|
+
* @property timestamp The timestamp property of MessageImageEvent
|
|
190
|
+
* @property conversationId The conversationId property of MessageImageEvent
|
|
191
|
+
* @property from The {@link From} property of MessageImageEvent
|
|
192
|
+
* @property body The body property of MessageImageEvent
|
|
161
193
|
* @interface
|
|
194
|
+
* @group Chat
|
|
162
195
|
*/
|
|
163
196
|
export type MessageImageEvent = {
|
|
164
197
|
kind: 'message:image';
|
|
165
198
|
from: From;
|
|
199
|
+
body: MessageImageEventBody;
|
|
166
200
|
} & vonage.MessageImageEventJS;
|
|
167
201
|
/**
|
|
168
202
|
* The MessageLocationEvent type
|
|
169
203
|
*
|
|
170
|
-
* @property kind
|
|
171
|
-
* @property id
|
|
172
|
-
* @property timestamp
|
|
173
|
-
* @property conversationId
|
|
174
|
-
* @property from
|
|
175
|
-
* @property body
|
|
204
|
+
* @property kind The kind property of MessageLocationEvent
|
|
205
|
+
* @property id The id property of MessageLocationEvent
|
|
206
|
+
* @property timestamp The timestamp property of MessageLocationEvent
|
|
207
|
+
* @property conversationId The conversationId property of MessageLocationEvent
|
|
208
|
+
* @property from The {@link From} property of MessageLocationEvent
|
|
209
|
+
* @property body The body property of MessageLocationEvent
|
|
176
210
|
* @interface
|
|
211
|
+
* @group Chat
|
|
177
212
|
*/
|
|
178
213
|
export type MessageLocationEvent = {
|
|
179
214
|
kind: 'message:location';
|
|
180
215
|
from: From;
|
|
216
|
+
body: MessageLocationEventBody;
|
|
181
217
|
} & vonage.MessageLocationEventJS;
|
|
182
218
|
/**
|
|
183
219
|
* The MessageTemplateEvent type
|
|
184
220
|
*
|
|
185
|
-
* @property kind
|
|
186
|
-
* @property id
|
|
187
|
-
* @property timestamp
|
|
188
|
-
* @property conversationId
|
|
189
|
-
* @property from
|
|
190
|
-
* @property body
|
|
221
|
+
* @property kind The kind property of MessageTemplateEvent
|
|
222
|
+
* @property id The id property of MessageTemplateEvent
|
|
223
|
+
* @property timestamp The timestamp property of MessageTemplateEvent
|
|
224
|
+
* @property conversationId The conversationId property of MessageTemplateEvent
|
|
225
|
+
* @property from The {@link From} property of MessageTemplateEvent
|
|
226
|
+
* @property body The body property of MessageTemplateEvent
|
|
191
227
|
* @interface
|
|
228
|
+
* @group Chat
|
|
192
229
|
*/
|
|
193
230
|
export type MessageTemplateEvent = {
|
|
194
231
|
kind: 'message:template';
|
|
195
232
|
from: From;
|
|
233
|
+
body: MessageTemplateEventBody;
|
|
196
234
|
} & vonage.MessageTemplateEventJS;
|
|
197
235
|
/**
|
|
198
236
|
* The MessageTextEvent type
|
|
199
237
|
*
|
|
200
|
-
* @property kind
|
|
201
|
-
* @property id
|
|
202
|
-
* @property timestamp
|
|
203
|
-
* @property conversationId
|
|
204
|
-
* @property from
|
|
205
|
-
* @property body
|
|
238
|
+
* @property kind The kind property of MessageTextEvent
|
|
239
|
+
* @property id The id property of MessageTextEvent
|
|
240
|
+
* @property timestamp The timestamp property of MessageTextEvent
|
|
241
|
+
* @property conversationId The conversationId property of MessageTextEvent
|
|
242
|
+
* @property from The {@link From} property of MessageTextEvent
|
|
243
|
+
* @property body The body property of MessageTextEvent
|
|
206
244
|
* @interface
|
|
245
|
+
* @group Chat
|
|
207
246
|
*/
|
|
208
247
|
export type MessageTextEvent = {
|
|
209
248
|
kind: 'message:text';
|
|
@@ -212,50 +251,52 @@ export type MessageTextEvent = {
|
|
|
212
251
|
/**
|
|
213
252
|
* The MessageVCardEvent type
|
|
214
253
|
*
|
|
215
|
-
* @property kind
|
|
216
|
-
* @property id
|
|
217
|
-
* @property timestamp
|
|
218
|
-
* @property conversationId
|
|
219
|
-
* @property from
|
|
220
|
-
* @property body
|
|
254
|
+
* @property kind The kind property of MessageVCardEvent
|
|
255
|
+
* @property id The id property of MessageVCardEvent
|
|
256
|
+
* @property timestamp The timestamp property of MessageVCardEvent
|
|
257
|
+
* @property conversationId The conversationId property of MessageVCardEvent
|
|
258
|
+
* @property from The {@link From} property of MessageVCardEvent
|
|
259
|
+
* @property body The body property of MessageVCardEvent
|
|
221
260
|
* @interface
|
|
261
|
+
* @group Chat
|
|
222
262
|
*/
|
|
223
263
|
export type MessageVCardEvent = {
|
|
224
264
|
kind: 'message:vcard';
|
|
225
265
|
from: From;
|
|
266
|
+
body: MessageVCardEventBody;
|
|
226
267
|
} & vonage.MessageVCardEventJS;
|
|
227
268
|
/**
|
|
228
269
|
* The MessageVideoEvent type
|
|
229
270
|
*
|
|
230
|
-
* @property kind
|
|
231
|
-
* @property id
|
|
232
|
-
* @property timestamp
|
|
233
|
-
* @property conversationId
|
|
234
|
-
* @property from
|
|
235
|
-
* @property body
|
|
271
|
+
* @property kind The kind property of MessageVideoEvent
|
|
272
|
+
* @property id The id property of MessageVideoEvent
|
|
273
|
+
* @property timestamp The timestamp property of MessageVideoEvent
|
|
274
|
+
* @property conversationId The conversationId property of MessageVideoEvent
|
|
275
|
+
* @property from The {@link From} property of MessageVideoEvent
|
|
276
|
+
* @property body The body property of MessageVideoEvent
|
|
236
277
|
* @interface
|
|
278
|
+
* @group Chat
|
|
237
279
|
*/
|
|
238
280
|
export type MessageVideoEvent = {
|
|
239
281
|
kind: 'message:video';
|
|
240
282
|
from: From;
|
|
283
|
+
body: MessageVideoEventBody;
|
|
241
284
|
} & vonage.MessageVideoEventJS;
|
|
242
285
|
/**
|
|
243
|
-
* A PersistentConversationEvent is a union of CustomConversationEvent, MemberInvitedEvent, MemberJoinedEvent, MemberLeftEvent, MessageAudioEvent, MessageCustomEvent, MessageFileEvent, MessageImageEvent, MessageLocationEvent, MessageTemplateEvent, MessageTextEvent, MessageVCardEvent, MessageVideoEvent
|
|
244
|
-
* @
|
|
286
|
+
* A PersistentConversationEvent is a discriminated union of {@link CustomConversationEvent}, {@link EventDeleteConversationEvent}, {@link MemberInvitedEvent}, {@link MemberJoinedEvent}, {@link MemberLeftEvent}, {@link MessageAudioEvent}, {@link MessageCustomEvent}, {@link MessageFileEvent}, {@link MessageImageEvent}, {@link MessageLocationEvent}, {@link MessageTemplateEvent}, {@link MessageTextEvent}, {@link MessageVCardEvent}, {@link MessageVideoEvent}
|
|
287
|
+
* @group Chat
|
|
245
288
|
*/
|
|
246
|
-
export type PersistentConversationEvent = CustomConversationEvent | MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent | MessageAudioEvent | MessageCustomEvent | MessageFileEvent | MessageImageEvent | MessageLocationEvent | MessageTemplateEvent | MessageTextEvent | MessageVCardEvent | MessageVideoEvent;
|
|
289
|
+
export type PersistentConversationEvent = CustomConversationEvent | EventDeleteConversationEvent | MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent | MessageAudioEvent | MessageCustomEvent | MessageFileEvent | MessageImageEvent | MessageLocationEvent | MessageTemplateEvent | MessageTextEvent | MessageVCardEvent | MessageVideoEvent;
|
|
247
290
|
/**
|
|
248
|
-
* A ConversationEvent is a union of
|
|
249
|
-
* @
|
|
291
|
+
* A ConversationEvent is a union of {@link NonPersistentConversationEvent}, {@link PersistentConversationEvent}
|
|
292
|
+
* @group Chat
|
|
250
293
|
*/
|
|
251
294
|
export type ConversationEvent = NonPersistentConversationEvent | PersistentConversationEvent;
|
|
252
295
|
/**
|
|
253
|
-
* A ConversationState is a union of
|
|
254
|
-
* @interface
|
|
296
|
+
* A ConversationState is a union of 'ACTIVE', 'INACTIVE', 'DELETED'
|
|
255
297
|
*/
|
|
256
298
|
export type ConversationState = 'ACTIVE' | 'INACTIVE' | 'DELETED';
|
|
257
299
|
/**
|
|
258
|
-
* A MemberState is a union of
|
|
259
|
-
* @interface
|
|
300
|
+
* A MemberState is a union of 'INVITED', 'JOINED', 'LEFT', 'UNKNOWN'
|
|
260
301
|
*/
|
|
261
302
|
export type MemberState = 'INVITED' | 'JOINED' | 'LEFT' | 'UNKNOWN';
|