@vkontakte/calls-sdk 2.8.8-dev.a5e7f15f.0 → 2.8.8-dev.bdf4f36a.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.
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.8.8-dev.a5e7f15f.0",
3
+ "version": "2.8.8-dev.bdf4f36a.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",
@@ -104,6 +104,17 @@ export type ParamsObject = {
104
104
  debugLog: boolean;
105
105
  /** @hidden */
106
106
  debug: boolean;
107
+ /**
108
+ * Выставляет таймаут в ms для fetch запросов от sdk
109
+ * По умолчанию 5000 ms
110
+ * @hidden
111
+ */
112
+ apiTimeout: number;
113
+ /**
114
+ * Количество ретраев прежде чем сбросить ошибку
115
+ * @hidden
116
+ */
117
+ apiMaxAttempt: number;
107
118
  /**
108
119
  * Не отправлять в ICE-кандидатах персональные IP-адреса
109
120
  * @see [RTCIceTransportPolicy](https://www.w3.org/TR/webrtc/#rtcicetransportpolicy-enum)
@@ -926,6 +937,8 @@ export default abstract class Params {
926
937
  static get apiBaseUrl(): IAPIBaseUrl;
927
938
  static set apiBaseUrl(apiBaseUrl: IAPIBaseUrl);
928
939
  static apiEndpoint(apiEnv?: IApiEnv): string;
940
+ static get apiTimeout(): number;
941
+ static get apiMaxAttempt(): number;
929
942
  static get authToken(): string;
930
943
  static set authToken(value: string);
931
944
  static get anonymToken(): string;
@@ -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;
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;