@vkontakte/calls-sdk 2.8.11-dev.48925708.0 → 2.8.11-dev.4ddae26a.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 +36 -8
- package/calls-sdk.cjs.js +11 -11
- package/calls-sdk.esm.js +3922 -3929
- package/classes/Conversation.d.ts +3 -3
- package/package.json +1 -1
- package/static/Params.d.ts +0 -8
- package/types/FastStart.d.ts +1 -0
- package/types/ParticipantLayout.d.ts +0 -33
- package/utils/DebugStorage.d.ts +101 -1
- package/classes/DisplayLayoutRequester.d.ts +0 -36
- package/static/ConversationDebugLogger.d.ts +0 -13
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';
|
|
@@ -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, {
|
|
53
|
+
import ParticipantLayout, { 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
|
*/
|
|
@@ -410,12 +412,6 @@ export declare function putHandsDown(): Promise<void>;
|
|
|
410
412
|
* @param layout Список приоритетов
|
|
411
413
|
*/
|
|
412
414
|
export declare function updateDisplayLayout(layout: ParticipantLayout[]): Promise<void>;
|
|
413
|
-
/**
|
|
414
|
-
* Запрашивает стримы, которые клиент хочет получать для отображения.
|
|
415
|
-
*
|
|
416
|
-
* @param requests Полный список стримов, которые должны приходить на клиент
|
|
417
|
-
*/
|
|
418
|
-
export declare function requestDisplayLayout(requests: DisplayLayoutRequest[]): Promise<void>;
|
|
419
415
|
/**
|
|
420
416
|
* Выдать или забрать роли в звонке пользователю
|
|
421
417
|
*
|
|
@@ -647,6 +643,38 @@ export declare function debug(enabled: boolean): void;
|
|
|
647
643
|
* @param args
|
|
648
644
|
*/
|
|
649
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
|
+
};
|
|
650
678
|
/**
|
|
651
679
|
* Отправляет клиенские логи по conversationId на сервер OK
|
|
652
680
|
* @example можно посмотреть в examples/anonym/index.html
|
|
@@ -767,5 +795,5 @@ export declare function getSyncedTime(): number;
|
|
|
767
795
|
* Версия SDK
|
|
768
796
|
*/
|
|
769
797
|
export declare function version(): string;
|
|
770
|
-
export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, CustomError, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId,
|
|
798
|
+
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, };
|
|
771
799
|
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, };
|