@vkontakte/calls-sdk 2.8.4-dev.a9578ec.0 → 2.8.4-dev.c289e55.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
@@ -55,7 +55,7 @@ import ParticipantPriority from './types/ParticipantPriority';
55
55
  import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
56
56
  import { IRoomId, Room, RoomParticipantUpdate, Rooms, RoomsUpdate } from './types/Room';
57
57
  import { ScreenCaptureSettings } from './types/ScreenCaptureSettings';
58
- import SignalingMessage from './types/SignalingMessage';
58
+ import SignalingMessage, { GetRoomsSignalingResponse, GetParticipantsSignalingResponse } from './types/SignalingMessage';
59
59
  import { StatResult } from './types/Statistics';
60
60
  import { IStartStreamData, IStopStreamData, IPublishStreamData } from './types/Streams';
61
61
  import { WaitingHallResponse } from './types/WaitingHall';
@@ -678,5 +678,5 @@ export declare function stopUrlSharing(): Promise<void>;
678
678
  * Версия SDK
679
679
  */
680
680
  export declare function version(): string;
681
- export type { AddParticipantParams, AudienceModeHandsResponse, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IApiEnv, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantId, ParticipantLayout, ParticipantListMarkers, ParticipantListType, ParticipantPriority, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, ParticipantListMarker, RequestKeyFrame, Rooms, IGetParticipantsParameters, ScreenCaptureSettings, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IMovieMetaData, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IRoomId, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, IPublishStreamData, };
681
+ export type { AddParticipantParams, AudienceModeHandsResponse, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, GetParticipantsSignalingResponse, GetRoomsSignalingResponse, HangupReasonData, IApiEnv, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantId, ParticipantLayout, ParticipantListMarkers, ParticipantListType, ParticipantPriority, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, ParticipantListMarker, RequestKeyFrame, Rooms, IGetParticipantsParameters, ScreenCaptureSettings, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IMovieMetaData, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IRoomId, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, IPublishStreamData, };
682
682
  export { Api, AuthData, BaseApi, BaseLogger, BaseSignaling, CallDirection, CallType, ChatRoomEventType, ConversationOption, DebugMessageType, ExternalIdType, FacingMode, FatalError, HangupReason, HangupType, MediaOption, MediaTrackKind, MediaType, MuteState, ParticipantState, ParticipantStatus, RecordRole, Signaling, SignalingCommandType, SignalingConnectionType, SignalingNotification, UserRole, UserType, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, ApiExternal, };
@@ -44,12 +44,14 @@ export default abstract class BaseApi {
44
44
  abstract getUserId(): OkUserId | null;
45
45
  abstract setUserId(userId: OkUserId): void;
46
46
  log(items: LogItem[]): void;
47
- prepareUserIds(ids: OkUserId[]): Promise<void>;
48
47
  abstract getOkIdsByExternalIds(externalIds: ExternalId[]): Promise<OkUserId[]>;
49
48
  abstract getParticipantIdsByExternalIds(externalIds: ExternalId[]): Promise<Map<ExternalId, ParticipantId>>;
50
49
  abstract getExternalIdsByOkIds(uids: OkUserId[]): Promise<ExternalParticipantId[]>;
51
50
  getCachedOkIdByExternalId(externalId: ExternalId): ParticipantId | null;
52
- cacheExternalId(participantId: CompositeUserId, externalId: ExternalParticipantId): void;
51
+ cacheExternalId(compositeId: OkUserId | CompositeUserId | ParticipantId, externalId: ExternalParticipantId): void;
52
+ mapDecorativeId(decorativeId: OkUserId | CompositeUserId | ParticipantId, okId: OkUserId | CompositeUserId): void;
53
+ getDecorativeIdByInitialId(okId: OkUserId | CompositeUserId | ParticipantId): OkUserId | undefined;
54
+ replaceByInitialIdIdIfExists(id: OkUserId | CompositeUserId | ParticipantId): OkUserId;
53
55
  hangupConversation(conversationId: string): void;
54
56
  sendUserFeedbackStats(conversationId: string, userResponse: number, reason?: string, groupCallUsersCount?: number): void;
55
57
  removeHistoryRecords(recordIds: number[]): Promise<void>;
@@ -19,9 +19,8 @@ import MuteStates from '../types/MuteStates';
19
19
  import { CompositeUserId, ParticipantId } from '../types/Participant';
20
20
  import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
21
21
  import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
22
- import SignalingMessage from '../types/SignalingMessage';
22
+ import SignalingMessage, { GetParticipantsSignalingResponse, GetRoomsSignalingResponse } from '../types/SignalingMessage';
23
23
  import { IPublishStreamData, IRecordConfData, IStartStreamData, IStopStreamData } from '../types/Streams';
24
- import { WaitingParticipantId } from '../types/WaitingHall';
25
24
  import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
26
25
  /**
27
26
  * Параметры добавления пользователя в звонок
@@ -73,7 +72,7 @@ export default abstract class BaseSignaling extends EventEmitter {
73
72
  abstract updateRooms(rooms: Record<any, any>[], assignRandomly?: boolean): Promise<SignalingMessage>;
74
73
  abstract activateRooms(roomIds: number[], deactivate: boolean): Promise<SignalingMessage>;
75
74
  abstract switchRoom(toRoomId: number | null, participantId?: ParticipantId): Promise<SignalingMessage>;
76
- abstract getRooms(withParticipants: boolean): Promise<SignalingMessage>;
75
+ abstract getRooms(withParticipants: boolean): Promise<GetRoomsSignalingResponse>;
77
76
  abstract removeRooms(roomIds: number[]): Promise<SignalingMessage>;
78
77
  abstract startStream(data: IStartStreamData): Promise<SignalingMessage>;
79
78
  abstract stopStream(data: IStopStreamData): Promise<SignalingMessage>;
@@ -95,7 +94,7 @@ export default abstract class BaseSignaling extends EventEmitter {
95
94
  abstract changeOptions(changes: {
96
95
  [key in ConversationOption]?: boolean;
97
96
  }): Promise<SignalingMessage>;
98
- abstract getWaitingHall(fromId: WaitingParticipantId | null, count?: number, backward?: boolean): Promise<SignalingMessage>;
97
+ abstract getWaitingHall(fromId: SignalingMessage.WaitingParticipantId | null, count?: number, backward?: boolean): Promise<SignalingMessage>;
99
98
  abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
100
99
  abstract requestPromotion(unrequest: boolean): Promise<SignalingMessage>;
101
100
  abstract acceptPromotion(reject: boolean): Promise<SignalingMessage>;
@@ -105,7 +104,7 @@ export default abstract class BaseSignaling extends EventEmitter {
105
104
  abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
106
105
  abstract useCommandDataChannel(status: boolean): void;
107
106
  abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
108
- abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
107
+ abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<GetParticipantsSignalingResponse>;
109
108
  abstract startAsr(params: IAsrStartParams): Promise<SignalingMessage>;
110
109
  abstract stopAsr(params?: IAsrStopParams): Promise<SignalingMessage>;
111
110
  abstract requestAsr(request: boolean): Promise<SignalingMessage>;