@vonage/client-sdk 1.1.0-alpha.10 → 1.1.0-alpha.13
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 +184 -32
- package/dist/client/VonageClient.d.ts +111 -12
- package/dist/client/index.cjs +28291 -33466
- package/dist/client/index.mjs +28291 -33466
- package/dist/coreExtend.d.ts +54 -6
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +60 -66
- package/dist/utils/ClientConfig.d.ts +17 -0
- package/dist/vonageClientSDK.js +28067 -31174
- package/dist/vonageClientSDK.min.js +2 -2
- package/dist/vonageClientSDK.min.mjs +2 -2
- package/dist/vonageClientSDK.mjs +28067 -31174
- package/package.json +4 -2
- package/snippet.js +98 -0
package/dist/coreExtend.d.ts
CHANGED
|
@@ -4,37 +4,85 @@ declare module './kotlin/clientsdk-clientcore_js' {
|
|
|
4
4
|
interface CombinedClientJS {
|
|
5
5
|
/**
|
|
6
6
|
* Mute your leg of a call
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* [[include:call_mute.txt]]
|
|
10
|
+
*
|
|
7
11
|
* @param callId - Call ID
|
|
8
12
|
* @returns void
|
|
13
|
+
* @group Voice
|
|
9
14
|
*/
|
|
10
15
|
mute(callId: string): Promise<void>;
|
|
11
16
|
/**
|
|
12
17
|
* Unmute your leg of a call
|
|
13
18
|
* @param callId - Call ID
|
|
14
19
|
* @returns void
|
|
20
|
+
* @group Voice
|
|
15
21
|
*/
|
|
16
22
|
unmute(callId: string): Promise<void>;
|
|
17
23
|
/**
|
|
18
24
|
* Earmuff your leg of a call
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* [[include:earmuff_event.txt]]
|
|
28
|
+
*
|
|
19
29
|
* @param callId - Call ID
|
|
20
30
|
* @returns void
|
|
31
|
+
* @group Voice
|
|
21
32
|
*/
|
|
22
33
|
enableEarmuff(callId: string): Promise<void>;
|
|
23
34
|
/**
|
|
24
35
|
* Unearmuff your leg of a call
|
|
25
36
|
* @param callId - Call ID
|
|
26
37
|
* @returns void
|
|
38
|
+
* @group Voice
|
|
27
39
|
*/
|
|
28
40
|
disableEarmuff(callId: string): Promise<void>;
|
|
29
|
-
}
|
|
30
|
-
interface CoreClientJS {
|
|
31
41
|
/**
|
|
32
|
-
*
|
|
42
|
+
* Send a string of digits to a call via DTMF
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* [[include:send_dtmf_digits.txt]]
|
|
46
|
+
*
|
|
47
|
+
* @param callId - Call ID
|
|
48
|
+
* @param digits - DTMF digits
|
|
49
|
+
* @returns void
|
|
50
|
+
* @group Voice
|
|
51
|
+
*/
|
|
52
|
+
sendDTMF(callId: string, digits: string): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Answer a call
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* [[include:answer_call.txt]]
|
|
58
|
+
*
|
|
59
|
+
* @param callId - Call ID
|
|
60
|
+
* @returns void
|
|
61
|
+
* @group Voice
|
|
62
|
+
*/
|
|
63
|
+
answerCall(callId: string): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Reject a call
|
|
33
66
|
*
|
|
34
|
-
* @
|
|
35
|
-
*
|
|
67
|
+
* @example
|
|
68
|
+
* [[include:reject_call.txt]]
|
|
69
|
+
*
|
|
70
|
+
* @param callId - Call ID
|
|
71
|
+
* @returns void
|
|
72
|
+
* @group Voice
|
|
73
|
+
*/
|
|
74
|
+
rejectCall(callId: string): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* Reconnect a call
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* [[include:reconnect_call.txt]]
|
|
80
|
+
*
|
|
81
|
+
* @param callId - Call ID
|
|
82
|
+
* @returns void
|
|
83
|
+
* @group Voice
|
|
36
84
|
*/
|
|
37
|
-
|
|
85
|
+
reconnectCall(callId: string): Promise<void>;
|
|
38
86
|
}
|
|
39
87
|
}
|
|
40
88
|
}
|
|
@@ -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>;
|
|
@@ -69,7 +67,9 @@ export namespace vonage {
|
|
|
69
67
|
readonly timestamp: string;
|
|
70
68
|
readonly conversationId: string;
|
|
71
69
|
readonly from: Nullable<string>;
|
|
72
|
-
readonly
|
|
70
|
+
readonly __doNotUseOrImplementIt: {
|
|
71
|
+
readonly "vonage.ConversationEventJS": unique symbol;
|
|
72
|
+
};
|
|
73
73
|
}
|
|
74
74
|
class MemberInvitedEventJS implements vonage.ConversationEventJS {
|
|
75
75
|
private constructor();
|
|
@@ -78,7 +78,7 @@ export namespace vonage {
|
|
|
78
78
|
get conversationId(): string;
|
|
79
79
|
get from(): string;
|
|
80
80
|
get body(): vonage.MemberInvitedEventJS.Body;
|
|
81
|
-
readonly
|
|
81
|
+
readonly __doNotUseOrImplementIt: vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
82
82
|
}
|
|
83
83
|
namespace MemberInvitedEventJS {
|
|
84
84
|
class Body {
|
|
@@ -94,7 +94,7 @@ export namespace vonage {
|
|
|
94
94
|
get conversationId(): string;
|
|
95
95
|
get from(): string;
|
|
96
96
|
get body(): vonage.MemberJoinedEventJS.Body;
|
|
97
|
-
readonly
|
|
97
|
+
readonly __doNotUseOrImplementIt: vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
98
98
|
}
|
|
99
99
|
namespace MemberJoinedEventJS {
|
|
100
100
|
class Body {
|
|
@@ -109,7 +109,7 @@ export namespace vonage {
|
|
|
109
109
|
get conversationId(): string;
|
|
110
110
|
get from(): string;
|
|
111
111
|
get body(): vonage.MemberLeftEventJS.Body;
|
|
112
|
-
readonly
|
|
112
|
+
readonly __doNotUseOrImplementIt: vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
113
113
|
}
|
|
114
114
|
namespace MemberLeftEventJS {
|
|
115
115
|
class Body {
|
|
@@ -124,21 +124,25 @@ export namespace vonage {
|
|
|
124
124
|
get timestamp(): string;
|
|
125
125
|
get conversationId(): string;
|
|
126
126
|
get from(): Nullable<string>;
|
|
127
|
-
readonly
|
|
127
|
+
readonly __doNotUseOrImplementIt: vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
export namespace vonage {
|
|
130
|
+
export declare namespace vonage {
|
|
131
131
|
interface MessageEventJS extends vonage.ConversationEventJS {
|
|
132
132
|
readonly id: number;
|
|
133
133
|
readonly body: vonage.MessageEventBodyJS;
|
|
134
134
|
readonly timestamp: string;
|
|
135
135
|
readonly conversationId: string;
|
|
136
136
|
readonly from: Nullable<string>;
|
|
137
|
-
readonly
|
|
137
|
+
readonly __doNotUseOrImplementIt: {
|
|
138
|
+
readonly "vonage.MessageEventJS": unique symbol;
|
|
139
|
+
} & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
138
140
|
}
|
|
139
141
|
interface MessageEventBodyJS {
|
|
140
142
|
readonly sender: vonage.UserJS;
|
|
141
|
-
readonly
|
|
143
|
+
readonly __doNotUseOrImplementIt: {
|
|
144
|
+
readonly "vonage.MessageEventBodyJS": unique symbol;
|
|
145
|
+
};
|
|
142
146
|
}
|
|
143
147
|
class TextMessageEventJS implements vonage.MessageEventJS {
|
|
144
148
|
private constructor();
|
|
@@ -147,14 +151,14 @@ export namespace vonage {
|
|
|
147
151
|
get conversationId(): string;
|
|
148
152
|
get from(): string;
|
|
149
153
|
get body(): vonage.TextMessageEventJS.Body;
|
|
150
|
-
readonly
|
|
154
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
151
155
|
}
|
|
152
156
|
namespace TextMessageEventJS {
|
|
153
157
|
class Body implements vonage.MessageEventBodyJS {
|
|
154
158
|
private constructor();
|
|
155
159
|
get sender(): vonage.UserJS;
|
|
156
160
|
get text(): string;
|
|
157
|
-
readonly
|
|
161
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
158
162
|
}
|
|
159
163
|
}
|
|
160
164
|
class CustomMessageEventJS implements vonage.MessageEventJS {
|
|
@@ -164,18 +168,18 @@ export namespace vonage {
|
|
|
164
168
|
get conversationId(): string;
|
|
165
169
|
get from(): string;
|
|
166
170
|
get body(): vonage.CustomMessageEventJS.Body;
|
|
167
|
-
readonly
|
|
171
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
|
|
168
172
|
}
|
|
169
173
|
namespace CustomMessageEventJS {
|
|
170
174
|
class Body implements vonage.MessageEventBodyJS {
|
|
171
175
|
private constructor();
|
|
172
176
|
get sender(): vonage.UserJS;
|
|
173
177
|
get customData(): string;
|
|
174
|
-
readonly
|
|
178
|
+
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
175
179
|
}
|
|
176
180
|
}
|
|
177
181
|
}
|
|
178
|
-
export namespace vonage {
|
|
182
|
+
export declare namespace vonage {
|
|
179
183
|
abstract class PresentingOrderJS {
|
|
180
184
|
private constructor();
|
|
181
185
|
get corePresentingOrder(): any/* com.vonage.clientcore.core.api.models.PresentingOrder */;
|
|
@@ -389,7 +393,7 @@ export namespace vonage {
|
|
|
389
393
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
390
394
|
}
|
|
391
395
|
}
|
|
392
|
-
export namespace vonage {
|
|
396
|
+
export declare namespace vonage {
|
|
393
397
|
const CSErrorCodesJS: {
|
|
394
398
|
get CONVERSATION_DUPLICATE_NAME(): string;
|
|
395
399
|
get MEMBER_ALREADY_JOINED(): string;
|
|
@@ -420,7 +424,7 @@ export namespace vonage {
|
|
|
420
424
|
get TRANSPORT_CLOSED_DISCONNECT(): string;
|
|
421
425
|
};
|
|
422
426
|
}
|
|
423
|
-
export namespace vonage {
|
|
427
|
+
export declare namespace vonage {
|
|
424
428
|
class VonageErrorJS extends Error {
|
|
425
429
|
private constructor();
|
|
426
430
|
get type(): vonage.VonageErrorTypeJS;
|
|
@@ -455,7 +459,7 @@ export namespace vonage {
|
|
|
455
459
|
get ordinal(): 0 | 1 | 2 | 3 | 4;
|
|
456
460
|
}
|
|
457
461
|
}
|
|
458
|
-
export namespace vonage {
|
|
462
|
+
export declare namespace vonage {
|
|
459
463
|
interface ChatEvents extends vonage.CoreClientEvents {
|
|
460
464
|
conversationEvent(event: vonage.ConversationEventJS): void;
|
|
461
465
|
reconnecting(): void;
|
|
@@ -463,7 +467,7 @@ export namespace vonage {
|
|
|
463
467
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
464
468
|
}
|
|
465
469
|
}
|
|
466
|
-
export namespace vonage {
|
|
470
|
+
export declare namespace vonage {
|
|
467
471
|
interface IChatClientJS extends vonage.ICoreClientJS {
|
|
468
472
|
readonly core: any/* com.vonage.clientcore.core.CoreClient */;
|
|
469
473
|
createConversation(name: Nullable<string>, displayName: Nullable<string>): Promise<string>;
|
|
@@ -483,17 +487,19 @@ export namespace vonage {
|
|
|
483
487
|
refreshSession(token: string): Promise<any>;
|
|
484
488
|
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
485
489
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
486
|
-
readonly
|
|
490
|
+
readonly __doNotUseOrImplementIt: {
|
|
491
|
+
readonly "vonage.IChatClientJS": unique symbol;
|
|
492
|
+
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
487
493
|
}
|
|
488
494
|
}
|
|
489
|
-
export namespace vonage {
|
|
495
|
+
export declare namespace vonage {
|
|
490
496
|
interface CoreClientEvents {
|
|
491
497
|
reconnecting(): void;
|
|
492
498
|
reconnection(): void;
|
|
493
499
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
494
500
|
}
|
|
495
501
|
}
|
|
496
|
-
export namespace vonage {
|
|
502
|
+
export declare namespace vonage {
|
|
497
503
|
abstract class CoreClientConfigRegionJS {
|
|
498
504
|
private constructor();
|
|
499
505
|
get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
|
|
@@ -590,10 +596,12 @@ export namespace vonage {
|
|
|
590
596
|
refreshSession(token: string): Promise<any>;
|
|
591
597
|
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
592
598
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
593
|
-
readonly
|
|
599
|
+
readonly __doNotUseOrImplementIt: {
|
|
600
|
+
readonly "vonage.ICoreClientJS": unique symbol;
|
|
601
|
+
};
|
|
594
602
|
}
|
|
595
603
|
}
|
|
596
|
-
export namespace vonage {
|
|
604
|
+
export declare namespace vonage {
|
|
597
605
|
interface VoiceEvents extends vonage.CoreClientEvents {
|
|
598
606
|
callInvite(callId: string, from: string, channelType: string): void;
|
|
599
607
|
callInviteCancel(callId: string, reason: vonage.CancelReasonJS): void;
|
|
@@ -609,14 +617,14 @@ export namespace vonage {
|
|
|
609
617
|
}
|
|
610
618
|
interface CallSayParams {
|
|
611
619
|
readonly text: string;
|
|
612
|
-
readonly level
|
|
613
|
-
readonly loop
|
|
614
|
-
readonly queue
|
|
615
|
-
readonly voiceName
|
|
616
|
-
readonly ssml
|
|
620
|
+
readonly level?: Nullable<number>;
|
|
621
|
+
readonly loop?: Nullable<number>;
|
|
622
|
+
readonly queue?: Nullable<boolean>;
|
|
623
|
+
readonly voiceName?: Nullable<string>;
|
|
624
|
+
readonly ssml?: Nullable<boolean>;
|
|
617
625
|
}
|
|
618
626
|
}
|
|
619
|
-
export namespace vonage {
|
|
627
|
+
export declare namespace vonage {
|
|
620
628
|
abstract class LegStatusJS {
|
|
621
629
|
private constructor();
|
|
622
630
|
static get RINGING(): vonage.LegStatusJS & {
|
|
@@ -691,26 +699,26 @@ export namespace vonage {
|
|
|
691
699
|
refreshSession(token: string): Promise<any>;
|
|
692
700
|
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
693
701
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
694
|
-
readonly
|
|
702
|
+
readonly __doNotUseOrImplementIt: {
|
|
703
|
+
readonly "vonage.IVoiceClientJS": unique symbol;
|
|
704
|
+
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
695
705
|
}
|
|
696
706
|
class VoiceInviteFromInfoJS {
|
|
697
707
|
constructor(id: Nullable<string>, type: string);
|
|
698
708
|
get id(): Nullable<string>;
|
|
699
709
|
get type(): string;
|
|
700
|
-
component1(): Nullable<string>;
|
|
701
|
-
component2(): string;
|
|
702
710
|
copy(id?: Nullable<string>, type?: string): vonage.VoiceInviteFromInfoJS;
|
|
703
711
|
toString(): string;
|
|
704
712
|
hashCode(): number;
|
|
705
713
|
equals(other: Nullable<any>): boolean;
|
|
706
714
|
}
|
|
707
715
|
}
|
|
708
|
-
export namespace vonage {
|
|
716
|
+
export declare namespace vonage {
|
|
709
717
|
interface HttpClientJS {
|
|
710
718
|
request(verb: string, url: string, headers: Json, body: Nullable<string>, callback: (p0: Nullable<vonage.HttpClientErrorJS>, p1: Nullable<vonage.HttpClientResponseJS>) => void): void;
|
|
711
719
|
}
|
|
712
720
|
interface SocketClientJS {
|
|
713
|
-
delegate
|
|
721
|
+
delegate?: Nullable<vonage.SocketClientDelegateJS>;
|
|
714
722
|
emit(type: string, msg: Nullable<Json>, callback: (p0: Nullable<Error>, p1: Nullable<string>) => void): void;
|
|
715
723
|
connect(host: string, path: string, reconnectionAttempts: any/* kotlin.Number */, reconnectionDelay: any/* kotlin.Number */, randomizationFactor: any/* kotlin.Number */, query: string): void;
|
|
716
724
|
disconnect(): void;
|
|
@@ -722,7 +730,7 @@ export namespace vonage {
|
|
|
722
730
|
didReceiveNewSocketConnectionStatusEvent(type: string, reason: Nullable<string>, timestamp: any/* kotlin.Number */, retryNumber: Nullable<number>): void;
|
|
723
731
|
}
|
|
724
732
|
interface MediaClientJS {
|
|
725
|
-
delegate
|
|
733
|
+
delegate?: Nullable<vonage.MediaClientDelegateJS>;
|
|
726
734
|
enableMediaOutbound(closure: (p0: any, p1: Nullable<string>, p2: (p0: string) => void) => void): void;
|
|
727
735
|
enableMediaInbound(closure: (p0: any, p1: Nullable<string>) => void, offerSDP: string, rtcId: string): void;
|
|
728
736
|
processAnswer(id: string, sdp: string): void;
|
|
@@ -737,12 +745,10 @@ export namespace vonage {
|
|
|
737
745
|
onConnectionChange(id: string, status: string): void;
|
|
738
746
|
}
|
|
739
747
|
}
|
|
740
|
-
export namespace vonage {
|
|
748
|
+
export declare namespace vonage {
|
|
741
749
|
class HttpClientErrorJS extends Error {
|
|
742
750
|
constructor(message?: Nullable<string>, cause?: Nullable<Error>);
|
|
743
751
|
get coreError(): any/* com.vonage.clientcore.core.middlewares.http.HTTPClientError */;
|
|
744
|
-
component1(): Nullable<string>;
|
|
745
|
-
component2(): Nullable<Error>;
|
|
746
752
|
copy(message?: Nullable<string>, cause?: Nullable<Error>): vonage.HttpClientErrorJS;
|
|
747
753
|
toString(): string;
|
|
748
754
|
hashCode(): number;
|
|
@@ -752,8 +758,6 @@ export namespace vonage {
|
|
|
752
758
|
constructor(statusCode: number, body?: Nullable<string>);
|
|
753
759
|
get statusCode(): number;
|
|
754
760
|
get body(): Nullable<string>;
|
|
755
|
-
component1(): number;
|
|
756
|
-
component2(): Nullable<string>;
|
|
757
761
|
copy(statusCode?: number, body?: Nullable<string>): vonage.HttpClientResponseJS;
|
|
758
762
|
toString(): string;
|
|
759
763
|
hashCode(): number;
|
|
@@ -807,28 +811,18 @@ export namespace vonage {
|
|
|
807
811
|
equals(other: Nullable<any>): boolean;
|
|
808
812
|
}
|
|
809
813
|
class RTCStatsJS {
|
|
810
|
-
constructor(audioRecvPackets: any
|
|
811
|
-
get audioRecvPackets(): any
|
|
812
|
-
get audioRecvPacketsLost(): any
|
|
813
|
-
get audioRecvBytes(): any
|
|
814
|
-
get audioRecvJitter(): any
|
|
815
|
-
get audioSentPackets(): any
|
|
816
|
-
get audioSentBytes(): any
|
|
817
|
-
get audioSentPacketsLost(): any
|
|
818
|
-
get audioRtt(): any
|
|
819
|
-
get audioSentJitter(): any
|
|
814
|
+
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);
|
|
815
|
+
get audioRecvPackets(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
816
|
+
get audioRecvPacketsLost(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
817
|
+
get audioRecvBytes(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
818
|
+
get audioRecvJitter(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
819
|
+
get audioSentPackets(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
820
|
+
get audioSentBytes(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
821
|
+
get audioSentPacketsLost(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
822
|
+
get audioRtt(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
823
|
+
get audioSentJitter(): Nullable<any>/* Nullable<kotlin.Number> */;
|
|
820
824
|
get legId(): string;
|
|
821
|
-
|
|
822
|
-
component2(): any/* Nullable<kotlin.Number> */;
|
|
823
|
-
component3(): any/* Nullable<kotlin.Number> */;
|
|
824
|
-
component4(): any/* Nullable<kotlin.Number> */;
|
|
825
|
-
component5(): any/* Nullable<kotlin.Number> */;
|
|
826
|
-
component6(): any/* Nullable<kotlin.Number> */;
|
|
827
|
-
component7(): any/* Nullable<kotlin.Number> */;
|
|
828
|
-
component8(): any/* Nullable<kotlin.Number> */;
|
|
829
|
-
component9(): any/* Nullable<kotlin.Number> */;
|
|
830
|
-
component10(): string;
|
|
831
|
-
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;
|
|
825
|
+
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;
|
|
832
826
|
toString(): string;
|
|
833
827
|
hashCode(): number;
|
|
834
828
|
equals(other: Nullable<any>): boolean;
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import vonage from '../utils/vonage';
|
|
2
2
|
export declare const ConfigRegion: typeof vonage.CoreClientConfigRegionJS;
|
|
3
|
+
/**
|
|
4
|
+
* Represents the configuration object for the client.
|
|
5
|
+
*
|
|
6
|
+
* The `ClientConfig` class provides a convenient way to configure the client by specifying various properties.
|
|
7
|
+
* These properties control different aspects of the client's behavior, such as API URLs, media reoffer, and WebSocket settings.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* [[include:set_client_config.txt]]
|
|
11
|
+
*/
|
|
3
12
|
export declare class ClientConfig extends vonage.CoreClientConfigJS {
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new instance of the class.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} region The region where the API and WebSocket URLs should be configured.
|
|
17
|
+
* Valid values are "EU" (Europe), "US" (United States), or "AP" (Asia Pacific).
|
|
18
|
+
* The URLs will be automatically set based on the selected region.
|
|
19
|
+
* Defaults to "US" if no region is specified.
|
|
20
|
+
*/
|
|
4
21
|
constructor(region?: vonage.CoreClientConfigRegionJS);
|
|
5
22
|
}
|