@vkontakte/calls-sdk 2.4.4-dev.71e1f68.0 → 2.4.4-dev.9dfe59f.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.
@@ -7,7 +7,7 @@ import ConversationOption from '../enums/ConversationOption';
7
7
  import FatalError from '../enums/FatalError';
8
8
  import MediaOption from '../enums/MediaOption';
9
9
  import UserRole from '../enums/UserRole';
10
- import { ExternalId, ExternalParticipant } from '../types/ExternalId';
10
+ import { ExternalId, ExternalParticipant, ExternalParticipantId } from '../types/ExternalId';
11
11
  import IceServer from '../types/IceServer';
12
12
  import MediaModifiers from '../types/MediaModifiers';
13
13
  import MediaSettings from '../types/MediaSettings';
@@ -212,6 +212,7 @@ export declare type ParamsObject = {
212
212
  * он хочет видеть, через вызов updateDisplayLayout
213
213
  */
214
214
  videoTracksCount: number;
215
+ movieShare: boolean;
215
216
  filteredMessages: boolean;
216
217
  breakVideoPayloadTypes: boolean;
217
218
  /**
@@ -220,8 +221,7 @@ export declare type ParamsObject = {
220
221
  */
221
222
  batchParticipantsOnStart: boolean;
222
223
  participantStateMapped: boolean;
223
- /** использовать ли список партисипантов через метод чанками, вместо `onConversation` */
224
- useParticipantListChunk: boolean;
224
+ joinFromMultipleDevices: boolean;
225
225
  /**
226
226
  * Получен локальный стрим с камеры/микрофона
227
227
  */
@@ -242,40 +242,40 @@ export declare type ParamsObject = {
242
242
  * Получен стрим собеседника.
243
243
  * Если сервер закончил стримить собеседника, вместо стрима будет передан null
244
244
  */
245
- onRemoteStream?: (userId: ExternalId, stream: MediaStream | null) => void;
245
+ onRemoteStream?: (userId: ExternalParticipantId, stream: MediaStream | null) => void;
246
246
  /**
247
247
  * Получен стрим с экрана собеседника.
248
248
  * Если сервер закончил стримить экран собеседника, вместо стрима будет передан null
249
249
  */
250
- onRemoteScreenStream?: (userId: ExternalId, stream: MediaStream | null) => void;
250
+ onRemoteScreenStream?: (userId: ExternalParticipantId, stream: MediaStream | null) => void;
251
251
  /**
252
252
  * Получен стрим трансляция или мувик от собеседника.
253
253
  * Если сервер закончил стримить экран собеседника, вместо стрима будет передан null
254
254
  */
255
- onRemoteLive?: (userId: ExternalId, streamId: string, stream: MediaStream | null) => void;
255
+ onRemoteLive?: (userId: ExternalParticipantId, streamId: string, stream: MediaStream | null) => void;
256
256
  /**
257
257
  * Начат звонок
258
258
  */
259
- onConversation?: (userId: ExternalId, mediaModifiers: MediaModifiers, muteStates: MuteStates, participants?: ExternalParticipant[]) => void;
259
+ onConversation?: (userId: ExternalParticipantId, mediaModifiers: MediaModifiers, muteStates: MuteStates, participants?: ExternalParticipant[]) => void;
260
260
  /**
261
261
  * Изменились данные стрима собеседника
262
262
  */
263
- onRemoteMediaSettings?: (userId: ExternalId, mediaSettings: MediaSettings) => void;
263
+ onRemoteMediaSettings?: (userId: ExternalParticipantId, mediaSettings: MediaSettings) => void;
264
264
  /**
265
265
  * Изменились данные состояний собеседника
266
266
  */
267
- onRemoteParticipantState?: (userId: ExternalId, participantState: {
267
+ onRemoteParticipantState?: (userId: ExternalParticipantId, participantState: {
268
268
  [key: string]: string;
269
269
  }) => void;
270
270
  /**
271
271
  * Изменился статус соединения собеседников
272
272
  */
273
- onRemoteStatus?: (userIds: ExternalId[], status: ParticipantStatus, data: any) => void;
273
+ onRemoteStatus?: (userIds: ExternalParticipantId[], status: ParticipantStatus, data: any) => void;
274
274
  /**
275
275
  * Изменился статус соединения собеседника
276
276
  * @deprecated
277
277
  */
278
- onParticipantStatus?: (userId: ExternalId, status: ParticipantStatus, data: any) => void;
278
+ onParticipantStatus?: (userId: ExternalParticipantId, status: ParticipantStatus, data: any) => void;
279
279
  /**
280
280
  * Разрешения на доступы были запрошены в браузере
281
281
  */
@@ -287,7 +287,7 @@ export declare type ParamsObject = {
287
287
  /**
288
288
  * Пользователь отключился от звонка
289
289
  */
290
- onRemoteRemoved?: (userId: ExternalId) => void;
290
+ onRemoteRemoved?: (userId: ExternalParticipantId) => void;
291
291
  /**
292
292
  * Изменилось состояние звонка
293
293
  */
@@ -299,11 +299,11 @@ export declare type ParamsObject = {
299
299
  /**
300
300
  * Изменились состояния устройств пользователя или разрешения включать камеру/микрофон
301
301
  */
302
- onMuteStates?: (muteStates: MuteStates, unmuteOptions: MediaOption[], mediaOptions: MediaOption[], muteAll: boolean, unmute: boolean, userId: ExternalId | null, adminId: ExternalId | null) => void;
302
+ onMuteStates?: (muteStates: MuteStates, unmuteOptions: MediaOption[], mediaOptions: MediaOption[], muteAll: boolean, unmute: boolean, userId: ExternalParticipantId | null, adminId: ExternalParticipantId | null) => void;
303
303
  /**
304
304
  * Изменились роли собеседника в звонке
305
305
  */
306
- onRolesChanged?: (userId: ExternalId, roles: UserRole[]) => void;
306
+ onRolesChanged?: (userId: ExternalParticipantId, roles: UserRole[]) => void;
307
307
  /**
308
308
  * Изменились свои роли в звонке
309
309
  */
@@ -311,7 +311,7 @@ export declare type ParamsObject = {
311
311
  /**
312
312
  * Закрепляет/открепляет собеседника для всех
313
313
  */
314
- onPinnedParticipant?: (userId: ExternalId, unpin: boolean) => void;
314
+ onPinnedParticipant?: (userId: ExternalParticipantId, unpin: boolean) => void;
315
315
  /**
316
316
  * Закрепляет/открепляет текущего пользователя у других собеседников
317
317
  */
@@ -324,12 +324,12 @@ export declare type ParamsObject = {
324
324
  /**
325
325
  * Изменился говорящий в звонке
326
326
  */
327
- onSpeakerChanged?: (userId: ExternalId) => void;
327
+ onSpeakerChanged?: (userId: ExternalParticipantId) => void;
328
328
  /**
329
329
  * Громкость собеседников
330
330
  */
331
331
  onVolumesDetected?: (volumes: {
332
- uid: ExternalId;
332
+ uid: ExternalParticipantId;
333
333
  volume: number;
334
334
  }[]) => void;
335
335
  /**
@@ -361,15 +361,15 @@ export declare type ParamsObject = {
361
361
  /**
362
362
  * Получено сообщение чата
363
363
  */
364
- onChatMessage?: (message: string, from: ExternalId, direct: boolean) => void;
364
+ onChatMessage?: (message: string, from: ExternalParticipantId, direct: boolean) => void;
365
365
  /**
366
366
  * Получены данные от собеседника
367
367
  */
368
- onCustomData?: (data: JSONObject, from: ExternalId, direct: boolean) => void;
368
+ onCustomData?: (data: JSONObject, from: ExternalParticipantId, direct: boolean) => void;
369
369
  /**
370
370
  * Начата трансляция/запись звонка
371
371
  */
372
- onRecordStarted?: (initiator: ExternalId, movieId: number, startTime: number, type: 'STREAM' | 'RECORD', externalMovieId?: string, externalOwnerId?: string) => void;
372
+ onRecordStarted?: (initiator: ExternalParticipantId, movieId: number, startTime: number, type: 'STREAM' | 'RECORD', externalMovieId?: string, externalOwnerId?: string) => void;
373
373
  /**
374
374
  * Закончена трансляция/запись звонка
375
375
  */
@@ -386,7 +386,7 @@ export declare type ParamsObject = {
386
386
  * @param status Оценки качества соединения участников от 0 до 1
387
387
  */
388
388
  onNetworkStatusChanged?: (status: {
389
- uid: ExternalId;
389
+ uid: ExternalParticipantId;
390
390
  rating: number;
391
391
  }[]) => void;
392
392
  /**
@@ -420,7 +420,7 @@ export default abstract class Params {
420
420
  static get appVersion(): number;
421
421
  static get sdkVersion(): string | number | boolean;
422
422
  static get debug(): string | number | boolean;
423
- static get protocolVersion(): number;
423
+ static get protocolVersion(): 5 | 6;
424
424
  static get platform(): string;
425
425
  static set platform(value: string);
426
426
  static get clientType(): string;
@@ -493,10 +493,10 @@ export default abstract class Params {
493
493
  static get consumerScreenTrack(): boolean;
494
494
  static get producerScreenTrack(): boolean;
495
495
  static isUnifiedPlanSupported(name: string, version: number): boolean;
496
+ static get movieShare(): boolean;
496
497
  static get videoTracksCount(): number;
497
498
  static get breakVideoPayloadTypes(): boolean;
498
499
  static get filteredMessages(): boolean;
499
500
  static get batchParticipantsOnStart(): boolean;
500
501
  static get participantStateMapped(): boolean;
501
- static get useParticipantListChunk(): boolean;
502
502
  }
package/static/Utils.d.ts CHANGED
@@ -1,21 +1,29 @@
1
- import type { BigInteger } from 'big-integer';
1
+ import { BigInteger } from 'big-integer';
2
2
  import UserType from '../enums/UserType';
3
3
  import { ExternalParticipant } from '../types/ExternalId';
4
- import { CompositeUserId, OkUserId, Participant, ParticipantStateMapped } from '../types/Participant';
4
+ import { CompositeUserId, OkUserId, Participant, ParticipantId, ParticipantStateMapped } from '../types/Participant';
5
5
  import SignalingMessage from '../types/SignalingMessage';
6
6
  import VideoSettings from '../types/VideoSettings';
7
+ export declare const PARAMETERS_SEPARATOR = ":";
8
+ export declare const DEVICE_IDX_PARAMETER = "d";
7
9
  declare namespace Utils {
8
10
  function patchSDP(sdp: string, preferH264: boolean, brokenH264: boolean, preferVP9: boolean, isAudioNack?: boolean): string;
9
11
  function getPeerIdString(peerId: SignalingMessage.PeerId): string;
10
12
  function comparePeerId(peerId1: SignalingMessage.PeerId, peerId2: SignalingMessage.PeerId): boolean;
11
13
  function getPeerConnectionHostInfo(pc: RTCPeerConnection): Promise<any>;
12
- function composeId(id: CompositeUserId | OkUserId, type: UserType): CompositeUserId;
13
- function composeParticipantId(participant: SignalingMessage.Participant): CompositeUserId;
14
- function composeMessageId(message: SignalingMessage): CompositeUserId;
14
+ function composeUserId(id: CompositeUserId | OkUserId, type: UserType): CompositeUserId;
15
+ function composeParticipantId(id: CompositeUserId | OkUserId, type: UserType, deviceIdx: number): ParticipantId;
16
+ function compose(compositeId: CompositeUserId, deviceIdx: number): ParticipantId;
17
+ function composeId(participant: SignalingMessage.Participant): ParticipantId;
18
+ function composeMessageId(message: SignalingMessage): ParticipantId;
15
19
  function decomposeId(compositeId: CompositeUserId | OkUserId): {
16
20
  id: OkUserId;
17
21
  type: UserType;
18
22
  };
23
+ function decomposeParticipantId(participantId: ParticipantId): {
24
+ compositeUserId: CompositeUserId;
25
+ deviceIdx: number;
26
+ };
19
27
  function uuid(): string;
20
28
  function throttle(func: Function, ms: number): (this: any) => void;
21
29
  function sdpFingerprint(sdp: string): BigInteger;
@@ -5,5 +5,6 @@ declare type ConversationParams = {
5
5
  turn_server?: IceServer;
6
6
  stun_server?: IceServer;
7
7
  client_type?: string;
8
+ device_idx?: number;
8
9
  };
9
10
  export default ConversationParams;
@@ -23,5 +23,9 @@ declare type ConversationResponse = {
23
23
  status: HangupType;
24
24
  }[];
25
25
  peerId?: number;
26
+ /**
27
+ * Порядковый номер, присвоенный устройству при входе в звонок
28
+ */
29
+ device_idx?: number;
26
30
  };
27
31
  export default ConversationResponse;
@@ -22,6 +22,13 @@ export declare namespace ExternalIdUtils {
22
22
  function compare(id1: ExternalId, id2: ExternalId): boolean;
23
23
  }
24
24
  export declare type ExternalIdString = string;
25
+ export declare namespace ExternalParticipantIdUtils {
26
+ function fromId(id: string, type?: ExternalIdType, deviceIdx?: number): ExternalParticipantId;
27
+ function toString(externalId: ExternalParticipantId): ExternalParticipantIdString;
28
+ function fromSignaling(signalingId: SignalingMessage.ExternalId, deviceIdx: number): ExternalParticipantId;
29
+ function getDeviceIdx(externalId: string | ExternalParticipantId | null): number;
30
+ }
31
+ export declare type ExternalParticipantIdString = string;
25
32
  /**
26
33
  * Идентификатор внешнего пользователя
27
34
  */
@@ -35,6 +42,15 @@ export interface ExternalId {
35
42
  */
36
43
  type: ExternalIdType;
37
44
  }
45
+ /**
46
+ * Идентификатор участника звонка
47
+ */
48
+ export interface ExternalParticipantId extends ExternalId {
49
+ /**
50
+ * Индекс устройства (позволяет отличать участников, которые присоединяются к звонку под одной учётной записью с разных устройств)
51
+ */
52
+ deviceIdx: number;
53
+ }
38
54
  /**
39
55
  * Участник звонка
40
56
  */
@@ -42,7 +58,7 @@ export interface ExternalParticipant {
42
58
  /**
43
59
  * Идентификатор пользователя
44
60
  */
45
- uid: ExternalId;
61
+ uid: ExternalParticipantId;
46
62
  /**
47
63
  * Данные стрима
48
64
  */
@@ -19,6 +19,7 @@ export declare type MediaSettings = {
19
19
  export declare type VideoStreamInfo = {
20
20
  id: string;
21
21
  source: string;
22
+ vkMovieId?: string;
22
23
  };
23
24
  export default MediaSettings;
24
25
  export declare function compareMediaSettings(ms1: MediaSettings, ms2: MediaSettings): boolean;
@@ -3,10 +3,18 @@ import ParticipantState from '../enums/ParticipantState';
3
3
  import UserRole from '../enums/UserRole';
4
4
  import { ParticipantStatus } from '../static/External';
5
5
  import MediaSettings from '../types/MediaSettings';
6
- import { ExternalId } from './ExternalId';
6
+ import { ExternalParticipantId } from './ExternalId';
7
7
  import MuteStates from './MuteStates';
8
8
  import ParticipantLayout from './ParticipantLayout';
9
+ /**
10
+ * Уникально идентифицирует пользователя или группу
11
+ */
9
12
  export declare type CompositeUserId = string;
13
+ /**
14
+ * Уникально идентифицирует участника звонка
15
+ * (одному пользователю могут соответствовать несколько участников, в случае если пользователь зашёл в звонок с нескольких устройств)
16
+ */
17
+ export declare type ParticipantId = string;
10
18
  export declare type OkUserId = number;
11
19
  /**
12
20
  * Стейт участника звонка
@@ -18,8 +26,8 @@ export interface ParticipantStateMapped {
18
26
  };
19
27
  }
20
28
  export interface Participant {
21
- id: CompositeUserId;
22
- externalId: ExternalId;
29
+ id: ParticipantId;
30
+ externalId: ExternalParticipantId;
23
31
  mediaSettings: MediaSettings;
24
32
  state: ParticipantState;
25
33
  status: ParticipantStatus | null;
@@ -38,31 +46,4 @@ export interface Participant {
38
46
  };
39
47
  muteStates: MuteStates;
40
48
  unmuteOptions: MediaOption[];
41
- markers?: IParticipantListMarkers;
42
- }
43
- /** format "u123" or "g456", where 123 is user's id and 456 is group's id */
44
- export declare type ICompositeEntityId = string;
45
- export declare type IParticipantListType = 'GRID' | 'SIDE' | 'ADMIN';
46
- export declare type IParticipantListMarkers = {
47
- [k in IParticipantListType]?: IParticipantMarker;
48
- };
49
- export interface IParticipantMarker {
50
- /** server-calculated synthetic value - first criterion for sorting participants (DESC) */
51
- rank: number;
52
- /** sorting timestamp - second criterion for sorting participants (ASC) */
53
- ts: number;
54
- /** participant ID - third (and actually fourth) criterion for sorting participants (ASC); sorted first by one-letter prefix (participant type, 'u' < 'g') and second - by long participant id - numerically! */
55
- id: ICompositeEntityId;
56
- }
57
- export interface IGetParticipantListChunkPayload {
58
- listType: IParticipantListType;
59
- /** optional, anchor in sorted list to start from, mutually exclusive with fromIdx */
60
- fromMarker?: IParticipantMarker;
61
- /** optional, 0-based position in sorted list to start from, mutually exclusive with fromMarker */
62
- fromIdx?: number;
63
- count: number;
64
- /** optional, if true then list is to be iterated in reverse order */
65
- backward?: boolean;
66
- /** optional, if true then resulting chunk will start from Participant with specified marker, if such Participant (still) exists */
67
- includeMarker?: boolean;
68
49
  }
@@ -1,4 +1,4 @@
1
- import { ExternalId } from './ExternalId';
1
+ import { ExternalParticipantId } from './ExternalId';
2
2
  import { MediaType } from './ParticipantStreamDescription';
3
3
  /**
4
4
  * Лейаут собеседника в звонке
@@ -42,7 +42,7 @@ export declare type ParticipantLayout = (Layout | StopStream) & {
42
42
  /**
43
43
  * Внешний ID пользователя
44
44
  */
45
- uid: ExternalId | string;
45
+ uid: ExternalParticipantId | string;
46
46
  /**
47
47
  * Тип медиа (видео с камеры, картинка с экрана, лайв или мувик)
48
48
  */
@@ -1,12 +1,12 @@
1
- import { ExternalId } from './ExternalId';
1
+ import { ExternalParticipantId } from './ExternalId';
2
2
  /**
3
3
  * Приоритет собеседника в звонке
4
4
  */
5
5
  declare type ParticipantPriority = {
6
6
  /**
7
- * Внешний ID пользователя
7
+ * Внешний ID участника звонка
8
8
  */
9
- uid: ExternalId | string;
9
+ uid: ExternalParticipantId | string;
10
10
  /**
11
11
  * Приоритет [-1..MAX_INT]
12
12
  */
@@ -1,4 +1,4 @@
1
- import { CompositeUserId } from './Participant';
1
+ import { ParticipantId } from './Participant';
2
2
  /**
3
3
  * Тип пользовательского медиа
4
4
  */
@@ -11,7 +11,7 @@ export declare enum MediaType {
11
11
  export declare function serializeParticipantStreamDescription(description: ParticipantStreamDescription): string;
12
12
  export declare function parseParticipantStreamDescription(descriptionString: string): ParticipantStreamDescription;
13
13
  export declare type ParticipantStreamDescription = {
14
- participantId: CompositeUserId;
14
+ participantId: ParticipantId;
15
15
  mediaType: MediaType | null;
16
16
  streamName?: string;
17
17
  };
@@ -10,12 +10,12 @@ 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, IParticipantListMarkers, OkUserId } from './Participant';
13
+ import { OkUserId, ParticipantId } from './Participant';
14
14
  import VideoSettings from './VideoSettings';
15
15
  import { WaitingParticipant } from './WaitingHall';
16
16
  declare type SignalingMessage = Record<string, any>;
17
17
  export declare type RecordInfo = {
18
- initiator: CompositeUserId;
18
+ initiator: ParticipantId;
19
19
  recordMovieId: number;
20
20
  recordStartTime: number;
21
21
  recordType: 'STREAM' | 'RECORD';
@@ -34,6 +34,7 @@ declare namespace SignalingMessage {
34
34
  export interface Participant {
35
35
  id: OkUserId;
36
36
  idType?: UserType;
37
+ deviceIdx?: number;
37
38
  externalId?: ExternalId;
38
39
  state: ParticipantState;
39
40
  responders?: OkUserId[];
@@ -49,7 +50,6 @@ declare namespace SignalingMessage {
49
50
  restricted?: boolean;
50
51
  muteStates?: MuteStates;
51
52
  unmuteOptions?: MediaOption[];
52
- markers?: IParticipantListMarkers;
53
53
  }
54
54
  interface Conversation {
55
55
  id: string;
@@ -62,7 +62,7 @@ declare namespace SignalingMessage {
62
62
  multichatId: string | null;
63
63
  tamtamMultichatId: string | null;
64
64
  recordInfo: RecordInfo | null;
65
- pinnedParticipantId: CompositeUserId | null;
65
+ pinnedParticipantId: ParticipantId | null;
66
66
  options: ConversationOption[];
67
67
  muteStates?: MuteStates;
68
68
  }
@@ -74,12 +74,14 @@ declare namespace SignalingMessage {
74
74
  export interface TransmittedData extends Notification {
75
75
  participantId: OkUserId;
76
76
  participantType: UserType;
77
+ deviceIdx?: number;
77
78
  peerId: PeerId;
78
79
  data: any;
79
80
  }
80
81
  export interface RegisteredPeer extends Notification {
81
82
  participantId: OkUserId;
82
83
  participantType: UserType;
84
+ deviceIdx?: number;
83
85
  peerId: PeerId;
84
86
  platform: string;
85
87
  clientType: string;
@@ -87,12 +89,14 @@ declare namespace SignalingMessage {
87
89
  export interface AcceptedCall extends Notification {
88
90
  participantId: OkUserId;
89
91
  participantType: UserType;
92
+ deviceIdx?: number;
90
93
  peerId: PeerId;
91
94
  mediaSettings: Partial<MediaSettings>;
92
95
  }
93
96
  export interface Hungup extends Notification {
94
97
  participantId: OkUserId;
95
98
  participantType: UserType;
99
+ deviceIdx?: number;
96
100
  peerId: PeerId;
97
101
  reason: HangupType;
98
102
  }
@@ -102,12 +106,14 @@ declare namespace SignalingMessage {
102
106
  export interface MediaSettingsChanged extends Notification {
103
107
  participantId: OkUserId;
104
108
  participantType: UserType;
109
+ deviceIdx?: number;
105
110
  peerId: PeerId;
106
111
  mediaSettings: Partial<MediaSettings>;
107
112
  }
108
113
  export interface ParticipantStateChanged extends Notification {
109
114
  participantId: OkUserId;
110
115
  participantType: UserType;
116
+ deviceIdx?: number;
111
117
  peerId: PeerId;
112
118
  mediaSettings: Partial<MediaSettings>;
113
119
  participantState: {
@@ -116,13 +122,13 @@ declare namespace SignalingMessage {
116
122
  };
117
123
  }
118
124
  export interface RolesChanged extends Notification {
119
- adminId: CompositeUserId;
120
- participantId: CompositeUserId;
125
+ adminId: ParticipantId;
126
+ participantId: ParticipantId;
121
127
  roles?: UserRole[];
122
128
  }
123
129
  export interface MuteParticipant extends Notification {
124
- adminId?: CompositeUserId;
125
- participantId?: CompositeUserId;
130
+ adminId?: ParticipantId;
131
+ participantId?: ParticipantId;
126
132
  muteStates: MuteStates;
127
133
  unmuteOptions?: MediaOption[];
128
134
  mediaOptions: MediaOption[];
@@ -130,7 +136,7 @@ declare namespace SignalingMessage {
130
136
  muteAll?: boolean;
131
137
  }
132
138
  export interface PinParticipant extends Notification {
133
- participantId: CompositeUserId;
139
+ participantId: ParticipantId;
134
140
  unpin?: boolean;
135
141
  }
136
142
  export interface ParticipantAdded extends Notification {
@@ -154,6 +160,7 @@ declare namespace SignalingMessage {
154
160
  topology: TransportTopology;
155
161
  offerTo: OkUserId[];
156
162
  offerToTypes: UserType[];
163
+ offerToDeviceIdxs: number[];
157
164
  }
158
165
  export interface RateCallData extends Notification {
159
166
  maxRateForQuestion: number;
@@ -170,12 +177,10 @@ declare namespace SignalingMessage {
170
177
  reason: string;
171
178
  }
172
179
  export interface RecordStarted extends Notification {
173
- idType: UserType;
174
- id: OkUserId;
175
180
  recordInfo: RecordInfo;
176
181
  }
177
182
  export interface RecordStopped extends Notification {
178
- participant: CompositeUserId;
183
+ participant: ParticipantId;
179
184
  recordMovieId: number;
180
185
  }
181
186
  export interface ReallocCon extends Notification {
@@ -185,6 +190,7 @@ declare namespace SignalingMessage {
185
190
  export interface ChatMessage extends Notification {
186
191
  participantId: OkUserId;
187
192
  participantType: UserType;
193
+ deviceIdx?: number;
188
194
  direct: boolean;
189
195
  message: string;
190
196
  }
@@ -197,13 +203,13 @@ declare namespace SignalingMessage {
197
203
  settings: Record<string, any>;
198
204
  }
199
205
  export interface StalledActivity extends Notification {
200
- stalledParticipants: CompositeUserId[];
206
+ stalledParticipants: ParticipantId[];
201
207
  }
202
208
  export interface AudioActivity extends Notification {
203
- activeParticipants: CompositeUserId[];
209
+ activeParticipants: ParticipantId[];
204
210
  }
205
211
  export interface SpeakerChanged extends Notification {
206
- speaker: CompositeUserId;
212
+ speaker: ParticipantId;
207
213
  }
208
214
  export interface OptionsChanged extends Notification {
209
215
  options: ConversationOption[];
@@ -212,7 +218,7 @@ declare namespace SignalingMessage {
212
218
  statuses: Record<string, number>;
213
219
  }
214
220
  export interface PromotionApproved extends Notification {
215
- adminId: CompositeUserId;
221
+ adminId: ParticipantId;
216
222
  }
217
223
  export interface PromoteParticipant extends Notification {
218
224
  demote: boolean;
@@ -223,8 +229,8 @@ declare namespace SignalingMessage {
223
229
  eventType: ChatRoomEventType;
224
230
  totalCount: number;
225
231
  firstParticipants: WaitingParticipant[];
226
- addedParticipantIds: CompositeUserId[];
227
- removedParticipantIds: CompositeUserId[];
232
+ addedParticipantIds: ParticipantId[];
233
+ removedParticipantIds: ParticipantId[];
228
234
  feedback: Record<string, any>[];
229
235
  }
230
236
  export interface VideoQualityUpdate extends Notification {
@@ -236,6 +242,7 @@ declare namespace SignalingMessage {
236
242
  export interface CustomData extends Notification {
237
243
  participantId: OkUserId;
238
244
  participantType: UserType;
245
+ deviceIdx?: number;
239
246
  data: Record<string, any>;
240
247
  }
241
248
  export interface SwitchMicro extends Notification {
@@ -248,16 +255,6 @@ declare namespace SignalingMessage {
248
255
  peerId: PeerId;
249
256
  mediaModifiers: MediaModifiers;
250
257
  }
251
- export interface IParticipantListChunk extends Notification {
252
- response: 'get-participant-list-chunk';
253
- chunk: {
254
- /** each contains ParticipantListMarker for requested ParticipantListType */
255
- participants: Participant[];
256
- countBefore: number;
257
- countAfter: number;
258
- markerFound: boolean;
259
- };
260
- }
261
258
  export {};
262
259
  }
263
260
  export default SignalingMessage;
@@ -1,2 +0,0 @@
1
- export declare function loadDependencies(): Promise<void>;
2
- export declare function getLibrary(name: string): any;