@vkontakte/calls-sdk 2.8.12-beta.5 → 2.8.12-dev.0a19cc2d.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.
@@ -114,7 +114,7 @@ export default class Conversation extends EventEmitter {
114
114
  private _allocateParticipantTransport;
115
115
  private _cleanupRegistry;
116
116
  private _close;
117
- destroy(): Promise<void>;
117
+ destroy(): void;
118
118
  private _getConversationParams;
119
119
  private _setConversationParams;
120
120
  private _buildSignalingEndpoint;
@@ -156,6 +156,7 @@ export default class Conversation extends EventEmitter {
156
156
  private _getExistedParticipantByIdOrCreate;
157
157
  private _getExternalIdByParticipantId;
158
158
  private _getExternalIdsByOkIdsFromCache;
159
+ private _getOrCacheExternalIdByCompositeId;
159
160
  private _registerParticipantAndSetMarkersIfChunkEnabled;
160
161
  private _warnParticipantNotInConversation;
161
162
  private _denormalizeMarkers;
@@ -360,7 +361,7 @@ export default class Conversation extends EventEmitter {
360
361
  private _onRecordInfo;
361
362
  private _onStopRecordInfo;
362
363
  private _changePinnedParticipantForRoom;
363
- _changeRecordInfoForRoom(): Promise<void>;
364
+ _changeRecordInfoForRoom(): void;
364
365
  private _changeAsrInfoForRoom;
365
366
  private _changeUrlSharingInfoForRoom;
366
367
  private _onParticipantAnimojiChanged;
@@ -5,7 +5,7 @@ import { Participant, ParticipantId } from '../types/Participant';
5
5
  type DisplayLayoutRequesterParams = {
6
6
  api: BaseApi;
7
7
  debug: DebugLogger;
8
- getParticipants: () => Promise<Record<ParticipantId, Participant>>;
8
+ getParticipants: () => Record<ParticipantId, Participant>;
9
9
  isMe: (participantId: ParticipantId) => boolean;
10
10
  updateDisplayLayout: (layouts: ParticipantLayout[]) => Promise<void>;
11
11
  };
@@ -1,6 +1,7 @@
1
1
  import { ExternalId, ExternalParticipantId } from '../types/ExternalId';
2
2
  import { CompositeUserId, OkUserId, ParticipantId } from '../types/Participant';
3
3
  export declare class ExternalIdCache {
4
+ private static _normalizeType;
4
5
  private _okIdToExternalId;
5
6
  private _externalIdToOkId;
6
7
  private _decorativeIdToInitialId;
package/default/Api.d.ts CHANGED
@@ -11,7 +11,7 @@ export default class Api extends BaseApi {
11
11
  private _idCache;
12
12
  private _callUnsafe;
13
13
  protected _call(method: string, data?: any, noSession?: boolean, allowReauthorize?: boolean): Promise<any>;
14
- userId(participantId: ParticipantId): Promise<ExternalParticipantId>;
14
+ userId(participantId: ParticipantId): ExternalParticipantId;
15
15
  authorize(): Promise<void>;
16
16
  private _getAnonymLoginCacheKey;
17
17
  private _getCachedAnonymLogin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.8.12-beta.5",
3
+ "version": "2.8.12-dev.0a19cc2d.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",
@@ -637,6 +637,6 @@ declare namespace External {
637
637
  /**
638
638
  * Собеседник подключился к сигналлингу
639
639
  */
640
- function onPeerRegistered(conversationId?: string): void;
640
+ function onPeerRegistered(conversationId?: string, externalIds?: ExternalId[]): void;
641
641
  }
642
642
  export default External;
@@ -892,7 +892,7 @@ export type ParamsObject = {
892
892
  /**
893
893
  * Собеседник подключился к сигналлингу
894
894
  */
895
- onPeerRegistered?: (conversationId?: string) => void;
895
+ onPeerRegistered?: (conversationId?: string, externalIds?: ExternalId[]) => void;
896
896
  };
897
897
  export default abstract class Params {
898
898
  private static _params;