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