@vkontakte/calls-sdk 2.8.5-dev.b3fbca56.0 → 2.8.5-dev.bafa170e.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
@@ -672,7 +672,7 @@ export declare function getAudienceModeHands(): Promise<AudienceModeHandsRespons
672
672
  * @param externalId Внешний ID пользователя
673
673
  * @param demote Запретить вход/отобрать права спикера
674
674
  */
675
- export declare function promoteParticipant(externalId: ExternalId, demote?: boolean): Promise<void>;
675
+ export declare function promoteParticipant(externalId?: ExternalId, demote?: boolean): Promise<void>;
676
676
  /**
677
677
  * Запросить/отозвать запрос на получение права стать спикером в комнате в
678
678
  * режиме Audience
@@ -26,12 +26,19 @@ import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
26
26
  * Параметры добавления пользователя в звонок
27
27
  */
28
28
  export interface AddParticipantParams {
29
+ /**
30
+ * @deprecated
31
+ */
29
32
  showChatHistory?: boolean;
30
33
  ttChat?: boolean;
31
34
  /**
32
35
  * Удалить юзера из бан-листа. Доступно только админу звонка
33
36
  */
34
37
  unban?: boolean;
38
+ /**
39
+ * JSON.stringify({show_chat_history: boolean})
40
+ */
41
+ payload?: string;
35
42
  }
36
43
  /**
37
44
  * Should trigger SignalingEvent.NOTIFICATION on notification message and SignalingEvent.FAILED on error
@@ -96,7 +103,7 @@ export default abstract class BaseSignaling extends EventEmitter {
96
103
  [key in ConversationOption]?: boolean;
97
104
  }): Promise<SignalingMessage>;
98
105
  abstract getWaitingHall(fromId: SignalingMessage.WaitingParticipantId | null, count?: number, backward?: boolean): Promise<SignalingMessage>;
99
- abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
106
+ abstract promoteParticipant(participantId?: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
100
107
  abstract requestPromotion(unrequest: boolean): Promise<SignalingMessage>;
101
108
  abstract acceptPromotion(reject: boolean): Promise<SignalingMessage>;
102
109
  abstract feedback(key: string): Promise<SignalingMessage>;