@laplace.live/internal 1.3.37 → 1.3.39
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 +1 -1
- package/src/namespaces/bilibili.d.ts +79 -4
package/package.json
CHANGED
|
@@ -847,11 +847,20 @@ export declare namespace BilibiliInternal {
|
|
|
847
847
|
icon_src: string
|
|
848
848
|
}
|
|
849
849
|
/**
|
|
850
|
-
*
|
|
850
|
+
* 匿名直播间(主播手动开启,观众身份被打码,见 `UINFO.anon`)
|
|
851
851
|
* @since 2025-04-12
|
|
852
852
|
*/
|
|
853
853
|
room_anonymous: {
|
|
854
854
|
open_anonymous: boolean
|
|
855
|
+
/**
|
|
856
|
+
* 解密 `UinfoAnon.uinfo_cipher` 的密钥,仅主播(或有权限的房管)请求时返回,之后由 `ROOM_ANON_KEY` 更新
|
|
857
|
+
*/
|
|
858
|
+
anon_key?: string
|
|
859
|
+
/**
|
|
860
|
+
* 密钥版本,与 `UinfoAnon.anon_key_ver` 对应
|
|
861
|
+
* @example `RA_1936499600_1`
|
|
862
|
+
*/
|
|
863
|
+
anon_key_ver?: string
|
|
855
864
|
}
|
|
856
865
|
tab_switches: {
|
|
857
866
|
subtitle: number
|
|
@@ -4909,7 +4918,7 @@ export declare namespace BilibiliInternal {
|
|
|
4909
4918
|
*/
|
|
4910
4919
|
interface UINFO {
|
|
4911
4920
|
/**
|
|
4912
|
-
* 未登录时此处为 0
|
|
4921
|
+
* 未登录时此处为 0;匿名直播间中被打码的用户也为 0,身份见 `anon`
|
|
4913
4922
|
*/
|
|
4914
4923
|
uid: number
|
|
4915
4924
|
base: {
|
|
@@ -4926,10 +4935,13 @@ export declare namespace BilibiliInternal {
|
|
|
4926
4935
|
*/
|
|
4927
4936
|
is_mystery: boolean
|
|
4928
4937
|
risk_ctrl_info: null
|
|
4938
|
+
/**
|
|
4939
|
+
* 匿名直播间中被打码时为 null
|
|
4940
|
+
*/
|
|
4929
4941
|
origin_info: {
|
|
4930
4942
|
name: string
|
|
4931
4943
|
face: string
|
|
4932
|
-
}
|
|
4944
|
+
} | null
|
|
4933
4945
|
official_info: {
|
|
4934
4946
|
role: number
|
|
4935
4947
|
title: string
|
|
@@ -5034,6 +5046,47 @@ export declare namespace BilibiliInternal {
|
|
|
5034
5046
|
guard_leader?: {
|
|
5035
5047
|
is_guard_leader: boolean
|
|
5036
5048
|
}
|
|
5049
|
+
/**
|
|
5050
|
+
* 匿名直播间(主播手动开启)中被打码用户的身份,普通直播间为 null
|
|
5051
|
+
*
|
|
5052
|
+
* 官方前端会解密下列事件中的 UINFO:
|
|
5053
|
+
* - `DANMU_MSG`、`RECALL_DANMU_MSG`、`INTERACT_WORD(_V2)`、`ENTRY_EFFECT`、`LIKE_INFO_V3_CLICK`
|
|
5054
|
+
* - `SEND_GIFT(_V2)`、`COMBO_SEND`、`SUPER_CHAT_MESSAGE`、`USER_TOAST_MSG_V2`、`EFFECT_DANMAKU_MSG`
|
|
5055
|
+
* - `POPULARITY_RED_POCKET_V2_START`、`ONLINE_RANK_V2/V3`,以及 `ANCHOR_LOT_AWARD`、红包中奖名单中的用户
|
|
5056
|
+
*
|
|
5057
|
+
* @since Oct 11, 2026
|
|
5058
|
+
*/
|
|
5059
|
+
anon?: UinfoAnon | null
|
|
5060
|
+
}
|
|
5061
|
+
/**
|
|
5062
|
+
* 匿名直播间中被打码用户的身份,此时 `uid` 为 0、`base.name` 被打码(如 `兴***`)
|
|
5063
|
+
*
|
|
5064
|
+
* protobuf 中为 `bilibili.live.common.proto.user_dagw.Anon`,即 UserInfo field 9:type = 1 (int32),
|
|
5065
|
+
* anon_uid = 2, anon_key_ver = 3, uinfo_cipher = 4, masked = 5
|
|
5066
|
+
*
|
|
5067
|
+
* @since Oct 11, 2026
|
|
5068
|
+
*/
|
|
5069
|
+
export interface UinfoAnon {
|
|
5070
|
+
/**
|
|
5071
|
+
* @example 1
|
|
5072
|
+
*/
|
|
5073
|
+
type: number
|
|
5074
|
+
/**
|
|
5075
|
+
* 匿名身份,疑似在同一房间内稳定,可用于区分被打码的用户
|
|
5076
|
+
* @example `RA_k3fXb2UIO74NL0eFg2fEEgv0gOjpUve8H1VNWxOaISc`
|
|
5077
|
+
*/
|
|
5078
|
+
anon_uid: string
|
|
5079
|
+
/**
|
|
5080
|
+
* 密钥版本,疑似为 `RA_{房间号}_{版本}`
|
|
5081
|
+
* @example `RA_1936499600_1`
|
|
5082
|
+
*/
|
|
5083
|
+
anon_key_ver: string
|
|
5084
|
+
/**
|
|
5085
|
+
* 加密后的真实身份:base64(12 字节 IV + AES-GCM 密文与 tag),用对应版本的 `anon_key` 解密后为
|
|
5086
|
+
* `{"uid":…,"uname":"…"}` 的 JSON
|
|
5087
|
+
*/
|
|
5088
|
+
uinfo_cipher: string
|
|
5089
|
+
masked: boolean
|
|
5037
5090
|
}
|
|
5038
5091
|
/**
|
|
5039
5092
|
* 普通弹幕事件
|
|
@@ -5397,8 +5450,13 @@ export declare namespace BilibiliInternal {
|
|
|
5397
5450
|
* - 2: 似乎是ai判断有辱骂、敏感字眼,然后被撤回
|
|
5398
5451
|
*/
|
|
5399
5452
|
recall_type: number
|
|
5400
|
-
/** 被撤回用户 UID */
|
|
5453
|
+
/** 被撤回用户 UID,匿名直播间中被打码的用户疑似为 0 */
|
|
5401
5454
|
target_id: number
|
|
5455
|
+
/**
|
|
5456
|
+
* 被撤回弹幕的发送者,匿名直播间中带有 `anon`(官方前端据此匹配被撤回的匿名弹幕)
|
|
5457
|
+
* @since Oct 11, 2026
|
|
5458
|
+
*/
|
|
5459
|
+
uinfo?: UINFO
|
|
5402
5460
|
}
|
|
5403
5461
|
}
|
|
5404
5462
|
|
|
@@ -7207,6 +7265,23 @@ export declare namespace BilibiliInternal {
|
|
|
7207
7265
|
msg: string
|
|
7208
7266
|
uid: number
|
|
7209
7267
|
}
|
|
7268
|
+
|
|
7269
|
+
/**
|
|
7270
|
+
* 匿名直播间密钥(更新),用于解密 `UinfoAnon.uinfo_cipher`,仅下发给主播(或有权限的房管)的连接
|
|
7271
|
+
*
|
|
7272
|
+
* 初始密钥由房间信息 `room_anonymous.anon_key` 提供
|
|
7273
|
+
*
|
|
7274
|
+
* @since Oct 11, 2026
|
|
7275
|
+
*/
|
|
7276
|
+
export interface ROOM_ANON_KEY {
|
|
7277
|
+
cmd: 'ROOM_ANON_KEY'
|
|
7278
|
+
data: {
|
|
7279
|
+
/** AES-GCM 密钥:hex、base64 或原始字符串 */
|
|
7280
|
+
anon_key: string
|
|
7281
|
+
/** @example `RA_1936499600_1` */
|
|
7282
|
+
anon_key_ver: string
|
|
7283
|
+
}
|
|
7284
|
+
}
|
|
7210
7285
|
}
|
|
7211
7286
|
|
|
7212
7287
|
/**
|