@vkontakte/calls-sdk 2.8.11-beta.0 → 2.8.11-dev.185dd9e4.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 +1 -11
- package/abstract/BaseApi.d.ts +2 -4
- package/abstract/BaseSignaling.d.ts +1 -2
- package/calls-sdk.cjs.js +10 -10
- package/calls-sdk.esm.js +10 -10
- package/classes/Conversation.d.ts +0 -1
- package/classes/ExternalIdCache.d.ts +19 -0
- package/classes/Logger.d.ts +0 -5
- package/default/Api.d.ts +4 -14
- package/default/Signaling.d.ts +3 -3
- package/package.json +1 -1
- package/types/WebTransport.d.ts +1 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -561,16 +561,6 @@ export declare function stopStream(roomId?: number | null, remove?: boolean): Pr
|
|
|
561
561
|
* @param roomId
|
|
562
562
|
*/
|
|
563
563
|
export declare function publishStream(roomId?: number | null): Promise<undefined>;
|
|
564
|
-
/**
|
|
565
|
-
* Устанавливает роль участника в запись звонка
|
|
566
|
-
* Если хотя бы у одного участника звонка выставлена роль, то в записи звонка будут
|
|
567
|
-
* видны только те участники, у кого есть роль.
|
|
568
|
-
* @param king участник показывается крупно в записи звонка (только один участник имеет такую роль)
|
|
569
|
-
* @param pawns участник показывается в записи звонка
|
|
570
|
-
* @param hideParticipantCount скрыть/показать количество невидимых участников
|
|
571
|
-
* @param roomId комната
|
|
572
|
-
*/
|
|
573
|
-
export declare function recordSetConf(king?: ExternalId, pawns?: ExternalId[], hideParticipantCount?: boolean, roomId?: number | null): Promise<void>;
|
|
574
564
|
/**
|
|
575
565
|
* Получить информацию о трансляции звонка
|
|
576
566
|
*/
|
|
@@ -749,7 +739,7 @@ export declare function requestAsr(request: boolean): Promise<void>;
|
|
|
749
739
|
export declare function startUrlSharing(sharedUrl: string): Promise<void>;
|
|
750
740
|
export declare function stopUrlSharing(): Promise<void>;
|
|
751
741
|
export declare function sendTestCommand(name: string, params?: any): void;
|
|
752
|
-
export declare function startAnalyzingAudio(expectAudio: boolean): void;
|
|
742
|
+
export declare function startAnalyzingAudio(expectAudio: boolean, expectedActiveTracks?: number | null, expectedTrackFrequencies?: number[] | null): void;
|
|
753
743
|
export declare function stopAnalyzingAudio(): void;
|
|
754
744
|
/**
|
|
755
745
|
* Версия SDK
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export default abstract class BaseApi {
|
|
|
44
44
|
audioOnly?: boolean;
|
|
45
45
|
waitForAdmin?: boolean;
|
|
46
46
|
closedConversation?: boolean;
|
|
47
|
-
}, speakerIds?:
|
|
47
|
+
}, speakerIds?: ExternalId[]): Promise<ConversationResponse>;
|
|
48
48
|
abstract startConversation(conversationId: string, ids?: OkUserId[], type?: CallType, isVideo?: boolean, payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, createConversationParameters?: {
|
|
49
49
|
onlyAdminCanShareMovie?: boolean;
|
|
50
50
|
}, externalIds?: ExternalId[]): Promise<ConversationResponse>;
|
|
@@ -73,17 +73,15 @@ export default abstract class BaseApi {
|
|
|
73
73
|
*/
|
|
74
74
|
logClientEvents(items: ClientEvent[]): void;
|
|
75
75
|
abstract uploadDebugLogs(conversationId: string, startTime: number, endTime: number, log: string): Promise<void>;
|
|
76
|
-
abstract getOkIdsByExternalIds(externalIds: ExternalId[]): Promise<OkUserId[]>;
|
|
77
|
-
abstract getParticipantIdsByExternalIds(externalIds: ExternalId[]): Promise<Map<ExternalId, ParticipantId>>;
|
|
78
76
|
abstract getExternalIdsByOkIds(uids: OkUserId[]): Promise<ExternalParticipantId[]>;
|
|
79
77
|
getCachedOkIdByExternalId(externalId: ExternalId): ParticipantId | null;
|
|
78
|
+
getCachedRawOkIdByExternalId(externalId: ExternalId): OkUserId | null;
|
|
80
79
|
cacheExternalId(compositeId: OkUserId | CompositeUserId | ParticipantId, externalId: ExternalParticipantId): void;
|
|
81
80
|
mapDecorativeId(decorativeId: OkUserId | CompositeUserId | ParticipantId, okId: OkUserId | CompositeUserId): void;
|
|
82
81
|
unmapDecorativeId(decorativeId: OkUserId | CompositeUserId | ParticipantId): void;
|
|
83
82
|
getDecorativeIdByInitialId(okId: OkUserId | CompositeUserId | ParticipantId): OkUserId | undefined;
|
|
84
83
|
replaceByInitialIdIdIfExists(id: OkUserId | CompositeUserId | ParticipantId): OkUserId;
|
|
85
84
|
hangupConversation(conversationId: string, reason?: HangupType): void;
|
|
86
|
-
sendUserFeedbackStats(conversationId: string, userResponse: number, reason?: string, groupCallUsersCount?: number): void;
|
|
87
85
|
removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
88
86
|
getServerTime(): Promise<number>;
|
|
89
87
|
cleanup(): void;
|
|
@@ -21,7 +21,7 @@ import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/Partici
|
|
|
21
21
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
22
22
|
import SignalingMessage, { GetParticipantsSignalingResponse, GetRoomsSignalingResponse } from '../types/SignalingMessage';
|
|
23
23
|
import { ChangeSimulcast } from '../types/ChangeSimulcast';
|
|
24
|
-
import { IPublishStreamData,
|
|
24
|
+
import { IPublishStreamData, IStartStreamData, IStopStreamData } from '../types/Streams';
|
|
25
25
|
import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
|
|
26
26
|
/**
|
|
27
27
|
* Параметры добавления пользователя в звонок
|
|
@@ -92,7 +92,6 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
92
92
|
abstract startStream(data: IStartStreamData): Promise<SignalingMessage>;
|
|
93
93
|
abstract stopStream(data: IStopStreamData): Promise<SignalingMessage>;
|
|
94
94
|
abstract publishStream(data: IPublishStreamData): Promise<SignalingMessage>;
|
|
95
|
-
abstract recordSetConf(conf: IRecordConfData): Promise<SignalingMessage>;
|
|
96
95
|
abstract getRecordStatus(): Promise<SignalingMessage>;
|
|
97
96
|
abstract switchTopology(topology: TransportTopology, force?: boolean): Promise<SignalingMessage>;
|
|
98
97
|
abstract reportPerfStat(report: PerfStatReport): Promise<SignalingMessage>;
|