@byteplus/rtc 4.60.26 → 4.60.28

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
@@ -33,7 +33,7 @@ declare class VERTC implements IVERTC {
33
33
  commitInfo: string;
34
34
  downloadLog: (key?: string | undefined) => void;
35
35
  setLogConfig: ({ logLevel, LogfileSize, }: {
36
- logLevel?: "none" | "warning" | "error" | "info" | "trace" | undefined;
36
+ logLevel?: "error" | "none" | "warning" | "info" | "trace" | undefined;
37
37
  LogfileSize?: number | undefined;
38
38
  }) => void;
39
39
  }
@@ -1669,6 +1669,19 @@ export declare enum USER_ONLINE_STATUS {
1669
1669
  */
1670
1670
  UNREACHABLE = 2
1671
1671
  }
1672
+ export declare enum UserDisconnectionTag {
1673
+ /** 用户正常离房 */
1674
+ userLeave = "userLeave",
1675
+ /** 用户因为断网离房 */
1676
+ connectionLost = "connectionLost",
1677
+ /** 因同userId重复登录房间导致被挤出 */
1678
+ userDuplicateLogin = "userDuplicateLogin",
1679
+ /** 因openAPI接口实现踢人将用户踢出房间 */
1680
+ kickedByAdmin = "kickedByAdmin",
1681
+ roleChanged = "roleChanged",
1682
+ /** 由于token过期离开房间 */
1683
+ onUserTokenDidExpire = "onUserTokenDidExpire"
1684
+ }
1672
1685
 
1673
1686
  /**
1674
1687
  * @brief The reason why the remote user left the room
@@ -6076,6 +6089,12 @@ export interface onUserLeaveEvent {
6076
6089
  * @brief The reason why the remote user left the room
6077
6090
  */
6078
6091
  reason: UserOfflineReason;
6092
+
6093
+ /**
6094
+ * @hidden
6095
+ * @brief The tag to identify the reason why the remote user left the room
6096
+ */
6097
+ tag?: UserDisconnectionTag;
6079
6098
  }
6080
6099
 
6081
6100
  /**