@vkontakte/calls-sdk 2.8.2-dev.7d16b73.0 → 2.8.2-dev.85d7f78.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 +34 -44
- package/abstract/BaseApi.d.ts +5 -6
- package/abstract/BaseSignaling.d.ts +5 -5
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/AudioOutput.d.ts +3 -8
- package/classes/Conversation.d.ts +10 -9
- package/classes/MediaSource.d.ts +2 -2
- package/classes/ParticipantIdRegistry.d.ts +0 -5
- package/classes/ProducerCommandSerializationService.d.ts +0 -2
- package/classes/codec/IEncoder.d.ts +1 -1
- package/classes/codec/LibVPxEncoder.d.ts +1 -1
- package/classes/codec/Types.d.ts +1 -1
- package/classes/codec/WebCodecsEncoder.d.ts +1 -1
- package/classes/screenshare/PacketHistory.d.ts +0 -1
- package/classes/screenshare/ScreenCaptureSender.d.ts +1 -2
- package/classes/screenshare/ScreenCongestionControl.d.ts +1 -6
- package/classes/transport/Statistics.d.ts +1 -19
- package/classes/transport/Transport.d.ts +0 -1
- package/default/Api.d.ts +6 -9
- package/default/Signaling.d.ts +8 -7
- package/enums/SignalingCommandType.d.ts +2 -4
- package/enums/SignalingNotification.d.ts +1 -2
- package/package.json +6 -3
- package/static/ApiTransport.d.ts +1 -3
- package/static/AuthData.d.ts +6 -6
- package/static/External.d.ts +1 -15
- package/static/Params.d.ts +13 -38
- package/static/Utils.d.ts +2 -2
- package/types/Conversation.d.ts +0 -1
- package/types/ExternalId.d.ts +7 -11
- package/types/MuteStates.d.ts +1 -1
- package/types/ParticipantLayout.d.ts +2 -2
- package/types/ParticipantStreamDescription.d.ts +1 -0
- package/types/Room.d.ts +0 -3
- package/types/SignalingMessage.d.ts +0 -18
- package/types/Statistics.d.ts +2 -1
- package/types/Streams.d.ts +0 -10
- package/constants/Rooms.d.ts +0 -1
- package/default/ApiExternal.d.ts +0 -11
- package/types/AudienceMode.d.ts +0 -8
- package/types/Params.d.ts +0 -1
- package/types/RequestAsr.d.ts +0 -3
package/CallsSDK.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* CallsSDK
|
|
3
3
|
*/
|
|
4
|
-
import type { IEffect, VideoEffects } from '@vkontakte/calls-video-effects';
|
|
5
4
|
import type * as Vmoji from '@vkontakte/calls-vmoji';
|
|
5
|
+
import type { IEffect, VideoEffects } from '@vkontakte/calls-video-effects';
|
|
6
6
|
import BaseApi from './abstract/BaseApi';
|
|
7
7
|
import BaseLogger from './abstract/BaseLogger';
|
|
8
8
|
import BaseSignaling, { AddParticipantParams } from './abstract/BaseSignaling';
|
|
9
9
|
import HangupReason, { HangupReasonData } from './classes/HangupReason';
|
|
10
10
|
import { MediaTrackKind } from './classes/MediaSource';
|
|
11
|
-
import {
|
|
11
|
+
import { StatResult } from './types/Statistics';
|
|
12
12
|
import { TransportTopology } from './classes/transport/Transport';
|
|
13
13
|
import Api from './default/Api';
|
|
14
14
|
import Signaling from './default/Signaling';
|
|
15
15
|
import CallDirection from './enums/CallDirection';
|
|
16
16
|
import CallType from './enums/CallType';
|
|
17
17
|
import ChatRoomEventType from './enums/ChatRoomEventType';
|
|
18
|
-
import ConversationFeature from './enums/ConversationFeature';
|
|
19
18
|
import ConversationOption from './enums/ConversationOption';
|
|
20
19
|
import FatalError from './enums/FatalError';
|
|
21
20
|
import HangupType from './enums/HangupType';
|
|
@@ -23,7 +22,6 @@ import MediaOption from './enums/MediaOption';
|
|
|
23
22
|
import MuteState from './enums/MuteState';
|
|
24
23
|
import ParticipantState from './enums/ParticipantState';
|
|
25
24
|
import RecordRole from './enums/RecordRole';
|
|
26
|
-
import RoomsEventType from './enums/RoomsEventType';
|
|
27
25
|
import SignalingCommandType from './enums/SignalingCommandType';
|
|
28
26
|
import SignalingConnectionType from './enums/SignalingConnectionType';
|
|
29
27
|
import SignalingNotification from './enums/SignalingNotification';
|
|
@@ -35,32 +33,31 @@ import { JSONArray, JSONObject, JSONType } from './static/Json';
|
|
|
35
33
|
import { ParamsObject } from './static/Params';
|
|
36
34
|
import Utils from './static/Utils';
|
|
37
35
|
import WebRTCUtils, { FacingMode } from './static/WebRTCUtils';
|
|
38
|
-
import {
|
|
39
|
-
import { ConversationData } from './types/Conversation';
|
|
40
|
-
import { IFeaturesPerRole } from './types/ConversationFeature';
|
|
36
|
+
import { IAsrStartParams, IAsrStopParams, IAsrData } from './types/Asr';
|
|
41
37
|
import ConversationParams from './types/ConversationParams';
|
|
42
38
|
import ConversationResponse from './types/ConversationResponse';
|
|
43
39
|
import { ExternalId, ExternalIdType, ExternalParticipant, ExternalParticipantId, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers, ExternalUserId } from './types/ExternalId';
|
|
44
|
-
import { IFeedbackExternal } from './types/Feedback';
|
|
45
40
|
import IceServer from './types/IceServer';
|
|
46
41
|
import MediaModifiers from './types/MediaModifiers';
|
|
47
42
|
import { IVideoDimentions, MediaSettings } from './types/MediaSettings';
|
|
48
|
-
import { IAddMovieParams, IMovieMetaData, IMoviePreview, IOnRemoteMovieData, ISharedMovieInfo, ISharedMovieState, ISharedMovieStateResponse, ISharedMovieStoppedInfo, IUpdateMovieData } from './types/MovieShare';
|
|
49
43
|
import MuteStates, { IMuteParticipantInternalParams, IMuteParticipantParams } from './types/MuteStates';
|
|
50
|
-
import {
|
|
44
|
+
import { IGetParticipantsParameters, OkUserId, ParticipantListMarker, ParticipantListMarkers, ParticipantListType, ParticipantStateMapped } from './types/Participant';
|
|
51
45
|
import ParticipantLayout, { Layout, RequestKeyFrame, StopStream } from './types/ParticipantLayout';
|
|
52
46
|
import { ParticipantListChunkParameters } from './types/ParticipantListChunk';
|
|
53
47
|
import ParticipantPriority from './types/ParticipantPriority';
|
|
54
48
|
import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
|
|
55
|
-
import {
|
|
49
|
+
import { Room, RoomsUpdate, RoomParticipantUpdate, Rooms } from './types/Room';
|
|
50
|
+
import RoomsEventType from './enums/RoomsEventType';
|
|
56
51
|
import { ScreenCaptureSettings } from './types/ScreenCaptureSettings';
|
|
57
52
|
import SignalingMessage from './types/SignalingMessage';
|
|
58
|
-
import { StatResult } from './types/Statistics';
|
|
59
|
-
import { IStartStreamData, IStopStreamData, IPublishStreamData } from './types/Streams';
|
|
60
53
|
import { WaitingHallResponse } from './types/WaitingHall';
|
|
54
|
+
import { IFeedbackExternal } from './types/Feedback';
|
|
55
|
+
import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IUpdateMovieData, IMovieMetaData } from './types/MovieShare';
|
|
56
|
+
import { IStartStreamData, IStopStreamData } from './types/Streams';
|
|
57
|
+
import ConversationFeature from './enums/ConversationFeature';
|
|
58
|
+
import { IFeaturesPerRole } from './types/ConversationFeature';
|
|
61
59
|
import { ArrayDequeue } from './utils/ArrayDequeue';
|
|
62
|
-
import {
|
|
63
|
-
import AuthData from './static/AuthData';
|
|
60
|
+
import { ConversationData } from './types/Conversation';
|
|
64
61
|
/**
|
|
65
62
|
* Информация о текущем браузере
|
|
66
63
|
*/
|
|
@@ -227,7 +224,7 @@ export declare function init(params: Partial<ParamsObject>): Promise<void>;
|
|
|
227
224
|
* @param requireAuthToJoin Запретить анонимам подключаться по ссылке (если поддерживается сервером)
|
|
228
225
|
* @param onlyAdminCanShareMovie Только администратор может включать совметсный просмотр
|
|
229
226
|
*/
|
|
230
|
-
export declare function callTo(externalId?: ExternalId | ExternalId[], mediaOptions?: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean): Promise<ConversationData>;
|
|
227
|
+
export declare function callTo(externalId?: string | ExternalId | string[] | ExternalId[], mediaOptions?: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean): Promise<ConversationData>;
|
|
231
228
|
export declare function callInternal(ids: OkUserId[], type: CallType | undefined, mediaOptions: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean): Promise<ConversationData>;
|
|
232
229
|
/**
|
|
233
230
|
* Обработать пуш о входящем звонке
|
|
@@ -285,7 +282,7 @@ export declare function hangup(): Promise<void>;
|
|
|
285
282
|
* @param externalId Внешний ID пользователя
|
|
286
283
|
* @param params Параметры
|
|
287
284
|
*/
|
|
288
|
-
export declare function addParticipant(externalId: ExternalId, params?: AddParticipantParams): Promise<void>;
|
|
285
|
+
export declare function addParticipant(externalId: string | ExternalId, params?: AddParticipantParams): Promise<void>;
|
|
289
286
|
export declare function addParticipantInternal(uid: OkUserId, params?: AddParticipantParams): Promise<void>;
|
|
290
287
|
/**
|
|
291
288
|
* Удалить собеседника из звонка
|
|
@@ -293,7 +290,7 @@ export declare function addParticipantInternal(uid: OkUserId, params?: AddPartic
|
|
|
293
290
|
* @param externalId Внешний ID пользователя
|
|
294
291
|
* @param ban Забанить пользователя
|
|
295
292
|
*/
|
|
296
|
-
export declare function removeParticipant(externalId: ExternalId, ban?: boolean): Promise<void>;
|
|
293
|
+
export declare function removeParticipant(externalId: string | ExternalId, ban?: boolean): Promise<void>;
|
|
297
294
|
export declare function removeParticipantInternal(uid: OkUserId, ban?: boolean): Promise<void>;
|
|
298
295
|
/**
|
|
299
296
|
* Изменить камеру на фронтальную или заднюю (для мобильных устройств)
|
|
@@ -382,8 +379,8 @@ export declare function updateDisplayLayout(layout: ParticipantLayout[]): Promis
|
|
|
382
379
|
* @param roles Список ролей
|
|
383
380
|
* @param revoke Забрать роли
|
|
384
381
|
*/
|
|
385
|
-
export declare function grantRoles(externalId: ExternalId, roles: UserRole[], revoke?: boolean): Promise<void>;
|
|
386
|
-
export declare function grantRolesInternal(uid: OkUserId,
|
|
382
|
+
export declare function grantRoles(externalId: string | ExternalId, roles: UserRole[], revoke?: boolean): Promise<void>;
|
|
383
|
+
export declare function grantRolesInternal(uid: OkUserId, roles: UserRole[], revoke?: boolean): Promise<void>;
|
|
387
384
|
/**
|
|
388
385
|
* Выключить или выключить микрофон и/или камеру собеседнику (только если есть соответствующая роль)
|
|
389
386
|
*
|
|
@@ -399,9 +396,8 @@ export declare function muteParticipantInternal({ uid, muteStates, requestedMedi
|
|
|
399
396
|
*
|
|
400
397
|
* @param externalId Внешний ID пользователя
|
|
401
398
|
* @param unpin Открепить
|
|
402
|
-
* @param roomId Идентификатор комнаты
|
|
403
399
|
*/
|
|
404
|
-
export declare function pinParticipant(externalId:
|
|
400
|
+
export declare function pinParticipant(externalId: string | ExternalParticipantId, unpin?: boolean, roomId?: number | null): Promise<void>;
|
|
405
401
|
export declare function pinParticipantInternal(uid: OkUserId, unpin?: boolean, deviceIdx?: number, roomId?: number | null): Promise<void>;
|
|
406
402
|
/**
|
|
407
403
|
* Устанавливает настройки пользовательского медиа
|
|
@@ -423,7 +419,7 @@ export declare function changeConversationOptions(changes: {
|
|
|
423
419
|
* @param message Сообщение
|
|
424
420
|
* @param externalId Внешний ID пользователя (если не указано, отправит всем)
|
|
425
421
|
*/
|
|
426
|
-
export declare function chatMessage(message: string, externalId?: ExternalId | null): Promise<void>;
|
|
422
|
+
export declare function chatMessage(message: string, externalId?: string | ExternalId | null): Promise<void>;
|
|
427
423
|
export declare function chatMessageInternal(message: string, uid?: OkUserId | null): Promise<void>;
|
|
428
424
|
/**
|
|
429
425
|
* Получить историю сообщений чата
|
|
@@ -437,7 +433,7 @@ export declare function chatHistory(count?: number): Promise<void>;
|
|
|
437
433
|
* @param data Данные
|
|
438
434
|
* @param externalId Внешний ID пользователя (если не указано, отправит всем)
|
|
439
435
|
*/
|
|
440
|
-
export declare function customData(data: JSONObject, externalId?:
|
|
436
|
+
export declare function customData(data: JSONObject, externalId?: string | ExternalParticipantId | null): Promise<void>;
|
|
441
437
|
export declare function customDataInternal(data: JSONObject, uid?: OkUserId | null, deviceIdx?: number): Promise<void>;
|
|
442
438
|
/**
|
|
443
439
|
* Создать токен комнаты для подключения по ссылке
|
|
@@ -505,21 +501,19 @@ export declare function startStream(isRecord?: boolean, name?: string | null, mo
|
|
|
505
501
|
* @param roomId
|
|
506
502
|
*/
|
|
507
503
|
export declare function stopStream(roomId?: number | null): Promise<undefined>;
|
|
508
|
-
/**
|
|
509
|
-
* Опубликовать трансляцию звонка
|
|
510
|
-
* @param roomId
|
|
511
|
-
*/
|
|
512
|
-
export declare function publishStream(roomId?: number | null): Promise<undefined>;
|
|
513
504
|
/**
|
|
514
505
|
* Устанавливает роль участника в запись звонка
|
|
515
506
|
* Если хотя бы у одного участника звонка выставлена роль, то в записи звонка будут
|
|
516
507
|
* видны только те участники, у кого есть роль.
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
*
|
|
520
|
-
*
|
|
508
|
+
* KING - участник показывается крупно в записи звонка (только один участник имеет такую роль)
|
|
509
|
+
* PAWN - участник показывается в записи звонка
|
|
510
|
+
* null - роль удаляется
|
|
511
|
+
*
|
|
512
|
+
* @param externalId Внешний ID пользователя
|
|
513
|
+
* @param role Роль, если null, то роль удалится
|
|
514
|
+
* @param roomId ID сессионного зала записи. Если null, то роль применится в основном звонке
|
|
521
515
|
*/
|
|
522
|
-
export declare function
|
|
516
|
+
export declare function recordSetRole(externalId: string | ExternalParticipantId, role: RecordRole | null, roomId?: number | null): Promise<void>;
|
|
523
517
|
/**
|
|
524
518
|
* Получить информацию о трансляции звонка
|
|
525
519
|
*/
|
|
@@ -563,9 +557,9 @@ export declare function activateRooms(roomIds: number[], deactivate: boolean): P
|
|
|
563
557
|
/**
|
|
564
558
|
* Cменить сессионный зал
|
|
565
559
|
* @param toRoomId
|
|
566
|
-
* @param
|
|
560
|
+
* @param participantId
|
|
567
561
|
*/
|
|
568
|
-
export declare function switchRoom(toRoomId?: number | null,
|
|
562
|
+
export declare function switchRoom(toRoomId?: number | null, participantId?: string | ExternalParticipantId | null): Promise<void>;
|
|
569
563
|
/**
|
|
570
564
|
* Удалить сессионные залы
|
|
571
565
|
* @param roomIds
|
|
@@ -608,12 +602,12 @@ export declare function setAudioStream(stream: MediaStream): Promise<void>;
|
|
|
608
602
|
*
|
|
609
603
|
* @param {(string|ArrayBuffer)} svg - svg в незашифрованном (string)
|
|
610
604
|
* или зашифрованном (ArrayBuffer) виде
|
|
611
|
-
* @param {(
|
|
605
|
+
* @param {(ExternalParticipantId|null)} externalId - externalId внешнего участника звонка,
|
|
612
606
|
* не требуется для текущего участника (текущего пользователя клиента)
|
|
613
607
|
* @param {(string|null)} customKey - кастомный ключ расшифровки svg,
|
|
614
608
|
* нужен только в случае присвоения участнику чужого аватара
|
|
615
609
|
*/
|
|
616
|
-
export declare function setVmojiSvg(svg: string | ArrayBuffer, externalId?:
|
|
610
|
+
export declare function setVmojiSvg(svg: string | ArrayBuffer, externalId?: ExternalParticipantId | null, customKey?: string | null): Promise<void>;
|
|
617
611
|
/**
|
|
618
612
|
* Получить состояние зала ожидания
|
|
619
613
|
*
|
|
@@ -622,10 +616,6 @@ export declare function setVmojiSvg(svg: string | ArrayBuffer, externalId?: Exte
|
|
|
622
616
|
* @param backward Получить результат в обратном порядке
|
|
623
617
|
*/
|
|
624
618
|
export declare function getWaitingHall(pageMarker?: string | null, count?: number, backward?: boolean): Promise<WaitingHallResponse>;
|
|
625
|
-
/**
|
|
626
|
-
* Получить список слушателей, запросивших повышение в комнате в режиме Audience
|
|
627
|
-
*/
|
|
628
|
-
export declare function getAudienceModeHands(): Promise<AudienceModeHandsResponse>;
|
|
629
619
|
/**
|
|
630
620
|
* Разрешить/запретить пользователю войти из зала ожидания/стать спикером комнаты
|
|
631
621
|
* в режиме Audience
|
|
@@ -673,5 +663,5 @@ export declare function requestAsr(request: boolean): Promise<void>;
|
|
|
673
663
|
* Версия SDK
|
|
674
664
|
*/
|
|
675
665
|
export declare function version(): string;
|
|
676
|
-
export type { AddParticipantParams,
|
|
677
|
-
export { Api,
|
|
666
|
+
export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantLayout, ParticipantListMarkers, ParticipantListType, ParticipantPriority, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, ParticipantListMarker, RequestKeyFrame, Rooms, IGetParticipantsParameters, ScreenCaptureSettings, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IMovieMetaData, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, };
|
|
667
|
+
export { Api, BaseApi, BaseLogger, BaseSignaling, CallDirection, CallType, ChatRoomEventType, ConversationOption, DebugMessageType, ExternalIdType, FacingMode, FatalError, HangupReason, HangupType, MediaOption, MediaTrackKind, MediaType, MuteState, ParticipantState, ParticipantStatus, RecordRole, Signaling, SignalingCommandType, SignalingConnectionType, SignalingNotification, UserRole, UserType, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, };
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ConversationData } from '../types/Conversation';
|
|
|
3
3
|
import ConversationParams from '../types/ConversationParams';
|
|
4
4
|
import ConversationResponse from '../types/ConversationResponse';
|
|
5
5
|
import { ExternalId, ExternalParticipantId, ExternalUserId } from '../types/ExternalId';
|
|
6
|
-
import { CompositeUserId, OkUserId
|
|
6
|
+
import { CompositeUserId, OkUserId } from '../types/Participant';
|
|
7
7
|
export type LogItem = {
|
|
8
8
|
count?: number;
|
|
9
9
|
custom: {
|
|
@@ -22,7 +22,7 @@ export type LogItem = {
|
|
|
22
22
|
export default abstract class BaseApi {
|
|
23
23
|
abstract init(): void;
|
|
24
24
|
abstract authorize(): Promise<void>;
|
|
25
|
-
abstract userId(participantId:
|
|
25
|
+
abstract userId(participantId: CompositeUserId): Promise<ExternalId>;
|
|
26
26
|
abstract createConversation(conversationId: string, payload?: string, requireAuthToJoin?: boolean, createConversationParameters?: {
|
|
27
27
|
onlyAdminCanShareMovie?: boolean;
|
|
28
28
|
audienceMode?: boolean;
|
|
@@ -44,11 +44,10 @@ export default abstract class BaseApi {
|
|
|
44
44
|
abstract setUserId(userId: OkUserId): void;
|
|
45
45
|
log(items: LogItem[]): void;
|
|
46
46
|
prepareUserIds(ids: OkUserId[]): Promise<void>;
|
|
47
|
-
abstract getOkIdsByExternalIds(externalIds: ExternalId[]): Promise<OkUserId[]>;
|
|
48
|
-
abstract getParticipantIdsByExternalIds(externalIds: ExternalId[]): Promise<Map<ExternalId, ParticipantId>>;
|
|
47
|
+
abstract getOkIdsByExternalIds(externalIds: (string | ExternalId)[]): Promise<OkUserId[]>;
|
|
49
48
|
abstract getExternalIdsByOkIds(uids: OkUserId[]): Promise<ExternalParticipantId[]>;
|
|
50
|
-
getCachedOkIdByExternalId(externalId: ExternalId):
|
|
51
|
-
cacheExternalId(participantId: CompositeUserId, externalId:
|
|
49
|
+
getCachedOkIdByExternalId(externalId: ExternalId): CompositeUserId | null;
|
|
50
|
+
cacheExternalId(participantId: CompositeUserId, externalId: ExternalId): void;
|
|
52
51
|
hangupConversation(conversationId: string): void;
|
|
53
52
|
removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
54
53
|
cleanup(): void;
|
|
@@ -6,6 +6,7 @@ import { TransportTopology } from '../classes/transport/Transport';
|
|
|
6
6
|
import ConversationFeature from '../enums/ConversationFeature';
|
|
7
7
|
import ConversationOption from '../enums/ConversationOption';
|
|
8
8
|
import MediaOption from '../enums/MediaOption';
|
|
9
|
+
import RecordRole from '../enums/RecordRole';
|
|
9
10
|
import SignalingConnectionType from '../enums/SignalingConnectionType';
|
|
10
11
|
import UserRole from '../enums/UserRole';
|
|
11
12
|
import { JSONObject } from '../static/Json';
|
|
@@ -19,7 +20,7 @@ import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
|
19
20
|
import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
|
|
20
21
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
21
22
|
import SignalingMessage from '../types/SignalingMessage';
|
|
22
|
-
import {
|
|
23
|
+
import { IStartStreamData, IStopStreamData } from '../types/Streams';
|
|
23
24
|
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
24
25
|
import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
|
|
25
26
|
/**
|
|
@@ -74,8 +75,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
74
75
|
abstract removeRooms(roomIds: number[]): Promise<SignalingMessage>;
|
|
75
76
|
abstract startStream(data: IStartStreamData): Promise<SignalingMessage>;
|
|
76
77
|
abstract stopStream(data: IStopStreamData): Promise<SignalingMessage>;
|
|
77
|
-
abstract
|
|
78
|
-
abstract recordSetConf(conf: IRecordConfData): Promise<SignalingMessage>;
|
|
78
|
+
abstract recordSetRole(participantId: ParticipantId, role: RecordRole | null, roomId: number | null): Promise<SignalingMessage>;
|
|
79
79
|
abstract getRecordStatus(): Promise<SignalingMessage>;
|
|
80
80
|
abstract switchTopology(topology: TransportTopology, force?: boolean): Promise<SignalingMessage>;
|
|
81
81
|
abstract reportPerfStat(report: PerfStatReport): Promise<SignalingMessage>;
|
|
@@ -83,7 +83,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
83
83
|
abstract chatMessage(message: string, participantId: CompositeUserId | null): Promise<SignalingMessage>;
|
|
84
84
|
abstract chatHistory(count: number): Promise<SignalingMessage>;
|
|
85
85
|
abstract customData(data: JSONObject, participantId: ParticipantId | null): Promise<SignalingMessage>;
|
|
86
|
-
abstract grantRoles(participantId:
|
|
86
|
+
abstract grantRoles(participantId: CompositeUserId, roles: UserRole[], revoke: boolean): Promise<SignalingMessage>;
|
|
87
87
|
abstract muteParticipant(participantId: ParticipantId | null, muteStates: MuteStates, requestedMedia: MediaOption[], roomId: number | null): Promise<SignalingMessage>;
|
|
88
88
|
abstract enableFeatureForRoles(feature: ConversationFeature, roles: UserRole[]): Promise<SignalingMessage>;
|
|
89
89
|
abstract pinParticipant(participantId: ParticipantId, unpin: boolean, roomId: number | null): Promise<SignalingMessage>;
|
|
@@ -96,10 +96,10 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
96
96
|
abstract requestPromotion(demote: boolean): Promise<SignalingMessage>;
|
|
97
97
|
abstract acceptPromotion(reject: boolean): Promise<SignalingMessage>;
|
|
98
98
|
abstract feedback(key: string): Promise<SignalingMessage>;
|
|
99
|
-
abstract getHandQueue(): Promise<SignalingMessage>;
|
|
100
99
|
abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
|
|
101
100
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
102
101
|
abstract useCommandDataChannel(status: boolean): void;
|
|
102
|
+
abstract setAsrDataChannel(dataChannel: RTCDataChannel): void;
|
|
103
103
|
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
104
104
|
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
105
105
|
abstract startAsr(params: IAsrStartParams): Promise<SignalingMessage>;
|