@vkontakte/calls-sdk 2.5.3-dev.fe8ad1c.0 → 2.6.2-dev.14b086c.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.
@@ -9,11 +9,11 @@ import UserRole from '../enums/UserRole';
9
9
  import UserType from '../enums/UserType';
10
10
  import MediaModifiers from './MediaModifiers';
11
11
  import MediaSettings from './MediaSettings';
12
- import { ISharedMovieState } from './MovieShare';
12
+ import { ISharedMovieInfo, ISharedMovieState, ISharedMovieStoppedInfo } from './MovieShare';
13
13
  import MuteStates from './MuteStates';
14
- import { CompositeUserId, OkUserId, ParticipantId } from './Participant';
14
+ import { CompositeUserId, OkUserId, ParticipantId, ParticipantListMarker as ParticipantParticipantListMarker, ParticipantListMarkers, ParticipantListType as ParticipantParticipantListType } from './Participant';
15
15
  import VideoSettings from './VideoSettings';
16
- import { WaitingParticipant } from './WaitingHall';
16
+ import { ChatRoom } from './WaitingHall';
17
17
  declare type SignalingMessage = Record<string, any>;
18
18
  export declare type RecordInfo = {
19
19
  initiator: ParticipantId;
@@ -32,12 +32,8 @@ declare namespace SignalingMessage {
32
32
  id: number;
33
33
  type?: string;
34
34
  }
35
- export type ParticipantListType = 'GRID' | 'SIDE' | 'ADMIN';
36
- export interface ParticipantListMarker {
37
- rank: number;
38
- ts: number;
39
- id?: CompositeUserId;
40
- }
35
+ export type ParticipantListType = ParticipantParticipantListType;
36
+ export type ParticipantListMarker = ParticipantParticipantListMarker;
41
37
  export interface Participant {
42
38
  id: OkUserId;
43
39
  idType?: UserType;
@@ -57,8 +53,15 @@ declare namespace SignalingMessage {
57
53
  restricted?: boolean;
58
54
  muteStates?: MuteStates;
59
55
  unmuteOptions?: MediaOption[];
60
- markers?: Record<ParticipantListType, ParticipantListMarker>;
56
+ markers?: ParticipantListMarkers;
61
57
  observedIds?: CompositeUserId[];
58
+ movieShareInfos?: ISharedMovieInfo[];
59
+ }
60
+ export interface ParticipantListChunk extends Notification {
61
+ participants: (Participant & Required<Pick<Participant, 'markers'>>)[];
62
+ countBefore: number;
63
+ countAfter: number;
64
+ markerFound: boolean;
62
65
  }
63
66
  interface Conversation {
64
67
  id: string;
@@ -85,7 +88,10 @@ declare namespace SignalingMessage {
85
88
  participantType: UserType;
86
89
  deviceIdx?: number;
87
90
  peerId: PeerId;
88
- data: any;
91
+ data: {
92
+ candidate?: RTCIceCandidateInit;
93
+ sdp?: RTCSessionDescriptionInit;
94
+ };
89
95
  }
90
96
  export interface RegisteredPeer extends Notification {
91
97
  participantId: OkUserId;
@@ -108,6 +114,7 @@ declare namespace SignalingMessage {
108
114
  deviceIdx?: number;
109
115
  peerId: PeerId;
110
116
  reason: HangupType;
117
+ markers?: ParticipantListMarkers;
111
118
  }
112
119
  export interface ClosedConversation extends Notification {
113
120
  reason: HangupType;
@@ -118,6 +125,7 @@ declare namespace SignalingMessage {
118
125
  deviceIdx?: number;
119
126
  peerId: PeerId;
120
127
  mediaSettings: Partial<MediaSettings>;
128
+ markers?: ParticipantListMarkers;
121
129
  }
122
130
  export interface ParticipantStateChanged extends Notification {
123
131
  participantId: OkUserId;
@@ -129,6 +137,7 @@ declare namespace SignalingMessage {
129
137
  state: Record<string, string>;
130
138
  stateUpdateTs: Record<string, number>;
131
139
  };
140
+ markers?: ParticipantListMarkers;
132
141
  }
133
142
  export interface RolesChanged extends Notification {
134
143
  adminId: ParticipantId;
@@ -236,11 +245,11 @@ declare namespace SignalingMessage {
236
245
  }
237
246
  export interface ChatRoomUpdated extends Notification {
238
247
  eventType: ChatRoomEventType;
239
- totalCount: number;
240
- firstParticipants: WaitingParticipant[];
241
- addedParticipantIds: ParticipantId[];
242
- removedParticipantIds: ParticipantId[];
243
- feedback: Record<string, any>[];
248
+ totalCount: ChatRoom['totalCount'];
249
+ firstParticipants?: ChatRoom['firstParticipants'];
250
+ addedParticipantIds?: ParticipantId[];
251
+ removedParticipantIds?: ParticipantId[];
252
+ feedback?: ChatRoom['feedback'];
244
253
  }
245
254
  export interface VideoQualityUpdate extends Notification {
246
255
  quality: {
@@ -263,10 +272,20 @@ declare namespace SignalingMessage {
263
272
  isConcurrent: boolean;
264
273
  peerId: PeerId;
265
274
  mediaModifiers: MediaModifiers;
275
+ participants?: ParticipantListChunk;
276
+ chatRoom?: ChatRoom;
277
+ }
278
+ export interface JoinLinkChanged extends Notification {
279
+ joinLink: string;
266
280
  }
267
281
  export interface SharedMovieState extends Notification {
268
282
  data: ISharedMovieState[];
269
283
  }
284
+ export interface SharedMovieInfo extends Notification {
285
+ movieShareInfo: ISharedMovieInfo;
286
+ }
287
+ export interface SharedMovieStoppedInfo extends Notification, ISharedMovieStoppedInfo {
288
+ }
270
289
  export {};
271
290
  }
272
291
  export default SignalingMessage;
@@ -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;