@vkontakte/calls-sdk 2.8.6-dev.708b0190.0 → 2.8.6-dev.785c0ce9.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 +23 -8
- package/abstract/BaseApi.d.ts +2 -1
- package/abstract/BaseSignaling.d.ts +5 -3
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +19 -10
- package/classes/Logger.d.ts +3 -0
- package/classes/MediaSource.d.ts +5 -0
- package/classes/ParticipantIdRegistry.d.ts +1 -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/transport/ServerTransport.d.ts +3 -0
- package/classes/transport/Statistics.d.ts +23 -10
- package/default/Api.d.ts +2 -1
- package/default/Signaling.d.ts +20 -12
- package/enums/ChatRoomEventType.d.ts +1 -1
- package/enums/ConversationOption.d.ts +3 -3
- package/enums/RecordRole.d.ts +1 -1
- package/enums/SignalingTransportStat.d.ts +17 -0
- package/enums/Stat.d.ts +36 -21
- package/package.json +7 -3
- package/static/ApiTransport.d.ts +1 -1
- package/static/Params.d.ts +57 -15
- package/static/SimulcastInfo.d.ts +1 -1
- package/static/Utils.d.ts +1 -1
- package/static/WebRTCUtils.d.ts +4 -0
- 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 +1 -0
- package/types/FastStart.d.ts +46 -0
- package/types/MovieShare.d.ts +4 -0
- package/types/Participant.d.ts +9 -0
- package/types/PerfStatReporter.d.ts +1 -0
- package/types/ServerSettings.d.ts +2 -0
- package/types/SignalingMessage.d.ts +4 -1
- package/types/Statistics.d.ts +147 -0
- package/types/WebTransport.d.ts +25 -0
- package/utils/LengthPrefixed.d.ts +48 -0
- package/utils/Lz4.d.ts +1 -0
- package/utils/MsgPackerBufferUtils.d.ts +1 -1
- package/utils/VariableLengthInteger.d.ts +18 -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
|
@@ -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 };
|