@vkontakte/calls-sdk 2.5.3-beta.9 → 2.5.3-dev.18fb1f2.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 +19 -5
- package/abstract/BaseSignaling.d.ts +7 -3
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +27 -4
- package/classes/Conversation.test.d.ts +1 -0
- package/classes/transport/Transport.d.ts +1 -0
- package/default/Signaling.d.ts +4 -1
- package/enums/HangupType.d.ts +2 -1
- package/enums/SignalingCommandType.d.ts +2 -0
- package/enums/SignalingNotification.d.ts +5 -1
- package/package.json +1 -1
- package/static/External.d.ts +93 -5
- package/static/Params.d.ts +81 -5
- package/types/ConversationParams.d.ts +4 -0
- package/types/ExternalId.d.ts +18 -1
- package/types/MediaSettings.d.ts +1 -1
- package/types/MovieShare.d.ts +31 -0
- package/types/Participant.d.ts +14 -1
- package/types/ParticipantListChunk.d.ts +13 -0
- package/types/SignalingMessage.d.ts +31 -14
- package/types/WaitingHall.d.ts +13 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -34,13 +34,15 @@ 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';
|
|
41
42
|
import MuteStates from './types/MuteStates';
|
|
42
|
-
import { OkUserId, ParticipantStateMapped } from './types/Participant';
|
|
43
|
+
import { IGetParticipantsParameters, OkUserId, ParticipantStateMapped } from './types/Participant';
|
|
43
44
|
import ParticipantLayout, { Layout, StopStream } from './types/ParticipantLayout';
|
|
45
|
+
import { ParticipantListChunkParameters } from './types/ParticipantListChunk';
|
|
44
46
|
import ParticipantPriority from './types/ParticipantPriority';
|
|
45
47
|
import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
|
|
46
48
|
import SignalingMessage from './types/SignalingMessage';
|
|
@@ -200,6 +202,14 @@ export declare function processPush(conversationId: string): Promise<void>;
|
|
|
200
202
|
export declare function processPushInternal(conversationId: string, type?: UserType, peerId?: number): Promise<void>;
|
|
201
203
|
export declare function getTokenForAnonym(userId: string, appKey?: string): Promise<string>;
|
|
202
204
|
export declare function apiCall(method: string, data?: any): Promise<any>;
|
|
205
|
+
/**
|
|
206
|
+
* Посылает тестовую команду request-test-mode на сервер, дабы ограничить сеть
|
|
207
|
+
* Команда вида: {command:"data-set-link-params", params:{"bandwidth-kbps":"700"} }
|
|
208
|
+
* @param consumerCommand - команда для текущего приемника
|
|
209
|
+
* @param producerCommand - команда для текущего отсылателя
|
|
210
|
+
* @hidden
|
|
211
|
+
*/
|
|
212
|
+
export declare function requestTestMode(consumerCommand: string, producerCommand: string): Promise<void>;
|
|
203
213
|
/**
|
|
204
214
|
* Авторизоваться для совершения звонков
|
|
205
215
|
*
|
|
@@ -438,7 +448,7 @@ export declare function getStreamInfo(): Promise<{
|
|
|
438
448
|
*
|
|
439
449
|
* @param movieId
|
|
440
450
|
*/
|
|
441
|
-
export declare function addMovie(
|
|
451
|
+
export declare function addMovie(params: IAddMovieParams): Promise<{
|
|
442
452
|
movieId: string;
|
|
443
453
|
streamType: string;
|
|
444
454
|
}>;
|
|
@@ -447,8 +457,10 @@ export declare function addMovie(movieId: string): Promise<{
|
|
|
447
457
|
*
|
|
448
458
|
* @param movieId
|
|
449
459
|
* @param gain
|
|
460
|
+
* @param offset
|
|
461
|
+
* @param pause
|
|
450
462
|
*/
|
|
451
|
-
export declare function updateMovie(movieId: string, gain?: number, offset?:
|
|
463
|
+
export declare function updateMovie(movieId: string, gain?: number, offset?: number, pause?: boolean): Promise<void>;
|
|
452
464
|
/**
|
|
453
465
|
* Удалить видео/лайв из звонка
|
|
454
466
|
*
|
|
@@ -502,11 +514,13 @@ export declare function getWaitingHall(pageMarker?: string | null, count?: numbe
|
|
|
502
514
|
* @param demote Запретить вход
|
|
503
515
|
*/
|
|
504
516
|
export declare function promoteParticipant(externalId: ExternalId, demote?: boolean): Promise<void>;
|
|
517
|
+
export declare function getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<import("./types/ExternalId").ExternalParticipantListChunk>;
|
|
518
|
+
export declare function getParticipants(parameters: IGetParticipantsParameters): Promise<ExternalParticipant[]>;
|
|
505
519
|
/**
|
|
506
520
|
* Удаляет записи истории звонков
|
|
507
521
|
*
|
|
508
522
|
* @param recordIds Идентификаторы записей истории
|
|
509
523
|
*/
|
|
510
524
|
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, };
|
|
525
|
+
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
526
|
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,8 +11,10 @@ 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';
|
|
14
15
|
import MuteStates from '../types/MuteStates';
|
|
15
16
|
import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
17
|
+
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
16
18
|
import SignalingMessage from '../types/SignalingMessage';
|
|
17
19
|
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
18
20
|
/**
|
|
@@ -54,8 +56,8 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
54
56
|
abstract updateDisplayLayout(layouts: {
|
|
55
57
|
[key: string]: string;
|
|
56
58
|
}): Promise<SignalingMessage | void>;
|
|
57
|
-
abstract addMovie(data:
|
|
58
|
-
abstract updateMovie(data:
|
|
59
|
+
abstract addMovie(data: IAddMovieParams): Promise<SignalingMessage>;
|
|
60
|
+
abstract updateMovie(data: ISharedMovieState): Promise<SignalingMessage>;
|
|
59
61
|
abstract removeMovie(data: any): Promise<SignalingMessage>;
|
|
60
62
|
abstract startStream(data: any): Promise<SignalingMessage>;
|
|
61
63
|
abstract stopStream(): Promise<SignalingMessage>;
|
|
@@ -77,6 +79,8 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
77
79
|
abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
|
|
78
80
|
abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
|
|
79
81
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
82
|
+
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
83
|
+
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
80
84
|
get ready(): boolean;
|
|
81
85
|
setParticipantIdRegistry(participantIdRegistry: ParticipantIdRegistry): void;
|
|
82
86
|
requestRealloc(): void;
|
|
@@ -84,6 +88,6 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
84
88
|
setConversationId(conversationId: string): void;
|
|
85
89
|
readyToSend(): void;
|
|
86
90
|
cleanup(): void;
|
|
87
|
-
requestTestMode(
|
|
91
|
+
requestTestMode(consumerCommand: string, producerCommand: string): void;
|
|
88
92
|
getNextCommandSequenceNumber(): number;
|
|
89
93
|
}
|