@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
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 {
|
|
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:
|
|
244
|
-
firstParticipants
|
|
245
|
-
addedParticipantIds
|
|
246
|
-
removedParticipantIds
|
|
247
|
-
feedback
|
|
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
|
}
|
package/types/WaitingHall.d.ts
CHANGED
|
@@ -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
|
*/
|