@vkontakte/calls-sdk 2.8.11-dev.7ac19827.0 → 2.8.11-dev.aeebd796.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
@@ -30,6 +30,7 @@ import SignalingNotification from './enums/SignalingNotification';
30
30
  import UserRole from './enums/UserRole';
31
31
  import UserType from './enums/UserType';
32
32
  import { DebugMessageType } from './static/Debug';
33
+ import * as DebugStorage from './utils/DebugStorage';
33
34
  import { ParticipantStatus } from './static/External';
34
35
  import { JSONArray, JSONObject, JSONType } from './static/Json';
35
36
  import { ParamsObject } from './static/Params';
@@ -66,6 +67,7 @@ import { VmojiError } from './types/Vmoji';
66
67
  import { VolumeDetector } from './classes/VolumeDetector';
67
68
  import { FastStartHandler, FastStartParams } from './types/FastStart';
68
69
  import { FastJoinHandler, FastJoinParams, FastJoinResponse } from './types/FastJoin';
70
+ export type { CurrentLogItem, DebugLogGetParams, DebugLogSessionInfo, DebugLogStorageStats } from './utils/DebugStorage';
69
71
  /**
70
72
  * Информация о текущем браузере
71
73
  */
@@ -641,6 +643,38 @@ export declare function debug(enabled: boolean): void;
641
643
  * @param args
642
644
  */
643
645
  export declare function debugMessage(type: DebugMessageType, ...args: any[]): void;
646
+ /**
647
+ * Локальные отладочные логи, сохраненные в браузере.
648
+ *
649
+ * Работает при включенном параметре `debugLog: true`.
650
+ * Логи хранятся в IndexedDB: последние 10 звонков, максимум 25 МБ суммарно.
651
+ */
652
+ export declare const debugLogs: {
653
+ /**
654
+ * Возвращает список сохраненных локальных сессий логирования.
655
+ */
656
+ list: typeof DebugStorage.list;
657
+ /**
658
+ * Возвращает логи конкретного звонка.
659
+ */
660
+ get: typeof DebugStorage.get;
661
+ /**
662
+ * Возвращает логи конкретного звонка JSON-строкой.
663
+ */
664
+ getJson: typeof DebugStorage.getJson;
665
+ /**
666
+ * Скачивает логи конкретного звонка JSON-файлом.
667
+ */
668
+ download: typeof DebugStorage.download;
669
+ /**
670
+ * Очищает логи конкретного звонка или все локальные логи SDK.
671
+ */
672
+ clear: typeof DebugStorage.clear;
673
+ /**
674
+ * Возвращает статистику локального хранилища логов.
675
+ */
676
+ stats: typeof DebugStorage.stats;
677
+ };
644
678
  /**
645
679
  * Отправляет клиенские логи по conversationId на сервер OK
646
680
  * @example можно посмотреть в examples/anonym/index.html
@@ -749,7 +783,7 @@ export declare function requestAsr(request: boolean): Promise<void>;
749
783
  export declare function startUrlSharing(sharedUrl: string): Promise<void>;
750
784
  export declare function stopUrlSharing(): Promise<void>;
751
785
  export declare function sendTestCommand(name: string, params?: any): void;
752
- export declare function startAnalyzingAudio(expectAudio: boolean): void;
786
+ export declare function startAnalyzingAudio(expectAudio: boolean, expectedActiveTracks?: number | null, expectedTrackFrequencies?: number[] | null): void;
753
787
  export declare function stopAnalyzingAudio(): void;
754
788
  /**
755
789
  * Версия SDK
@@ -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;