@vkontakte/calls-sdk 2.8.11-dev.50a3a6bf.0 → 2.8.11-dev.54118420.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.
@@ -12,7 +12,7 @@ export declare class CallRegistry {
12
12
  remove(id: string | null): void;
13
13
  get(id: string): HoldableConversation | undefined;
14
14
  getActive(): HoldableConversation | null;
15
- getFirstHeld(): HoldableConversation | null;
15
+ getFirst(): HoldableConversation | null;
16
16
  getActiveId(): string | null;
17
17
  has(id: string): boolean;
18
18
  getAll(): HoldableConversation[];
@@ -117,7 +117,7 @@ export default class Conversation extends EventEmitter {
117
117
  destroy(): Promise<void>;
118
118
  private _getConversationParams;
119
119
  private _setConversationParams;
120
- private _addGeoParamsToEndpoint;
120
+ private _buildSignalingEndpoint;
121
121
  /**
122
122
  * @throws ErrorEvent
123
123
  */
@@ -12,5 +12,7 @@ export default abstract class WorkerBase {
12
12
  protected _sendToWorker(type: string, data?: {
13
13
  [key: string]: any;
14
14
  }, transfer?: any[]): void;
15
+ private _formatWorkerError;
16
+ private _formatWorkerMessageError;
15
17
  static isBrowserSupported(): boolean;
16
18
  }
package/default/Api.d.ts CHANGED
@@ -5,6 +5,7 @@ import ConversationParams from '../types/ConversationParams';
5
5
  import ConversationResponse from '../types/ConversationResponse';
6
6
  import { ExternalId, ExternalParticipantId, ExternalUserId } from '../types/ExternalId';
7
7
  import { CompositeUserId, OkUserId, ParticipantId } from '../types/Participant';
8
+ import PushData from '../types/PushData';
8
9
  export default class Api extends BaseApi {
9
10
  private _userId;
10
11
  private _uuid;
@@ -13,6 +14,11 @@ export default class Api extends BaseApi {
13
14
  protected _call(method: string, data?: any, noSession?: boolean): Promise<any>;
14
15
  userId(participantId: ParticipantId): Promise<ExternalParticipantId>;
15
16
  authorize(): Promise<void>;
17
+ private _getAnonymLoginCacheKey;
18
+ private _getCachedAnonymLogin;
19
+ private _setCachedAnonymLogin;
20
+ private _removeCachedAnonymLogin;
21
+ private _applyAnonymLogin;
16
22
  logClientStats(items: ClientStats[]): void;
17
23
  logClientEvents(items: ClientEvent[]): void;
18
24
  uploadDebugLogs(conversationId: string, startTime: number, endTime: number, log: string): Promise<void>;
@@ -60,4 +66,5 @@ export default class Api extends BaseApi {
60
66
  cleanup(): void;
61
67
  private _getExternalIdsByOkIds;
62
68
  getServerTime(): Promise<number>;
69
+ getInbounds(): Promise<PushData[]>;
63
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.8.11-dev.50a3a6bf.0",
3
+ "version": "2.8.11-dev.54118420.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",
@@ -1,8 +1,11 @@
1
+ import IceServer from './IceServer';
1
2
  type PushData = {
2
3
  caller_id: string;
3
4
  caller_client_type?: string;
4
5
  conversation_id: string;
5
6
  endpoint: string;
7
+ wt_endpoint?: string;
8
+ turn_server?: IceServer;
6
9
  is_video: boolean;
7
10
  token: string;
8
11
  sdp_offer?: string;