@vkontakte/calls-sdk 2.5.3-dev.dbb762f.0 → 2.6.2-dev.63ede13.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 +16 -8
- package/abstract/BaseSignaling.d.ts +6 -4
- package/calls-sdk.cjs.js +9 -9
- package/calls-sdk.esm.js +9 -9
- package/classes/Conversation.d.ts +22 -6
- package/classes/Conversation.test.d.ts +1 -0
- package/classes/transport/DirectTransport.d.ts +1 -1
- package/classes/transport/Transport.d.ts +2 -2
- package/default/Signaling.d.ts +4 -1
- package/enums/SignalingCommandType.d.ts +2 -0
- package/enums/SignalingNotification.d.ts +1 -2
- package/package.json +1 -1
- package/static/External.d.ts +24 -32
- package/static/Params.d.ts +30 -20
- package/static/Utils.d.ts +6 -1
- package/static/Utils.test.d.ts +1 -0
- package/types/ExternalId.d.ts +16 -1
- package/types/MediaSettings.d.ts +1 -1
- package/types/Participant.d.ts +12 -1
- package/types/ParticipantListChunk.d.ts +13 -0
- package/types/SignalingMessage.d.ts +25 -19
- package/types/WaitingHall.d.ts +13 -0
- package/worker/WebCodecsDecoderWorker.d.ts +1 -1
- package/types/MovieShare.d.ts +0 -13
package/CallsSDK.d.ts
CHANGED
|
@@ -34,14 +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
|
-
import { IAddMovieParams } from './types/MovieShare';
|
|
42
41
|
import MuteStates from './types/MuteStates';
|
|
43
|
-
import { OkUserId, ParticipantStateMapped } from './types/Participant';
|
|
42
|
+
import { IGetParticipantsParameters, OkUserId, ParticipantStateMapped } from './types/Participant';
|
|
44
43
|
import ParticipantLayout, { Layout, StopStream } from './types/ParticipantLayout';
|
|
44
|
+
import { ParticipantListChunkParameters } from './types/ParticipantListChunk';
|
|
45
45
|
import ParticipantPriority from './types/ParticipantPriority';
|
|
46
46
|
import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
|
|
47
47
|
import SignalingMessage from './types/SignalingMessage';
|
|
@@ -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
|
*
|
|
@@ -439,7 +447,7 @@ export declare function getStreamInfo(): Promise<{
|
|
|
439
447
|
*
|
|
440
448
|
* @param movieId
|
|
441
449
|
*/
|
|
442
|
-
export declare function addMovie(
|
|
450
|
+
export declare function addMovie(movieId: string): Promise<{
|
|
443
451
|
movieId: string;
|
|
444
452
|
streamType: string;
|
|
445
453
|
}>;
|
|
@@ -448,10 +456,8 @@ export declare function addMovie(params: IAddMovieParams): Promise<{
|
|
|
448
456
|
*
|
|
449
457
|
* @param movieId
|
|
450
458
|
* @param gain
|
|
451
|
-
* @param offset
|
|
452
|
-
* @param pause
|
|
453
459
|
*/
|
|
454
|
-
export declare function updateMovie(movieId: string, gain?: number, offset?:
|
|
460
|
+
export declare function updateMovie(movieId: string, gain?: number, offset?: string, pause?: boolean): Promise<void>;
|
|
455
461
|
/**
|
|
456
462
|
* Удалить видео/лайв из звонка
|
|
457
463
|
*
|
|
@@ -505,11 +511,13 @@ export declare function getWaitingHall(pageMarker?: string | null, count?: numbe
|
|
|
505
511
|
* @param demote Запретить вход
|
|
506
512
|
*/
|
|
507
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[]>;
|
|
508
516
|
/**
|
|
509
517
|
* Удаляет записи истории звонков
|
|
510
518
|
*
|
|
511
519
|
* @param recordIds Идентификаторы записей истории
|
|
512
520
|
*/
|
|
513
521
|
export declare function removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
514
|
-
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, };
|
|
515
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, };
|
|
@@ -11,9 +11,9 @@ import { JSONObject } from '../static/Json';
|
|
|
11
11
|
import ConversationResponse from '../types/ConversationResponse';
|
|
12
12
|
import MediaModifiers from '../types/MediaModifiers';
|
|
13
13
|
import MediaSettings from '../types/MediaSettings';
|
|
14
|
-
import { IAddMovieParams, ISharedMovieState } from '../types/MovieShare';
|
|
15
14
|
import MuteStates from '../types/MuteStates';
|
|
16
15
|
import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
16
|
+
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
17
17
|
import SignalingMessage from '../types/SignalingMessage';
|
|
18
18
|
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
19
19
|
/**
|
|
@@ -55,8 +55,8 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
55
55
|
abstract updateDisplayLayout(layouts: {
|
|
56
56
|
[key: string]: string;
|
|
57
57
|
}): Promise<SignalingMessage | void>;
|
|
58
|
-
abstract addMovie(data:
|
|
59
|
-
abstract updateMovie(data:
|
|
58
|
+
abstract addMovie(data: any): Promise<SignalingMessage>;
|
|
59
|
+
abstract updateMovie(data: any): Promise<SignalingMessage>;
|
|
60
60
|
abstract removeMovie(data: any): Promise<SignalingMessage>;
|
|
61
61
|
abstract startStream(data: any): Promise<SignalingMessage>;
|
|
62
62
|
abstract stopStream(): Promise<SignalingMessage>;
|
|
@@ -78,6 +78,8 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
78
78
|
abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
|
|
79
79
|
abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
|
|
80
80
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
81
|
+
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
82
|
+
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
81
83
|
get ready(): boolean;
|
|
82
84
|
setParticipantIdRegistry(participantIdRegistry: ParticipantIdRegistry): void;
|
|
83
85
|
requestRealloc(): void;
|
|
@@ -85,6 +87,6 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
85
87
|
setConversationId(conversationId: string): void;
|
|
86
88
|
readyToSend(): void;
|
|
87
89
|
cleanup(): void;
|
|
88
|
-
requestTestMode(
|
|
90
|
+
requestTestMode(consumerCommand: string, producerCommand: string): void;
|
|
89
91
|
getNextCommandSequenceNumber(): number;
|
|
90
92
|
}
|