@vkontakte/calls-sdk 2.8.11-dev.323eff83.0 → 2.8.11-dev.346fd1fc.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 +53 -34
- package/abstract/BaseApi.d.ts +2 -3
- package/abstract/BaseSignaling.d.ts +5 -7
- package/calls-sdk.cjs.js +11 -11
- package/calls-sdk.esm.js +6042 -5334
- package/classes/AudioFix.d.ts +5 -1
- package/classes/AudioOutput.d.ts +5 -1
- package/classes/CallRegistry.d.ts +26 -0
- package/classes/Conversation.d.ts +28 -8
- package/classes/ConversationResponseValidator.d.ts +3 -0
- package/classes/DebugInfo.d.ts +3 -0
- package/classes/DisplayLayoutRequester.d.ts +39 -0
- package/classes/ExternalIdCache.d.ts +19 -0
- package/classes/MediaSource.d.ts +12 -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 +10 -1
- package/classes/{Logger.d.ts → StatsLogger.d.ts} +3 -10
- 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 +6 -2
- 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 -17
- package/default/Api.d.ts +3 -11
- package/default/Signaling.d.ts +39 -45
- package/default/SignalingTransport.d.ts +68 -0
- package/enums/HangupType.d.ts +2 -1
- package/enums/SignalingNotification.d.ts +2 -1
- package/enums/TransportState.d.ts +10 -0
- package/enums/TransportTopology.d.ts +5 -0
- package/package.json +2 -2
- package/static/Capabilities.d.ts +5 -0
- package/static/Debug.d.ts +27 -8
- package/static/External.d.ts +146 -71
- package/static/Params.d.ts +99 -83
- package/static/Utils.d.ts +3 -2
- package/static/WebRTCUtils.d.ts +6 -4
- package/types/Capabilities.d.ts +24 -0
- package/types/Conversation.d.ts +1 -1
- package/types/FastStart.d.ts +1 -0
- package/types/Participant.d.ts +1 -0
- package/types/ParticipantLayout.d.ts +33 -0
- package/types/SignalingMessage.d.ts +7 -1
- package/types/Statistics.d.ts +1 -1
- package/types/WebTransport.d.ts +4 -0
- package/utils/DebugStorage.d.ts +100 -1
- package/classes/stat/EventMetricsService.d.ts +0 -9
- package/static/ConversationDebugLogger.d.ts +0 -13
package/CallsSDK.d.ts
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* CallsSDK
|
|
3
3
|
*/
|
|
4
4
|
import type { IEffect, VideoEffects } from '@vkontakte/calls-video-effects';
|
|
5
|
-
import type { EffectVoiceChange
|
|
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';
|
|
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';
|
|
@@ -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
|
*
|
|
@@ -272,11 +267,11 @@ export declare function authorize(authToken?: string, apiBaseUrl?: IAPIBaseUrl):
|
|
|
272
267
|
*
|
|
273
268
|
* @param mediaOptions Нужно ли включать камеру и микрофон
|
|
274
269
|
*/
|
|
275
|
-
export declare function acceptCall(mediaOptions?: MediaOption[]): Promise<ConversationData>;
|
|
270
|
+
export declare function acceptCall(mediaOptions?: MediaOption[], conversationId?: string): Promise<ConversationData>;
|
|
276
271
|
/**
|
|
277
272
|
* Отклонить входящий звонок
|
|
278
273
|
*/
|
|
279
|
-
export declare function declineCall(): Promise<void>;
|
|
274
|
+
export declare function declineCall(conversationId?: string): Promise<void>;
|
|
280
275
|
/**
|
|
281
276
|
* Присоединиться к активному звонку
|
|
282
277
|
*
|
|
@@ -299,7 +294,7 @@ export declare function joinCallByLink(joinLink: string, mediaOptions?: MediaOpt
|
|
|
299
294
|
/**
|
|
300
295
|
* Завершить текущий разговор
|
|
301
296
|
*/
|
|
302
|
-
export declare function hangup(): Promise<void>;
|
|
297
|
+
export declare function hangup(conversationId?: string): Promise<void>;
|
|
303
298
|
/**
|
|
304
299
|
* Добавить собеседника в звонок
|
|
305
300
|
*
|
|
@@ -347,7 +342,7 @@ export declare function changeDevice(kind: MediaDeviceKind, deviceId: string): P
|
|
|
347
342
|
* state Включить или выключить захват экрана
|
|
348
343
|
* settings Параметры захваты экрана
|
|
349
344
|
*/
|
|
350
|
-
export declare function captureScreen(stateOrSettings: boolean | ScreenCaptureSettings): Promise<void>;
|
|
345
|
+
export declare function captureScreen(stateOrSettings: boolean | ScreenCaptureSettings, conversationId?: string): Promise<void>;
|
|
351
346
|
/**
|
|
352
347
|
* Включить/выключить передачу точек вимоджи
|
|
353
348
|
*
|
|
@@ -368,13 +363,13 @@ export declare function setVideoStream(stream: MediaStream, isScreen?: boolean):
|
|
|
368
363
|
*
|
|
369
364
|
* @param enabled
|
|
370
365
|
*/
|
|
371
|
-
export declare function toggleLocalVideo(enabled: boolean): Promise<void>;
|
|
366
|
+
export declare function toggleLocalVideo(enabled: boolean, conversationId?: string): Promise<void>;
|
|
372
367
|
/**
|
|
373
368
|
* Включить или выключить свой микрофон
|
|
374
369
|
*
|
|
375
370
|
* @param enabled
|
|
376
371
|
*/
|
|
377
|
-
export declare function toggleLocalAudio(enabled: boolean): Promise<void>;
|
|
372
|
+
export declare function toggleLocalAudio(enabled: boolean, conversationId?: string): Promise<void>;
|
|
378
373
|
/**
|
|
379
374
|
* Изменяет размеры локального видео
|
|
380
375
|
*
|
|
@@ -400,12 +395,6 @@ export declare function changePriorities(priorities: ParticipantPriority[]): Pro
|
|
|
400
395
|
* @param externalId Внешний ID пользователя
|
|
401
396
|
*/
|
|
402
397
|
export declare function changeParticipantState(state: ParticipantStateData, externalId?: ExternalId): Promise<void>;
|
|
403
|
-
/**
|
|
404
|
-
* Ставит звонок на удержание
|
|
405
|
-
*
|
|
406
|
-
* @param hold - true/false
|
|
407
|
-
*/
|
|
408
|
-
export declare function hold(hold: boolean): Promise<void>;
|
|
409
398
|
/**
|
|
410
399
|
* Принудительно опустить руки участников в текущем сессионном зале админа
|
|
411
400
|
*/
|
|
@@ -417,6 +406,12 @@ export declare function putHandsDown(): Promise<void>;
|
|
|
417
406
|
* @param layout Список приоритетов
|
|
418
407
|
*/
|
|
419
408
|
export declare function updateDisplayLayout(layout: ParticipantLayout[]): Promise<void>;
|
|
409
|
+
/**
|
|
410
|
+
* Запрашивает стримы, которые клиент хочет получать для отображения.
|
|
411
|
+
*
|
|
412
|
+
* @param requests Полный список стримов, которые должны приходить на клиент
|
|
413
|
+
*/
|
|
414
|
+
export declare function requestDisplayLayout(requests: DisplayLayoutRequest[]): Promise<void>;
|
|
420
415
|
/**
|
|
421
416
|
* Выдать или забрать роли в звонке пользователю
|
|
422
417
|
*
|
|
@@ -568,16 +563,6 @@ export declare function stopStream(roomId?: number | null, remove?: boolean): Pr
|
|
|
568
563
|
* @param roomId
|
|
569
564
|
*/
|
|
570
565
|
export declare function publishStream(roomId?: number | null): Promise<undefined>;
|
|
571
|
-
/**
|
|
572
|
-
* Устанавливает роль участника в запись звонка
|
|
573
|
-
* Если хотя бы у одного участника звонка выставлена роль, то в записи звонка будут
|
|
574
|
-
* видны только те участники, у кого есть роль.
|
|
575
|
-
* @param king участник показывается крупно в записи звонка (только один участник имеет такую роль)
|
|
576
|
-
* @param pawns участник показывается в записи звонка
|
|
577
|
-
* @param hideParticipantCount скрыть/показать количество невидимых участников
|
|
578
|
-
* @param roomId комната
|
|
579
|
-
*/
|
|
580
|
-
export declare function recordSetConf(king?: ExternalId, pawns?: ExternalId[], hideParticipantCount?: boolean, roomId?: number | null): Promise<void>;
|
|
581
566
|
/**
|
|
582
567
|
* Получить информацию о трансляции звонка
|
|
583
568
|
*/
|
|
@@ -648,6 +633,38 @@ export declare function debug(enabled: boolean): void;
|
|
|
648
633
|
* @param args
|
|
649
634
|
*/
|
|
650
635
|
export declare function debugMessage(type: DebugMessageType, ...args: any[]): void;
|
|
636
|
+
/**
|
|
637
|
+
* Локальные отладочные логи, сохраненные в браузере.
|
|
638
|
+
*
|
|
639
|
+
* Работает при включенном параметре `debugLog: true`.
|
|
640
|
+
* Логи хранятся в IndexedDB: последние 10 звонков, максимум 25 МБ суммарно.
|
|
641
|
+
*/
|
|
642
|
+
export declare const debugLogs: {
|
|
643
|
+
/**
|
|
644
|
+
* Возвращает список сохраненных локальных сессий логирования.
|
|
645
|
+
*/
|
|
646
|
+
list: typeof DebugStorage.list;
|
|
647
|
+
/**
|
|
648
|
+
* Возвращает логи конкретного звонка вместе с глобальным контекстом SDK.
|
|
649
|
+
*/
|
|
650
|
+
get: typeof DebugStorage.get;
|
|
651
|
+
/**
|
|
652
|
+
* Возвращает логи конкретного звонка вместе с глобальным контекстом SDK JSON-строкой.
|
|
653
|
+
*/
|
|
654
|
+
getJson: typeof DebugStorage.getJson;
|
|
655
|
+
/**
|
|
656
|
+
* Скачивает логи конкретного звонка вместе с глобальным контекстом SDK JSON-файлом.
|
|
657
|
+
*/
|
|
658
|
+
download: typeof DebugStorage.download;
|
|
659
|
+
/**
|
|
660
|
+
* Очищает логи конкретного звонка или все локальные логи SDK.
|
|
661
|
+
*/
|
|
662
|
+
clear: typeof DebugStorage.clear;
|
|
663
|
+
/**
|
|
664
|
+
* Возвращает статистику локального хранилища логов.
|
|
665
|
+
*/
|
|
666
|
+
stats: typeof DebugStorage.stats;
|
|
667
|
+
};
|
|
651
668
|
/**
|
|
652
669
|
* Отправляет клиенские логи по conversationId на сервер OK
|
|
653
670
|
* @example можно посмотреть в examples/anonym/index.html
|
|
@@ -734,7 +751,7 @@ export declare function userFeedbackStats(userResponse: number, reason?: string,
|
|
|
734
751
|
* @param immediatelty Отправить ли событие немедленно
|
|
735
752
|
*/
|
|
736
753
|
export declare function logClientEvent(eventType: string, eventData?: Record<string, string | number | boolean>, immediately?: boolean): void;
|
|
737
|
-
export declare function enableFeatureForRoles(feature: ConversationFeature, roles: UserRole[]): Promise<void>;
|
|
754
|
+
export declare function enableFeatureForRoles(feature: ConversationFeature, roles: UserRole[], conversationId?: string): Promise<void>;
|
|
738
755
|
/**
|
|
739
756
|
* Удаляет записи истории звонков
|
|
740
757
|
*
|
|
@@ -758,6 +775,8 @@ export declare function stopUrlSharing(): Promise<void>;
|
|
|
758
775
|
export declare function sendTestCommand(name: string, params?: any): void;
|
|
759
776
|
export declare function startAnalyzingAudio(expectAudio: boolean, expectedActiveTracks?: number | null, expectedTrackFrequencies?: number[] | null): void;
|
|
760
777
|
export declare function stopAnalyzingAudio(): void;
|
|
778
|
+
export declare function switchCall(conversationId: string): Promise<void>;
|
|
779
|
+
export declare function getActiveCallId(): string | null;
|
|
761
780
|
/**
|
|
762
781
|
* Возвращает текущее время, скорректированное на смещение относительно серверного времени.
|
|
763
782
|
* Доступно после установки соединения (начало/присоединение к звонку).
|
|
@@ -768,5 +787,5 @@ export declare function getSyncedTime(): number;
|
|
|
768
787
|
* Версия SDK
|
|
769
788
|
*/
|
|
770
789
|
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, };
|
|
790
|
+
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
791
|
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, };
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export default abstract class BaseApi {
|
|
|
44
44
|
audioOnly?: boolean;
|
|
45
45
|
waitForAdmin?: boolean;
|
|
46
46
|
closedConversation?: boolean;
|
|
47
|
-
}, speakerIds?:
|
|
47
|
+
}, speakerIds?: ExternalId[]): Promise<ConversationResponse>;
|
|
48
48
|
abstract startConversation(conversationId: string, ids?: OkUserId[], type?: CallType, isVideo?: boolean, payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, createConversationParameters?: {
|
|
49
49
|
onlyAdminCanShareMovie?: boolean;
|
|
50
50
|
}, externalIds?: ExternalId[]): Promise<ConversationResponse>;
|
|
@@ -73,10 +73,9 @@ export default abstract class BaseApi {
|
|
|
73
73
|
*/
|
|
74
74
|
logClientEvents(items: ClientEvent[]): void;
|
|
75
75
|
abstract uploadDebugLogs(conversationId: string, startTime: number, endTime: number, log: string): Promise<void>;
|
|
76
|
-
abstract getOkIdsByExternalIds(externalIds: ExternalId[]): Promise<OkUserId[]>;
|
|
77
|
-
abstract getParticipantIdsByExternalIds(externalIds: ExternalId[]): Promise<Map<ExternalId, ParticipantId>>;
|
|
78
76
|
abstract getExternalIdsByOkIds(uids: OkUserId[]): Promise<ExternalParticipantId[]>;
|
|
79
77
|
getCachedOkIdByExternalId(externalId: ExternalId): ParticipantId | null;
|
|
78
|
+
getCachedRawOkIdByExternalId(externalId: ExternalId): OkUserId | null;
|
|
80
79
|
cacheExternalId(compositeId: OkUserId | CompositeUserId | ParticipantId, externalId: ExternalParticipantId): void;
|
|
81
80
|
mapDecorativeId(decorativeId: OkUserId | CompositeUserId | ParticipantId, okId: OkUserId | CompositeUserId): void;
|
|
82
81
|
unmapDecorativeId(decorativeId: OkUserId | CompositeUserId | ParticipantId): void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import EventEmitter from '../classes/EventEmitter';
|
|
2
2
|
import { ParticipantIdRegistry } from '../classes/ParticipantIdRegistry';
|
|
3
|
+
import { TCapabilities } from '../types/Capabilities';
|
|
3
4
|
import { StreamDescriptionString } from '../types/ParticipantStreamDescription';
|
|
4
5
|
import { PerfStatReport } from '../types/PerfStatReporter';
|
|
5
6
|
import { NetworkStatReport } from '../types/NetworkStatReport';
|
|
6
|
-
import
|
|
7
|
+
import TransportTopology from '../enums/TransportTopology';
|
|
7
8
|
import ConversationFeature from '../enums/ConversationFeature';
|
|
8
9
|
import ConversationOption from '../enums/ConversationOption';
|
|
9
10
|
import MediaOption from '../enums/MediaOption';
|
|
@@ -21,7 +22,7 @@ import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/Partici
|
|
|
21
22
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
22
23
|
import SignalingMessage, { GetParticipantsSignalingResponse, GetRoomsSignalingResponse } from '../types/SignalingMessage';
|
|
23
24
|
import { ChangeSimulcast } from '../types/ChangeSimulcast';
|
|
24
|
-
import { IPublishStreamData,
|
|
25
|
+
import { IPublishStreamData, IStartStreamData, IStopStreamData } from '../types/Streams';
|
|
25
26
|
import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
|
|
26
27
|
/**
|
|
27
28
|
* Параметры добавления пользователя в звонок
|
|
@@ -61,14 +62,12 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
61
62
|
abstract sendCandidate(participantId: ParticipantId, candidate: RTCIceCandidate): Promise<SignalingMessage>;
|
|
62
63
|
abstract changeMediaSettings(mediaSettings: MediaSettings): Promise<SignalingMessage>;
|
|
63
64
|
abstract changeParticipantState(state: ParticipantStateData, compositeUserId?: CompositeUserId): Promise<SignalingMessage>;
|
|
64
|
-
abstract hold(hold: boolean): Promise<SignalingMessage>;
|
|
65
|
+
abstract hold(hold: boolean, capabilities?: TCapabilities): Promise<SignalingMessage>;
|
|
65
66
|
abstract putHandsDown(): Promise<SignalingMessage>;
|
|
66
67
|
abstract addParticipant(externalIds: CompositeUserId[], params?: AddParticipantParams): Promise<SignalingMessage>;
|
|
67
68
|
abstract addParticipantLegacy(participantIds: CompositeUserId[], params?: AddParticipantParams): Promise<SignalingMessage>;
|
|
68
69
|
abstract removeParticipant(participantId: CompositeUserId, ban?: boolean): Promise<SignalingMessage>;
|
|
69
|
-
abstract allocateConsumer(description: RTCSessionDescription | null, capabilities:
|
|
70
|
-
[key: string]: number | boolean | string;
|
|
71
|
-
}): Promise<SignalingMessage>;
|
|
70
|
+
abstract allocateConsumer(description: RTCSessionDescription | null, capabilities: TCapabilities): Promise<SignalingMessage>;
|
|
72
71
|
abstract acceptProducer(description: RTCSessionDescriptionInit, ssrcs: string[], sessionId: string): Promise<SignalingMessage>;
|
|
73
72
|
/**
|
|
74
73
|
* @deprecated Use updateDisplayLayout instead
|
|
@@ -92,7 +91,6 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
92
91
|
abstract startStream(data: IStartStreamData): Promise<SignalingMessage>;
|
|
93
92
|
abstract stopStream(data: IStopStreamData): Promise<SignalingMessage>;
|
|
94
93
|
abstract publishStream(data: IPublishStreamData): Promise<SignalingMessage>;
|
|
95
|
-
abstract recordSetConf(conf: IRecordConfData): Promise<SignalingMessage>;
|
|
96
94
|
abstract getRecordStatus(): Promise<SignalingMessage>;
|
|
97
95
|
abstract switchTopology(topology: TransportTopology, force?: boolean): Promise<SignalingMessage>;
|
|
98
96
|
abstract reportPerfStat(report: PerfStatReport): Promise<SignalingMessage>;
|