@vonage/client-sdk 1.2.0-alpha.1 → 1.2.0-alpha.10
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 +4 -1
- package/dist/client/VonageClient.d.ts +1 -1
- package/dist/client/index.cjs +25535 -33656
- package/dist/client/index.mjs +25535 -33656
- package/dist/kotlin/ConversationEvents.d.ts +11 -10
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +76 -79
- package/dist/vonageClientSDK.js +25221 -31272
- package/dist/vonageClientSDK.min.js +2 -2
- package/dist/vonageClientSDK.min.mjs +2 -2
- package/dist/vonageClientSDK.mjs +25221 -31272
- package/package.json +1 -1
|
@@ -43,19 +43,20 @@ export type MemberLeftEvent = {
|
|
|
43
43
|
from: From;
|
|
44
44
|
} & vonage.MemberLeftEventJS;
|
|
45
45
|
/**
|
|
46
|
-
* A
|
|
46
|
+
* A CustomConversationEvent is a ConversationEvent with a type of 'custom'
|
|
47
47
|
*
|
|
48
|
-
* @property
|
|
49
|
-
* @property
|
|
50
|
-
* @property
|
|
51
|
-
* @property
|
|
52
|
-
* @property
|
|
48
|
+
* @property id the id property of the CustomConversationEvent
|
|
49
|
+
* @property timestamp the timestamp property of the CustomConversationEvent
|
|
50
|
+
* @property conversationId the conversationId property of the CustomConversationEvent
|
|
51
|
+
* @property from the from property of the CustomConversationEvent
|
|
52
|
+
* @property eventType the eventType property of the CustomConversationEvent
|
|
53
|
+
* @property body the body property of the CustomConversationEvent
|
|
53
54
|
* @interface
|
|
54
55
|
*/
|
|
55
|
-
export type
|
|
56
|
-
kind: '
|
|
56
|
+
export type CustomConversationEvent = {
|
|
57
|
+
kind: 'custom';
|
|
57
58
|
from: From;
|
|
58
|
-
} & vonage.
|
|
59
|
+
} & vonage.CustomConversationEventJS;
|
|
59
60
|
/**
|
|
60
61
|
* A TextMessageEvent is a ConversationEvent with a type of 'message:text'
|
|
61
62
|
*
|
|
@@ -182,4 +183,4 @@ export type TemplateMessageEvent = {
|
|
|
182
183
|
kind: 'message:template';
|
|
183
184
|
from: From;
|
|
184
185
|
} & vonage.TemplateMessageEventJS;
|
|
185
|
-
export type ConversationEvent = MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent |
|
|
186
|
+
export type ConversationEvent = MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent | CustomConversationEvent | TextMessageEvent | CustomMessageEvent | AudioMessageEvent | VideoMessageEvent | ImageMessageEvent | FileMessageEvent | VCardMessageEvent | LocationMessageEvent | TemplateMessageEvent;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
type Nullable<T> = T | null | undefined
|
|
2
|
-
declare
|
|
3
|
-
type __doNotImplementIt = typeof __doNotImplementIt
|
|
4
|
-
export namespace vonage {
|
|
2
|
+
export declare namespace vonage {
|
|
5
3
|
interface CombinedEvents extends vonage.VoiceEvents, vonage.ChatEvents {
|
|
6
4
|
callInvite(callId: string, from: string, channelType: string): void;
|
|
7
5
|
callInviteCancel(callId: string, reason: vonage.CancelReasonJS): void;
|
|
@@ -17,7 +15,7 @@ export namespace vonage {
|
|
|
17
15
|
conversationEvent(event: vonage.ConversationEventJS): void;
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
|
-
export namespace vonage {
|
|
18
|
+
export declare namespace vonage {
|
|
21
19
|
class CombinedClientJS implements vonage.IChatClientJS, vonage.IVoiceClientJS {
|
|
22
20
|
constructor(http: vonage.HttpClientJS, socket: vonage.SocketClientJS, media: vonage.MediaClientJS);
|
|
23
21
|
get media(): vonage.MediaClientJS;
|
|
@@ -29,7 +27,7 @@ export namespace vonage {
|
|
|
29
27
|
inviteToConversation(cid: string, username: string): Promise<string>;
|
|
30
28
|
leaveConversation(cid: string): Promise<any>;
|
|
31
29
|
deleteConversation(cid: string): Promise<any>;
|
|
32
|
-
getConversations(order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string
|
|
30
|
+
getConversations(order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>, includeCustomData: boolean): Promise<vonage.ConversationsPageJS>;
|
|
33
31
|
getConversationMembers(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>): Promise<vonage.MembersPageJS>;
|
|
34
32
|
getConversationEvents(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>, eventFilter: Nullable<Array<string>>): Promise<vonage.EventsPageJS>;
|
|
35
33
|
getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
|
|
@@ -54,10 +52,10 @@ export namespace vonage {
|
|
|
54
52
|
enableEarmuff(callId: string): Promise<any>;
|
|
55
53
|
disableEarmuff(callId: string): Promise<any>;
|
|
56
54
|
sendDTMF(callId: string, digits: string): Promise<any>;
|
|
57
|
-
readonly
|
|
55
|
+
readonly __doNotUseOrImplementIt: vonage.IChatClientJS["__doNotUseOrImplementIt"] & vonage.IVoiceClientJS["__doNotUseOrImplementIt"];
|
|
58
56
|
}
|
|
59
57
|
}
|
|
60
|
-
export namespace vonage {
|
|
58
|
+
export declare namespace vonage {
|
|
61
59
|
class EventsPageJS {
|
|
62
60
|
private constructor();
|
|
63
61
|
get events(): Array<vonage.ConversationEventJS>;
|
|
@@ -65,24 +63,29 @@ export namespace vonage {
|
|
|
65
63
|
get nextCursor(): Nullable<string>;
|
|
66
64
|
}
|
|
67
65
|
interface FromJS {
|
|
68
|
-
readonly
|
|
66
|
+
readonly __doNotUseOrImplementIt: {
|
|
67
|
+
readonly "vonage.FromJS": unique symbol;
|
|
68
|
+
};
|
|
69
69
|
}
|
|
70
70
|
class EmbeddedInfoJS implements vonage.FromJS {
|
|
71
71
|
private constructor();
|
|
72
72
|
get kind(): string;
|
|
73
73
|
get memberId(): string;
|
|
74
74
|
get user(): vonage.UserJS;
|
|
75
|
-
readonly
|
|
75
|
+
readonly __doNotUseOrImplementIt: vonage.FromJS["__doNotUseOrImplementIt"];
|
|
76
76
|
}
|
|
77
77
|
const SystemJS: {
|
|
78
78
|
get kind(): string;
|
|
79
|
+
readonly __doNotUseOrImplementIt: vonage.FromJS["__doNotUseOrImplementIt"];
|
|
79
80
|
} & vonage.FromJS;
|
|
80
81
|
interface ConversationEventJS {
|
|
81
82
|
readonly id: Nullable<number>;
|
|
82
83
|
readonly timestamp: string;
|
|
83
84
|
readonly conversationId: string;
|
|
84
85
|
readonly from: Nullable<vonage.FromJS>;
|
|
85
|
-
readonly
|
|
86
|
+
readonly __doNotUseOrImplementIt: {
|
|
87
|
+
readonly "vonage.ConversationEventJS": unique symbol;
|
|
88
|
+
};
|
|
86
89
|
}
|
|
87
90
|
interface MemberEventJS extends vonage.ConversationEventJS {
|
|
88
91
|
readonly body: vonage.MemberEventBodyJS;
|
|
@@ -90,7 +93,9 @@ export namespace vonage {
|
|
|
90
93
|
readonly timestamp: string;
|
|
91
94
|
readonly conversationId: string;
|
|
92
95
|
readonly from: Nullable<vonage.FromJS>;
|
|
93
|
-
readonly
|
|
96
|
+
readonly __doNotUseOrImplementIt: {
|
|
97
|
+
readonly "vonage.MemberEventJS": unique symbol;
|
|
98
|
+
} & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
94
99
|
}
|
|
95
100
|
class MemberEventBodyJS {
|
|
96
101
|
private constructor();
|
|
@@ -104,7 +109,7 @@ export namespace vonage {
|
|
|
104
109
|
get conversationId(): string;
|
|
105
110
|
get from(): vonage.FromJS;
|
|
106
111
|
get body(): vonage.MemberEventBodyJS;
|
|
107
|
-
readonly
|
|
112
|
+
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"];
|
|
108
113
|
}
|
|
109
114
|
class MemberJoinedEventJS implements vonage.MemberEventJS {
|
|
110
115
|
private constructor();
|
|
@@ -113,7 +118,7 @@ export namespace vonage {
|
|
|
113
118
|
get conversationId(): string;
|
|
114
119
|
get from(): vonage.FromJS;
|
|
115
120
|
get body(): vonage.MemberEventBodyJS;
|
|
116
|
-
readonly
|
|
121
|
+
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"];
|
|
117
122
|
}
|
|
118
123
|
class MemberLeftEventJS implements vonage.MemberEventJS {
|
|
119
124
|
private constructor();
|
|
@@ -122,25 +127,28 @@ export namespace vonage {
|
|
|
122
127
|
get conversationId(): string;
|
|
123
128
|
get from(): vonage.FromJS;
|
|
124
129
|
get body(): vonage.MemberEventBodyJS;
|
|
125
|
-
readonly
|
|
130
|
+
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"];
|
|
126
131
|
}
|
|
127
|
-
class
|
|
132
|
+
class CustomConversationEventJS implements vonage.ConversationEventJS {
|
|
128
133
|
private constructor();
|
|
129
|
-
get
|
|
130
|
-
get id(): Nullable<number>;
|
|
134
|
+
get id(): number;
|
|
131
135
|
get timestamp(): string;
|
|
132
136
|
get conversationId(): string;
|
|
133
137
|
get from(): vonage.FromJS;
|
|
134
|
-
|
|
138
|
+
get eventType(): Nullable<string>;
|
|
139
|
+
get body(): string;
|
|
140
|
+
readonly __doNotUseOrImplementIt: vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
135
141
|
}
|
|
136
142
|
}
|
|
137
|
-
export namespace vonage {
|
|
143
|
+
export declare namespace vonage {
|
|
138
144
|
interface MessageEventJS extends vonage.ConversationEventJS {
|
|
139
145
|
readonly id: number;
|
|
140
146
|
readonly timestamp: string;
|
|
141
147
|
readonly conversationId: string;
|
|
142
148
|
readonly from: Nullable<vonage.FromJS>;
|
|
143
|
-
readonly
|
|
149
|
+
readonly __doNotUseOrImplementIt: {
|
|
150
|
+
readonly "vonage.MessageEventJS": unique symbol;
|
|
151
|
+
} & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
144
152
|
}
|
|
145
153
|
class TextMessageEventJS implements vonage.MessageEventJS {
|
|
146
154
|
private constructor();
|
|
@@ -149,7 +157,7 @@ export namespace vonage {
|
|
|
149
157
|
get conversationId(): string;
|
|
150
158
|
get from(): vonage.FromJS;
|
|
151
159
|
get body(): vonage.TextMessageEventJS.Body;
|
|
152
|
-
readonly
|
|
160
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
153
161
|
}
|
|
154
162
|
namespace TextMessageEventJS {
|
|
155
163
|
class Body {
|
|
@@ -164,7 +172,7 @@ export namespace vonage {
|
|
|
164
172
|
get conversationId(): string;
|
|
165
173
|
get from(): vonage.FromJS;
|
|
166
174
|
get body(): vonage.CustomMessageEventJS.Body;
|
|
167
|
-
readonly
|
|
175
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
168
176
|
}
|
|
169
177
|
namespace CustomMessageEventJS {
|
|
170
178
|
class Body {
|
|
@@ -179,7 +187,7 @@ export namespace vonage {
|
|
|
179
187
|
get conversationId(): string;
|
|
180
188
|
get from(): vonage.FromJS;
|
|
181
189
|
get body(): vonage.AudioMessageEventJS.Body;
|
|
182
|
-
readonly
|
|
190
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
183
191
|
}
|
|
184
192
|
namespace AudioMessageEventJS {
|
|
185
193
|
class Body {
|
|
@@ -194,7 +202,7 @@ export namespace vonage {
|
|
|
194
202
|
get conversationId(): string;
|
|
195
203
|
get from(): vonage.FromJS;
|
|
196
204
|
get body(): vonage.VideoMessageEventJS.Body;
|
|
197
|
-
readonly
|
|
205
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
198
206
|
}
|
|
199
207
|
namespace VideoMessageEventJS {
|
|
200
208
|
class Body {
|
|
@@ -209,7 +217,7 @@ export namespace vonage {
|
|
|
209
217
|
get conversationId(): string;
|
|
210
218
|
get from(): vonage.FromJS;
|
|
211
219
|
get body(): vonage.ImageMessageEventJS.Body;
|
|
212
|
-
readonly
|
|
220
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
213
221
|
}
|
|
214
222
|
namespace ImageMessageEventJS {
|
|
215
223
|
class Body {
|
|
@@ -224,7 +232,7 @@ export namespace vonage {
|
|
|
224
232
|
get conversationId(): string;
|
|
225
233
|
get from(): vonage.FromJS;
|
|
226
234
|
get body(): vonage.FileMessageEventJS.Body;
|
|
227
|
-
readonly
|
|
235
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
228
236
|
}
|
|
229
237
|
namespace FileMessageEventJS {
|
|
230
238
|
class Body {
|
|
@@ -239,7 +247,7 @@ export namespace vonage {
|
|
|
239
247
|
get conversationId(): string;
|
|
240
248
|
get from(): vonage.FromJS;
|
|
241
249
|
get body(): vonage.VCardMessageEventJS.Body;
|
|
242
|
-
readonly
|
|
250
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
243
251
|
}
|
|
244
252
|
namespace VCardMessageEventJS {
|
|
245
253
|
class Body {
|
|
@@ -254,7 +262,7 @@ export namespace vonage {
|
|
|
254
262
|
get conversationId(): string;
|
|
255
263
|
get from(): vonage.FromJS;
|
|
256
264
|
get body(): vonage.LocationMessageEventJS.Body;
|
|
257
|
-
readonly
|
|
265
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
258
266
|
}
|
|
259
267
|
namespace LocationMessageEventJS {
|
|
260
268
|
class Body {
|
|
@@ -276,14 +284,13 @@ export namespace vonage {
|
|
|
276
284
|
get conversationId(): string;
|
|
277
285
|
get from(): vonage.FromJS;
|
|
278
286
|
get body(): vonage.TemplateMessageEventJS.Body;
|
|
279
|
-
readonly
|
|
287
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
280
288
|
}
|
|
281
289
|
namespace TemplateMessageEventJS {
|
|
282
290
|
class Body {
|
|
283
291
|
private constructor();
|
|
284
292
|
get body(): any/* com.vonage.clientcore.core.api.models.TemplateMessageEvent.Body */;
|
|
285
293
|
get template(): vonage.TemplateMessageEventJS.TemplateObject;
|
|
286
|
-
component1(): any/* com.vonage.clientcore.core.api.models.TemplateMessageEvent.Body */;
|
|
287
294
|
copy(body?: any/* com.vonage.clientcore.core.api.models.TemplateMessageEvent.Body */): vonage.TemplateMessageEventJS.Body;
|
|
288
295
|
toString(): string;
|
|
289
296
|
hashCode(): number;
|
|
@@ -296,7 +303,7 @@ export namespace vonage {
|
|
|
296
303
|
}
|
|
297
304
|
}
|
|
298
305
|
}
|
|
299
|
-
export namespace vonage {
|
|
306
|
+
export declare namespace vonage {
|
|
300
307
|
abstract class PresentingOrderJS {
|
|
301
308
|
private constructor();
|
|
302
309
|
get corePresentingOrder(): any/* com.vonage.clientcore.core.api.models.PresentingOrder */;
|
|
@@ -510,7 +517,7 @@ export namespace vonage {
|
|
|
510
517
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
511
518
|
}
|
|
512
519
|
}
|
|
513
|
-
export namespace vonage {
|
|
520
|
+
export declare namespace vonage {
|
|
514
521
|
const CSErrorCodesJS: {
|
|
515
522
|
get CONVERSATION_DUPLICATE_NAME(): string;
|
|
516
523
|
get MEMBER_ALREADY_JOINED(): string;
|
|
@@ -541,7 +548,7 @@ export namespace vonage {
|
|
|
541
548
|
get TRANSPORT_CLOSED_DISCONNECT(): string;
|
|
542
549
|
};
|
|
543
550
|
}
|
|
544
|
-
export namespace vonage {
|
|
551
|
+
export declare namespace vonage {
|
|
545
552
|
class VonageErrorJS extends Error {
|
|
546
553
|
private constructor();
|
|
547
554
|
get type(): vonage.VonageErrorTypeJS;
|
|
@@ -576,7 +583,7 @@ export namespace vonage {
|
|
|
576
583
|
get ordinal(): 0 | 1 | 2 | 3 | 4;
|
|
577
584
|
}
|
|
578
585
|
}
|
|
579
|
-
export namespace vonage {
|
|
586
|
+
export declare namespace vonage {
|
|
580
587
|
interface ChatEvents extends vonage.CoreClientEvents {
|
|
581
588
|
conversationEvent(event: vonage.ConversationEventJS): void;
|
|
582
589
|
reconnecting(): void;
|
|
@@ -584,7 +591,7 @@ export namespace vonage {
|
|
|
584
591
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
585
592
|
}
|
|
586
593
|
}
|
|
587
|
-
export namespace vonage {
|
|
594
|
+
export declare namespace vonage {
|
|
588
595
|
interface IChatClientJS extends vonage.ICoreClientJS {
|
|
589
596
|
readonly core: any/* com.vonage.clientcore.core.CoreClient */;
|
|
590
597
|
createConversation(name: Nullable<string>, displayName: Nullable<string>): Promise<string>;
|
|
@@ -592,7 +599,7 @@ export namespace vonage {
|
|
|
592
599
|
inviteToConversation(cid: string, username: string): Promise<string>;
|
|
593
600
|
leaveConversation(cid: string): Promise<any>;
|
|
594
601
|
deleteConversation(cid: string): Promise<any>;
|
|
595
|
-
getConversations(order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string
|
|
602
|
+
getConversations(order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>, includeCustomData?: boolean): Promise<vonage.ConversationsPageJS>;
|
|
596
603
|
getConversationMembers(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>): Promise<vonage.MembersPageJS>;
|
|
597
604
|
getConversationEvents(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>, eventFilter: Nullable<Array<string>>): Promise<vonage.EventsPageJS>;
|
|
598
605
|
getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
|
|
@@ -604,17 +611,19 @@ export namespace vonage {
|
|
|
604
611
|
refreshSession(token: string): Promise<any>;
|
|
605
612
|
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
606
613
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
607
|
-
readonly
|
|
614
|
+
readonly __doNotUseOrImplementIt: {
|
|
615
|
+
readonly "vonage.IChatClientJS": unique symbol;
|
|
616
|
+
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
608
617
|
}
|
|
609
618
|
}
|
|
610
|
-
export namespace vonage {
|
|
619
|
+
export declare namespace vonage {
|
|
611
620
|
interface CoreClientEvents {
|
|
612
621
|
reconnecting(): void;
|
|
613
622
|
reconnection(): void;
|
|
614
623
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
615
624
|
}
|
|
616
625
|
}
|
|
617
|
-
export namespace vonage {
|
|
626
|
+
export declare namespace vonage {
|
|
618
627
|
abstract class CoreClientConfigRegionJS {
|
|
619
628
|
private constructor();
|
|
620
629
|
get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
|
|
@@ -711,10 +720,12 @@ export namespace vonage {
|
|
|
711
720
|
refreshSession(token: string): Promise<any>;
|
|
712
721
|
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
713
722
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
714
|
-
readonly
|
|
723
|
+
readonly __doNotUseOrImplementIt: {
|
|
724
|
+
readonly "vonage.ICoreClientJS": unique symbol;
|
|
725
|
+
};
|
|
715
726
|
}
|
|
716
727
|
}
|
|
717
|
-
export namespace vonage {
|
|
728
|
+
export declare namespace vonage {
|
|
718
729
|
interface VoiceEvents extends vonage.CoreClientEvents {
|
|
719
730
|
callInvite(callId: string, from: string, channelType: string): void;
|
|
720
731
|
callInviteCancel(callId: string, reason: vonage.CancelReasonJS): void;
|
|
@@ -730,14 +741,14 @@ export namespace vonage {
|
|
|
730
741
|
}
|
|
731
742
|
interface CallSayParams {
|
|
732
743
|
readonly text: string;
|
|
733
|
-
readonly level
|
|
734
|
-
readonly loop
|
|
735
|
-
readonly queue
|
|
736
|
-
readonly voiceName
|
|
737
|
-
readonly ssml
|
|
744
|
+
readonly level?: Nullable<number>;
|
|
745
|
+
readonly loop?: Nullable<number>;
|
|
746
|
+
readonly queue?: Nullable<boolean>;
|
|
747
|
+
readonly voiceName?: Nullable<string>;
|
|
748
|
+
readonly ssml?: Nullable<boolean>;
|
|
738
749
|
}
|
|
739
750
|
}
|
|
740
|
-
export namespace vonage {
|
|
751
|
+
export declare namespace vonage {
|
|
741
752
|
abstract class LegStatusJS {
|
|
742
753
|
private constructor();
|
|
743
754
|
static get RINGING(): vonage.LegStatusJS & {
|
|
@@ -812,26 +823,26 @@ export namespace vonage {
|
|
|
812
823
|
refreshSession(token: string): Promise<any>;
|
|
813
824
|
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
814
825
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
815
|
-
readonly
|
|
826
|
+
readonly __doNotUseOrImplementIt: {
|
|
827
|
+
readonly "vonage.IVoiceClientJS": unique symbol;
|
|
828
|
+
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
816
829
|
}
|
|
817
830
|
class VoiceInviteFromInfoJS {
|
|
818
831
|
constructor(id: Nullable<string>, type: string);
|
|
819
832
|
get id(): Nullable<string>;
|
|
820
833
|
get type(): string;
|
|
821
|
-
component1(): Nullable<string>;
|
|
822
|
-
component2(): string;
|
|
823
834
|
copy(id?: Nullable<string>, type?: string): vonage.VoiceInviteFromInfoJS;
|
|
824
835
|
toString(): string;
|
|
825
836
|
hashCode(): number;
|
|
826
837
|
equals(other: Nullable<any>): boolean;
|
|
827
838
|
}
|
|
828
839
|
}
|
|
829
|
-
export namespace vonage {
|
|
840
|
+
export declare namespace vonage {
|
|
830
841
|
interface HttpClientJS {
|
|
831
842
|
request(verb: string, url: string, headers: Json, body: Nullable<string>, callback: (p0: Nullable<vonage.HttpClientErrorJS>, p1: Nullable<vonage.HttpClientResponseJS>) => void): void;
|
|
832
843
|
}
|
|
833
844
|
interface SocketClientJS {
|
|
834
|
-
delegate
|
|
845
|
+
delegate?: Nullable<vonage.SocketClientDelegateJS>;
|
|
835
846
|
emit(type: string, msg: Nullable<Json>, callback: (p0: Nullable<Error>, p1: Nullable<string>) => void): void;
|
|
836
847
|
connect(host: string, path: string, reconnectionAttempts: any/* kotlin.Number */, reconnectionDelay: any/* kotlin.Number */, randomizationFactor: any/* kotlin.Number */, query: string): void;
|
|
837
848
|
disconnect(): void;
|
|
@@ -843,7 +854,7 @@ export namespace vonage {
|
|
|
843
854
|
didReceiveNewSocketConnectionStatusEvent(type: string, reason: Nullable<string>, timestamp: any/* kotlin.Number */, retryNumber: Nullable<number>): void;
|
|
844
855
|
}
|
|
845
856
|
interface MediaClientJS {
|
|
846
|
-
delegate
|
|
857
|
+
delegate?: Nullable<vonage.MediaClientDelegateJS>;
|
|
847
858
|
enableMediaOutbound(closure: (p0: any, p1: Nullable<string>, p2: (p0: string) => void) => void): void;
|
|
848
859
|
enableMediaInbound(closure: (p0: any, p1: Nullable<string>) => void, offerSDP: string, rtcId: string): void;
|
|
849
860
|
processAnswer(id: string, sdp: string): void;
|
|
@@ -858,12 +869,10 @@ export namespace vonage {
|
|
|
858
869
|
onConnectionChange(id: string, status: string): void;
|
|
859
870
|
}
|
|
860
871
|
}
|
|
861
|
-
export namespace vonage {
|
|
872
|
+
export declare namespace vonage {
|
|
862
873
|
class HttpClientErrorJS extends Error {
|
|
863
874
|
constructor(message?: Nullable<string>, cause?: Nullable<Error>);
|
|
864
875
|
get coreError(): any/* com.vonage.clientcore.core.middlewares.http.HTTPClientError */;
|
|
865
|
-
component1(): Nullable<string>;
|
|
866
|
-
component2(): Nullable<Error>;
|
|
867
876
|
copy(message?: Nullable<string>, cause?: Nullable<Error>): vonage.HttpClientErrorJS;
|
|
868
877
|
toString(): string;
|
|
869
878
|
hashCode(): number;
|
|
@@ -873,8 +882,6 @@ export namespace vonage {
|
|
|
873
882
|
constructor(statusCode: number, body?: Nullable<string>);
|
|
874
883
|
get statusCode(): number;
|
|
875
884
|
get body(): Nullable<string>;
|
|
876
|
-
component1(): number;
|
|
877
|
-
component2(): Nullable<string>;
|
|
878
885
|
copy(statusCode?: number, body?: Nullable<string>): vonage.HttpClientResponseJS;
|
|
879
886
|
toString(): string;
|
|
880
887
|
hashCode(): number;
|
|
@@ -928,28 +935,18 @@ export namespace vonage {
|
|
|
928
935
|
equals(other: Nullable<any>): boolean;
|
|
929
936
|
}
|
|
930
937
|
class RTCStatsJS {
|
|
931
|
-
constructor(audioRecvPackets: any
|
|
932
|
-
get audioRecvPackets(): any
|
|
933
|
-
get audioRecvPacketsLost(): any
|
|
934
|
-
get audioRecvBytes(): any
|
|
935
|
-
get audioRecvJitter(): any
|
|
936
|
-
get audioSentPackets(): any
|
|
937
|
-
get audioSentBytes(): any
|
|
938
|
-
get audioSentPacketsLost(): any
|
|
939
|
-
get audioRtt(): any
|
|
940
|
-
get audioSentJitter(): any
|
|
938
|
+
constructor(audioRecvPackets: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvPacketsLost: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvBytes: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvJitter: Nullable<any>/* Nullable<kotlin.Number> */, audioSentPackets: Nullable<any>/* Nullable<kotlin.Number> */, audioSentBytes: Nullable<any>/* Nullable<kotlin.Number> */, audioSentPacketsLost: Nullable<any>/* Nullable<kotlin.Number> */, audioRtt: Nullable<any>/* Nullable<kotlin.Number> */, audioSentJitter: Nullable<any>/* Nullable<kotlin.Number> */, legId: string);
|
|
939
|
+
get audioRecvPackets(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
940
|
+
get audioRecvPacketsLost(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
941
|
+
get audioRecvBytes(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
942
|
+
get audioRecvJitter(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
943
|
+
get audioSentPackets(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
944
|
+
get audioSentBytes(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
945
|
+
get audioSentPacketsLost(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
946
|
+
get audioRtt(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
947
|
+
get audioSentJitter(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
941
948
|
get legId(): string;
|
|
942
|
-
|
|
943
|
-
component2(): any/* Nullable<kotlin.Number> */;
|
|
944
|
-
component3(): any/* Nullable<kotlin.Number> */;
|
|
945
|
-
component4(): any/* Nullable<kotlin.Number> */;
|
|
946
|
-
component5(): any/* Nullable<kotlin.Number> */;
|
|
947
|
-
component6(): any/* Nullable<kotlin.Number> */;
|
|
948
|
-
component7(): any/* Nullable<kotlin.Number> */;
|
|
949
|
-
component8(): any/* Nullable<kotlin.Number> */;
|
|
950
|
-
component9(): any/* Nullable<kotlin.Number> */;
|
|
951
|
-
component10(): string;
|
|
952
|
-
copy(audioRecvPackets?: any/* Nullable<kotlin.Number> */, audioRecvPacketsLost?: any/* Nullable<kotlin.Number> */, audioRecvBytes?: any/* Nullable<kotlin.Number> */, audioRecvJitter?: any/* Nullable<kotlin.Number> */, audioSentPackets?: any/* Nullable<kotlin.Number> */, audioSentBytes?: any/* Nullable<kotlin.Number> */, audioSentPacketsLost?: any/* Nullable<kotlin.Number> */, audioRtt?: any/* Nullable<kotlin.Number> */, audioSentJitter?: any/* Nullable<kotlin.Number> */, legId?: string): vonage.RTCStatsJS;
|
|
949
|
+
copy(audioRecvPackets?: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvPacketsLost?: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvBytes?: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvJitter?: Nullable<any>/* Nullable<kotlin.Number> */, audioSentPackets?: Nullable<any>/* Nullable<kotlin.Number> */, audioSentBytes?: Nullable<any>/* Nullable<kotlin.Number> */, audioSentPacketsLost?: Nullable<any>/* Nullable<kotlin.Number> */, audioRtt?: Nullable<any>/* Nullable<kotlin.Number> */, audioSentJitter?: Nullable<any>/* Nullable<kotlin.Number> */, legId?: string): vonage.RTCStatsJS;
|
|
953
950
|
toString(): string;
|
|
954
951
|
hashCode(): number;
|
|
955
952
|
equals(other: Nullable<any>): boolean;
|