@vkontakte/calls-sdk 2.8.2-dev.6caba1d.0 → 2.8.2-dev.968ce3b.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 -7
- package/abstract/BaseApi.d.ts +1 -1
- package/abstract/BaseSignaling.d.ts +9 -5
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +18 -13
- package/classes/FpsMeter.d.ts +10 -0
- package/classes/SpecListener.d.ts +0 -1
- package/classes/codec/Types.d.ts +11 -1
- package/classes/screenshare/PacketHistory.d.ts +2 -2
- package/classes/screenshare/ScreenCaptureSender.d.ts +12 -3
- package/classes/screenshare/ScreenCongestionControl.d.ts +1 -1
- package/classes/screenshare/StreamBuilder.d.ts +1 -0
- package/classes/screenshare/Utils.d.ts +1 -1
- package/classes/stat/StatAggregator.d.ts +1 -1
- package/classes/transport/BaseTransport.d.ts +13 -0
- package/classes/transport/DirectTransport.d.ts +7 -18
- package/classes/transport/ServerTransport.d.ts +5 -17
- package/classes/transport/Transport.d.ts +8 -5
- package/default/Signaling.d.ts +9 -5
- package/enums/FatalError.d.ts +1 -0
- package/enums/SignalingNotification.d.ts +0 -1
- package/package.json +3 -3
- package/static/External.d.ts +24 -22
- package/static/Params.d.ts +18 -28
- package/static/Utils.d.ts +6 -2
- package/types/Asr.d.ts +21 -0
- package/types/Conversation.d.ts +1 -0
- package/types/ExternalId.d.ts +1 -1
- package/types/{Logger.d.ts → IEventualStatLog.d.ts} +2 -2
- package/types/MovieShare.d.ts +2 -2
- package/types/Participant.d.ts +4 -3
- package/types/ParticipantListChunk.d.ts +1 -1
- package/types/ParticipantStreamDescription.d.ts +3 -2
- package/types/PerfStatReporter.d.ts +1 -1
- package/types/Room.d.ts +1 -0
- package/types/SignalingCommand.d.ts +2 -1
- package/types/SignalingMessage.d.ts +25 -4
- package/types/Statistics.d.ts +2 -2
- package/utils/ArrayDequeue.d.ts +1 -1
- package/utils/ArrayList.d.ts +5 -2
- package/utils/FastList.d.ts +5 -2
- package/utils/IList.d.ts +5 -2
package/CallsSDK.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ import { JSONArray, JSONObject, JSONType } from './static/Json';
|
|
|
33
33
|
import { ParamsObject } from './static/Params';
|
|
34
34
|
import Utils from './static/Utils';
|
|
35
35
|
import WebRTCUtils, { FacingMode } from './static/WebRTCUtils';
|
|
36
|
-
import { IAsrStartParams } from './types/Asr';
|
|
36
|
+
import { IAsrStartParams, IAsrStopParams, IAsrData } from './types/Asr';
|
|
37
37
|
import ConversationParams from './types/ConversationParams';
|
|
38
38
|
import ConversationResponse from './types/ConversationResponse';
|
|
39
39
|
import { ExternalId, ExternalIdType, ExternalParticipant, ExternalParticipantId, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers, ExternalUserId } from './types/ExternalId';
|
|
@@ -225,7 +225,7 @@ export declare function init(params: Partial<ParamsObject>): Promise<void>;
|
|
|
225
225
|
* @param onlyAdminCanShareMovie Только администратор может включать совметсный просмотр
|
|
226
226
|
*/
|
|
227
227
|
export declare function callTo(externalId?: string | ExternalId | string[] | ExternalId[], mediaOptions?: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean): Promise<ConversationData>;
|
|
228
|
-
export declare function callInternal(ids: OkUserId[], type: CallType, mediaOptions: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean): Promise<ConversationData>;
|
|
228
|
+
export declare function callInternal(ids: OkUserId[], type: CallType | undefined, mediaOptions: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean): Promise<ConversationData>;
|
|
229
229
|
/**
|
|
230
230
|
* Обработать пуш о входящем звонке
|
|
231
231
|
*
|
|
@@ -356,6 +356,7 @@ export declare function setLocalResolution(resolution: {
|
|
|
356
356
|
* Отрицательный приоритет выключит видео.
|
|
357
357
|
*
|
|
358
358
|
* @param priorities Список приоритетов
|
|
359
|
+
* @deprecated Use updateDisplayLayout instead
|
|
359
360
|
*/
|
|
360
361
|
export declare function changePriorities(priorities: ParticipantPriority[]): Promise<void>;
|
|
361
362
|
/**
|
|
@@ -443,7 +444,7 @@ export declare function customDataInternal(data: JSONObject, uid?: OkUserId | nu
|
|
|
443
444
|
* @returns Токен комнаты
|
|
444
445
|
*/
|
|
445
446
|
export declare function startConversation(payload?: string, requireAuthToJoin?: boolean, { onlyAdminCanShareMovie }?: {
|
|
446
|
-
onlyAdminCanShareMovie?: boolean;
|
|
447
|
+
onlyAdminCanShareMovie?: boolean | undefined;
|
|
447
448
|
}): Promise<string>;
|
|
448
449
|
/**
|
|
449
450
|
* Создать токен комнаты для подключения по ссылке к существующему звонку
|
|
@@ -482,12 +483,12 @@ export declare function forceRelayPolicy(enabled: boolean): void;
|
|
|
482
483
|
* @param groupId
|
|
483
484
|
* @param roomId
|
|
484
485
|
*/
|
|
485
|
-
export declare function startStream(isRecord?: boolean, name?: string | null, movieId?: string | null, privacy?: 'PUBLIC' | 'FRIENDS' | 'DIRECT_LINK', groupId?: string | null, roomId?: number | null): Promise<
|
|
486
|
+
export declare function startStream(isRecord?: boolean, name?: string | null, movieId?: string | null, privacy?: 'PUBLIC' | 'FRIENDS' | 'DIRECT_LINK', groupId?: string | null, roomId?: number | null): Promise<undefined>;
|
|
486
487
|
/**
|
|
487
488
|
* Завершить трансляцию звонка
|
|
488
489
|
* @param roomId
|
|
489
490
|
*/
|
|
490
|
-
export declare function stopStream(roomId?: number | null): Promise<
|
|
491
|
+
export declare function stopStream(roomId?: number | null): Promise<undefined>;
|
|
491
492
|
/**
|
|
492
493
|
* Устанавливает роль участника в запись звонка
|
|
493
494
|
* Если хотя бы у одного участника звонка выставлена роль, то в записи звонка будут
|
|
@@ -627,7 +628,7 @@ export declare function startAsr(params: IAsrStartParams): Promise<void>;
|
|
|
627
628
|
/**
|
|
628
629
|
* Заканчивает текстовую расшифровку звонка
|
|
629
630
|
*/
|
|
630
|
-
export declare function stopAsr(): Promise<void>;
|
|
631
|
+
export declare function stopAsr(params?: IAsrStopParams): Promise<void>;
|
|
631
632
|
/**
|
|
632
633
|
* Запрашивает/отключает реал-тайм расшифровку звонка
|
|
633
634
|
*/
|
|
@@ -636,5 +637,5 @@ export declare function requestAsr(request: boolean): Promise<void>;
|
|
|
636
637
|
* Версия SDK
|
|
637
638
|
*/
|
|
638
639
|
export declare function version(): string;
|
|
639
|
-
export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IAsrStartParams, 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, };
|
|
640
|
+
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, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, };
|
|
640
641
|
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, };
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import EventEmitter from '../classes/EventEmitter';
|
|
2
2
|
import { ParticipantIdRegistry } from '../classes/ParticipantIdRegistry';
|
|
3
|
+
import { StreamDescriptionString } from '../types/ParticipantStreamDescription';
|
|
3
4
|
import { PerfStatReport } from '../types/PerfStatReporter';
|
|
4
5
|
import { TransportTopology } from '../classes/transport/Transport';
|
|
5
6
|
import ConversationFeature from '../enums/ConversationFeature';
|
|
@@ -9,7 +10,7 @@ import RecordRole from '../enums/RecordRole';
|
|
|
9
10
|
import SignalingConnectionType from '../enums/SignalingConnectionType';
|
|
10
11
|
import UserRole from '../enums/UserRole';
|
|
11
12
|
import { JSONObject } from '../static/Json';
|
|
12
|
-
import { IAsrStartParams } from '../types/Asr';
|
|
13
|
+
import { IAsrStartParams, IAsrStopParams } from '../types/Asr';
|
|
13
14
|
import ConversationResponse from '../types/ConversationResponse';
|
|
14
15
|
import MediaModifiers from '../types/MediaModifiers';
|
|
15
16
|
import MediaSettings from '../types/MediaSettings';
|
|
@@ -55,11 +56,14 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
55
56
|
[key: string]: number | boolean | string;
|
|
56
57
|
}): Promise<SignalingMessage>;
|
|
57
58
|
abstract acceptProducer(description: RTCSessionDescriptionInit, ssrcs: string[]): Promise<SignalingMessage>;
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated Use updateDisplayLayout instead
|
|
61
|
+
*/
|
|
58
62
|
abstract changePriorities(priorities: {
|
|
59
63
|
[key: string]: number;
|
|
60
64
|
}): Promise<SignalingMessage | void>;
|
|
61
65
|
abstract updateDisplayLayout(layouts: {
|
|
62
|
-
[streamDesc:
|
|
66
|
+
[streamDesc: StreamDescriptionString]: ParticipantLayout | StopStream | RequestKeyFrame;
|
|
63
67
|
}): Promise<SignalingMessage | void>;
|
|
64
68
|
abstract addMovie(data: IAddMovieParams): Promise<SignalingMessage>;
|
|
65
69
|
abstract updateMovie(data: IUpdateMovieData): Promise<SignalingMessage>;
|
|
@@ -97,15 +101,15 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
97
101
|
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
98
102
|
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
99
103
|
abstract startAsr(params: IAsrStartParams): Promise<SignalingMessage>;
|
|
100
|
-
abstract stopAsr(): Promise<SignalingMessage>;
|
|
104
|
+
abstract stopAsr(params?: IAsrStopParams): Promise<SignalingMessage>;
|
|
101
105
|
abstract requestAsr(request: boolean): Promise<SignalingMessage>;
|
|
102
106
|
get ready(): boolean;
|
|
103
107
|
setParticipantIdRegistry(participantIdRegistry: ParticipantIdRegistry): void;
|
|
104
108
|
requestRealloc(): void;
|
|
105
109
|
setEndpoint(endpoint: string): void;
|
|
106
110
|
setConversationId(conversationId: string): void;
|
|
107
|
-
readyToSend(): void;
|
|
111
|
+
readyToSend(isReady?: boolean): void;
|
|
108
112
|
cleanup(): void;
|
|
109
|
-
requestTestMode(consumerCommand: string, producerCommand: string): void;
|
|
113
|
+
requestTestMode(consumerCommand: string, producerCommand: string | null): void;
|
|
110
114
|
getNextCommandSequenceNumber(): number;
|
|
111
115
|
}
|