@vkontakte/calls-sdk 2.8.6-dev.de9ca598.0 → 2.8.6-dev.ed179d80.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 +12 -0
- package/abstract/BaseSignaling.d.ts +3 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +2 -1
- package/classes/stat/CodecStatsAggregator.d.ts +19 -0
- package/classes/stat/EventMetricsService.d.ts +9 -0
- package/default/Signaling.d.ts +5 -2
- package/enums/Stat.d.ts +2 -0
- package/package.json +8 -2
- package/types/ConversationResponse.d.ts +4 -0
- package/types/ExternalId.d.ts +1 -0
- package/types/Participant.d.ts +1 -1
- package/types/PerfStatReporter.d.ts +1 -1
- package/types/Statistics.d.ts +147 -0
- package/types/WebTransport.d.ts +34 -0
- package/utils/LengthPrefixed.d.ts +48 -0
- package/utils/VariableLengthInteger.d.ts +18 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -294,6 +294,11 @@ export declare function hangup(): Promise<void>;
|
|
|
294
294
|
* @param params Параметры
|
|
295
295
|
*/
|
|
296
296
|
export declare function addParticipant(externalIds: ExternalId | ExternalId[], params?: AddParticipantParams): Promise<void>;
|
|
297
|
+
/**
|
|
298
|
+
* @deprecated - используйте addParticipant
|
|
299
|
+
* @param uids
|
|
300
|
+
* @param params
|
|
301
|
+
*/
|
|
297
302
|
export declare function addParticipantInternal(uids: OkUserId[], params?: AddParticipantParams): Promise<void>;
|
|
298
303
|
/**
|
|
299
304
|
* Удалить собеседника из звонка
|
|
@@ -302,6 +307,11 @@ export declare function addParticipantInternal(uids: OkUserId[], params?: AddPar
|
|
|
302
307
|
* @param ban Забанить пользователя
|
|
303
308
|
*/
|
|
304
309
|
export declare function removeParticipant(externalId: ExternalId, ban?: boolean): Promise<void>;
|
|
310
|
+
/**
|
|
311
|
+
* @deprecated - используйте removeParticipant
|
|
312
|
+
* @param uid
|
|
313
|
+
* @param ban
|
|
314
|
+
*/
|
|
305
315
|
export declare function removeParticipantInternal(uid: OkUserId, ban?: boolean): Promise<void>;
|
|
306
316
|
/**
|
|
307
317
|
* Изменить камеру на фронтальную или заднюю (для мобильных устройств)
|
|
@@ -721,6 +731,8 @@ export declare function requestAsr(request: boolean): Promise<void>;
|
|
|
721
731
|
export declare function startUrlSharing(sharedUrl: string): Promise<void>;
|
|
722
732
|
export declare function stopUrlSharing(): Promise<void>;
|
|
723
733
|
export declare function sendTestCommand(name: string, params?: any): void;
|
|
734
|
+
export declare function startAnalyzingAudio(expectAudio: boolean): void;
|
|
735
|
+
export declare function stopAnalyzingAudio(): void;
|
|
724
736
|
/**
|
|
725
737
|
* Версия SDK
|
|
726
738
|
*/
|
|
@@ -56,7 +56,8 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
56
56
|
abstract changeMediaSettings(mediaSettings: MediaSettings): Promise<SignalingMessage>;
|
|
57
57
|
abstract changeParticipantState(state: ParticipantStateData, compositeUserId?: CompositeUserId): Promise<SignalingMessage>;
|
|
58
58
|
abstract putHandsDown(): Promise<SignalingMessage>;
|
|
59
|
-
abstract addParticipant(
|
|
59
|
+
abstract addParticipant(externalIds: CompositeUserId[], params?: AddParticipantParams): Promise<SignalingMessage>;
|
|
60
|
+
abstract addParticipantLegacy(participantIds: CompositeUserId[], params?: AddParticipantParams): Promise<SignalingMessage>;
|
|
60
61
|
abstract removeParticipant(participantId: CompositeUserId, ban?: boolean): Promise<SignalingMessage>;
|
|
61
62
|
abstract allocateConsumer(description: RTCSessionDescription | null, capabilities: {
|
|
62
63
|
[key: string]: number | boolean | string;
|
|
@@ -123,6 +124,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
123
124
|
setParticipantIdRegistry(participantIdRegistry: ParticipantIdRegistry): void;
|
|
124
125
|
requestRealloc(): void;
|
|
125
126
|
setEndpoint(endpoint: string): void;
|
|
127
|
+
setWebTransportEndpoint(endpoint: string | null): void;
|
|
126
128
|
setConversationId(conversationId: string): void;
|
|
127
129
|
readyToSend(isReady?: boolean): void;
|
|
128
130
|
cleanup(): void;
|