@vonage/client-sdk 0.1.4-alpha.3 → 0.1.4-alpha.5

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.
Files changed (35) hide show
  1. package/dist/Client.d.ts +24 -25
  2. package/dist/HttpClient.d.ts +8 -8
  3. package/dist/MediaClient.d.ts +19 -19
  4. package/dist/SocketClient.d.ts +12 -12
  5. package/dist/coreExtend.d.ts +13 -13
  6. package/dist/global.d.ts +7 -7
  7. package/dist/index.cjs.js +45493 -0
  8. package/dist/index.d.ts +4 -3
  9. package/dist/index.js +45468 -11
  10. package/dist/utils/createRtcAudioConnection.d.ts +5 -5
  11. package/dist/vonageClientSDK.esm.js +56181 -0
  12. package/dist/vonageClientSDK.esm.min.js +2 -0
  13. package/dist/vonageClientSDK.js +56193 -0
  14. package/dist/vonageClientSDK.min.js +2 -0
  15. package/package.json +19 -7
  16. package/rollup.config.js +94 -0
  17. package/dist/Client.js +0 -40
  18. package/dist/HttpClient.js +0 -59
  19. package/dist/MediaClient.js +0 -130
  20. package/dist/SocketClient.js +0 -79
  21. package/dist/coreExtend.js +0 -3
  22. package/dist/global.js +0 -2
  23. package/dist/kotlin/Kermit-kermit-js-ir.js +0 -300
  24. package/dist/kotlin/Kermit-kermit-js-ir.js.map +0 -1
  25. package/dist/kotlin/clientsdk-clientcore.js +0 -22413
  26. package/dist/kotlin/clientsdk-clientcore.js.map +0 -1
  27. package/dist/kotlin/clientsdk-clientcore_js.js +0 -1403
  28. package/dist/kotlin/clientsdk-clientcore_js.js.map +0 -1
  29. package/dist/kotlin/kotlin-kotlin-stdlib-js-ir.js +0 -11107
  30. package/dist/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
  31. package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +0 -5857
  32. package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +0 -1
  33. package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +0 -5341
  34. package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +0 -1
  35. 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 declare type VonageEvent = vonage.CoreClientEvents;
9
- export declare type Invite = vonage.VoiceInviteJS;
10
- export declare type VoiceCall = vonage.VoiceCallJS;
11
- export declare type Conversation = vonage.ConversationJS;
12
- export declare type RTCQuality = vonage.RTCQualityJS;
13
- export declare type ConfigRegion = vonage.CoreClientConfigRegionJS;
14
- export declare const ConfigRegion: typeof vonage.CoreClientConfigRegionJS;
15
- export declare const LoggingLevel: typeof vonage.LoggingLevelJS;
16
- export declare const setDefaultLoggingLevel: typeof vonage.setDefaultLoggingLevel;
17
- export declare class ClientConfig extends vonage.CoreClientConfigJS {
18
- constructor(region?: ConfigRegion);
19
- }
20
- declare class VoiceClient extends vonage.CoreClientJS {
21
- private callbacks;
22
- constructor();
23
- on<T extends keyof VonageEvent, Fn extends VonageEvent[T]>(event: T, callback: Fn): void;
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;
@@ -1,8 +1,8 @@
1
- import * as KMPPackage from './kotlin/clientsdk-clientcore_js';
2
- import { vonage } from './kotlin/clientsdk-clientcore_js';
3
- declare 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;
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;
@@ -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;
@@ -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;
@@ -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 {};