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