@vkontakte/calls-sdk 2.6.3-dev.3c2a801.0 → 2.6.3-dev.a6d980b.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 +18 -23
- package/abstract/BaseSignaling.d.ts +5 -9
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +11 -42
- package/default/Api.d.ts +0 -4
- package/default/Signaling.d.ts +5 -9
- package/enums/SignalingCommandType.d.ts +2 -1
- package/package.json +1 -1
- package/static/External.d.ts +11 -32
- package/static/Params.d.ts +15 -36
- package/types/Conversation.d.ts +0 -1
- package/types/MovieShare.d.ts +138 -9
- package/types/MuteStates.d.ts +0 -15
- package/types/Participant.d.ts +0 -1
- package/types/ParticipantListChunk.d.ts +1 -1
- package/types/Room.d.ts +5 -22
- package/types/SignalingMessage.d.ts +3 -15
- package/types/Streams.d.ts +0 -8
package/CallsSDK.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ import { ExternalId, ExternalIdType, ExternalParticipant, ExternalParticipantId,
|
|
|
39
39
|
import IceServer from './types/IceServer';
|
|
40
40
|
import MediaModifiers from './types/MediaModifiers';
|
|
41
41
|
import { IVideoDimentions, MediaSettings } from './types/MediaSettings';
|
|
42
|
-
import MuteStates
|
|
43
|
-
import { IGetParticipantsParameters, OkUserId, ParticipantStateMapped } from './types/Participant';
|
|
42
|
+
import MuteStates from './types/MuteStates';
|
|
43
|
+
import { IGetParticipantsParameters, OkUserId, ParticipantId, ParticipantStateMapped } from './types/Participant';
|
|
44
44
|
import ParticipantLayout, { Layout, StopStream } from './types/ParticipantLayout';
|
|
45
45
|
import { ParticipantListChunkParameters } from './types/ParticipantListChunk';
|
|
46
46
|
import ParticipantPriority from './types/ParticipantPriority';
|
|
@@ -51,7 +51,6 @@ import SignalingMessage from './types/SignalingMessage';
|
|
|
51
51
|
import { WaitingHallResponse } from './types/WaitingHall';
|
|
52
52
|
import { IFeedbackExternal } from './types/Feedback';
|
|
53
53
|
import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IUpdateMovieData } from './types/MovieShare';
|
|
54
|
-
import { IStartStreamData } from './types/Streams';
|
|
55
54
|
import ConversationFeature from './enums/ConversationFeature';
|
|
56
55
|
import { IFeaturesPerRole } from './types/ConversationFeature';
|
|
57
56
|
import { ArrayDequeue } from './utils/ArrayDequeue';
|
|
@@ -249,8 +248,6 @@ export declare function joinCallInternal(conversationId: string, mediaOptions: M
|
|
|
249
248
|
* @param joinLink Токен комнаты
|
|
250
249
|
* @param mediaOptions Нужно ли включать камеру и микрофон
|
|
251
250
|
* @param anonymToken Токен анонимной авторизации
|
|
252
|
-
* @param observedIds
|
|
253
|
-
* @param payload
|
|
254
251
|
*/
|
|
255
252
|
export declare function joinCallByLink(joinLink: string, mediaOptions?: MediaOption[], anonymToken?: string, observedIds?: ExternalUserId[], payload?: string): Promise<ConversationData>;
|
|
256
253
|
/**
|
|
@@ -360,10 +357,9 @@ export declare function grantRolesInternal(uid: OkUserId, roles: UserRole[], rev
|
|
|
360
357
|
* @param externalId Внешний ID пользователя (если не указано, сработает на всех)
|
|
361
358
|
* @param muteStates Состояние устройств пользователя
|
|
362
359
|
* @param requestedMedia Попросить пользователя включить устройство
|
|
363
|
-
* @param roomId ID сессионного зала, либо ничего если в основном зале
|
|
364
360
|
*/
|
|
365
|
-
export declare function muteParticipant(
|
|
366
|
-
export declare function muteParticipantInternal(
|
|
361
|
+
export declare function muteParticipant(externalId: string | ExternalParticipantId | null, muteStates: MuteStates, requestedMedia?: MediaOption[]): Promise<void>;
|
|
362
|
+
export declare function muteParticipantInternal(uid: OkUserId | null, muteStates: MuteStates, requestedMedia?: MediaOption[], deviceIdx?: number): Promise<void>;
|
|
367
363
|
/**
|
|
368
364
|
* Закрепить/открепить выбранного собеседника у всех (только если есть соответствующая роль)
|
|
369
365
|
*
|
|
@@ -447,8 +443,8 @@ export declare function setVolume(volume: number): void;
|
|
|
447
443
|
* @param enabled
|
|
448
444
|
*/
|
|
449
445
|
export declare function forceRelayPolicy(enabled: boolean): void;
|
|
450
|
-
export declare function startStream(isRecord?: boolean, name?: string | null, movieId?: string | null, privacy?: 'PUBLIC' | 'FRIENDS' | 'DIRECT_LINK', groupId?: string | null
|
|
451
|
-
export declare function stopStream(
|
|
446
|
+
export declare function startStream(isRecord?: boolean, name?: string | null, movieId?: string | null, privacy?: 'PUBLIC' | 'FRIENDS' | 'DIRECT_LINK', groupId?: string | null): Promise<SignalingMessage>;
|
|
447
|
+
export declare function stopStream(): Promise<SignalingMessage>;
|
|
452
448
|
/**
|
|
453
449
|
* Устанавливает роль участника в запись звонка
|
|
454
450
|
* Если хотя бы у одного участника звонка выставлена роль, то в записи звонка будут
|
|
@@ -459,9 +455,8 @@ export declare function stopStream(roomId?: number | null): Promise<SignalingMes
|
|
|
459
455
|
*
|
|
460
456
|
* @param externalId Внешний ID пользователя
|
|
461
457
|
* @param role Роль, если null, то роль удалится
|
|
462
|
-
* @param roomId ID сессионного зала записи. Если null, то роль применится в основном звонке
|
|
463
458
|
*/
|
|
464
|
-
export declare function recordSetRole(externalId: string | ExternalParticipantId, role: RecordRole | null
|
|
459
|
+
export declare function recordSetRole(externalId: string | ExternalParticipantId, role: RecordRole | null): Promise<void>;
|
|
465
460
|
export declare function getStreamInfo(): Promise<{
|
|
466
461
|
movieId: any;
|
|
467
462
|
preview: any;
|
|
@@ -472,7 +467,7 @@ export declare function getStreamInfo(): Promise<{
|
|
|
472
467
|
* @param params
|
|
473
468
|
*/
|
|
474
469
|
export declare function addMovie(params: IAddMovieParams): Promise<{
|
|
475
|
-
movieId:
|
|
470
|
+
movieId: number;
|
|
476
471
|
streamType: string;
|
|
477
472
|
}>;
|
|
478
473
|
/**
|
|
@@ -484,13 +479,13 @@ export declare function updateMovie(params: IUpdateMovieData): Promise<void>;
|
|
|
484
479
|
/**
|
|
485
480
|
* Удалить видео/лайв из звонка
|
|
486
481
|
*
|
|
487
|
-
* @param movieId
|
|
482
|
+
* @param movieId Id Ролика
|
|
488
483
|
*/
|
|
489
|
-
export declare function removeMovie(movieId:
|
|
484
|
+
export declare function removeMovie(movieId: number): Promise<void>;
|
|
490
485
|
/**
|
|
491
|
-
* Обновить
|
|
492
|
-
* @param rooms id в случае обновления
|
|
493
|
-
* @param assignRandomly рандомно назначить участников
|
|
486
|
+
* Обновить комнаты
|
|
487
|
+
* @param rooms id в случае обновления комнаты
|
|
488
|
+
* @param assignRandomly рандомно назначить участников комнаты из свободных в соответствии с participantCount
|
|
494
489
|
*/
|
|
495
490
|
export declare function updateRooms(rooms: {
|
|
496
491
|
id?: number;
|
|
@@ -499,19 +494,19 @@ export declare function updateRooms(rooms: {
|
|
|
499
494
|
active?: boolean;
|
|
500
495
|
}[], assignRandomly: boolean): Promise<void>;
|
|
501
496
|
/**
|
|
502
|
-
* Активировать
|
|
497
|
+
* Активировать комнаты
|
|
503
498
|
* @param roomIds
|
|
504
499
|
* @param deactivate
|
|
505
500
|
*/
|
|
506
501
|
export declare function activateRooms(roomIds: number[], deactivate: boolean): Promise<void>;
|
|
507
502
|
/**
|
|
508
|
-
* Cменить
|
|
503
|
+
* Cменить комнату
|
|
509
504
|
* @param toRoomId
|
|
510
505
|
* @param participantId
|
|
511
506
|
*/
|
|
512
|
-
export declare function switchRoom(toRoomId?: number
|
|
507
|
+
export declare function switchRoom(toRoomId?: number, participantId?: ParticipantId): Promise<void>;
|
|
513
508
|
/**
|
|
514
|
-
* Удалить
|
|
509
|
+
* Удалить комнаты
|
|
515
510
|
* @param roomIds
|
|
516
511
|
*/
|
|
517
512
|
export declare function removeRooms(roomIds: number[]): Promise<void>;
|
|
@@ -588,5 +583,5 @@ export declare function requestAsr(request: boolean): Promise<void>;
|
|
|
588
583
|
* Версия SDK
|
|
589
584
|
*/
|
|
590
585
|
export declare function version(): string;
|
|
591
|
-
export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantLayout, ParticipantPriority, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, IGetParticipantsParameters, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole,
|
|
586
|
+
export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantLayout, ParticipantPriority, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, IGetParticipantsParameters, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, };
|
|
592
587
|
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, Utils, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, };
|
|
@@ -18,7 +18,6 @@ import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
|
18
18
|
import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
|
|
19
19
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
20
20
|
import SignalingMessage from '../types/SignalingMessage';
|
|
21
|
-
import { IStartStreamData } from '../types/Streams';
|
|
22
21
|
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
23
22
|
import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
|
|
24
23
|
/**
|
|
@@ -65,14 +64,11 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
65
64
|
abstract removeMovie(data: any): Promise<SignalingMessage>;
|
|
66
65
|
abstract updateRooms(rooms: Record<any, any>[], assignRandomly: boolean): Promise<SignalingMessage>;
|
|
67
66
|
abstract activateRooms(roomIds: number[], deactivate: boolean): Promise<SignalingMessage>;
|
|
68
|
-
abstract switchRoom(toRoomId
|
|
69
|
-
abstract getRooms(withParticipants: boolean): Promise<SignalingMessage>;
|
|
67
|
+
abstract switchRoom(toRoomId?: number, participantId?: ParticipantId): Promise<SignalingMessage>;
|
|
70
68
|
abstract removeRooms(roomIds: number[]): Promise<SignalingMessage>;
|
|
71
|
-
abstract startStream(data:
|
|
72
|
-
abstract stopStream(
|
|
73
|
-
|
|
74
|
-
}): Promise<SignalingMessage>;
|
|
75
|
-
abstract recordSetRole(participantId: ParticipantId, role: RecordRole | null, roomId: number | null): Promise<SignalingMessage>;
|
|
69
|
+
abstract startStream(data: any): Promise<SignalingMessage>;
|
|
70
|
+
abstract stopStream(): Promise<SignalingMessage>;
|
|
71
|
+
abstract recordSetRole(participantId: ParticipantId, role: RecordRole | null): Promise<SignalingMessage>;
|
|
76
72
|
abstract getRecordStatus(): Promise<SignalingMessage>;
|
|
77
73
|
abstract switchTopology(topology: TransportTopology, force?: boolean): Promise<SignalingMessage>;
|
|
78
74
|
abstract reportPerfStat(report: PerfStatReport): Promise<SignalingMessage>;
|
|
@@ -81,7 +77,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
81
77
|
abstract chatHistory(count: number): Promise<SignalingMessage>;
|
|
82
78
|
abstract customData(data: JSONObject, participantId: ParticipantId | null): Promise<SignalingMessage>;
|
|
83
79
|
abstract grantRoles(participantId: CompositeUserId, roles: UserRole[], revoke: boolean): Promise<SignalingMessage>;
|
|
84
|
-
abstract muteParticipant(participantId: ParticipantId | null, muteStates: MuteStates, requestedMedia: MediaOption[]
|
|
80
|
+
abstract muteParticipant(participantId: ParticipantId | null, muteStates: MuteStates, requestedMedia: MediaOption[]): Promise<SignalingMessage>;
|
|
85
81
|
abstract enableFeatureForRoles(feature: ConversationFeature, roles: UserRole[]): Promise<SignalingMessage>;
|
|
86
82
|
abstract pinParticipant(participantId: ParticipantId, unpin: boolean): Promise<SignalingMessage>;
|
|
87
83
|
abstract updateMediaModifiers(mediaModifiers: MediaModifiers): Promise<SignalingMessage>;
|