@vkontakte/calls-sdk 2.8.8-dev.cf529496.0 → 2.8.8-dev.dc802fd6.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.
@@ -56,7 +56,6 @@ export default class Signaling extends BaseSignaling {
56
56
  private static get WAIT_CONNECTION_DELAY();
57
57
  private static get WAIT_RESPONSE_DELAY();
58
58
  private static get WAIT_MESSAGE_DELAY();
59
- private static _getCapabilityFlags;
60
59
  get ready(): boolean;
61
60
  setEndpoint(endpoint: string): void;
62
61
  setWebTransportEndpoint(endpoint: string | null): void;
@@ -28,6 +28,18 @@ declare enum HangupType {
28
28
  ANOTHER_DEVICE = "ANOTHER_DEVICE",
29
29
  NOT_FOUND = "NOT_FOUND",
30
30
  VCHAT_DETAILED_ERROR = "VCHAT_DETAILED_ERROR",
31
- TIMEOUT = "TIMEOUT"
31
+ TIMEOUT = "TIMEOUT",
32
+ /**
33
+ * Таймаут инициализации вызова – звонок не начался
34
+ *
35
+ * Этот статус означает, что вызов был инициирован, но к нему
36
+ * ни один участник не подключился через WebSocket/WebTransport
37
+ * в ожидаемый период времени. Обычно это происходит, когда:
38
+ * - Устройства вызываемого находятся офлайн
39
+ * - Проблемы с сетевым соединением мешают установить связь
40
+ * - Приложение вызываемого не запущено или упало
41
+ * - Брандмауэр или сетевые ограничения блокируют подключение
42
+ */
43
+ CALL_TIMEOUT = "CALL_TIMEOUT"
32
44
  }
33
45
  export default HangupType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.8.8-dev.cf529496.0",
3
+ "version": "2.8.8-dev.dc802fd6.0",
4
4
  "author": "vk.com",
5
5
  "description": "Library for video calls based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -22,6 +22,7 @@ import { IRoomId, Room, RoomParticipantUpdate, Rooms, RoomsUpdate } from '../typ
22
22
  import { VmojiError } from '../types/Vmoji';
23
23
  import { DebugMessageType } from './Debug';
24
24
  import { JSONObject } from './Json';
25
+ import { ParticipantCapabilities } from './SignalingCapabilities';
25
26
  /**
26
27
  * Статус собеседника
27
28
  */
@@ -342,8 +343,9 @@ declare namespace External {
342
343
  /**
343
344
  * Исходящий звонок был принят кем-то
344
345
  * @param userId
346
+ * @param capabilities
345
347
  */
346
- function onAcceptedCall(userId: ExternalId): void;
348
+ function onAcceptedCall(userId: ExternalId, capabilities: ParticipantCapabilities): void;
347
349
  function onRateNeeded(): void;
348
350
  /**
349
351
  * Изменился говорящий в звонке
@@ -27,6 +27,7 @@ import { VmojiError } from '../types/Vmoji';
27
27
  import { DebugMessageType } from './Debug';
28
28
  import { ParticipantStatus } from './External';
29
29
  import { JSONObject } from './Json';
30
+ import { ParticipantCapabilities } from './SignalingCapabilities';
30
31
  import { FacingMode } from './WebRTCUtils';
31
32
  /**
32
33
  * Параметры инициализации
@@ -359,6 +360,10 @@ export type ParamsObject = {
359
360
  * _По умолчанию: `false`_
360
361
  */
361
362
  useChatRooms: boolean;
363
+ /**
364
+ * Включить поддержку добавления участника в разговор
365
+ */
366
+ addParticipant: boolean;
362
367
  /**
363
368
  * Индекс участника для первого chunk'а который придет при установке соединения с сервером
364
369
  *
@@ -713,7 +718,7 @@ export type ParamsObject = {
713
718
  * Исходящий звонок был принят кем-то
714
719
  * @param userId
715
720
  */
716
- onAcceptedCall?: (userId: ExternalParticipantId) => void;
721
+ onAcceptedCall?: (userId: ExternalParticipantId, capabilities: ParticipantCapabilities) => void;
717
722
  /**
718
723
  * Список устройств изменился
719
724
  */
@@ -1004,6 +1009,7 @@ export default abstract class Params {
1004
1009
  static get useParticipantListChunk(): boolean;
1005
1010
  static get useRooms(): boolean;
1006
1011
  static get useChatRooms(): boolean;
1012
+ static get addParticipant(): boolean;
1007
1013
  static get participantListChunkInitIndex(): number;
1008
1014
  static get participantListChunkInitCount(): number | null;
1009
1015
  static get serverAudioRed(): boolean;
@@ -1044,6 +1050,7 @@ export default abstract class Params {
1044
1050
  useParticipantListChunk: boolean;
1045
1051
  useRooms: boolean;
1046
1052
  useChatRooms: boolean;
1053
+ addParticipant: boolean;
1047
1054
  fastScreenShare: boolean;
1048
1055
  participantListChunkInitCount: number | null;
1049
1056
  screenShareCongestionControl: boolean;
@@ -0,0 +1,24 @@
1
+ declare const PREDICATES: {
2
+ readonly producerScreenTrack: () => boolean;
3
+ readonly videoTracksCount: () => boolean;
4
+ readonly waitingHall: () => boolean;
5
+ readonly filteredMessages: () => boolean;
6
+ readonly consumerScreenTrack: () => boolean;
7
+ readonly muteNotificationForAdmins: () => boolean;
8
+ readonly movieShare: () => boolean;
9
+ readonly useParticipantListChunk: () => boolean;
10
+ readonly useRooms: () => boolean;
11
+ readonly vmoji: () => boolean;
12
+ readonly useCallsToContacts: () => boolean;
13
+ readonly useChatRooms: () => boolean;
14
+ readonly audienceModeHandUpTimestamps: () => boolean;
15
+ readonly animojiBackendRender: () => boolean;
16
+ readonly addParticipant: () => boolean;
17
+ };
18
+ type ParticipantCapabilitiesKeys = keyof typeof PREDICATES;
19
+ export type ParticipantCapabilities = Record<ParticipantCapabilitiesKeys, boolean>;
20
+ export declare class SignalingCapabilities {
21
+ static getFlags(): string;
22
+ static parseCapabilities(mask?: string): ParticipantCapabilities;
23
+ }
24
+ export {};
@@ -182,6 +182,7 @@ declare namespace SignalingMessage {
182
182
  deviceIdx?: number;
183
183
  peerId: PeerId;
184
184
  mediaSettings: Partial<MediaSettings>;
185
+ capabilities?: string;
185
186
  }
186
187
  export interface Hungup extends Notification {
187
188
  participantId: OkUserId;