@vkontakte/calls-sdk 2.6.3-beta.12 → 2.6.3-beta.13
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 -7
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +1 -0
- package/classes/MediaSource.d.ts +7 -0
- package/enums/ConversationFeature.d.ts +3 -0
- package/enums/RoomsEventType.d.ts +3 -0
- package/package.json +1 -1
- package/static/Params.d.ts +4 -4
- package/static/WebRTCUtils.d.ts +16 -5
- package/types/ExternalId.d.ts +3 -0
- package/types/Feedback.d.ts +6 -0
- package/types/MuteStates.d.ts +3 -0
- package/types/Participant.d.ts +9 -0
- package/types/Room.d.ts +9 -0
- package/types/ScreenCaptureSettings.d.ts +3 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -36,23 +36,23 @@ import Utils from './static/Utils';
|
|
|
36
36
|
import WebRTCUtils, { FacingMode } from './static/WebRTCUtils';
|
|
37
37
|
import ConversationParams from './types/ConversationParams';
|
|
38
38
|
import ConversationResponse from './types/ConversationResponse';
|
|
39
|
-
import { ExternalId, ExternalIdType, ExternalParticipant, ExternalParticipantId, ExternalParticipantListMarkers, ExternalUserId } from './types/ExternalId';
|
|
39
|
+
import { ExternalId, ExternalIdType, ExternalParticipant, ExternalParticipantId, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers, ExternalUserId } from './types/ExternalId';
|
|
40
40
|
import IceServer from './types/IceServer';
|
|
41
41
|
import MediaModifiers from './types/MediaModifiers';
|
|
42
42
|
import { IVideoDimentions, MediaSettings } from './types/MediaSettings';
|
|
43
43
|
import MuteStates, { IMuteParticipantInternalParams, IMuteParticipantParams } from './types/MuteStates';
|
|
44
|
-
import { IGetParticipantsParameters, OkUserId, ParticipantStateMapped } from './types/Participant';
|
|
45
|
-
import ParticipantLayout, { Layout, StopStream } from './types/ParticipantLayout';
|
|
44
|
+
import { IGetParticipantsParameters, OkUserId, ParticipantListMarker, ParticipantListMarkers, ParticipantListType, ParticipantStateMapped } from './types/Participant';
|
|
45
|
+
import ParticipantLayout, { Layout, RequestKeyFrame, StopStream } from './types/ParticipantLayout';
|
|
46
46
|
import { ParticipantListChunkParameters } from './types/ParticipantListChunk';
|
|
47
47
|
import ParticipantPriority from './types/ParticipantPriority';
|
|
48
48
|
import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
|
|
49
|
-
import { Room, RoomsUpdate, RoomParticipantUpdate } from './types/Room';
|
|
49
|
+
import { Room, RoomsUpdate, RoomParticipantUpdate, Rooms } from './types/Room';
|
|
50
50
|
import RoomsEventType from './enums/RoomsEventType';
|
|
51
51
|
import { ScreenCaptureSettings } from './types/ScreenCaptureSettings';
|
|
52
52
|
import SignalingMessage from './types/SignalingMessage';
|
|
53
53
|
import { WaitingHallResponse } from './types/WaitingHall';
|
|
54
54
|
import { IFeedbackExternal } from './types/Feedback';
|
|
55
|
-
import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IUpdateMovieData } from './types/MovieShare';
|
|
55
|
+
import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IUpdateMovieData, IMovieMetaData } from './types/MovieShare';
|
|
56
56
|
import { IStartStreamData, IStopStreamData } from './types/Streams';
|
|
57
57
|
import ConversationFeature from './enums/ConversationFeature';
|
|
58
58
|
import { IFeaturesPerRole } from './types/ConversationFeature';
|
|
@@ -73,6 +73,10 @@ export declare const browser: {
|
|
|
73
73
|
* Возвращает все подключенные устройства вывода звука
|
|
74
74
|
*/
|
|
75
75
|
getOutput: typeof WebRTCUtils.getOutput;
|
|
76
|
+
/**
|
|
77
|
+
* Возвращает тип используемой камеры (передняя или задняя)
|
|
78
|
+
*/
|
|
79
|
+
getVideoFacingMode: typeof WebRTCUtils.getVideoFacingMode;
|
|
76
80
|
/**
|
|
77
81
|
* Есть ли у пользователя камера
|
|
78
82
|
*/
|
|
@@ -288,6 +292,13 @@ export declare function addParticipantInternal(uid: OkUserId, params?: AddPartic
|
|
|
288
292
|
*/
|
|
289
293
|
export declare function removeParticipant(externalId: string | ExternalId, ban?: boolean): Promise<void>;
|
|
290
294
|
export declare function removeParticipantInternal(uid: OkUserId, ban?: boolean): Promise<void>;
|
|
295
|
+
/**
|
|
296
|
+
* Изменить камеру на фронтальную или заднюю (для мобильных устройств)
|
|
297
|
+
*
|
|
298
|
+
* @param kind
|
|
299
|
+
* @param facingMode
|
|
300
|
+
*/
|
|
301
|
+
export declare function changeDevice(kind: 'videoinput', facingMode: FacingMode): Promise<void>;
|
|
291
302
|
/**
|
|
292
303
|
* Изменить камеру, микрофон или динамик
|
|
293
304
|
*
|
|
@@ -589,7 +600,7 @@ export declare function getWaitingHall(pageMarker?: string | null, count?: numbe
|
|
|
589
600
|
* @param demote Запретить вход
|
|
590
601
|
*/
|
|
591
602
|
export declare function promoteParticipant(externalId: ExternalId, demote?: boolean): Promise<void>;
|
|
592
|
-
export declare function getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<
|
|
603
|
+
export declare function getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<ExternalParticipantListChunk>;
|
|
593
604
|
export declare function getParticipants(parameters: IGetParticipantsParameters): Promise<ExternalParticipant[]>;
|
|
594
605
|
export declare function feedback(key: string): Promise<SignalingMessage>;
|
|
595
606
|
export declare function enableFeatureForRoles(feature: ConversationFeature, roles: UserRole[]): Promise<void>;
|
|
@@ -615,5 +626,5 @@ export declare function requestAsr(request: boolean): Promise<void>;
|
|
|
615
626
|
* Версия SDK
|
|
616
627
|
*/
|
|
617
628
|
export declare function version(): string;
|
|
618
|
-
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, ScreenCaptureSettings, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, };
|
|
629
|
+
export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, 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, };
|
|
619
630
|
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, };
|