@vkontakte/calls-sdk 2.8.13-dev.5a31cf44.0 → 2.8.13-dev.5a8cc658.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.
package/CallsSDK.d.ts CHANGED
@@ -37,7 +37,8 @@ import { ParticipantStatus } from './static/External';
37
37
  import { JSONArray, JSONObject, JSONType } from './static/Json';
38
38
  import { ParamsObject } from './static/Params';
39
39
  import Utils from './static/Utils';
40
- import WebRTCUtils, { BrowserName, FacingMode } from './static/WebRTCUtils';
40
+ import BrowserEnvironment, { BrowserName } from './static/BrowserEnvironment';
41
+ import WebRTCUtils, { FacingMode } from './static/WebRTCUtils';
41
42
  import { IAsrData, IAsrStartParams, IAsrStopParams } from './types/Asr';
42
43
  import { ConversationData } from './types/Conversation';
43
44
  import { IFeaturesPerRole } from './types/ConversationFeature';
@@ -146,43 +147,57 @@ export declare const browser: {
146
147
  *
147
148
  * _Метод доступен до инициализации_
148
149
  */
149
- isBrowserSupported: typeof WebRTCUtils.isBrowserSupported;
150
+ isBrowserSupported: typeof BrowserEnvironment.isBrowserSupported;
150
151
  /**
151
152
  * Проверяет поддержку трансляции экрана браузером
152
153
  *
153
154
  * _Метод доступен до инициализации_
154
155
  */
155
- isScreenCapturingSupported: typeof WebRTCUtils.isScreenCapturingSupported;
156
+ isScreenCapturingSupported: typeof BrowserEnvironment.isScreenCapturingSupported;
157
+ /**
158
+ * Проверяет поддержку выбора микрофона браузером, независимо от списка устройств и разрешений.
159
+ * Не запрашивает разрешения и не захватывает медиа.
160
+ *
161
+ * _Метод доступен до инициализации_
162
+ */
163
+ canSelectAudioInput: typeof BrowserEnvironment.canSelectAudioInput;
164
+ /**
165
+ * Проверяет поддержку выбора аудиовыхода браузером, независимо от списка устройств и разрешений.
166
+ * Не запрашивает разрешения и не меняет аудиовыход.
167
+ *
168
+ * _Метод доступен до инициализации_
169
+ */
170
+ canSelectAudioOutput: typeof BrowserEnvironment.canSelectAudioOutput;
156
171
  /**
157
172
  * Имя операционной системы
158
173
  *
159
174
  * _Метод доступен до инициализации_
160
175
  */
161
- os: typeof WebRTCUtils.os;
176
+ os: typeof BrowserEnvironment.os;
162
177
  /**
163
178
  * Мобильный браузер или нет
164
179
  *
165
180
  * _Метод доступен до инициализации_
166
181
  */
167
- isMobile: typeof WebRTCUtils.isMobile;
182
+ isMobile: typeof BrowserEnvironment.isMobile;
168
183
  /**
169
184
  * Имя браузера
170
185
  *
171
186
  * _Метод доступен до инициализации_
172
187
  */
173
- browserName: typeof WebRTCUtils.browserName;
188
+ browserName: typeof BrowserEnvironment.browserName;
174
189
  /**
175
190
  * Версия браузера
176
191
  *
177
192
  * _Метод доступен до инициализации_
178
193
  */
179
- browserVersion: typeof WebRTCUtils.browserVersion;
194
+ browserVersion: typeof BrowserEnvironment.browserVersion;
180
195
  /**
181
196
  * Если браузер основан на хроме - возвращает версию
182
197
  *
183
198
  * _Метод доступен до инициализации_
184
199
  */
185
- baseChromeVersion: typeof WebRTCUtils.baseChromeVersion;
200
+ baseChromeVersion: typeof BrowserEnvironment.baseChromeVersion;
186
201
  /**
187
202
  * Возвращает AudioContext
188
203
  */
@@ -192,7 +207,7 @@ export declare const browser: {
192
207
  *
193
208
  * _Метод доступен до инициализации_
194
209
  */
195
- isAudioShareSupported: typeof WebRTCUtils.isAudioShareSupported;
210
+ isAudioShareSupported: typeof BrowserEnvironment.isAudioShareSupported;
196
211
  };
197
212
  /**
198
213
  * Вспомогательные функции
@@ -332,8 +347,9 @@ export declare function hangup(params?: HangupParams): Promise<void>;
332
347
  *
333
348
  * @param externalIds Внешние ID пользователей
334
349
  * @param params Параметры
350
+ * @returns Участники из ответа сервера в публичном формате; undefined, если активного звонка нет или сигналинг не готов.
335
351
  */
336
- export declare function addParticipant(externalIds: ExternalId | ExternalId[], params?: AddParticipantParams): Promise<void>;
352
+ export declare function addParticipant(externalIds: ExternalId | ExternalId[], params?: AddParticipantParams): Promise<ExternalParticipant[] | undefined>;
337
353
  /**
338
354
  * @deprecated - используйте addParticipant
339
355
  * @param uids