@vonage/client-sdk 0.1.4 → 0.1.5-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.
- package/dist/index.cjs +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +24 -1
- package/dist/voice/VoiceClient.d.ts +2 -0
- package/dist/voice/index.cjs +3428 -3054
- package/dist/voice/index.mjs +3428 -3055
- package/dist/vonageClientSDK.js +3399 -3025
- package/dist/vonageClientSDK.min.js +2 -2
- package/dist/vonageClientSDK.min.mjs +2 -2
- package/dist/vonageClientSDK.mjs +3399 -3026
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -16,6 +16,10 @@ Object.defineProperty(exports, 'LoggingLevel', {
|
|
|
16
16
|
enumerable: true,
|
|
17
17
|
get: function () { return voice.LoggingLevel; }
|
|
18
18
|
});
|
|
19
|
+
Object.defineProperty(exports, 'SessionErrorReason', {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return voice.SessionErrorReason; }
|
|
22
|
+
});
|
|
19
23
|
exports.VoiceClient = voice;
|
|
20
24
|
Object.defineProperty(exports, 'setDefaultLoggingLevel', {
|
|
21
25
|
enumerable: true,
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as VoiceClient, ClientConfig, ConfigRegion, setDefaultLoggingLevel, LoggingLevel, Invite, VoiceCall, Conversation, RTCQuality } from './voice';
|
|
1
|
+
export { default as VoiceClient, ClientConfig, ConfigRegion, setDefaultLoggingLevel, LoggingLevel, Invite, VoiceCall, Conversation, RTCQuality, SessionErrorReason } from './voice';
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ClientConfig, ConfigRegion, LoggingLevel, default as VoiceClient, setDefaultLoggingLevel } from './voice';
|
|
1
|
+
export { ClientConfig, ConfigRegion, LoggingLevel, SessionErrorReason, default as VoiceClient, setDefaultLoggingLevel } from './voice';
|
|
@@ -5,7 +5,7 @@ export namespace vonage {
|
|
|
5
5
|
interface CoreClientEvents {
|
|
6
6
|
reconnecting(): void;
|
|
7
7
|
reconnection(): void;
|
|
8
|
-
sessionError(reason:
|
|
8
|
+
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
9
9
|
callInvite(callId: string, invite: vonage.VoiceInviteJS): void;
|
|
10
10
|
callTransfer(callId: string, cid: vonage.ConversationJS, prevConversation: vonage.ConversationJS): void;
|
|
11
11
|
mute(callId: string, legId: string, isMuted: boolean): void;
|
|
@@ -86,6 +86,29 @@ export namespace vonage {
|
|
|
86
86
|
get name(): "Verbose" | "Debug" | "Info" | "Warn" | "Error" | "Assert";
|
|
87
87
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
|
|
88
88
|
}
|
|
89
|
+
abstract class SessionErrorReasonJS {
|
|
90
|
+
private constructor();
|
|
91
|
+
get reason(): any/* com.vonage.clientcore.core.api.SessionErrorReason */;
|
|
92
|
+
static get EXPIRED_TOKEN(): vonage.SessionErrorReasonJS & {
|
|
93
|
+
get name(): "EXPIRED_TOKEN";
|
|
94
|
+
get ordinal(): 0;
|
|
95
|
+
};
|
|
96
|
+
static get TRANSPORT_CLOSED(): vonage.SessionErrorReasonJS & {
|
|
97
|
+
get name(): "TRANSPORT_CLOSED";
|
|
98
|
+
get ordinal(): 1;
|
|
99
|
+
};
|
|
100
|
+
static get PING_TIMEOUT(): vonage.SessionErrorReasonJS & {
|
|
101
|
+
get name(): "PING_TIMEOUT";
|
|
102
|
+
get ordinal(): 2;
|
|
103
|
+
};
|
|
104
|
+
static values(): Array<vonage.SessionErrorReasonJS>;
|
|
105
|
+
static valueOf(value: string): vonage.SessionErrorReasonJS;
|
|
106
|
+
get name(): "EXPIRED_TOKEN" | "TRANSPORT_CLOSED" | "PING_TIMEOUT";
|
|
107
|
+
get ordinal(): 0 | 1 | 2;
|
|
108
|
+
static get Companion(): {
|
|
109
|
+
getSessionErrorReason(reason: any/* com.vonage.clientcore.core.api.SessionErrorReason */): Nullable<vonage.SessionErrorReasonJS>;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
89
112
|
function setDefaultLoggingLevel(level: vonage.LoggingLevelJS): void;
|
|
90
113
|
class CoreClientJS {
|
|
91
114
|
constructor(http: vonage.HttpClientJS, socket: vonage.SocketClientJS, media: vonage.MediaClientJS);
|
|
@@ -10,6 +10,8 @@ export type Invite = vonage.VoiceInviteJS;
|
|
|
10
10
|
export type VoiceCall = vonage.VoiceCallJS;
|
|
11
11
|
export type Conversation = vonage.ConversationJS;
|
|
12
12
|
export type RTCQuality = vonage.RTCQualityJS;
|
|
13
|
+
export type SessionErrorReason = vonage.SessionErrorReasonJS;
|
|
14
|
+
export declare const SessionErrorReason: typeof vonage.SessionErrorReasonJS;
|
|
13
15
|
export declare const ConfigRegion: typeof vonage.CoreClientConfigRegionJS;
|
|
14
16
|
export declare const LoggingLevel: typeof vonage.LoggingLevelJS;
|
|
15
17
|
export declare const setDefaultLoggingLevel: typeof vonage.setDefaultLoggingLevel;
|