@vkontakte/calls-sdk 2.5.3-beta.13 → 2.5.3-beta.16

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.5.3-beta.13",
3
+ "version": "2.5.3-beta.16",
4
4
  "author": "vk.com",
5
5
  "description": "Library for video calls based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
package/static/Utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import UserType from '../enums/UserType';
2
- import { ExternalParticipant } from '../types/ExternalId';
2
+ import { ExternalParticipant, ExternalParticipantListMarker } from '../types/ExternalId';
3
3
  import { CompositeUserId, OkUserId, Participant, ParticipantId, ParticipantStateMapped } from '../types/Participant';
4
4
  import SignalingMessage from '../types/SignalingMessage';
5
5
  import VideoSettings from '../types/VideoSettings';
@@ -55,5 +55,10 @@ declare namespace Utils {
55
55
  }): boolean;
56
56
  function isArraysEquals<T>(arr1: T[], arr2: T[]): boolean;
57
57
  function isEmptyObject(obj: object): boolean;
58
+ /**
59
+ * @see https://wiki.odkl.ru/pages/viewpage.action?spaceKey=VIDEO&title=Signaling+API#SignalingAPI-Постраничныйвыводпартисипантов
60
+ * https://stash.odkl.ru/projects/ODKL/repos/odnoklassniki-webrtc/browse/src/main/java/one/webrtc/domain/conversation/ParticipantIndex.java#67-78
61
+ */
62
+ function participantMarkerCompare(marker1: ExternalParticipantListMarker | undefined, marker2: ExternalParticipantListMarker | undefined): number;
58
63
  }
59
64
  export default Utils;
@@ -0,0 +1 @@
1
+ export {};
@@ -12,7 +12,7 @@ import MediaSettings from './MediaSettings';
12
12
  import MuteStates from './MuteStates';
13
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;
@@ -240,11 +240,11 @@ declare namespace SignalingMessage {
240
240
  }
241
241
  export interface ChatRoomUpdated extends Notification {
242
242
  eventType: ChatRoomEventType;
243
- totalCount: number;
244
- firstParticipants: WaitingParticipant[];
245
- addedParticipantIds: ParticipantId[];
246
- removedParticipantIds: ParticipantId[];
247
- feedback: Record<string, any>[];
243
+ totalCount: ChatRoom['totalCount'];
244
+ firstParticipants?: ChatRoom['firstParticipants'];
245
+ addedParticipantIds?: ParticipantId[];
246
+ removedParticipantIds?: ParticipantId[];
247
+ feedback?: ChatRoom['feedback'];
248
248
  }
249
249
  export interface VideoQualityUpdate extends Notification {
250
250
  quality: {
@@ -268,6 +268,7 @@ declare namespace SignalingMessage {
268
268
  peerId: PeerId;
269
269
  mediaModifiers: MediaModifiers;
270
270
  participants?: ParticipantListChunk;
271
+ chatRoom?: ChatRoom;
271
272
  }
272
273
  export {};
273
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;