@laplace.live/internal 1.3.38 → 1.3.40

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.38",
3
+ "version": "1.3.40",
4
4
  "module": "src/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -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 事件(如 `INTERACT_WORD_V2`)中为 UInfo field 9:type = 1, anon_uid = 2, anon_key_ver = 3,
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
- * 加密后的真实用户信息(base64),疑似可用 `ROOM_ANON_KEY` 事件下发的密钥解密
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
  /**
@@ -1250,8 +1250,8 @@ export declare namespace LaplaceInternal {
1250
1250
  // ============================================
1251
1251
 
1252
1252
  /**
1253
- * AI review session lifecycle on our side.
1254
- * - `running` — Browser Use session dispatched, waiting for terminal status
1253
+ * AI review lifecycle on our side.
1254
+ * - `running` — Browser Use run dispatched, waiting for terminal status
1255
1255
  * - `done` — verdict landed (see aiVerdict)
1256
1256
  * - `errored` — Browser Use failed or returned non-conforming output
1257
1257
  * - `skipped` — source URL was off-list (e.g. not a Bilibili page); never dispatched
@@ -1300,6 +1300,12 @@ export declare namespace LaplaceInternal {
1300
1300
  extractedPeriodStartDate: string | null
1301
1301
  /** YYYY-MM-DD in Asia/Shanghai; the post's publish date (auxiliary). */
1302
1302
  postedAt: string | null
1303
+ /**
1304
+ * HH:mm (24h) in Asia/Shanghai; the post's publish time. Null when the page shows no exact time.
1305
+ *
1306
+ * @since Oct 25, 2026
1307
+ */
1308
+ postedAtTime?: string | null
1303
1309
  contentMentionsPeriod: boolean
1304
1310
  evidenceQuote: string | null
1305
1311
  pageType: 'video' | 'dynamic' | 'livestream_replay' | 'space' | 'unknown'
@@ -1312,8 +1318,12 @@ export declare namespace LaplaceInternal {
1312
1318
  * Used both by the workers and by Drizzle via $type<>().
1313
1319
  */
1314
1320
  export interface FertilityAiData {
1321
+ /** Browser Use session holding the run; empty when skipped. */
1315
1322
  sessionId: string
1323
+ /** Browser Use v4 run polled for the verdict. Absent on skipped checks and rows predating API v4. */
1324
+ runId?: string
1316
1325
  model: string
1326
+ /** Live view of the agent's browser; backfilled once the browser starts, dead once it stops. */
1317
1327
  liveUrl?: string
1318
1328
  /** What kicked off the check. Undefined on rows predating the auto-check; treat as `admin`. */
1319
1329
  trigger?: FertilityAiTrigger
@@ -1321,10 +1331,18 @@ export declare namespace LaplaceInternal {
1321
1331
  startedAt: string
1322
1332
  /** ISO 8601, set when status leaves 'running' */
1323
1333
  checkedAt?: string
1334
+ /** USD. Since API v4, the run's LLM cost only; browser time and proxy traffic are billed per session. */
1324
1335
  costUsd?: string
1325
1336
  confidence?: number
1326
1337
  evidence?: FertilityAiEvidence
1327
1338
  autoActionResult?: FertilityAiAutoActionResult
1339
+ /**
1340
+ * Set when the check moved the contribution's periodStart (unix ms) to the AI's date before auto-approving,
1341
+ * because the contributor had entered the publish date of a "昨天" / "第N天" post.
1342
+ *
1343
+ * @since Oct 25, 2026
1344
+ */
1345
+ periodStartCorrection?: { from: number; to: number }
1328
1346
  errorMessage?: string
1329
1347
  }
1330
1348