@tencentcloud/tuiroom-engine-js 3.6.0 → 3.6.1-beta.1

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
@@ -1,5 +1,5 @@
1
- import { ChatSDK } from '@tencentcloud/lite-chat';
2
- export { default as TIM, default as TencentCloudChat } from '@tencentcloud/lite-chat';
1
+ import { ChatSDK } from '@tencentcloud/chat';
2
+ export { default as TIM, default as TencentCloudChat } from '@tencentcloud/chat';
3
3
  import TRTCCloud, { TRTCScreenCaptureSourceInfo, TRTCDeviceInfo } from 'trtc-cloud-js-sdk';
4
4
  export { Rect, default as TRTCCloud, TRTCDeviceInfo, TRTCDeviceState, TRTCDeviceType, TRTCLogLevel, TRTCMediaMixingEncParam, TRTCMediaMixingEvent, TRTCMediaSource, TRTCMediaSourceType, TRTCScreenCaptureSourceInfo, TRTCScreenCaptureSourceType, TRTCVideoEncParam, TRTCVideoFillMode, TRTCVideoMirrorType, TRTCVideoResolution, TRTCVideoResolutionMode, TRTCVideoRotation, TRTCVideoStreamType, TRTCVolumeInfo } from 'trtc-cloud-js-sdk';
5
5
 
@@ -254,10 +254,7 @@ declare enum TUIRequestAction {
254
254
  kRequestRemoteUserOnSeat = 5,
255
255
  kApplyToAdminToOpenLocalCamera = 6,
256
256
  kApplyToAdminToOpenLocalMicrophone = 7,
257
- kApplyToAdminToOpenLocalScreenShare = 8,
258
- kCloseRemoteCamera = 9,
259
- kCloseRemoteMicrophone = 10,
260
- kCloseRemoteScreenShare = 11
257
+ kApplyToAdminToOpenLocalScreenShare = 8
261
258
  }
262
259
  declare enum TUIRequestCallbackType {
263
260
  kRequestAccepted = 0,
@@ -284,18 +281,12 @@ type TUIUserInfo = {
284
281
  nameCard: string;
285
282
  avatarUrl: string;
286
283
  userRole: TUIRole;
287
- level: number;
288
284
  hasAudioStream: boolean;
289
285
  hasVideoStream: boolean;
290
286
  hasScreenStream: boolean;
291
287
  isMessageDisabled: boolean;
292
288
  roomCustomInfo: Record<string, any>;
293
289
  };
294
- declare enum TUIUserInfoModifyFlag {
295
- kNone = 0,
296
- kUserRole = 1,
297
- kNameCard = 2
298
- }
299
290
  type TUISeatInfo = {
300
291
  index: number;
301
292
  userId: string;
@@ -320,8 +311,6 @@ type TUIRequest = {
320
311
  nameCard: string;
321
312
  avatarUrl: string;
322
313
  content: string;
323
- fromUser: TUIUserInfo;
324
- toUser: TUIUserInfo;
325
314
  };
326
315
  type TUIRequestCallback = {
327
316
  requestCallbackType: TUIRequestCallbackType;
@@ -629,11 +618,10 @@ declare enum TUIRoomEvents {
629
618
  * @event TUIRoomEvents#onUserInfoChanged
630
619
  * @param {object} options
631
620
  * @param {TUIUserInfo} options.userInfo 用户信息
632
- * @param {TUIUserInfoModifyFlag} options.modifyFlag 用户信息变更标记位,该字段自 v3.5.1 开始支持
633
621
  * @example
634
622
  * const roomEngine = new TUIRoomEngine();
635
- * roomEngine.on(TUIRoomEvents.onUserInfoChanged, ({ userInfo, modifyFlag }) => {
636
- * console.log('roomEngine.onUserInfoChanged', userInfo, modifyFlag);
623
+ * roomEngine.on(TUIRoomEvents.onUserInfoChanged, ({ userInfo }) => {
624
+ * console.log('roomEngine.onUserInfoChanged', userInfo);
637
625
  * });
638
626
  */
639
627
  onUserInfoChanged = "onUserInfoChanged",
@@ -973,7 +961,6 @@ declare enum TUIConferenceListManagerEvents {
973
961
  onConferenceWillStart = "onConferenceWillStart",
974
962
  /**
975
963
  * @description 会议取消回调
976
- * @deprecated 该接口自 v3.5.0 版本废弃,请使用 onConferenceDidCancelled'.
977
964
  *
978
965
  * @param {object} options
979
966
  * @param {string} options.roomId 会议Id,即房间 roomId 。
@@ -988,22 +975,6 @@ declare enum TUIConferenceListManagerEvents {
988
975
  * })
989
976
  */
990
977
  onConferenceCancelled = "onConferenceCancelled",
991
- /**
992
- * @description 会议取消回调 代替 onConferenceCancelled
993
- *
994
- * @param {object} options
995
- * @param {TUIConferenceInfo} options.conferenceInfo 会议信息。
996
- * @param {TUIConferenceCancelReason} options.reason 会议取消原因。
997
- * @param {TUIUserInfo} options.operateUser 取消会议操作者信息。
998
- *
999
- * @example
1000
- * const roomEngine = new TUIRoomEngine();
1001
- * const conferenceListManager = roomEngine.getConferenceListManager();
1002
- * conferenceListManager.on(TUIConferenceListManagerEvents.onConferenceDidCancelled, ({ conferenceInfo, reason, operateUser }) => {
1003
- * console.log('conferenceListManager.onConferenceDidCancelled', conferenceInfo, reason, operateUser);
1004
- * })
1005
- */
1006
- onConferenceDidCancelled = "onConferenceDidCancelled",
1007
978
  /**
1008
979
  * @description 会议信息变更回调
1009
980
  *
@@ -1020,7 +991,6 @@ declare enum TUIConferenceListManagerEvents {
1020
991
  onConferenceInfoChanged = "onConferenceInfoChanged",
1021
992
  /**
1022
993
  * @description 参会人员变更回调
1023
- * @deprecated 该接口自 v3.5.0 版本废弃,请使用 onScheduleAttendeesUpdated'.
1024
994
  *
1025
995
  * @param {object} options
1026
996
  * @param {string} options.roomId 会议Id,即房间roomId。
@@ -1035,25 +1005,8 @@ declare enum TUIConferenceListManagerEvents {
1035
1005
  * })
1036
1006
  */
1037
1007
  onScheduleAttendeesChanged = "onScheduleAttendeesChanged",
1038
- /**
1039
- * @description 参会人员变更回调 代替 onScheduleAttendeesChanged
1040
- *
1041
- * @param {object} options
1042
- * @param {TUIConferenceInfo} options.conferenceInfo 会议信息。
1043
- * @param {Array<TUIUserInfo>} options.leftUsers 离开成员列表。
1044
- * @param {Array<TUIUserInfo>} options.joinedUsers 新加入成员列表。
1045
- *
1046
- * @example
1047
- * const roomEngine = new TUIRoomEngine();
1048
- * const conferenceListManager = roomEngine.getConferenceListManager();
1049
- * conferenceListManager.on(TUIConferenceListManagerEvents.onScheduleAttendeesUpdated, ({ conferenceInfo, leftUsers, joinedUsers }) => {
1050
- * console.log('conferenceListManager.onScheduleAttendeesUpdated', conferenceInfo, leftUsers, joinedUsers);
1051
- * })
1052
- */
1053
- onScheduleAttendeesUpdated = "onScheduleAttendeesUpdated",
1054
1008
  /**
1055
1009
  * @description 会议状态变更回调
1056
- * @deprecated 该接口自 v3.5.0 版本废弃,请使用 onConferenceStatusUpdated'.
1057
1010
  *
1058
1011
  * @param {object} options
1059
1012
  * @param {string} options.roomId 会议Id,即房间roomId。
@@ -1066,22 +1019,7 @@ declare enum TUIConferenceListManagerEvents {
1066
1019
  * console.log('conferenceListManager.onConferenceStatusChanged', roomId, status );
1067
1020
  * })
1068
1021
  */
1069
- onConferenceStatusChanged = "onConferenceStatusChanged",
1070
- /**
1071
- * @description 会议状态变更回调
1072
- *
1073
- * @param {object} options
1074
- * @param {TUIConferenceInfo} options.conferenceInfo 会议Id,即房间roomId。
1075
- * @param {TUIConferenceStatus} options.status 会议状态。
1076
- *
1077
- * @example
1078
- * const roomEngine = new TUIRoomEngine();
1079
- * const conferenceListManager = roomEngine.getConferenceListManager();
1080
- * conferenceListManager.on(TUIConferenceListManagerEvents.onConferenceStatusUpdated, ({ conferenceInfo, status }) => {
1081
- * console.log('conferenceListManager.onConferenceStatusUpdated', conferenceInfo, status );
1082
- * })
1083
- */
1084
- onConferenceStatusUpdated = "onConferenceStatusUpdated"
1022
+ onConferenceStatusChanged = "onConferenceStatusChanged"
1085
1023
  }
1086
1024
  /**
1087
1025
  * @since v2.6.0
@@ -1217,15 +1155,15 @@ declare enum TUIConferenceInvitationManagerEvents {
1217
1155
  * @default 'onInvitationAdded'
1218
1156
  * @event TUIConferenceInvitationManagerEvents#onInvitationAdded
1219
1157
  * @param {object} options
1220
- * @param {string} options.roomId 会议信息。
1158
+ * @param {TUIRoomInfo} options.roomInfo 会议信息。
1221
1159
  * @param {TUIInvitation} options.invitation 邀请信息。
1222
1160
  *
1223
1161
  *
1224
1162
  * @example
1225
1163
  * const roomEngine = new TUIRoomEngine();
1226
1164
  * const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();
1227
- * conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationAdded, ({ roomId, invitation }) => {
1228
- * console.log('conferenceInvitationManager.onInvitationAdded', roomId, invitation);
1165
+ * conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationAdded, ({ roomInfo, invitation }) => {
1166
+ * console.log('conferenceInvitationManager.onInvitationAdded', roomInfo, invitation);
1229
1167
  * })
1230
1168
  */
1231
1169
  onInvitationAdded = "onInvitationAdded",
@@ -1234,15 +1172,15 @@ declare enum TUIConferenceInvitationManagerEvents {
1234
1172
  * @default 'onInvitationRemoved'
1235
1173
  * @event TUIConferenceInvitationManagerEvents#onInvitationRemoved
1236
1174
  * @param {object} options
1237
- * @param {string} options.roomId 会议信息。
1175
+ * @param {TUIRoomInfo} options.roomInfo 会议信息。
1238
1176
  * @param {TUIInvitation} options.invitation 邀请信息。
1239
1177
  *
1240
1178
  *
1241
1179
  * @example
1242
1180
  * const roomEngine = new TUIRoomEngine();
1243
1181
  * const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();
1244
- * conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationRemoved, ({ roomId, invitation }) => {
1245
- * console.log('conferenceInvitationManager.onInvitationRemoved', roomId, invitation);
1182
+ * conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationRemoved, ({ roomInfo, invitation }) => {
1183
+ * console.log('conferenceInvitationManager.onInvitationRemoved', roomInfo, invitation);
1246
1184
  * })
1247
1185
  */
1248
1186
  onInvitationRemoved = "onInvitationRemoved",
@@ -1251,15 +1189,15 @@ declare enum TUIConferenceInvitationManagerEvents {
1251
1189
  * @default 'onInvitationStatusChanged'
1252
1190
  * @event TUIConferenceInvitationManagerEvents#onInvitationStatusChanged
1253
1191
  * @param {object} options
1254
- * @param {string} options.roomId 会议信息。
1192
+ * @param {TUIRoomInfo} options.roomInfo 会议信息。
1255
1193
  * @param {TUIInvitation} options.invitation 邀请信息。
1256
1194
  *
1257
1195
  *
1258
1196
  * @example
1259
1197
  * const roomEngine = new TUIRoomEngine();
1260
1198
  * const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();
1261
- * conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationStatusChanged, ({ roomId, invitation }) => {
1262
- * console.log('conferenceInvitationManager.onInvitationStatusChanged', roomId, invitation);
1199
+ * conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationStatusChanged, ({ roomInfo, invitation }) => {
1200
+ * console.log('conferenceInvitationManager.onInvitationStatusChanged', roomInfo, invitation);
1263
1201
  * })
1264
1202
  */
1265
1203
  onInvitationStatusChanged = "onInvitationStatusChanged"
@@ -1836,7 +1774,6 @@ type GiftInfo = {
1836
1774
  coins: number;
1837
1775
  extensionInfo: Record<string, string>;
1838
1776
  };
1839
- type TUIGiftInfo = GiftInfo;
1840
1777
  /**
1841
1778
  * 礼物分类信息
1842
1779
  */
@@ -1847,7 +1784,6 @@ type GiftCategory = {
1847
1784
  extensionInfo: Record<string, string>;
1848
1785
  giftList: GiftInfo[];
1849
1786
  };
1850
- type TUIGiftCategory = GiftCategory;
1851
1787
  declare enum TUILiveGiftManagerEvents {
1852
1788
  /**
1853
1789
  * @description 接收到礼物数量发送变化监听事件
@@ -2020,7 +1956,7 @@ declare class TUIRoomDeviceManager {
2020
1956
  * await roomEngine.startCameraDeviceTest({ view: 'test-preview' });
2021
1957
  */
2022
1958
  startCameraDeviceTest(options: {
2023
- view: string | HTMLDivElement;
1959
+ view: string;
2024
1960
  }): Promise<void>;
2025
1961
  /**
2026
1962
  * 停止摄像头测试
@@ -2228,10 +2164,7 @@ declare class TUIConferenceListManager {
2228
2164
  statusArray?: TUIConferenceStatus[];
2229
2165
  cursor: string;
2230
2166
  count: number;
2231
- }): Promise<{
2232
- conferenceList: TUIConferenceInfo[];
2233
- cursor: string;
2234
- }>;
2167
+ }): Promise<Array<TUIConferenceInfo>>;
2235
2168
  /**
2236
2169
  * 获取预定会议邀请成员列表
2237
2170
  *
@@ -2260,11 +2193,7 @@ declare class TUIConferenceListManager {
2260
2193
  roomId: string;
2261
2194
  cursor: string;
2262
2195
  count: number;
2263
- }): Promise<{
2264
- attendeeList: TUIUserInfo[];
2265
- cursor: string;
2266
- totalCount: number;
2267
- }>;
2196
+ }): Promise<Array<TUIUserInfo>>;
2268
2197
  /**
2269
2198
  * 添加成员至邀请列表
2270
2199
  *
@@ -2363,7 +2292,7 @@ declare class TUIConferenceInvitationManager {
2363
2292
  * @param {string} options.userIdList 成员 userId 列表。
2364
2293
  * @param {number} options.timeout 超时时间。若 timeout 设置为 0s ,则无超时时间
2365
2294
  * @param {string} options.extensionInfo 自定义扩展信息
2366
- * @returns {Promise<Map<string, TUIInvitationCode>>}
2295
+ * @returns {Promise<void>}
2367
2296
  *
2368
2297
  * @example
2369
2298
  * const roomEngine = new TUIRoomEngine();
@@ -2379,7 +2308,7 @@ declare class TUIConferenceInvitationManager {
2379
2308
  userIdList: string[];
2380
2309
  timeout: number;
2381
2310
  extensionInfo?: string;
2382
- }): Promise<Map<string, TUIInvitationCode>>;
2311
+ }): Promise<void>;
2383
2312
  /**
2384
2313
  * 取消呼叫
2385
2314
  *
@@ -2466,10 +2395,7 @@ declare class TUIConferenceInvitationManager {
2466
2395
  roomId: string;
2467
2396
  cursor: string;
2468
2397
  count: number;
2469
- }): Promise<{
2470
- invitationList: TUIInvitation[];
2471
- cursor: string;
2472
- }>;
2398
+ }): Promise<Array<TUIInvitation>>;
2473
2399
  /**
2474
2400
  * 监听 conferenceInvitationManager 的事件
2475
2401
  * @param event TUIConferenceListManagerEvents
@@ -4834,5 +4760,4 @@ declare class TUIRoomEngine {
4834
4760
  private static handleSetFramework;
4835
4761
  }
4836
4762
 
4837
- export { TRTCRole, TUIAudioQuality, TUIAudioRoute, TUIBattleCode, TUIBattleStoppedReason, TUICaptureSourceType, TUIChangeReason, 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 };
4838
- 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 };
4763
+ export { type GiftCategory, type GiftInfo, type StartLiveOptions, TRTCRole, TUIAudioQuality, TUIAudioRoute, type TUIAutoPlayCallbackInfo, TUIBattleCode, type TUIBattleConfig, type TUIBattleInfo, TUIBattleStoppedReason, type TUIBattleUser, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, type TUIConferenceInfo, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, type TUIConferenceModifyInfo, TUIConferenceStatus, TUIConnectionCode, type TUIDeviceInfo, TUIDeviceStatus, type TUIEnterRoomOptions, TUIErrorCode, type TUIInvitation, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveBattleManagerEvents, TUILiveConnectionManagerEvents, type TUILiveConnectionUser, TUILiveGiftManagerEvents, type TUILiveInfo, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, type TUILiveListResult, TUILiveModifyFlag, type TUILiveModifyInfo, type TUILiveStatisticsData, TUILiveStatisticsModifyFlag, type TUILoginUserInfo, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, type TUIMessage, TUIMoveSeatPolicy, type TUINetwork, TUINetworkQuality, TUIRenderMode, type TUIRequest, TUIRequestAction, type TUIRequestCallback, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, type TUIRoomInfo, TUIRoomType, type TUISeatInfo, type TUISeatLayout, type TUISeatLockParams, TUISeatMode, type TUISeatRegion, type TUIUserInfo, type TUIVideoEncoderParams, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };