@vkontakte/calls-sdk 2.8.6-dev.591b2e38.0 → 2.8.6-dev.5b48b898.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 +15 -3
- package/abstract/BaseApi.d.ts +2 -1
- package/abstract/BaseSignaling.d.ts +2 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +7 -7
- package/classes/Conversation.d.ts +5 -5
- package/default/Api.d.ts +2 -1
- package/default/Signaling.d.ts +2 -1
- package/package.json +1 -1
- package/static/Params.d.ts +0 -7
- package/types/Conversation.d.ts +28 -1
- package/types/ExternalId.d.ts +1 -0
- package/types/FastStart.d.ts +46 -0
- package/types/SignalingMessage.d.ts +1 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ import { ApiExternal } from './default/ApiExternal';
|
|
|
64
64
|
import AuthData from './static/AuthData';
|
|
65
65
|
import { VmojiError } from './types/Vmoji';
|
|
66
66
|
import { VolumeDetector } from './classes/VolumeDetector';
|
|
67
|
+
import { FastStartHandler, FastStartParams } from './types/FastStart';
|
|
67
68
|
/**
|
|
68
69
|
* Информация о текущем браузере
|
|
69
70
|
*/
|
|
@@ -233,9 +234,10 @@ export declare function init(params: Partial<ParamsObject>): Promise<void>;
|
|
|
233
234
|
* @param joiningAllowed Создать токен комнаты для подключения по ссылке
|
|
234
235
|
* @param requireAuthToJoin Запретить анонимам подключаться по ссылке (если поддерживается сервером)
|
|
235
236
|
* @param onlyAdminCanShareMovie Только администратор может включать совметсный просмотр
|
|
237
|
+
* @param onFastStart Функция для обработки быстрого старта
|
|
236
238
|
*/
|
|
237
|
-
export declare function callTo(externalId?: ExternalId | ExternalId[], mediaOptions?: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean): Promise<ConversationData>;
|
|
238
|
-
export declare function callInternal(ids: OkUserId[], type: CallType | undefined, mediaOptions: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean): Promise<ConversationData>;
|
|
239
|
+
export declare function callTo(externalId?: ExternalId | ExternalId[], mediaOptions?: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean, onFastStart?: FastStartHandler): Promise<ConversationData>;
|
|
240
|
+
export declare function callInternal(ids: OkUserId[], type: CallType | undefined, mediaOptions: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean, externalIds?: ExternalId[], onFastStart?: FastStartHandler): Promise<ConversationData>;
|
|
239
241
|
/**
|
|
240
242
|
* Обработать пуш о входящем звонке
|
|
241
243
|
*
|
|
@@ -295,6 +297,11 @@ export declare function hangup(): Promise<void>;
|
|
|
295
297
|
* @param params Параметры
|
|
296
298
|
*/
|
|
297
299
|
export declare function addParticipant(externalIds: ExternalId | ExternalId[], params?: AddParticipantParams): Promise<void>;
|
|
300
|
+
/**
|
|
301
|
+
* @deprecated - используйте addParticipant
|
|
302
|
+
* @param uids
|
|
303
|
+
* @param params
|
|
304
|
+
*/
|
|
298
305
|
export declare function addParticipantInternal(uids: OkUserId[], params?: AddParticipantParams): Promise<void>;
|
|
299
306
|
/**
|
|
300
307
|
* Удалить собеседника из звонка
|
|
@@ -303,6 +310,11 @@ export declare function addParticipantInternal(uids: OkUserId[], params?: AddPar
|
|
|
303
310
|
* @param ban Забанить пользователя
|
|
304
311
|
*/
|
|
305
312
|
export declare function removeParticipant(externalId: ExternalId, ban?: boolean): Promise<void>;
|
|
313
|
+
/**
|
|
314
|
+
* @deprecated - используйте removeParticipant
|
|
315
|
+
* @param uid
|
|
316
|
+
* @param ban
|
|
317
|
+
*/
|
|
306
318
|
export declare function removeParticipantInternal(uid: OkUserId, ban?: boolean): Promise<void>;
|
|
307
319
|
/**
|
|
308
320
|
* Изменить камеру на фронтальную или заднюю (для мобильных устройств)
|
|
@@ -728,5 +740,5 @@ export declare function stopAnalyzingAudio(): void;
|
|
|
728
740
|
* Версия SDK
|
|
729
741
|
*/
|
|
730
742
|
export declare function version(): string;
|
|
731
|
-
export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, CustomError, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, 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, };
|
|
743
|
+
export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, CustomError, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, 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, };
|
|
732
744
|
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, };
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export type LogItem = {
|
|
|
30
30
|
export default abstract class BaseApi {
|
|
31
31
|
abstract authorize(): Promise<void>;
|
|
32
32
|
abstract userId(participantId: ParticipantId): Promise<ExternalParticipantId>;
|
|
33
|
+
abstract deviceId(): string;
|
|
33
34
|
abstract createConversation(conversationId: string, payload?: string, requireAuthToJoin?: boolean, createConversationParameters?: {
|
|
34
35
|
onlyAdminCanShareMovie?: boolean;
|
|
35
36
|
audienceMode?: boolean;
|
|
@@ -37,7 +38,7 @@ export default abstract class BaseApi {
|
|
|
37
38
|
}, speakerIds?: OkUserId[]): Promise<ConversationResponse>;
|
|
38
39
|
abstract startConversation(conversationId: string, ids?: OkUserId[], type?: CallType, isVideo?: boolean, payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, createConversationParameters?: {
|
|
39
40
|
onlyAdminCanShareMovie?: boolean;
|
|
40
|
-
}): Promise<ConversationResponse>;
|
|
41
|
+
}, externalIds?: ExternalId[]): Promise<ConversationResponse>;
|
|
41
42
|
abstract joinConversation(conversationId: string, isVideo?: boolean, chatId?: string): Promise<ConversationResponse>;
|
|
42
43
|
createJoinLink(conversationId: string): Promise<{
|
|
43
44
|
join_link: string;
|
|
@@ -56,7 +56,8 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
56
56
|
abstract changeMediaSettings(mediaSettings: MediaSettings): Promise<SignalingMessage>;
|
|
57
57
|
abstract changeParticipantState(state: ParticipantStateData, compositeUserId?: CompositeUserId): Promise<SignalingMessage>;
|
|
58
58
|
abstract putHandsDown(): Promise<SignalingMessage>;
|
|
59
|
-
abstract addParticipant(
|
|
59
|
+
abstract addParticipant(externalIds: CompositeUserId[], params?: AddParticipantParams): Promise<SignalingMessage>;
|
|
60
|
+
abstract addParticipantLegacy(participantIds: CompositeUserId[], params?: AddParticipantParams): Promise<SignalingMessage>;
|
|
60
61
|
abstract removeParticipant(participantId: CompositeUserId, ban?: boolean): Promise<SignalingMessage>;
|
|
61
62
|
abstract allocateConsumer(description: RTCSessionDescription | null, capabilities: {
|
|
62
63
|
[key: string]: number | boolean | string;
|