@vonage/client-sdk 1.2.0-alpha.4 → 1.2.0-alpha.6
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/index.cjs +24316 -33053
- package/dist/client/index.mjs +24316 -33053
- package/dist/kotlin/ConversationEvents.d.ts +1 -15
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +69 -82
- package/dist/vonageClientSDK.js +24070 -30744
- package/dist/vonageClientSDK.min.js +2 -2
- package/dist/vonageClientSDK.min.mjs +2 -2
- package/dist/vonageClientSDK.mjs +24070 -30744
- package/package.json +1 -1
|
@@ -42,20 +42,6 @@ export type MemberLeftEvent = {
|
|
|
42
42
|
kind: 'member:left';
|
|
43
43
|
from: From;
|
|
44
44
|
} & vonage.MemberLeftEventJS;
|
|
45
|
-
/**
|
|
46
|
-
* A UnknownEvent is a ConversationEvent with a type of 'unknown'
|
|
47
|
-
*
|
|
48
|
-
* @property type the type property of the UnknownEvent
|
|
49
|
-
* @property id the id property of the UnknownEvent
|
|
50
|
-
* @property timestamp the timestamp property of the UnknownEvent
|
|
51
|
-
* @property conversationId the conversationId property of the UnknownEvent
|
|
52
|
-
* @property from the from property of the UnknownEvent
|
|
53
|
-
* @interface
|
|
54
|
-
*/
|
|
55
|
-
export type UnknownEvent = {
|
|
56
|
-
kind: 'unknown';
|
|
57
|
-
from: From;
|
|
58
|
-
} & vonage.UnknownEventJS;
|
|
59
45
|
/**
|
|
60
46
|
* A TextMessageEvent is a ConversationEvent with a type of 'message:text'
|
|
61
47
|
*
|
|
@@ -182,4 +168,4 @@ export type TemplateMessageEvent = {
|
|
|
182
168
|
kind: 'message:template';
|
|
183
169
|
from: From;
|
|
184
170
|
} & vonage.TemplateMessageEventJS;
|
|
185
|
-
export type ConversationEvent = MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent |
|
|
171
|
+
export type ConversationEvent = MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent | 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;
|
|
@@ -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,18 @@ export namespace vonage {
|
|
|
122
127
|
get conversationId(): string;
|
|
123
128
|
get from(): vonage.FromJS;
|
|
124
129
|
get body(): vonage.MemberEventBodyJS;
|
|
125
|
-
readonly
|
|
126
|
-
}
|
|
127
|
-
class UnknownEventJS implements vonage.ConversationEventJS {
|
|
128
|
-
private constructor();
|
|
129
|
-
get type(): string;
|
|
130
|
-
get id(): Nullable<number>;
|
|
131
|
-
get timestamp(): string;
|
|
132
|
-
get conversationId(): string;
|
|
133
|
-
get from(): vonage.FromJS;
|
|
134
|
-
readonly __doNotUseIt: __doNotImplementIt;
|
|
130
|
+
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"];
|
|
135
131
|
}
|
|
136
132
|
}
|
|
137
|
-
export namespace vonage {
|
|
133
|
+
export declare namespace vonage {
|
|
138
134
|
interface MessageEventJS extends vonage.ConversationEventJS {
|
|
139
135
|
readonly id: number;
|
|
140
136
|
readonly timestamp: string;
|
|
141
137
|
readonly conversationId: string;
|
|
142
138
|
readonly from: Nullable<vonage.FromJS>;
|
|
143
|
-
readonly
|
|
139
|
+
readonly __doNotUseOrImplementIt: {
|
|
140
|
+
readonly "vonage.MessageEventJS": unique symbol;
|
|
141
|
+
} & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
144
142
|
}
|
|
145
143
|
class TextMessageEventJS implements vonage.MessageEventJS {
|
|
146
144
|
private constructor();
|
|
@@ -149,7 +147,7 @@ export namespace vonage {
|
|
|
149
147
|
get conversationId(): string;
|
|
150
148
|
get from(): vonage.FromJS;
|
|
151
149
|
get body(): vonage.TextMessageEventJS.Body;
|
|
152
|
-
readonly
|
|
150
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
153
151
|
}
|
|
154
152
|
namespace TextMessageEventJS {
|
|
155
153
|
class Body {
|
|
@@ -164,7 +162,7 @@ export namespace vonage {
|
|
|
164
162
|
get conversationId(): string;
|
|
165
163
|
get from(): vonage.FromJS;
|
|
166
164
|
get body(): vonage.CustomMessageEventJS.Body;
|
|
167
|
-
readonly
|
|
165
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
168
166
|
}
|
|
169
167
|
namespace CustomMessageEventJS {
|
|
170
168
|
class Body {
|
|
@@ -179,7 +177,7 @@ export namespace vonage {
|
|
|
179
177
|
get conversationId(): string;
|
|
180
178
|
get from(): vonage.FromJS;
|
|
181
179
|
get body(): vonage.AudioMessageEventJS.Body;
|
|
182
|
-
readonly
|
|
180
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
183
181
|
}
|
|
184
182
|
namespace AudioMessageEventJS {
|
|
185
183
|
class Body {
|
|
@@ -194,7 +192,7 @@ export namespace vonage {
|
|
|
194
192
|
get conversationId(): string;
|
|
195
193
|
get from(): vonage.FromJS;
|
|
196
194
|
get body(): vonage.VideoMessageEventJS.Body;
|
|
197
|
-
readonly
|
|
195
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
198
196
|
}
|
|
199
197
|
namespace VideoMessageEventJS {
|
|
200
198
|
class Body {
|
|
@@ -209,7 +207,7 @@ export namespace vonage {
|
|
|
209
207
|
get conversationId(): string;
|
|
210
208
|
get from(): vonage.FromJS;
|
|
211
209
|
get body(): vonage.ImageMessageEventJS.Body;
|
|
212
|
-
readonly
|
|
210
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
213
211
|
}
|
|
214
212
|
namespace ImageMessageEventJS {
|
|
215
213
|
class Body {
|
|
@@ -224,7 +222,7 @@ export namespace vonage {
|
|
|
224
222
|
get conversationId(): string;
|
|
225
223
|
get from(): vonage.FromJS;
|
|
226
224
|
get body(): vonage.FileMessageEventJS.Body;
|
|
227
|
-
readonly
|
|
225
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
228
226
|
}
|
|
229
227
|
namespace FileMessageEventJS {
|
|
230
228
|
class Body {
|
|
@@ -239,7 +237,7 @@ export namespace vonage {
|
|
|
239
237
|
get conversationId(): string;
|
|
240
238
|
get from(): vonage.FromJS;
|
|
241
239
|
get body(): vonage.VCardMessageEventJS.Body;
|
|
242
|
-
readonly
|
|
240
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
243
241
|
}
|
|
244
242
|
namespace VCardMessageEventJS {
|
|
245
243
|
class Body {
|
|
@@ -254,7 +252,7 @@ export namespace vonage {
|
|
|
254
252
|
get conversationId(): string;
|
|
255
253
|
get from(): vonage.FromJS;
|
|
256
254
|
get body(): vonage.LocationMessageEventJS.Body;
|
|
257
|
-
readonly
|
|
255
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
258
256
|
}
|
|
259
257
|
namespace LocationMessageEventJS {
|
|
260
258
|
class Body {
|
|
@@ -276,14 +274,13 @@ export namespace vonage {
|
|
|
276
274
|
get conversationId(): string;
|
|
277
275
|
get from(): vonage.FromJS;
|
|
278
276
|
get body(): vonage.TemplateMessageEventJS.Body;
|
|
279
|
-
readonly
|
|
277
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
280
278
|
}
|
|
281
279
|
namespace TemplateMessageEventJS {
|
|
282
280
|
class Body {
|
|
283
281
|
private constructor();
|
|
284
282
|
get body(): any/* com.vonage.clientcore.core.api.models.TemplateMessageEvent.Body */;
|
|
285
283
|
get template(): vonage.TemplateMessageEventJS.TemplateObject;
|
|
286
|
-
component1(): any/* com.vonage.clientcore.core.api.models.TemplateMessageEvent.Body */;
|
|
287
284
|
copy(body?: any/* com.vonage.clientcore.core.api.models.TemplateMessageEvent.Body */): vonage.TemplateMessageEventJS.Body;
|
|
288
285
|
toString(): string;
|
|
289
286
|
hashCode(): number;
|
|
@@ -296,7 +293,7 @@ export namespace vonage {
|
|
|
296
293
|
}
|
|
297
294
|
}
|
|
298
295
|
}
|
|
299
|
-
export namespace vonage {
|
|
296
|
+
export declare namespace vonage {
|
|
300
297
|
abstract class PresentingOrderJS {
|
|
301
298
|
private constructor();
|
|
302
299
|
get corePresentingOrder(): any/* com.vonage.clientcore.core.api.models.PresentingOrder */;
|
|
@@ -510,7 +507,7 @@ export namespace vonage {
|
|
|
510
507
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
511
508
|
}
|
|
512
509
|
}
|
|
513
|
-
export namespace vonage {
|
|
510
|
+
export declare namespace vonage {
|
|
514
511
|
const CSErrorCodesJS: {
|
|
515
512
|
get CONVERSATION_DUPLICATE_NAME(): string;
|
|
516
513
|
get MEMBER_ALREADY_JOINED(): string;
|
|
@@ -541,7 +538,7 @@ export namespace vonage {
|
|
|
541
538
|
get TRANSPORT_CLOSED_DISCONNECT(): string;
|
|
542
539
|
};
|
|
543
540
|
}
|
|
544
|
-
export namespace vonage {
|
|
541
|
+
export declare namespace vonage {
|
|
545
542
|
class VonageErrorJS extends Error {
|
|
546
543
|
private constructor();
|
|
547
544
|
get type(): vonage.VonageErrorTypeJS;
|
|
@@ -576,7 +573,7 @@ export namespace vonage {
|
|
|
576
573
|
get ordinal(): 0 | 1 | 2 | 3 | 4;
|
|
577
574
|
}
|
|
578
575
|
}
|
|
579
|
-
export namespace vonage {
|
|
576
|
+
export declare namespace vonage {
|
|
580
577
|
interface ChatEvents extends vonage.CoreClientEvents {
|
|
581
578
|
conversationEvent(event: vonage.ConversationEventJS): void;
|
|
582
579
|
reconnecting(): void;
|
|
@@ -584,7 +581,7 @@ export namespace vonage {
|
|
|
584
581
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
585
582
|
}
|
|
586
583
|
}
|
|
587
|
-
export namespace vonage {
|
|
584
|
+
export declare namespace vonage {
|
|
588
585
|
interface IChatClientJS extends vonage.ICoreClientJS {
|
|
589
586
|
readonly core: any/* com.vonage.clientcore.core.CoreClient */;
|
|
590
587
|
createConversation(name: Nullable<string>, displayName: Nullable<string>): Promise<string>;
|
|
@@ -604,17 +601,19 @@ export namespace vonage {
|
|
|
604
601
|
refreshSession(token: string): Promise<any>;
|
|
605
602
|
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
606
603
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
607
|
-
readonly
|
|
604
|
+
readonly __doNotUseOrImplementIt: {
|
|
605
|
+
readonly "vonage.IChatClientJS": unique symbol;
|
|
606
|
+
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
608
607
|
}
|
|
609
608
|
}
|
|
610
|
-
export namespace vonage {
|
|
609
|
+
export declare namespace vonage {
|
|
611
610
|
interface CoreClientEvents {
|
|
612
611
|
reconnecting(): void;
|
|
613
612
|
reconnection(): void;
|
|
614
613
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
615
614
|
}
|
|
616
615
|
}
|
|
617
|
-
export namespace vonage {
|
|
616
|
+
export declare namespace vonage {
|
|
618
617
|
abstract class CoreClientConfigRegionJS {
|
|
619
618
|
private constructor();
|
|
620
619
|
get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
|
|
@@ -711,10 +710,12 @@ export namespace vonage {
|
|
|
711
710
|
refreshSession(token: string): Promise<any>;
|
|
712
711
|
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
713
712
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
714
|
-
readonly
|
|
713
|
+
readonly __doNotUseOrImplementIt: {
|
|
714
|
+
readonly "vonage.ICoreClientJS": unique symbol;
|
|
715
|
+
};
|
|
715
716
|
}
|
|
716
717
|
}
|
|
717
|
-
export namespace vonage {
|
|
718
|
+
export declare namespace vonage {
|
|
718
719
|
interface VoiceEvents extends vonage.CoreClientEvents {
|
|
719
720
|
callInvite(callId: string, from: string, channelType: string): void;
|
|
720
721
|
callInviteCancel(callId: string, reason: vonage.CancelReasonJS): void;
|
|
@@ -730,14 +731,14 @@ export namespace vonage {
|
|
|
730
731
|
}
|
|
731
732
|
interface CallSayParams {
|
|
732
733
|
readonly text: string;
|
|
733
|
-
readonly level
|
|
734
|
-
readonly loop
|
|
735
|
-
readonly queue
|
|
736
|
-
readonly voiceName
|
|
737
|
-
readonly ssml
|
|
734
|
+
readonly level?: Nullable<number>;
|
|
735
|
+
readonly loop?: Nullable<number>;
|
|
736
|
+
readonly queue?: Nullable<boolean>;
|
|
737
|
+
readonly voiceName?: Nullable<string>;
|
|
738
|
+
readonly ssml?: Nullable<boolean>;
|
|
738
739
|
}
|
|
739
740
|
}
|
|
740
|
-
export namespace vonage {
|
|
741
|
+
export declare namespace vonage {
|
|
741
742
|
abstract class LegStatusJS {
|
|
742
743
|
private constructor();
|
|
743
744
|
static get RINGING(): vonage.LegStatusJS & {
|
|
@@ -812,26 +813,26 @@ export namespace vonage {
|
|
|
812
813
|
refreshSession(token: string): Promise<any>;
|
|
813
814
|
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
814
815
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
815
|
-
readonly
|
|
816
|
+
readonly __doNotUseOrImplementIt: {
|
|
817
|
+
readonly "vonage.IVoiceClientJS": unique symbol;
|
|
818
|
+
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
816
819
|
}
|
|
817
820
|
class VoiceInviteFromInfoJS {
|
|
818
821
|
constructor(id: Nullable<string>, type: string);
|
|
819
822
|
get id(): Nullable<string>;
|
|
820
823
|
get type(): string;
|
|
821
|
-
component1(): Nullable<string>;
|
|
822
|
-
component2(): string;
|
|
823
824
|
copy(id?: Nullable<string>, type?: string): vonage.VoiceInviteFromInfoJS;
|
|
824
825
|
toString(): string;
|
|
825
826
|
hashCode(): number;
|
|
826
827
|
equals(other: Nullable<any>): boolean;
|
|
827
828
|
}
|
|
828
829
|
}
|
|
829
|
-
export namespace vonage {
|
|
830
|
+
export declare namespace vonage {
|
|
830
831
|
interface HttpClientJS {
|
|
831
832
|
request(verb: string, url: string, headers: Json, body: Nullable<string>, callback: (p0: Nullable<vonage.HttpClientErrorJS>, p1: Nullable<vonage.HttpClientResponseJS>) => void): void;
|
|
832
833
|
}
|
|
833
834
|
interface SocketClientJS {
|
|
834
|
-
delegate
|
|
835
|
+
delegate?: Nullable<vonage.SocketClientDelegateJS>;
|
|
835
836
|
emit(type: string, msg: Nullable<Json>, callback: (p0: Nullable<Error>, p1: Nullable<string>) => void): void;
|
|
836
837
|
connect(host: string, path: string, reconnectionAttempts: any/* kotlin.Number */, reconnectionDelay: any/* kotlin.Number */, randomizationFactor: any/* kotlin.Number */, query: string): void;
|
|
837
838
|
disconnect(): void;
|
|
@@ -843,7 +844,7 @@ export namespace vonage {
|
|
|
843
844
|
didReceiveNewSocketConnectionStatusEvent(type: string, reason: Nullable<string>, timestamp: any/* kotlin.Number */, retryNumber: Nullable<number>): void;
|
|
844
845
|
}
|
|
845
846
|
interface MediaClientJS {
|
|
846
|
-
delegate
|
|
847
|
+
delegate?: Nullable<vonage.MediaClientDelegateJS>;
|
|
847
848
|
enableMediaOutbound(closure: (p0: any, p1: Nullable<string>, p2: (p0: string) => void) => void): void;
|
|
848
849
|
enableMediaInbound(closure: (p0: any, p1: Nullable<string>) => void, offerSDP: string, rtcId: string): void;
|
|
849
850
|
processAnswer(id: string, sdp: string): void;
|
|
@@ -858,12 +859,10 @@ export namespace vonage {
|
|
|
858
859
|
onConnectionChange(id: string, status: string): void;
|
|
859
860
|
}
|
|
860
861
|
}
|
|
861
|
-
export namespace vonage {
|
|
862
|
+
export declare namespace vonage {
|
|
862
863
|
class HttpClientErrorJS extends Error {
|
|
863
864
|
constructor(message?: Nullable<string>, cause?: Nullable<Error>);
|
|
864
865
|
get coreError(): any/* com.vonage.clientcore.core.middlewares.http.HTTPClientError */;
|
|
865
|
-
component1(): Nullable<string>;
|
|
866
|
-
component2(): Nullable<Error>;
|
|
867
866
|
copy(message?: Nullable<string>, cause?: Nullable<Error>): vonage.HttpClientErrorJS;
|
|
868
867
|
toString(): string;
|
|
869
868
|
hashCode(): number;
|
|
@@ -873,8 +872,6 @@ export namespace vonage {
|
|
|
873
872
|
constructor(statusCode: number, body?: Nullable<string>);
|
|
874
873
|
get statusCode(): number;
|
|
875
874
|
get body(): Nullable<string>;
|
|
876
|
-
component1(): number;
|
|
877
|
-
component2(): Nullable<string>;
|
|
878
875
|
copy(statusCode?: number, body?: Nullable<string>): vonage.HttpClientResponseJS;
|
|
879
876
|
toString(): string;
|
|
880
877
|
hashCode(): number;
|
|
@@ -928,28 +925,18 @@ export namespace vonage {
|
|
|
928
925
|
equals(other: Nullable<any>): boolean;
|
|
929
926
|
}
|
|
930
927
|
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
|
|
928
|
+
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);
|
|
929
|
+
get audioRecvPackets(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
930
|
+
get audioRecvPacketsLost(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
931
|
+
get audioRecvBytes(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
932
|
+
get audioRecvJitter(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
933
|
+
get audioSentPackets(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
934
|
+
get audioSentBytes(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
935
|
+
get audioSentPacketsLost(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
936
|
+
get audioRtt(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
937
|
+
get audioSentJitter(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
941
938
|
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;
|
|
939
|
+
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
940
|
toString(): string;
|
|
954
941
|
hashCode(): number;
|
|
955
942
|
equals(other: Nullable<any>): boolean;
|