@vonage/client-sdk 0.1.3-alpha.21 → 0.1.3-alpha.23

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.
@@ -11,6 +11,7 @@ export namespace vonage {
11
11
  mute(call: vonage.VoiceCallJS, legId: string, isMuted: boolean): void;
12
12
  earmuff(call: vonage.VoiceCallJS, legId: string, earmuffStatus: boolean): void;
13
13
  dtmf(call: vonage.VoiceCallJS, legId: string, digits: string): void;
14
+ rtcHangup(call: vonage.VoiceCallJS, legId: string, callQuality: vonage.RTCQualityJS): void;
14
15
  }
15
16
  interface CallSayParams {
16
17
  readonly text: string;
@@ -22,19 +23,69 @@ export namespace vonage {
22
23
  }
23
24
  }
24
25
  export namespace vonage {
26
+ abstract class CoreClientConfigRegionJS {
27
+ private constructor();
28
+ get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
29
+ static get AP(): vonage.CoreClientConfigRegionJS & {
30
+ get name(): "AP";
31
+ get ordinal(): 0;
32
+ };
33
+ static get EU(): vonage.CoreClientConfigRegionJS & {
34
+ get name(): "EU";
35
+ get ordinal(): 1;
36
+ };
37
+ static get US(): vonage.CoreClientConfigRegionJS & {
38
+ get name(): "US";
39
+ get ordinal(): 2;
40
+ };
41
+ static values(): Array<vonage.CoreClientConfigRegionJS>;
42
+ static valueOf(value: string): vonage.CoreClientConfigRegionJS;
43
+ get name(): "AP" | "EU" | "US";
44
+ get ordinal(): 0 | 1 | 2;
45
+ }
25
46
  class CoreClientConfigJS {
26
- constructor(region: string);
47
+ constructor(region: vonage.CoreClientConfigRegionJS);
27
48
  get apiUrl(): string;
28
49
  set apiUrl(value: string);
29
50
  get websocketUrl(): string;
30
51
  set websocketUrl(value: string);
31
52
  get websocketPath(): string;
32
53
  set websocketPath(value: string);
33
- get iceServerUrls(): Array<string>;
34
- set iceServerUrls(value: Array<string>);
35
54
  get autoMediaReoffer(): boolean;
36
55
  set autoMediaReoffer(value: boolean);
37
56
  }
57
+ abstract class LoggingLevelJS /* implements com.vonage.clientcore.core.api.ILoggingLevel */ {
58
+ private constructor();
59
+ static get Verbose(): vonage.LoggingLevelJS & {
60
+ get name(): "Verbose";
61
+ get ordinal(): 0;
62
+ };
63
+ static get Debug(): vonage.LoggingLevelJS & {
64
+ get name(): "Debug";
65
+ get ordinal(): 1;
66
+ };
67
+ static get Info(): vonage.LoggingLevelJS & {
68
+ get name(): "Info";
69
+ get ordinal(): 2;
70
+ };
71
+ static get Warn(): vonage.LoggingLevelJS & {
72
+ get name(): "Warn";
73
+ get ordinal(): 3;
74
+ };
75
+ static get Error(): vonage.LoggingLevelJS & {
76
+ get name(): "Error";
77
+ get ordinal(): 4;
78
+ };
79
+ static get Assert(): vonage.LoggingLevelJS & {
80
+ get name(): "Assert";
81
+ get ordinal(): 5;
82
+ };
83
+ static values(): Array<vonage.LoggingLevelJS>;
84
+ static valueOf(value: string): vonage.LoggingLevelJS;
85
+ get name(): "Verbose" | "Debug" | "Info" | "Warn" | "Error" | "Assert";
86
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
87
+ }
88
+ function setDefaultLoggingLevel(level: vonage.LoggingLevelJS): void;
38
89
  class CoreClientJS {
39
90
  constructor(http: vonage.HttpClientJS, socket: vonage.SocketClientJS, media: vonage.MediaClientJS);
40
91
  get emitter(): Nullable<vonage.CoreClientEvents>;
@@ -48,7 +99,7 @@ export namespace vonage {
48
99
  class VoiceCallJS {
49
100
  private constructor();
50
101
  get id(): string;
51
- hangup(): Promise<any>;
102
+ hangup(reasonText?: Nullable<string>, reasonCode?: Nullable<string>): Promise<any>;
52
103
  say(params: vonage.CallSayParams): Promise<any>;
53
104
  mute(): Promise<any>;
54
105
  unmute(): Promise<any>;
@@ -121,5 +172,21 @@ export namespace vonage {
121
172
  const REASON_CLIENT_DISCONNECTED: string;
122
173
  const REASON_CLIENT_NETWORK_ERROR: string;
123
174
  const REASON_PING_TIMEOUT: string;
175
+ class RTCQualityJS {
176
+ constructor(callQuality: any/* com.vonage.clientcore.core.conversation.RTCQuality */);
177
+ get mos_score(): number;
178
+ get quality_percentage(): number;
179
+ get jitter_min_var(): number;
180
+ get jitter_max_var(): number;
181
+ get jitter_loss_rate(): number;
182
+ get jitter_burst_rate(): number;
183
+ get flaw_total(): number;
184
+ get packet_cnt(): number;
185
+ get packet_loss_perc(): number;
186
+ copy(callQuality?: any/* com.vonage.clientcore.core.conversation.RTCQuality */): vonage.RTCQualityJS;
187
+ toString(): string;
188
+ hashCode(): number;
189
+ equals(other: Nullable<any>): boolean;
190
+ }
124
191
  }
125
192
  export as namespace clientsdk_clientcore_js;