@vkontakte/calls-sdk 2.8.11-dev.a9627477.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 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
  * Удаляет записи истории звонков
@@ -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
  }