@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.
- package/CallsSDK.d.ts +14 -3
- package/abstract/BaseSignaling.d.ts +4 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +21 -3
- package/classes/Conversation.test.d.ts +1 -0
- package/classes/SpeakerDetector.d.ts +4 -5
- package/classes/VolumesDetector.d.ts +1 -1
- package/classes/codec/IDecoder.d.ts +1 -1
- package/classes/codec/WebCodecsDecoder.d.ts +1 -1
- package/classes/screenshare/BaseRenderer.d.ts +8 -0
- package/classes/screenshare/CanvasRenderer.d.ts +16 -0
- package/classes/screenshare/StreamBuilder.d.ts +1 -9
- package/classes/screenshare/TrackGeneratorRenderer.d.ts +10 -0
- package/classes/transport/Transport.d.ts +1 -2
- package/default/Signaling.d.ts +4 -1
- package/enums/HangupType.d.ts +2 -1
- package/enums/SignalingCommandType.d.ts +2 -0
- package/package.json +1 -1
- package/static/External.d.ts +34 -5
- package/static/Params.d.ts +47 -5
- package/static/Utils.d.ts +6 -1
- package/static/Utils.test.d.ts +1 -0
- package/types/ConversationParams.d.ts +4 -0
- package/types/ExternalId.d.ts +16 -1
- package/types/Participant.d.ts +12 -1
- package/types/ParticipantListChunk.d.ts +13 -0
- package/types/SignalingMessage.d.ts +21 -14
- package/types/WaitingHall.d.ts +13 -0
- package/worker/WebCodecsDecoderWorker.d.ts +1 -1
|
@@ -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 {
|
|
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 =
|
|
35
|
-
export
|
|
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?:
|
|
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:
|
|
239
|
-
firstParticipants
|
|
240
|
-
addedParticipantIds
|
|
241
|
-
removedParticipantIds
|
|
242
|
-
feedback
|
|
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
|
}
|
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
|
*/
|