@vkontakte/calls-sdk 2.5.3-dev.fe8ad1c.0 → 2.6.2-dev.14b086c.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 +23 -5
- package/abstract/BaseSignaling.d.ts +6 -3
- package/calls-sdk.cjs.js +9 -9
- package/calls-sdk.esm.js +9 -9
- package/classes/Conversation.d.ts +25 -3
- 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 +7 -3
- package/enums/HangupType.d.ts +2 -1
- package/enums/SignalingCommandType.d.ts +2 -0
- package/enums/SignalingNotification.d.ts +4 -1
- package/package.json +1 -1
- package/static/External.d.ts +69 -6
- package/static/Params.d.ts +68 -6
- package/static/Utils.d.ts +6 -1
- package/static/Utils.test.d.ts +1 -0
- package/types/ExternalId.d.ts +18 -1
- package/types/MediaSettings.d.ts +1 -1
- package/types/MovieShare.d.ts +25 -9
- package/types/Participant.d.ts +14 -1
- package/types/ParticipantListChunk.d.ts +13 -0
- package/types/SignalingMessage.d.ts +35 -16
- package/types/WaitingHall.d.ts +13 -0
- package/worker/WebCodecsDecoderWorker.d.ts +1 -1
package/CallsSDK.d.ts
CHANGED
|
@@ -34,18 +34,19 @@ 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';
|
|
48
48
|
import { WaitingHallResponse } from './types/WaitingHall';
|
|
49
|
+
import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams } from './types/MovieShare';
|
|
49
50
|
/**
|
|
50
51
|
* Информация о текущем браузере
|
|
51
52
|
*/
|
|
@@ -201,6 +202,14 @@ export declare function processPush(conversationId: string): Promise<void>;
|
|
|
201
202
|
export declare function processPushInternal(conversationId: string, type?: UserType, peerId?: number): Promise<void>;
|
|
202
203
|
export declare function getTokenForAnonym(userId: string, appKey?: string): Promise<string>;
|
|
203
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>;
|
|
204
213
|
/**
|
|
205
214
|
* Авторизоваться для совершения звонков
|
|
206
215
|
*
|
|
@@ -448,8 +457,10 @@ export declare function addMovie(params: IAddMovieParams): Promise<{
|
|
|
448
457
|
*
|
|
449
458
|
* @param movieId
|
|
450
459
|
* @param gain
|
|
460
|
+
* @param offset
|
|
461
|
+
* @param pause
|
|
451
462
|
*/
|
|
452
|
-
export declare function updateMovie(movieId: string, gain?: number, offset?:
|
|
463
|
+
export declare function updateMovie(movieId: string, gain?: number, offset?: number, pause?: boolean): Promise<void>;
|
|
453
464
|
/**
|
|
454
465
|
* Удалить видео/лайв из звонка
|
|
455
466
|
*
|
|
@@ -503,11 +514,18 @@ export declare function getWaitingHall(pageMarker?: string | null, count?: numbe
|
|
|
503
514
|
* @param demote Запретить вход
|
|
504
515
|
*/
|
|
505
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[]>;
|
|
506
519
|
/**
|
|
507
520
|
* Удаляет записи истории звонков
|
|
508
521
|
*
|
|
509
522
|
* @param recordIds Идентификаторы записей истории
|
|
510
523
|
*/
|
|
511
524
|
export declare function removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
512
|
-
|
|
525
|
+
/**
|
|
526
|
+
* Версия SDK
|
|
527
|
+
*/
|
|
528
|
+
export declare function version(): string;
|
|
529
|
+
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, };
|
|
513
530
|
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, };
|
|
531
|
+
export type { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, };
|
|
@@ -11,9 +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 } from '../types/MovieShare';
|
|
14
|
+
import { IAddMovieParams, ISharedMovieState } from '../types/MovieShare';
|
|
15
15
|
import MuteStates from '../types/MuteStates';
|
|
16
16
|
import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
17
|
+
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
17
18
|
import SignalingMessage from '../types/SignalingMessage';
|
|
18
19
|
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
19
20
|
/**
|
|
@@ -56,7 +57,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
56
57
|
[key: string]: string;
|
|
57
58
|
}): Promise<SignalingMessage | void>;
|
|
58
59
|
abstract addMovie(data: IAddMovieParams): Promise<SignalingMessage>;
|
|
59
|
-
abstract updateMovie(data:
|
|
60
|
+
abstract updateMovie(data: ISharedMovieState): Promise<SignalingMessage>;
|
|
60
61
|
abstract removeMovie(data: any): Promise<SignalingMessage>;
|
|
61
62
|
abstract startStream(data: any): Promise<SignalingMessage>;
|
|
62
63
|
abstract stopStream(): Promise<SignalingMessage>;
|
|
@@ -78,6 +79,8 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
78
79
|
abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
|
|
79
80
|
abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
|
|
80
81
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
82
|
+
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
83
|
+
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
81
84
|
get ready(): boolean;
|
|
82
85
|
setParticipantIdRegistry(participantIdRegistry: ParticipantIdRegistry): void;
|
|
83
86
|
requestRealloc(): void;
|
|
@@ -85,6 +88,6 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
85
88
|
setConversationId(conversationId: string): void;
|
|
86
89
|
readyToSend(): void;
|
|
87
90
|
cleanup(): void;
|
|
88
|
-
requestTestMode(
|
|
91
|
+
requestTestMode(consumerCommand: string, producerCommand: string): void;
|
|
89
92
|
getNextCommandSequenceNumber(): number;
|
|
90
93
|
}
|