@vonage/client-sdk 0.1.4-alpha.4 → 0.1.4-alpha.6
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.
- package/dist/Client.d.ts +24 -25
- package/dist/HttpClient.d.ts +8 -8
- package/dist/MediaClient.d.ts +19 -19
- package/dist/SocketClient.d.ts +12 -12
- package/dist/coreExtend.d.ts +13 -13
- package/dist/global.d.ts +7 -7
- package/dist/index.cjs.js +45570 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +45545 -11
- package/dist/utils/createRtcAudioConnection.d.ts +5 -5
- package/dist/vonageClientSDK.esm.js +56258 -0
- package/dist/vonageClientSDK.esm.min.js +2 -0
- package/dist/vonageClientSDK.js +56270 -0
- package/dist/vonageClientSDK.min.js +2 -0
- package/package.json +19 -7
- package/rollup.config.js +94 -0
- package/dist/Client.js +0 -40
- package/dist/HttpClient.js +0 -59
- package/dist/MediaClient.js +0 -130
- package/dist/SocketClient.js +0 -79
- package/dist/coreExtend.js +0 -3
- package/dist/global.js +0 -2
- package/dist/kotlin/Kermit-kermit-js-ir.js +0 -289
- package/dist/kotlin/Kermit-kermit-js-ir.js.map +0 -1
- package/dist/kotlin/clientsdk-clientcore.js +0 -22775
- package/dist/kotlin/clientsdk-clientcore.js.map +0 -1
- package/dist/kotlin/clientsdk-clientcore_js.js +0 -1403
- package/dist/kotlin/clientsdk-clientcore_js.js.map +0 -1
- package/dist/kotlin/kotlin-kotlin-stdlib-js-ir.js +0 -11124
- package/dist/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +0 -5857
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +0 -1
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +0 -5341
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +0 -1
- package/dist/utils/createRtcAudioConnection.js +0 -85
package/dist/Client.d.ts
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { vonage } from './kotlin/clientsdk-clientcore_js';
|
|
2
|
-
import './coreExtend';
|
|
3
|
-
import './global';
|
|
4
|
-
/**
|
|
5
|
-
* Minimal Interface built on top of KMP export
|
|
6
|
-
* DO NOT ADD CODE HERE UNLESS REALLY NEEDEED!!111!
|
|
7
|
-
*/
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export declare
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export default VoiceClient;
|
|
1
|
+
import { vonage } from './kotlin/clientsdk-clientcore_js';
|
|
2
|
+
import './coreExtend';
|
|
3
|
+
import './global';
|
|
4
|
+
/**
|
|
5
|
+
* Minimal Interface built on top of KMP export
|
|
6
|
+
* DO NOT ADD CODE HERE UNLESS REALLY NEEDEED!!111!
|
|
7
|
+
*/
|
|
8
|
+
export type VonageEvent = vonage.CoreClientEvents;
|
|
9
|
+
export type Invite = vonage.VoiceInviteJS;
|
|
10
|
+
export type VoiceCall = vonage.VoiceCallJS;
|
|
11
|
+
export type Conversation = vonage.ConversationJS;
|
|
12
|
+
export type RTCQuality = vonage.RTCQualityJS;
|
|
13
|
+
export declare const ConfigRegion: typeof vonage.CoreClientConfigRegionJS;
|
|
14
|
+
export declare const LoggingLevel: typeof vonage.LoggingLevelJS;
|
|
15
|
+
export declare const setDefaultLoggingLevel: typeof vonage.setDefaultLoggingLevel;
|
|
16
|
+
export declare class ClientConfig extends vonage.CoreClientConfigJS {
|
|
17
|
+
constructor(region?: vonage.CoreClientConfigRegionJS);
|
|
18
|
+
}
|
|
19
|
+
declare class VoiceClient extends vonage.CoreClientJS {
|
|
20
|
+
private callbacks;
|
|
21
|
+
constructor();
|
|
22
|
+
on<T extends keyof VonageEvent, Fn extends VonageEvent[T]>(event: T, callback: Fn): void;
|
|
23
|
+
}
|
|
24
|
+
export default VoiceClient;
|
package/dist/HttpClient.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as KMPPackage from './kotlin/clientsdk-clientcore_js';
|
|
2
|
-
import { vonage } from './kotlin/clientsdk-clientcore_js';
|
|
3
|
-
|
|
4
|
-
declare class HttpClient implements vonage.HttpClientJS {
|
|
5
|
-
private stringToVerb;
|
|
6
|
-
request(verb: string, url: string, headers: HttpHeaders, body: string | null, callback: (p0: KMPPackage.Nullable<Error>, p1: KMPPackage.Nullable<string>) => void): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export default HttpClient;
|
|
1
|
+
import * as KMPPackage from './kotlin/clientsdk-clientcore_js';
|
|
2
|
+
import { vonage } from './kotlin/clientsdk-clientcore_js';
|
|
3
|
+
type HttpHeaders = Record<string, string | number | boolean>;
|
|
4
|
+
declare class HttpClient implements vonage.HttpClientJS {
|
|
5
|
+
private stringToVerb;
|
|
6
|
+
request(verb: string, url: string, headers: HttpHeaders, body: string | null, callback: (p0: KMPPackage.Nullable<Error>, p1: KMPPackage.Nullable<string>) => void): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export default HttpClient;
|
package/dist/MediaClient.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import * as KMPPackage from './kotlin/clientsdk-clientcore_js';
|
|
2
|
-
import { vonage } from './kotlin/clientsdk-clientcore_js';
|
|
3
|
-
declare class MediaClient implements vonage.MediaClientJS {
|
|
4
|
-
delegate: KMPPackage.Nullable<vonage.MediaClientDelegateJS>;
|
|
5
|
-
private pcs;
|
|
6
|
-
private audio;
|
|
7
|
-
private stream;
|
|
8
|
-
constructor();
|
|
9
|
-
enableMediaInbound(closure: (err: unknown, offerSDP: KMPPackage.Nullable<string>) => void, offerSDP: string, rtcId: string): Promise<void>;
|
|
10
|
-
enableMediaOutbound(closure: (err: unknown, offerSDP: KMPPackage.Nullable<string>, callback: (legId: string) => void) => void): Promise<void>;
|
|
11
|
-
private getNewPC;
|
|
12
|
-
mute(id: string): Promise<void>;
|
|
13
|
-
unmute(id: string): Promise<void>;
|
|
14
|
-
getPeerConnection(id: string): RTCPeerConnection | undefined;
|
|
15
|
-
processAnswer(id: string, sdp: string): void;
|
|
16
|
-
disableMedia(id: string): void;
|
|
17
|
-
private setMediaTracksEnabled;
|
|
18
|
-
}
|
|
19
|
-
export default MediaClient;
|
|
1
|
+
import * as KMPPackage from './kotlin/clientsdk-clientcore_js';
|
|
2
|
+
import { vonage } from './kotlin/clientsdk-clientcore_js';
|
|
3
|
+
declare class MediaClient implements vonage.MediaClientJS {
|
|
4
|
+
delegate: KMPPackage.Nullable<vonage.MediaClientDelegateJS>;
|
|
5
|
+
private pcs;
|
|
6
|
+
private audio;
|
|
7
|
+
private stream;
|
|
8
|
+
constructor();
|
|
9
|
+
enableMediaInbound(closure: (err: unknown, offerSDP: KMPPackage.Nullable<string>) => void, offerSDP: string, rtcId: string): Promise<void>;
|
|
10
|
+
enableMediaOutbound(closure: (err: unknown, offerSDP: KMPPackage.Nullable<string>, callback: (legId: string) => void) => void): Promise<void>;
|
|
11
|
+
private getNewPC;
|
|
12
|
+
mute(id: string): Promise<void>;
|
|
13
|
+
unmute(id: string): Promise<void>;
|
|
14
|
+
getPeerConnection(id: string): RTCPeerConnection | undefined;
|
|
15
|
+
processAnswer(id: string, sdp: string): void;
|
|
16
|
+
disableMedia(id: string): void;
|
|
17
|
+
private setMediaTracksEnabled;
|
|
18
|
+
}
|
|
19
|
+
export default MediaClient;
|
package/dist/SocketClient.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as KMPPackage from './kotlin/clientsdk-clientcore_js';
|
|
2
|
-
import { vonage } from './kotlin/clientsdk-clientcore_js';
|
|
3
|
-
declare class SocketClient implements vonage.SocketClientJS {
|
|
4
|
-
delegate: KMPPackage.Nullable<vonage.SocketClientDelegateJS>;
|
|
5
|
-
private socket;
|
|
6
|
-
emit(type: string, msg: unknown, _callback: (p0: KMPPackage.Nullable<Error>, p1: KMPPackage.Nullable<string>) => void): void;
|
|
7
|
-
connect(host: string, path: string, reconnectionAttempts: number, reconnectionDelay: number, randomizationFactor: number, query: string): void;
|
|
8
|
-
disconnect(): void;
|
|
9
|
-
startVerifyResponseTimer(milliseconds: number, callback: () => void): void;
|
|
10
|
-
setConnectParamsSocketConfig(token: string): void;
|
|
11
|
-
}
|
|
12
|
-
export default SocketClient;
|
|
1
|
+
import * as KMPPackage from './kotlin/clientsdk-clientcore_js';
|
|
2
|
+
import { vonage } from './kotlin/clientsdk-clientcore_js';
|
|
3
|
+
declare class SocketClient implements vonage.SocketClientJS {
|
|
4
|
+
delegate: KMPPackage.Nullable<vonage.SocketClientDelegateJS>;
|
|
5
|
+
private socket;
|
|
6
|
+
emit(type: string, msg: unknown, _callback: (p0: KMPPackage.Nullable<Error>, p1: KMPPackage.Nullable<string>) => void): void;
|
|
7
|
+
connect(host: string, path: string, reconnectionAttempts: number, reconnectionDelay: number, randomizationFactor: number, query: string): void;
|
|
8
|
+
disconnect(): void;
|
|
9
|
+
startVerifyResponseTimer(milliseconds: number, callback: () => void): void;
|
|
10
|
+
setConnectParamsSocketConfig(token: string): void;
|
|
11
|
+
}
|
|
12
|
+
export default SocketClient;
|
package/dist/coreExtend.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import './kotlin/clientsdk-clientcore_js';
|
|
2
|
-
declare module './kotlin/clientsdk-clientcore_js' {
|
|
3
|
-
namespace vonage {
|
|
4
|
-
interface VoiceCallJS {
|
|
5
|
-
say(params: Partial<CallSayParams> & {
|
|
6
|
-
text: string;
|
|
7
|
-
}): Promise<unknown>;
|
|
8
|
-
}
|
|
9
|
-
interface CoreClientJS {
|
|
10
|
-
getPeerConnection(id: string): RTCPeerConnection;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
1
|
+
import './kotlin/clientsdk-clientcore_js';
|
|
2
|
+
declare module './kotlin/clientsdk-clientcore_js' {
|
|
3
|
+
namespace vonage {
|
|
4
|
+
interface VoiceCallJS {
|
|
5
|
+
say(params: Partial<CallSayParams> & {
|
|
6
|
+
text: string;
|
|
7
|
+
}): Promise<unknown>;
|
|
8
|
+
}
|
|
9
|
+
interface CoreClientJS {
|
|
10
|
+
getPeerConnection(id: string): RTCPeerConnection;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/global.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
type JsonValue = object | null | boolean | string | number;
|
|
3
|
-
type Json = {
|
|
4
|
-
[property: string]: Json | JsonValue;
|
|
5
|
-
} | Json[];
|
|
6
|
-
}
|
|
7
|
-
export {};
|
|
1
|
+
declare global {
|
|
2
|
+
type JsonValue = object | null | boolean | string | number;
|
|
3
|
+
type Json = {
|
|
4
|
+
[property: string]: Json | JsonValue;
|
|
5
|
+
} | Json[];
|
|
6
|
+
}
|
|
7
|
+
export {};
|