@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.
package/CallsSDK.d.ts CHANGED
@@ -6,7 +6,6 @@ import type { EffectVoiceChange } from '@vkontakte/calls-audio-effects';
6
6
  import type * as Vmoji from '@vkontakte/calls-vmoji';
7
7
  import BaseLogger from './abstract/BaseLogger';
8
8
  import { AddParticipantParams } from './abstract/BaseSignaling';
9
- import Conversation from './classes/Conversation';
10
9
  import HangupReason, { HangupReasonData, CustomError } from './classes/HangupReason';
11
10
  import { MediaTrackKind } from './classes/MediaSource';
12
11
  import { AudienceModeHandsResponse } from './types/AudienceMode';
@@ -394,12 +393,6 @@ export declare function changePriorities(priorities: ParticipantPriority[]): Pro
394
393
  * @param externalId Внешний ID пользователя
395
394
  */
396
395
  export declare function changeParticipantState(state: ParticipantStateData, externalId?: ExternalId): Promise<void>;
397
- /**
398
- * Ставит звонок на удержание
399
- *
400
- * @param hold - true/false
401
- */
402
- export declare function hold(hold: boolean, conversationId?: string): Promise<void>;
403
396
  /**
404
397
  * Принудительно опустить руки участников в текущем сессионном зале админа
405
398
  */
@@ -750,11 +743,16 @@ export declare function requestAsr(request: boolean): Promise<void>;
750
743
  export declare function startUrlSharing(sharedUrl: string): Promise<void>;
751
744
  export declare function stopUrlSharing(): Promise<void>;
752
745
  export declare function sendTestCommand(name: string, params?: any): void;
753
- export declare function startAnalyzingAudio(expectAudio: boolean): void;
746
+ export declare function startAnalyzingAudio(expectAudio: boolean, expectedActiveTracks?: number | null, expectedTrackFrequencies?: number[] | null): void;
754
747
  export declare function stopAnalyzingAudio(): void;
755
748
  export declare function switchCall(conversationId: string): Promise<void>;
756
- export declare function getCalls(): Map<string, Conversation>;
757
749
  export declare function getActiveCallId(): string | null;
750
+ /**
751
+ * Возвращает текущее время, скорректированное на смещение относительно серверного времени.
752
+ * Доступно после установки соединения (начало/присоединение к звонку).
753
+ * Если активного звонка нет — возвращает Date.now().
754
+ */
755
+ export declare function getSyncedTime(): number;
758
756
  /**
759
757
  * Версия SDK
760
758
  */
@@ -7,7 +7,7 @@ import { ExternalId, ExternalParticipantId, ExternalUserId } from '../types/Exte
7
7
  import { CompositeUserId, OkUserId, ParticipantId } from '../types/Participant';
8
8
  export type ClientStats = {
9
9
  vcid: ConversationData['id'] | null;
10
- [k: string]: string | number | null;
10
+ [k: string]: string | number | boolean | null;
11
11
  };
12
12
  export type ClientEvent = {
13
13
  timestamp: number;