@vkontakte/calls-sdk 2.8.4-dev.62dbdb8.0 → 2.8.4-dev.66659dc.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 +3 -2
- package/abstract/BaseApi.d.ts +2 -5
- package/abstract/BaseSignaling.d.ts +5 -4
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +7 -1
- package/classes/transport/Transport.d.ts +1 -0
- package/default/Api.d.ts +3 -8
- package/default/Signaling.d.ts +5 -4
- package/enums/SignalingNotification.d.ts +1 -2
- package/package.json +2 -2
- package/static/External.d.ts +7 -6
- package/static/Params.d.ts +6 -15
- package/static/Utils.d.ts +1 -3
- package/types/ExternalId.d.ts +0 -1
- package/types/Participant.d.ts +0 -7
- package/types/SignalingMessage.d.ts +0 -18
- package/types/Vmoji.d.ts +5 -0
- package/types/WaitingHall.d.ts +12 -3
package/CallsSDK.d.ts
CHANGED
|
@@ -55,13 +55,14 @@ 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
|
|
58
|
+
import SignalingMessage 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';
|
|
62
62
|
import { ArrayDequeue } from './utils/ArrayDequeue';
|
|
63
63
|
import { ApiExternal } from './default/ApiExternal';
|
|
64
64
|
import AuthData from './static/AuthData';
|
|
65
|
+
import { VmojiError } from './types/Vmoji';
|
|
65
66
|
/**
|
|
66
67
|
* Информация о текущем браузере
|
|
67
68
|
*/
|
|
@@ -680,5 +681,5 @@ export declare function stopUrlSharing(): Promise<void>;
|
|
|
680
681
|
* Версия SDK
|
|
681
682
|
*/
|
|
682
683
|
export declare function version(): string;
|
|
683
|
-
export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId,
|
|
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, };
|
|
684
685
|
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,15 +52,12 @@ export default abstract class BaseApi {
|
|
|
52
52
|
* method: vchat.clientStats
|
|
53
53
|
*/
|
|
54
54
|
logClientStats(items: ClientStats[]): void;
|
|
55
|
+
prepareUserIds(ids: OkUserId[]): Promise<void>;
|
|
55
56
|
abstract getOkIdsByExternalIds(externalIds: ExternalId[]): Promise<OkUserId[]>;
|
|
56
57
|
abstract getParticipantIdsByExternalIds(externalIds: ExternalId[]): Promise<Map<ExternalId, ParticipantId>>;
|
|
57
58
|
abstract getExternalIdsByOkIds(uids: OkUserId[]): Promise<ExternalParticipantId[]>;
|
|
58
59
|
getCachedOkIdByExternalId(externalId: ExternalId): ParticipantId | null;
|
|
59
|
-
cacheExternalId(
|
|
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;
|
|
60
|
+
cacheExternalId(participantId: CompositeUserId, externalId: ExternalParticipantId): void;
|
|
64
61
|
hangupConversation(conversationId: string): void;
|
|
65
62
|
sendUserFeedbackStats(conversationId: string, userResponse: number, reason?: string, groupCallUsersCount?: number): void;
|
|
66
63
|
removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
@@ -19,8 +19,9 @@ 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
|
|
22
|
+
import SignalingMessage from '../types/SignalingMessage';
|
|
23
23
|
import { IPublishStreamData, IRecordConfData, IStartStreamData, IStopStreamData } from '../types/Streams';
|
|
24
|
+
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
24
25
|
import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
|
|
25
26
|
/**
|
|
26
27
|
* Параметры добавления пользователя в звонок
|
|
@@ -72,7 +73,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
72
73
|
abstract updateRooms(rooms: Record<any, any>[], assignRandomly?: boolean): Promise<SignalingMessage>;
|
|
73
74
|
abstract activateRooms(roomIds: number[], deactivate: boolean): Promise<SignalingMessage>;
|
|
74
75
|
abstract switchRoom(toRoomId: number | null, participantId?: ParticipantId): Promise<SignalingMessage>;
|
|
75
|
-
abstract getRooms(withParticipants: boolean): Promise<
|
|
76
|
+
abstract getRooms(withParticipants: boolean): Promise<SignalingMessage>;
|
|
76
77
|
abstract removeRooms(roomIds: number[]): Promise<SignalingMessage>;
|
|
77
78
|
abstract startStream(data: IStartStreamData): Promise<SignalingMessage>;
|
|
78
79
|
abstract stopStream(data: IStopStreamData): Promise<SignalingMessage>;
|
|
@@ -95,7 +96,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
95
96
|
abstract changeOptions(changes: {
|
|
96
97
|
[key in ConversationOption]?: boolean;
|
|
97
98
|
}): Promise<SignalingMessage>;
|
|
98
|
-
abstract getWaitingHall(fromId:
|
|
99
|
+
abstract getWaitingHall(fromId: WaitingParticipantId | null, count?: number, backward?: boolean): Promise<SignalingMessage>;
|
|
99
100
|
abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
|
|
100
101
|
abstract requestPromotion(unrequest: boolean): Promise<SignalingMessage>;
|
|
101
102
|
abstract acceptPromotion(reject: boolean): Promise<SignalingMessage>;
|
|
@@ -105,7 +106,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
105
106
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
106
107
|
abstract useCommandDataChannel(status: boolean): void;
|
|
107
108
|
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
108
|
-
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<
|
|
109
|
+
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
109
110
|
abstract startAsr(params: IAsrStartParams): Promise<SignalingMessage>;
|
|
110
111
|
abstract stopAsr(params?: IAsrStopParams): Promise<SignalingMessage>;
|
|
111
112
|
abstract requestAsr(request: boolean): Promise<SignalingMessage>;
|