@vkontakte/calls-sdk 2.8.11-dev.3ca8f2a1.0 → 2.8.11-dev.3de63af6.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 +41 -1
- package/abstract/BaseApi.d.ts +1 -1
- package/abstract/BaseSignaling.d.ts +1 -1
- package/calls-sdk.cjs.js +11 -11
- package/calls-sdk.esm.js +7200 -6991
- package/classes/AudioFix.d.ts +5 -1
- package/classes/AudioOutput.d.ts +5 -1
- package/classes/Conversation.d.ts +6 -0
- package/classes/DebugInfo.d.ts +3 -0
- package/classes/MediaSource.d.ts +5 -1
- package/classes/ParticipantIdRegistry.d.ts +3 -0
- package/classes/ProducerCommandSerializationService.d.ts +3 -0
- package/classes/SignalingActor.d.ts +3 -1
- package/classes/SpeakerDetector.d.ts +2 -1
- package/classes/SpecListener.d.ts +5 -1
- package/classes/StatsLogger.d.ts +29 -0
- package/classes/VideoEffectsFpsLimiter.d.ts +3 -0
- package/classes/asr/AsrReceiver.d.ts +3 -1
- package/classes/codec/LibVPxDecoder.d.ts +3 -0
- package/classes/codec/LibVPxEncoder.d.ts +3 -1
- package/classes/codec/WebCodecsDecoder.d.ts +3 -0
- package/classes/codec/WebCodecsEncoder.d.ts +3 -1
- package/classes/codec/WorkerBase.d.ts +5 -0
- package/classes/screenshare/BaseStreamBuilder.d.ts +4 -1
- package/classes/screenshare/CanvasRenderer.d.ts +3 -1
- package/classes/screenshare/ScreenCaptureReceiver.d.ts +7 -1
- package/classes/screenshare/ScreenCaptureSender.d.ts +5 -1
- package/classes/screenshare/ScreenCongestionControl.d.ts +3 -1
- package/classes/screenshare/StreamBuilder.d.ts +5 -1
- package/classes/screenshare/TrackGeneratorRenderer.d.ts +3 -1
- package/classes/screenshare/WebmBuilder.d.ts +3 -1
- package/classes/stat/CodecStatsAggregator.d.ts +7 -7
- package/classes/stat/ConversationStats.d.ts +21 -0
- package/classes/stat/StatAggregator.d.ts +6 -6
- package/classes/stat/StatFirstMediaReceived.d.ts +4 -4
- package/classes/stat/StatPings.d.ts +9 -9
- package/classes/stat/StatScreenShareFirstFrame.d.ts +3 -1
- package/classes/stat/StatSignalingCommands.d.ts +8 -8
- package/classes/transport/BaseTransport.d.ts +1 -1
- package/classes/transport/DirectStatReporter.d.ts +3 -1
- package/classes/transport/DirectTransport.d.ts +9 -1
- package/classes/transport/PerfStatReporter.d.ts +5 -1
- package/classes/transport/ServerTransport.d.ts +10 -2
- package/classes/transport/Transport.d.ts +11 -14
- package/default/Signaling.d.ts +12 -1
- package/enums/TransportState.d.ts +10 -0
- package/enums/TransportTopology.d.ts +5 -0
- package/package.json +1 -1
- package/static/Debug.d.ts +27 -8
- package/static/External.d.ts +3 -0
- package/static/Params.d.ts +6 -0
- package/static/Utils.d.ts +3 -2
- package/static/WebRTCUtils.d.ts +6 -4
- package/types/Conversation.d.ts +1 -1
- package/types/PerfStatReporter.d.ts +2 -1
- package/types/SignalingMessage.d.ts +4 -1
- package/types/Statistics.d.ts +1 -1
- package/utils/DebugStorage.d.ts +100 -1
- package/classes/Logger.d.ts +0 -36
- package/classes/stat/EventMetricsService.d.ts +0 -9
- package/static/ConversationDebugLogger.d.ts +0 -13
package/CallsSDK.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { AddParticipantParams } from './abstract/BaseSignaling';
|
|
|
9
9
|
import HangupReason, { HangupReasonData, CustomError } from './classes/HangupReason';
|
|
10
10
|
import { MediaTrackKind } from './classes/MediaSource';
|
|
11
11
|
import { AudienceModeHandsResponse } from './types/AudienceMode';
|
|
12
|
-
import
|
|
12
|
+
import TransportTopology from './enums/TransportTopology';
|
|
13
13
|
import Api from './default/Api';
|
|
14
14
|
import Signaling from './default/Signaling';
|
|
15
15
|
import CallDirection from './enums/CallDirection';
|
|
@@ -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
|
+
* Возвращает логи конкретного звонка вместе с глобальным контекстом SDK.
|
|
659
|
+
*/
|
|
660
|
+
get: typeof DebugStorage.get;
|
|
661
|
+
/**
|
|
662
|
+
* Возвращает логи конкретного звонка вместе с глобальным контекстом SDK JSON-строкой.
|
|
663
|
+
*/
|
|
664
|
+
getJson: typeof DebugStorage.getJson;
|
|
665
|
+
/**
|
|
666
|
+
* Скачивает логи конкретного звонка вместе с глобальным контекстом SDK 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
|
|
@@ -751,6 +785,12 @@ export declare function stopUrlSharing(): Promise<void>;
|
|
|
751
785
|
export declare function sendTestCommand(name: string, params?: any): void;
|
|
752
786
|
export declare function startAnalyzingAudio(expectAudio: boolean, expectedActiveTracks?: number | null, expectedTrackFrequencies?: number[] | null): void;
|
|
753
787
|
export declare function stopAnalyzingAudio(): void;
|
|
788
|
+
/**
|
|
789
|
+
* Возвращает текущее время, скорректированное на смещение относительно серверного времени.
|
|
790
|
+
* Доступно после установки соединения (начало/присоединение к звонку).
|
|
791
|
+
* Если активного звонка нет — возвращает Date.now().
|
|
792
|
+
*/
|
|
793
|
+
export declare function getSyncedTime(): number;
|
|
754
794
|
/**
|
|
755
795
|
* Версия SDK
|
|
756
796
|
*/
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -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;
|
|
@@ -3,7 +3,7 @@ import { ParticipantIdRegistry } from '../classes/ParticipantIdRegistry';
|
|
|
3
3
|
import { StreamDescriptionString } from '../types/ParticipantStreamDescription';
|
|
4
4
|
import { PerfStatReport } from '../types/PerfStatReporter';
|
|
5
5
|
import { NetworkStatReport } from '../types/NetworkStatReport';
|
|
6
|
-
import
|
|
6
|
+
import TransportTopology from '../enums/TransportTopology';
|
|
7
7
|
import ConversationFeature from '../enums/ConversationFeature';
|
|
8
8
|
import ConversationOption from '../enums/ConversationOption';
|
|
9
9
|
import MediaOption from '../enums/MediaOption';
|