@vonage/client-sdk 1.1.0-rc.1 → 1.1.1-alpha.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 +41 -21
- package/dist/client/VonageClient.d.ts +11 -2
- package/dist/client/index.cjs +3213 -3141
- package/dist/client/index.mjs +3213 -3136
- package/dist/kotlin/ConversationEvents.d.ts +80 -0
- package/dist/lib/MediaClient.d.ts +0 -1
- package/dist/utils/index.d.ts +1 -2
- package/dist/vonageClientSDK.js +7076 -3580
- package/dist/vonageClientSDK.min.js +2 -2
- package/dist/vonageClientSDK.min.mjs +2 -2
- package/dist/vonageClientSDK.mjs +7076 -3575
- package/package.json +9 -5
- package/rollup.config.js +2 -1
- package/dist/utils/ConversationEventModels.d.ts +0 -11
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { vonage } from './clientsdk-clientcore_js';
|
|
2
|
+
/**
|
|
3
|
+
* A MemberInvitedEvent is a ConversationEvent with a type of 'member:invited'
|
|
4
|
+
*
|
|
5
|
+
* @property id The event id
|
|
6
|
+
* @property timestamp The event timestamp
|
|
7
|
+
* @property conversationId The conversation id
|
|
8
|
+
* @property from The member id of the event sender
|
|
9
|
+
* @property body the body property of the MemberInvitedEvent
|
|
10
|
+
* @interface
|
|
11
|
+
*/
|
|
12
|
+
export type MemberInvitedEvent = {
|
|
13
|
+
kind: 'member:invited';
|
|
14
|
+
} & vonage.MemberInvitedEventJS;
|
|
15
|
+
/**
|
|
16
|
+
* A MemberJoinedEvent is a ConversationEvent with a type of 'member:joined'
|
|
17
|
+
*
|
|
18
|
+
* @property id the id property of the MemberJoinedEvent
|
|
19
|
+
* @property timestamp the timestamp property of the MemberJoinedEvent
|
|
20
|
+
* @property conversationId the conversationId property of the MemberJoinedEvent
|
|
21
|
+
* @property from the from property of the MemberJoinedEvent
|
|
22
|
+
* @property body the body property of the MemberJoinedEvent
|
|
23
|
+
* @interface
|
|
24
|
+
*/
|
|
25
|
+
export type MemberJoinedEvent = {
|
|
26
|
+
kind: 'member:joined';
|
|
27
|
+
} & vonage.MemberJoinedEventJS;
|
|
28
|
+
/**
|
|
29
|
+
* A MemberLeftEvent is a ConversationEvent with a type of 'member:left'
|
|
30
|
+
*
|
|
31
|
+
* @property id the id property of the MemberLeftEvent
|
|
32
|
+
* @property timestamp the timestamp property of the MemberLeftEvent
|
|
33
|
+
* @property conversationId the conversationId property of the MemberLeftEvent
|
|
34
|
+
* @property from the from property of the MemberLeftEvent
|
|
35
|
+
* @property body the body property of the MemberLeftEvent
|
|
36
|
+
* @interface
|
|
37
|
+
*/
|
|
38
|
+
export type MemberLeftEvent = {
|
|
39
|
+
kind: 'member:left';
|
|
40
|
+
} & vonage.MemberLeftEventJS;
|
|
41
|
+
/**
|
|
42
|
+
* A UnknownEvent is a ConversationEvent with a type of 'unknown'
|
|
43
|
+
*
|
|
44
|
+
* @property type the type property of the UnknownEvent
|
|
45
|
+
* @property id the id property of the UnknownEvent
|
|
46
|
+
* @property timestamp the timestamp property of the UnknownEvent
|
|
47
|
+
* @property conversationId the conversationId property of the UnknownEvent
|
|
48
|
+
* @property from the from property of the UnknownEvent
|
|
49
|
+
* @interface
|
|
50
|
+
*/
|
|
51
|
+
export type UnknownEvent = {
|
|
52
|
+
kind: 'unknown';
|
|
53
|
+
} & vonage.UnknownEventJS;
|
|
54
|
+
/**
|
|
55
|
+
* A TextMessageEvent is a ConversationEvent with a type of 'message:text'
|
|
56
|
+
*
|
|
57
|
+
* @property id the id property of the TextMessageEvent
|
|
58
|
+
* @property timestamp the timestamp property of the TextMessageEvent
|
|
59
|
+
* @property conversationId the conversationId property of the TextMessageEvent
|
|
60
|
+
* @property from the from property of the TextMessageEvent
|
|
61
|
+
* @property body the body property of the TextMessageEvent
|
|
62
|
+
* @interface
|
|
63
|
+
*/
|
|
64
|
+
export type TextMessageEvent = {
|
|
65
|
+
kind: 'message:text';
|
|
66
|
+
} & vonage.TextMessageEventJS;
|
|
67
|
+
/**
|
|
68
|
+
* A CustomMessageEvent is a ConversationEvent with a type of 'message:custom'
|
|
69
|
+
*
|
|
70
|
+
* @property id the id property of the CustomMessageEvent
|
|
71
|
+
* @property timestamp the timestamp property of the CustomMessageEvent
|
|
72
|
+
* @property conversationId the conversationId property of the CustomMessageEvent
|
|
73
|
+
* @property from the from property of the CustomMessageEvent
|
|
74
|
+
* @property body the body property of the CustomMessageEvent
|
|
75
|
+
* @interface
|
|
76
|
+
*/
|
|
77
|
+
export type CustomMessageEvent = {
|
|
78
|
+
kind: 'message:custom';
|
|
79
|
+
} & vonage.CustomMessageEventJS;
|
|
80
|
+
export type ConversationEvent = MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent | UnknownEvent | TextMessageEvent | CustomMessageEvent;
|
|
@@ -4,7 +4,6 @@ declare class MediaClient implements vonage.MediaClientJS {
|
|
|
4
4
|
delegate: KMPPackage.Nullable<vonage.MediaClientDelegateJS>;
|
|
5
5
|
private pcs;
|
|
6
6
|
private audio;
|
|
7
|
-
private stream;
|
|
8
7
|
private intervalId;
|
|
9
8
|
constructor();
|
|
10
9
|
enableRtcStatsCollection(interval: number, mediaId: string): void;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { ClientConfig, ConfigRegion } from './ClientConfig';
|
|
2
2
|
export { LoggingLevel } from './logging';
|
|
3
3
|
export * from './ConversationModels';
|
|
4
|
-
export * from '
|
|
5
|
-
export * from './ConversationMessageModels';
|
|
4
|
+
export * from '../kotlin/ConversationEvents';
|
|
6
5
|
export * from './ErrorModels';
|