@vkontakte/calls-sdk 2.8.2-dev.898841a.0 → 2.8.2-dev.968ce3b.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
@@ -225,7 +225,7 @@ export declare function init(params: Partial<ParamsObject>): Promise<void>;
225
225
  * @param onlyAdminCanShareMovie Только администратор может включать совметсный просмотр
226
226
  */
227
227
  export declare function callTo(externalId?: string | ExternalId | string[] | ExternalId[], mediaOptions?: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean): Promise<ConversationData>;
228
- export declare function callInternal(ids: OkUserId[], type: CallType, mediaOptions: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean): Promise<ConversationData>;
228
+ export declare function callInternal(ids: OkUserId[], type: CallType | undefined, mediaOptions: MediaOption[], payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, onlyAdminCanShareMovie?: boolean): Promise<ConversationData>;
229
229
  /**
230
230
  * Обработать пуш о входящем звонке
231
231
  *
@@ -444,7 +444,7 @@ export declare function customDataInternal(data: JSONObject, uid?: OkUserId | nu
444
444
  * @returns Токен комнаты
445
445
  */
446
446
  export declare function startConversation(payload?: string, requireAuthToJoin?: boolean, { onlyAdminCanShareMovie }?: {
447
- onlyAdminCanShareMovie?: boolean;
447
+ onlyAdminCanShareMovie?: boolean | undefined;
448
448
  }): Promise<string>;
449
449
  /**
450
450
  * Создать токен комнаты для подключения по ссылке к существующему звонку
@@ -483,12 +483,12 @@ export declare function forceRelayPolicy(enabled: boolean): void;
483
483
  * @param groupId
484
484
  * @param roomId
485
485
  */
486
- export declare function startStream(isRecord?: boolean, name?: string | null, movieId?: string | null, privacy?: 'PUBLIC' | 'FRIENDS' | 'DIRECT_LINK', groupId?: string | null, roomId?: number | null): Promise<never>;
486
+ export declare function startStream(isRecord?: boolean, name?: string | null, movieId?: string | null, privacy?: 'PUBLIC' | 'FRIENDS' | 'DIRECT_LINK', groupId?: string | null, roomId?: number | null): Promise<undefined>;
487
487
  /**
488
488
  * Завершить трансляцию звонка
489
489
  * @param roomId
490
490
  */
491
- export declare function stopStream(roomId?: number | null): Promise<never>;
491
+ export declare function stopStream(roomId?: number | null): Promise<undefined>;
492
492
  /**
493
493
  * Устанавливает роль участника в запись звонка
494
494
  * Если хотя бы у одного участника звонка выставлена роль, то в записи звонка будут
@@ -8,7 +8,7 @@ export type LogItem = {
8
8
  count?: number;
9
9
  custom: {
10
10
  vcid: ConversationData['id'] | null;
11
- [k: string]: string | number;
11
+ [k: string]: string | number | null;
12
12
  };
13
13
  data?: string[];
14
14
  groups?: string[];
@@ -110,6 +110,6 @@ export default abstract class BaseSignaling extends EventEmitter {
110
110
  setConversationId(conversationId: string): void;
111
111
  readyToSend(isReady?: boolean): void;
112
112
  cleanup(): void;
113
- requestTestMode(consumerCommand: string, producerCommand: string): void;
113
+ requestTestMode(consumerCommand: string, producerCommand: string | null): void;
114
114
  getNextCommandSequenceNumber(): number;
115
115
  }