@vkontakte/calls-sdk 2.5.3-dev.6fa8b9b.0 → 2.5.3-dev.9a5ee0c.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.
@@ -10,9 +10,9 @@ import UserType from '../enums/UserType';
10
10
  import MediaModifiers from './MediaModifiers';
11
11
  import MediaSettings from './MediaSettings';
12
12
  import MuteStates from './MuteStates';
13
- import { CompositeUserId, OkUserId, ParticipantId } from './Participant';
13
+ import { CompositeUserId, OkUserId, ParticipantId, ParticipantListMarker as ParticipantParticipantListMarker, ParticipantListMarkers, ParticipantListType as ParticipantParticipantListType } from './Participant';
14
14
  import VideoSettings from './VideoSettings';
15
- import { WaitingParticipant } from './WaitingHall';
15
+ import { ChatRoom } from './WaitingHall';
16
16
  declare type SignalingMessage = Record<string, any>;
17
17
  export declare type RecordInfo = {
18
18
  initiator: ParticipantId;
@@ -31,12 +31,8 @@ declare namespace SignalingMessage {
31
31
  id: number;
32
32
  type?: string;
33
33
  }
34
- export type ParticipantListType = 'GRID' | 'SIDE' | 'ADMIN';
35
- export interface ParticipantListMarker {
36
- rank: number;
37
- ts: number;
38
- id?: CompositeUserId;
39
- }
34
+ export type ParticipantListType = ParticipantParticipantListType;
35
+ export type ParticipantListMarker = ParticipantParticipantListMarker;
40
36
  export interface Participant {
41
37
  id: OkUserId;
42
38
  idType?: UserType;
@@ -56,9 +52,15 @@ declare namespace SignalingMessage {
56
52
  restricted?: boolean;
57
53
  muteStates?: MuteStates;
58
54
  unmuteOptions?: MediaOption[];
59
- markers?: Record<ParticipantListType, ParticipantListMarker>;
55
+ markers?: ParticipantListMarkers;
60
56
  observedIds?: CompositeUserId[];
61
57
  }
58
+ export interface ParticipantListChunk extends Notification {
59
+ participants: (Participant & Required<Pick<Participant, 'markers'>>)[];
60
+ countBefore: number;
61
+ countAfter: number;
62
+ markerFound: boolean;
63
+ }
62
64
  interface Conversation {
63
65
  id: string;
64
66
  state: string;
@@ -107,6 +109,7 @@ declare namespace SignalingMessage {
107
109
  deviceIdx?: number;
108
110
  peerId: PeerId;
109
111
  reason: HangupType;
112
+ markers?: ParticipantListMarkers;
110
113
  }
111
114
  export interface ClosedConversation extends Notification {
112
115
  reason: HangupType;
@@ -117,6 +120,7 @@ declare namespace SignalingMessage {
117
120
  deviceIdx?: number;
118
121
  peerId: PeerId;
119
122
  mediaSettings: Partial<MediaSettings>;
123
+ markers?: ParticipantListMarkers;
120
124
  }
121
125
  export interface ParticipantStateChanged extends Notification {
122
126
  participantId: OkUserId;
@@ -128,6 +132,7 @@ declare namespace SignalingMessage {
128
132
  state: Record<string, string>;
129
133
  stateUpdateTs: Record<string, number>;
130
134
  };
135
+ markers?: ParticipantListMarkers;
131
136
  }
132
137
  export interface RolesChanged extends Notification {
133
138
  adminId: ParticipantId;
@@ -235,11 +240,11 @@ declare namespace SignalingMessage {
235
240
  }
236
241
  export interface ChatRoomUpdated extends Notification {
237
242
  eventType: ChatRoomEventType;
238
- totalCount: number;
239
- firstParticipants: WaitingParticipant[];
240
- addedParticipantIds: ParticipantId[];
241
- removedParticipantIds: ParticipantId[];
242
- feedback: Record<string, any>[];
243
+ totalCount: ChatRoom['totalCount'];
244
+ firstParticipants?: ChatRoom['firstParticipants'];
245
+ addedParticipantIds?: ParticipantId[];
246
+ removedParticipantIds?: ParticipantId[];
247
+ feedback?: ChatRoom['feedback'];
243
248
  }
244
249
  export interface VideoQualityUpdate extends Notification {
245
250
  quality: {
@@ -262,6 +267,8 @@ declare namespace SignalingMessage {
262
267
  isConcurrent: boolean;
263
268
  peerId: PeerId;
264
269
  mediaModifiers: MediaModifiers;
270
+ participants?: ParticipantListChunk;
271
+ chatRoom?: ChatRoom;
265
272
  }
266
273
  export {};
267
274
  }
@@ -9,6 +9,19 @@ export declare type WaitingParticipant = {
9
9
  id: WaitingParticipantId;
10
10
  externalId?: SignalingMessage.ExternalId;
11
11
  };
12
+ export declare type Feedback = {
13
+ key: string;
14
+ totalCount: number;
15
+ currentCount: number;
16
+ timeout: number;
17
+ participantIds: CompositeUserId[];
18
+ };
19
+ export declare type ChatRoom = {
20
+ totalCount: number;
21
+ firstParticipants?: WaitingParticipant[];
22
+ handCount?: number;
23
+ feedback?: Feedback[];
24
+ };
12
25
  /**
13
26
  * Ответ на запрос `getWaitingHall`
14
27
  */
@@ -1,3 +1,3 @@
1
1
  /// <reference lib="webworker" />
2
- declare const _default: () => void;
2
+ declare const _default: (videoFrameTransferable: boolean) => void;
3
3
  export default _default;