tuikit-atomicx-vue3 4.5.3 → 4.5.4

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.
Files changed (63) hide show
  1. package/dist/baseComp/Input/InputH5.vue.d.ts +1 -1
  2. package/dist/baseComp/Input/InputPC.vue.d.ts +1 -1
  3. package/dist/baseComp/Input/InputWX.vue.d.ts +1 -1
  4. package/dist/baseComp/Input/index.d.ts +15 -15
  5. package/dist/components/BarrageInput/TextEditor/TextEditor.vue.d.ts +1 -1
  6. package/dist/components/BarrageInput/index.d.ts +6 -6
  7. package/dist/components/ChatSetting/SettingItem/SettingItem.vue.d.ts +2 -2
  8. package/dist/components/ContactList/index.d.ts +6 -6
  9. package/dist/components/ConversationList/ConversationList.vue.d.ts +190 -190
  10. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +82 -82
  11. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +16 -16
  12. package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +36 -36
  13. package/dist/components/ConversationList/index.d.ts +416 -416
  14. package/dist/components/LiveView/PlayerControl/PlayerControl.js +145 -128
  15. package/dist/components/LiveView/PlayerControl/PlayerControlState.d.ts +6 -4
  16. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +148 -122
  17. package/dist/components/LiveView/PlayerControl/utils/domHelpers.d.ts +2 -1
  18. package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +7 -6
  19. package/dist/components/LiveView/i18n/en-US/index.d.ts +3 -0
  20. package/dist/components/LiveView/i18n/en-US/index.js +4 -1
  21. package/dist/components/LiveView/i18n/zh-CN/index.d.ts +3 -0
  22. package/dist/components/LiveView/i18n/zh-CN/index.js +4 -1
  23. package/dist/components/LiveView/index.js +78 -78
  24. package/dist/components/MessageInput/MessageInput.vue.d.ts +1 -1
  25. package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +1 -1
  26. package/dist/components/MessageInput/index.d.ts +30 -30
  27. package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.d.ts +10 -2
  28. package/dist/components/Search/Search.vue.d.ts +12 -12
  29. package/dist/components/Search/index.d.ts +18 -18
  30. package/dist/components/StreamView/Layout/CustomLayout.vue.d.ts +2 -1
  31. package/dist/components/StreamView/Layout/FloatLayout.vue.d.ts +2 -1
  32. package/dist/components/StreamView/Layout/GridLayout.vue.d.ts +2 -1
  33. package/dist/components/StreamView/Layout/MeetingLayout.vue.d.ts +1 -1
  34. package/dist/components/StreamView/common/StreamList/index.vue.d.ts +1 -1
  35. package/dist/components/StreamView/common/StreamRegion/StreamRegionPC.vue.d.ts +2 -2
  36. package/dist/components/StreamView/index.d.ts +1 -1
  37. package/dist/components/StreamView/index.vue.d.ts +1 -1
  38. package/dist/hooks/useRoomEngine.d.ts +2 -2
  39. package/dist/hooks/useUserActions/index.d.ts +18 -2
  40. package/dist/hooks/useUserActions/useChangeNameCardAction/index.d.ts +9 -1
  41. package/dist/hooks/useUserActions/useKickUserAction.d.ts +9 -1
  42. package/dist/hooks/useUserActions/useTransferOwnerAction.d.ts +9 -1
  43. package/dist/hooks/useUserActions/useVideoAction.d.ts +9 -1
  44. package/dist/states/BarrageState/BarrageState.d.ts +2 -2
  45. package/dist/states/BattleState/BattleState.d.ts +5 -5
  46. package/dist/states/CoGuestState.d.ts +1 -1
  47. package/dist/states/LiveAudienceState.d.ts +4 -4
  48. package/dist/states/LiveListState/LiveListState.d.ts +2 -2
  49. package/dist/states/LiveSeatState/index.d.ts +6 -6
  50. package/dist/states/LiveSeatState/seatManager.d.ts +6 -6
  51. package/dist/states/SeatStore.d.ts +148 -16
  52. package/dist/states/UserState/userManager.d.ts +1 -1
  53. package/dist/styles/index.css +1 -1
  54. package/dist/subEntry/chat/chat.d.ts +457 -457
  55. package/dist/subEntry/live/server.d.ts +1 -1
  56. package/dist/subEntry/room/server.d.ts +1 -1
  57. package/package.json +3 -2
  58. package/src/components/LiveView/PlayerControl/PlayerControl.vue +39 -15
  59. package/src/components/LiveView/PlayerControl/PlayerControlState.ts +61 -18
  60. package/src/components/LiveView/PlayerControl/utils/domHelpers.ts +4 -4
  61. package/src/components/LiveView/i18n/en-US/index.ts +3 -0
  62. package/src/components/LiveView/i18n/zh-CN/index.ts +3 -0
  63. package/src/components/LiveView/index.vue +7 -3
@@ -1,3 +1,4 @@
1
+ import { TUIVideoStreamType } from '@tencentcloud/tuiroom-engine-js';
1
2
  import { UserInfo } from '../../../types';
2
3
 
3
4
  interface Props {
@@ -8,7 +9,7 @@ interface Props {
8
9
  declare function __VLS_template(): {
9
10
  streamViewUI?(_: {
10
11
  userInfo: UserInfo;
11
- streamType: any;
12
+ streamType: TUIVideoStreamType;
12
13
  }): any;
13
14
  };
14
15
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
@@ -1,9 +1,10 @@
1
+ import { TUIVideoStreamType } from '@tencentcloud/tuiroom-engine-js';
1
2
  import { UserInfo } from '../../../types';
2
3
 
3
4
  declare function __VLS_template(): {
4
5
  streamViewUI?(_: {
5
6
  userInfo: UserInfo;
6
- streamType: any;
7
+ streamType: TUIVideoStreamType;
7
8
  }): any;
8
9
  };
9
10
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -1,3 +1,4 @@
1
+ import { TUIVideoStreamType } from '@tencentcloud/tuiroom-engine-js';
1
2
  import { UserInfo } from '../../../types';
2
3
 
3
4
  interface Props {
@@ -8,7 +9,7 @@ interface Props {
8
9
  declare function __VLS_template(): {
9
10
  streamViewUI?(_: {
10
11
  userInfo: UserInfo;
11
- streamType: any;
12
+ streamType: TUIVideoStreamType;
12
13
  }): any;
13
14
  };
14
15
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
@@ -13,7 +13,7 @@ interface Props {
13
13
  declare function __VLS_template(): {
14
14
  streamViewUI?(_: {
15
15
  userInfo: UserInfo;
16
- streamType: any;
16
+ streamType: TUIVideoStreamType;
17
17
  }): any;
18
18
  };
19
19
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
@@ -16,7 +16,7 @@ interface Props {
16
16
  declare function __VLS_template(): {
17
17
  streamViewUI?(_: {
18
18
  userInfo: UserInfo;
19
- streamType: any;
19
+ streamType: import('@tencentcloud/tuiroom-engine-js').TUIVideoStreamType;
20
20
  }): any;
21
21
  };
22
22
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
@@ -13,11 +13,11 @@ interface Props {
13
13
  declare function __VLS_template(): {
14
14
  "stream-cover"?(_: {
15
15
  userInfo: UserInfo;
16
- streamType: any;
16
+ streamType: TUIVideoStreamType;
17
17
  }): any;
18
18
  streamViewUI?(_: {
19
19
  userInfo: UserInfo;
20
- streamType: any;
20
+ streamType: TUIVideoStreamType;
21
21
  }): any;
22
22
  };
23
23
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -83,7 +83,7 @@ declare const StreamView: {
83
83
  $slots: {
84
84
  streamViewUI?(_: {
85
85
  userInfo: import('../..').UserInfo;
86
- streamType: any;
86
+ streamType: import('@tencentcloud/tuiroom-engine-js').TUIVideoStreamType;
87
87
  }): any;
88
88
  };
89
89
  });
@@ -9,7 +9,7 @@ interface Props {
9
9
  declare function __VLS_template(): {
10
10
  streamViewUI?(_: {
11
11
  userInfo: UserInfo;
12
- streamType: any;
12
+ streamType: import('@tencentcloud/tuiroom-engine-js').TUIVideoStreamType;
13
13
  }): any;
14
14
  };
15
15
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
@@ -1,7 +1,7 @@
1
- import { TUIRoomDeviceManager } from '@tencentcloud/tuiroom-engine-js';
1
+ import { default as TUIRoomEngine, TUIRoomDeviceManager } from '@tencentcloud/tuiroom-engine-js';
2
2
 
3
3
  export declare function useDeviceManager(): {
4
4
  instance: TUIRoomDeviceManager | null | undefined;
5
5
  };
6
- export declare function useRoomEngine(): Record<string, any>;
6
+ export declare function useRoomEngine(): Record<string, TUIRoomEngine | null>;
7
7
  export default useRoomEngine;
@@ -6,7 +6,15 @@ export declare function useUserActions(option: {
6
6
  }): {
7
7
  userActions: import('vue').ComputedRef<(import('../..').ActionType<UserAction> | {
8
8
  key: UserAction;
9
- icon: any;
9
+ icon: import('vue').Raw<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
10
+ size: {
11
+ type: import('vue').PropType<string | number>;
12
+ };
13
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
+ size: {
15
+ type: import('vue').PropType<string | number>;
16
+ };
17
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
10
18
  label: any;
11
19
  handler: () => void;
12
20
  })[]>;
@@ -17,7 +25,15 @@ export declare function useUserActions(option: {
17
25
  inviteStageList: import('vue').ComputedRef<import('../..').ActionType<UserAction>[]>;
18
26
  onStageControlList: import('vue').ComputedRef<(import('../..').ActionType<UserAction> | {
19
27
  key: UserAction;
20
- icon: any;
28
+ icon: import('vue').Raw<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
29
+ size: {
30
+ type: import('vue').PropType<string | number>;
31
+ };
32
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
33
+ size: {
34
+ type: import('vue').PropType<string | number>;
35
+ };
36
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
21
37
  label: any;
22
38
  handler: () => Promise<void>;
23
39
  })[]>;
@@ -2,7 +2,15 @@ import { UserAction, UserInfo } from '../../../types';
2
2
 
3
3
  export default function useNameCardAction(userInfo: UserInfo): {
4
4
  key: UserAction;
5
- icon: any;
5
+ icon: import('vue').Raw<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ size: {
7
+ type: import('vue').PropType<string | number>;
8
+ };
9
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ size: {
11
+ type: import('vue').PropType<string | number>;
12
+ };
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
6
14
  label: any;
7
15
  handler: () => void;
8
16
  };
@@ -2,7 +2,15 @@ import { UserInfo, UserAction } from '../../types';
2
2
 
3
3
  export default function useKickUserAction(userInfo: UserInfo): {
4
4
  key: UserAction;
5
- icon: any;
5
+ icon: import('vue').Raw<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ size: {
7
+ type: import('vue').PropType<string | number>;
8
+ };
9
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ size: {
11
+ type: import('vue').PropType<string | number>;
12
+ };
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
6
14
  label: any;
7
15
  handler: () => Promise<void>;
8
16
  };
@@ -2,7 +2,15 @@ import { UserAction, UserInfo } from '../../types';
2
2
 
3
3
  export default function useTransferOwnerAction(userInfo: UserInfo): {
4
4
  key: UserAction;
5
- icon: any;
5
+ icon: import('vue').Raw<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ size: {
7
+ type: import('vue').PropType<string | number>;
8
+ };
9
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ size: {
11
+ type: import('vue').PropType<string | number>;
12
+ };
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
6
14
  label: any;
7
15
  handler: () => void;
8
16
  };
@@ -2,7 +2,15 @@ import { UserInfo, UserAction } from '../../types';
2
2
 
3
3
  export default function useVideoAction(userInfo: UserInfo): {
4
4
  key: UserAction;
5
- icon: any;
5
+ icon: import('vue').Raw<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ size: {
7
+ type: import('vue').PropType<string | number>;
8
+ };
9
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ size: {
11
+ type: import('vue').PropType<string | number>;
12
+ };
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
6
14
  label: any;
7
15
  handler: () => Promise<void>;
8
16
  };
@@ -91,10 +91,10 @@ export declare function useBarrageState(): {
91
91
  sendTextMessage: (options: {
92
92
  text: string;
93
93
  extensionInfo?: Record<string, string>;
94
- }) => any;
94
+ }) => Promise<void> | undefined;
95
95
  sendCustomMessage: (options: {
96
96
  businessId: string;
97
97
  data: string;
98
- }) => any;
98
+ }) => Promise<void> | undefined;
99
99
  appendLocalTip: (message: Barrage) => void;
100
100
  };
@@ -124,18 +124,18 @@ export declare function useBattleState(): {
124
124
  config: BattleConfig;
125
125
  userIdList: string[];
126
126
  timeout: number;
127
- }) => any;
127
+ }) => Promise<any> | undefined;
128
128
  cancelBattleRequest: (options: {
129
129
  battleId: string;
130
130
  userIdList: string[];
131
- }) => any;
131
+ }) => Promise<void> | undefined;
132
132
  acceptBattle: (options: {
133
133
  battleId: string;
134
- }) => any;
134
+ }) => Promise<void> | undefined;
135
135
  rejectBattle: (options: {
136
136
  battleId: string;
137
- }) => any;
137
+ }) => Promise<void> | undefined;
138
138
  exitBattle: (options: {
139
139
  battleId: string;
140
- }) => any;
140
+ }) => Promise<void> | undefined;
141
141
  };
@@ -82,7 +82,7 @@ export declare function useCoGuestState(): {
82
82
  rejectInvitation: (options: {
83
83
  inviterId: string;
84
84
  }) => Promise<void>;
85
- disConnect: () => Promise<any>;
85
+ disConnect: () => Promise<void | undefined>;
86
86
  subscribeEvent: (event: HostEvent | GuestEvent, callback: (eventInfo: any) => void) => void;
87
87
  unsubscribeEvent: (event: HostEvent | GuestEvent, callback: (eventInfo: any) => void) => void;
88
88
  };
@@ -44,17 +44,17 @@ export declare function useLiveAudienceState(): {
44
44
  fetchAudienceList: () => Promise<AudienceInfo[]>;
45
45
  setAdministrator: ({ userId }: {
46
46
  userId: string;
47
- }) => Promise<any>;
47
+ }) => Promise<void | undefined>;
48
48
  revokeAdministrator: ({ userId }: {
49
49
  userId: string;
50
- }) => Promise<any>;
50
+ }) => Promise<void | undefined>;
51
51
  kickUserOutOfRoom: ({ userId }: {
52
52
  userId: string;
53
- }) => Promise<any>;
53
+ }) => Promise<void | undefined>;
54
54
  disableSendMessage: ({ userId, isDisable }: {
55
55
  userId: string;
56
56
  isDisable: boolean;
57
- }) => Promise<any>;
57
+ }) => Promise<void | undefined>;
58
58
  subscribeEvent: (event: LiveAudienceEvent, callback: (eventInfo: any) => void) => void;
59
59
  unsubscribeEvent: (event: LiveAudienceEvent, callback: (eventInfo: any) => void) => void;
60
60
  };
@@ -121,10 +121,10 @@ export declare function useLiveListState(): {
121
121
  updateLiveInfo: (params: UpdateLiveInfoParams) => Promise<void>;
122
122
  queryMetaData: (options: {
123
123
  keys: string[];
124
- }) => any;
124
+ }) => Promise<any> | undefined;
125
125
  updateLiveMetaData: (options: {
126
126
  metaData: string;
127
- }) => any;
127
+ }) => Promise<void> | undefined;
128
128
  subscribeEvent: (event: LiveListEvent, callback: (eventInfo: any) => void) => void;
129
129
  unsubscribeEvent: (event: LiveListEvent, callback: (eventInfo: any) => void) => void;
130
130
  };
@@ -80,8 +80,8 @@ export declare function useLiveSeatState(): {
80
80
  }> & Omit<Map<string, import('../..').NetworkInfo>, keyof Map<any, any>>)>;
81
81
  takeSeat: ({ seatIndex }: {
82
82
  seatIndex: number;
83
- }) => Promise<any>;
84
- leaveSeat: () => Promise<any>;
83
+ }) => Promise<import('@tencentcloud/tuiroom-engine-js').TUIRequest | undefined>;
84
+ leaveSeat: () => Promise<void | undefined>;
85
85
  lockSeat: ({ seatIndex }: {
86
86
  seatIndex: number;
87
87
  }) => Promise<any>;
@@ -90,26 +90,26 @@ export declare function useLiveSeatState(): {
90
90
  }) => Promise<any>;
91
91
  kickUserOutOfSeat: ({ userId }: {
92
92
  userId: string;
93
- }) => Promise<any>;
93
+ }) => Promise<void>;
94
94
  moveUserToSeat: ({ userId, targetIndex, policy }: {
95
95
  userId: string;
96
96
  targetIndex: number;
97
97
  policy: import('../..').MoveSeatPolicy;
98
- }) => Promise<any>;
98
+ }) => Promise<void>;
99
99
  openRemoteCamera: ({ userId, policy }: {
100
100
  userId: string;
101
101
  policy: import('../..').DeviceControlPolicy;
102
102
  }) => Promise<any>;
103
103
  closeRemoteCamera: ({ userId }: {
104
104
  userId: string;
105
- }) => Promise<any>;
105
+ }) => Promise<void | undefined>;
106
106
  openRemoteMicrophone: ({ userId, policy }: {
107
107
  userId: string;
108
108
  policy: import('../..').DeviceControlPolicy;
109
109
  }) => Promise<any>;
110
110
  closeRemoteMicrophone: ({ userId }: {
111
111
  userId: string;
112
- }) => Promise<any>;
112
+ }) => Promise<void | undefined>;
113
113
  muteMicrophone: () => Promise<void>;
114
114
  unmuteMicrophone: () => Promise<void>;
115
115
  startPlayStream: ({ view }: {
@@ -34,7 +34,7 @@ declare class SeatManager {
34
34
  */
35
35
  takeSeat({ seatIndex }: {
36
36
  seatIndex: number;
37
- }): Promise<any>;
37
+ }): Promise<import('@tencentcloud/tuiroom-engine-js').TUIRequest | undefined>;
38
38
  /**
39
39
  * 用户下麦
40
40
  * @memberof module:LiveSeatState/seatManager
@@ -53,7 +53,7 @@ declare class SeatManager {
53
53
  * }
54
54
  * ```
55
55
  */
56
- leaveSeat(): Promise<any>;
56
+ leaveSeat(): Promise<void | undefined>;
57
57
  /**
58
58
  * 锁定麦位
59
59
  * @memberof module:LiveSeatState/seatManager
@@ -122,7 +122,7 @@ declare class SeatManager {
122
122
  */
123
123
  kickUserOutOfSeat({ userId }: {
124
124
  userId: string;
125
- }): Promise<any>;
125
+ }): Promise<void>;
126
126
  /**
127
127
  * 移动用户到指定麦位
128
128
  * @memberof module:LiveSeatState/seatManager
@@ -153,7 +153,7 @@ declare class SeatManager {
153
153
  userId: string;
154
154
  targetIndex: number;
155
155
  policy: MoveSeatPolicy;
156
- }): Promise<any>;
156
+ }): Promise<void>;
157
157
  /**
158
158
  * 关闭远端摄像头
159
159
  * @memberof module:LiveSeatState/seatManager
@@ -176,7 +176,7 @@ declare class SeatManager {
176
176
  */
177
177
  closeRemoteCamera({ userId }: {
178
178
  userId: string;
179
- }): Promise<any>;
179
+ }): Promise<void | undefined>;
180
180
  /**
181
181
  * 关闭远端麦克风
182
182
  * @memberof module:LiveSeatState/seatManager
@@ -199,7 +199,7 @@ declare class SeatManager {
199
199
  */
200
200
  closeRemoteMicrophone({ userId }: {
201
201
  userId: string;
202
- }): Promise<any>;
202
+ }): Promise<void | undefined>;
203
203
  /**
204
204
  * 开启远端摄像头
205
205
  * @memberof module:LiveSeatState/seatManager
@@ -1,4 +1,4 @@
1
- import { default as TUIRoomEngine, TUIUserInfo } from '@tencentcloud/tuiroom-engine-js';
1
+ import { TUIRequestAction, TUIRequest, TUIUserInfo } from '@tencentcloud/tuiroom-engine-js';
2
2
  import { AudienceInfo, SeatInfo } from '../types';
3
3
 
4
4
  /**
@@ -49,14 +49,146 @@ export declare function useSeatStore(): {
49
49
  localUserId: import('vue').ComputedRef<string>;
50
50
  seatList: import('vue').ComputedRef<SeatInfo[]>;
51
51
  coHostUserList: import('vue').ComputedRef<SeatInfo[]>;
52
- sentDeviceRequestMap: import('vue').Ref<Map<string, any> & Omit<Map<string, TUIRequest>, keyof Map<any, any>>, Map<string, TUIRequest> | (Map<string, any> & Omit<Map<string, TUIRequest>, keyof Map<any, any>>)>;
53
- receivedDeviceRequestMap: import('vue').Ref<Map<string, any> & Omit<Map<string, TUIRequest>, keyof Map<any, any>>, Map<string, TUIRequest> | (Map<string, any> & Omit<Map<string, TUIRequest>, keyof Map<any, any>>)>;
52
+ sentDeviceRequestMap: import('vue').Ref<Map<string, {
53
+ requestAction: TUIRequestAction;
54
+ timestamp: number;
55
+ requestId: string;
56
+ userId: string;
57
+ userName: string;
58
+ nameCard: string;
59
+ avatarUrl: string;
60
+ content: string;
61
+ fromUser: {
62
+ userId: string;
63
+ userName: string;
64
+ nameCard: string;
65
+ avatarUrl: string;
66
+ userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
67
+ hasAudioStream: boolean;
68
+ hasVideoStream: boolean;
69
+ hasScreenStream: boolean;
70
+ isMessageDisabled: boolean;
71
+ roomCustomInfo: Record<string, any>;
72
+ };
73
+ toUser: {
74
+ userId: string;
75
+ userName: string;
76
+ nameCard: string;
77
+ avatarUrl: string;
78
+ userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
79
+ hasAudioStream: boolean;
80
+ hasVideoStream: boolean;
81
+ hasScreenStream: boolean;
82
+ isMessageDisabled: boolean;
83
+ roomCustomInfo: Record<string, any>;
84
+ };
85
+ }> & Omit<Map<string, TUIRequest>, keyof Map<any, any>>, Map<string, TUIRequest> | (Map<string, {
86
+ requestAction: TUIRequestAction;
87
+ timestamp: number;
88
+ requestId: string;
89
+ userId: string;
90
+ userName: string;
91
+ nameCard: string;
92
+ avatarUrl: string;
93
+ content: string;
94
+ fromUser: {
95
+ userId: string;
96
+ userName: string;
97
+ nameCard: string;
98
+ avatarUrl: string;
99
+ userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
100
+ hasAudioStream: boolean;
101
+ hasVideoStream: boolean;
102
+ hasScreenStream: boolean;
103
+ isMessageDisabled: boolean;
104
+ roomCustomInfo: Record<string, any>;
105
+ };
106
+ toUser: {
107
+ userId: string;
108
+ userName: string;
109
+ nameCard: string;
110
+ avatarUrl: string;
111
+ userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
112
+ hasAudioStream: boolean;
113
+ hasVideoStream: boolean;
114
+ hasScreenStream: boolean;
115
+ isMessageDisabled: boolean;
116
+ roomCustomInfo: Record<string, any>;
117
+ };
118
+ }> & Omit<Map<string, TUIRequest>, keyof Map<any, any>>)>;
119
+ receivedDeviceRequestMap: import('vue').Ref<Map<string, {
120
+ requestAction: TUIRequestAction;
121
+ timestamp: number;
122
+ requestId: string;
123
+ userId: string;
124
+ userName: string;
125
+ nameCard: string;
126
+ avatarUrl: string;
127
+ content: string;
128
+ fromUser: {
129
+ userId: string;
130
+ userName: string;
131
+ nameCard: string;
132
+ avatarUrl: string;
133
+ userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
134
+ hasAudioStream: boolean;
135
+ hasVideoStream: boolean;
136
+ hasScreenStream: boolean;
137
+ isMessageDisabled: boolean;
138
+ roomCustomInfo: Record<string, any>;
139
+ };
140
+ toUser: {
141
+ userId: string;
142
+ userName: string;
143
+ nameCard: string;
144
+ avatarUrl: string;
145
+ userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
146
+ hasAudioStream: boolean;
147
+ hasVideoStream: boolean;
148
+ hasScreenStream: boolean;
149
+ isMessageDisabled: boolean;
150
+ roomCustomInfo: Record<string, any>;
151
+ };
152
+ }> & Omit<Map<string, TUIRequest>, keyof Map<any, any>>, Map<string, TUIRequest> | (Map<string, {
153
+ requestAction: TUIRequestAction;
154
+ timestamp: number;
155
+ requestId: string;
156
+ userId: string;
157
+ userName: string;
158
+ nameCard: string;
159
+ avatarUrl: string;
160
+ content: string;
161
+ fromUser: {
162
+ userId: string;
163
+ userName: string;
164
+ nameCard: string;
165
+ avatarUrl: string;
166
+ userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
167
+ hasAudioStream: boolean;
168
+ hasVideoStream: boolean;
169
+ hasScreenStream: boolean;
170
+ isMessageDisabled: boolean;
171
+ roomCustomInfo: Record<string, any>;
172
+ };
173
+ toUser: {
174
+ userId: string;
175
+ userName: string;
176
+ nameCard: string;
177
+ avatarUrl: string;
178
+ userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
179
+ hasAudioStream: boolean;
180
+ hasVideoStream: boolean;
181
+ hasScreenStream: boolean;
182
+ isMessageDisabled: boolean;
183
+ roomCustomInfo: Record<string, any>;
184
+ };
185
+ }> & Omit<Map<string, TUIRequest>, keyof Map<any, any>>)>;
54
186
  userInfoMap: import('vue').Ref<Map<string, {
55
187
  userId: string;
56
188
  userName: string;
57
189
  avatarUrl: string;
58
190
  customInfo: Record<string, any>;
59
- userRole: TUIRoomEngine;
191
+ userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
60
192
  isMessageDisabled: boolean;
61
193
  joinedTimestamp?: number | undefined;
62
194
  }> & Omit<Map<string, AudienceInfo>, keyof Map<any, any>>, Map<string, AudienceInfo> | (Map<string, {
@@ -64,24 +196,24 @@ export declare function useSeatStore(): {
64
196
  userName: string;
65
197
  avatarUrl: string;
66
198
  customInfo: Record<string, any>;
67
- userRole: TUIRoomEngine;
199
+ userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
68
200
  isMessageDisabled: boolean;
69
201
  joinedTimestamp?: number | undefined;
70
202
  }> & Omit<Map<string, AudienceInfo>, keyof Map<any, any>>)>;
71
203
  getUserInfo: (userId: string) => Promise<{
72
204
  userId: string;
73
- userName: any;
74
- avatarUrl: any;
75
- customInfo: any;
76
- userRole: any;
77
- isMessageDisabled: any;
205
+ userName: string;
206
+ avatarUrl: string;
207
+ customInfo: Record<string, any>;
208
+ userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
209
+ isMessageDisabled: boolean;
78
210
  }>;
79
211
  convertUserInfoToAudienceInfo: (userInfo: TUIUserInfo) => {
80
- userId: any;
81
- userName: any;
82
- avatarUrl: any;
83
- customInfo: any;
84
- userRole: any;
85
- isMessageDisabled: any;
212
+ userId: string;
213
+ userName: string;
214
+ avatarUrl: string;
215
+ customInfo: Record<string, any>;
216
+ userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
217
+ isMessageDisabled: boolean;
86
218
  };
87
219
  };
@@ -57,7 +57,7 @@ export default class UserManager implements IUserManager {
57
57
  private userListCompareFunction;
58
58
  constructor();
59
59
  initUserList(): Promise<void>;
60
- setCustomInfoForUser(options: CustomInfoForUser): Promise<any>;
60
+ setCustomInfoForUser(options: CustomInfoForUser): Promise<void | undefined>;
61
61
  changeUserRole(options: {
62
62
  userId: string;
63
63
  userRole: TUIRole;