@laplace.live/internal 1.1.96 → 1.1.98
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 +25 -1
- package/package.json +1 -1
- package/tsconfig.json +3 -1
package/index.d.ts
CHANGED
|
@@ -972,6 +972,9 @@ export declare namespace BilibiliInternal {
|
|
|
972
972
|
* Mar 29, 2025 发现需要传入 w_rid 和 wts,目前不传也没什么问题
|
|
973
973
|
* @example https://api.live.bilibili.com/xlive/web-room/v1/index/getDanmuInfo?id=21756924&type=0&w_rid=a51251c3b57edf22b0e54cb13902aa5b&wts=1743276182
|
|
974
974
|
*
|
|
975
|
+
* May 20, 2025 发现需要传入 web_location 字段了,目前不传也没什么问题
|
|
976
|
+
* @example https://api.live.bilibili.com/xlive/web-room/v1/index/getDanmuInfo?id=30858592&type=0&web_location=444.8&w_rid=2067505b9fe82c4a46ebfad51d6f47a2&wts=1747742639
|
|
977
|
+
*
|
|
975
978
|
* @link https://api.live.bilibili.com/xlive/web-room/v1/index/getDanmuInfo?id=${room_id}&type=0
|
|
976
979
|
*/
|
|
977
980
|
export interface GetDanmuInfo {
|
|
@@ -5232,6 +5235,12 @@ export declare namespace BilibiliInternal {
|
|
|
5232
5235
|
level: number
|
|
5233
5236
|
} | null
|
|
5234
5237
|
uhead_frame: null
|
|
5238
|
+
/**
|
|
5239
|
+
* 舰队指挥官对象,并非所有事件都有
|
|
5240
|
+
*
|
|
5241
|
+
* 已知有:
|
|
5242
|
+
* - `DANMU_MSG`
|
|
5243
|
+
*/
|
|
5235
5244
|
guard_leader: {
|
|
5236
5245
|
is_guard_leader: boolean
|
|
5237
5246
|
} | null
|
|
@@ -5272,7 +5281,11 @@ export declare namespace BilibiliInternal {
|
|
|
5272
5281
|
* 弹幕类型
|
|
5273
5282
|
*/
|
|
5274
5283
|
any, // [0][9]
|
|
5275
|
-
|
|
5284
|
+
/**
|
|
5285
|
+
* [0][10]: 未知
|
|
5286
|
+
* 已知: 2、5
|
|
5287
|
+
*/
|
|
5288
|
+
number, // [0][10]
|
|
5276
5289
|
string, // [0][11]: "#1453BAFF,#4C2263A2,#3353BAFF"
|
|
5277
5290
|
number, // [0][12]: 0, danmaku type
|
|
5278
5291
|
/**
|
|
@@ -7422,6 +7435,17 @@ export declare namespace BilibiliInternal {
|
|
|
7422
7435
|
/** 连击有效期秒 */
|
|
7423
7436
|
combo_timeout: number
|
|
7424
7437
|
}
|
|
7438
|
+
/**
|
|
7439
|
+
* 盲盒信息
|
|
7440
|
+
*
|
|
7441
|
+
* 2025-05-21 新增
|
|
7442
|
+
*/
|
|
7443
|
+
blind_gift: {
|
|
7444
|
+
/** 是否是盲盒 */
|
|
7445
|
+
status: true
|
|
7446
|
+
/** 盲盒id */
|
|
7447
|
+
blind_gift_id: number
|
|
7448
|
+
}
|
|
7425
7449
|
}
|
|
7426
7450
|
}
|
|
7427
7451
|
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Enable latest features
|
|
4
4
|
"lib": ["ESNext", "DOM"],
|
|
5
5
|
"target": "ESNext",
|
|
6
|
-
"module": "
|
|
6
|
+
"module": "Preserve",
|
|
7
7
|
"moduleDetection": "force",
|
|
8
8
|
"jsx": "react-jsx",
|
|
9
9
|
"allowJs": true,
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"strict": true,
|
|
19
19
|
// "skipLibCheck": true,
|
|
20
20
|
"noFallthroughCasesInSwitch": true,
|
|
21
|
+
"noUncheckedIndexedAccess": true,
|
|
22
|
+
"noImplicitOverride": true,
|
|
21
23
|
|
|
22
24
|
// Some stricter flags (disabled by default)
|
|
23
25
|
"noUnusedLocals": false,
|