@vkontakte/calls-sdk 2.8.4-dev.1ec7c7c.0 → 2.8.4-dev.2276c8c.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 +10 -3
- package/abstract/BaseApi.d.ts +5 -2
- package/abstract/BaseSignaling.d.ts +5 -5
- package/calls-sdk.cjs.js +9 -8
- package/calls-sdk.esm.js +9 -8
- package/classes/Conversation.d.ts +3 -2
- package/classes/transport/DirectTransport.d.ts +5 -0
- package/classes/transport/Transport.d.ts +2 -1
- package/default/Api.d.ts +8 -3
- package/default/Signaling.d.ts +5 -5
- package/enums/SignalingNotification.d.ts +2 -1
- package/package.json +2 -2
- package/static/Debug.d.ts +1 -0
- package/static/External.d.ts +6 -0
- package/static/Params.d.ts +23 -8
- package/static/Utils.d.ts +4 -2
- package/types/ExternalId.d.ts +1 -0
- package/types/Participant.d.ts +7 -0
- package/types/SignalingMessage.d.ts +18 -0
- package/types/Vmoji.d.ts +1 -1
- package/types/WaitingHall.d.ts +3 -12
package/CallsSDK.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ import ParticipantPriority from './types/ParticipantPriority';
|
|
|
55
55
|
import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
|
|
56
56
|
import { IRoomId, Room, RoomParticipantUpdate, Rooms, RoomsUpdate } from './types/Room';
|
|
57
57
|
import { ScreenCaptureSettings } from './types/ScreenCaptureSettings';
|
|
58
|
-
import SignalingMessage from './types/SignalingMessage';
|
|
58
|
+
import SignalingMessage, { GetRoomsSignalingResponse, GetParticipantsSignalingResponse } from './types/SignalingMessage';
|
|
59
59
|
import { StatResult } from './types/Statistics';
|
|
60
60
|
import { IStartStreamData, IStopStreamData, IPublishStreamData } from './types/Streams';
|
|
61
61
|
import { WaitingHallResponse } from './types/WaitingHall';
|
|
@@ -208,7 +208,7 @@ export declare function setVideoEffects(effects: VideoEffects): void;
|
|
|
208
208
|
* @param vmoji Экземпляр класса `Vmoji` из `@vkontakte/calls-vmoji`
|
|
209
209
|
* @param sdk Экземпляр модуля `@vkontakte/calls-vmoji`, нужен для проброски дебаг сообщений
|
|
210
210
|
*/
|
|
211
|
-
export declare function setVmoji(vmoji: typeof Vmoji, sdk?: Parameters<typeof Vmoji.setSDK>[0] | null, renderingOptions?: Vmoji.RenderingOptions
|
|
211
|
+
export declare function setVmoji(vmoji: typeof Vmoji, sdk?: Parameters<typeof Vmoji.setSDK>[0] | null, renderingOptions?: Partial<Vmoji.RenderingOptions>, protocolVersion?: Vmoji.AnimojiVersion): void;
|
|
212
212
|
/**
|
|
213
213
|
* Инициализирует библиотеку
|
|
214
214
|
*
|
|
@@ -619,6 +619,12 @@ export declare function setAudioStream(stream: MediaStream): Promise<void>;
|
|
|
619
619
|
* нужен только в случае присвоения участнику чужого аватара
|
|
620
620
|
*/
|
|
621
621
|
export declare function setVmojiSvg(svg: string | ArrayBuffer, externalId?: ExternalId | null, customKey?: string | null): Promise<void>;
|
|
622
|
+
/**
|
|
623
|
+
* Позволяет установить цвет фона собственного vmoji
|
|
624
|
+
*
|
|
625
|
+
* @param {(RGBTuple|string)} fill - цвет в виде rgb-кортежа или hex-кода
|
|
626
|
+
*/
|
|
627
|
+
export declare function setVmojiFill(fill: Vmoji.RGBTuple | string): void;
|
|
622
628
|
/**
|
|
623
629
|
* Получить состояние зала ожидания
|
|
624
630
|
*
|
|
@@ -677,9 +683,10 @@ export declare function stopAsr(params?: IAsrStopParams): Promise<void>;
|
|
|
677
683
|
export declare function requestAsr(request: boolean): Promise<void>;
|
|
678
684
|
export declare function startUrlSharing(sharedUrl: string): Promise<void>;
|
|
679
685
|
export declare function stopUrlSharing(): Promise<void>;
|
|
686
|
+
export declare function sendTestCommand(name: string, params?: any): void;
|
|
680
687
|
/**
|
|
681
688
|
* Версия SDK
|
|
682
689
|
*/
|
|
683
690
|
export declare function version(): string;
|
|
684
|
-
export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, 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, VmojiError, };
|
|
691
|
+
export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, 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, 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, };
|
|
685
692
|
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, };
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -52,12 +52,15 @@ export default abstract class BaseApi {
|
|
|
52
52
|
* method: vchat.clientStats
|
|
53
53
|
*/
|
|
54
54
|
logClientStats(items: ClientStats[]): void;
|
|
55
|
-
prepareUserIds(ids: OkUserId[]): Promise<void>;
|
|
56
55
|
abstract getOkIdsByExternalIds(externalIds: ExternalId[]): Promise<OkUserId[]>;
|
|
57
56
|
abstract getParticipantIdsByExternalIds(externalIds: ExternalId[]): Promise<Map<ExternalId, ParticipantId>>;
|
|
58
57
|
abstract getExternalIdsByOkIds(uids: OkUserId[]): Promise<ExternalParticipantId[]>;
|
|
59
58
|
getCachedOkIdByExternalId(externalId: ExternalId): ParticipantId | null;
|
|
60
|
-
cacheExternalId(
|
|
59
|
+
cacheExternalId(compositeId: OkUserId | CompositeUserId | ParticipantId, externalId: ExternalParticipantId): void;
|
|
60
|
+
mapDecorativeId(decorativeId: OkUserId | CompositeUserId | ParticipantId, okId: OkUserId | CompositeUserId): void;
|
|
61
|
+
unmapDecorativeId(decorativeId: OkUserId | CompositeUserId | ParticipantId): void;
|
|
62
|
+
getDecorativeIdByInitialId(okId: OkUserId | CompositeUserId | ParticipantId): OkUserId | undefined;
|
|
63
|
+
replaceByInitialIdIdIfExists(id: OkUserId | CompositeUserId | ParticipantId): OkUserId;
|
|
61
64
|
hangupConversation(conversationId: string): void;
|
|
62
65
|
sendUserFeedbackStats(conversationId: string, userResponse: number, reason?: string, groupCallUsersCount?: number): void;
|
|
63
66
|
removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
@@ -19,9 +19,8 @@ import MuteStates from '../types/MuteStates';
|
|
|
19
19
|
import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
20
20
|
import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
|
|
21
21
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
22
|
-
import SignalingMessage from '../types/SignalingMessage';
|
|
22
|
+
import SignalingMessage, { GetParticipantsSignalingResponse, GetRoomsSignalingResponse } from '../types/SignalingMessage';
|
|
23
23
|
import { IPublishStreamData, IRecordConfData, IStartStreamData, IStopStreamData } from '../types/Streams';
|
|
24
|
-
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
25
24
|
import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
|
|
26
25
|
/**
|
|
27
26
|
* Параметры добавления пользователя в звонок
|
|
@@ -73,7 +72,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
73
72
|
abstract updateRooms(rooms: Record<any, any>[], assignRandomly?: boolean): Promise<SignalingMessage>;
|
|
74
73
|
abstract activateRooms(roomIds: number[], deactivate: boolean): Promise<SignalingMessage>;
|
|
75
74
|
abstract switchRoom(toRoomId: number | null, participantId?: ParticipantId): Promise<SignalingMessage>;
|
|
76
|
-
abstract getRooms(withParticipants: boolean): Promise<
|
|
75
|
+
abstract getRooms(withParticipants: boolean): Promise<GetRoomsSignalingResponse>;
|
|
77
76
|
abstract removeRooms(roomIds: number[]): Promise<SignalingMessage>;
|
|
78
77
|
abstract startStream(data: IStartStreamData): Promise<SignalingMessage>;
|
|
79
78
|
abstract stopStream(data: IStopStreamData): Promise<SignalingMessage>;
|
|
@@ -96,7 +95,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
96
95
|
abstract changeOptions(changes: {
|
|
97
96
|
[key in ConversationOption]?: boolean;
|
|
98
97
|
}): Promise<SignalingMessage>;
|
|
99
|
-
abstract getWaitingHall(fromId: WaitingParticipantId | null, count?: number, backward?: boolean): Promise<SignalingMessage>;
|
|
98
|
+
abstract getWaitingHall(fromId: SignalingMessage.WaitingParticipantId | null, count?: number, backward?: boolean): Promise<SignalingMessage>;
|
|
100
99
|
abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
|
|
101
100
|
abstract requestPromotion(unrequest: boolean): Promise<SignalingMessage>;
|
|
102
101
|
abstract acceptPromotion(reject: boolean): Promise<SignalingMessage>;
|
|
@@ -106,7 +105,8 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
106
105
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
107
106
|
abstract useCommandDataChannel(status: boolean): void;
|
|
108
107
|
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
109
|
-
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<
|
|
108
|
+
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<GetParticipantsSignalingResponse>;
|
|
109
|
+
abstract getPeerId(): number | null;
|
|
110
110
|
abstract startAsr(params: IAsrStartParams): Promise<SignalingMessage>;
|
|
111
111
|
abstract stopAsr(params?: IAsrStopParams): Promise<SignalingMessage>;
|
|
112
112
|
abstract requestAsr(request: boolean): Promise<SignalingMessage>;
|