@vkontakte/calls-sdk 2.8.2-dev.5a4c751.0 → 2.8.2-dev.5bddf7a.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 +17 -4
- package/abstract/BaseSignaling.d.ts +3 -2
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/AudioOutput.d.ts +8 -3
- package/classes/Conversation.d.ts +7 -7
- package/classes/MediaSource.d.ts +3 -3
- package/classes/ParticipantIdRegistry.d.ts +5 -0
- package/classes/ProducerCommandSerializationService.d.ts +2 -0
- package/classes/codec/IEncoder.d.ts +1 -1
- package/classes/codec/LibVPxEncoder.d.ts +1 -1
- package/classes/codec/Types.d.ts +1 -1
- package/classes/codec/WebCodecsEncoder.d.ts +1 -1
- package/classes/screenshare/PacketHistory.d.ts +1 -0
- package/classes/screenshare/ScreenCaptureSender.d.ts +2 -1
- package/classes/screenshare/ScreenCongestionControl.d.ts +6 -1
- package/classes/transport/Statistics.d.ts +19 -1
- package/constants/Rooms.d.ts +1 -0
- package/default/Api.d.ts +2 -1
- package/default/ApiExternal.d.ts +11 -0
- package/default/Signaling.d.ts +5 -5
- package/enums/SignalingCommandType.d.ts +3 -1
- package/enums/SignalingNotification.d.ts +2 -1
- package/package.json +2 -5
- package/static/ApiTransport.d.ts +3 -1
- package/static/AuthData.d.ts +6 -6
- package/static/External.d.ts +14 -0
- package/static/Params.d.ts +79 -10
- package/types/AudienceMode.d.ts +8 -0
- package/types/Params.d.ts +1 -0
- package/types/RequestAsr.d.ts +3 -0
- package/types/SignalingMessage.d.ts +18 -0
- package/types/Streams.d.ts +3 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import BaseLogger from './abstract/BaseLogger';
|
|
|
8
8
|
import BaseSignaling, { AddParticipantParams } from './abstract/BaseSignaling';
|
|
9
9
|
import HangupReason, { HangupReasonData } from './classes/HangupReason';
|
|
10
10
|
import { MediaTrackKind } from './classes/MediaSource';
|
|
11
|
+
import { AudienceModeHandsResponse } from './types/AudienceMode';
|
|
11
12
|
import { TransportTopology } from './classes/transport/Transport';
|
|
12
13
|
import Api from './default/Api';
|
|
13
14
|
import Signaling from './default/Signaling';
|
|
@@ -46,7 +47,8 @@ import MediaModifiers from './types/MediaModifiers';
|
|
|
46
47
|
import { IVideoDimentions, MediaSettings } from './types/MediaSettings';
|
|
47
48
|
import { IAddMovieParams, IMovieMetaData, IMoviePreview, IOnRemoteMovieData, ISharedMovieInfo, ISharedMovieState, ISharedMovieStateResponse, ISharedMovieStoppedInfo, IUpdateMovieData } from './types/MovieShare';
|
|
48
49
|
import MuteStates, { IMuteParticipantInternalParams, IMuteParticipantParams } from './types/MuteStates';
|
|
49
|
-
import {
|
|
50
|
+
import { IApiEnv } from './types/Params';
|
|
51
|
+
import { CompositeUserId, IGetParticipantsParameters, OkUserId, ParticipantId, ParticipantListMarker, ParticipantListMarkers, ParticipantListType, ParticipantStateMapped } from './types/Participant';
|
|
50
52
|
import ParticipantLayout, { Layout, RequestKeyFrame, StopStream } from './types/ParticipantLayout';
|
|
51
53
|
import { ParticipantListChunkParameters } from './types/ParticipantListChunk';
|
|
52
54
|
import ParticipantPriority from './types/ParticipantPriority';
|
|
@@ -55,9 +57,11 @@ import { IRoomId, Room, RoomParticipantUpdate, Rooms, RoomsUpdate } from './type
|
|
|
55
57
|
import { ScreenCaptureSettings } from './types/ScreenCaptureSettings';
|
|
56
58
|
import SignalingMessage from './types/SignalingMessage';
|
|
57
59
|
import { StatResult } from './types/Statistics';
|
|
58
|
-
import { IStartStreamData, IStopStreamData } from './types/Streams';
|
|
60
|
+
import { IStartStreamData, IStopStreamData, IPublishStreamData } from './types/Streams';
|
|
59
61
|
import { WaitingHallResponse } from './types/WaitingHall';
|
|
60
62
|
import { ArrayDequeue } from './utils/ArrayDequeue';
|
|
63
|
+
import { ApiExternal } from './default/ApiExternal';
|
|
64
|
+
import AuthData from './static/AuthData';
|
|
61
65
|
/**
|
|
62
66
|
* Информация о текущем браузере
|
|
63
67
|
*/
|
|
@@ -502,6 +506,11 @@ export declare function startStream(isRecord?: boolean, name?: string | null, mo
|
|
|
502
506
|
* @param roomId
|
|
503
507
|
*/
|
|
504
508
|
export declare function stopStream(roomId?: number | null): Promise<undefined>;
|
|
509
|
+
/**
|
|
510
|
+
* Опубликовать трансляцию звонка
|
|
511
|
+
* @param roomId
|
|
512
|
+
*/
|
|
513
|
+
export declare function publishStream(roomId?: number | null): Promise<undefined>;
|
|
505
514
|
/**
|
|
506
515
|
* Устанавливает роль участника в запись звонка
|
|
507
516
|
* Если хотя бы у одного участника звонка выставлена роль, то в записи звонка будут
|
|
@@ -614,6 +623,10 @@ export declare function setVmojiSvg(svg: string | ArrayBuffer, externalId?: Exte
|
|
|
614
623
|
* @param backward Получить результат в обратном порядке
|
|
615
624
|
*/
|
|
616
625
|
export declare function getWaitingHall(pageMarker?: string | null, count?: number, backward?: boolean): Promise<WaitingHallResponse>;
|
|
626
|
+
/**
|
|
627
|
+
* Получить список слушателей, запросивших повышение в комнате в режиме Audience
|
|
628
|
+
*/
|
|
629
|
+
export declare function getAudienceModeHands(): Promise<AudienceModeHandsResponse>;
|
|
617
630
|
/**
|
|
618
631
|
* Разрешить/запретить пользователю войти из зала ожидания/стать спикером комнаты
|
|
619
632
|
* в режиме Audience
|
|
@@ -661,5 +674,5 @@ export declare function requestAsr(request: boolean): Promise<void>;
|
|
|
661
674
|
* Версия SDK
|
|
662
675
|
*/
|
|
663
676
|
export declare function version(): string;
|
|
664
|
-
export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IAsrStartParams, IAsrStopParams, IAsrData, 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, IRoomId, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, };
|
|
665
|
-
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, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, };
|
|
677
|
+
export type { AddParticipantParams, AudienceModeHandsResponse, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IApiEnv, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantId, 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, IRoomId, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, IPublishStreamData, };
|
|
678
|
+
export { Api, AuthData, 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, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, ApiExternal, };
|
|
@@ -19,7 +19,7 @@ import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
|
19
19
|
import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
|
|
20
20
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
21
21
|
import SignalingMessage from '../types/SignalingMessage';
|
|
22
|
-
import { IRecordConfData, IStartStreamData, IStopStreamData } from '../types/Streams';
|
|
22
|
+
import { IPublishStreamData, IRecordConfData, IStartStreamData, IStopStreamData } from '../types/Streams';
|
|
23
23
|
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
24
24
|
import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
|
|
25
25
|
/**
|
|
@@ -74,6 +74,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
74
74
|
abstract removeRooms(roomIds: number[]): Promise<SignalingMessage>;
|
|
75
75
|
abstract startStream(data: IStartStreamData): Promise<SignalingMessage>;
|
|
76
76
|
abstract stopStream(data: IStopStreamData): Promise<SignalingMessage>;
|
|
77
|
+
abstract publishStream(data: IPublishStreamData): Promise<SignalingMessage>;
|
|
77
78
|
abstract recordSetConf(conf: IRecordConfData): Promise<SignalingMessage>;
|
|
78
79
|
abstract getRecordStatus(): Promise<SignalingMessage>;
|
|
79
80
|
abstract switchTopology(topology: TransportTopology, force?: boolean): Promise<SignalingMessage>;
|
|
@@ -95,10 +96,10 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
95
96
|
abstract requestPromotion(demote: boolean): Promise<SignalingMessage>;
|
|
96
97
|
abstract acceptPromotion(reject: boolean): Promise<SignalingMessage>;
|
|
97
98
|
abstract feedback(key: string): Promise<SignalingMessage>;
|
|
99
|
+
abstract getHandQueue(): Promise<SignalingMessage>;
|
|
98
100
|
abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
|
|
99
101
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
100
102
|
abstract useCommandDataChannel(status: boolean): void;
|
|
101
|
-
abstract setAsrDataChannel(dataChannel: RTCDataChannel): void;
|
|
102
103
|
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
103
104
|
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
104
105
|
abstract startAsr(params: IAsrStartParams): Promise<SignalingMessage>;
|