@vkontakte/calls-sdk 2.5.3-dev.80ed530.0 → 2.5.3-dev.c7053bb.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 +11 -2
- package/abstract/BaseSignaling.d.ts +2 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +6 -2
- package/classes/transport/Transport.d.ts +1 -0
- package/default/Signaling.d.ts +2 -1
- package/enums/SignalingCommandType.d.ts +1 -0
- package/package.json +1 -1
- package/static/Utils.d.ts +6 -1
- package/static/Utils.test.d.ts +1 -0
- package/types/Participant.d.ts +4 -1
- package/types/SignalingMessage.d.ts +7 -6
- package/types/WaitingHall.d.ts +13 -0
- package/worker/WebCodecsDecoderWorker.d.ts +1 -1
package/CallsSDK.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ 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
44
|
import { ParticipantListChunkParameters } from './types/ParticipantListChunk';
|
|
45
45
|
import ParticipantPriority from './types/ParticipantPriority';
|
|
@@ -201,6 +201,14 @@ export declare function processPush(conversationId: string): Promise<void>;
|
|
|
201
201
|
export declare function processPushInternal(conversationId: string, type?: UserType, peerId?: number): Promise<void>;
|
|
202
202
|
export declare function getTokenForAnonym(userId: string, appKey?: string): Promise<string>;
|
|
203
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>;
|
|
204
212
|
/**
|
|
205
213
|
* Авторизоваться для совершения звонков
|
|
206
214
|
*
|
|
@@ -504,11 +512,12 @@ export declare function getWaitingHall(pageMarker?: string | null, count?: numbe
|
|
|
504
512
|
*/
|
|
505
513
|
export declare function promoteParticipant(externalId: ExternalId, demote?: boolean): Promise<void>;
|
|
506
514
|
export declare function getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<import("./types/ExternalId").ExternalParticipantListChunk>;
|
|
515
|
+
export declare function getParticipants(parameters: IGetParticipantsParameters): Promise<ExternalParticipant[]>;
|
|
507
516
|
/**
|
|
508
517
|
* Удаляет записи истории звонков
|
|
509
518
|
*
|
|
510
519
|
* @param recordIds Идентификаторы записей истории
|
|
511
520
|
*/
|
|
512
521
|
export declare function removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
513
|
-
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, 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, };
|
|
514
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, };
|
|
@@ -79,6 +79,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
79
79
|
abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
|
|
80
80
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
81
81
|
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
82
|
+
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
82
83
|
get ready(): boolean;
|
|
83
84
|
setParticipantIdRegistry(participantIdRegistry: ParticipantIdRegistry): void;
|
|
84
85
|
requestRealloc(): void;
|
|
@@ -86,6 +87,6 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
86
87
|
setConversationId(conversationId: string): void;
|
|
87
88
|
readyToSend(): void;
|
|
88
89
|
cleanup(): void;
|
|
89
|
-
requestTestMode(
|
|
90
|
+
requestTestMode(consumerCommand: string, producerCommand: string): void;
|
|
90
91
|
getNextCommandSequenceNumber(): number;
|
|
91
92
|
}
|