@laplace.live/internal 1.3.38 → 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 +41 -7
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
|
|
@@ -5040,8 +5049,10 @@ export declare namespace BilibiliInternal {
|
|
|
5040
5049
|
/**
|
|
5041
5050
|
* 匿名直播间(主播手动开启)中被打码用户的身份,普通直播间为 null
|
|
5042
5051
|
*
|
|
5043
|
-
*
|
|
5044
|
-
* - `DANMU_MSG`
|
|
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`、红包中奖名单中的用户
|
|
5045
5056
|
*
|
|
5046
5057
|
* @since Oct 11, 2026
|
|
5047
5058
|
*/
|
|
@@ -5050,8 +5061,8 @@ export declare namespace BilibiliInternal {
|
|
|
5050
5061
|
/**
|
|
5051
5062
|
* 匿名直播间中被打码用户的身份,此时 `uid` 为 0、`base.name` 被打码(如 `兴***`)
|
|
5052
5063
|
*
|
|
5053
|
-
* protobuf
|
|
5054
|
-
* uinfo_cipher = 4, masked = 5
|
|
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
|
|
5055
5066
|
*
|
|
5056
5067
|
* @since Oct 11, 2026
|
|
5057
5068
|
*/
|
|
@@ -5071,7 +5082,8 @@ export declare namespace BilibiliInternal {
|
|
|
5071
5082
|
*/
|
|
5072
5083
|
anon_key_ver: string
|
|
5073
5084
|
/**
|
|
5074
|
-
*
|
|
5085
|
+
* 加密后的真实身份:base64(12 字节 IV + AES-GCM 密文与 tag),用对应版本的 `anon_key` 解密后为
|
|
5086
|
+
* `{"uid":…,"uname":"…"}` 的 JSON
|
|
5075
5087
|
*/
|
|
5076
5088
|
uinfo_cipher: string
|
|
5077
5089
|
masked: boolean
|
|
@@ -5438,8 +5450,13 @@ export declare namespace BilibiliInternal {
|
|
|
5438
5450
|
* - 2: 似乎是ai判断有辱骂、敏感字眼,然后被撤回
|
|
5439
5451
|
*/
|
|
5440
5452
|
recall_type: number
|
|
5441
|
-
/** 被撤回用户 UID */
|
|
5453
|
+
/** 被撤回用户 UID,匿名直播间中被打码的用户疑似为 0 */
|
|
5442
5454
|
target_id: number
|
|
5455
|
+
/**
|
|
5456
|
+
* 被撤回弹幕的发送者,匿名直播间中带有 `anon`(官方前端据此匹配被撤回的匿名弹幕)
|
|
5457
|
+
* @since Oct 11, 2026
|
|
5458
|
+
*/
|
|
5459
|
+
uinfo?: UINFO
|
|
5443
5460
|
}
|
|
5444
5461
|
}
|
|
5445
5462
|
|
|
@@ -7248,6 +7265,23 @@ export declare namespace BilibiliInternal {
|
|
|
7248
7265
|
msg: string
|
|
7249
7266
|
uid: number
|
|
7250
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
|
+
}
|
|
7251
7285
|
}
|
|
7252
7286
|
|
|
7253
7287
|
/**
|