@vkontakte/calls-sdk 2.6.3-dev.e77d93a.0 → 2.7.1
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 +19 -23
- package/abstract/BaseApi.d.ts +1 -3
- package/abstract/BaseSignaling.d.ts +1 -1
- package/calls-sdk.cjs.js +9 -9
- package/calls-sdk.esm.js +9 -9
- package/classes/Conversation.d.ts +12 -3
- package/classes/MediaSource.d.ts +7 -1
- package/classes/VolumeDetector.d.ts +1 -1
- package/classes/codec/Types.d.ts +3 -3
- package/classes/screenshare/PacketHistory.d.ts +1 -1
- package/classes/screenshare/SharingStatReport.d.ts +1 -1
- package/classes/transport/DirectTransport.d.ts +1 -1
- package/classes/transport/PerfStatReporter.d.ts +2 -2
- package/classes/transport/Statistics.d.ts +4 -4
- package/default/Api.d.ts +0 -2
- package/default/Signaling.d.ts +1 -1
- package/enums/ConversationFeature.d.ts +3 -0
- package/enums/RoomsEventType.d.ts +3 -0
- package/package.json +2 -2
- package/static/External.d.ts +15 -0
- package/static/Json.d.ts +1 -1
- package/static/Params.d.ts +23 -5
- package/static/Utils.d.ts +3 -0
- package/static/WebRTCUtils.d.ts +19 -5
- package/types/ConversationFeature.d.ts +4 -1
- package/types/ConversationParams.d.ts +1 -1
- package/types/ConversationResponse.d.ts +1 -1
- package/types/ExternalId.d.ts +8 -5
- package/types/Feedback.d.ts +6 -0
- package/types/IceServer.d.ts +1 -1
- package/types/MediaDeviceType.d.ts +1 -1
- package/types/MediaModifiers.d.ts +1 -1
- package/types/MediaSettings.d.ts +8 -2
- package/types/MovieShare.d.ts +1 -1
- package/types/MuteStates.d.ts +4 -1
- package/types/Participant.d.ts +14 -5
- package/types/ParticipantLayout.d.ts +4 -4
- package/types/ParticipantPriority.d.ts +1 -1
- package/types/ParticipantStreamDescription.d.ts +1 -1
- package/types/PushData.d.ts +1 -1
- package/types/Room.d.ts +9 -0
- package/types/ScreenCaptureSettings.d.ts +3 -0
- package/types/ServerSettings.d.ts +1 -1
- package/types/SignalingCommand.d.ts +1 -1
- package/types/SignalingMessage.d.ts +2 -2
- package/types/VideoSettings.d.ts +1 -1
- package/types/WaitingHall.d.ts +4 -4
package/types/Participant.d.ts
CHANGED
|
@@ -10,20 +10,29 @@ import ParticipantLayout from './ParticipantLayout';
|
|
|
10
10
|
/**
|
|
11
11
|
* Уникально идентифицирует пользователя или группу
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type CompositeUserId = string;
|
|
14
14
|
/**
|
|
15
15
|
* Уникально идентифицирует участника звонка
|
|
16
16
|
* (одному пользователю могут соответствовать несколько участников, в случае если пользователь зашёл в звонок с нескольких устройств)
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
|
|
18
|
+
export type ParticipantId = string;
|
|
19
|
+
export type OkUserId = number;
|
|
20
|
+
/**
|
|
21
|
+
* Тип списка участников в звонке
|
|
22
|
+
*/
|
|
23
|
+
export type ParticipantListType = 'GRID' | 'SIDE' | 'ADMIN';
|
|
24
|
+
/**
|
|
25
|
+
* Маркер определяющий положение участника в списке
|
|
26
|
+
*/
|
|
21
27
|
export interface ParticipantListMarker {
|
|
22
28
|
rank?: number;
|
|
23
29
|
ts?: number;
|
|
24
30
|
id?: CompositeUserId;
|
|
25
31
|
}
|
|
26
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Маркеры определяющие положения участников в списке
|
|
34
|
+
*/
|
|
35
|
+
export type ParticipantListMarkers = Record<ParticipantListType, ParticipantListMarker>;
|
|
27
36
|
/**
|
|
28
37
|
* Стейт участника звонка
|
|
29
38
|
*/
|
|
@@ -3,7 +3,7 @@ import { MediaType } from './ParticipantStreamDescription';
|
|
|
3
3
|
/**
|
|
4
4
|
* Лейаут собеседника в звонке
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type Layout = {
|
|
7
7
|
/**
|
|
8
8
|
* Ширина окошка в котором отображается видео, в пикселях (0 отключает видео)
|
|
9
9
|
*/
|
|
@@ -25,7 +25,7 @@ export declare type Layout = {
|
|
|
25
25
|
/**
|
|
26
26
|
* Запрос остановки стрима
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
28
|
+
export type StopStream = {
|
|
29
29
|
/**
|
|
30
30
|
* Запрос на остановку стрима
|
|
31
31
|
*/
|
|
@@ -34,13 +34,13 @@ export declare type StopStream = {
|
|
|
34
34
|
/**
|
|
35
35
|
* Request key frame from source. Should not be called often, negatively impacts video quality.
|
|
36
36
|
*/
|
|
37
|
-
export
|
|
37
|
+
export type RequestKeyFrame = {
|
|
38
38
|
keyFrameRequested: true;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Лейаут собеседника в звонке
|
|
42
42
|
*/
|
|
43
|
-
export
|
|
43
|
+
export type ParticipantLayout = (Layout | StopStream | RequestKeyFrame) & {
|
|
44
44
|
/**
|
|
45
45
|
* Внешний ID пользователя
|
|
46
46
|
*/
|
|
@@ -12,7 +12,7 @@ export declare enum MediaType {
|
|
|
12
12
|
}
|
|
13
13
|
export declare function serializeParticipantStreamDescription(description: ParticipantStreamDescription): string;
|
|
14
14
|
export declare function parseParticipantStreamDescription(descriptionString: string): ParticipantStreamDescription;
|
|
15
|
-
export
|
|
15
|
+
export type ParticipantStreamDescription = {
|
|
16
16
|
participantId: ParticipantId;
|
|
17
17
|
mediaType: MediaType | null;
|
|
18
18
|
streamName?: string;
|
package/types/PushData.d.ts
CHANGED
package/types/Room.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ExternalParticipant, ExternalParticipantId, ExternalParticipantListChunk } from './ExternalId';
|
|
2
2
|
import MuteStates from './MuteStates';
|
|
3
3
|
import { ParticipantListMarkers } from './Participant';
|
|
4
|
+
/**
|
|
5
|
+
* Комната
|
|
6
|
+
*/
|
|
4
7
|
export interface Room {
|
|
5
8
|
id: number;
|
|
6
9
|
/**
|
|
@@ -48,11 +51,17 @@ export interface Rooms {
|
|
|
48
51
|
*/
|
|
49
52
|
roomId?: number;
|
|
50
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Обновление комнат
|
|
56
|
+
*/
|
|
51
57
|
export interface RoomsUpdate {
|
|
52
58
|
rooms?: Room[];
|
|
53
59
|
roomIds?: number[];
|
|
54
60
|
deactivated?: boolean;
|
|
55
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Информация об обновлении комнаты
|
|
64
|
+
*/
|
|
56
65
|
export interface RoomParticipantUpdate {
|
|
57
66
|
roomId: number | null;
|
|
58
67
|
/**
|
|
@@ -17,8 +17,8 @@ import MuteStates from './MuteStates';
|
|
|
17
17
|
import { CompositeUserId, OkUserId, ParticipantId, ParticipantListMarker as ParticipantParticipantListMarker, ParticipantListMarkers, ParticipantListType as ParticipantParticipantListType } from './Participant';
|
|
18
18
|
import VideoSettings from './VideoSettings';
|
|
19
19
|
import { ChatRoom } from './WaitingHall';
|
|
20
|
-
|
|
21
|
-
export
|
|
20
|
+
type SignalingMessage = Record<string, any>;
|
|
21
|
+
export type RecordInfo = {
|
|
22
22
|
initiator: ParticipantId;
|
|
23
23
|
recordMovieId: number;
|
|
24
24
|
recordStartTime: number;
|
package/types/VideoSettings.d.ts
CHANGED
package/types/WaitingHall.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ import { ExternalId } from './ExternalId';
|
|
|
2
2
|
import { CompositeUserId } from './Participant';
|
|
3
3
|
import SignalingMessage from './SignalingMessage';
|
|
4
4
|
import { IFeedback } from './Feedback';
|
|
5
|
-
export
|
|
5
|
+
export type WaitingParticipantId = {
|
|
6
6
|
addedTs: number;
|
|
7
7
|
id: CompositeUserId;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type WaitingParticipant = {
|
|
10
10
|
id: WaitingParticipantId;
|
|
11
11
|
externalId?: SignalingMessage.ExternalId;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type ChatRoom = {
|
|
14
14
|
totalCount: number;
|
|
15
15
|
firstParticipants?: WaitingParticipant[];
|
|
16
16
|
handCount?: number;
|
|
@@ -19,7 +19,7 @@ export declare type ChatRoom = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Ответ на запрос `getWaitingHall`
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export type WaitingHallResponse = {
|
|
23
23
|
participants: ExternalId[];
|
|
24
24
|
pageMarker: string | null;
|
|
25
25
|
totalCount: number;
|