@vkontakte/calls-sdk 2.6.2-beta.26 → 2.6.2-beta.28

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,10 +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';
10
11
  import { IFeaturesPerRole } from './ConversationFeature';
11
12
  import { IFeedback } from './Feedback';
13
+ import { AsrInfo } from './Asr';
12
14
  import MediaModifiers from './MediaModifiers';
13
15
  import MediaSettings from './MediaSettings';
14
16
  import { ISharedMovieInfo, ISharedMovieState, ISharedMovieStoppedInfo } from './MovieShare';
@@ -81,6 +83,16 @@ declare namespace SignalingMessage {
81
83
  options: ConversationOption[];
82
84
  muteStates?: MuteStates;
83
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
+ }
84
96
  interface Notification extends SignalingMessage {
85
97
  type?: string;
86
98
  notification?: string;
@@ -281,6 +293,10 @@ declare namespace SignalingMessage {
281
293
  mediaModifiers: MediaModifiers;
282
294
  participants?: ParticipantListChunk;
283
295
  chatRoom?: ChatRoom;
296
+ rooms?: {
297
+ rooms: Room[];
298
+ roomId?: number;
299
+ };
284
300
  }
285
301
  export interface JoinLinkChanged extends Notification {
286
302
  joinLink: string;
@@ -296,9 +312,34 @@ declare namespace SignalingMessage {
296
312
  }
297
313
  export interface SharedMovieStoppedInfo extends Notification, ISharedMovieStoppedInfo {
298
314
  }
315
+ export interface RoomsUpdated extends Notification {
316
+ updates: Partial<Record<RoomsEventType, {
317
+ rooms?: Room;
318
+ roomIds?: number[];
319
+ }>>;
320
+ }
321
+ export interface RoomUpdated extends Notification {
322
+ events: RoomsEventType[];
323
+ room?: Room;
324
+ roomId: number;
325
+ deactivate?: boolean;
326
+ }
327
+ export interface RoomParticipantsUpdated extends Notification {
328
+ roomId: number;
329
+ participantCount: number;
330
+ addedParticipantIds?: CompositeUserId[];
331
+ addedParticipants?: Participant[];
332
+ removedParticipantMarkers?: ParticipantListMarkers;
333
+ }
299
334
  export interface FeaturesPerRoleChanged extends Notification {
300
335
  featuresPerRole?: IFeaturesPerRole | null;
301
336
  }
337
+ export interface AsrStarted extends Notification {
338
+ asrInfo: AsrInfo;
339
+ }
340
+ export interface AsrStopped extends Notification {
341
+ movieId: number;
342
+ }
302
343
  export {};
303
344
  }
304
345
  export default SignalingMessage;
@@ -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;