@vkontakte/calls-sdk 2.6.2-dev.4953823.0 → 2.6.2-dev.4e28060.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,21 @@ 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
+ }
83
96
  interface Notification extends SignalingMessage {
84
97
  type?: string;
85
98
  notification?: string;
@@ -190,7 +203,7 @@ declare namespace SignalingMessage {
190
203
  }
191
204
  export interface FeatureSetChanged extends Notification {
192
205
  features: ConversationFeature[];
193
- featuresPerRole?: Partial<Record<ConversationFeature, UserRole[]>> | null;
206
+ featuresPerRole?: IFeaturesPerRole | null;
194
207
  }
195
208
  export interface MultipartyChatCreated extends Notification {
196
209
  chatId: string;
@@ -280,6 +293,10 @@ declare namespace SignalingMessage {
280
293
  mediaModifiers: MediaModifiers;
281
294
  participants?: ParticipantListChunk;
282
295
  chatRoom?: ChatRoom;
296
+ rooms?: {
297
+ rooms: Room[];
298
+ roomId?: number;
299
+ };
283
300
  }
284
301
  export interface JoinLinkChanged extends Notification {
285
302
  joinLink: string;
@@ -295,6 +312,35 @@ declare namespace SignalingMessage {
295
312
  }
296
313
  export interface SharedMovieStoppedInfo extends Notification, ISharedMovieStoppedInfo {
297
314
  }
315
+ export interface RoomsUpdated extends Notification {
316
+ updates: Partial<Record<RoomsEventType, {
317
+ rooms?: Room;
318
+ roomIds?: number[];
319
+ deactivated?: boolean;
320
+ }>>;
321
+ }
322
+ export interface RoomUpdated extends Notification {
323
+ events: RoomsEventType[];
324
+ room?: Room;
325
+ roomId: number;
326
+ deactivate?: boolean;
327
+ }
328
+ export interface RoomParticipantsUpdated extends Notification {
329
+ roomId: number;
330
+ participantCount: number;
331
+ addedParticipantIds?: CompositeUserId[];
332
+ addedParticipants?: Participant[];
333
+ removedParticipantMarkers?: ParticipantListMarkers;
334
+ }
335
+ export interface FeaturesPerRoleChanged extends Notification {
336
+ featuresPerRole?: IFeaturesPerRole | null;
337
+ }
338
+ export interface AsrStarted extends Notification {
339
+ asrInfo: AsrInfo;
340
+ }
341
+ export interface AsrStopped extends Notification {
342
+ movieId: number;
343
+ }
298
344
  export {};
299
345
  }
300
346
  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;