@tencentcloud/tuiroom-engine-js 4.1.2-beta.3 → 4.2.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/index.d.ts CHANGED
@@ -1667,6 +1667,15 @@ declare enum TUIBattleCode {
1667
1667
  kRoomExit = 4,
1668
1668
  kRetry = 5
1669
1669
  }
1670
+ /**
1671
+ * Result of requestBattle.
1672
+ */
1673
+ type TUIBattleRequestResult = {
1674
+ /** The unique ID of the battle session. */
1675
+ battleId: string;
1676
+ /** Per-invitee request result, keyed by userId. */
1677
+ result: Record<string, TUIBattleCode>;
1678
+ };
1670
1679
  /**
1671
1680
  * @since v3.3.0
1672
1681
  * **TUILiveBattleManager** 事件列表<br>
@@ -3046,7 +3055,7 @@ declare class TUILiveBattleManager {
3046
3055
  * @param {TUIBattleConfig} options.config
3047
3056
  * @param {Array<string>} options.userIdList
3048
3057
  * @param {number} options.timeOut
3049
- * @returns {Promise<void>}
3058
+ * @returns {Promise<TUIBattleRequestResult>}
3050
3059
  *
3051
3060
  * @example
3052
3061
  * const roomEngine = TUIRoomEngine.getInstance();
@@ -3061,7 +3070,7 @@ declare class TUILiveBattleManager {
3061
3070
  config: TUIBattleConfig;
3062
3071
  userIdList: Array<string>;
3063
3072
  timeout: number;
3064
- }): Promise<any>;
3073
+ }): Promise<TUIBattleRequestResult>;
3065
3074
  /**
3066
3075
  * 取消PK请求
3067
3076
  *
@@ -4903,4 +4912,4 @@ declare class TUIRoomEngine {
4903
4912
  }
4904
4913
 
4905
4914
  export { TRTCRole, TUIAudioQuality, TUIAudioRoute, TUIBattleCode, TUIBattleStoppedReason, TUICaptureSourceType, TUIChangeReason, TUICloudRecordPolicy, TUIConferenceCancelReason, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, TUIConferenceStatus, TUIConnectionCode, TUIDeviceStatus, TUIErrorCode, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveBattleManagerEvents, TUILiveConnectionManagerEvents, TUILiveGiftManagerEvents, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, TUILiveModifyFlag, TUILiveStatisticsModifyFlag, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, TUIMoveSeatPolicy, TUINetworkQuality, TUIRenderMode, TUIRequestAction, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, TUIRoomType, TUISeatMode, TUIUserInfoModifyFlag, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };
4906
- export type { GiftCategory, GiftInfo, StartLiveOptions, TUIAutoPlayCallbackInfo, TUIBattleConfig, TUIBattleInfo, TUIBattleUser, TUIConferenceInfo, TUIConferenceModifyInfo, TUIDeviceInfo, TUIEnterRoomOptions, TUIGiftCategory, TUIGiftInfo, TUIInvitation, TUILiveConnectionUser, TUILiveInfo, TUILiveListResult, TUILiveModifyInfo, TUILiveStatisticsData, TUILoginUserInfo, TUIMessage, TUINetwork, TUIRequest, TUIRequestCallback, TUIRoomInfo, TUISeatInfo, TUISeatLayout, TUISeatLockParams, TUISeatRegion, TUIUserInfo, TUIVideoEncoderParams };
4915
+ export type { GiftCategory, GiftInfo, StartLiveOptions, TUIAutoPlayCallbackInfo, TUIBattleConfig, TUIBattleInfo, TUIBattleRequestResult, TUIBattleUser, TUIConferenceInfo, TUIConferenceModifyInfo, TUIDeviceInfo, TUIEnterRoomOptions, TUIGiftCategory, TUIGiftInfo, TUIInvitation, TUILiveConnectionUser, TUILiveInfo, TUILiveListResult, TUILiveModifyInfo, TUILiveStatisticsData, TUILoginUserInfo, TUIMessage, TUINetwork, TUIRequest, TUIRequestCallback, TUIRoomInfo, TUISeatInfo, TUISeatLayout, TUISeatLockParams, TUISeatRegion, TUIUserInfo, TUIVideoEncoderParams };