@vonage/client-sdk 1.1.0 → 1.1.1-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.
@@ -60,7 +60,7 @@ declare module './kotlin/clientsdk-clientcore_js' {
60
60
  * @returns void
61
61
  * @group Voice
62
62
  */
63
- answerCall(callId: string): Promise<void>;
63
+ answer(callId: string): Promise<void>;
64
64
  /**
65
65
  * Reject a call
66
66
  *
@@ -71,7 +71,7 @@ declare module './kotlin/clientsdk-clientcore_js' {
71
71
  * @returns void
72
72
  * @group Voice
73
73
  */
74
- rejectCall(callId: string): Promise<void>;
74
+ reject(callId: string): Promise<void>;
75
75
  /**
76
76
  * Reconnect a call
77
77
  *
@@ -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;
@@ -45,9 +45,9 @@ export namespace vonage {
45
45
  serverCall(context: Nullable<Json>): Promise<string>;
46
46
  reconnectCall(legId: string): Promise<any>;
47
47
  getLeg(legId: string): Promise<vonage.LegJS>;
48
- answerCall(callId: string): Promise<any>;
49
- rejectCall(callId: string): Promise<any>;
50
- hangupWithReason(callId: string, reasonText: Nullable<string>, reasonCode: Nullable<string>): Promise<any>;
48
+ answer(callId: string): Promise<any>;
49
+ reject(callId: string): Promise<any>;
50
+ hangup(callId: string, reasonText: Nullable<string>, reasonCode: Nullable<string>): Promise<any>;
51
51
  say(callId: string, params: vonage.CallSayParams): Promise<any>;
52
52
  mute(callId: string): Promise<any>;
53
53
  unmute(callId: string): Promise<any>;
@@ -676,9 +676,9 @@ export namespace vonage {
676
676
  serverCall(context: Nullable<Json>): Promise<string>;
677
677
  reconnectCall(legId: string): Promise<any>;
678
678
  getLeg(legId: string): Promise<vonage.LegJS>;
679
- answerCall(callId: string): Promise<any>;
680
- rejectCall(callId: string): Promise<any>;
681
- hangupWithReason(callId: string, reasonText: Nullable<string>, reasonCode: Nullable<string>): Promise<any>;
679
+ answer(callId: string): Promise<any>;
680
+ reject(callId: string): Promise<any>;
681
+ hangup(callId: string, reasonText: Nullable<string>, reasonCode: Nullable<string>): Promise<any>;
682
682
  say(callId: string, params: vonage.CallSayParams): Promise<any>;
683
683
  mute(callId: string): Promise<any>;
684
684
  unmute(callId: string): Promise<any>;
@@ -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;
@@ -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 './ConversationEventModels';
5
- export * from './ConversationMessageModels';
4
+ export * from '../kotlin/ConversationEvents';
6
5
  export * from './ErrorModels';