@vkontakte/calls-sdk 2.8.12-beta.12 → 2.8.12-beta.14
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/abstract/BaseApi.d.ts +2 -1
- package/calls-sdk.cjs.js +6 -6
- package/calls-sdk.esm.js +275 -231
- package/classes/conversation/Conversation.d.ts +2 -0
- package/default/Api.d.ts +4 -1
- package/default/ApiExternal.d.ts +2 -1
- package/package.json +2 -2
- package/static/ApiTransport.d.ts +3 -0
- package/types/Api.d.ts +9 -0
- package/types/SignalingMessage.d.ts +1 -0
|
@@ -114,8 +114,10 @@ export default class Conversation extends EventEmitter {
|
|
|
114
114
|
updateStatisticsInterval(): void;
|
|
115
115
|
private _openTransport;
|
|
116
116
|
private _allocateParticipantTransport;
|
|
117
|
+
private _closeParticipantTransport;
|
|
117
118
|
private _cleanupRegistry;
|
|
118
119
|
private _emitHangupOnce;
|
|
120
|
+
private _sendHangupApi;
|
|
119
121
|
private _close;
|
|
120
122
|
destroy(): void;
|
|
121
123
|
private _destroy;
|
package/default/Api.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import BaseApi, { ClientStats } from '../abstract/BaseApi';
|
|
2
2
|
import CallType from '../enums/CallType';
|
|
3
3
|
import HangupType from '../enums/HangupType';
|
|
4
|
+
import { IHangupParams } from '../types/Api';
|
|
4
5
|
import ConversationParams from '../types/ConversationParams';
|
|
5
6
|
import ConversationResponse from '../types/ConversationResponse';
|
|
6
7
|
import { ExternalId, ExternalParticipantId, ExternalUserId } from '../types/ExternalId';
|
|
@@ -17,7 +18,9 @@ export default class Api extends BaseApi {
|
|
|
17
18
|
private _getCachedAnonymLogin;
|
|
18
19
|
private _setCachedAnonymLogin;
|
|
19
20
|
private _removeCachedAnonymLogin;
|
|
21
|
+
private _reauthorize;
|
|
20
22
|
private _applyAnonymLogin;
|
|
23
|
+
private _sendClientStats;
|
|
21
24
|
logClientStats(items: ClientStats[]): void;
|
|
22
25
|
uploadDebugLogs(conversationId: string, startTime: number, endTime: number, log: string): Promise<void>;
|
|
23
26
|
joinConversation(conversationId: string, isVideo?: boolean, chatId?: string): Promise<ConversationResponse>;
|
|
@@ -55,7 +58,7 @@ export default class Api extends BaseApi {
|
|
|
55
58
|
getConversationParams(conversationId?: string): Promise<ConversationParams>;
|
|
56
59
|
getUserId(): OkUserId | null;
|
|
57
60
|
setUserId(userId: OkUserId): void;
|
|
58
|
-
hangupConversation(conversationId: string, reason?: HangupType): void;
|
|
61
|
+
hangupConversation(conversationId: string, reason?: HangupType, params?: Partial<IHangupParams>): void;
|
|
59
62
|
removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
60
63
|
cleanup(): void;
|
|
61
64
|
getServerTime(): Promise<number>;
|
package/default/ApiExternal.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IHangupParams } from '../types/Api';
|
|
1
2
|
import { IAPIBaseUrl, IApiEnv } from '../types/Params';
|
|
2
3
|
export declare class ApiExternal {
|
|
3
4
|
private readonly _uuid;
|
|
@@ -8,5 +9,5 @@ export declare class ApiExternal {
|
|
|
8
9
|
private _sessionKey;
|
|
9
10
|
constructor(apiEvn: IApiEnv, apiKey: string, callToken: string, baseApiUrl?: IAPIBaseUrl);
|
|
10
11
|
authorize(): Promise<boolean>;
|
|
11
|
-
hangupConversation(conversationId: string): Promise<void>;
|
|
12
|
+
hangupConversation(conversationId: string, params?: Partial<IHangupParams>): Promise<void>;
|
|
12
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/calls-sdk",
|
|
3
|
-
"version": "2.8.12-beta.
|
|
3
|
+
"version": "2.8.12-beta.14",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Library for video calls based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"**/*.d.ts"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@vkontakte/calls-audio-effects": "1.4.
|
|
17
|
+
"@vkontakte/calls-audio-effects": "1.4.1",
|
|
18
18
|
"@vkontakte/calls-video-effects": "2.2.3-beta.7",
|
|
19
19
|
"@vkontakte/calls-vmoji": "1.0.10-beta.17",
|
|
20
20
|
"@vkontakte/libvpx": "2.0.9",
|
package/static/ApiTransport.d.ts
CHANGED
|
@@ -7,4 +7,7 @@ export declare function sendBeakon(method: string, params?: {
|
|
|
7
7
|
export declare function request(method: string, params?: {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}, noSession?: boolean, customEndpoint?: string): Promise<any>;
|
|
10
|
+
export declare function requestKeepalive(method: string, params?: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}, noSession?: boolean): Promise<any>;
|
|
10
13
|
export declare function sendFormData(url: string, data: FormData): Promise<void>;
|
package/types/Api.d.ts
ADDED