@vonage/client-sdk 0.1.3 → 0.1.4-alpha.2

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.
@@ -12,6 +12,7 @@ export namespace vonage {
12
12
  earmuff(call: vonage.VoiceCallJS, legId: string, earmuffStatus: boolean): void;
13
13
  dtmf(call: vonage.VoiceCallJS, legId: string, digits: string): void;
14
14
  rtcHangup(call: vonage.VoiceCallJS, legId: string, callQuality: vonage.RTCQualityJS): void;
15
+ legStatusUpdate(call: vonage.VoiceCallJS, legId: string, status: string): void;
15
16
  }
16
17
  interface CallSayParams {
17
18
  readonly text: string;
@@ -94,7 +95,9 @@ export namespace vonage {
94
95
  createSession(token: string, sessionId: Nullable<string>): Promise<string>;
95
96
  deleteSession(): Promise<any>;
96
97
  refreshSession(token: string): Promise<any>;
98
+ getPeerConnection(id: string): any;
97
99
  serverCall(context: Nullable<Json>): Promise<vonage.VoiceCallJS>;
100
+ reconnectCall(legId: string): Promise<vonage.VoiceCallJS>;
98
101
  }
99
102
  class VoiceCallJS {
100
103
  private constructor();
@@ -151,12 +154,13 @@ export namespace vonage {
151
154
  didReceiveNewSocketConnectionStatusEvent(type: string, reason: Nullable<string>): void;
152
155
  }
153
156
  interface MediaClientJS {
154
- delegate: Nullable<vonage.MediaClientDelegateJS>;
155
- enableMedia(id: string, remoteDescription: Nullable<string>): void;
156
- processAnswer(mediaId: string, sdp: string, streamId: string, legId: string): void;
157
+ enableMediaOutbound(closure: (p0: any, p1: Nullable<string>, p2: (p0: string) => void) => void): void;
158
+ enableMediaInbound(closure: (p0: any, p1: Nullable<string>) => void, offerSDP: string, rtcId: string): void;
159
+ processAnswer(id: string, sdp: string): void;
157
160
  disableMedia(id: string): void;
158
161
  mute(id: string): void;
159
162
  unmute(id: string): void;
163
+ getPeerConnection(id: string): any;
160
164
  }
161
165
  interface MediaClientDelegateJS {
162
166
  onOffer(mediaId: string, streamId: string, sdp: string, callback: (p0: Nullable<string>) => void): void;