@vkontakte/calls-sdk 2.6.2-dev.ac5839e.0 → 2.6.2-dev.b21d34d.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 +8 -14
- package/abstract/BaseSignaling.d.ts +3 -3
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +5 -14
- package/default/Signaling.d.ts +3 -3
- package/enums/LiveStatus.d.ts +6 -1
- package/package.json +1 -1
- package/static/External.d.ts +7 -10
- package/static/Params.d.ts +16 -6
- package/types/Conversation.d.ts +0 -1
- package/types/MovieShare.d.ts +2 -0
- package/types/Participant.d.ts +0 -1
- package/types/Room.d.ts +4 -21
- package/types/SignalingMessage.d.ts +1 -7
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, ParticipantStateMapped } from './types/Participant';
|
|
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';
|
|
@@ -249,8 +249,6 @@ 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
|
|
254
252
|
*/
|
|
255
253
|
export declare function joinCallByLink(joinLink: string, mediaOptions?: MediaOption[], anonymToken?: string, observedIds?: ExternalUserId[], payload?: string): Promise<ConversationData>;
|
|
256
254
|
/**
|
|
@@ -360,12 +358,9 @@ export declare function grantRolesInternal(uid: OkUserId, roles: UserRole[], rev
|
|
|
360
358
|
* @param externalId Внешний ID пользователя (если не указано, сработает на всех)
|
|
361
359
|
* @param muteStates Состояние устройств пользователя
|
|
362
360
|
* @param requestedMedia Попросить пользователя включить устройство
|
|
363
|
-
* @param roomId ID сессионного зала, либо ничего если в основном зале
|
|
364
361
|
*/
|
|
365
|
-
export declare function muteParticipant(externalId: string | ExternalParticipantId | null, muteStates: MuteStates, requestedMedia?: MediaOption[]
|
|
366
|
-
export declare function muteParticipantInternal(uid: OkUserId | null, muteStates: MuteStates, requestedMedia?: MediaOption[], deviceIdx?: number
|
|
367
|
-
export declare function applyMuteStates(muteStates: MuteStates, mediaOptions: MediaOption[], roomId?: number): void;
|
|
368
|
-
export declare function changeRecordInfoForRoom(roomId?: number): Promise<void>;
|
|
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>;
|
|
369
364
|
/**
|
|
370
365
|
* Закрепить/открепить выбранного собеседника у всех (только если есть соответствующая роль)
|
|
371
366
|
*
|
|
@@ -449,8 +444,8 @@ export declare function setVolume(volume: number): void;
|
|
|
449
444
|
* @param enabled
|
|
450
445
|
*/
|
|
451
446
|
export declare function forceRelayPolicy(enabled: boolean): void;
|
|
452
|
-
export declare function startStream(isRecord?: boolean, name?: string | null, movieId?: string | null, privacy?: 'PUBLIC' | 'FRIENDS' | 'DIRECT_LINK', groupId?: string | null
|
|
453
|
-
export declare function stopStream(
|
|
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>;
|
|
454
449
|
/**
|
|
455
450
|
* Устанавливает роль участника в запись звонка
|
|
456
451
|
* Если хотя бы у одного участника звонка выставлена роль, то в записи звонка будут
|
|
@@ -461,9 +456,8 @@ export declare function stopStream(roomId?: number | null): Promise<SignalingMes
|
|
|
461
456
|
*
|
|
462
457
|
* @param externalId Внешний ID пользователя
|
|
463
458
|
* @param role Роль, если null, то роль удалится
|
|
464
|
-
* @param roomId ID сессионного зала записи. Если null, то роль применится в основном звонке
|
|
465
459
|
*/
|
|
466
|
-
export declare function recordSetRole(externalId: string | ExternalParticipantId, role: RecordRole | null
|
|
460
|
+
export declare function recordSetRole(externalId: string | ExternalParticipantId, role: RecordRole | null): Promise<void>;
|
|
467
461
|
export declare function getStreamInfo(): Promise<{
|
|
468
462
|
movieId: any;
|
|
469
463
|
preview: any;
|
|
@@ -471,7 +465,7 @@ export declare function getStreamInfo(): Promise<{
|
|
|
471
465
|
/**
|
|
472
466
|
* Добавляет видео/лайв в звонок
|
|
473
467
|
*
|
|
474
|
-
* @param
|
|
468
|
+
* @param movieId
|
|
475
469
|
*/
|
|
476
470
|
export declare function addMovie(params: IAddMovieParams): Promise<{
|
|
477
471
|
movieId: string;
|
|
@@ -511,7 +505,7 @@ export declare function activateRooms(roomIds: number[], deactivate: boolean): P
|
|
|
511
505
|
* @param toRoomId
|
|
512
506
|
* @param participantId
|
|
513
507
|
*/
|
|
514
|
-
export declare function switchRoom(toRoomId?: number, participantId?:
|
|
508
|
+
export declare function switchRoom(toRoomId?: number, participantId?: ParticipantId): Promise<void>;
|
|
515
509
|
/**
|
|
516
510
|
* Удалить комнаты
|
|
517
511
|
* @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(
|
|
71
|
-
abstract recordSetRole(participantId: ParticipantId, role: RecordRole | null
|
|
70
|
+
abstract stopStream(): Promise<SignalingMessage>;
|
|
71
|
+
abstract recordSetRole(participantId: ParticipantId, role: RecordRole | 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[]
|
|
80
|
+
abstract muteParticipant(participantId: ParticipantId | null, muteStates: MuteStates, requestedMedia: MediaOption[]): 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>;
|