@vkontakte/calls-sdk 2.8.5-dev.f744eeb6.0 → 2.8.5
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 +11 -6
- package/abstract/BaseApi.d.ts +1 -0
- package/abstract/BaseSignaling.d.ts +9 -2
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/AudioFix.d.ts +4 -0
- package/classes/AudioOutput.d.ts +3 -0
- package/classes/Conversation.d.ts +4 -15
- package/classes/HangupReason.d.ts +4 -1
- package/classes/MediaSource.d.ts +5 -0
- package/classes/VideoEffectsFpsLimiter.d.ts +23 -0
- package/classes/stat/StatFirstMediaReceived.d.ts +6 -5
- package/default/Api.d.ts +1 -0
- package/default/Signaling.d.ts +2 -2
- package/enums/FatalError.d.ts +2 -1
- package/package.json +4 -4
- package/static/ApiTransport.d.ts +1 -0
- package/static/ConversationDebugLogger.d.ts +13 -0
- package/static/Params.d.ts +34 -0
- package/static/WebRTCUtils.d.ts +2 -1
- package/types/Conversation.d.ts +2 -12
- package/types/GetLogUploadUrlParams.d.ts +6 -0
- package/types/GetLogUploadUrlResponse.d.ts +3 -0
- package/types/Params.d.ts +1 -1
- package/types/Participant.d.ts +3 -0
- package/utils/Conversation.d.ts +4 -0
- package/utils/DebugStorage.d.ts +6 -0
- package/utils/Media.d.ts +1 -2
- package/utils/NavigatorPermissions.d.ts +13 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { EffectVoiceChange } from '@vkontakte/calls-audio-effects';
|
|
|
6
6
|
import type * as Vmoji from '@vkontakte/calls-vmoji';
|
|
7
7
|
import BaseLogger from './abstract/BaseLogger';
|
|
8
8
|
import { AddParticipantParams } from './abstract/BaseSignaling';
|
|
9
|
-
import HangupReason, { HangupReasonData } from './classes/HangupReason';
|
|
9
|
+
import HangupReason, { HangupReasonData, CustomError } from './classes/HangupReason';
|
|
10
10
|
import { MediaTrackKind } from './classes/MediaSource';
|
|
11
11
|
import { AudienceModeHandsResponse } from './types/AudienceMode';
|
|
12
12
|
import { TransportTopology } from './classes/transport/Transport';
|
|
@@ -289,11 +289,11 @@ export declare function hangup(): Promise<void>;
|
|
|
289
289
|
/**
|
|
290
290
|
* Добавить собеседника в звонок
|
|
291
291
|
*
|
|
292
|
-
* @param
|
|
292
|
+
* @param externalIds Внешние ID пользователей
|
|
293
293
|
* @param params Параметры
|
|
294
294
|
*/
|
|
295
|
-
export declare function addParticipant(
|
|
296
|
-
export declare function addParticipantInternal(
|
|
295
|
+
export declare function addParticipant(externalIds: ExternalId | ExternalId[], params?: AddParticipantParams): Promise<void>;
|
|
296
|
+
export declare function addParticipantInternal(uids: OkUserId[], params?: AddParticipantParams): Promise<void>;
|
|
297
297
|
/**
|
|
298
298
|
* Удалить собеседника из звонка
|
|
299
299
|
*
|
|
@@ -612,6 +612,11 @@ export declare function debug(enabled: boolean): void;
|
|
|
612
612
|
* @param args
|
|
613
613
|
*/
|
|
614
614
|
export declare function debugMessage(type: DebugMessageType, ...args: any[]): void;
|
|
615
|
+
/**
|
|
616
|
+
* Отправляет клиенские логи по conversationId на сервер OK
|
|
617
|
+
* @example можно посмотреть в examples/anonym/index.html
|
|
618
|
+
*/
|
|
619
|
+
export declare function uploadDebugLogs(): Promise<void>;
|
|
615
620
|
/**
|
|
616
621
|
* Эффект локального видео
|
|
617
622
|
*
|
|
@@ -667,7 +672,7 @@ export declare function getAudienceModeHands(): Promise<AudienceModeHandsRespons
|
|
|
667
672
|
* @param externalId Внешний ID пользователя
|
|
668
673
|
* @param demote Запретить вход/отобрать права спикера
|
|
669
674
|
*/
|
|
670
|
-
export declare function promoteParticipant(externalId
|
|
675
|
+
export declare function promoteParticipant(externalId?: ExternalId, demote?: boolean): Promise<void>;
|
|
671
676
|
/**
|
|
672
677
|
* Запросить/отозвать запрос на получение права стать спикером в комнате в
|
|
673
678
|
* режиме Audience
|
|
@@ -719,5 +724,5 @@ export declare function sendTestCommand(name: string, params?: any): void;
|
|
|
719
724
|
* Версия SDK
|
|
720
725
|
*/
|
|
721
726
|
export declare function version(): string;
|
|
722
|
-
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, 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, };
|
|
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, };
|
|
723
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, };
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export default abstract class BaseApi {
|
|
|
62
62
|
* method: vchat.clientEvents
|
|
63
63
|
*/
|
|
64
64
|
logClientEvents(items: ClientEvent[]): void;
|
|
65
|
+
abstract uploadDebugLogs(conversationId: string, startTime: number, endTime: number, log: string): Promise<void>;
|
|
65
66
|
abstract getOkIdsByExternalIds(externalIds: ExternalId[]): Promise<OkUserId[]>;
|
|
66
67
|
abstract getParticipantIdsByExternalIds(externalIds: ExternalId[]): Promise<Map<ExternalId, ParticipantId>>;
|
|
67
68
|
abstract getExternalIdsByOkIds(uids: OkUserId[]): Promise<ExternalParticipantId[]>;
|
|
@@ -26,12 +26,19 @@ import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
|
|
|
26
26
|
* Параметры добавления пользователя в звонок
|
|
27
27
|
*/
|
|
28
28
|
export interface AddParticipantParams {
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
*/
|
|
29
32
|
showChatHistory?: boolean;
|
|
30
33
|
ttChat?: boolean;
|
|
31
34
|
/**
|
|
32
35
|
* Удалить юзера из бан-листа. Доступно только админу звонка
|
|
33
36
|
*/
|
|
34
37
|
unban?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* JSON.stringify(\{show_chat_history: boolean\})
|
|
40
|
+
*/
|
|
41
|
+
payload?: string;
|
|
35
42
|
}
|
|
36
43
|
/**
|
|
37
44
|
* Should trigger SignalingEvent.NOTIFICATION on notification message and SignalingEvent.FAILED on error
|
|
@@ -48,7 +55,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
48
55
|
abstract changeMediaSettings(mediaSettings: MediaSettings): Promise<SignalingMessage>;
|
|
49
56
|
abstract changeParticipantState(state: Record<string, string>, compositeUserId?: CompositeUserId): Promise<SignalingMessage>;
|
|
50
57
|
abstract putHandsDown(): Promise<SignalingMessage>;
|
|
51
|
-
abstract addParticipant(
|
|
58
|
+
abstract addParticipant(participantIds: CompositeUserId[], params?: AddParticipantParams): Promise<SignalingMessage>;
|
|
52
59
|
abstract removeParticipant(participantId: CompositeUserId, ban?: boolean): Promise<SignalingMessage>;
|
|
53
60
|
abstract allocateConsumer(description: RTCSessionDescription | null, capabilities: {
|
|
54
61
|
[key: string]: number | boolean | string;
|
|
@@ -96,7 +103,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
96
103
|
[key in ConversationOption]?: boolean;
|
|
97
104
|
}): Promise<SignalingMessage>;
|
|
98
105
|
abstract getWaitingHall(fromId: SignalingMessage.WaitingParticipantId | null, count?: number, backward?: boolean): Promise<SignalingMessage>;
|
|
99
|
-
abstract promoteParticipant(participantId
|
|
106
|
+
abstract promoteParticipant(participantId?: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
|
|
100
107
|
abstract requestPromotion(unrequest: boolean): Promise<SignalingMessage>;
|
|
101
108
|
abstract acceptPromotion(reject: boolean): Promise<SignalingMessage>;
|
|
102
109
|
abstract feedback(key: string): Promise<SignalingMessage>;
|