@vkontakte/calls-sdk 2.6.2-dev.ea953c5.0 → 2.6.2-dev.ed7b4aa.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
@@ -45,12 +45,12 @@ import ParticipantLayout, { Layout, StopStream } from './types/ParticipantLayout
45
45
  import { ParticipantListChunkParameters } from './types/ParticipantListChunk';
46
46
  import ParticipantPriority from './types/ParticipantPriority';
47
47
  import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
48
- import { Room, RoomsUpdate, RoomParticipantUpdate } from './types/Room';
49
- import RoomsEventType from './enums/RoomsEventType';
50
48
  import SignalingMessage from './types/SignalingMessage';
51
49
  import { WaitingHallResponse } from './types/WaitingHall';
52
- import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview } from './types/MovieShare';
50
+ import { IFeedbackExternal } from './types/Feedback';
51
+ import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IUpdateMovieData } from './types/MovieShare';
53
52
  import ConversationFeature from './enums/ConversationFeature';
53
+ import { IFeaturesPerRole } from './types/ConversationFeature';
54
54
  /**
55
55
  * Информация о текущем браузере
56
56
  */
@@ -280,6 +280,13 @@ export declare function changeDevice(kind: MediaDeviceKind, deviceId: string): P
280
280
  * @param state Включить или выключить
281
281
  */
282
282
  export declare function captureScreen(state: boolean): Promise<void>;
283
+ /**
284
+ * Включить/выключить захват экрана
285
+ *
286
+ * @param screenState Включить или выключить захват экрана.
287
+ * @param audioShareState Включить или выключить захват звука. Может быть использован только вместе с захватом экрана.
288
+ */
289
+ export declare function captureScreenAndAudio(screenState: boolean, audioShareState: boolean): Promise<void>;
283
290
  /**
284
291
  * Позволяет установить кастомный стрим для видео
285
292
  * например для стрима из canvas, с наложением изображений
@@ -463,35 +470,15 @@ export declare function addMovie(params: IAddMovieParams): Promise<{
463
470
  /**
464
471
  * Изменить видео/лайв в звонке
465
472
  *
466
- * @param movieId
467
- * @param gain
468
- * @param offset
469
- * @param pause
473
+ * @param params
470
474
  */
471
- export declare function updateMovie(movieId: string, gain?: number, offset?: number, pause?: boolean): Promise<void>;
475
+ export declare function updateMovie(params: IUpdateMovieData): Promise<void>;
472
476
  /**
473
477
  * Удалить видео/лайв из звонка
474
478
  *
475
479
  * @param movieId
476
480
  */
477
481
  export declare function removeMovie(movieId: string): Promise<void>;
478
- /**
479
- * Обновить комнаты
480
- * @param rooms id в случае обновления комнаты
481
- * @param assignRandomly рандомно назначить участников комнаты из свободных в соответствии с participantCount
482
- */
483
- export declare function updateRooms(rooms: {
484
- id?: number;
485
- name?: string;
486
- participantCount?: number;
487
- active?: boolean;
488
- }[], assignRandomly: boolean): Promise<void>;
489
- /**
490
- * Активировать комнаты
491
- * @param roomIds
492
- * @param deactivate
493
- */
494
- export declare function activateRooms(roomIds: number[], deactivate: boolean): Promise<void>;
495
482
  /**
496
483
  * Устанавливает интервал обновления статистики и вызова `onStatistics`
497
484
  *
@@ -541,6 +528,7 @@ export declare function getWaitingHall(pageMarker?: string | null, count?: numbe
541
528
  export declare function promoteParticipant(externalId: ExternalId, demote?: boolean): Promise<void>;
542
529
  export declare function getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<import("./types/ExternalId").ExternalParticipantListChunk>;
543
530
  export declare function getParticipants(parameters: IGetParticipantsParameters): Promise<ExternalParticipant[]>;
531
+ export declare function feedback(key: string): Promise<SignalingMessage>;
544
532
  export declare function enableFeatureForRoles(feature: ConversationFeature, roles: UserRole[]): Promise<void>;
545
533
  /**
546
534
  * Удаляет записи истории звонков
@@ -552,5 +540,5 @@ export declare function removeHistoryRecords(recordIds: number[]): Promise<void>
552
540
  * Версия SDK
553
541
  */
554
542
  export declare function version(): string;
555
- 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, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, Room, RoomsUpdate, RoomParticipantUpdate, };
556
- 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, };
543
+ 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, IUpdateMovieData, IFeaturesPerRole, };
544
+ 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, ConversationFeature, };
@@ -12,7 +12,7 @@ import { JSONObject } from '../static/Json';
12
12
  import ConversationResponse from '../types/ConversationResponse';
13
13
  import MediaModifiers from '../types/MediaModifiers';
14
14
  import MediaSettings from '../types/MediaSettings';
15
- import { IAddMovieParams, ISharedMovieState } from '../types/MovieShare';
15
+ import { IAddMovieParams, IUpdateMovieData } from '../types/MovieShare';
16
16
  import MuteStates from '../types/MuteStates';
17
17
  import { CompositeUserId, ParticipantId } from '../types/Participant';
18
18
  import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
@@ -59,10 +59,8 @@ export default abstract class BaseSignaling extends EventEmitter {
59
59
  [streamDesc: string]: ParticipantLayout | StopStream | RequestKeyFrame;
60
60
  }): Promise<SignalingMessage | void>;
61
61
  abstract addMovie(data: IAddMovieParams): Promise<SignalingMessage>;
62
- abstract updateMovie(data: ISharedMovieState): Promise<SignalingMessage>;
62
+ abstract updateMovie(data: IUpdateMovieData): Promise<SignalingMessage>;
63
63
  abstract removeMovie(data: any): Promise<SignalingMessage>;
64
- abstract updateRooms(rooms: Record<any, any>[], assignRandomly: boolean): Promise<SignalingMessage>;
65
- abstract activateRooms(roomIds: number[], deactivate: boolean): Promise<SignalingMessage>;
66
64
  abstract startStream(data: any): Promise<SignalingMessage>;
67
65
  abstract stopStream(): Promise<SignalingMessage>;
68
66
  abstract recordSetRole(participantId: ParticipantId, role: RecordRole | null): Promise<SignalingMessage>;
@@ -82,6 +80,7 @@ export default abstract class BaseSignaling extends EventEmitter {
82
80
  }): Promise<SignalingMessage>;
83
81
  abstract getWaitingHall(fromId: WaitingParticipantId | null, count?: number, backward?: boolean): Promise<SignalingMessage>;
84
82
  abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
83
+ abstract feedback(key: string): Promise<SignalingMessage>;
85
84
  abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
86
85
  abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
87
86
  abstract useCommandDataChannel(status: boolean): void;