@vkontakte/calls-sdk 2.8.8-dev.4e946113.0 → 2.8.8-dev.5958ecd5.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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -84,7 +84,6 @@ export default class Signaling extends BaseSignaling {
84
84
  getNextCommandSequenceNumber(): number;
85
85
  hangup(reason: string): Promise<SignalingMessage | void>;
86
86
  sendCandidate(participantId: ParticipantId, candidate: RTCIceCandidate): Promise<SignalingMessage>;
87
- requestSDPTestMode(resendOffer: true, forceReceiveAudioRed: boolean, forceSendAudioRed: boolean, resendForAll: boolean): Promise<SignalingMessage>;
88
87
  requestTestMode(consumerCommand: string, producerCommand: string | null): Promise<SignalingMessage>;
89
88
  sendSdp(participantId: ParticipantId, sdp: RTCSessionDescriptionInit, extraPayload?: Record<string, any>): Promise<SignalingMessage>;
90
89
  acceptCall(mediaSettings: MediaSettings): Promise<SignalingMessage>;
@@ -184,6 +183,9 @@ export default class Signaling extends BaseSignaling {
184
183
  private _convertDisplayLayout;
185
184
  protected _waitConnectionMessage(): void;
186
185
  protected _stopWaitConnectionMessage(): void;
186
+ /**
187
+ * Отвечает за timeout логику в WebSocket, если неполучаем никаких сообщений в течении WAIT_MESSAGE_DELAY, то запускаем реконнект
188
+ */
187
189
  private _startDoctor;
188
190
  private _stopDoctor;
189
191
  private isWebTransportAvailable;
@@ -0,0 +1 @@
1
+ export {};
@@ -5,6 +5,7 @@ declare enum ConversationOption {
5
5
  REQUIRE_AUTH_TO_JOIN = "REQUIRE_AUTH_TO_JOIN",
6
6
  AUDIENCE_MODE = "AUDIENCE_MODE",// Stereo chat room
7
7
  WAITING_HALL = "WAITING_HALL",// Waiting Hall is ON
8
+ WAIT_FOR_ADMIN = "WAIT_FOR_ADMIN",
8
9
  ASR = "ASR",
9
10
  FEEDBACK = "FEEDBACK",// Reactions (default = off)
10
11
  RECURRING = "RECURRING"
@@ -21,6 +21,7 @@ declare enum HangupType {
21
21
  UNSUPPORTED = "UNSUPPORTED",
22
22
  OLD_VERSION = "OLD_VERSION",
23
23
  SERVICE_DISABLED = "SERVICE_DISABLED",
24
+ SERVICE_UNAVAILABLE = "SERVICE_UNAVAILABLE",
24
25
  EXTERNAL_API_ERROR = "EXTERNAL_API_ERROR",
25
26
  SOCKET_CLOSED = "SOCKET_CLOSED",
26
27
  ENDED = "ENDED",
@@ -29,6 +30,10 @@ declare enum HangupType {
29
30
  NOT_FOUND = "NOT_FOUND",
30
31
  VCHAT_DETAILED_ERROR = "VCHAT_DETAILED_ERROR",
31
32
  TIMEOUT = "TIMEOUT",
33
+ /**
34
+ * Проблемы при работе через FastStart
35
+ */
36
+ FAST_START_ERROR = "FAST_START_ERROR",
32
37
  /**
33
38
  * Таймаут инициализации вызова – звонок не начался
34
39
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.8.8-dev.4e946113.0",
3
+ "version": "2.8.8-dev.5958ecd5.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",
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @see https://confluence.vk.team/display/VIDEOOK/Websocket+Capability+Flags
3
+ */
1
4
  declare const PREDICATES: {
2
5
  readonly producerScreenTrack: () => boolean;
3
6
  readonly videoTracksCount: () => boolean;
@@ -13,6 +16,7 @@ declare const PREDICATES: {
13
16
  readonly useChatRooms: () => boolean;
14
17
  readonly audienceModeHandUpTimestamps: () => boolean;
15
18
  readonly animojiBackendRender: () => boolean;
19
+ readonly sessionStateUpdates: () => boolean;
16
20
  readonly addParticipant: () => boolean;
17
21
  };
18
22
  type ParticipantCapabilitiesKeys = keyof typeof PREDICATES;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- import { HangupType, IceServer } from '../CallsSDK';
1
+ import { IceServer } from '../CallsSDK';
2
2
  import CallType from '../enums/CallType';
3
3
  import MediaOption from '../enums/MediaOption';
4
4
  import { ExternalId } from './ExternalId';
@@ -37,10 +37,10 @@ export interface FastStartParams {
37
37
  isVideo?: boolean;
38
38
  }
39
39
  export interface FastStartResponse {
40
- internalCallerParams: string;
40
+ internalCallerParams?: string;
41
41
  rejectedParticipants: {
42
42
  id: string;
43
- status: HangupType;
43
+ status: string;
44
44
  }[];
45
45
  }
46
46
  export type FastStartHandler = (params: FastStartParams) => Promise<FastStartResponse>;
package/types/Params.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export type IApiEnv = 'AUTO' | 'PROD' | 'CALLS' | 'PROD_OK' | 'TEST' | 'VIDEOTEST' | 'CALLSTEST' | string;
1
+ export type IApiEnv = 'AUTO' | 'PROD' | 'CALLS' | 'PROD_OK' | 'TEST' | 'VIDEOTEST' | 'CALLSTEST' | 'CALLS_BETA' | 'CALLS_BENDER' | 'CALLS_MAMES' | 'CALLS_MARS' | string;
2
2
  export type IAPIBaseUrl = string | null;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};