@vkontakte/calls-sdk 2.5.3-dev.6fa8b9b.0 → 2.5.3-dev.9a5ee0c.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 +14 -3
- package/abstract/BaseSignaling.d.ts +4 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +21 -3
- package/classes/Conversation.test.d.ts +1 -0
- package/classes/SpeakerDetector.d.ts +4 -5
- package/classes/VolumesDetector.d.ts +1 -1
- package/classes/codec/IDecoder.d.ts +1 -1
- package/classes/codec/WebCodecsDecoder.d.ts +1 -1
- package/classes/screenshare/BaseRenderer.d.ts +8 -0
- package/classes/screenshare/CanvasRenderer.d.ts +16 -0
- package/classes/screenshare/StreamBuilder.d.ts +1 -9
- package/classes/screenshare/TrackGeneratorRenderer.d.ts +10 -0
- package/classes/transport/Transport.d.ts +1 -2
- package/default/Signaling.d.ts +4 -1
- package/enums/HangupType.d.ts +2 -1
- package/enums/SignalingCommandType.d.ts +2 -0
- package/package.json +1 -1
- package/static/External.d.ts +34 -5
- package/static/Params.d.ts +47 -5
- package/static/Utils.d.ts +6 -1
- package/static/Utils.test.d.ts +1 -0
- package/types/ConversationParams.d.ts +4 -0
- package/types/ExternalId.d.ts +16 -1
- package/types/Participant.d.ts +12 -1
- package/types/ParticipantListChunk.d.ts +13 -0
- package/types/SignalingMessage.d.ts +21 -14
- package/types/WaitingHall.d.ts +13 -0
- package/worker/WebCodecsDecoderWorker.d.ts +1 -1
package/CallsSDK.d.ts
CHANGED
|
@@ -34,13 +34,14 @@ import Utils from './static/Utils';
|
|
|
34
34
|
import WebRTCUtils, { FacingMode } from './static/WebRTCUtils';
|
|
35
35
|
import ConversationParams from './types/ConversationParams';
|
|
36
36
|
import ConversationResponse from './types/ConversationResponse';
|
|
37
|
-
import { ExternalId, ExternalIdType, ExternalParticipant, ExternalParticipantId, ExternalUserId } from './types/ExternalId';
|
|
37
|
+
import { ExternalId, ExternalIdType, ExternalParticipant, ExternalParticipantId, ExternalParticipantListMarkers, ExternalUserId } from './types/ExternalId';
|
|
38
38
|
import IceServer from './types/IceServer';
|
|
39
39
|
import MediaModifiers from './types/MediaModifiers';
|
|
40
40
|
import { IVideoDimentions, MediaSettings } from './types/MediaSettings';
|
|
41
41
|
import MuteStates from './types/MuteStates';
|
|
42
|
-
import { OkUserId, ParticipantStateMapped } from './types/Participant';
|
|
42
|
+
import { IGetParticipantsParameters, OkUserId, ParticipantStateMapped } from './types/Participant';
|
|
43
43
|
import ParticipantLayout, { Layout, StopStream } from './types/ParticipantLayout';
|
|
44
|
+
import { ParticipantListChunkParameters } from './types/ParticipantListChunk';
|
|
44
45
|
import ParticipantPriority from './types/ParticipantPriority';
|
|
45
46
|
import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
|
|
46
47
|
import SignalingMessage from './types/SignalingMessage';
|
|
@@ -200,6 +201,14 @@ export declare function processPush(conversationId: string): Promise<void>;
|
|
|
200
201
|
export declare function processPushInternal(conversationId: string, type?: UserType, peerId?: number): Promise<void>;
|
|
201
202
|
export declare function getTokenForAnonym(userId: string, appKey?: string): Promise<string>;
|
|
202
203
|
export declare function apiCall(method: string, data?: any): Promise<any>;
|
|
204
|
+
/**
|
|
205
|
+
* Посылает тестовую команду request-test-mode на сервер, дабы ограничить сеть
|
|
206
|
+
* Команда вида: {command:"data-set-link-params", params:{"bandwidth-kbps":"700"} }
|
|
207
|
+
* @param consumerCommand - команда для текущего приемника
|
|
208
|
+
* @param producerCommand - команда для текущего отсылателя
|
|
209
|
+
* @hidden
|
|
210
|
+
*/
|
|
211
|
+
export declare function requestTestMode(consumerCommand: string, producerCommand: string): Promise<void>;
|
|
203
212
|
/**
|
|
204
213
|
* Авторизоваться для совершения звонков
|
|
205
214
|
*
|
|
@@ -502,11 +511,13 @@ export declare function getWaitingHall(pageMarker?: string | null, count?: numbe
|
|
|
502
511
|
* @param demote Запретить вход
|
|
503
512
|
*/
|
|
504
513
|
export declare function promoteParticipant(externalId: ExternalId, demote?: boolean): Promise<void>;
|
|
514
|
+
export declare function getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<import("./types/ExternalId").ExternalParticipantListChunk>;
|
|
515
|
+
export declare function getParticipants(parameters: IGetParticipantsParameters): Promise<ExternalParticipant[]>;
|
|
505
516
|
/**
|
|
506
517
|
* Удаляет записи истории звонков
|
|
507
518
|
*
|
|
508
519
|
* @param recordIds Идентификаторы записей истории
|
|
509
520
|
*/
|
|
510
521
|
export declare function removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
511
|
-
export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantId, HangupReasonData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantLayout, ParticipantPriority, ParticipantStateMapped, ParticipantStreamDescription, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IVideoDimentions, };
|
|
522
|
+
export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantLayout, ParticipantPriority, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, IGetParticipantsParameters, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IVideoDimentions, };
|
|
512
523
|
export { Api, 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, Utils, };
|
|
@@ -13,6 +13,7 @@ import MediaModifiers from '../types/MediaModifiers';
|
|
|
13
13
|
import MediaSettings from '../types/MediaSettings';
|
|
14
14
|
import MuteStates from '../types/MuteStates';
|
|
15
15
|
import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
16
|
+
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
16
17
|
import SignalingMessage from '../types/SignalingMessage';
|
|
17
18
|
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
18
19
|
/**
|
|
@@ -77,6 +78,8 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
77
78
|
abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
|
|
78
79
|
abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
|
|
79
80
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
81
|
+
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
82
|
+
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
80
83
|
get ready(): boolean;
|
|
81
84
|
setParticipantIdRegistry(participantIdRegistry: ParticipantIdRegistry): void;
|
|
82
85
|
requestRealloc(): void;
|
|
@@ -84,6 +87,6 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
84
87
|
setConversationId(conversationId: string): void;
|
|
85
88
|
readyToSend(): void;
|
|
86
89
|
cleanup(): void;
|
|
87
|
-
requestTestMode(
|
|
90
|
+
requestTestMode(consumerCommand: string, producerCommand: string): void;
|
|
88
91
|
getNextCommandSequenceNumber(): number;
|
|
89
92
|
}
|