@vkontakte/calls-sdk 2.6.2-dev.ea88167.0 → 2.6.2-dev.ea953c5.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.
@@ -0,0 +1,60 @@
1
+ import { ExternalParticipantId, ExternalParticipantListChunk } from './ExternalId';
2
+ import { Participant, ParticipantListMarkers } from './Participant';
3
+ export interface Room {
4
+ id: number;
5
+ /**
6
+ * name of this room
7
+ */
8
+ name: string;
9
+ /**
10
+ * count of participants (read/write, optional)
11
+ */
12
+ participantCount: number;
13
+ /**
14
+ * ids of all participants (read/write, optional)
15
+ */
16
+ participantIds: ExternalParticipantId[];
17
+ /**
18
+ * ids of participants to be added to this room (read/write, optional)
19
+ */
20
+ addParticipantIds?: ExternalParticipantId[];
21
+ /**
22
+ * ids of participants to be removed from this room (read/write, optional)
23
+ */
24
+ removeParticipantIds?: ExternalParticipantId[];
25
+ /**
26
+ * if participant requested then contains first chunk of participants in this rooms
27
+ * (if client fails to support chunks, then contains all participant in this room)
28
+ * (read, optional)
29
+ */
30
+ participants?: ExternalParticipantListChunk;
31
+ /**
32
+ * if this room is active (read/write, optional)
33
+ */
34
+ active?: boolean;
35
+ }
36
+ export interface RoomsUpdate {
37
+ rooms?: Room[];
38
+ roomIds?: number[];
39
+ }
40
+ export interface RoomParticipantUpdate {
41
+ roomId: number;
42
+ /**
43
+ * total number of participants in the room
44
+ */
45
+ participantCount: number;
46
+ /**
47
+ * ids of added participants, always present (if any) so participants would be able
48
+ * to identify their presence in particular room
49
+ */
50
+ addedParticipantIds?: ExternalParticipantId[];
51
+ /**
52
+ * optional, data for added participants
53
+ */
54
+ addedParticipants?: Participant[];
55
+ /**
56
+ * optional, depending on the context may contain either markers
57
+ * for all (sorted) lists available or be empty (if client fails to support chunked participants)
58
+ */
59
+ removedParticipantMarkers?: ParticipantListMarkers;
60
+ }
@@ -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 MediaModifiers from './MediaModifiers';
11
12
  import MediaSettings from './MediaSettings';
13
+ import { ISharedMovieInfo, ISharedMovieState, ISharedMovieStoppedInfo } from './MovieShare';
12
14
  import MuteStates from './MuteStates';
13
15
  import { CompositeUserId, OkUserId, ParticipantId, ParticipantListMarker as ParticipantParticipantListMarker, ParticipantListMarkers, ParticipantListType as ParticipantParticipantListType } from './Participant';
14
16
  import VideoSettings from './VideoSettings';
@@ -54,6 +56,7 @@ declare namespace SignalingMessage {
54
56
  unmuteOptions?: MediaOption[];
55
57
  markers?: ParticipantListMarkers;
56
58
  observedIds?: CompositeUserId[];
59
+ movieShareInfos?: ISharedMovieInfo[];
57
60
  }
58
61
  export interface ParticipantListChunk extends Notification {
59
62
  participants: (Participant & Required<Pick<Participant, 'markers'>>)[];
@@ -72,10 +75,21 @@ declare namespace SignalingMessage {
72
75
  multichatId: string | null;
73
76
  tamtamMultichatId: string | null;
74
77
  recordInfo: RecordInfo | null;
78
+ featuresPerRole?: Partial<Record<ConversationFeature, UserRole[]>> | null;
75
79
  pinnedParticipantId: ParticipantId | null;
76
80
  options: ConversationOption[];
77
81
  muteStates?: MuteStates;
78
82
  }
83
+ export interface Room extends SignalingMessage {
84
+ id?: number;
85
+ name?: string;
86
+ participantCount?: number;
87
+ participantIds?: CompositeUserId[];
88
+ addParticipantIds?: CompositeUserId[];
89
+ removeParticipantIds?: CompositeUserId[];
90
+ participants?: ParticipantListChunk;
91
+ active?: boolean;
92
+ }
79
93
  interface Notification extends SignalingMessage {
80
94
  type?: string;
81
95
  notification?: string;
@@ -186,6 +200,7 @@ declare namespace SignalingMessage {
186
200
  }
187
201
  export interface FeatureSetChanged extends Notification {
188
202
  features: ConversationFeature[];
203
+ featuresPerRole?: Partial<Record<ConversationFeature, UserRole[]>> | null;
189
204
  }
190
205
  export interface MultipartyChatCreated extends Notification {
191
206
  chatId: string;
@@ -275,10 +290,40 @@ declare namespace SignalingMessage {
275
290
  mediaModifiers: MediaModifiers;
276
291
  participants?: ParticipantListChunk;
277
292
  chatRoom?: ChatRoom;
293
+ rooms?: {
294
+ rooms: Room[];
295
+ };
278
296
  }
279
297
  export interface JoinLinkChanged extends Notification {
280
298
  joinLink: string;
281
299
  }
300
+ export interface SharedMovieState extends Notification {
301
+ data: ISharedMovieState[];
302
+ }
303
+ export interface SharedMovieInfo extends Notification {
304
+ movieShareInfo: ISharedMovieInfo;
305
+ }
306
+ export interface SharedMovieStoppedInfo extends Notification, ISharedMovieStoppedInfo {
307
+ }
308
+ export interface RoomsUpdated extends Notification {
309
+ updates: Partial<Record<RoomsEventType, {
310
+ rooms?: Room;
311
+ roomIds?: number[];
312
+ }>>;
313
+ }
314
+ export interface RoomUpdated extends Notification {
315
+ events: RoomsEventType[];
316
+ room?: Room;
317
+ roomId: number;
318
+ deactivate?: boolean;
319
+ }
320
+ export interface RoomParticipantsUpdated extends Notification {
321
+ roomId: number;
322
+ participantCount: number;
323
+ addedParticipantIds?: CompositeUserId[];
324
+ addedParticipants?: Participant[];
325
+ removedParticipantMarkers?: ParticipantListMarkers;
326
+ }
282
327
  export {};
283
328
  }
284
329
  export default SignalingMessage;