@vkontakte/calls-sdk 2.8.6-dev.7a7707c0.0 → 2.8.6-dev.806d75d9.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 +26 -10
- package/abstract/BaseApi.d.ts +2 -1
- 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 +19 -9
- package/classes/Logger.d.ts +24 -18
- package/classes/MediaSource.d.ts +3 -0
- package/classes/SignalingActor.d.ts +9 -0
- package/classes/codec/IEncoder.d.ts +0 -1
- package/classes/screenshare/BaseStreamBuilder.d.ts +1 -1
- package/classes/stat/CodecStatsAggregator.d.ts +19 -0
- package/classes/stat/EventMetricsService.d.ts +9 -0
- package/classes/stat/StatPings.d.ts +17 -0
- package/classes/stat/StatSignalingCommands.d.ts +12 -0
- package/classes/transport/Statistics.d.ts +23 -10
- package/default/Api.d.ts +2 -1
- package/default/Signaling.d.ts +18 -10
- package/enums/ChatRoomEventType.d.ts +1 -1
- package/enums/ConversationOption.d.ts +3 -3
- package/enums/HangupType.d.ts +2 -1
- package/enums/RecordRole.d.ts +1 -1
- package/enums/SignalingTransportStat.d.ts +17 -0
- package/enums/Stat.d.ts +20 -34
- package/enums/StatLog.d.ts +32 -0
- package/package.json +6 -2
- package/static/ApiTransport.d.ts +1 -1
- package/static/External.d.ts +2 -2
- package/static/Params.d.ts +48 -17
- package/static/SimulcastInfo.d.ts +1 -1
- package/static/Utils.d.ts +1 -1
- package/static/WebRTCUtils.d.ts +7 -1
- package/types/Conversation.d.ts +28 -1
- package/types/ConversationParams.d.ts +14 -1
- package/types/ConversationResponse.d.ts +9 -0
- package/types/ExternalId.d.ts +3 -0
- package/types/FastStart.d.ts +46 -0
- package/types/Participant.d.ts +1 -1
- package/types/PerfStatReporter.d.ts +1 -1
- package/types/SignalingCommand.d.ts +1 -0
- package/types/SignalingMessage.d.ts +2 -1
- package/types/Statistics.d.ts +147 -0
- package/types/Streams.d.ts +1 -0
- package/types/WebTransport.d.ts +26 -0
- package/utils/LengthPrefixed.d.ts +48 -0
- package/utils/Lz4.d.ts +1 -0
- package/utils/MsgPackerBufferUtils.d.ts +1 -1
- package/utils/P2Quantile.d.ts +14 -0
- package/utils/StatTracker.d.ts +18 -0
- package/utils/VariableLengthInteger.d.ts +18 -0
- package/utils/Welford.d.ts +9 -0
- package/worker/LibVPxDecoderWorker.d.ts +0 -1
- package/worker/LibVPxEncoderWorker.d.ts +0 -1
- package/worker/WebCodecsDecoderWorker.d.ts +0 -1
- package/worker/WebCodecsEncoderWorker.d.ts +0 -1
|
@@ -13,7 +13,7 @@ export declare function createWriteBuffer(): {
|
|
|
13
13
|
putUi32(v: number): void;
|
|
14
14
|
putUi64(v: number): void;
|
|
15
15
|
putF(v: number): void;
|
|
16
|
-
ui8array(): Uint8Array
|
|
16
|
+
ui8array(): Uint8Array<ArrayBuffer>;
|
|
17
17
|
};
|
|
18
18
|
export declare function createReadBuffer(buf: BufferSource): {
|
|
19
19
|
peek(): number;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Класс, реализующий возможность найти медиану или другой персентиль не храня весь поток данных для расчета
|
|
3
|
+
*/
|
|
4
|
+
export declare class P2Quantile {
|
|
5
|
+
private readonly q;
|
|
6
|
+
private inits;
|
|
7
|
+
private n;
|
|
8
|
+
private np;
|
|
9
|
+
private qv;
|
|
10
|
+
constructor(q: number);
|
|
11
|
+
add(x: number): void;
|
|
12
|
+
value(): number;
|
|
13
|
+
private bootstrap;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class StatTracker {
|
|
2
|
+
private count;
|
|
3
|
+
private minVal;
|
|
4
|
+
private maxVal;
|
|
5
|
+
private mean;
|
|
6
|
+
private p50;
|
|
7
|
+
private p95;
|
|
8
|
+
add(x: number): void;
|
|
9
|
+
snapshot(): {
|
|
10
|
+
min: number;
|
|
11
|
+
max: number;
|
|
12
|
+
avg: number;
|
|
13
|
+
median: number;
|
|
14
|
+
p95: number;
|
|
15
|
+
count: number;
|
|
16
|
+
};
|
|
17
|
+
get hasData(): boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare class VariableLengthIntegerEncoder {
|
|
2
|
+
/**
|
|
3
|
+
* Encodes an integer using a variable-length integer encoding.
|
|
4
|
+
* @param num The number to encode.
|
|
5
|
+
* @returns A Uint8Array representing the encoded integer.
|
|
6
|
+
*/
|
|
7
|
+
encode(num: number | bigint): Uint8Array;
|
|
8
|
+
}
|
|
9
|
+
declare class VariableLengthIntegerDecoder {
|
|
10
|
+
/**
|
|
11
|
+
* Decodes an integer from a Uint8Array using variable-length integer encoding.
|
|
12
|
+
* @param data The Uint8Array to decode.
|
|
13
|
+
* @returns The decoded integer.
|
|
14
|
+
*/
|
|
15
|
+
decode(data: Uint8Array): bigint | null;
|
|
16
|
+
getNumBytesForLengthInteger(data: Uint8Array): number;
|
|
17
|
+
}
|
|
18
|
+
export { VariableLengthIntegerEncoder, VariableLengthIntegerDecoder };
|