@vkontakte/calls-sdk 2.8.11-dev.a7bd7233.0 → 2.8.11-dev.ad82f51b.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 +2 -9
- package/abstract/BaseApi.d.ts +3 -4
- package/calls-sdk.cjs.js +9 -9
- package/calls-sdk.esm.js +1789 -1120
- package/classes/CallRegistry.d.ts +1 -0
- package/classes/Conversation.d.ts +29 -17
- package/classes/ConversationResponseValidator.d.ts +3 -0
- package/classes/StatsLogger.d.ts +17 -5
- package/classes/codec/WorkerBase.d.ts +2 -0
- package/classes/stat/CallLifecycleStats.d.ts +47 -0
- package/classes/stat/ConversationStats.d.ts +5 -4
- package/classes/stat/FirstMediaSentProbe.d.ts +13 -0
- package/classes/stat/StatFirstMediaReceived.d.ts +2 -1
- package/classes/stat/StatPings.d.ts +1 -2
- package/classes/stat/StatSignalingCommands.d.ts +1 -2
- package/classes/transport/BaseTransport.d.ts +7 -1
- package/classes/transport/DirectTransport.d.ts +6 -1
- package/classes/transport/ServerTransport.d.ts +1 -1
- package/classes/transport/Transport.d.ts +8 -1
- package/default/Api.d.ts +8 -2
- package/default/Signaling.d.ts +29 -45
- package/default/SignalingTransport.d.ts +68 -0
- package/enums/HangupType.d.ts +2 -1
- package/enums/SignalingNotification.d.ts +1 -0
- package/enums/Stat.d.ts +6 -1
- package/package.json +1 -1
- package/static/Params.d.ts +8 -8
- package/static/ParticipantConnectionStatusUtils.d.ts +16 -0
- package/types/Conversation.d.ts +12 -2
- package/types/Participant.d.ts +11 -1
- package/types/PushData.d.ts +3 -0
- package/types/SignalingMessage.d.ts +11 -1
- package/types/WebTransport.d.ts +4 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ import { VmojiError } from './types/Vmoji';
|
|
|
67
67
|
import { VolumeDetector } from './classes/VolumeDetector';
|
|
68
68
|
import { FastStartHandler, FastStartParams } from './types/FastStart';
|
|
69
69
|
import { FastJoinHandler, FastJoinParams, FastJoinResponse } from './types/FastJoin';
|
|
70
|
+
import PushData from './types/PushData';
|
|
70
71
|
export type { CurrentLogItem, DebugLogGetParams, DebugLogSessionInfo, DebugLogStorageStats } from './utils/DebugStorage';
|
|
71
72
|
/**
|
|
72
73
|
* Информация о текущем браузере
|
|
@@ -255,6 +256,7 @@ export declare function callInternal(ids: OkUserId[], type: CallType | undefined
|
|
|
255
256
|
*/
|
|
256
257
|
export declare function processPush(conversationId: string, conversationParams?: string): Promise<void>;
|
|
257
258
|
export declare function processPushInternal(conversationId: string, type?: UserType, peerId?: number, conversationParams?: string, wsEndpoint?: string, userId?: number): Promise<void>;
|
|
259
|
+
export declare function getInbounds(): Promise<PushData[]>;
|
|
258
260
|
/**
|
|
259
261
|
* Авторизоваться для совершения звонков
|
|
260
262
|
*
|
|
@@ -742,15 +744,6 @@ export declare function acceptPromotion(reject?: boolean): Promise<void>;
|
|
|
742
744
|
export declare function getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<ExternalParticipantListChunk>;
|
|
743
745
|
export declare function getParticipants(parameters: IGetParticipantsParameters): Promise<ExternalParticipant[]>;
|
|
744
746
|
export declare function feedback(key: string): Promise<SignalingMessage>;
|
|
745
|
-
export declare function userFeedbackStats(userResponse: number, reason?: string, groupCallUsersCount?: number): void;
|
|
746
|
-
/**
|
|
747
|
-
* Логирует клиентское событие статистики
|
|
748
|
-
*
|
|
749
|
-
* @param eventType Тип события
|
|
750
|
-
* @param eventData Дополнительные данные события
|
|
751
|
-
* @param immediatelty Отправить ли событие немедленно
|
|
752
|
-
*/
|
|
753
|
-
export declare function logClientEvent(eventType: string, eventData?: Record<string, string | number | boolean>, immediately?: boolean): void;
|
|
754
747
|
export declare function enableFeatureForRoles(feature: ConversationFeature, roles: UserRole[], conversationId?: string): Promise<void>;
|
|
755
748
|
/**
|
|
756
749
|
* Удаляет записи истории звонков
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ import ConversationParams from '../types/ConversationParams';
|
|
|
5
5
|
import ConversationResponse from '../types/ConversationResponse';
|
|
6
6
|
import { ExternalId, ExternalParticipantId, ExternalUserId } from '../types/ExternalId';
|
|
7
7
|
import { CompositeUserId, OkUserId, ParticipantId } from '../types/Participant';
|
|
8
|
+
import PushData from '../types/PushData';
|
|
8
9
|
export type ClientStats = {
|
|
10
|
+
call_topology: 'D' | 'S';
|
|
9
11
|
vcid: ConversationData['id'] | null;
|
|
10
12
|
[k: string]: string | number | boolean | null;
|
|
11
13
|
};
|
|
@@ -68,10 +70,6 @@ export default abstract class BaseApi {
|
|
|
68
70
|
* method: vchat.clientStats
|
|
69
71
|
*/
|
|
70
72
|
logClientStats(items: ClientStats[]): void;
|
|
71
|
-
/**
|
|
72
|
-
* method: vchat.clientEvents
|
|
73
|
-
*/
|
|
74
|
-
logClientEvents(items: ClientEvent[]): void;
|
|
75
73
|
abstract uploadDebugLogs(conversationId: string, startTime: number, endTime: number, log: string): Promise<void>;
|
|
76
74
|
abstract getExternalIdsByOkIds(uids: OkUserId[]): Promise<ExternalParticipantId[]>;
|
|
77
75
|
getCachedOkIdByExternalId(externalId: ExternalId): ParticipantId | null;
|
|
@@ -85,4 +83,5 @@ export default abstract class BaseApi {
|
|
|
85
83
|
removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
86
84
|
getServerTime(): Promise<number>;
|
|
87
85
|
cleanup(): void;
|
|
86
|
+
getInbounds(): Promise<PushData[]>;
|
|
88
87
|
}
|