@vkontakte/calls-sdk 2.8.6-dev.f6918cbf.0 → 2.8.6
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 +5 -4
- package/abstract/BaseApi.d.ts +2 -1
- package/abstract/BaseSignaling.d.ts +1 -0
- package/calls-sdk.cjs.js +13 -8
- package/calls-sdk.esm.js +13 -8
- package/classes/Conversation.d.ts +6 -3
- package/classes/LocalNetworkRating.d.ts +7 -0
- 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/StatPings.d.ts +17 -0
- package/classes/stat/StatSignalingCommands.d.ts +12 -0
- package/classes/transport/ServerTransport.d.ts +8 -0
- package/classes/transport/Statistics.d.ts +23 -10
- package/default/Api.d.ts +3 -2
- package/default/Signaling.d.ts +16 -9
- 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 +19 -36
- package/enums/StatLog.d.ts +32 -0
- package/package.json +6 -8
- 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/types/ConversationParams.d.ts +2 -0
- package/types/ConversationResponse.d.ts +4 -0
- package/types/ExternalId.d.ts +2 -0
- package/types/SignalingCommand.d.ts +1 -0
- package/types/SignalingMessage.d.ts +1 -1
- 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 -1
- 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
package/CallsSDK.d.ts
CHANGED
|
@@ -413,8 +413,8 @@ export declare function grantRolesInternal(uid: OkUserId, deviceIdx: number, rol
|
|
|
413
413
|
/**
|
|
414
414
|
* Выключить или выключить микрофон и/или камеру собеседнику (только если есть соответствующая роль)
|
|
415
415
|
*/
|
|
416
|
-
export declare function muteParticipant({ externalId, muteStates, requestedMedia, roomId
|
|
417
|
-
export declare function muteParticipantInternal({ uid, muteStates, requestedMedia, deviceIdx, roomId
|
|
416
|
+
export declare function muteParticipant({ externalId, muteStates, requestedMedia, roomId }: IMuteParticipantParams): Promise<void>;
|
|
417
|
+
export declare function muteParticipantInternal({ uid, muteStates, requestedMedia, deviceIdx, roomId }: IMuteParticipantInternalParams): Promise<void>;
|
|
418
418
|
/**
|
|
419
419
|
* Закрепить/открепить выбранного собеседника у всех (только если есть соответствующая роль)
|
|
420
420
|
*
|
|
@@ -494,7 +494,7 @@ export declare function startConversation(payload?: string, requireAuthToJoin?:
|
|
|
494
494
|
* @param speakerIds Список внешних ID пользователей, которые будут выступать в роли спикеров
|
|
495
495
|
* @returns Токен комнаты
|
|
496
496
|
*/
|
|
497
|
-
export declare function startAudienceConversation(payload: string | undefined, requireAuthToJoin: boolean | undefined, { onlyAdminCanShareMovie, audioOnly
|
|
497
|
+
export declare function startAudienceConversation(payload: string | undefined, requireAuthToJoin: boolean | undefined, { onlyAdminCanShareMovie, audioOnly }: {
|
|
498
498
|
onlyAdminCanShareMovie?: boolean | undefined;
|
|
499
499
|
audioOnly?: boolean | undefined;
|
|
500
500
|
} | undefined, speakerIds: ExternalUserId[]): Promise<string>;
|
|
@@ -539,8 +539,9 @@ export declare function startStream(isRecord?: boolean, name?: string | null, mo
|
|
|
539
539
|
/**
|
|
540
540
|
* Завершить трансляцию звонка
|
|
541
541
|
* @param roomId
|
|
542
|
+
* @param remove не сохранять запись звонка
|
|
542
543
|
*/
|
|
543
|
-
export declare function stopStream(roomId?: number | null): Promise<undefined>;
|
|
544
|
+
export declare function stopStream(roomId?: number | null, remove?: boolean): Promise<undefined>;
|
|
544
545
|
/**
|
|
545
546
|
* Опубликовать трансляцию звонка
|
|
546
547
|
* @param roomId
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import CallType from '../enums/CallType';
|
|
2
|
+
import HangupType from '../enums/HangupType';
|
|
2
3
|
import { ConversationData } from '../types/Conversation';
|
|
3
4
|
import ConversationParams from '../types/ConversationParams';
|
|
4
5
|
import ConversationResponse from '../types/ConversationResponse';
|
|
@@ -73,7 +74,7 @@ export default abstract class BaseApi {
|
|
|
73
74
|
unmapDecorativeId(decorativeId: OkUserId | CompositeUserId | ParticipantId): void;
|
|
74
75
|
getDecorativeIdByInitialId(okId: OkUserId | CompositeUserId | ParticipantId): OkUserId | undefined;
|
|
75
76
|
replaceByInitialIdIdIfExists(id: OkUserId | CompositeUserId | ParticipantId): OkUserId;
|
|
76
|
-
hangupConversation(conversationId: string): void;
|
|
77
|
+
hangupConversation(conversationId: string, reason?: HangupType): void;
|
|
77
78
|
sendUserFeedbackStats(conversationId: string, userResponse: number, reason?: string, groupCallUsersCount?: number): void;
|
|
78
79
|
removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
79
80
|
getServerTime(): Promise<number>;
|
|
@@ -124,6 +124,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
124
124
|
setParticipantIdRegistry(participantIdRegistry: ParticipantIdRegistry): void;
|
|
125
125
|
requestRealloc(): void;
|
|
126
126
|
setEndpoint(endpoint: string): void;
|
|
127
|
+
setWebTransportEndpoint(endpoint: string | null): void;
|
|
127
128
|
setConversationId(conversationId: string): void;
|
|
128
129
|
readyToSend(isReady?: boolean): void;
|
|
129
130
|
cleanup(): void;
|