@vonage/client-sdk 0.1.5 → 0.2.0-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/dist/client/VonageClient.d.ts +21 -0
- package/dist/{voice → client}/index.cjs +17617 -10595
- package/dist/client/index.d.ts +2 -0
- package/dist/{voice → client}/index.mjs +17614 -10593
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +315 -26
- package/dist/lib/HttpClient.d.ts +1 -1
- package/dist/lib/MediaClient.d.ts +1 -1
- package/dist/lib/SocketClient.d.ts +1 -1
- package/dist/utils/ClientConfig.d.ts +5 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/logging.d.ts +3 -0
- package/dist/utils/vonage.d.ts +2 -0
- package/dist/vonageClientSDK.js +17621 -10596
- package/dist/vonageClientSDK.min.js +2 -2
- package/dist/vonageClientSDK.min.mjs +2 -2
- package/dist/vonageClientSDK.mjs +17616 -10595
- package/package.json +11 -20
- package/rollup.config.js +12 -31
- package/dist/index.cjs +0 -27
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +0 -1
- package/dist/voice/VoiceClient.d.ts +0 -26
- package/dist/voice/index.d.ts +0 -2
- /package/dist/{utils → lib}/createRtcAudioConnection.d.ts +0 -0
|
@@ -2,25 +2,275 @@ type Nullable<T> = T | null | undefined
|
|
|
2
2
|
declare const __doNotImplementIt: unique symbol
|
|
3
3
|
type __doNotImplementIt = typeof __doNotImplementIt
|
|
4
4
|
export namespace vonage {
|
|
5
|
-
interface
|
|
6
|
-
reconnecting(): void;
|
|
7
|
-
reconnection(): void;
|
|
8
|
-
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
5
|
+
interface CombinedEvents extends vonage.VoiceEvents, vonage.ChatEvents {
|
|
9
6
|
callInvite(callId: string, invite: vonage.VoiceInviteJS): void;
|
|
10
|
-
callTransfer(callId: string,
|
|
7
|
+
callTransfer(callId: string, conversationId: string): void;
|
|
11
8
|
mute(callId: string, legId: string, isMuted: boolean): void;
|
|
12
9
|
earmuff(callId: string, legId: string, earmuffStatus: boolean): void;
|
|
13
10
|
dtmf(callId: string, legId: string, digits: string): void;
|
|
14
|
-
|
|
11
|
+
callHangup(callId: string, callQuality: vonage.RTCQualityJS): void;
|
|
15
12
|
legStatusUpdate(callId: string, legId: string, status: string): void;
|
|
13
|
+
reconnecting(): void;
|
|
14
|
+
reconnection(): void;
|
|
15
|
+
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
}
|
|
18
|
+
export namespace vonage {
|
|
19
|
+
class CombinedClientJS implements vonage.IChatClientJS, vonage.IVoiceClientJS {
|
|
20
|
+
constructor(http: vonage.HttpClientJS, socket: vonage.SocketClientJS, media: vonage.MediaClientJS);
|
|
21
|
+
get media(): vonage.MediaClientJS;
|
|
22
|
+
get core(): any/* com.vonage.clientcore.core.CoreClientWithMedia */;
|
|
23
|
+
get emitter(): Nullable<vonage.CombinedEvents>;
|
|
24
|
+
set emitter(value: Nullable<vonage.CombinedEvents>);
|
|
25
|
+
createConversation(name: Nullable<string>, displayName: Nullable<string>): Promise<string>;
|
|
26
|
+
joinConversation(cid: string): Promise<string>;
|
|
27
|
+
inviteToConversation(cid: string, username: string): Promise<string>;
|
|
28
|
+
leaveConversation(cid: string): Promise<any>;
|
|
29
|
+
deleteConversation(cid: string): Promise<any>;
|
|
30
|
+
setConfig(config: vonage.CoreClientConfigJS): void;
|
|
31
|
+
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
32
|
+
deleteSession(): Promise<any>;
|
|
33
|
+
refreshSession(token: string): Promise<any>;
|
|
34
|
+
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
35
|
+
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
36
|
+
getPeerConnection(id: string): any;
|
|
37
|
+
serverCall(context: Nullable<Json>): Promise<vonage.VoiceCallJS>;
|
|
38
|
+
reconnectCall(legId: string): Promise<vonage.VoiceCallJS>;
|
|
39
|
+
getLeg(legId: string): Promise<vonage.LegJS>;
|
|
40
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export namespace vonage {
|
|
44
|
+
abstract class PresentingOrderJS {
|
|
45
|
+
private constructor();
|
|
46
|
+
get corePresentingOrder(): any/* com.vonage.clientcore.core.api.models.PresentingOrder */;
|
|
47
|
+
static get ASC(): vonage.PresentingOrderJS & {
|
|
48
|
+
get name(): "ASC";
|
|
49
|
+
get ordinal(): 0;
|
|
50
|
+
};
|
|
51
|
+
static get DESC(): vonage.PresentingOrderJS & {
|
|
52
|
+
get name(): "DESC";
|
|
53
|
+
get ordinal(): 1;
|
|
54
|
+
};
|
|
55
|
+
static values(): Array<vonage.PresentingOrderJS>;
|
|
56
|
+
static valueOf(value: string): vonage.PresentingOrderJS;
|
|
57
|
+
get name(): "ASC" | "DESC";
|
|
58
|
+
get ordinal(): 0 | 1;
|
|
59
|
+
}
|
|
60
|
+
class ConversationJS {
|
|
61
|
+
private constructor();
|
|
62
|
+
get id(): string;
|
|
63
|
+
get name(): string;
|
|
64
|
+
get timestamp(): vonage.ConversationTimestampJS;
|
|
65
|
+
get memberId(): Nullable<string>;
|
|
66
|
+
get memberState(): Nullable<vonage.MemberStateJS>;
|
|
67
|
+
get displayName(): Nullable<string>;
|
|
68
|
+
get imageUrl(): Nullable<string>;
|
|
69
|
+
get state(): Nullable<vonage.ConversationStateJS>;
|
|
70
|
+
get customData(): Nullable<string>;
|
|
71
|
+
}
|
|
72
|
+
abstract class ConversationStateJS {
|
|
73
|
+
private constructor();
|
|
74
|
+
static get ACTIVE(): vonage.ConversationStateJS & {
|
|
75
|
+
get name(): "ACTIVE";
|
|
76
|
+
get ordinal(): 0;
|
|
77
|
+
};
|
|
78
|
+
static get INACTIVE(): vonage.ConversationStateJS & {
|
|
79
|
+
get name(): "INACTIVE";
|
|
80
|
+
get ordinal(): 1;
|
|
81
|
+
};
|
|
82
|
+
static get DELETED(): vonage.ConversationStateJS & {
|
|
83
|
+
get name(): "DELETED";
|
|
84
|
+
get ordinal(): 2;
|
|
85
|
+
};
|
|
86
|
+
static values(): Array<vonage.ConversationStateJS>;
|
|
87
|
+
static valueOf(value: string): vonage.ConversationStateJS;
|
|
88
|
+
get name(): "ACTIVE" | "INACTIVE" | "DELETED";
|
|
89
|
+
get ordinal(): 0 | 1 | 2;
|
|
90
|
+
}
|
|
91
|
+
class ConversationTimestampJS {
|
|
92
|
+
private constructor();
|
|
93
|
+
get created(): Nullable<string>;
|
|
94
|
+
get updated(): Nullable<string>;
|
|
95
|
+
get destroyed(): Nullable<string>;
|
|
96
|
+
}
|
|
97
|
+
class MemberJS {
|
|
98
|
+
private constructor();
|
|
99
|
+
get id(): string;
|
|
100
|
+
get state(): vonage.MemberStateJS;
|
|
101
|
+
get user(): Nullable<vonage.UserJS>;
|
|
102
|
+
get channel(): Nullable<vonage.MemberChannelJS>;
|
|
103
|
+
get timestamp(): Nullable<vonage.MemberTimestampJS>;
|
|
104
|
+
}
|
|
105
|
+
abstract class MemberStateJS {
|
|
106
|
+
private constructor();
|
|
107
|
+
static get INVITED(): vonage.MemberStateJS & {
|
|
108
|
+
get name(): "INVITED";
|
|
109
|
+
get ordinal(): 0;
|
|
110
|
+
};
|
|
111
|
+
static get JOINED(): vonage.MemberStateJS & {
|
|
112
|
+
get name(): "JOINED";
|
|
113
|
+
get ordinal(): 1;
|
|
114
|
+
};
|
|
115
|
+
static get LEFT(): vonage.MemberStateJS & {
|
|
116
|
+
get name(): "LEFT";
|
|
117
|
+
get ordinal(): 2;
|
|
118
|
+
};
|
|
119
|
+
static get UNKNOWN(): vonage.MemberStateJS & {
|
|
120
|
+
get name(): "UNKNOWN";
|
|
121
|
+
get ordinal(): 3;
|
|
122
|
+
};
|
|
123
|
+
static values(): Array<vonage.MemberStateJS>;
|
|
124
|
+
static valueOf(value: string): vonage.MemberStateJS;
|
|
125
|
+
get name(): "INVITED" | "JOINED" | "LEFT" | "UNKNOWN";
|
|
126
|
+
get ordinal(): 0 | 1 | 2 | 3;
|
|
127
|
+
}
|
|
128
|
+
class MemberTimestampJS {
|
|
129
|
+
private constructor();
|
|
130
|
+
get invited(): Nullable<string>;
|
|
131
|
+
get joined(): Nullable<string>;
|
|
132
|
+
get left(): Nullable<string>;
|
|
133
|
+
}
|
|
134
|
+
class UserJS {
|
|
135
|
+
private constructor();
|
|
136
|
+
get id(): string;
|
|
137
|
+
get name(): string;
|
|
138
|
+
get displayName(): Nullable<string>;
|
|
139
|
+
get channels(): Nullable<vonage.UserChannelsJS>;
|
|
140
|
+
get timestamp(): Nullable<vonage.UserTimestampJS>;
|
|
141
|
+
get imageUrl(): Nullable<string>;
|
|
142
|
+
get customData(): Nullable<string>;
|
|
143
|
+
}
|
|
144
|
+
class UserTimestampJS {
|
|
145
|
+
private constructor();
|
|
146
|
+
get created(): Nullable<string>;
|
|
147
|
+
get updated(): Nullable<string>;
|
|
148
|
+
get destroyed(): Nullable<string>;
|
|
149
|
+
}
|
|
150
|
+
class UserChannelsJS {
|
|
151
|
+
private constructor();
|
|
152
|
+
get app(): Nullable<Array<vonage.ChannelJS>>;
|
|
153
|
+
get phone(): Nullable<Array<vonage.ChannelJS>>;
|
|
154
|
+
get pstn(): Nullable<Array<vonage.ChannelJS>>;
|
|
155
|
+
get sip(): Nullable<Array<vonage.ChannelJS>>;
|
|
156
|
+
get vbc(): Nullable<Array<vonage.ChannelJS>>;
|
|
157
|
+
get websocket(): Nullable<Array<vonage.ChannelJS>>;
|
|
158
|
+
get sms(): Nullable<Array<vonage.ChannelJS>>;
|
|
159
|
+
get mms(): Nullable<Array<vonage.ChannelJS>>;
|
|
160
|
+
get whatsapp(): Nullable<Array<vonage.ChannelJS>>;
|
|
161
|
+
get viber(): Nullable<Array<vonage.ChannelJS>>;
|
|
162
|
+
get messenger(): Nullable<Array<vonage.ChannelJS>>;
|
|
163
|
+
}
|
|
164
|
+
class MemberChannelJS {
|
|
165
|
+
private constructor();
|
|
166
|
+
get type(): vonage.ChannelTypeJS;
|
|
167
|
+
get from(): Nullable<vonage.ChannelJS>;
|
|
168
|
+
get to(): Nullable<vonage.ChannelJS>;
|
|
169
|
+
}
|
|
170
|
+
class ChannelJS {
|
|
171
|
+
private constructor();
|
|
172
|
+
get id(): Nullable<string>;
|
|
173
|
+
get number(): Nullable<string>;
|
|
174
|
+
}
|
|
175
|
+
class LegChannelJS {
|
|
176
|
+
private constructor();
|
|
177
|
+
get type(): Nullable<string>;
|
|
178
|
+
get user(): Nullable<string>;
|
|
179
|
+
get number(): Nullable<string>;
|
|
180
|
+
}
|
|
181
|
+
class LegJS {
|
|
182
|
+
private constructor();
|
|
183
|
+
get id(): string;
|
|
184
|
+
get type(): string;
|
|
185
|
+
get direction(): string;
|
|
186
|
+
get conversationId(): string;
|
|
187
|
+
get status(): string;
|
|
188
|
+
get startTime(): string;
|
|
189
|
+
get endTime(): string;
|
|
190
|
+
get from(): vonage.LegChannelJS;
|
|
191
|
+
get to(): vonage.LegChannelJS;
|
|
192
|
+
}
|
|
193
|
+
abstract class ChannelTypeJS {
|
|
194
|
+
private constructor();
|
|
195
|
+
static get APP(): vonage.ChannelTypeJS & {
|
|
196
|
+
get name(): "APP";
|
|
197
|
+
get ordinal(): 0;
|
|
198
|
+
};
|
|
199
|
+
static get PHONE(): vonage.ChannelTypeJS & {
|
|
200
|
+
get name(): "PHONE";
|
|
201
|
+
get ordinal(): 1;
|
|
202
|
+
};
|
|
203
|
+
static get PSTN(): vonage.ChannelTypeJS & {
|
|
204
|
+
get name(): "PSTN";
|
|
205
|
+
get ordinal(): 2;
|
|
206
|
+
};
|
|
207
|
+
static get SIP(): vonage.ChannelTypeJS & {
|
|
208
|
+
get name(): "SIP";
|
|
209
|
+
get ordinal(): 3;
|
|
210
|
+
};
|
|
211
|
+
static get VBC(): vonage.ChannelTypeJS & {
|
|
212
|
+
get name(): "VBC";
|
|
213
|
+
get ordinal(): 4;
|
|
214
|
+
};
|
|
215
|
+
static get WEBSOCKET(): vonage.ChannelTypeJS & {
|
|
216
|
+
get name(): "WEBSOCKET";
|
|
217
|
+
get ordinal(): 5;
|
|
218
|
+
};
|
|
219
|
+
static get SMS(): vonage.ChannelTypeJS & {
|
|
220
|
+
get name(): "SMS";
|
|
221
|
+
get ordinal(): 6;
|
|
222
|
+
};
|
|
223
|
+
static get MMS(): vonage.ChannelTypeJS & {
|
|
224
|
+
get name(): "MMS";
|
|
225
|
+
get ordinal(): 7;
|
|
226
|
+
};
|
|
227
|
+
static get WHATSAPP(): vonage.ChannelTypeJS & {
|
|
228
|
+
get name(): "WHATSAPP";
|
|
229
|
+
get ordinal(): 8;
|
|
230
|
+
};
|
|
231
|
+
static get VIBER(): vonage.ChannelTypeJS & {
|
|
232
|
+
get name(): "VIBER";
|
|
233
|
+
get ordinal(): 9;
|
|
234
|
+
};
|
|
235
|
+
static get MESSENGER(): vonage.ChannelTypeJS & {
|
|
236
|
+
get name(): "MESSENGER";
|
|
237
|
+
get ordinal(): 10;
|
|
238
|
+
};
|
|
239
|
+
static values(): Array<vonage.ChannelTypeJS>;
|
|
240
|
+
static valueOf(value: string): vonage.ChannelTypeJS;
|
|
241
|
+
get name(): "APP" | "PHONE" | "PSTN" | "SIP" | "VBC" | "WEBSOCKET" | "SMS" | "MMS" | "WHATSAPP" | "VIBER" | "MESSENGER";
|
|
242
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
export namespace vonage {
|
|
246
|
+
interface ChatEvents extends vonage.CoreClientEvents {
|
|
247
|
+
reconnecting(): void;
|
|
248
|
+
reconnection(): void;
|
|
249
|
+
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
export namespace vonage {
|
|
253
|
+
interface IChatClientJS extends vonage.ICoreClientJS {
|
|
254
|
+
readonly core: any/* com.vonage.clientcore.core.CoreClient */;
|
|
255
|
+
createConversation(name: Nullable<string>, displayName: Nullable<string>): Promise<string>;
|
|
256
|
+
joinConversation(cid: string): Promise<string>;
|
|
257
|
+
inviteToConversation(cid: string, username: string): Promise<string>;
|
|
258
|
+
leaveConversation(cid: string): Promise<any>;
|
|
259
|
+
deleteConversation(cid: string): Promise<any>;
|
|
260
|
+
setConfig(config: vonage.CoreClientConfigJS): void;
|
|
261
|
+
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
262
|
+
deleteSession(): Promise<any>;
|
|
263
|
+
refreshSession(token: string): Promise<any>;
|
|
264
|
+
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
265
|
+
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
266
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
export namespace vonage {
|
|
270
|
+
interface CoreClientEvents {
|
|
271
|
+
reconnecting(): void;
|
|
272
|
+
reconnection(): void;
|
|
273
|
+
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
24
274
|
}
|
|
25
275
|
}
|
|
26
276
|
export namespace vonage {
|
|
@@ -110,17 +360,54 @@ export namespace vonage {
|
|
|
110
360
|
};
|
|
111
361
|
}
|
|
112
362
|
function setDefaultLoggingLevel(level: vonage.LoggingLevelJS): void;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
get emitter(): Nullable<vonage.CoreClientEvents>;
|
|
116
|
-
set emitter(value: Nullable<vonage.CoreClientEvents>);
|
|
363
|
+
interface ICoreClientJS {
|
|
364
|
+
readonly core: any/* com.vonage.clientcore.core.CoreClient */;
|
|
117
365
|
setConfig(config: vonage.CoreClientConfigJS): void;
|
|
118
366
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
119
367
|
deleteSession(): Promise<any>;
|
|
120
368
|
refreshSession(token: string): Promise<any>;
|
|
369
|
+
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
370
|
+
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
371
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
export namespace vonage {
|
|
375
|
+
interface VoiceEvents extends vonage.CoreClientEvents {
|
|
376
|
+
callInvite(callId: string, invite: vonage.VoiceInviteJS): void;
|
|
377
|
+
callTransfer(callId: string, conversationId: string): void;
|
|
378
|
+
mute(callId: string, legId: string, isMuted: boolean): void;
|
|
379
|
+
earmuff(callId: string, legId: string, earmuffStatus: boolean): void;
|
|
380
|
+
dtmf(callId: string, legId: string, digits: string): void;
|
|
381
|
+
callHangup(callId: string, callQuality: vonage.RTCQualityJS): void;
|
|
382
|
+
legStatusUpdate(callId: string, legId: string, status: string): void;
|
|
383
|
+
reconnecting(): void;
|
|
384
|
+
reconnection(): void;
|
|
385
|
+
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
386
|
+
}
|
|
387
|
+
interface CallSayParams {
|
|
388
|
+
readonly text: string;
|
|
389
|
+
readonly level: Nullable<number>;
|
|
390
|
+
readonly loop: Nullable<number>;
|
|
391
|
+
readonly queue: Nullable<boolean>;
|
|
392
|
+
readonly voiceName: Nullable<string>;
|
|
393
|
+
readonly ssml: Nullable<boolean>;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
export namespace vonage {
|
|
397
|
+
interface IVoiceClientJS extends vonage.ICoreClientJS {
|
|
398
|
+
readonly media: vonage.MediaClientJS;
|
|
399
|
+
readonly core: any/* com.vonage.clientcore.core.CoreClientWithMedia */;
|
|
121
400
|
getPeerConnection(id: string): any;
|
|
122
401
|
serverCall(context: Nullable<Json>): Promise<vonage.VoiceCallJS>;
|
|
123
402
|
reconnectCall(legId: string): Promise<vonage.VoiceCallJS>;
|
|
403
|
+
getLeg(legId: string): Promise<vonage.LegJS>;
|
|
404
|
+
setConfig(config: vonage.CoreClientConfigJS): void;
|
|
405
|
+
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
406
|
+
deleteSession(): Promise<any>;
|
|
407
|
+
refreshSession(token: string): Promise<any>;
|
|
408
|
+
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
409
|
+
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
410
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
124
411
|
}
|
|
125
412
|
class VoiceCallJS {
|
|
126
413
|
private constructor();
|
|
@@ -133,6 +420,17 @@ export namespace vonage {
|
|
|
133
420
|
disableEarmuff(): Promise<any>;
|
|
134
421
|
sendDTMF(digits: string): Promise<any>;
|
|
135
422
|
}
|
|
423
|
+
class VoiceInviteFromInfoJS {
|
|
424
|
+
constructor(id: Nullable<string>, type: string);
|
|
425
|
+
get id(): Nullable<string>;
|
|
426
|
+
get type(): string;
|
|
427
|
+
component1(): Nullable<string>;
|
|
428
|
+
component2(): string;
|
|
429
|
+
copy(id?: Nullable<string>, type?: string): vonage.VoiceInviteFromInfoJS;
|
|
430
|
+
toString(): string;
|
|
431
|
+
hashCode(): number;
|
|
432
|
+
equals(other: Nullable<any>): boolean;
|
|
433
|
+
}
|
|
136
434
|
class VoiceInviteJS {
|
|
137
435
|
private constructor();
|
|
138
436
|
get from(): string;
|
|
@@ -140,15 +438,6 @@ export namespace vonage {
|
|
|
140
438
|
answerCall(): Promise<vonage.VoiceCallJS>;
|
|
141
439
|
rejectCall(): Promise<any>;
|
|
142
440
|
}
|
|
143
|
-
class ConversationJS {
|
|
144
|
-
private constructor();
|
|
145
|
-
get id(): string;
|
|
146
|
-
set id(value: string);
|
|
147
|
-
copy(conversation?: any/* com.vonage.clientcore.core.api.Conversation */): vonage.ConversationJS;
|
|
148
|
-
toString(): string;
|
|
149
|
-
hashCode(): number;
|
|
150
|
-
equals(other: Nullable<any>): boolean;
|
|
151
|
-
}
|
|
152
441
|
}
|
|
153
442
|
export namespace vonage {
|
|
154
443
|
interface HttpClientJS {
|
package/dist/lib/HttpClient.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as KMPPackage from '../kotlin/clientsdk-clientcore_js';
|
|
2
|
-
import
|
|
2
|
+
import vonage from '../utils/vonage';
|
|
3
3
|
type HttpHeaders = Record<string, string | number | boolean>;
|
|
4
4
|
declare class HttpClient implements vonage.HttpClientJS {
|
|
5
5
|
private stringToVerb;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as KMPPackage from '../kotlin/clientsdk-clientcore_js';
|
|
2
|
-
import
|
|
2
|
+
import vonage from '../utils/vonage';
|
|
3
3
|
declare class MediaClient implements vonage.MediaClientJS {
|
|
4
4
|
delegate: KMPPackage.Nullable<vonage.MediaClientDelegateJS>;
|
|
5
5
|
private pcs;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as KMPPackage from '../kotlin/clientsdk-clientcore_js';
|
|
2
|
-
import
|
|
2
|
+
import vonage from '../utils/vonage';
|
|
3
3
|
declare class SocketClient implements vonage.SocketClientJS {
|
|
4
4
|
delegate: KMPPackage.Nullable<vonage.SocketClientDelegateJS>;
|
|
5
5
|
private socket;
|