@vonage/client-sdk 2.1.3-snapshot.150.0 → 2.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.
@@ -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, vonage.emergency.EmergencyEvents {
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, vonage.emergency.IEmergencyClientJS {
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, 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>;
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 emergencyPrimaryRegion?: Nullable<string>;
793
- readonly emergencySecondaryRegion?: 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 emergencyPrimaryRegion(): string;
840
- get emergencySecondaryRegion(): 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(): 7;
870
+ get ordinal(): 6;
884
871
  };
885
- get name(): "HTTP" | "WS" | "MEDIA" | "API" | "STORE" | "REDUCER" | "EMERGENCY" | "DEFAULT";
886
- get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
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,32 +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
- 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
- }
1195
1157
  export declare namespace vonage.utils {
1196
1158
  abstract class OptionJS<T> {
1197
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 emergencyPrimaryRegion The primary region URL for emergency services
27
- * @property emergencySecondaryRegion 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 emergencyPrimaryRegion The primary region URL for emergency services
51
- * @property emergencySecondaryRegion 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
- emergencyPrimaryRegion?: Nullable<string>;
69
- emergencySecondaryRegion?: 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
- emergencyPrimaryRegion?: Nullable<string>;
98
- emergencySecondaryRegion?: Nullable<string>;
99
91
  /**
100
92
  * Constructs a new instance of the class.
101
93
  */