@vkontakte/calls-sdk 2.6.2-dev.4953823.0 → 2.6.2-dev.4e86a53.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.
@@ -5,9 +5,12 @@ import ConversationOption from '../enums/ConversationOption';
5
5
  import HangupType from '../enums/HangupType';
6
6
  import MediaOption from '../enums/MediaOption';
7
7
  import ParticipantState from '../enums/ParticipantState';
8
+ import RoomsEventType from '../enums/RoomsEventType';
8
9
  import UserRole from '../enums/UserRole';
9
10
  import UserType from '../enums/UserType';
11
+ import { IFeaturesPerRole } from './ConversationFeature';
10
12
  import { IFeedback } from './Feedback';
13
+ import { AsrInfo } from './Asr';
11
14
  import MediaModifiers from './MediaModifiers';
12
15
  import MediaSettings from './MediaSettings';
13
16
  import { ISharedMovieInfo, ISharedMovieState, ISharedMovieStoppedInfo } from './MovieShare';
@@ -75,11 +78,23 @@ declare namespace SignalingMessage {
75
78
  multichatId: string | null;
76
79
  tamtamMultichatId: string | null;
77
80
  recordInfo: RecordInfo | null;
78
- featuresPerRole?: Partial<Record<ConversationFeature, UserRole[]>> | null;
81
+ featuresPerRole?: IFeaturesPerRole | null;
79
82
  pinnedParticipantId: ParticipantId | null;
80
83
  options: ConversationOption[];
81
84
  muteStates?: MuteStates;
82
85
  }
86
+ export interface Room extends SignalingMessage {
87
+ id?: number;
88
+ name?: string;
89
+ participantCount?: number;
90
+ participantIds?: CompositeUserId[];
91
+ addParticipantIds?: CompositeUserId[];
92
+ removeParticipantIds?: CompositeUserId[];
93
+ participants?: ParticipantListChunk;
94
+ active?: boolean;
95
+ countdownSec?: number;
96
+ timeoutMs?: number;
97
+ }
83
98
  interface Notification extends SignalingMessage {
84
99
  type?: string;
85
100
  notification?: string;
@@ -190,7 +205,7 @@ declare namespace SignalingMessage {
190
205
  }
191
206
  export interface FeatureSetChanged extends Notification {
192
207
  features: ConversationFeature[];
193
- featuresPerRole?: Partial<Record<ConversationFeature, UserRole[]>> | null;
208
+ featuresPerRole?: IFeaturesPerRole | null;
194
209
  }
195
210
  export interface MultipartyChatCreated extends Notification {
196
211
  chatId: string;
@@ -280,6 +295,10 @@ declare namespace SignalingMessage {
280
295
  mediaModifiers: MediaModifiers;
281
296
  participants?: ParticipantListChunk;
282
297
  chatRoom?: ChatRoom;
298
+ rooms?: {
299
+ rooms: Room[];
300
+ roomId?: number;
301
+ };
283
302
  }
284
303
  export interface JoinLinkChanged extends Notification {
285
304
  joinLink: string;
@@ -295,6 +314,35 @@ declare namespace SignalingMessage {
295
314
  }
296
315
  export interface SharedMovieStoppedInfo extends Notification, ISharedMovieStoppedInfo {
297
316
  }
317
+ export interface RoomsUpdated extends Notification {
318
+ updates: Partial<Record<RoomsEventType, {
319
+ rooms?: Room;
320
+ roomIds?: number[];
321
+ deactivated?: boolean;
322
+ }>>;
323
+ }
324
+ export interface RoomUpdated extends Notification {
325
+ events: RoomsEventType[];
326
+ room?: Room;
327
+ roomId: number;
328
+ deactivate?: boolean;
329
+ }
330
+ export interface RoomParticipantsUpdated extends Notification {
331
+ roomId: number;
332
+ participantCount: number;
333
+ addedParticipantIds?: CompositeUserId[];
334
+ addedParticipants?: Participant[];
335
+ removedParticipantMarkers?: ParticipantListMarkers[];
336
+ }
337
+ export interface FeaturesPerRoleChanged extends Notification {
338
+ featuresPerRole?: IFeaturesPerRole | null;
339
+ }
340
+ export interface AsrStarted extends Notification {
341
+ asrInfo: AsrInfo;
342
+ }
343
+ export interface AsrStopped extends Notification {
344
+ movieId: number;
345
+ }
298
346
  export {};
299
347
  }
300
348
  export default SignalingMessage;
@@ -0,0 +1,24 @@
1
+ export declare class ArrayDequeue<T = any> {
2
+ /** очередь */
3
+ private readonly _queue;
4
+ /** курсор для чтения */
5
+ private _readCursor;
6
+ /** курсор для записи */
7
+ private _writeCursor;
8
+ /** подвинуть курсор чтения */
9
+ private _moveReadCursor;
10
+ /** сколько осталось в очереди элементов */
11
+ private _left;
12
+ constructor(length: number);
13
+ /** возвращает длину, переданную в конструктор */
14
+ get length(): number;
15
+ /** возвращает текущую длину очереди */
16
+ get left(): number;
17
+ toArray(): T[];
18
+ /** добавить элемент в очередь */
19
+ add(element: T): void;
20
+ /** вычисляет значение след курсора по кругу */
21
+ private nextCursor;
22
+ /** получить следующий элемент */
23
+ next(): T | null;
24
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
1
  /// <reference lib="webworker" />
2
2
  import type libvpx from '@vkontakte/libvpx';
3
- declare const _default: (vpx: typeof libvpx, urlResolver: (url: string) => string) => void;
3
+ declare const _default: (vpx: typeof libvpx, urlResolver: (url: string) => string, useCongestionControl: boolean, maxBitrate: number) => void;
4
4
  export default _default;