@vonage/client-sdk 1.2.0-alpha.10 → 1.2.0-alpha.12
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 +6 -2
- package/dist/client/VonageClient.d.ts +22 -3
- package/dist/client/index.cjs +12423 -11300
- package/dist/client/index.mjs +12423 -11300
- package/dist/kotlin/{ConversationEvents.d.ts → JsUnions.d.ts} +163 -98
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +99 -40
- package/dist/lib/MediaClient.d.ts +1 -0
- package/dist/utils/ConnectivityManager.d.ts +11 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/vonageClientSDK.js +15627 -18214
- package/dist/vonageClientSDK.min.js +1 -2
- package/dist/vonageClientSDK.min.mjs +1 -2
- package/dist/vonageClientSDK.mjs +15627 -18214
- package/package.json +2 -2
- package/dist/kotlin/From.d.ts +0 -26
|
@@ -9,6 +9,9 @@ export declare namespace vonage {
|
|
|
9
9
|
dtmf(callId: string, legId: string, digits: string): void;
|
|
10
10
|
callHangup(callId: string, callQuality: vonage.RTCQualityJS, reason: vonage.HangupReasonJS): void;
|
|
11
11
|
legStatusUpdate(callId: string, legId: string, status: vonage.LegStatusJS): void;
|
|
12
|
+
callMediaReconnecting(callId: string): void;
|
|
13
|
+
callMediaReconnection(callId: string): void;
|
|
14
|
+
callMediaDisconnect(callId: string, reason: vonage.CallDisconnectReasonJS): void;
|
|
12
15
|
reconnecting(): void;
|
|
13
16
|
reconnection(): void;
|
|
14
17
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
@@ -33,6 +36,7 @@ export declare namespace vonage {
|
|
|
33
36
|
getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
|
|
34
37
|
sendTextMessage(cid: string, text: string): Promise<string>;
|
|
35
38
|
sendCustomMessage(cid: string, customData: string): Promise<string>;
|
|
39
|
+
sendEphemeralEvent(cid: string, customBody: string): Promise<string>;
|
|
36
40
|
setConfig(config: vonage.CoreClientConfigJS): void;
|
|
37
41
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
38
42
|
deleteSession(): Promise<any>;
|
|
@@ -58,7 +62,7 @@ export declare namespace vonage {
|
|
|
58
62
|
export declare namespace vonage {
|
|
59
63
|
class EventsPageJS {
|
|
60
64
|
private constructor();
|
|
61
|
-
get events(): Array<vonage.
|
|
65
|
+
get events(): Array<vonage.PersistentConversationEventJS>;
|
|
62
66
|
get previousCursor(): Nullable<string>;
|
|
63
67
|
get nextCursor(): Nullable<string>;
|
|
64
68
|
}
|
|
@@ -76,88 +80,116 @@ export declare namespace vonage {
|
|
|
76
80
|
}
|
|
77
81
|
const SystemJS: {
|
|
78
82
|
get kind(): string;
|
|
83
|
+
toString(): string;
|
|
84
|
+
hashCode(): number;
|
|
85
|
+
equals(other: Nullable<any>): boolean;
|
|
79
86
|
readonly __doNotUseOrImplementIt: vonage.FromJS["__doNotUseOrImplementIt"];
|
|
80
87
|
} & vonage.FromJS;
|
|
81
88
|
interface ConversationEventJS {
|
|
82
|
-
readonly
|
|
89
|
+
readonly kind: string;
|
|
83
90
|
readonly timestamp: string;
|
|
84
91
|
readonly conversationId: string;
|
|
85
|
-
readonly from:
|
|
92
|
+
readonly from: vonage.FromJS;
|
|
86
93
|
readonly __doNotUseOrImplementIt: {
|
|
87
94
|
readonly "vonage.ConversationEventJS": unique symbol;
|
|
88
95
|
};
|
|
89
96
|
}
|
|
90
|
-
interface
|
|
91
|
-
readonly
|
|
92
|
-
readonly id: Nullable<number>;
|
|
97
|
+
interface NonPersistentConversationEventJS extends vonage.ConversationEventJS {
|
|
98
|
+
readonly kind: string;
|
|
93
99
|
readonly timestamp: string;
|
|
94
100
|
readonly conversationId: string;
|
|
95
|
-
readonly from:
|
|
101
|
+
readonly from: vonage.FromJS;
|
|
96
102
|
readonly __doNotUseOrImplementIt: {
|
|
97
|
-
readonly "vonage.
|
|
103
|
+
readonly "vonage.NonPersistentConversationEventJS": unique symbol;
|
|
104
|
+
} & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
105
|
+
}
|
|
106
|
+
interface PersistentConversationEventJS extends vonage.ConversationEventJS {
|
|
107
|
+
readonly id: number;
|
|
108
|
+
readonly kind: string;
|
|
109
|
+
readonly timestamp: string;
|
|
110
|
+
readonly conversationId: string;
|
|
111
|
+
readonly from: vonage.FromJS;
|
|
112
|
+
readonly __doNotUseOrImplementIt: {
|
|
113
|
+
readonly "vonage.PersistentConversationEventJS": unique symbol;
|
|
98
114
|
} & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
99
115
|
}
|
|
116
|
+
interface MemberEventJS {
|
|
117
|
+
readonly body: vonage.MemberEventBodyJS;
|
|
118
|
+
readonly __doNotUseOrImplementIt: {
|
|
119
|
+
readonly "vonage.MemberEventJS": unique symbol;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
100
122
|
class MemberEventBodyJS {
|
|
101
123
|
private constructor();
|
|
102
124
|
get memberId(): string;
|
|
103
125
|
get user(): vonage.UserJS;
|
|
104
126
|
}
|
|
105
|
-
class MemberInvitedEventJS implements vonage.MemberEventJS {
|
|
127
|
+
class MemberInvitedEventJS implements vonage.MemberEventJS, vonage.PersistentConversationEventJS {
|
|
106
128
|
private constructor();
|
|
129
|
+
get kind(): string;
|
|
107
130
|
get id(): number;
|
|
108
131
|
get timestamp(): string;
|
|
109
132
|
get conversationId(): string;
|
|
110
133
|
get from(): vonage.FromJS;
|
|
111
134
|
get body(): vonage.MemberEventBodyJS;
|
|
112
|
-
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"];
|
|
135
|
+
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
113
136
|
}
|
|
114
|
-
class MemberJoinedEventJS implements vonage.MemberEventJS {
|
|
137
|
+
class MemberJoinedEventJS implements vonage.MemberEventJS, vonage.PersistentConversationEventJS {
|
|
115
138
|
private constructor();
|
|
139
|
+
get kind(): string;
|
|
116
140
|
get id(): number;
|
|
117
141
|
get timestamp(): string;
|
|
118
142
|
get conversationId(): string;
|
|
119
143
|
get from(): vonage.FromJS;
|
|
120
144
|
get body(): vonage.MemberEventBodyJS;
|
|
121
|
-
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"];
|
|
145
|
+
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
122
146
|
}
|
|
123
|
-
class MemberLeftEventJS implements vonage.MemberEventJS {
|
|
147
|
+
class MemberLeftEventJS implements vonage.MemberEventJS, vonage.PersistentConversationEventJS {
|
|
124
148
|
private constructor();
|
|
149
|
+
get kind(): string;
|
|
125
150
|
get id(): number;
|
|
126
151
|
get timestamp(): string;
|
|
127
152
|
get conversationId(): string;
|
|
128
153
|
get from(): vonage.FromJS;
|
|
129
154
|
get body(): vonage.MemberEventBodyJS;
|
|
130
|
-
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"];
|
|
155
|
+
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
131
156
|
}
|
|
132
|
-
class CustomConversationEventJS implements vonage.
|
|
157
|
+
class CustomConversationEventJS implements vonage.PersistentConversationEventJS {
|
|
133
158
|
private constructor();
|
|
159
|
+
get kind(): string;
|
|
134
160
|
get id(): number;
|
|
135
161
|
get timestamp(): string;
|
|
136
162
|
get conversationId(): string;
|
|
137
163
|
get from(): vonage.FromJS;
|
|
138
164
|
get eventType(): Nullable<string>;
|
|
139
165
|
get body(): string;
|
|
140
|
-
readonly __doNotUseOrImplementIt: vonage.
|
|
166
|
+
readonly __doNotUseOrImplementIt: vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
167
|
+
}
|
|
168
|
+
class EphemeralConversationEventJS implements vonage.NonPersistentConversationEventJS {
|
|
169
|
+
private constructor();
|
|
170
|
+
get kind(): string;
|
|
171
|
+
get timestamp(): string;
|
|
172
|
+
get conversationId(): string;
|
|
173
|
+
get from(): vonage.FromJS;
|
|
174
|
+
get body(): string;
|
|
175
|
+
readonly __doNotUseOrImplementIt: vonage.NonPersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
141
176
|
}
|
|
142
177
|
}
|
|
143
178
|
export declare namespace vonage {
|
|
144
|
-
interface MessageEventJS
|
|
145
|
-
readonly id: number;
|
|
146
|
-
readonly timestamp: string;
|
|
147
|
-
readonly conversationId: string;
|
|
148
|
-
readonly from: Nullable<vonage.FromJS>;
|
|
179
|
+
interface MessageEventJS {
|
|
149
180
|
readonly __doNotUseOrImplementIt: {
|
|
150
181
|
readonly "vonage.MessageEventJS": unique symbol;
|
|
151
|
-
}
|
|
182
|
+
};
|
|
152
183
|
}
|
|
153
|
-
class TextMessageEventJS implements vonage.MessageEventJS {
|
|
184
|
+
class TextMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
154
185
|
private constructor();
|
|
186
|
+
get kind(): string;
|
|
155
187
|
get id(): number;
|
|
156
188
|
get timestamp(): string;
|
|
157
189
|
get conversationId(): string;
|
|
158
190
|
get from(): vonage.FromJS;
|
|
159
191
|
get body(): vonage.TextMessageEventJS.Body;
|
|
160
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
192
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
161
193
|
}
|
|
162
194
|
namespace TextMessageEventJS {
|
|
163
195
|
class Body {
|
|
@@ -165,14 +197,15 @@ export declare namespace vonage {
|
|
|
165
197
|
get text(): string;
|
|
166
198
|
}
|
|
167
199
|
}
|
|
168
|
-
class CustomMessageEventJS implements vonage.MessageEventJS {
|
|
200
|
+
class CustomMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
169
201
|
private constructor();
|
|
202
|
+
get kind(): string;
|
|
170
203
|
get id(): number;
|
|
171
204
|
get timestamp(): string;
|
|
172
205
|
get conversationId(): string;
|
|
173
206
|
get from(): vonage.FromJS;
|
|
174
207
|
get body(): vonage.CustomMessageEventJS.Body;
|
|
175
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
208
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
176
209
|
}
|
|
177
210
|
namespace CustomMessageEventJS {
|
|
178
211
|
class Body {
|
|
@@ -180,14 +213,15 @@ export declare namespace vonage {
|
|
|
180
213
|
get customData(): string;
|
|
181
214
|
}
|
|
182
215
|
}
|
|
183
|
-
class AudioMessageEventJS implements vonage.MessageEventJS {
|
|
216
|
+
class AudioMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
184
217
|
private constructor();
|
|
218
|
+
get kind(): string;
|
|
185
219
|
get id(): number;
|
|
186
220
|
get timestamp(): string;
|
|
187
221
|
get conversationId(): string;
|
|
188
222
|
get from(): vonage.FromJS;
|
|
189
223
|
get body(): vonage.AudioMessageEventJS.Body;
|
|
190
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
224
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
191
225
|
}
|
|
192
226
|
namespace AudioMessageEventJS {
|
|
193
227
|
class Body {
|
|
@@ -195,14 +229,15 @@ export declare namespace vonage {
|
|
|
195
229
|
get audioUrl(): string;
|
|
196
230
|
}
|
|
197
231
|
}
|
|
198
|
-
class VideoMessageEventJS implements vonage.MessageEventJS {
|
|
232
|
+
class VideoMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
199
233
|
private constructor();
|
|
234
|
+
get kind(): string;
|
|
200
235
|
get id(): number;
|
|
201
236
|
get timestamp(): string;
|
|
202
237
|
get conversationId(): string;
|
|
203
238
|
get from(): vonage.FromJS;
|
|
204
239
|
get body(): vonage.VideoMessageEventJS.Body;
|
|
205
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
240
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
206
241
|
}
|
|
207
242
|
namespace VideoMessageEventJS {
|
|
208
243
|
class Body {
|
|
@@ -210,14 +245,15 @@ export declare namespace vonage {
|
|
|
210
245
|
get videoUrl(): string;
|
|
211
246
|
}
|
|
212
247
|
}
|
|
213
|
-
class ImageMessageEventJS implements vonage.MessageEventJS {
|
|
248
|
+
class ImageMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
214
249
|
private constructor();
|
|
250
|
+
get kind(): string;
|
|
215
251
|
get id(): number;
|
|
216
252
|
get timestamp(): string;
|
|
217
253
|
get conversationId(): string;
|
|
218
254
|
get from(): vonage.FromJS;
|
|
219
255
|
get body(): vonage.ImageMessageEventJS.Body;
|
|
220
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
256
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
221
257
|
}
|
|
222
258
|
namespace ImageMessageEventJS {
|
|
223
259
|
class Body {
|
|
@@ -225,14 +261,15 @@ export declare namespace vonage {
|
|
|
225
261
|
get imageUrl(): string;
|
|
226
262
|
}
|
|
227
263
|
}
|
|
228
|
-
class FileMessageEventJS implements vonage.MessageEventJS {
|
|
264
|
+
class FileMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
229
265
|
private constructor();
|
|
266
|
+
get kind(): string;
|
|
230
267
|
get id(): number;
|
|
231
268
|
get timestamp(): string;
|
|
232
269
|
get conversationId(): string;
|
|
233
270
|
get from(): vonage.FromJS;
|
|
234
271
|
get body(): vonage.FileMessageEventJS.Body;
|
|
235
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
272
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
236
273
|
}
|
|
237
274
|
namespace FileMessageEventJS {
|
|
238
275
|
class Body {
|
|
@@ -240,14 +277,15 @@ export declare namespace vonage {
|
|
|
240
277
|
get fileUrl(): string;
|
|
241
278
|
}
|
|
242
279
|
}
|
|
243
|
-
class VCardMessageEventJS implements vonage.MessageEventJS {
|
|
280
|
+
class VCardMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
244
281
|
private constructor();
|
|
282
|
+
get kind(): string;
|
|
245
283
|
get id(): number;
|
|
246
284
|
get timestamp(): string;
|
|
247
285
|
get conversationId(): string;
|
|
248
286
|
get from(): vonage.FromJS;
|
|
249
287
|
get body(): vonage.VCardMessageEventJS.Body;
|
|
250
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
288
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
251
289
|
}
|
|
252
290
|
namespace VCardMessageEventJS {
|
|
253
291
|
class Body {
|
|
@@ -255,14 +293,15 @@ export declare namespace vonage {
|
|
|
255
293
|
get vcardUrl(): string;
|
|
256
294
|
}
|
|
257
295
|
}
|
|
258
|
-
class LocationMessageEventJS implements vonage.MessageEventJS {
|
|
296
|
+
class LocationMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
259
297
|
private constructor();
|
|
298
|
+
get kind(): string;
|
|
260
299
|
get id(): number;
|
|
261
300
|
get timestamp(): string;
|
|
262
301
|
get conversationId(): string;
|
|
263
302
|
get from(): vonage.FromJS;
|
|
264
303
|
get body(): vonage.LocationMessageEventJS.Body;
|
|
265
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
304
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
266
305
|
}
|
|
267
306
|
namespace LocationMessageEventJS {
|
|
268
307
|
class Body {
|
|
@@ -277,14 +316,15 @@ export declare namespace vonage {
|
|
|
277
316
|
get address(): Nullable<string>;
|
|
278
317
|
}
|
|
279
318
|
}
|
|
280
|
-
class TemplateMessageEventJS implements vonage.MessageEventJS {
|
|
319
|
+
class TemplateMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
281
320
|
private constructor();
|
|
321
|
+
get kind(): string;
|
|
282
322
|
get id(): number;
|
|
283
323
|
get timestamp(): string;
|
|
284
324
|
get conversationId(): string;
|
|
285
325
|
get from(): vonage.FromJS;
|
|
286
326
|
get body(): vonage.TemplateMessageEventJS.Body;
|
|
287
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
327
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
288
328
|
}
|
|
289
329
|
namespace TemplateMessageEventJS {
|
|
290
330
|
class Body {
|
|
@@ -605,6 +645,7 @@ export declare namespace vonage {
|
|
|
605
645
|
getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
|
|
606
646
|
sendTextMessage(cid: string, text: string): Promise<string>;
|
|
607
647
|
sendCustomMessage(cid: string, customData: string): Promise<string>;
|
|
648
|
+
sendEphemeralEvent(cid: string, customBody: string): Promise<string>;
|
|
608
649
|
setConfig(config: vonage.CoreClientConfigJS): void;
|
|
609
650
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
610
651
|
deleteSession(): Promise<any>;
|
|
@@ -735,6 +776,9 @@ export declare namespace vonage {
|
|
|
735
776
|
dtmf(callId: string, legId: string, digits: string): void;
|
|
736
777
|
callHangup(callId: string, callQuality: vonage.RTCQualityJS, reason: vonage.HangupReasonJS): void;
|
|
737
778
|
legStatusUpdate(callId: string, legId: string, status: vonage.LegStatusJS): void;
|
|
779
|
+
callMediaReconnecting(callId: string): void;
|
|
780
|
+
callMediaReconnection(callId: string): void;
|
|
781
|
+
callMediaDisconnect(callId: string, reason: vonage.CallDisconnectReasonJS): void;
|
|
738
782
|
reconnecting(): void;
|
|
739
783
|
reconnection(): void;
|
|
740
784
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
@@ -771,6 +815,20 @@ export declare namespace vonage {
|
|
|
771
815
|
getStatus(status: any/* com.vonage.clientcore.core.api.LegStatus */): vonage.LegStatusJS;
|
|
772
816
|
};
|
|
773
817
|
}
|
|
818
|
+
abstract class CallDisconnectReasonJS {
|
|
819
|
+
private constructor();
|
|
820
|
+
static get networkChange(): vonage.CallDisconnectReasonJS & {
|
|
821
|
+
get name(): "networkChange";
|
|
822
|
+
get ordinal(): 0;
|
|
823
|
+
};
|
|
824
|
+
static values(): Array<vonage.CallDisconnectReasonJS>;
|
|
825
|
+
static valueOf(value: string): vonage.CallDisconnectReasonJS;
|
|
826
|
+
get name(): "networkChange";
|
|
827
|
+
get ordinal(): 0;
|
|
828
|
+
static get Companion(): {
|
|
829
|
+
getReason(reason: any/* com.vonage.clientcore.core.api.CallDisconnectReason */): vonage.CallDisconnectReasonJS;
|
|
830
|
+
};
|
|
831
|
+
}
|
|
774
832
|
abstract class HangupReasonJS {
|
|
775
833
|
private constructor();
|
|
776
834
|
static get REMOTE_HANGUP(): vonage.HangupReasonJS & {
|
|
@@ -867,6 +925,7 @@ export declare namespace vonage {
|
|
|
867
925
|
interface MediaClientDelegateJS {
|
|
868
926
|
onRtcStats(rtcStats: vonage.RTCStatsJS): void;
|
|
869
927
|
onConnectionChange(id: string, status: string): void;
|
|
928
|
+
onNetworkChange(legId: string, status: string): void;
|
|
870
929
|
}
|
|
871
930
|
}
|
|
872
931
|
export declare namespace vonage {
|
|
@@ -5,6 +5,7 @@ declare class MediaClient implements vonage.MediaClientJS {
|
|
|
5
5
|
private pcs;
|
|
6
6
|
private audio;
|
|
7
7
|
private intervalId;
|
|
8
|
+
private connectivityManager;
|
|
8
9
|
constructor();
|
|
9
10
|
enableRtcStatsCollection(interval: number, mediaId: string): void;
|
|
10
11
|
enableMediaInbound(closure: (err: unknown, offerSDP: KMPPackage.Nullable<string>) => void, offerSDP: string, rtcId: string): Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as KMPPackage from '../kotlin/clientsdk-clientcore_js';
|
|
2
|
+
import vonage from '../utils/vonage';
|
|
3
|
+
export declare class ConnectivityManager {
|
|
4
|
+
private legId;
|
|
5
|
+
private isOnline;
|
|
6
|
+
private delegate;
|
|
7
|
+
handleNetworkChange(): void;
|
|
8
|
+
constructor();
|
|
9
|
+
setLegId(legId: string, delegate: KMPPackage.Nullable<vonage.MediaClientDelegateJS>): void;
|
|
10
|
+
unsetLegId(): void;
|
|
11
|
+
}
|
package/dist/utils/index.d.ts
CHANGED