@vkontakte/calls-sdk 2.8.11-dev.f204132b.0 → 2.8.11-dev.fdf6f999.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 +14 -9
- package/abstract/BaseSignaling.d.ts +4 -3
- package/calls-sdk.cjs.js +11 -9
- package/calls-sdk.esm.js +5589 -5199
- package/classes/Conversation.d.ts +13 -11
- package/classes/ConversationResponseValidator.d.ts +3 -0
- package/classes/MediaSource.d.ts +0 -7
- package/classes/SpecListener.d.ts +0 -2
- package/classes/stat/StatFirstMediaReceived.d.ts +2 -1
- package/classes/transport/DirectTransport.d.ts +10 -0
- package/classes/transport/ServerTransport.d.ts +14 -0
- package/classes/transport/Transport.d.ts +20 -1
- package/default/Signaling.d.ts +29 -45
- package/default/SignalingTransport.d.ts +68 -0
- package/enums/HangupType.d.ts +2 -1
- package/enums/SignalingNotification.d.ts +1 -2
- package/package.json +1 -1
- package/static/DebugVideoStats.d.ts +37 -0
- package/static/External.d.ts +76 -143
- package/static/Params.d.ts +87 -83
- package/types/SignalingMessage.d.ts +1 -4
- package/types/Statistics.d.ts +4 -0
- package/types/VideoStreamDebug.d.ts +5 -0
- package/types/WebTransport.d.ts +4 -0
- package/classes/CallRegistry.d.ts +0 -22
- package/static/Capabilities.d.ts +0 -5
- package/types/Capabilities.d.ts +0 -24
package/CallsSDK.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ import { ScreenCaptureSettings } from './types/ScreenCaptureSettings';
|
|
|
59
59
|
import SignalingMessage, { GetRoomsSignalingResponse, GetParticipantsSignalingResponse } from './types/SignalingMessage';
|
|
60
60
|
import { StatResult } from './types/Statistics';
|
|
61
61
|
import { IStartStreamData, IStopStreamData, IPublishStreamData } from './types/Streams';
|
|
62
|
+
import type { VideoStreamDebugInfo } from './types/VideoStreamDebug';
|
|
62
63
|
import { WaitingHallResponse } from './types/WaitingHall';
|
|
63
64
|
import { ArrayDequeue } from './utils/ArrayDequeue';
|
|
64
65
|
import { ApiExternal } from './default/ApiExternal';
|
|
@@ -267,11 +268,11 @@ export declare function authorize(authToken?: string, apiBaseUrl?: IAPIBaseUrl):
|
|
|
267
268
|
*
|
|
268
269
|
* @param mediaOptions Нужно ли включать камеру и микрофон
|
|
269
270
|
*/
|
|
270
|
-
export declare function acceptCall(mediaOptions?: MediaOption[]
|
|
271
|
+
export declare function acceptCall(mediaOptions?: MediaOption[]): Promise<ConversationData>;
|
|
271
272
|
/**
|
|
272
273
|
* Отклонить входящий звонок
|
|
273
274
|
*/
|
|
274
|
-
export declare function declineCall(
|
|
275
|
+
export declare function declineCall(): Promise<void>;
|
|
275
276
|
/**
|
|
276
277
|
* Присоединиться к активному звонку
|
|
277
278
|
*
|
|
@@ -294,7 +295,7 @@ export declare function joinCallByLink(joinLink: string, mediaOptions?: MediaOpt
|
|
|
294
295
|
/**
|
|
295
296
|
* Завершить текущий разговор
|
|
296
297
|
*/
|
|
297
|
-
export declare function hangup(
|
|
298
|
+
export declare function hangup(): Promise<void>;
|
|
298
299
|
/**
|
|
299
300
|
* Добавить собеседника в звонок
|
|
300
301
|
*
|
|
@@ -342,7 +343,7 @@ export declare function changeDevice(kind: MediaDeviceKind, deviceId: string): P
|
|
|
342
343
|
* state Включить или выключить захват экрана
|
|
343
344
|
* settings Параметры захваты экрана
|
|
344
345
|
*/
|
|
345
|
-
export declare function captureScreen(stateOrSettings: boolean | ScreenCaptureSettings
|
|
346
|
+
export declare function captureScreen(stateOrSettings: boolean | ScreenCaptureSettings): Promise<void>;
|
|
346
347
|
/**
|
|
347
348
|
* Включить/выключить передачу точек вимоджи
|
|
348
349
|
*
|
|
@@ -363,13 +364,13 @@ export declare function setVideoStream(stream: MediaStream, isScreen?: boolean):
|
|
|
363
364
|
*
|
|
364
365
|
* @param enabled
|
|
365
366
|
*/
|
|
366
|
-
export declare function toggleLocalVideo(enabled: boolean
|
|
367
|
+
export declare function toggleLocalVideo(enabled: boolean): Promise<void>;
|
|
367
368
|
/**
|
|
368
369
|
* Включить или выключить свой микрофон
|
|
369
370
|
*
|
|
370
371
|
* @param enabled
|
|
371
372
|
*/
|
|
372
|
-
export declare function toggleLocalAudio(enabled: boolean
|
|
373
|
+
export declare function toggleLocalAudio(enabled: boolean): Promise<void>;
|
|
373
374
|
/**
|
|
374
375
|
* Изменяет размеры локального видео
|
|
375
376
|
*
|
|
@@ -395,6 +396,12 @@ export declare function changePriorities(priorities: ParticipantPriority[]): Pro
|
|
|
395
396
|
* @param externalId Внешний ID пользователя
|
|
396
397
|
*/
|
|
397
398
|
export declare function changeParticipantState(state: ParticipantStateData, externalId?: ExternalId): Promise<void>;
|
|
399
|
+
/**
|
|
400
|
+
* Ставит звонок на удержание
|
|
401
|
+
*
|
|
402
|
+
* @param hold - true/false
|
|
403
|
+
*/
|
|
404
|
+
export declare function hold(hold: boolean): Promise<void>;
|
|
398
405
|
/**
|
|
399
406
|
* Принудительно опустить руки участников в текущем сессионном зале админа
|
|
400
407
|
*/
|
|
@@ -775,8 +782,6 @@ export declare function stopUrlSharing(): Promise<void>;
|
|
|
775
782
|
export declare function sendTestCommand(name: string, params?: any): void;
|
|
776
783
|
export declare function startAnalyzingAudio(expectAudio: boolean, expectedActiveTracks?: number | null, expectedTrackFrequencies?: number[] | null): void;
|
|
777
784
|
export declare function stopAnalyzingAudio(): void;
|
|
778
|
-
export declare function switchCall(conversationId: string): Promise<void>;
|
|
779
|
-
export declare function getActiveCallId(): string | null;
|
|
780
785
|
/**
|
|
781
786
|
* Возвращает текущее время, скорректированное на смещение относительно серверного времени.
|
|
782
787
|
* Доступно после установки соединения (начало/присоединение к звонку).
|
|
@@ -787,5 +792,5 @@ export declare function getSyncedTime(): number;
|
|
|
787
792
|
* Версия SDK
|
|
788
793
|
*/
|
|
789
794
|
export declare function version(): string;
|
|
790
|
-
export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, CustomError, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, DisplayLayoutRequest, 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, FastStartHandler, FastStartParams, FastJoinHandler, FastJoinParams, FastJoinResponse, };
|
|
795
|
+
export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, CustomError, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, DisplayLayoutRequest, 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, VideoStreamDebugInfo, WaitingHallResponse, IMovieMetaData, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IRoomId, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, IPublishStreamData, VmojiError, FastStartHandler, FastStartParams, FastJoinHandler, FastJoinParams, FastJoinResponse, };
|
|
791
796
|
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, };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import EventEmitter from '../classes/EventEmitter';
|
|
2
2
|
import { ParticipantIdRegistry } from '../classes/ParticipantIdRegistry';
|
|
3
|
-
import { TCapabilities } from '../types/Capabilities';
|
|
4
3
|
import { StreamDescriptionString } from '../types/ParticipantStreamDescription';
|
|
5
4
|
import { PerfStatReport } from '../types/PerfStatReporter';
|
|
6
5
|
import { NetworkStatReport } from '../types/NetworkStatReport';
|
|
@@ -62,12 +61,14 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
62
61
|
abstract sendCandidate(participantId: ParticipantId, candidate: RTCIceCandidate): Promise<SignalingMessage>;
|
|
63
62
|
abstract changeMediaSettings(mediaSettings: MediaSettings): Promise<SignalingMessage>;
|
|
64
63
|
abstract changeParticipantState(state: ParticipantStateData, compositeUserId?: CompositeUserId): Promise<SignalingMessage>;
|
|
65
|
-
abstract hold(hold: boolean
|
|
64
|
+
abstract hold(hold: boolean): Promise<SignalingMessage>;
|
|
66
65
|
abstract putHandsDown(): Promise<SignalingMessage>;
|
|
67
66
|
abstract addParticipant(externalIds: CompositeUserId[], params?: AddParticipantParams): Promise<SignalingMessage>;
|
|
68
67
|
abstract addParticipantLegacy(participantIds: CompositeUserId[], params?: AddParticipantParams): Promise<SignalingMessage>;
|
|
69
68
|
abstract removeParticipant(participantId: CompositeUserId, ban?: boolean): Promise<SignalingMessage>;
|
|
70
|
-
abstract allocateConsumer(description: RTCSessionDescription | null, capabilities:
|
|
69
|
+
abstract allocateConsumer(description: RTCSessionDescription | null, capabilities: {
|
|
70
|
+
[key: string]: number | boolean | string;
|
|
71
|
+
}): Promise<SignalingMessage>;
|
|
71
72
|
abstract acceptProducer(description: RTCSessionDescriptionInit, ssrcs: string[], sessionId: string): Promise<SignalingMessage>;
|
|
72
73
|
/**
|
|
73
74
|
* @deprecated Use updateDisplayLayout instead
|