@tencent-rtc/mcp 1.3.0 → 1.3.2
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.js +4 -0
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/resource/doc/chatuikit/faq/web_sdk/faq.md +125 -0
- package/resource/doc/chatuikit/flutter/faq.md +17 -114
- package/resource/doc/chatuikit/flutter/integrate_tuikit_Flutter.md +86 -722
- package/resource/doc/chatuikit/react/integration.md +430 -49
- package/resource/doc/chatuikit/react/workflow.md +258 -0
- package/resource/doc/chatuikit/vue/integration.md +355 -144
- package/resource/doc/chatuikit/vue/workflow.md +395 -0
- package/resource/doc/roomkit/vue/features/call-user-to-room.md +256 -0
- package/resource/doc/roomkit/vue/features/device-detection.md +388 -0
- package/resource/doc/roomkit/vue/features/device-state.md +480 -0
- package/resource/doc/roomkit/vue/features/free-beauty-panel.md +238 -0
- package/resource/doc/roomkit/vue/features/room-chat.md +427 -0
- package/resource/doc/roomkit/vue/features/room-participant-state.md +407 -0
- package/resource/doc/roomkit/vue/features/room-state.md +291 -0
- package/resource/doc/roomkit/vue/features/room-view.md +338 -0
- package/resource/doc/roomkit/vue/features/schedule-room.md +349 -0
- package/resource/doc/roomkit/vue/features/screen-share.md +333 -0
- package/resource/doc/roomkit/vue/features/virtual-background.md +287 -0
- package/resource/doc/roomkit/vue/features/workflow.md +553 -0
- package/resource/doc/roomkit/vue/integration.md +479 -0
- package/resource/doc/roomkit/vue/workflow.md +487 -0
- package/resource/doc/tuicallkit/react/api.md +21 -0
- package/resource/doc/tuicallkit/vue/api.md +21 -0
- package/tools/chat/get-web-chat-integration.js +31 -14
- package/tools/chat/get-web-chat-integration.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_integration_def.js +19 -12
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_room_feature_detail_def.js +95 -0
- package/tools/definitions/get_web_room_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +44 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -0
- package/tools/index.js +4 -4
- package/tools/index.js.map +1 -1
- package/tools/live/get-web-live-uikit-integration.js +1 -1
- package/tools/room/get-web-room-feature-detail.js +68 -0
- package/tools/room/get-web-room-feature-detail.js.map +1 -0
- package/tools/room/get-web-room-integration.js +43 -0
- package/tools/room/get-web-room-integration.js.map +1 -0
- package/utils/generate-structured-result.js +2 -2
- package/utils/generate-structured-result.js.map +1 -1
- package/utils/report-cls-client.js +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/doc/chatuikit/flutter/integrate_only_tuichat_Flutter.md +0 -333
- package/resource/doc/chatuikit/flutter/quick_start_Flutter.md +0 -217
- package/resource/doc/chatuikit/react/chat_window_integration.md +0 -94
- package/resource/doc/chatuikit/vue/chat_window_integration.md +0 -156
- package/resource/doc/roomkit/vue/states/device-state.md +0 -369
- package/resource/doc/roomkit/vue/states/login-state.md +0 -59
- package/resource/doc/roomkit/vue/states/room-list-state.md +0 -355
- package/resource/doc/roomkit/vue/states/room-participant-state.md +0 -388
- package/tools/chat/get-web-chat-window-integration.js +0 -28
- package/tools/chat/get-web-chat-window-integration.js.map +0 -1
- package/tools/definitions/get_web_chat_window_integration_def.js +0 -26
- package/tools/definitions/get_web_chat_window_integration_def.js.map +0 -1
- package/tools/room/get-web-room-state-detail.js +0 -31
- package/tools/room/get-web-room-state-detail.js.map +0 -1
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
# Room List State Documentation
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Room list State API document.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
dependency installation
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
You can choose any following method for dependency installation:
|
|
11
|
-
[npm]
|
|
12
|
-
``` bash
|
|
13
|
-
npm install tuikit-atomicx-vue3@latest --save
|
|
14
|
-
```
|
|
15
|
-
[pnpm]
|
|
16
|
-
``` bash
|
|
17
|
-
pnpm add tuikit-atomicx-vue3@latest
|
|
18
|
-
```
|
|
19
|
-
[yarn]
|
|
20
|
-
``` bash
|
|
21
|
-
yarn add tuikit-atomicx-vue3@latest
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## Enums
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
### RoomStatus
|
|
29
|
-
Room status enumeration
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
```typescript
|
|
33
|
-
export enum RoomStatus {
|
|
34
|
-
Scheduled = 1, // Scheduled
|
|
35
|
-
Running = 2, // In progress
|
|
36
|
-
}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
### RoomEndedReason
|
|
41
|
-
Room end reason enumeration
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
```typescript
|
|
45
|
-
export enum RoomEndedReason {
|
|
46
|
-
ByOwner = 1, // Ended by room owner
|
|
47
|
-
ByServer = 2, // Ended by server
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### RoomInvitationStatus
|
|
53
|
-
Room invitation status enumeration
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
```typescript
|
|
57
|
-
export enum RoomInvitationStatus {
|
|
58
|
-
None = 0, // Stateless
|
|
59
|
-
Pending = 1, // Waiting
|
|
60
|
-
Timeout = 2, // Timeout
|
|
61
|
-
Rejected = 3, // Denied
|
|
62
|
-
}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### InvitationRejectedReason
|
|
67
|
-
Reasons for Invitation Rejection Enumeration
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
```typescript
|
|
71
|
-
export enum InvitationRejectedReason {
|
|
72
|
-
Rejected = "Rejected", // Denied
|
|
73
|
-
Busy = "Busy", // Busy
|
|
74
|
-
}
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
## Interfaces
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
### RoomUser
|
|
82
|
-
Room user info
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
```typescript
|
|
86
|
-
export interface RoomUser {
|
|
87
|
-
userId: string; // uid
|
|
88
|
-
userName: string; // Username
|
|
89
|
-
avatarURL: string; // Avatar URL
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
### RoomInfo
|
|
95
|
-
Room Information
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
```typescript
|
|
99
|
-
export interface RoomInfo {
|
|
100
|
-
readonly roomId: string; // Room ID (read-only)
|
|
101
|
-
roomName: string; // Room name
|
|
102
|
-
roomOwner: RoomUser; // Room owner
|
|
103
|
-
readonly participantCount: number; // Participant count (read-only)
|
|
104
|
-
readonly createTime: number; // Creation time (read-only)
|
|
105
|
-
readonly roomStatus: RoomStatus; // Room status (read-only)
|
|
106
|
-
scheduledStartTime?: number; // Reservation start time (optional)
|
|
107
|
-
scheduledEndTime?: number; // Reservation end time (optional)
|
|
108
|
-
startReminderInSeconds?: number; // Reminder time before start (seconds) (optional)
|
|
109
|
-
scheduleAttendees?: RoomUser[]; // Reservation participant list (optional)
|
|
110
|
-
password?: string; // Room password (optional)
|
|
111
|
-
isAllMicrophoneDisabled: boolean; // Whether ALL microphones are disabled
|
|
112
|
-
isAllCameraDisabled: boolean; // Whether ALL cameras are disabled
|
|
113
|
-
isAllScreenShareDisabled: boolean; // Whether ALL screen sharing is disabled
|
|
114
|
-
isAllMessageDisabled: boolean; // Whether ALL messages are disabled
|
|
115
|
-
}
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
### RoomInvitation
|
|
120
|
-
Room invitation message
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
```typescript
|
|
124
|
-
export interface RoomInvitation {
|
|
125
|
-
roomInfo: RoomInfo; // Room Information
|
|
126
|
-
inviter: RoomUser; // Inviter
|
|
127
|
-
invitee: RoomUser; // Invitee
|
|
128
|
-
status: RoomInvitationStatus; // Invitation status
|
|
129
|
-
}
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
## Type Definitions
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
### ScheduleRoomOptions
|
|
137
|
-
Room reservation options
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
```typescript
|
|
141
|
-
export type ScheduleRoomOptions = {
|
|
142
|
-
roomName?: string; // Room name (optional)
|
|
143
|
-
password?: string; // Room password (optional)
|
|
144
|
-
scheduleStartTime: number; // Reservation start time (required)
|
|
145
|
-
scheduleEndTime: number; // Reservation end time (required)
|
|
146
|
-
reminderSecondsBeforeStart?: number; // Reminder time before start (seconds) (optional)
|
|
147
|
-
scheduleAttendees?: string[]; // Reservation participant ID list (optional)
|
|
148
|
-
isAllMicrophoneDisabled?: boolean; // Whether ALL microphones are disabled (optional)
|
|
149
|
-
isAllCameraDisabled?: boolean; // Whether ALL cameras are disabled (optional)
|
|
150
|
-
isAllScreenShareDisabled?: boolean; // Whether ALL screen sharing is disabled (optional)
|
|
151
|
-
isAllMessageDisabled?: boolean; // Whether ALL messages are disabled (optional)
|
|
152
|
-
};
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
### ScheduleUpdateRoomOptions
|
|
157
|
-
Update room reservation options
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
```typescript
|
|
161
|
-
export type ScheduleUpdateRoomOptions = {
|
|
162
|
-
roomName?: string; // Room name (optional)
|
|
163
|
-
scheduledStartTime?: number; // Reservation start time (optional)
|
|
164
|
-
scheduleEndTime?: number; // Reservation end time (optional)
|
|
165
|
-
}
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
### CreateRoomOptions
|
|
170
|
-
Room creation options
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
```typescript
|
|
174
|
-
export type CreateRoomOptions = {
|
|
175
|
-
roomName?: string; // Room name (optional)
|
|
176
|
-
password?: string; // Room password (optional)
|
|
177
|
-
isAllMicrophoneDisabled?: boolean; // Whether ALL microphones are disabled (optional)
|
|
178
|
-
isAllCameraDisabled?: boolean; // Whether ALL cameras are disabled (optional)
|
|
179
|
-
isAllScreenShareDisabled?: boolean; // Whether ALL screen sharing is disabled (optional)
|
|
180
|
-
isAllMessageDisabled?: boolean; // Whether ALL messages are disabled (optional)
|
|
181
|
-
};
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
### UpdateRoomOptions
|
|
186
|
-
Update room options
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
```typescript
|
|
190
|
-
export type UpdateRoomOptions = {
|
|
191
|
-
roomName?: string; // Room name (optional)
|
|
192
|
-
password?: string; // Room password (optional)
|
|
193
|
-
};
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
## IRoomListState Interface
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
Room list status management API
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
### Properties
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
```typescript
|
|
207
|
-
export interface IRoomListState {
|
|
208
|
-
scheduledRoomList: RoomInfo[]; // Reserved room list
|
|
209
|
-
scheduledRoomListCursor: string; // Reserved room list cursor
|
|
210
|
-
currentRoom: RoomInfo | null; // Current room info
|
|
211
|
-
}
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
### Methods
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
Room list management
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
- **getScheduledRoomList(options: { cursor: string, count?: number }): Promise<void>**
|
|
222
|
-
-Retrieve the reserved room list
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
- **getScheduledAttendees(options: { roomId: string, cursor: string, count?: number }): Promise<{ attendees: RoomUser[], cursor: string }>**
|
|
226
|
-
- Retrieve the reserved participant list
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
#### Room Reservation Management
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
- **scheduleRoom(options: { roomId: string, options: ScheduleRoomOptions }): Promise<void>**
|
|
233
|
-
-Reserve a room
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
- **updateScheduledRoom(options: { roomId: string, options: ScheduleUpdateRoomOptions }): Promise<void>**
|
|
237
|
-
- Update room reservation
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
- **addScheduledAttendees(options: { roomId: string, userIdList: string[] }): Promise<void>**
|
|
241
|
-
- Add a reserved participant
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
- **removeScheduledAttendees(options: { roomId: string, userIdList: string[] }): Promise<void>**
|
|
245
|
-
- Remove a reserved participant
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
- **cancelScheduledRoom(options: { roomId: string }): Promise<void>**
|
|
249
|
-
- Cancel room reservation
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
#### Room Operations
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
- **createAndJoinRoom(options: { roomId: string, options: CreateRoomOptions }): Promise<void>**
|
|
256
|
-
-Create and join a room
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
- **joinRoom(options: { roomId: string, password?: string }): Promise<void>**
|
|
260
|
-
-Enter a room
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
- **leaveRoom(): Promise<void>**
|
|
264
|
-
-Exit Room
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
- **endRoom(): Promise<void>**
|
|
268
|
-
-End Room
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
- **updateRoomInfo(options: { roomId: string, options: UpdateRoomOptions }): Promise<void>**
|
|
272
|
-
- Update room information
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
Invitation Management
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
- **callUserToRoom(options: { roomId: string, userIdList: string[] }): Promise<RoomInvitation>**
|
|
279
|
-
-Invite users to a room
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
- **cancelCall(options: { roomId: string, userIdList: string[] }): Promise<void>**
|
|
283
|
-
- Cancel invitation
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
- **getPendingInvitations(options: { roomId: string, cursor: string, count?: number }): Promise<{invitations: RoomInvitation[], cursor: string }>**
|
|
287
|
-
- Retrieve pending invitations
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
### Event Handlers
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
#### Room Reservation Events
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
- **onAddedToScheduledRoom: (options: { roomInfo: RoomInfo; }) => void**
|
|
297
|
-
-Trigger when added to a reserved room
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
- **onRemovedFromScheduledRoom: (options: { roomInfo: RoomInfo; operateUser: RoomUser }) => void**
|
|
301
|
-
- Trigger when removed from a reserved room
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
- **onScheduledRoomCancelled: (options: { roomInfo: RoomInfo; operateUser: RoomUser }) => void**
|
|
305
|
-
- Trigger when a room reservation is canceled
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
- **onScheduledRoomStartingSoon: (options: { roomInfo: RoomInfo }) => void**
|
|
309
|
-
- Trigger when a room reservation will start soon
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
#### Room status event
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
- **onRoomEnded: (options: { roomId: string; reason: RoomEndedReason }) => void**
|
|
316
|
-
- Trigger when a room ends
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
#### Invitation-related events
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
- **onRoomCallReceived: (options: { invitation: RoomInvitation }) => void**
|
|
323
|
-
- Trigger when a room invitation is received
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
- **onRoomCallCancelled: (options: { invitation: RoomInvitation }) => void**
|
|
327
|
-
- Trigger when a room invitation is canceled
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
- **onRoomCallTimeout: (options: { invitation: RoomInvitation }) => void**
|
|
331
|
-
- Trigger when a room invitation times out
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
- **onRoomCallAccepted: (options: { invitation: RoomInvitation }) => void**
|
|
335
|
-
- Trigger when a room invitation is accepted
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
- **onRoomCallRejected: (options: { invitation: RoomInvitation, reason: InvitationRejectedReason }) => void**
|
|
339
|
-
- Trigger when a room invitation is rejected
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
### Example
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
## API and Event Usage Example
|
|
346
|
-
```typescript
|
|
347
|
-
import { useRoomListState } from 'tuikit-atomicx-vue3';
|
|
348
|
-
const {
|
|
349
|
-
joinRoom,
|
|
350
|
-
leaveRoom,
|
|
351
|
-
endRoom,
|
|
352
|
-
subscribeEvent,
|
|
353
|
-
unsubscribeEvent
|
|
354
|
-
} = useRoomListState();
|
|
355
|
-
```
|