@vkontakte/calls-sdk 2.6.2-dev.abaf7cc.0 → 2.6.2-dev.ac5839e.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
@@ -40,7 +40,7 @@ import IceServer from './types/IceServer';
40
40
  import MediaModifiers from './types/MediaModifiers';
41
41
  import { IVideoDimentions, MediaSettings } from './types/MediaSettings';
42
42
  import MuteStates from './types/MuteStates';
43
- import { IGetParticipantsParameters, OkUserId, ParticipantId, ParticipantStateMapped } from './types/Participant';
43
+ import { IGetParticipantsParameters, OkUserId, 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';
@@ -249,6 +249,8 @@ export declare function joinCallInternal(conversationId: string, mediaOptions: M
249
249
  * @param joinLink Токен комнаты
250
250
  * @param mediaOptions Нужно ли включать камеру и микрофон
251
251
  * @param anonymToken Токен анонимной авторизации
252
+ * @param observedIds
253
+ * @param payload
252
254
  */
253
255
  export declare function joinCallByLink(joinLink: string, mediaOptions?: MediaOption[], anonymToken?: string, observedIds?: ExternalUserId[], payload?: string): Promise<ConversationData>;
254
256
  /**
@@ -358,9 +360,12 @@ export declare function grantRolesInternal(uid: OkUserId, roles: UserRole[], rev
358
360
  * @param externalId Внешний ID пользователя (если не указано, сработает на всех)
359
361
  * @param muteStates Состояние устройств пользователя
360
362
  * @param requestedMedia Попросить пользователя включить устройство
363
+ * @param roomId ID сессионного зала, либо ничего если в основном зале
361
364
  */
362
- export declare function muteParticipant(externalId: string | ExternalParticipantId | null, muteStates: MuteStates, requestedMedia?: MediaOption[]): Promise<void>;
363
- export declare function muteParticipantInternal(uid: OkUserId | null, muteStates: MuteStates, requestedMedia?: MediaOption[], deviceIdx?: number): Promise<void>;
365
+ export declare function muteParticipant(externalId: string | ExternalParticipantId | null, muteStates: MuteStates, requestedMedia?: MediaOption[], roomId?: number): Promise<void>;
366
+ export declare function muteParticipantInternal(uid: OkUserId | null, muteStates: MuteStates, requestedMedia?: MediaOption[], deviceIdx?: number, roomId?: number): Promise<void>;
367
+ export declare function applyMuteStates(muteStates: MuteStates, mediaOptions: MediaOption[], roomId?: number): void;
368
+ export declare function changeRecordInfoForRoom(roomId?: number): Promise<void>;
364
369
  /**
365
370
  * Закрепить/открепить выбранного собеседника у всех (только если есть соответствующая роль)
366
371
  *
@@ -444,8 +449,8 @@ export declare function setVolume(volume: number): void;
444
449
  * @param enabled
445
450
  */
446
451
  export declare function forceRelayPolicy(enabled: boolean): void;
447
- export declare function startStream(isRecord?: boolean, name?: string | null, movieId?: string | null, privacy?: 'PUBLIC' | 'FRIENDS' | 'DIRECT_LINK', groupId?: string | null): Promise<SignalingMessage>;
448
- export declare function stopStream(): Promise<SignalingMessage>;
452
+ export declare function startStream(isRecord?: boolean, name?: string | null, movieId?: string | null, privacy?: 'PUBLIC' | 'FRIENDS' | 'DIRECT_LINK', groupId?: string | null, roomId?: number | null): Promise<SignalingMessage>;
453
+ export declare function stopStream(roomId?: number | null): Promise<SignalingMessage>;
449
454
  /**
450
455
  * Устанавливает роль участника в запись звонка
451
456
  * Если хотя бы у одного участника звонка выставлена роль, то в записи звонка будут
@@ -456,8 +461,9 @@ export declare function stopStream(): Promise<SignalingMessage>;
456
461
  *
457
462
  * @param externalId Внешний ID пользователя
458
463
  * @param role Роль, если null, то роль удалится
464
+ * @param roomId ID сессионного зала записи. Если null, то роль применится в основном звонке
459
465
  */
460
- export declare function recordSetRole(externalId: string | ExternalParticipantId, role: RecordRole | null): Promise<void>;
466
+ export declare function recordSetRole(externalId: string | ExternalParticipantId, role: RecordRole | null, roomId?: number | null): Promise<void>;
461
467
  export declare function getStreamInfo(): Promise<{
462
468
  movieId: any;
463
469
  preview: any;
@@ -465,7 +471,7 @@ export declare function getStreamInfo(): Promise<{
465
471
  /**
466
472
  * Добавляет видео/лайв в звонок
467
473
  *
468
- * @param movieId
474
+ * @param params
469
475
  */
470
476
  export declare function addMovie(params: IAddMovieParams): Promise<{
471
477
  movieId: string;
@@ -505,7 +511,7 @@ export declare function activateRooms(roomIds: number[], deactivate: boolean): P
505
511
  * @param toRoomId
506
512
  * @param participantId
507
513
  */
508
- export declare function switchRoom(toRoomId?: number, participantId?: ParticipantId): Promise<void>;
514
+ export declare function switchRoom(toRoomId?: number, participantId?: string | ExternalParticipantId | null): Promise<void>;
509
515
  /**
510
516
  * Удалить комнаты
511
517
  * @param roomIds
@@ -67,8 +67,8 @@ export default abstract class BaseSignaling extends EventEmitter {
67
67
  abstract switchRoom(toRoomId?: number, participantId?: ParticipantId): Promise<SignalingMessage>;
68
68
  abstract removeRooms(roomIds: number[]): Promise<SignalingMessage>;
69
69
  abstract startStream(data: any): Promise<SignalingMessage>;
70
- abstract stopStream(): Promise<SignalingMessage>;
71
- abstract recordSetRole(participantId: ParticipantId, role: RecordRole | null): Promise<SignalingMessage>;
70
+ abstract stopStream(data: any): Promise<SignalingMessage>;
71
+ abstract recordSetRole(participantId: ParticipantId, role: RecordRole | null, roomId: number | null): Promise<SignalingMessage>;
72
72
  abstract getRecordStatus(): Promise<SignalingMessage>;
73
73
  abstract switchTopology(topology: TransportTopology, force?: boolean): Promise<SignalingMessage>;
74
74
  abstract reportPerfStat(report: PerfStatReport): Promise<SignalingMessage>;
@@ -77,7 +77,7 @@ export default abstract class BaseSignaling extends EventEmitter {
77
77
  abstract chatHistory(count: number): Promise<SignalingMessage>;
78
78
  abstract customData(data: JSONObject, participantId: ParticipantId | null): Promise<SignalingMessage>;
79
79
  abstract grantRoles(participantId: CompositeUserId, roles: UserRole[], revoke: boolean): Promise<SignalingMessage>;
80
- abstract muteParticipant(participantId: ParticipantId | null, muteStates: MuteStates, requestedMedia: MediaOption[]): Promise<SignalingMessage>;
80
+ abstract muteParticipant(participantId: ParticipantId | null, muteStates: MuteStates, requestedMedia: MediaOption[], roomId?: number): Promise<SignalingMessage>;
81
81
  abstract enableFeatureForRoles(feature: ConversationFeature, roles: UserRole[]): Promise<SignalingMessage>;
82
82
  abstract pinParticipant(participantId: ParticipantId, unpin: boolean): Promise<SignalingMessage>;
83
83
  abstract updateMediaModifiers(mediaModifiers: MediaModifiers): Promise<SignalingMessage>;