@vkontakte/calls-sdk 2.8.5-dev.2b864c42.0 → 2.8.5-dev.2cb03422.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
@@ -2,8 +2,8 @@
2
2
  * CallsSDK
3
3
  */
4
4
  import type { IEffect, VideoEffects } from '@vkontakte/calls-video-effects';
5
+ import type { EffectVoiceChange } from '@vkontakte/calls-audio-effects';
5
6
  import type * as Vmoji from '@vkontakte/calls-vmoji';
6
- import BaseApi from './abstract/BaseApi';
7
7
  import BaseLogger from './abstract/BaseLogger';
8
8
  import { AddParticipantParams } from './abstract/BaseSignaling';
9
9
  import HangupReason, { HangupReasonData } from './classes/HangupReason';
@@ -63,6 +63,7 @@ import { ArrayDequeue } from './utils/ArrayDequeue';
63
63
  import { ApiExternal } from './default/ApiExternal';
64
64
  import AuthData from './static/AuthData';
65
65
  import { VmojiError } from './types/Vmoji';
66
+ import { VolumeDetector } from './classes/VolumeDetector';
66
67
  /**
67
68
  * Информация о текущем браузере
68
69
  */
@@ -193,19 +194,24 @@ export declare const utils: {
193
194
  */
194
195
  participantMarkerCompare: typeof Utils.participantMarkerCompare;
195
196
  };
196
- export declare function setApi(api: BaseApi): void;
197
197
  export declare function setLogger(logger: BaseLogger): void;
198
198
  /**
199
- * Устанавливает библиотеку эффектов
199
+ * Устанавливает библиотеку видео эффектов
200
200
  *
201
201
  * @param effects Экземпляр класса `VideoEffects` из `@vkontakte/calls-video-effects`
202
202
  */
203
203
  export declare function setVideoEffects(effects: VideoEffects): void;
204
+ /**
205
+ * Устанавливает библиотеку аудио эффектов
206
+ *
207
+ * @param effects Экземпляр класса `EffectVoiceChange` из `@vkontakte/calls-audio-effects`
208
+ */
209
+ export declare function setAudioEffects(effects: EffectVoiceChange): void;
204
210
  /**
205
211
  * Устанавливает библиотеку вимоджи
206
212
  *
207
213
  * @param vmoji Экземпляр класса `Vmoji` из `@vkontakte/calls-vmoji`
208
- * @param sdk Экземпляр модуля `@vkontakte/calls-vmoji`, нужен для проброски дебаг сообщений
214
+ * @param sdk Экземпляр модуля `@vkontakte/calls-sdk`, нужен для проброски дебаг сообщений
209
215
  */
210
216
  export declare function setVmoji(vmoji: typeof Vmoji, sdk?: Parameters<typeof Vmoji.setSDK>[0] | null, renderingOptions?: Partial<Vmoji.RenderingOptions>, protocolVersion?: Vmoji.AnimojiVersion): void;
211
217
  /**
@@ -612,6 +618,12 @@ export declare function debugMessage(type: DebugMessageType, ...args: any[]): vo
612
618
  * @param effect
613
619
  */
614
620
  export declare function changeVideoEffect(effect: IEffect | null): Promise<void>;
621
+ /**
622
+ * Эффект локального аудио
623
+ *
624
+ * @param effect
625
+ */
626
+ export declare function changeAudioEffect(effects: string[], isPreset?: boolean): Promise<void>;
615
627
  /**
616
628
  * Позволяет установить кастомный стрим для аудио
617
629
  *
@@ -708,4 +720,4 @@ export declare function sendTestCommand(name: string, params?: any): void;
708
720
  */
709
721
  export declare function version(): string;
710
722
  export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, GetParticipantsSignalingResponse, GetRoomsSignalingResponse, HangupReasonData, IApiEnv, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantId, ParticipantLayout, ParticipantListMarkers, ParticipantListType, ParticipantPriority, ParticipantsStateList, 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, };
711
- export { Api, AuthData, BaseApi, BaseLogger, CallDirection, CallType, ChatRoomEventType, ConversationOption, DebugMessageType, ExternalIdType, FacingMode, FatalError, HangupReason, HangupType, MediaOption, MediaTrackKind, MediaType, MuteState, ParticipantState, ParticipantStatus, RecordRole, Signaling, SignalingCommandType, SignalingConnectionType, SignalingNotification, UserRole, UserType, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, ApiExternal, };
723
+ export { Api, AuthData, BaseLogger, CallDirection, CallType, ChatRoomEventType, ConversationOption, DebugMessageType, ExternalIdType, FacingMode, FatalError, HangupReason, HangupType, MediaOption, MediaTrackKind, MediaType, MuteState, ParticipantState, ParticipantStatus, RecordRole, Signaling, SignalingCommandType, SignalingConnectionType, SignalingNotification, UserRole, UserType, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, ApiExternal, VolumeDetector, };
@@ -28,7 +28,6 @@ export type LogItem = {
28
28
  uid: OkUserId | null;
29
29
  };
30
30
  export default abstract class BaseApi {
31
- abstract init(): void;
32
31
  abstract authorize(): Promise<void>;
33
32
  abstract userId(participantId: ParticipantId): Promise<ExternalParticipantId>;
34
33
  abstract createConversation(conversationId: string, payload?: string, requireAuthToJoin?: boolean, createConversationParameters?: {
@@ -75,5 +74,6 @@ export default abstract class BaseApi {
75
74
  hangupConversation(conversationId: string): void;
76
75
  sendUserFeedbackStats(conversationId: string, userResponse: number, reason?: string, groupCallUsersCount?: number): void;
77
76
  removeHistoryRecords(recordIds: number[]): Promise<void>;
77
+ getServerTime(): Promise<number>;
78
78
  cleanup(): void;
79
79
  }