@vkontakte/calls-sdk 2.8.6-dev.d9496e27.0 → 2.8.6-dev.df4c3f62.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 +19 -6
- package/abstract/BaseSignaling.d.ts +7 -3
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +6 -5
- package/classes/MediaSource.d.ts +9 -0
- package/classes/ProducerCommandSerializationService.d.ts +2 -0
- package/classes/stat/CodecStatsAggregator.d.ts +19 -0
- package/classes/stat/EventMetricsService.d.ts +9 -0
- package/classes/transport/ServerTransport.d.ts +5 -0
- package/classes/transport/Transport.d.ts +1 -0
- package/default/ApiExternal.d.ts +3 -2
- package/default/Signaling.d.ts +10 -4
- package/enums/SignalingCommandType.d.ts +2 -1
- package/enums/Stat.d.ts +2 -0
- package/package.json +9 -3
- package/static/ApiTransport.d.ts +3 -2
- package/static/Params.d.ts +40 -10
- package/static/SimulcastInfo.d.ts +13 -0
- package/static/Utils.d.ts +2 -1
- package/static/WebRTCUtils.d.ts +5 -0
- package/types/ChangeSimulcast.d.ts +6 -0
- package/types/ConversationResponse.d.ts +4 -0
- package/types/ExternalId.d.ts +1 -0
- package/types/MovieShare.d.ts +4 -0
- package/types/Params.d.ts +1 -0
- package/types/Participant.d.ts +9 -0
- package/types/PerfStatReporter.d.ts +1 -0
- package/types/SimulcastInfo.d.ts +10 -0
- package/types/Statistics.d.ts +158 -4
- package/types/VideoSettings.d.ts +12 -0
- package/types/WebTransport.d.ts +34 -0
- package/utils/LengthPrefixed.d.ts +48 -0
- package/utils/VariableLengthInteger.d.ts +18 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -47,8 +47,8 @@ import MediaModifiers from './types/MediaModifiers';
|
|
|
47
47
|
import { IVideoDimentions, MediaSettings } from './types/MediaSettings';
|
|
48
48
|
import { IAddMovieParams, IMovieMetaData, IMoviePreview, IOnRemoteMovieData, ISharedMovieInfo, ISharedMovieState, ISharedMovieStateResponse, ISharedMovieStoppedInfo, IUpdateMovieData } from './types/MovieShare';
|
|
49
49
|
import MuteStates, { IMuteParticipantInternalParams, IMuteParticipantParams } from './types/MuteStates';
|
|
50
|
-
import { IApiEnv } from './types/Params';
|
|
51
|
-
import { CompositeUserId, IGetParticipantsParameters, OkUserId, ParticipantId, ParticipantListMarker, ParticipantListMarkers, ParticipantListType, ParticipantsStateList, ParticipantStateMapped } from './types/Participant';
|
|
50
|
+
import { IAPIBaseUrl, IApiEnv } from './types/Params';
|
|
51
|
+
import { CompositeUserId, IGetParticipantsParameters, OkUserId, ParticipantId, ParticipantListMarker, ParticipantListMarkers, ParticipantListType, ParticipantsStateList, ParticipantStateMapped, ParticipantStateData, ParticipantStateDataKey, ParticipantStateDataValue } from './types/Participant';
|
|
52
52
|
import ParticipantLayout, { Layout, RequestKeyFrame, StopStream } from './types/ParticipantLayout';
|
|
53
53
|
import { ParticipantListChunkParameters } from './types/ParticipantListChunk';
|
|
54
54
|
import ParticipantPriority from './types/ParticipantPriority';
|
|
@@ -252,8 +252,9 @@ export declare function processPushInternal(conversationId: string, type?: UserT
|
|
|
252
252
|
* Авторизоваться для совершения звонков
|
|
253
253
|
*
|
|
254
254
|
* @param authToken Токен авторизации
|
|
255
|
+
* @param apiBaseUrl Базовый адрес для API. Если не передан, то не меняет установленный
|
|
255
256
|
*/
|
|
256
|
-
export declare function authorize(authToken?: string): Promise<void>;
|
|
257
|
+
export declare function authorize(authToken?: string, apiBaseUrl?: IAPIBaseUrl): Promise<void>;
|
|
257
258
|
/**
|
|
258
259
|
* Принять входящий звонок
|
|
259
260
|
*
|
|
@@ -293,6 +294,11 @@ export declare function hangup(): Promise<void>;
|
|
|
293
294
|
* @param params Параметры
|
|
294
295
|
*/
|
|
295
296
|
export declare function addParticipant(externalIds: ExternalId | ExternalId[], params?: AddParticipantParams): Promise<void>;
|
|
297
|
+
/**
|
|
298
|
+
* @deprecated - используйте addParticipant
|
|
299
|
+
* @param uids
|
|
300
|
+
* @param params
|
|
301
|
+
*/
|
|
296
302
|
export declare function addParticipantInternal(uids: OkUserId[], params?: AddParticipantParams): Promise<void>;
|
|
297
303
|
/**
|
|
298
304
|
* Удалить собеседника из звонка
|
|
@@ -301,6 +307,11 @@ export declare function addParticipantInternal(uids: OkUserId[], params?: AddPar
|
|
|
301
307
|
* @param ban Забанить пользователя
|
|
302
308
|
*/
|
|
303
309
|
export declare function removeParticipant(externalId: ExternalId, ban?: boolean): Promise<void>;
|
|
310
|
+
/**
|
|
311
|
+
* @deprecated - используйте removeParticipant
|
|
312
|
+
* @param uid
|
|
313
|
+
* @param ban
|
|
314
|
+
*/
|
|
304
315
|
export declare function removeParticipantInternal(uid: OkUserId, ban?: boolean): Promise<void>;
|
|
305
316
|
/**
|
|
306
317
|
* Изменить камеру на фронтальную или заднюю (для мобильных устройств)
|
|
@@ -375,7 +386,7 @@ export declare function changePriorities(priorities: ParticipantPriority[]): Pro
|
|
|
375
386
|
* @param state Список состояний в виде ключ-значение. Максимальная длина ключей и значений - 5 символов. Пустые значения будут пропущены
|
|
376
387
|
* @param externalId Внешний ID пользователя
|
|
377
388
|
*/
|
|
378
|
-
export declare function changeParticipantState(state:
|
|
389
|
+
export declare function changeParticipantState(state: ParticipantStateData, externalId?: ExternalId): Promise<void>;
|
|
379
390
|
/**
|
|
380
391
|
* Принудительно опустить руки участников в текущем сессионном зале админа
|
|
381
392
|
*/
|
|
@@ -720,9 +731,11 @@ export declare function requestAsr(request: boolean): Promise<void>;
|
|
|
720
731
|
export declare function startUrlSharing(sharedUrl: string): Promise<void>;
|
|
721
732
|
export declare function stopUrlSharing(): Promise<void>;
|
|
722
733
|
export declare function sendTestCommand(name: string, params?: any): void;
|
|
734
|
+
export declare function startAnalyzingAudio(expectAudio: boolean): void;
|
|
735
|
+
export declare function stopAnalyzingAudio(): void;
|
|
723
736
|
/**
|
|
724
737
|
* Версия SDK
|
|
725
738
|
*/
|
|
726
739
|
export declare function version(): string;
|
|
727
|
-
export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, CustomError, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, GetParticipantsSignalingResponse, GetRoomsSignalingResponse, HangupReasonData, IApiEnv, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantId, ParticipantLayout, ParticipantListMarkers, ParticipantListType, ParticipantPriority, ParticipantsStateList, 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, VmojiError, };
|
|
728
|
-
export { Api, AuthData, BaseLogger, 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, VolumeDetector, };
|
|
740
|
+
export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, CustomError, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, GetParticipantsSignalingResponse, GetRoomsSignalingResponse, HangupReasonData, IApiEnv, IAPIBaseUrl, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantId, ParticipantLayout, ParticipantListMarkers, ParticipantListType, ParticipantPriority, ParticipantsStateList, ParticipantStateData, ParticipantStateDataKey, 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, VmojiError, };
|
|
741
|
+
export { Api, AuthData, BaseLogger, CallDirection, CallType, ChatRoomEventType, ConversationOption, DebugMessageType, ExternalIdType, FacingMode, FatalError, HangupReason, HangupType, MediaOption, MediaTrackKind, MediaType, MuteState, ParticipantState, ParticipantStateDataValue, ParticipantStatus, RecordRole, Signaling, SignalingCommandType, SignalingConnectionType, SignalingNotification, UserRole, UserType, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, ApiExternal, VolumeDetector, };
|
|
@@ -16,10 +16,11 @@ import MediaModifiers from '../types/MediaModifiers';
|
|
|
16
16
|
import MediaSettings from '../types/MediaSettings';
|
|
17
17
|
import { IAddMovieParams, IUpdateMovieData } from '../types/MovieShare';
|
|
18
18
|
import MuteStates from '../types/MuteStates';
|
|
19
|
-
import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
19
|
+
import { CompositeUserId, ParticipantId, ParticipantStateData } from '../types/Participant';
|
|
20
20
|
import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
|
|
21
21
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
22
22
|
import SignalingMessage, { GetParticipantsSignalingResponse, GetRoomsSignalingResponse } from '../types/SignalingMessage';
|
|
23
|
+
import { ChangeSimulcast } from '../types/ChangeSimulcast';
|
|
23
24
|
import { IPublishStreamData, IRecordConfData, IStartStreamData, IStopStreamData } from '../types/Streams';
|
|
24
25
|
import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
|
|
25
26
|
/**
|
|
@@ -53,9 +54,10 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
53
54
|
abstract sendSdp(participantId: ParticipantId, sdp: RTCSessionDescriptionInit, extraPayload?: Record<string, any>): Promise<SignalingMessage>;
|
|
54
55
|
abstract sendCandidate(participantId: ParticipantId, candidate: RTCIceCandidate): Promise<SignalingMessage>;
|
|
55
56
|
abstract changeMediaSettings(mediaSettings: MediaSettings): Promise<SignalingMessage>;
|
|
56
|
-
abstract changeParticipantState(state:
|
|
57
|
+
abstract changeParticipantState(state: ParticipantStateData, compositeUserId?: CompositeUserId): Promise<SignalingMessage>;
|
|
57
58
|
abstract putHandsDown(): Promise<SignalingMessage>;
|
|
58
|
-
abstract addParticipant(
|
|
59
|
+
abstract addParticipant(externalIds: CompositeUserId[], params?: AddParticipantParams): Promise<SignalingMessage>;
|
|
60
|
+
abstract addParticipantLegacy(participantIds: CompositeUserId[], params?: AddParticipantParams): Promise<SignalingMessage>;
|
|
59
61
|
abstract removeParticipant(participantId: CompositeUserId, ban?: boolean): Promise<SignalingMessage>;
|
|
60
62
|
abstract allocateConsumer(description: RTCSessionDescription | null, capabilities: {
|
|
61
63
|
[key: string]: number | boolean | string;
|
|
@@ -99,6 +101,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
99
101
|
abstract updateMediaModifiers(mediaModifiers: MediaModifiers): Promise<SignalingMessage>;
|
|
100
102
|
abstract enableVideoSuspend(enabled: boolean): Promise<SignalingMessage>;
|
|
101
103
|
abstract enableVideoSuspendSuggest(enabled: boolean): Promise<SignalingMessage>;
|
|
104
|
+
abstract changeSimulcast(changeSimulcast: ChangeSimulcast): Promise<SignalingMessage>;
|
|
102
105
|
abstract changeOptions(changes: {
|
|
103
106
|
[key in ConversationOption]?: boolean;
|
|
104
107
|
}): Promise<SignalingMessage>;
|
|
@@ -121,6 +124,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
121
124
|
setParticipantIdRegistry(participantIdRegistry: ParticipantIdRegistry): void;
|
|
122
125
|
requestRealloc(): void;
|
|
123
126
|
setEndpoint(endpoint: string): void;
|
|
127
|
+
setWebTransportEndpoint(endpoint: string | null): void;
|
|
124
128
|
setConversationId(conversationId: string): void;
|
|
125
129
|
readyToSend(isReady?: boolean): void;
|
|
126
130
|
cleanup(): void;
|