@vkontakte/calls-sdk 2.8.3-dev.fbe24f4.0 → 2.8.4-dev.1d9e8b6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * CallsSDK
3
3
  */
4
- import type { IEffect, IEffectDrawParams, VideoEffects } from '@vkontakte/calls-video-effects';
4
+ import type { IEffect, VideoEffects } from '@vkontakte/calls-video-effects';
5
5
  import type * as Vmoji from '@vkontakte/calls-vmoji';
6
6
  import BaseApi from './abstract/BaseApi';
7
7
  import BaseLogger from './abstract/BaseLogger';
@@ -460,8 +460,9 @@ export declare function startConversation(payload?: string, requireAuthToJoin?:
460
460
  * @param speakerIds Список внешних ID пользователей, которые будут выступать в роли спикеров
461
461
  * @returns Токен комнаты
462
462
  */
463
- export declare function startAudienceConversation(payload: string | undefined, requireAuthToJoin: boolean | undefined, { onlyAdminCanShareMovie, }: {
463
+ export declare function startAudienceConversation(payload: string | undefined, requireAuthToJoin: boolean | undefined, { onlyAdminCanShareMovie, audioOnly, }: {
464
464
  onlyAdminCanShareMovie?: boolean | undefined;
465
+ audioOnly?: boolean | undefined;
465
466
  } | undefined, speakerIds: ExternalUserId[]): Promise<string>;
466
467
  /**
467
468
  * Создать токен комнаты для подключения по ссылке к существующему звонку
@@ -596,7 +597,7 @@ export declare function debugMessage(type: DebugMessageType, ...args: any[]): vo
596
597
  *
597
598
  * @param effect
598
599
  */
599
- export declare function changeVideoEffect(effect: IEffect<IEffectDrawParams> | null): Promise<void>;
600
+ export declare function changeVideoEffect(effect: IEffect | null): Promise<void>;
600
601
  /**
601
602
  * Позволяет установить кастомный стрим для аудио
602
603
  *
@@ -671,6 +672,8 @@ export declare function stopAsr(params?: IAsrStopParams): Promise<void>;
671
672
  * Запрашивает/отключает реал-тайм расшифровку звонка
672
673
  */
673
674
  export declare function requestAsr(request: boolean): Promise<void>;
675
+ export declare function startUrlSharing(sharedUrl: string): Promise<void>;
676
+ export declare function stopUrlSharing(): Promise<void>;
674
677
  /**
675
678
  * Версия SDK
676
679
  */
@@ -26,6 +26,7 @@ export default abstract class BaseApi {
26
26
  abstract createConversation(conversationId: string, payload?: string, requireAuthToJoin?: boolean, createConversationParameters?: {
27
27
  onlyAdminCanShareMovie?: boolean;
28
28
  audienceMode?: boolean;
29
+ audioOnly?: boolean;
29
30
  }, speakerIds?: OkUserId[]): Promise<ConversationResponse>;
30
31
  abstract startConversation(conversationId: string, ids?: OkUserId[], type?: CallType, isVideo?: boolean, payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, createConversationParameters?: {
31
32
  onlyAdminCanShareMovie?: boolean;
@@ -67,6 +67,8 @@ export default abstract class BaseSignaling extends EventEmitter {
67
67
  abstract addMovie(data: IAddMovieParams): Promise<SignalingMessage>;
68
68
  abstract updateMovie(data: IUpdateMovieData): Promise<SignalingMessage>;
69
69
  abstract removeMovie(data: any): Promise<SignalingMessage>;
70
+ abstract startUrlSharing(sharedUrl: string): Promise<SignalingMessage>;
71
+ abstract stopUrlSharing(): Promise<SignalingMessage>;
70
72
  abstract updateRooms(rooms: Record<any, any>[], assignRandomly?: boolean): Promise<SignalingMessage>;
71
73
  abstract activateRooms(roomIds: number[], deactivate: boolean): Promise<SignalingMessage>;
72
74
  abstract switchRoom(toRoomId: number | null, participantId?: ParticipantId): Promise<SignalingMessage>;
@@ -93,7 +95,7 @@ export default abstract class BaseSignaling extends EventEmitter {
93
95
  }): Promise<SignalingMessage>;
94
96
  abstract getWaitingHall(fromId: WaitingParticipantId | null, count?: number, backward?: boolean): Promise<SignalingMessage>;
95
97
  abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
96
- abstract requestPromotion(demote: boolean): Promise<SignalingMessage>;
98
+ abstract requestPromotion(unrequest: boolean): Promise<SignalingMessage>;
97
99
  abstract acceptPromotion(reject: boolean): Promise<SignalingMessage>;
98
100
  abstract feedback(key: string): Promise<SignalingMessage>;
99
101
  abstract getHandQueue(): Promise<SignalingMessage>;