@vonage/client-sdk 1.1.0-alpha.3 → 1.1.0-alpha.7

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.
@@ -2,11 +2,38 @@ import './kotlin/clientsdk-clientcore_js';
2
2
  declare module './kotlin/clientsdk-clientcore_js' {
3
3
  namespace vonage {
4
4
  interface CombinedClientJS {
5
- say(callId: string, params: Partial<CallSayParams> & {
6
- text: string;
7
- }): Promise<unknown>;
5
+ /**
6
+ * Mute your leg of a call
7
+ * @param callId - Call ID
8
+ * @returns void
9
+ */
10
+ mute(callId: string): Promise<void>;
11
+ /**
12
+ * Unmute your leg of a call
13
+ * @param callId - Call ID
14
+ * @returns void
15
+ */
16
+ unmute(callId: string): Promise<void>;
17
+ /**
18
+ * Earmuff your leg of a call
19
+ * @param callId - Call ID
20
+ * @returns void
21
+ */
22
+ enableEarmuff(callId: string): Promise<void>;
23
+ /**
24
+ * Unearmuff your leg of a call
25
+ * @param callId - Call ID
26
+ * @returns void
27
+ */
28
+ disableEarmuff(callId: string): Promise<void>;
8
29
  }
9
30
  interface CoreClientJS {
31
+ /**
32
+ * Get the peer connection for a call
33
+ *
34
+ * @internal
35
+ * @param id - Call ID
36
+ */
10
37
  getPeerConnection(id: string): RTCPeerConnection;
11
38
  }
12
39
  }
@@ -425,6 +425,7 @@ export namespace vonage {
425
425
  private constructor();
426
426
  get type(): vonage.VonageErrorTypeJS;
427
427
  get code(): Nullable<string>;
428
+ get kmpCause(): Nullable<Error>;
428
429
  }
429
430
  abstract class VonageErrorTypeJS {
430
431
  private constructor();
@@ -714,7 +715,7 @@ export namespace vonage {
714
715
  }
715
716
  interface SocketClientDelegateJS {
716
717
  didReceiveNewSocketEvent(type: string, body: string): void;
717
- didReceiveNewSocketConnectionStatusEvent(type: string, reason: Nullable<string>): void;
718
+ didReceiveNewSocketConnectionStatusEvent(type: string, reason: Nullable<string>, timestamp: any/* kotlin.Number */, retryNumber: Nullable<number>): void;
718
719
  }
719
720
  interface MediaClientJS {
720
721
  delegate: Nullable<vonage.MediaClientDelegateJS>;