@vkontakte/calls-sdk 2.8.3-dev.d418cb1.0 → 2.8.3

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
@@ -460,8 +460,9 @@ export declare function startConversation(payload?: string, requireAuthToJoin?:
460
460
  * @param speakerIds Список внешних ID пользователей, которые будут выступать в роли спикеров
461
461
  * @returns Токен комнаты
462
462
  */
463
- export declare function startAudienceConversation(payload: string | undefined, requireAuthToJoin: boolean | undefined, { onlyAdminCanShareMovie, }: {
463
+ export declare function startAudienceConversation(payload: string | undefined, requireAuthToJoin: boolean | undefined, { onlyAdminCanShareMovie, audioOnly, }: {
464
464
  onlyAdminCanShareMovie?: boolean | undefined;
465
+ audioOnly?: boolean | undefined;
465
466
  } | undefined, speakerIds: ExternalUserId[]): Promise<string>;
466
467
  /**
467
468
  * Создать токен комнаты для подключения по ссылке к существующему звонку
@@ -651,6 +652,7 @@ export declare function acceptPromotion(reject?: boolean): Promise<void>;
651
652
  export declare function getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<ExternalParticipantListChunk>;
652
653
  export declare function getParticipants(parameters: IGetParticipantsParameters): Promise<ExternalParticipant[]>;
653
654
  export declare function feedback(key: string): Promise<SignalingMessage>;
655
+ export declare function userFeedbackStats(userResponse: number, reason?: string, groupCallUsersCount?: number): void;
654
656
  export declare function enableFeatureForRoles(feature: ConversationFeature, roles: UserRole[]): Promise<void>;
655
657
  /**
656
658
  * Удаляет записи истории звонков
@@ -26,6 +26,7 @@ export default abstract class BaseApi {
26
26
  abstract createConversation(conversationId: string, payload?: string, requireAuthToJoin?: boolean, createConversationParameters?: {
27
27
  onlyAdminCanShareMovie?: boolean;
28
28
  audienceMode?: boolean;
29
+ audioOnly?: boolean;
29
30
  }, speakerIds?: OkUserId[]): Promise<ConversationResponse>;
30
31
  abstract startConversation(conversationId: string, ids?: OkUserId[], type?: CallType, isVideo?: boolean, payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, createConversationParameters?: {
31
32
  onlyAdminCanShareMovie?: boolean;
@@ -50,6 +51,7 @@ export default abstract class BaseApi {
50
51
  getCachedOkIdByExternalId(externalId: ExternalId): ParticipantId | null;
51
52
  cacheExternalId(participantId: CompositeUserId, externalId: ExternalParticipantId): void;
52
53
  hangupConversation(conversationId: string): void;
54
+ sendUserFeedbackStats(conversationId: string, userResponse: number, reason?: string, groupCallUsersCount?: number): void;
53
55
  removeHistoryRecords(recordIds: number[]): Promise<void>;
54
56
  cleanup(): void;
55
57
  }
@@ -43,7 +43,7 @@ export default abstract class BaseSignaling extends EventEmitter {
43
43
  abstract close(): void;
44
44
  abstract hangup(reason: string): Promise<SignalingMessage | void>;
45
45
  abstract acceptCall(mediaSettings: MediaSettings): Promise<SignalingMessage>;
46
- abstract sendSdp(participantId: ParticipantId, sdp: RTCSessionDescription): Promise<SignalingMessage>;
46
+ abstract sendSdp(participantId: ParticipantId, sdp: RTCSessionDescriptionInit): Promise<SignalingMessage>;
47
47
  abstract sendCandidate(participantId: ParticipantId, candidate: RTCIceCandidate): Promise<SignalingMessage>;
48
48
  abstract changeMediaSettings(mediaSettings: MediaSettings): Promise<SignalingMessage>;
49
49
  abstract changeParticipantState(state: {
@@ -93,7 +93,7 @@ export default abstract class BaseSignaling extends EventEmitter {
93
93
  }): Promise<SignalingMessage>;
94
94
  abstract getWaitingHall(fromId: WaitingParticipantId | null, count?: number, backward?: boolean): Promise<SignalingMessage>;
95
95
  abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
96
- abstract requestPromotion(demote: boolean): Promise<SignalingMessage>;
96
+ abstract requestPromotion(unrequest: boolean): Promise<SignalingMessage>;
97
97
  abstract acceptPromotion(reject: boolean): Promise<SignalingMessage>;
98
98
  abstract feedback(key: string): Promise<SignalingMessage>;
99
99
  abstract getHandQueue(): Promise<SignalingMessage>;