@laplace.live/internal 1.3.37 → 1.3.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.3.37",
3
+ "version": "1.3.38",
4
4
  "module": "src/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -4909,7 +4909,7 @@ export declare namespace BilibiliInternal {
4909
4909
  */
4910
4910
  interface UINFO {
4911
4911
  /**
4912
- * 未登录时此处为 0
4912
+ * 未登录时此处为 0;匿名直播间中被打码的用户也为 0,身份见 `anon`
4913
4913
  */
4914
4914
  uid: number
4915
4915
  base: {
@@ -4926,10 +4926,13 @@ export declare namespace BilibiliInternal {
4926
4926
  */
4927
4927
  is_mystery: boolean
4928
4928
  risk_ctrl_info: null
4929
+ /**
4930
+ * 匿名直播间中被打码时为 null
4931
+ */
4929
4932
  origin_info: {
4930
4933
  name: string
4931
4934
  face: string
4932
- }
4935
+ } | null
4933
4936
  official_info: {
4934
4937
  role: number
4935
4938
  title: string
@@ -5034,6 +5037,44 @@ export declare namespace BilibiliInternal {
5034
5037
  guard_leader?: {
5035
5038
  is_guard_leader: boolean
5036
5039
  }
5040
+ /**
5041
+ * 匿名直播间(主播手动开启)中被打码用户的身份,普通直播间为 null
5042
+ *
5043
+ * 已知有:
5044
+ * - `DANMU_MSG`
5045
+ *
5046
+ * @since Oct 11, 2026
5047
+ */
5048
+ anon?: UinfoAnon | null
5049
+ }
5050
+ /**
5051
+ * 匿名直播间中被打码用户的身份,此时 `uid` 为 0、`base.name` 被打码(如 `兴***`)
5052
+ *
5053
+ * protobuf 事件(如 `INTERACT_WORD_V2`)中为 UInfo field 9:type = 1, anon_uid = 2, anon_key_ver = 3,
5054
+ * uinfo_cipher = 4, masked = 5
5055
+ *
5056
+ * @since Oct 11, 2026
5057
+ */
5058
+ export interface UinfoAnon {
5059
+ /**
5060
+ * @example 1
5061
+ */
5062
+ type: number
5063
+ /**
5064
+ * 匿名身份,疑似在同一房间内稳定,可用于区分被打码的用户
5065
+ * @example `RA_k3fXb2UIO74NL0eFg2fEEgv0gOjpUve8H1VNWxOaISc`
5066
+ */
5067
+ anon_uid: string
5068
+ /**
5069
+ * 密钥版本,疑似为 `RA_{房间号}_{版本}`
5070
+ * @example `RA_1936499600_1`
5071
+ */
5072
+ anon_key_ver: string
5073
+ /**
5074
+ * 加密后的真实用户信息(base64),疑似可用 `ROOM_ANON_KEY` 事件下发的密钥解密
5075
+ */
5076
+ uinfo_cipher: string
5077
+ masked: boolean
5037
5078
  }
5038
5079
  /**
5039
5080
  * 普通弹幕事件