@vkontakte/calls-sdk 2.8.11-dev.882b025a.0 → 2.8.11-dev.89ba1e7f.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.
@@ -6,6 +6,7 @@ export interface HoldableConversation extends Conversation {
6
6
  export declare class CallRegistry {
7
7
  private _conversations;
8
8
  private _activeId;
9
+ private _mutex;
9
10
  add(conversation: HoldableConversation): void;
10
11
  remove(id: string | null): void;
11
12
  get(id: string): HoldableConversation | undefined;
@@ -13,6 +14,7 @@ export declare class CallRegistry {
13
14
  getActiveId(): string | null;
14
15
  has(id: string): boolean;
15
16
  getAll(): HoldableConversation[];
17
+ get callsLength(): number;
16
18
  setActive(id: string): Promise<void>;
17
19
  clear(): void;
18
20
  }
@@ -36,6 +36,7 @@ export default class Conversation extends EventEmitter {
36
36
  private _conversation;
37
37
  private _myLastRequestedLayouts;
38
38
  private _state;
39
+ private _previousState;
39
40
  private _participantState;
40
41
  private _participants;
41
42
  private _pendingParticipants;
@@ -49,6 +50,7 @@ export default class Conversation extends EventEmitter {
49
50
  private _lastSignalledActiveSpeakerId;
50
51
  private _isRealTimeAsrRequested;
51
52
  private _serverSettings;
53
+ private _serverTimeOffset;
52
54
  private _delayedHangup;
53
55
  private _abortController;
54
56
  private readonly _onUnload;
@@ -71,6 +73,7 @@ export default class Conversation extends EventEmitter {
71
73
  get externalId(): ExternalParticipantId | undefined;
72
74
  get mediaSettings(): MediaSettings | undefined;
73
75
  get isCallHeld(): boolean;
76
+ static getSyncedTime(): number;
74
77
  onStart({ opponentIds, opponentType, mediaOptions, payload, joiningAllowed, requireAuthToJoin, onlyAdminCanShareMovie, externalIds, onFastStart, conversationId, }: ConversationOnStartParams): Promise<ConversationData>;
75
78
  onJoin(joinArgs: {
76
79
  conversationId?: string;
@@ -395,6 +398,7 @@ export default class Conversation extends EventEmitter {
395
398
  private _onFeedback;
396
399
  private _onDecorativeParticipantIdChanged;
397
400
  private _onVideoSuspendSuggest;
401
+ private _onParticipantHold;
398
402
  private _isMe;
399
403
  private _getMuteStatesForRoomId;
400
404
  private _getMuteStatesForCurrentRoom;
@@ -10,8 +10,8 @@ export default class Logger extends BaseLogger {
10
10
  static setConversationIdProvider(provider: () => string | null): void;
11
11
  static create(api: BaseApi, externalLogger: BaseLogger | null): void;
12
12
  static log(name: StatLog, value?: string, immediately?: boolean): void;
13
- static logClientStats(params: Record<string, string | number | undefined | null>, immediately?: boolean): void;
14
- static logClientEvent(params: Record<string, string | number | undefined | null>, immediately?: boolean): void;
13
+ static logClientStats(params: Record<string, string | number | boolean | undefined | null>, immediately?: boolean): void;
14
+ static logClientEvent(params: Record<string, string | number | boolean | undefined | null>, immediately?: boolean): void;
15
15
  static destroy(): void;
16
16
  private readonly _externalLogger;
17
17
  private readonly _api;
@@ -22,8 +22,8 @@ export default class Logger extends BaseLogger {
22
22
  private _serverTimeDelta;
23
23
  constructor(api: BaseApi, externalLogger: BaseLogger | null);
24
24
  log(name: StatLog, value?: string, immediately?: boolean): void;
25
- logClientStats(data: Record<string, string | number | undefined | null>, immediately?: boolean): void;
26
- logClientEvent(data: Record<string, string | number | undefined | null>, immediately?: boolean): void;
25
+ logClientStats(data: Record<string, string | number | boolean | undefined | null>, immediately?: boolean): void;
26
+ logClientEvent(data: Record<string, string | number | boolean | undefined | null>, immediately?: boolean): void;
27
27
  destroy(): void;
28
28
  private _getConversationId;
29
29
  private _sendBatch;
@@ -3,12 +3,7 @@ export declare class SignalingActor {
3
3
  private processor;
4
4
  private queue;
5
5
  private isProcessing;
6
- private isHeld;
7
- private isDestroyed;
8
6
  constructor(processor: (message: SignalingMessage) => Promise<unknown> | unknown);
9
7
  add(message: SignalingMessage): void;
10
- hold(): void;
11
- unhold(): void;
12
- destroy(): void;
13
8
  private processQueue;
14
9
  }
@@ -12,6 +12,8 @@ export default class SpecListener extends EventEmitter {
12
12
  constructor(transport: Transport, volumesDetector: VolumesDetector, participants: Record<ParticipantId, Participant>);
13
13
  destroy(): void;
14
14
  onChangeRemoteMediaSettings(participantId: ParticipantId, mediaSettings: MediaSettings): void;
15
+ private _getConnectionTimeout;
16
+ private _getVolumeTimeout;
15
17
  private _onTransportStateChanged;
16
18
  private _onVolumesDetected;
17
19
  private _onConnectionTimeout;
@@ -39,7 +39,6 @@ export default class Signaling extends BaseSignaling {
39
39
  protected conversationReject: Function | null;
40
40
  private connected;
41
41
  private listenersReady;
42
- private postfix;
43
42
  protected peerId: number | null;
44
43
  protected conversationId: string | null;
45
44
  private reconnectTimer;
@@ -164,6 +163,7 @@ export default class Signaling extends BaseSignaling {
164
163
  startAsr(params: IAsrStartParams): Promise<SignalingMessage>;
165
164
  stopAsr(params?: IAsrStopParams): Promise<SignalingMessage>;
166
165
  requestAsr(request: boolean): Promise<SignalingMessage>;
166
+ private _buildUrl;
167
167
  protected _connect(connectionType: SignalingConnectionType, useWebTransport: boolean): void;
168
168
  protected _disconnect(code?: number): void;
169
169
  private _onOpen;
@@ -173,6 +173,7 @@ export default class Signaling extends BaseSignaling {
173
173
  protected _handleCachedMessages(): void;
174
174
  private _throwError;
175
175
  private _onError;
176
+ private _serializeErrorEvent;
176
177
  protected _onClose(event: CloseEvent): void;
177
178
  protected _closeSocket(error?: Error | null): void;
178
179
  protected _reconnect(): void;
@@ -50,6 +50,7 @@ declare enum SignalingNotification {
50
50
  ASR_STARTED = "asr-started",
51
51
  ASR_STOPPED = "asr-stopped",
52
52
  DECORATIVE_PARTICIPANT_ID_CHANGED = "decorative-participant-id-changed",
53
- VIDEO_SUSPEND_SUGGEST = "video-suspend-suggest"
53
+ VIDEO_SUSPEND_SUGGEST = "video-suspend-suggest",
54
+ HOLD = "hold"
54
55
  }
55
56
  export default SignalingNotification;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.8.11-dev.882b025a.0",
3
+ "version": "2.8.11-dev.89ba1e7f.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",
package/static/Debug.d.ts CHANGED
@@ -8,10 +8,10 @@ export declare enum DebugMessageType {
8
8
  ERROR = "ERROR"
9
9
  }
10
10
  declare namespace Debug {
11
- let debug: Function;
12
- let log: Function;
13
- let warn: Function;
14
- let error: Function;
11
+ function debug(...args: any[]): void;
12
+ function log(...args: any[]): void;
13
+ function warn(...args: any[]): void;
14
+ function error(...args: any[]): void;
15
15
  function enabled(): boolean;
16
16
  function toggle(enable: boolean): void;
17
17
  function send(type: DebugMessageType, ...args: any[]): void;