@vkontakte/calls-sdk 2.5.3-dev.fe8ad1c.0 → 2.6.2-dev.2b57aff.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 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(params: IAddMovieParams): Promise<{
450
+ export declare function addMovie(movieId: string): Promise<{
443
451
  movieId: string;
444
452
  streamType: string;
445
453
  }>;
@@ -503,11 +511,17 @@ export declare function getWaitingHall(pageMarker?: string | null, count?: numbe
503
511
  * @param demote Запретить вход
504
512
  */
505
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[]>;
506
516
  /**
507
517
  * Удаляет записи истории звонков
508
518
  *
509
519
  * @param recordIds Идентификаторы записей истории
510
520
  */
511
521
  export declare function removeHistoryRecords(recordIds: number[]): Promise<void>;
512
- 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
+ /**
523
+ * Версия SDK
524
+ */
525
+ export declare function version(): string;
526
+ 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
527
  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 } 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,7 +55,7 @@ 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: IAddMovieParams): Promise<SignalingMessage>;
58
+ abstract addMovie(data: any): Promise<SignalingMessage>;
59
59
  abstract updateMovie(data: any): Promise<SignalingMessage>;
60
60
  abstract removeMovie(data: any): Promise<SignalingMessage>;
61
61
  abstract startStream(data: any): 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(command: string): void;
90
+ requestTestMode(consumerCommand: string, producerCommand: string): void;
89
91
  getNextCommandSequenceNumber(): number;
90
92
  }