@vonage/client-sdk 1.5.0-alpha.0 → 1.5.0-alpha.1
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/navigation.js +1 -1
- package/api_docs/ts/assets/search.js +1 -1
- package/api_docs/ts/interfaces/CustomConversationEvent.html +15 -15
- package/api_docs/ts/interfaces/EmbeddedInfo.html +6 -6
- package/api_docs/ts/interfaces/EphemeralConversationEvent.html +11 -11
- package/api_docs/ts/interfaces/EventDeleteConversationEvent.html +13 -13
- package/api_docs/ts/interfaces/MemberInvitedEvent.html +13 -13
- package/api_docs/ts/interfaces/MemberJoinedEvent.html +13 -13
- package/api_docs/ts/interfaces/MemberLeftEvent.html +13 -13
- package/api_docs/ts/interfaces/MessageAudioEvent.html +13 -11
- package/api_docs/ts/interfaces/MessageCustomEvent.html +15 -13
- package/api_docs/ts/interfaces/MessageFileEvent.html +13 -11
- package/api_docs/ts/interfaces/MessageImageEvent.html +13 -11
- package/api_docs/ts/interfaces/MessageLocationEvent.html +13 -11
- package/api_docs/ts/interfaces/MessageTemplateEvent.html +14 -11
- package/api_docs/ts/interfaces/MessageTextEvent.html +15 -13
- package/api_docs/ts/interfaces/MessageVCardEvent.html +13 -11
- package/api_docs/ts/interfaces/MessageVideoEvent.html +13 -11
- package/api_docs/ts/interfaces/System.html +2 -4
- package/api_docs/ts/modules.html +1 -0
- package/api_docs/ts/types/MemberStatus.html +2 -0
- package/dist/client/index.cjs +26522 -14660
- package/dist/client/index.mjs +26522 -14660
- package/dist/kotlin/JsUnions.d.ts +55 -34
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +49 -0
- package/dist/utils/ConversationEventBodies.d.ts +7 -0
- package/dist/vonageClientSDK.js +26365 -14504
- package/dist/vonageClientSDK.min.js +144 -1
- package/dist/vonageClientSDK.min.mjs +144 -1
- package/dist/vonageClientSDK.mjs +26365 -14504
- package/package.json +2 -1
- package/rollup.config.js +2 -1
|
@@ -7,18 +7,18 @@ import { vonage } from './clientsdk-clientcore_js';
|
|
|
7
7
|
* @property user The user property of EmbeddedInfo
|
|
8
8
|
* @interface
|
|
9
9
|
*/
|
|
10
|
-
export type EmbeddedInfo = {
|
|
10
|
+
export type EmbeddedInfo = Omit<vonage.EmbeddedInfoJS, 'kind'> & {
|
|
11
11
|
kind: 'embeddedInfo';
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
/**
|
|
14
14
|
* The System type
|
|
15
15
|
*
|
|
16
16
|
* @property kind The kind property of System
|
|
17
17
|
* @interface
|
|
18
18
|
*/
|
|
19
|
-
export type System = {
|
|
19
|
+
export type System = Omit<typeof vonage.SystemJS, 'kind'> & {
|
|
20
20
|
kind: 'system';
|
|
21
|
-
}
|
|
21
|
+
};
|
|
22
22
|
/**
|
|
23
23
|
* A From is a discriminated union of {@link EmbeddedInfo}, {@link System}
|
|
24
24
|
*/
|
|
@@ -34,20 +34,22 @@ export type From = EmbeddedInfo | System;
|
|
|
34
34
|
* @interface
|
|
35
35
|
* @group Chat
|
|
36
36
|
*/
|
|
37
|
-
export type EphemeralConversationEvent = {
|
|
37
|
+
export type EphemeralConversationEvent = Omit<vonage.EphemeralConversationEventJS, 'kind' | 'from'> & {
|
|
38
38
|
kind: 'ephemeral';
|
|
39
39
|
from: From;
|
|
40
|
-
}
|
|
40
|
+
};
|
|
41
41
|
/**
|
|
42
42
|
* A NonPersistentConversationEvent is a {@link EphemeralConversationEvent}
|
|
43
43
|
* @group Chat
|
|
44
44
|
*/
|
|
45
45
|
export type NonPersistentConversationEvent = EphemeralConversationEvent;
|
|
46
46
|
import { MessageAudioEventBody } from '../utils/ConversationEventBodies';
|
|
47
|
+
import { MemberStatus } from '../utils/ConversationEventBodies';
|
|
47
48
|
import { MessageFileEventBody } from '../utils/ConversationEventBodies';
|
|
48
49
|
import { MessageImageEventBody } from '../utils/ConversationEventBodies';
|
|
49
50
|
import { MessageLocationEventBody } from '../utils/ConversationEventBodies';
|
|
50
51
|
import { MessageTemplateEventBody } from '../utils/ConversationEventBodies';
|
|
52
|
+
import { MessageTextEventBody } from '../utils/ConversationEventBodies';
|
|
51
53
|
import { MessageVCardEventBody } from '../utils/ConversationEventBodies';
|
|
52
54
|
import { MessageVideoEventBody } from '../utils/ConversationEventBodies';
|
|
53
55
|
/**
|
|
@@ -63,10 +65,10 @@ import { MessageVideoEventBody } from '../utils/ConversationEventBodies';
|
|
|
63
65
|
* @interface
|
|
64
66
|
* @group Chat
|
|
65
67
|
*/
|
|
66
|
-
export type CustomConversationEvent = {
|
|
68
|
+
export type CustomConversationEvent = Omit<vonage.CustomConversationEventJS, 'kind' | 'from'> & {
|
|
67
69
|
kind: 'custom';
|
|
68
70
|
from: From;
|
|
69
|
-
}
|
|
71
|
+
};
|
|
70
72
|
/**
|
|
71
73
|
* The EventDeleteConversationEvent type
|
|
72
74
|
*
|
|
@@ -79,10 +81,10 @@ export type CustomConversationEvent = {
|
|
|
79
81
|
* @interface
|
|
80
82
|
* @group Chat
|
|
81
83
|
*/
|
|
82
|
-
export type EventDeleteConversationEvent = {
|
|
84
|
+
export type EventDeleteConversationEvent = Omit<vonage.EventDeleteConversationEventJS, 'kind' | 'from'> & {
|
|
83
85
|
kind: 'event:delete';
|
|
84
86
|
from: From;
|
|
85
|
-
}
|
|
87
|
+
};
|
|
86
88
|
/**
|
|
87
89
|
* The MemberInvitedEvent type
|
|
88
90
|
*
|
|
@@ -95,10 +97,10 @@ export type EventDeleteConversationEvent = {
|
|
|
95
97
|
* @interface
|
|
96
98
|
* @group Chat
|
|
97
99
|
*/
|
|
98
|
-
export type MemberInvitedEvent = {
|
|
100
|
+
export type MemberInvitedEvent = Omit<vonage.MemberInvitedEventJS, 'kind' | 'from'> & {
|
|
99
101
|
kind: 'member:invited';
|
|
100
102
|
from: From;
|
|
101
|
-
}
|
|
103
|
+
};
|
|
102
104
|
/**
|
|
103
105
|
* The MemberJoinedEvent type
|
|
104
106
|
*
|
|
@@ -111,10 +113,10 @@ export type MemberInvitedEvent = {
|
|
|
111
113
|
* @interface
|
|
112
114
|
* @group Chat
|
|
113
115
|
*/
|
|
114
|
-
export type MemberJoinedEvent = {
|
|
116
|
+
export type MemberJoinedEvent = Omit<vonage.MemberJoinedEventJS, 'kind' | 'from'> & {
|
|
115
117
|
kind: 'member:joined';
|
|
116
118
|
from: From;
|
|
117
|
-
}
|
|
119
|
+
};
|
|
118
120
|
/**
|
|
119
121
|
* The MemberLeftEvent type
|
|
120
122
|
*
|
|
@@ -127,10 +129,10 @@ export type MemberJoinedEvent = {
|
|
|
127
129
|
* @interface
|
|
128
130
|
* @group Chat
|
|
129
131
|
*/
|
|
130
|
-
export type MemberLeftEvent = {
|
|
132
|
+
export type MemberLeftEvent = Omit<vonage.MemberLeftEventJS, 'kind' | 'from'> & {
|
|
131
133
|
kind: 'member:left';
|
|
132
134
|
from: From;
|
|
133
|
-
}
|
|
135
|
+
};
|
|
134
136
|
/**
|
|
135
137
|
* The MessageAudioEvent type
|
|
136
138
|
*
|
|
@@ -140,14 +142,16 @@ export type MemberLeftEvent = {
|
|
|
140
142
|
* @property conversationId The conversationId property of MessageAudioEvent
|
|
141
143
|
* @property from The {@link From} property of MessageAudioEvent
|
|
142
144
|
* @property body The body property of MessageAudioEvent
|
|
145
|
+
* @property memberStatuses The memberStatuses property of MessageAudioEvent
|
|
143
146
|
* @interface
|
|
144
147
|
* @group Chat
|
|
145
148
|
*/
|
|
146
|
-
export type MessageAudioEvent = {
|
|
149
|
+
export type MessageAudioEvent = Omit<vonage.MessageAudioEventJS, 'kind' | 'from' | 'body' | 'memberStatuses'> & {
|
|
147
150
|
kind: 'message:audio';
|
|
148
151
|
from: From;
|
|
149
152
|
body: MessageAudioEventBody;
|
|
150
|
-
|
|
153
|
+
memberStatuses: MemberStatus;
|
|
154
|
+
};
|
|
151
155
|
/**
|
|
152
156
|
* The MessageCustomEvent type
|
|
153
157
|
*
|
|
@@ -157,13 +161,15 @@ export type MessageAudioEvent = {
|
|
|
157
161
|
* @property conversationId The conversationId property of MessageCustomEvent
|
|
158
162
|
* @property from The {@link From} property of MessageCustomEvent
|
|
159
163
|
* @property body The body property of MessageCustomEvent
|
|
164
|
+
* @property memberStatuses The memberStatuses property of MessageCustomEvent
|
|
160
165
|
* @interface
|
|
161
166
|
* @group Chat
|
|
162
167
|
*/
|
|
163
|
-
export type MessageCustomEvent = {
|
|
168
|
+
export type MessageCustomEvent = Omit<vonage.MessageCustomEventJS, 'kind' | 'from' | 'memberStatuses'> & {
|
|
164
169
|
kind: 'message:custom';
|
|
165
170
|
from: From;
|
|
166
|
-
|
|
171
|
+
memberStatuses: MemberStatus;
|
|
172
|
+
};
|
|
167
173
|
/**
|
|
168
174
|
* The MessageFileEvent type
|
|
169
175
|
*
|
|
@@ -173,14 +179,16 @@ export type MessageCustomEvent = {
|
|
|
173
179
|
* @property conversationId The conversationId property of MessageFileEvent
|
|
174
180
|
* @property from The {@link From} property of MessageFileEvent
|
|
175
181
|
* @property body The body property of MessageFileEvent
|
|
182
|
+
* @property memberStatuses The memberStatuses property of MessageFileEvent
|
|
176
183
|
* @interface
|
|
177
184
|
* @group Chat
|
|
178
185
|
*/
|
|
179
|
-
export type MessageFileEvent = {
|
|
186
|
+
export type MessageFileEvent = Omit<vonage.MessageFileEventJS, 'kind' | 'from' | 'body' | 'memberStatuses'> & {
|
|
180
187
|
kind: 'message:file';
|
|
181
188
|
from: From;
|
|
182
189
|
body: MessageFileEventBody;
|
|
183
|
-
|
|
190
|
+
memberStatuses: MemberStatus;
|
|
191
|
+
};
|
|
184
192
|
/**
|
|
185
193
|
* The MessageImageEvent type
|
|
186
194
|
*
|
|
@@ -190,14 +198,16 @@ export type MessageFileEvent = {
|
|
|
190
198
|
* @property conversationId The conversationId property of MessageImageEvent
|
|
191
199
|
* @property from The {@link From} property of MessageImageEvent
|
|
192
200
|
* @property body The body property of MessageImageEvent
|
|
201
|
+
* @property memberStatuses The memberStatuses property of MessageImageEvent
|
|
193
202
|
* @interface
|
|
194
203
|
* @group Chat
|
|
195
204
|
*/
|
|
196
|
-
export type MessageImageEvent = {
|
|
205
|
+
export type MessageImageEvent = Omit<vonage.MessageImageEventJS, 'kind' | 'from' | 'body' | 'memberStatuses'> & {
|
|
197
206
|
kind: 'message:image';
|
|
198
207
|
from: From;
|
|
199
208
|
body: MessageImageEventBody;
|
|
200
|
-
|
|
209
|
+
memberStatuses: MemberStatus;
|
|
210
|
+
};
|
|
201
211
|
/**
|
|
202
212
|
* The MessageLocationEvent type
|
|
203
213
|
*
|
|
@@ -207,14 +217,16 @@ export type MessageImageEvent = {
|
|
|
207
217
|
* @property conversationId The conversationId property of MessageLocationEvent
|
|
208
218
|
* @property from The {@link From} property of MessageLocationEvent
|
|
209
219
|
* @property body The body property of MessageLocationEvent
|
|
220
|
+
* @property memberStatuses The memberStatuses property of MessageLocationEvent
|
|
210
221
|
* @interface
|
|
211
222
|
* @group Chat
|
|
212
223
|
*/
|
|
213
|
-
export type MessageLocationEvent = {
|
|
224
|
+
export type MessageLocationEvent = Omit<vonage.MessageLocationEventJS, 'kind' | 'from' | 'body' | 'memberStatuses'> & {
|
|
214
225
|
kind: 'message:location';
|
|
215
226
|
from: From;
|
|
216
227
|
body: MessageLocationEventBody;
|
|
217
|
-
|
|
228
|
+
memberStatuses: MemberStatus;
|
|
229
|
+
};
|
|
218
230
|
/**
|
|
219
231
|
* The MessageTemplateEvent type
|
|
220
232
|
*
|
|
@@ -223,15 +235,17 @@ export type MessageLocationEvent = {
|
|
|
223
235
|
* @property timestamp The timestamp property of MessageTemplateEvent
|
|
224
236
|
* @property conversationId The conversationId property of MessageTemplateEvent
|
|
225
237
|
* @property from The {@link From} property of MessageTemplateEvent
|
|
238
|
+
* @property memberStatuses The memberStatuses property of MessageTemplateEvent
|
|
226
239
|
* @property body The body property of MessageTemplateEvent
|
|
227
240
|
* @interface
|
|
228
241
|
* @group Chat
|
|
229
242
|
*/
|
|
230
|
-
export type MessageTemplateEvent = {
|
|
243
|
+
export type MessageTemplateEvent = Omit<vonage.MessageTemplateEventJS, 'kind' | 'from' | 'memberStatuses' | 'body'> & {
|
|
231
244
|
kind: 'message:template';
|
|
232
245
|
from: From;
|
|
246
|
+
memberStatuses: MemberStatus;
|
|
233
247
|
body: MessageTemplateEventBody;
|
|
234
|
-
}
|
|
248
|
+
};
|
|
235
249
|
/**
|
|
236
250
|
* The MessageTextEvent type
|
|
237
251
|
*
|
|
@@ -241,13 +255,16 @@ export type MessageTemplateEvent = {
|
|
|
241
255
|
* @property conversationId The conversationId property of MessageTextEvent
|
|
242
256
|
* @property from The {@link From} property of MessageTextEvent
|
|
243
257
|
* @property body The body property of MessageTextEvent
|
|
258
|
+
* @property memberStatuses The memberStatuses property of MessageTextEvent
|
|
244
259
|
* @interface
|
|
245
260
|
* @group Chat
|
|
246
261
|
*/
|
|
247
|
-
export type MessageTextEvent = {
|
|
262
|
+
export type MessageTextEvent = Omit<vonage.MessageTextEventJS, 'kind' | 'from' | 'body' | 'memberStatuses'> & {
|
|
248
263
|
kind: 'message:text';
|
|
249
264
|
from: From;
|
|
250
|
-
|
|
265
|
+
body: MessageTextEventBody;
|
|
266
|
+
memberStatuses: MemberStatus;
|
|
267
|
+
};
|
|
251
268
|
/**
|
|
252
269
|
* The MessageVCardEvent type
|
|
253
270
|
*
|
|
@@ -257,14 +274,16 @@ export type MessageTextEvent = {
|
|
|
257
274
|
* @property conversationId The conversationId property of MessageVCardEvent
|
|
258
275
|
* @property from The {@link From} property of MessageVCardEvent
|
|
259
276
|
* @property body The body property of MessageVCardEvent
|
|
277
|
+
* @property memberStatuses The memberStatuses property of MessageVCardEvent
|
|
260
278
|
* @interface
|
|
261
279
|
* @group Chat
|
|
262
280
|
*/
|
|
263
|
-
export type MessageVCardEvent = {
|
|
281
|
+
export type MessageVCardEvent = Omit<vonage.MessageVCardEventJS, 'kind' | 'from' | 'body' | 'memberStatuses'> & {
|
|
264
282
|
kind: 'message:vcard';
|
|
265
283
|
from: From;
|
|
266
284
|
body: MessageVCardEventBody;
|
|
267
|
-
|
|
285
|
+
memberStatuses: MemberStatus;
|
|
286
|
+
};
|
|
268
287
|
/**
|
|
269
288
|
* The MessageVideoEvent type
|
|
270
289
|
*
|
|
@@ -274,14 +293,16 @@ export type MessageVCardEvent = {
|
|
|
274
293
|
* @property conversationId The conversationId property of MessageVideoEvent
|
|
275
294
|
* @property from The {@link From} property of MessageVideoEvent
|
|
276
295
|
* @property body The body property of MessageVideoEvent
|
|
296
|
+
* @property memberStatuses The memberStatuses property of MessageVideoEvent
|
|
277
297
|
* @interface
|
|
278
298
|
* @group Chat
|
|
279
299
|
*/
|
|
280
|
-
export type MessageVideoEvent = {
|
|
300
|
+
export type MessageVideoEvent = Omit<vonage.MessageVideoEventJS, 'kind' | 'from' | 'body' | 'memberStatuses'> & {
|
|
281
301
|
kind: 'message:video';
|
|
282
302
|
from: From;
|
|
283
303
|
body: MessageVideoEventBody;
|
|
284
|
-
|
|
304
|
+
memberStatuses: MemberStatus;
|
|
305
|
+
};
|
|
285
306
|
/**
|
|
286
307
|
* 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
308
|
* @group Chat
|
|
@@ -72,6 +72,46 @@ export declare namespace vonage {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
export declare namespace vonage {
|
|
75
|
+
abstract class EventStateTypeJS {
|
|
76
|
+
private constructor();
|
|
77
|
+
static get SEEN(): vonage.EventStateTypeJS & {
|
|
78
|
+
get name(): "SEEN";
|
|
79
|
+
get ordinal(): 0;
|
|
80
|
+
};
|
|
81
|
+
static get DELIVERED(): vonage.EventStateTypeJS & {
|
|
82
|
+
get name(): "DELIVERED";
|
|
83
|
+
get ordinal(): 1;
|
|
84
|
+
};
|
|
85
|
+
static get SUBMITTED(): vonage.EventStateTypeJS & {
|
|
86
|
+
get name(): "SUBMITTED";
|
|
87
|
+
get ordinal(): 2;
|
|
88
|
+
};
|
|
89
|
+
static get REJECTED(): vonage.EventStateTypeJS & {
|
|
90
|
+
get name(): "REJECTED";
|
|
91
|
+
get ordinal(): 3;
|
|
92
|
+
};
|
|
93
|
+
static get UNDELIVERABLE(): vonage.EventStateTypeJS & {
|
|
94
|
+
get name(): "UNDELIVERABLE";
|
|
95
|
+
get ordinal(): 4;
|
|
96
|
+
};
|
|
97
|
+
static get NONE(): vonage.EventStateTypeJS & {
|
|
98
|
+
get name(): "NONE";
|
|
99
|
+
get ordinal(): 5;
|
|
100
|
+
};
|
|
101
|
+
static values(): Array<vonage.EventStateTypeJS>;
|
|
102
|
+
static valueOf(value: string): vonage.EventStateTypeJS;
|
|
103
|
+
get name(): "SEEN" | "DELIVERED" | "SUBMITTED" | "REJECTED" | "UNDELIVERABLE" | "NONE";
|
|
104
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
|
|
105
|
+
}
|
|
106
|
+
class EventStateJS {
|
|
107
|
+
private constructor();
|
|
108
|
+
get seenBy(): Nullable<string>;
|
|
109
|
+
get deliveredTo(): Nullable<string>;
|
|
110
|
+
get submittedTo(): Nullable<string>;
|
|
111
|
+
get rejectedBy(): Nullable<string>;
|
|
112
|
+
get undeliverableTo(): Nullable<string>;
|
|
113
|
+
get current(): string;
|
|
114
|
+
}
|
|
75
115
|
class EventsPageJS {
|
|
76
116
|
private constructor();
|
|
77
117
|
get events(): Array<vonage.PersistentConversationEventJS>;
|
|
@@ -191,6 +231,7 @@ export declare namespace vonage {
|
|
|
191
231
|
get conversationId(): string;
|
|
192
232
|
get from(): vonage.FromJS;
|
|
193
233
|
get body(): vonage.MessageTextEventJS.MessageTextEventBody;
|
|
234
|
+
get memberStatuses(): any;
|
|
194
235
|
}
|
|
195
236
|
namespace MessageTextEventJS {
|
|
196
237
|
class MessageTextEventBody implements vonage.MessageEventBodyJS {
|
|
@@ -207,6 +248,7 @@ export declare namespace vonage {
|
|
|
207
248
|
get conversationId(): string;
|
|
208
249
|
get from(): vonage.FromJS;
|
|
209
250
|
get body(): vonage.MessageCustomEventJS.MessageCustomEventBody;
|
|
251
|
+
get memberStatuses(): any;
|
|
210
252
|
}
|
|
211
253
|
namespace MessageCustomEventJS {
|
|
212
254
|
class MessageCustomEventBody implements vonage.MessageEventBodyJS {
|
|
@@ -223,6 +265,7 @@ export declare namespace vonage {
|
|
|
223
265
|
get conversationId(): string;
|
|
224
266
|
get from(): vonage.FromJS;
|
|
225
267
|
get body(): vonage.MessageAudioEventJS.MessageAudioEventBody;
|
|
268
|
+
get memberStatuses(): any;
|
|
226
269
|
}
|
|
227
270
|
namespace MessageAudioEventJS {
|
|
228
271
|
class MessageAudioEventBody implements vonage.MessageEventBodyJS {
|
|
@@ -239,6 +282,7 @@ export declare namespace vonage {
|
|
|
239
282
|
get conversationId(): string;
|
|
240
283
|
get from(): vonage.FromJS;
|
|
241
284
|
get body(): vonage.MessageVideoEventJS.MessageVideoEventBody;
|
|
285
|
+
get memberStatuses(): any;
|
|
242
286
|
}
|
|
243
287
|
namespace MessageVideoEventJS {
|
|
244
288
|
class MessageVideoEventBody implements vonage.MessageEventBodyJS {
|
|
@@ -255,6 +299,7 @@ export declare namespace vonage {
|
|
|
255
299
|
get conversationId(): string;
|
|
256
300
|
get from(): vonage.FromJS;
|
|
257
301
|
get body(): vonage.MessageImageEventJS.MessageImageEventBody;
|
|
302
|
+
get memberStatuses(): any;
|
|
258
303
|
}
|
|
259
304
|
namespace MessageImageEventJS {
|
|
260
305
|
class MessageImageEventBody implements vonage.MessageEventBodyJS {
|
|
@@ -271,6 +316,7 @@ export declare namespace vonage {
|
|
|
271
316
|
get conversationId(): string;
|
|
272
317
|
get from(): vonage.FromJS;
|
|
273
318
|
get body(): vonage.MessageFileEventJS.MessageFileEventBody;
|
|
319
|
+
get memberStatuses(): any;
|
|
274
320
|
}
|
|
275
321
|
namespace MessageFileEventJS {
|
|
276
322
|
class MessageFileEventBody implements vonage.MessageEventBodyJS {
|
|
@@ -287,6 +333,7 @@ export declare namespace vonage {
|
|
|
287
333
|
get conversationId(): string;
|
|
288
334
|
get from(): vonage.FromJS;
|
|
289
335
|
get body(): vonage.MessageVCardEventJS.MessageVCardEventBody;
|
|
336
|
+
get memberStatuses(): any;
|
|
290
337
|
}
|
|
291
338
|
namespace MessageVCardEventJS {
|
|
292
339
|
class MessageVCardEventBody implements vonage.MessageEventBodyJS {
|
|
@@ -303,6 +350,7 @@ export declare namespace vonage {
|
|
|
303
350
|
get conversationId(): string;
|
|
304
351
|
get from(): vonage.FromJS;
|
|
305
352
|
get body(): vonage.MessageLocationEventJS.MessageLocationEventBody;
|
|
353
|
+
get memberStatuses(): any;
|
|
306
354
|
}
|
|
307
355
|
namespace MessageLocationEventJS {
|
|
308
356
|
class MessageLocationEventBody implements vonage.MessageEventBodyJS {
|
|
@@ -325,6 +373,7 @@ export declare namespace vonage {
|
|
|
325
373
|
get timestamp(): string;
|
|
326
374
|
get conversationId(): string;
|
|
327
375
|
get from(): vonage.FromJS;
|
|
376
|
+
get memberStatus(): any;
|
|
328
377
|
get body(): vonage.MessageTemplateEventJS.MessageTemplateEventBody;
|
|
329
378
|
}
|
|
330
379
|
namespace MessageTemplateEventJS {
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import vonage from '../utils/vonage';
|
|
2
|
+
export type EventState = Omit<vonage.EventStateJS, 'current'> & {
|
|
3
|
+
current: Lowercase<typeof vonage.EventStateTypeJS.prototype.name>;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Member status is a map of member id to {@link EventState}
|
|
7
|
+
*/
|
|
8
|
+
export type MemberStatus = Record<string, EventState>;
|
|
2
9
|
/**
|
|
3
10
|
* The {@link MessageAudioEvent} Body type
|
|
4
11
|
*
|