@vkontakte/calls-sdk 2.8.11-dev.229c3704.0 → 2.8.11-dev.323eff83.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
@@ -2,7 +2,7 @@
2
2
  * CallsSDK
3
3
  */
4
4
  import type { IEffect, VideoEffects } from '@vkontakte/calls-video-effects';
5
- import type { EffectVoiceChange } from '@vkontakte/calls-audio-effects';
5
+ import type { EffectVoiceChange, VadControllerOptions, VadLib } 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';
@@ -209,6 +209,13 @@ export declare function setVideoEffects(effects: VideoEffects): void;
209
209
  * @param effects Экземпляр класса `EffectVoiceChange` из `@vkontakte/calls-audio-effects`
210
210
  */
211
211
  export declare function setAudioEffects(effects: EffectVoiceChange): void;
212
+ /**
213
+ * Устанавливает поддержку VAD
214
+ *
215
+ * @param vad принимает VadController из `@vkontakte/calls-audio-effects`
216
+ * @param options принимает VadControllerOptions из `@vkontakte/calls-audio-effects`
217
+ */
218
+ export declare function setVad(vad: VadLib, options?: VadControllerOptions): void;
212
219
  /**
213
220
  * Устанавливает библиотеку вимоджи
214
221
  *
@@ -751,6 +758,12 @@ export declare function stopUrlSharing(): Promise<void>;
751
758
  export declare function sendTestCommand(name: string, params?: any): void;
752
759
  export declare function startAnalyzingAudio(expectAudio: boolean, expectedActiveTracks?: number | null, expectedTrackFrequencies?: number[] | null): void;
753
760
  export declare function stopAnalyzingAudio(): void;
761
+ /**
762
+ * Возвращает текущее время, скорректированное на смещение относительно серверного времени.
763
+ * Доступно после установки соединения (начало/присоединение к звонку).
764
+ * Если активного звонка нет — возвращает Date.now().
765
+ */
766
+ export declare function getSyncedTime(): number;
754
767
  /**
755
768
  * Версия SDK
756
769
  */
@@ -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;