@vkontakte/calls-sdk 2.6.3-dev.cd0dd8d.0 → 2.6.3-dev.dea4ecd.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.
Files changed (49) hide show
  1. package/CallsSDK.d.ts +25 -23
  2. package/abstract/BaseApi.d.ts +1 -1
  3. package/abstract/BaseSignaling.d.ts +1 -1
  4. package/calls-sdk.cjs.js +8 -8
  5. package/calls-sdk.esm.js +8 -8
  6. package/classes/Conversation.d.ts +15 -4
  7. package/classes/MediaSource.d.ts +10 -2
  8. package/classes/VolumeDetector.d.ts +1 -1
  9. package/classes/codec/Types.d.ts +3 -3
  10. package/classes/codec/WebCodecsEncoder.d.ts +3 -1
  11. package/classes/screenshare/PacketHistory.d.ts +1 -1
  12. package/classes/screenshare/ScreenCaptureSender.d.ts +2 -1
  13. package/classes/screenshare/ScreenCongestionControl.d.ts +3 -1
  14. package/classes/screenshare/SharingStatReport.d.ts +1 -1
  15. package/classes/transport/DirectTransport.d.ts +1 -1
  16. package/classes/transport/PerfStatReporter.d.ts +2 -2
  17. package/classes/transport/Statistics.d.ts +4 -4
  18. package/default/Signaling.d.ts +1 -1
  19. package/enums/ConversationFeature.d.ts +3 -0
  20. package/enums/RoomsEventType.d.ts +3 -0
  21. package/package.json +2 -2
  22. package/static/External.d.ts +15 -0
  23. package/static/Json.d.ts +1 -1
  24. package/static/Params.d.ts +22 -6
  25. package/static/Utils.d.ts +3 -0
  26. package/static/WebRTCUtils.d.ts +21 -7
  27. package/types/ConversationFeature.d.ts +4 -1
  28. package/types/ConversationParams.d.ts +1 -1
  29. package/types/ConversationResponse.d.ts +1 -1
  30. package/types/ExternalId.d.ts +8 -5
  31. package/types/Feedback.d.ts +6 -0
  32. package/types/IceServer.d.ts +1 -1
  33. package/types/MediaDeviceType.d.ts +1 -1
  34. package/types/MediaModifiers.d.ts +1 -1
  35. package/types/MediaSettings.d.ts +12 -2
  36. package/types/MovieShare.d.ts +1 -1
  37. package/types/MuteStates.d.ts +4 -1
  38. package/types/Participant.d.ts +14 -5
  39. package/types/ParticipantLayout.d.ts +4 -4
  40. package/types/ParticipantPriority.d.ts +1 -1
  41. package/types/ParticipantStreamDescription.d.ts +1 -1
  42. package/types/PushData.d.ts +1 -1
  43. package/types/Room.d.ts +9 -0
  44. package/types/ScreenCaptureSettings.d.ts +17 -0
  45. package/types/ServerSettings.d.ts +1 -1
  46. package/types/SignalingCommand.d.ts +1 -1
  47. package/types/SignalingMessage.d.ts +2 -2
  48. package/types/VideoSettings.d.ts +1 -1
  49. package/types/WaitingHall.d.ts +4 -4
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Информация о текущих медиа настройках пользователя
3
3
  */
4
- export declare type MediaSettings = {
4
+ export type MediaSettings = {
5
5
  /**
6
6
  * Включен ли микрофон
7
7
  */
@@ -14,6 +14,10 @@ export declare type MediaSettings = {
14
14
  * Включена ли трансляция экрана
15
15
  */
16
16
  isScreenSharingEnabled: boolean;
17
+ /**
18
+ * Режим динамического контента при трансляция экрана (быстрая шара)
19
+ */
20
+ isFastScreenSharingEnabled: boolean;
17
21
  /**
18
22
  * Включена ли трансляция звука
19
23
  */
@@ -22,9 +26,12 @@ export declare type MediaSettings = {
22
26
  * Включена ли трансляция вимоджи
23
27
  */
24
28
  isAnimojiEnabled: boolean;
29
+ /**
30
+ * @hidden
31
+ */
25
32
  videoStreams: VideoStreamInfo[];
26
33
  };
27
- export declare type VideoStreamInfo = {
34
+ export type VideoStreamInfo = {
28
35
  id: string;
29
36
  source: string;
30
37
  externalMovieId?: string;
@@ -32,6 +39,9 @@ export declare type VideoStreamInfo = {
32
39
  export default MediaSettings;
33
40
  export declare function compareMediaSettings(ms1: MediaSettings, ms2: MediaSettings): boolean;
34
41
  export declare function createMediaSettingsWithDefaults(ms?: Partial<MediaSettings>): MediaSettings;
42
+ /**
43
+ * Размеры видео
44
+ */
35
45
  export interface IVideoDimentions {
36
46
  width: number;
37
47
  height: number;
@@ -48,7 +48,7 @@ export interface IAddMovieParams {
48
48
  */
49
49
  metadata?: IMovieMetaData;
50
50
  }
51
- export declare type ISharedMovieStateResponse = [
51
+ export type ISharedMovieStateResponse = [
52
52
  number,
53
53
  number,
54
54
  boolean,
@@ -5,10 +5,13 @@ import { OkUserId } from './Participant';
5
5
  /**
6
6
  * Состояние устройств пользователя установленное админом звонка
7
7
  */
8
- declare type MuteStates = {
8
+ type MuteStates = {
9
9
  [key in MediaOption]?: MuteState;
10
10
  };
11
11
  export default MuteStates;
12
+ /**
13
+ * Состояние устройств пользователя установленное админом звонка
14
+ */
12
15
  export interface IMuteParticipantParams {
13
16
  externalId?: string | ExternalParticipantId | null;
14
17
  muteStates: MuteStates;
@@ -10,20 +10,29 @@ import ParticipantLayout from './ParticipantLayout';
10
10
  /**
11
11
  * Уникально идентифицирует пользователя или группу
12
12
  */
13
- export declare type CompositeUserId = string;
13
+ export type CompositeUserId = string;
14
14
  /**
15
15
  * Уникально идентифицирует участника звонка
16
16
  * (одному пользователю могут соответствовать несколько участников, в случае если пользователь зашёл в звонок с нескольких устройств)
17
17
  */
18
- export declare type ParticipantId = string;
19
- export declare type OkUserId = number;
20
- export declare type ParticipantListType = 'GRID' | 'SIDE' | 'ADMIN';
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
- export declare type ParticipantListMarkers = Record<ParticipantListType, ParticipantListMarker>;
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 declare type Layout = {
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 declare type StopStream = {
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 declare type RequestKeyFrame = {
37
+ export type RequestKeyFrame = {
38
38
  keyFrameRequested: true;
39
39
  };
40
40
  /**
41
41
  * Лейаут собеседника в звонке
42
42
  */
43
- export declare type ParticipantLayout = (Layout | StopStream | RequestKeyFrame) & {
43
+ export type ParticipantLayout = (Layout | StopStream | RequestKeyFrame) & {
44
44
  /**
45
45
  * Внешний ID пользователя
46
46
  */
@@ -2,7 +2,7 @@ import { ExternalParticipantId } from './ExternalId';
2
2
  /**
3
3
  * Приоритет собеседника в звонке
4
4
  */
5
- declare type ParticipantPriority = {
5
+ type ParticipantPriority = {
6
6
  /**
7
7
  * Внешний ID участника звонка
8
8
  */
@@ -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 declare type ParticipantStreamDescription = {
15
+ export type ParticipantStreamDescription = {
16
16
  participantId: ParticipantId;
17
17
  mediaType: MediaType | null;
18
18
  streamName?: string;
@@ -1,4 +1,4 @@
1
- declare type PushData = {
1
+ type PushData = {
2
2
  caller_id: string;
3
3
  caller_client_type?: string;
4
4
  conversation_id: string;
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
  /**
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Параметры захвата экрана
3
+ */
4
+ export interface ScreenCaptureSettings {
5
+ /**
6
+ * Включить или выключить захват экрана.
7
+ */
8
+ captureScreen: boolean;
9
+ /**
10
+ * Режим динамического контента при трансляция экрана (быстрая шара).
11
+ */
12
+ fastScreenSharing: boolean;
13
+ /**
14
+ * Включить или выключить захват звука. Может быть использован только вместе с захватом экрана.
15
+ */
16
+ captureAudio: boolean;
17
+ }
@@ -3,7 +3,7 @@ import VideoSettings from './VideoSettings';
3
3
  * Настройки полученные от сервера звонков
4
4
  * @hidden
5
5
  */
6
- export declare type ServerSettings = {
6
+ export type ServerSettings = {
7
7
  camera: VideoSettings | null;
8
8
  screenSharing: VideoSettings | null;
9
9
  };
@@ -1,5 +1,5 @@
1
1
  import SignalingMessage from './SignalingMessage';
2
- declare type SignalingCommand = {
2
+ type SignalingCommand = {
3
3
  sequence: number;
4
4
  name: string;
5
5
  params: object;
@@ -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
- declare type SignalingMessage = Record<string, any>;
21
- export declare type RecordInfo = {
20
+ type SignalingMessage = Record<string, any>;
21
+ export type RecordInfo = {
22
22
  initiator: ParticipantId;
23
23
  recordMovieId: number;
24
24
  recordStartTime: number;
@@ -2,7 +2,7 @@
2
2
  * Настройки качества видео
3
3
  * @hidden
4
4
  */
5
- export declare type VideoSettings = {
5
+ export type VideoSettings = {
6
6
  /**
7
7
  * Макс битрейт в килобитах в секунду
8
8
  */
@@ -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 declare type WaitingParticipantId = {
5
+ export type WaitingParticipantId = {
6
6
  addedTs: number;
7
7
  id: CompositeUserId;
8
8
  };
9
- export declare type WaitingParticipant = {
9
+ export type WaitingParticipant = {
10
10
  id: WaitingParticipantId;
11
11
  externalId?: SignalingMessage.ExternalId;
12
12
  };
13
- export declare type ChatRoom = {
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 declare type WaitingHallResponse = {
22
+ export type WaitingHallResponse = {
23
23
  participants: ExternalId[];
24
24
  pageMarker: string | null;
25
25
  totalCount: number;