@vonage/client-sdk 0.1.3-alpha.17 → 0.1.3-alpha.19

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.
@@ -10,6 +10,7 @@ export namespace vonage {
10
10
  callTransfer(call: vonage.VoiceCallJS, cid: vonage.ConversationJS, prevConversation: vonage.ConversationJS): void;
11
11
  mute(call: vonage.VoiceCallJS, legId: string, isMuted: boolean): void;
12
12
  earmuff(call: vonage.VoiceCallJS, legId: string, earmuffStatus: boolean): void;
13
+ dtmf(call: vonage.VoiceCallJS, legId: string, digits: string): void;
13
14
  }
14
15
  interface CallSayParams {
15
16
  readonly text: string;
@@ -21,11 +22,24 @@ export namespace vonage {
21
22
  }
22
23
  }
23
24
  export namespace vonage {
25
+ class CoreClientConfigJS {
26
+ constructor(region: string);
27
+ get apiUrl(): string;
28
+ set apiUrl(value: string);
29
+ get websocketUrl(): string;
30
+ set websocketUrl(value: string);
31
+ get websocketPath(): string;
32
+ set websocketPath(value: string);
33
+ get iceServerUrls(): Array<string>;
34
+ set iceServerUrls(value: Array<string>);
35
+ get autoMediaReoffer(): boolean;
36
+ set autoMediaReoffer(value: boolean);
37
+ }
24
38
  class CoreClientJS {
25
39
  constructor(http: vonage.HttpClientJS, socket: vonage.SocketClientJS, media: vonage.MediaClientJS);
26
40
  get emitter(): Nullable<vonage.CoreClientEvents>;
27
41
  set emitter(value: Nullable<vonage.CoreClientEvents>);
28
- setConfig(httpHost: string, wsHost: string): void;
42
+ setConfig(config: vonage.CoreClientConfigJS): void;
29
43
  createSession(token: string, sessionId: Nullable<string>): Promise<string>;
30
44
  deleteSession(): Promise<any>;
31
45
  refreshSession(token: string): Promise<any>;
@@ -40,9 +54,22 @@ export namespace vonage {
40
54
  unmute(): Promise<any>;
41
55
  enableEarmuff(): Promise<any>;
42
56
  disableEarmuff(): Promise<any>;
57
+ sendDTMF(digits: string): Promise<any>;
58
+ }
59
+ class VoiceInviteFromInfoJS {
60
+ constructor(id: Nullable<string>, type: string);
61
+ get id(): Nullable<string>;
62
+ get type(): string;
63
+ component1(): Nullable<string>;
64
+ component2(): string;
65
+ copy(id?: Nullable<string>, type?: string): vonage.VoiceInviteFromInfoJS;
66
+ toString(): string;
67
+ hashCode(): number;
68
+ equals(other: Nullable<any>): boolean;
43
69
  }
44
70
  class VoiceInviteJS {
45
71
  private constructor();
72
+ get from(): vonage.VoiceInviteFromInfoJS;
46
73
  answerCall(): Promise<vonage.VoiceCallJS>;
47
74
  rejectCall(): Promise<any>;
48
75
  }