@vkontakte/calls-sdk 2.8.11-dev.323eff83.0 → 2.8.11-dev.3630109f.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, VadControllerOptions, VadLib } from '@vkontakte/calls-audio-effects';
5
+ 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';
@@ -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';
@@ -49,7 +50,7 @@ import { IAddMovieParams, IMovieMetaData, IMoviePreview, IOnRemoteMovieData, ISh
49
50
  import MuteStates, { IMuteParticipantInternalParams, IMuteParticipantParams } from './types/MuteStates';
50
51
  import { IAPIBaseUrl, IApiEnv } from './types/Params';
51
52
  import { CompositeUserId, IGetParticipantsParameters, OkUserId, ParticipantId, ParticipantListMarker, ParticipantListMarkers, ParticipantListType, ParticipantsStateList, ParticipantStateMapped, ParticipantStateData, ParticipantStateDataKey, ParticipantStateDataValue } from './types/Participant';
52
- import ParticipantLayout, { Layout, RequestKeyFrame, StopStream } from './types/ParticipantLayout';
53
+ import ParticipantLayout, { DisplayLayoutRequest, Layout, RequestKeyFrame, StopStream } from './types/ParticipantLayout';
53
54
  import { ParticipantListChunkParameters } from './types/ParticipantListChunk';
54
55
  import ParticipantPriority from './types/ParticipantPriority';
55
56
  import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
@@ -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
  */
@@ -209,13 +211,6 @@ export declare function setVideoEffects(effects: VideoEffects): void;
209
211
  * @param effects Экземпляр класса `EffectVoiceChange` из `@vkontakte/calls-audio-effects`
210
212
  */
211
213
  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;
219
214
  /**
220
215
  * Устанавливает библиотеку вимоджи
221
216
  *
@@ -417,6 +412,12 @@ export declare function putHandsDown(): Promise<void>;
417
412
  * @param layout Список приоритетов
418
413
  */
419
414
  export declare function updateDisplayLayout(layout: ParticipantLayout[]): Promise<void>;
415
+ /**
416
+ * Запрашивает стримы, которые клиент хочет получать для отображения.
417
+ *
418
+ * @param requests Полный список стримов, которые должны приходить на клиент
419
+ */
420
+ export declare function requestDisplayLayout(requests: DisplayLayoutRequest[]): Promise<void>;
420
421
  /**
421
422
  * Выдать или забрать роли в звонке пользователю
422
423
  *
@@ -648,6 +649,38 @@ export declare function debug(enabled: boolean): void;
648
649
  * @param args
649
650
  */
650
651
  export declare function debugMessage(type: DebugMessageType, ...args: any[]): void;
652
+ /**
653
+ * Локальные отладочные логи, сохраненные в браузере.
654
+ *
655
+ * Работает при включенном параметре `debugLog: true`.
656
+ * Логи хранятся в IndexedDB: последние 10 звонков, максимум 25 МБ суммарно.
657
+ */
658
+ export declare const debugLogs: {
659
+ /**
660
+ * Возвращает список сохраненных локальных сессий логирования.
661
+ */
662
+ list: typeof DebugStorage.list;
663
+ /**
664
+ * Возвращает логи конкретного звонка.
665
+ */
666
+ get: typeof DebugStorage.get;
667
+ /**
668
+ * Возвращает логи конкретного звонка JSON-строкой.
669
+ */
670
+ getJson: typeof DebugStorage.getJson;
671
+ /**
672
+ * Скачивает логи конкретного звонка JSON-файлом.
673
+ */
674
+ download: typeof DebugStorage.download;
675
+ /**
676
+ * Очищает логи конкретного звонка или все локальные логи SDK.
677
+ */
678
+ clear: typeof DebugStorage.clear;
679
+ /**
680
+ * Возвращает статистику локального хранилища логов.
681
+ */
682
+ stats: typeof DebugStorage.stats;
683
+ };
651
684
  /**
652
685
  * Отправляет клиенские логи по conversationId на сервер OK
653
686
  * @example можно посмотреть в examples/anonym/index.html
@@ -768,5 +801,5 @@ export declare function getSyncedTime(): number;
768
801
  * Версия SDK
769
802
  */
770
803
  export declare function version(): string;
771
- export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, CustomError, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, GetParticipantsSignalingResponse, GetRoomsSignalingResponse, HangupReasonData, IApiEnv, IAPIBaseUrl, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantId, ParticipantLayout, ParticipantListMarkers, ParticipantListType, ParticipantPriority, ParticipantsStateList, ParticipantStateData, ParticipantStateDataKey, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, ParticipantListMarker, RequestKeyFrame, Rooms, IGetParticipantsParameters, ScreenCaptureSettings, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IMovieMetaData, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IRoomId, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, IPublishStreamData, VmojiError, FastStartHandler, FastStartParams, FastJoinHandler, FastJoinParams, FastJoinResponse, };
804
+ export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, CustomError, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, DisplayLayoutRequest, GetParticipantsSignalingResponse, GetRoomsSignalingResponse, HangupReasonData, IApiEnv, IAPIBaseUrl, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantId, ParticipantLayout, ParticipantListMarkers, ParticipantListType, ParticipantPriority, ParticipantsStateList, ParticipantStateData, ParticipantStateDataKey, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, ParticipantListMarker, RequestKeyFrame, Rooms, IGetParticipantsParameters, ScreenCaptureSettings, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IMovieMetaData, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IRoomId, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, IPublishStreamData, VmojiError, FastStartHandler, FastStartParams, FastJoinHandler, FastJoinParams, FastJoinResponse, };
772
805
  export { Api, AuthData, BaseLogger, CallDirection, CallType, ChatRoomEventType, ConversationOption, DebugMessageType, ExternalIdType, FacingMode, FatalError, HangupReason, HangupType, MediaOption, MediaTrackKind, MediaType, MuteState, ParticipantState, ParticipantStateDataValue, ParticipantStatus, RecordRole, Signaling, SignalingCommandType, SignalingConnectionType, SignalingNotification, UserRole, UserType, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, ApiExternal, VolumeDetector, };