@byteplus/rtc 4.66.23 → 4.66.25
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/extension-ainr/index.js +2 -2
- package/extension-ainr/index.umd.js +2 -2
- package/extension-beauty/index.js +2 -2
- package/extension-beauty/index.umd.js +2 -2
- package/index.d.ts +19 -0
- package/index.esm.min.js +2 -2
- package/index.min.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1748,6 +1748,19 @@ export declare enum USER_ONLINE_STATUS {
|
|
|
1748
1748
|
*/
|
|
1749
1749
|
UNREACHABLE = 2
|
|
1750
1750
|
}
|
|
1751
|
+
export declare enum UserDisconnectionTag {
|
|
1752
|
+
/** 用户正常离房 */
|
|
1753
|
+
userLeave = "userLeave",
|
|
1754
|
+
/** 用户因为断网离房 */
|
|
1755
|
+
connectionLost = "connectionLost",
|
|
1756
|
+
/** 因同userId重复登录房间导致被挤出 */
|
|
1757
|
+
userDuplicateLogin = "userDuplicateLogin",
|
|
1758
|
+
/** 因openAPI接口实现踢人将用户踢出房间 */
|
|
1759
|
+
kickedByAdmin = "kickedByAdmin",
|
|
1760
|
+
roleChanged = "roleChanged",
|
|
1761
|
+
/** 由于token过期离开房间 */
|
|
1762
|
+
onUserTokenDidExpire = "onUserTokenDidExpire"
|
|
1763
|
+
}
|
|
1751
1764
|
|
|
1752
1765
|
/**
|
|
1753
1766
|
* @brief The reason why the remote user left the room
|
|
@@ -7284,6 +7297,12 @@ export interface onUserLeaveEvent {
|
|
|
7284
7297
|
* @brief The reason why the remote user left the room
|
|
7285
7298
|
*/
|
|
7286
7299
|
reason: UserOfflineReason;
|
|
7300
|
+
|
|
7301
|
+
/**
|
|
7302
|
+
* @hidden
|
|
7303
|
+
* @brief The tag to identify the reason why the remote user left the room
|
|
7304
|
+
*/
|
|
7305
|
+
tag?: UserDisconnectionTag;
|
|
7287
7306
|
}
|
|
7288
7307
|
|
|
7289
7308
|
/**
|