@vkontakte/calls-sdk 2.7.2-beta.2 → 2.7.2-beta.20
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 +13 -7
- package/abstract/BaseApi.d.ts +5 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +7 -57
- package/classes/Logger.d.ts +1 -0
- package/classes/MediaSource.d.ts +5 -12
- package/classes/codec/IDecoder.d.ts +1 -1
- package/classes/codec/LibVPxDecoder.d.ts +1 -1
- package/classes/screenshare/BaseRenderer.d.ts +1 -1
- package/classes/screenshare/BaseStreamBuilder.d.ts +9 -2
- package/classes/screenshare/CanvasRenderer.d.ts +1 -2
- package/classes/screenshare/ScreenCaptureReceiver.d.ts +3 -1
- package/classes/screenshare/ScreenCongestionControl.d.ts +3 -1
- package/classes/screenshare/StreamBuilder.d.ts +2 -2
- package/classes/screenshare/WebmBuilder.d.ts +2 -2
- package/classes/transport/PerfStatReporter.d.ts +2 -0
- package/classes/transport/ServerTransport.d.ts +2 -3
- package/classes/transport/Statistics.d.ts +21 -0
- package/classes/transport/Transport.d.ts +4 -1
- package/default/Signaling.d.ts +1 -1
- package/enums/HangupType.d.ts +2 -1
- package/enums/SignalingNotification.d.ts +1 -0
- package/enums/Stat.d.ts +10 -1
- package/package.json +6 -3
- package/static/External.d.ts +6 -1
- package/static/Params.d.ts +54 -4
- package/static/WebRTCUtils.d.ts +0 -4
- package/types/Conversation.d.ts +63 -1
- package/types/ScreenSharingStat.d.ts +3 -0
- package/types/SignalingMessage.d.ts +5 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import type { IEffect, VideoEffects } from '@vkontakte/calls-video-effects';
|
|
|
6
6
|
import BaseApi from './abstract/BaseApi';
|
|
7
7
|
import BaseLogger from './abstract/BaseLogger';
|
|
8
8
|
import BaseSignaling, { AddParticipantParams } from './abstract/BaseSignaling';
|
|
9
|
-
import { ConversationData } from './classes/Conversation';
|
|
10
9
|
import HangupReason, { HangupReasonData } from './classes/HangupReason';
|
|
11
10
|
import { MediaTrackKind } from './classes/MediaSource';
|
|
12
11
|
import { StatResult } from './classes/transport/Statistics';
|
|
@@ -32,6 +31,7 @@ import { DebugMessageType } from './static/Debug';
|
|
|
32
31
|
import { ParticipantStatus } from './static/External';
|
|
33
32
|
import { JSONArray, JSONObject, JSONType } from './static/Json';
|
|
34
33
|
import { ParamsObject } from './static/Params';
|
|
34
|
+
import Utils from './static/Utils';
|
|
35
35
|
import WebRTCUtils, { FacingMode } from './static/WebRTCUtils';
|
|
36
36
|
import { IAsrStartParams } from './types/Asr';
|
|
37
37
|
import ConversationParams from './types/ConversationParams';
|
|
@@ -57,6 +57,7 @@ import { IStartStreamData, IStopStreamData } from './types/Streams';
|
|
|
57
57
|
import ConversationFeature from './enums/ConversationFeature';
|
|
58
58
|
import { IFeaturesPerRole } from './types/ConversationFeature';
|
|
59
59
|
import { ArrayDequeue } from './utils/ArrayDequeue';
|
|
60
|
+
import { ConversationData } from './types/Conversation';
|
|
60
61
|
/**
|
|
61
62
|
* Информация о текущем браузере
|
|
62
63
|
*/
|
|
@@ -125,10 +126,6 @@ export declare const browser: {
|
|
|
125
126
|
* Устанавливает размер видео в стриме
|
|
126
127
|
*/
|
|
127
128
|
setResolution: typeof WebRTCUtils.setResolution;
|
|
128
|
-
/**
|
|
129
|
-
* Запоминает выбранное устройство
|
|
130
|
-
*/
|
|
131
|
-
saveDeviceId: typeof WebRTCUtils.saveDeviceId;
|
|
132
129
|
/**
|
|
133
130
|
* Проверяет поддержку WebRTC браузером
|
|
134
131
|
*
|
|
@@ -182,6 +179,15 @@ export declare const browser: {
|
|
|
182
179
|
*/
|
|
183
180
|
isAudioShareSupported: typeof WebRTCUtils.isAudioShareSupported;
|
|
184
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* Вспомогательные функции
|
|
184
|
+
*/
|
|
185
|
+
export declare const utils: {
|
|
186
|
+
/**
|
|
187
|
+
* Сравнивает маркеры для постраничного вывода участников звонка
|
|
188
|
+
*/
|
|
189
|
+
participantMarkerCompare: typeof Utils.participantMarkerCompare;
|
|
190
|
+
};
|
|
185
191
|
export declare function setApi(api: BaseApi): void;
|
|
186
192
|
export declare function setSignalingFactory(signalingFactory: () => BaseSignaling): void;
|
|
187
193
|
export declare function setLogger(logger: BaseLogger): void;
|
|
@@ -197,7 +203,7 @@ export declare function setVideoEffects(effects: VideoEffects): void;
|
|
|
197
203
|
* @param vmoji Экземпляр класса `Vmoji` из `@vkontakte/calls-vmoji`
|
|
198
204
|
* @param sdk Экземпляр модуля `@vkontakte/calls-vmoji`, нужен для проброски дебаг сообщений
|
|
199
205
|
*/
|
|
200
|
-
export declare function setVmoji(vmoji: typeof Vmoji, sdk?: Parameters<typeof Vmoji.setSDK>[0] | null): void;
|
|
206
|
+
export declare function setVmoji(vmoji: typeof Vmoji, sdk?: Parameters<typeof Vmoji.setSDK>[0] | null, renderingOptions?: Vmoji.RenderingOptions | null): void;
|
|
201
207
|
/**
|
|
202
208
|
* Инициализирует библиотеку
|
|
203
209
|
*
|
|
@@ -630,5 +636,5 @@ export declare function requestAsr(request: boolean): Promise<void>;
|
|
|
630
636
|
* Версия SDK
|
|
631
637
|
*/
|
|
632
638
|
export declare function version(): string;
|
|
633
|
-
export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IAsrStartParams, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, 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, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData,
|
|
639
|
+
export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IAsrStartParams, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, 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, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, };
|
|
634
640
|
export { Api, 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, };
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import CallType from '../enums/CallType';
|
|
2
|
+
import { ConversationData } from '../types/Conversation';
|
|
2
3
|
import ConversationParams from '../types/ConversationParams';
|
|
3
4
|
import ConversationResponse from '../types/ConversationResponse';
|
|
4
5
|
import { ExternalId, ExternalUserId } from '../types/ExternalId';
|
|
5
6
|
import { CompositeUserId, OkUserId } from '../types/Participant';
|
|
6
7
|
export type LogItem = {
|
|
7
8
|
count?: number;
|
|
8
|
-
custom:
|
|
9
|
+
custom: {
|
|
10
|
+
vcid: ConversationData['id'] | null;
|
|
11
|
+
[k: string]: string | number;
|
|
12
|
+
};
|
|
9
13
|
data?: string[];
|
|
10
14
|
groups?: string[];
|
|
11
15
|
network?: string;
|