@vkontakte/calls-sdk 2.8.11-beta.0 → 2.8.11-dev.3d9bb708.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
@@ -6,6 +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 Conversation from './classes/Conversation';
9
10
  import HangupReason, { HangupReasonData, CustomError } from './classes/HangupReason';
10
11
  import { MediaTrackKind } from './classes/MediaSource';
11
12
  import { AudienceModeHandsResponse } from './types/AudienceMode';
@@ -265,11 +266,11 @@ export declare function authorize(authToken?: string, apiBaseUrl?: IAPIBaseUrl):
265
266
  *
266
267
  * @param mediaOptions Нужно ли включать камеру и микрофон
267
268
  */
268
- export declare function acceptCall(mediaOptions?: MediaOption[]): Promise<ConversationData>;
269
+ export declare function acceptCall(mediaOptions?: MediaOption[], conversationId?: string): Promise<ConversationData>;
269
270
  /**
270
271
  * Отклонить входящий звонок
271
272
  */
272
- export declare function declineCall(): Promise<void>;
273
+ export declare function declineCall(conversationId?: string): Promise<void>;
273
274
  /**
274
275
  * Присоединиться к активному звонку
275
276
  *
@@ -292,7 +293,7 @@ export declare function joinCallByLink(joinLink: string, mediaOptions?: MediaOpt
292
293
  /**
293
294
  * Завершить текущий разговор
294
295
  */
295
- export declare function hangup(): Promise<void>;
296
+ export declare function hangup(conversationId?: string): Promise<void>;
296
297
  /**
297
298
  * Добавить собеседника в звонок
298
299
  *
@@ -340,7 +341,7 @@ export declare function changeDevice(kind: MediaDeviceKind, deviceId: string): P
340
341
  * state Включить или выключить захват экрана
341
342
  * settings Параметры захваты экрана
342
343
  */
343
- export declare function captureScreen(stateOrSettings: boolean | ScreenCaptureSettings): Promise<void>;
344
+ export declare function captureScreen(stateOrSettings: boolean | ScreenCaptureSettings, conversationId?: string): Promise<void>;
344
345
  /**
345
346
  * Включить/выключить передачу точек вимоджи
346
347
  *
@@ -361,13 +362,13 @@ export declare function setVideoStream(stream: MediaStream, isScreen?: boolean):
361
362
  *
362
363
  * @param enabled
363
364
  */
364
- export declare function toggleLocalVideo(enabled: boolean): Promise<void>;
365
+ export declare function toggleLocalVideo(enabled: boolean, conversationId?: string): Promise<void>;
365
366
  /**
366
367
  * Включить или выключить свой микрофон
367
368
  *
368
369
  * @param enabled
369
370
  */
370
- export declare function toggleLocalAudio(enabled: boolean): Promise<void>;
371
+ export declare function toggleLocalAudio(enabled: boolean, conversationId?: string): Promise<void>;
371
372
  /**
372
373
  * Изменяет размеры локального видео
373
374
  *
@@ -398,7 +399,7 @@ export declare function changeParticipantState(state: ParticipantStateData, exte
398
399
  *
399
400
  * @param hold - true/false
400
401
  */
401
- export declare function hold(hold: boolean): Promise<void>;
402
+ export declare function hold(hold: boolean, conversationId?: string): Promise<void>;
402
403
  /**
403
404
  * Принудительно опустить руки участников в текущем сессионном зале админа
404
405
  */
@@ -751,6 +752,9 @@ export declare function stopUrlSharing(): Promise<void>;
751
752
  export declare function sendTestCommand(name: string, params?: any): void;
752
753
  export declare function startAnalyzingAudio(expectAudio: boolean): void;
753
754
  export declare function stopAnalyzingAudio(): void;
755
+ export declare function switchCall(conversationId: string): Promise<void>;
756
+ export declare function getCalls(): Map<string, Conversation>;
757
+ export declare function getActiveCallId(): string | null;
754
758
  /**
755
759
  * Версия SDK
756
760
  */