@vonage/client-sdk 2.1.1-snapshot.110.0 → 2.1.1
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/api_docs/ts/assets/navigation.js +1 -1
- package/api_docs/ts/assets/search.js +1 -1
- package/api_docs/ts/classes/ClientConfig.html +1 -3
- package/api_docs/ts/classes/ClientInitConfig.html +1 -3
- package/api_docs/ts/classes/VonageClient.html +9 -20
- package/api_docs/ts/interfaces/VonageEvent.html +2 -4
- package/api_docs/ts/modules.html +0 -1
- package/dist/client/VonageClient.d.ts +2 -41
- package/dist/client/index.cjs +17366 -21031
- package/dist/client/index.mjs +17366 -21031
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +7 -42
- package/dist/utils/ClientConfig.d.ts +0 -8
- package/dist/vonageClientSDK.js +17013 -20604
- package/dist/vonageClientSDK.min.js +21 -21
- package/dist/vonageClientSDK.min.mjs +20 -20
- package/dist/vonageClientSDK.mjs +17013 -20604
- package/package.json +2 -2
- package/api_docs/ts/interfaces/EmergencyCallResult.html +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type Nullable<T> = T | null | undefined
|
|
2
2
|
export declare namespace vonage {
|
|
3
|
-
interface CombinedEvents extends vonage.VoiceEvents, vonage.ChatEvents
|
|
3
|
+
interface CombinedEvents extends vonage.VoiceEvents, vonage.ChatEvents {
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
export declare namespace vonage {
|
|
@@ -13,14 +13,12 @@ export declare namespace vonage {
|
|
|
13
13
|
hashCode(): number;
|
|
14
14
|
equals(other: Nullable<any>): boolean;
|
|
15
15
|
};
|
|
16
|
-
class CombinedClientJS implements vonage.IChatClientJS, vonage.IVoiceClientJS
|
|
16
|
+
class CombinedClientJS implements vonage.IChatClientJS, vonage.IVoiceClientJS {
|
|
17
17
|
constructor(config: vonage.InitConfigObjectJS, http: vonage.HttpClientJS, socket: vonage.SocketClientJS, media: vonage.MediaClientJS);
|
|
18
18
|
get media(): vonage.MediaClientJS;
|
|
19
19
|
get core(): any/* com.vonage.clientcore.core.CoreClientWithMedia */;
|
|
20
|
-
get emergencyCore(): any/* com.vonage.client.emergency.EmergencyCoreClientImpl */;
|
|
21
20
|
get emitter(): Nullable<vonage.CombinedEvents>;
|
|
22
21
|
set emitter(value: Nullable<vonage.CombinedEvents>);
|
|
23
|
-
setConfig(config: vonage.ConfigObjectJS): void;
|
|
24
22
|
createConversation(parameters: Nullable<vonage.CreateConversationParametersJS>): Promise<string>;
|
|
25
23
|
joinConversation(cid: string): Promise<string>;
|
|
26
24
|
inviteToConversation(cid: string, username: string): Promise<string>;
|
|
@@ -44,6 +42,7 @@ export declare namespace vonage {
|
|
|
44
42
|
deleteEvent(id: number, conversationId: string): Promise<any>;
|
|
45
43
|
sendMessageSeenEvent(id: number, conversationId: string): Promise<any>;
|
|
46
44
|
updateConversation(conversationId: string, parameters: vonage.UpdateConversationParametersJS): Promise<any>;
|
|
45
|
+
setConfig(config: vonage.ConfigObjectJS): void;
|
|
47
46
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
48
47
|
deleteSession(): Promise<any>;
|
|
49
48
|
refreshSession(token: string): Promise<any>;
|
|
@@ -64,9 +63,6 @@ export declare namespace vonage {
|
|
|
64
63
|
enableEarmuff(callId: string): Promise<any>;
|
|
65
64
|
disableEarmuff(callId: string): Promise<any>;
|
|
66
65
|
sendDTMF(callId: string, digits: string): Promise<any>;
|
|
67
|
-
emergencyCall(token: string, from: string, to: string): Promise<vonage.emergency.EmergencyCallResultJS>;
|
|
68
|
-
reconnectEmergencyCall(token: string, callId: string, reconnectToken: string): Promise<any>;
|
|
69
|
-
hangUpEmergencyCall(callId: string): Promise<any>;
|
|
70
66
|
}
|
|
71
67
|
}
|
|
72
68
|
export declare namespace vonage {
|
|
@@ -789,8 +785,6 @@ export declare namespace vonage {
|
|
|
789
785
|
readonly rtcStatsTelemetry?: Nullable<boolean>;
|
|
790
786
|
readonly autoReconnectMedia?: Nullable<boolean>;
|
|
791
787
|
readonly noiseSuppression?: Nullable<boolean>;
|
|
792
|
-
readonly primaryRegion?: Nullable<string>;
|
|
793
|
-
readonly secondaryRegion?: Nullable<string>;
|
|
794
788
|
}
|
|
795
789
|
interface InitConfigObjectJS extends vonage.ConfigObjectJS {
|
|
796
790
|
readonly loggingLevel?: Nullable<vonage.LoggingLevelJS>;
|
|
@@ -818,7 +812,6 @@ export declare namespace vonage {
|
|
|
818
812
|
get name(): "AP" | "EU" | "US";
|
|
819
813
|
get ordinal(): 0 | 1 | 2;
|
|
820
814
|
get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
|
|
821
|
-
get emergencyRegion(): any/* com.vonage.client.emergency.EmergencyClientConfigRegion */;
|
|
822
815
|
static values(): Array<vonage.CoreClientConfigRegionJS>;
|
|
823
816
|
static valueOf(value: string): vonage.CoreClientConfigRegionJS;
|
|
824
817
|
}
|
|
@@ -836,8 +829,6 @@ export declare namespace vonage {
|
|
|
836
829
|
get autoReconnectMedia(): boolean;
|
|
837
830
|
set autoReconnectMedia(value: boolean);
|
|
838
831
|
get noiseSuppression(): boolean;
|
|
839
|
-
get primaryRegion(): string;
|
|
840
|
-
get secondaryRegion(): string;
|
|
841
832
|
}
|
|
842
833
|
class TopicJS {
|
|
843
834
|
constructor(name: string, tag: string);
|
|
@@ -874,16 +865,12 @@ export declare namespace vonage {
|
|
|
874
865
|
get name(): "REDUCER";
|
|
875
866
|
get ordinal(): 5;
|
|
876
867
|
};
|
|
877
|
-
static get EMERGENCY(): vonage.Topics & {
|
|
878
|
-
get name(): "EMERGENCY";
|
|
879
|
-
get ordinal(): 6;
|
|
880
|
-
};
|
|
881
868
|
static get DEFAULT(): vonage.Topics & {
|
|
882
869
|
get name(): "DEFAULT";
|
|
883
|
-
get ordinal():
|
|
870
|
+
get ordinal(): 6;
|
|
884
871
|
};
|
|
885
|
-
get name(): "HTTP" | "WS" | "MEDIA" | "API" | "STORE" | "REDUCER" | "
|
|
886
|
-
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6
|
|
872
|
+
get name(): "HTTP" | "WS" | "MEDIA" | "API" | "STORE" | "REDUCER" | "DEFAULT";
|
|
873
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
887
874
|
static values(): Array<vonage.Topics>;
|
|
888
875
|
static valueOf(value: string): vonage.Topics;
|
|
889
876
|
}
|
|
@@ -929,6 +916,7 @@ export declare namespace vonage {
|
|
|
929
916
|
};
|
|
930
917
|
interface ICoreClientJS {
|
|
931
918
|
readonly core: any/* com.vonage.clientcore.core.CoreClient */;
|
|
919
|
+
setConfig(config: vonage.ConfigObjectJS): void;
|
|
932
920
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
933
921
|
deleteSession(): Promise<any>;
|
|
934
922
|
refreshSession(token: string): Promise<any>;
|
|
@@ -1166,29 +1154,6 @@ export declare namespace vonage {
|
|
|
1166
1154
|
readonly cursor?: Nullable<string>;
|
|
1167
1155
|
}
|
|
1168
1156
|
}
|
|
1169
|
-
export declare namespace vonage.emergency {
|
|
1170
|
-
interface EmergencyEvents {
|
|
1171
|
-
disconnected(callId: string): void;
|
|
1172
|
-
hangup(callId: string): void;
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
export declare namespace vonage.emergency {
|
|
1176
|
-
interface IEmergencyClientJS {
|
|
1177
|
-
readonly emergencyCore: any/* com.vonage.client.emergency.EmergencyCoreClient */;
|
|
1178
|
-
emergencyCall(token: string, from: string, to: string): Promise<vonage.emergency.EmergencyCallResultJS>;
|
|
1179
|
-
reconnectEmergencyCall(token: string, callId: string, reconnectToken: string): Promise<any>;
|
|
1180
|
-
hangUpEmergencyCall(callId: string): Promise<any>;
|
|
1181
|
-
}
|
|
1182
|
-
class EmergencyCallResultJS {
|
|
1183
|
-
constructor(callId: string, reconnectToken: string);
|
|
1184
|
-
get callId(): string;
|
|
1185
|
-
get reconnectToken(): string;
|
|
1186
|
-
copy(callId?: string, reconnectToken?: string): vonage.emergency.EmergencyCallResultJS;
|
|
1187
|
-
toString(): string;
|
|
1188
|
-
hashCode(): number;
|
|
1189
|
-
equals(other: Nullable<any>): boolean;
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
1157
|
export declare namespace vonage.utils {
|
|
1193
1158
|
abstract class OptionJS<T> {
|
|
1194
1159
|
protected constructor();
|
|
@@ -23,8 +23,6 @@ export declare const ConfigRegion: typeof vonage.CoreClientConfigRegionJS;
|
|
|
23
23
|
* @property websocketPath The Path component appended to the Websocket URL
|
|
24
24
|
* @property rtcStatsTelemetry Allow users to enable RTCStats
|
|
25
25
|
* @property autoReconnectMedia Allow the sdk to automatically reconnect media when network interface changes
|
|
26
|
-
* @property primaryRegion The primary region URL for emergency services
|
|
27
|
-
* @property secondaryRegion The secondary region URL for emergency services
|
|
28
26
|
*
|
|
29
27
|
* @example
|
|
30
28
|
* [[include:snippet_SetClientConfig.txt]]
|
|
@@ -47,8 +45,6 @@ export type ClientConfigObject = ConfigObjectJS | ({
|
|
|
47
45
|
* @property websocketPath The Path component appended to the Websocket URL
|
|
48
46
|
* @property rtcStatsTelemetry Allow users to enable RTCStats
|
|
49
47
|
* @property autoReconnectMedia Allow the sdk to automatically reconnect media when network interface changes
|
|
50
|
-
* @property primaryRegion The primary region URL for emergency services
|
|
51
|
-
* @property secondaryRegion The secondary region URL for emergency services
|
|
52
48
|
*
|
|
53
49
|
* @example
|
|
54
50
|
* [[include:snippet_Logging.txt]]
|
|
@@ -65,8 +61,6 @@ export interface ConfigObjectJS {
|
|
|
65
61
|
websocketPath?: Nullable<string>;
|
|
66
62
|
rtcStatsTelemetry?: Nullable<boolean>;
|
|
67
63
|
autoReconnectMedia?: Nullable<boolean>;
|
|
68
|
-
primaryRegion?: Nullable<string>;
|
|
69
|
-
secondaryRegion?: Nullable<string>;
|
|
70
64
|
}
|
|
71
65
|
export interface InitConfigObjectJS extends ConfigObjectJS {
|
|
72
66
|
loggingLevel?: Nullable<vonage.LoggingLevelJS>;
|
|
@@ -94,8 +88,6 @@ export declare class ClientInitConfig implements InitConfigObjectJS {
|
|
|
94
88
|
websocketPath?: Nullable<string>;
|
|
95
89
|
rtcStatsTelemetry?: Nullable<boolean>;
|
|
96
90
|
autoReconnectMedia?: Nullable<boolean>;
|
|
97
|
-
primaryRegion?: Nullable<string>;
|
|
98
|
-
secondaryRegion?: Nullable<string>;
|
|
99
91
|
/**
|
|
100
92
|
* Constructs a new instance of the class.
|
|
101
93
|
*/
|