@vkontakte/calls-sdk 2.8.12-dev.8f58ce7b.0 → 2.8.12-dev.9e9e52d8.0

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.
@@ -116,6 +116,7 @@ export default class Conversation extends EventEmitter {
116
116
  private _allocateParticipantTransport;
117
117
  private _cleanupRegistry;
118
118
  private _emitHangupOnce;
119
+ private _sendHangupApi;
119
120
  private _close;
120
121
  destroy(): void;
121
122
  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>;
@@ -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-dev.8f58ce7b.0",
3
+ "version": "2.8.12-dev.9e9e52d8.0",
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.0",
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",
@@ -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
@@ -0,0 +1,9 @@
1
+ import HangupType from '../enums/HangupType';
2
+ export interface IHangupParams {
3
+ conversationId: string;
4
+ reason: HangupType;
5
+ anonymToken?: string;
6
+ peerId?: string;
7
+ application_key?: string;
8
+ session_key?: string;
9
+ }