@vkontakte/calls-sdk 2.8.6-dev.b7fbb756.0 → 2.8.6-dev.d75ce56d.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 +16 -3
- package/abstract/BaseApi.d.ts +1 -1
- package/abstract/BaseSignaling.d.ts +2 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +9 -6
- package/default/Api.d.ts +1 -1
- package/default/Signaling.d.ts +2 -1
- package/enums/Stat.d.ts +2 -1
- package/package.json +1 -1
- package/static/Params.d.ts +7 -0
- package/types/Conversation.d.ts +25 -1
- package/types/ConversationParams.d.ts +12 -1
- package/types/ConversationResponse.d.ts +5 -0
- package/types/ExternalId.d.ts +1 -0
- package/types/SignalingMessage.d.ts +1 -0
- package/utils/Lz4.d.ts +1 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -235,7 +235,7 @@ export declare function init(params: Partial<ParamsObject>): Promise<void>;
|
|
|
235
235
|
* @param onlyAdminCanShareMovie Только администратор может включать совметсный просмотр
|
|
236
236
|
*/
|
|
237
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>;
|
|
238
|
+
export declare function callInternal(ids: OkUserId[], type: CallType | undefined, mediaOptions: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean, externalIds?: ExternalId[]): Promise<ConversationData>;
|
|
239
239
|
/**
|
|
240
240
|
* Обработать пуш о входящем звонке
|
|
241
241
|
*
|
|
@@ -245,9 +245,10 @@ export declare function callInternal(ids: OkUserId[], type: CallType | undefined
|
|
|
245
245
|
* `acceptCall` и `declineCall` будут работать только после вызова `processPush`
|
|
246
246
|
*
|
|
247
247
|
* @param conversationId ID звонка
|
|
248
|
+
* @param conversationParams conversationParams в base64
|
|
248
249
|
*/
|
|
249
|
-
export declare function processPush(conversationId: string): Promise<void>;
|
|
250
|
-
export declare function processPushInternal(conversationId: string, type?: UserType, peerId?: number): Promise<void>;
|
|
250
|
+
export declare function processPush(conversationId: string, conversationParams?: string): Promise<void>;
|
|
251
|
+
export declare function processPushInternal(conversationId: string, type?: UserType, peerId?: number, conversationParams?: string): Promise<void>;
|
|
251
252
|
/**
|
|
252
253
|
* Авторизоваться для совершения звонков
|
|
253
254
|
*
|
|
@@ -294,6 +295,11 @@ export declare function hangup(): Promise<void>;
|
|
|
294
295
|
* @param params Параметры
|
|
295
296
|
*/
|
|
296
297
|
export declare function addParticipant(externalIds: ExternalId | ExternalId[], params?: AddParticipantParams): Promise<void>;
|
|
298
|
+
/**
|
|
299
|
+
* @deprecated - используйте addParticipant
|
|
300
|
+
* @param uids
|
|
301
|
+
* @param params
|
|
302
|
+
*/
|
|
297
303
|
export declare function addParticipantInternal(uids: OkUserId[], params?: AddParticipantParams): Promise<void>;
|
|
298
304
|
/**
|
|
299
305
|
* Удалить собеседника из звонка
|
|
@@ -302,6 +308,11 @@ export declare function addParticipantInternal(uids: OkUserId[], params?: AddPar
|
|
|
302
308
|
* @param ban Забанить пользователя
|
|
303
309
|
*/
|
|
304
310
|
export declare function removeParticipant(externalId: ExternalId, ban?: boolean): Promise<void>;
|
|
311
|
+
/**
|
|
312
|
+
* @deprecated - используйте removeParticipant
|
|
313
|
+
* @param uid
|
|
314
|
+
* @param ban
|
|
315
|
+
*/
|
|
305
316
|
export declare function removeParticipantInternal(uid: OkUserId, ban?: boolean): Promise<void>;
|
|
306
317
|
/**
|
|
307
318
|
* Изменить камеру на фронтальную или заднюю (для мобильных устройств)
|
|
@@ -721,6 +732,8 @@ export declare function requestAsr(request: boolean): Promise<void>;
|
|
|
721
732
|
export declare function startUrlSharing(sharedUrl: string): Promise<void>;
|
|
722
733
|
export declare function stopUrlSharing(): Promise<void>;
|
|
723
734
|
export declare function sendTestCommand(name: string, params?: any): void;
|
|
735
|
+
export declare function startAnalyzingAudio(expectAudio: boolean): void;
|
|
736
|
+
export declare function stopAnalyzingAudio(): void;
|
|
724
737
|
/**
|
|
725
738
|
* Версия SDK
|
|
726
739
|
*/
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export default abstract class BaseApi {
|
|
|
37
37
|
}, speakerIds?: OkUserId[]): Promise<ConversationResponse>;
|
|
38
38
|
abstract startConversation(conversationId: string, ids?: OkUserId[], type?: CallType, isVideo?: boolean, payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, createConversationParameters?: {
|
|
39
39
|
onlyAdminCanShareMovie?: boolean;
|
|
40
|
-
}): Promise<ConversationResponse>;
|
|
40
|
+
}, externalIds?: ExternalId[]): Promise<ConversationResponse>;
|
|
41
41
|
abstract joinConversation(conversationId: string, isVideo?: boolean, chatId?: string): Promise<ConversationResponse>;
|
|
42
42
|
createJoinLink(conversationId: string): Promise<{
|
|
43
43
|
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;
|