@laplace.live/internal 1.3.4 → 1.3.6
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 +155 -0
- package/src/namespaces/laplace.d.ts +11 -0
package/package.json
CHANGED
|
@@ -3122,6 +3122,9 @@ export declare namespace BilibiliInternal {
|
|
|
3122
3122
|
*
|
|
3123
3123
|
* 下面的 API 来自个人空间首页,与商城略有区别,大体上是已知的,但是获取不到剩余库存
|
|
3124
3124
|
* @link https://api.bilibili.com/x/garb/v2/user/suit/benefit?item_id=2452&part=skin
|
|
3125
|
+
*
|
|
3126
|
+
* 这个 API 也可以用户获取收藏集中的表情包:
|
|
3127
|
+
* @link https://api.bilibili.com/x/garb/v2/user/suit/benefit?part=cards&item_id=1748414240001
|
|
3125
3128
|
*/
|
|
3126
3129
|
export interface Suit {
|
|
3127
3130
|
code: number
|
|
@@ -3408,6 +3411,12 @@ export declare namespace BilibiliInternal {
|
|
|
3408
3411
|
goods_type: string
|
|
3409
3412
|
image: string
|
|
3410
3413
|
is_symbol: string
|
|
3414
|
+
/**
|
|
3415
|
+
* 如果你需要拿到表情包的 GIF/动态版本,必须解析 `item_emoji_list`
|
|
3416
|
+
* @example ```json
|
|
3417
|
+
* item_emoji_list:"[{"name":"打call","image_webp":"https://i0.hdslb.com/bfs/garb/dad5e7e7e6103bf877acac00c4eba68572397035.webp","image_gif":"https://i0.hdslb.com/bfs/garb/d0e6976a290fdb67230c05e26ba2817fda73d4df.gif","image":"https://i0.hdslb.com/bfs/garb/b76d99fbcd92eee3345f4ddf8479984f2fa4335c.png"},{"name":"摸摸头","image_webp":"https://i0.hdslb.com/bfs/garb/017e670631a131d905af3d1891c92a823dc2acd8.webp","image_gif":"https://i0.hdslb.com/bfs/garb/5a7ff3e306298f32b6161a5ba949ed0ac4364eb2.gif","image":"https://i0.hdslb.com/bfs/garb/78639978b4d9bfd0f95bf934cb41f5dc68a65697.png"},{"name":"OAO","image_webp":"https://i0.hdslb.com/bfs/garb/de33d4411af404a0c14b46dd36497c1eb043d07b.webp","image_gif":"https://i0.hdslb.com/bfs/garb/48454b66f7074b092c4c2240fce919dea567f8a0.gif","image":"https://i0.hdslb.com/bfs/garb/6e154f0258865950c7482be900fa3d1550dbf517.png"},{"name":"麦克风","image_webp":"https://i0.hdslb.com/bfs/garb/b535000cf7856279d277314ecfbca3835808f398.webp","image_gif":"https://i0.hdslb.com/bfs/garb/5704eeb16e93304ead1273b5861309d2d30bc3c6.gif","image":"https://i0.hdslb.com/bfs/garb/abc092d55dd46ebed6e72d5503ee104ae2cbcb77.png"},{"name":"憋不住","image_webp":"https://i0.hdslb.com/bfs/garb/934f1f04adbfee38b6bb818656be31589d99efd1.webp","image_gif":"https://i0.hdslb.com/bfs/garb/a1feac92c4201201304b9412f91d82084dd31a96.gif","image":"https://i0.hdslb.com/bfs/garb/c6459263ea4ab1b4004757cb0399665d723a1f79.png"},{"name":"哈出去","image_webp":"https://i0.hdslb.com/bfs/garb/2f605b508b80600fb6855421bb3a5ed7a89a9cc7.webp","image_gif":"https://i0.hdslb.com/bfs/garb/c1e062e57395e74f166df55bb3bd01a413432aa3.gif","image":"https://i0.hdslb.com/bfs/garb/b34aa78dfb7fe7341c3f94e89d08565e34ba0b4c.png"},{"name":"嘿嘿嘿","image_webp":"https://i0.hdslb.com/bfs/garb/d0915679c253ddf463c796c71c9c31d7bd5f19b2.webp","image_gif":"https://i0.hdslb.com/bfs/garb/5dc2ceb71ac38f186e79742e0e194dcf55a9536b.gif","image":"https://i0.hdslb.com/bfs/garb/682d31cba0400a33bbcb8e77257ffc751fb9d9be.png"},{"name":"蹦迪","image_webp":"https://i0.hdslb.com/bfs/garb/9cd0bc91083addf84ccce47774256e2a47453983.webp","image_gif":"https://i0.hdslb.com/bfs/garb/6a16e5c9f95233606d805a5f0f307a16a9f4d004.gif","image":"https://i0.hdslb.com/bfs/garb/1ead781bee91129c9968dfa8c8272ecd42cd246b.png"},{"name":"开车车","image_webp":"https://i0.hdslb.com/bfs/garb/2c0977d1389283f86aae0551a58705cf2a574891.webp","image_gif":"https://i0.hdslb.com/bfs/garb/53639b08a9be715d5659a33169e224c26d41bd90.gif","image":"https://i0.hdslb.com/bfs/garb/205be3dd4acf2ac5b7df0212be0ec483307a7a71.png"},{"name":"啃憨巴","image_webp":"https://i0.hdslb.com/bfs/garb/8af9d0731e71d72a07effde29e92e16dfb76813b.webp","image_gif":"https://i0.hdslb.com/bfs/garb/99b11c531030849b8dd119437cad838b6eee63be.gif","image":"https://i0.hdslb.com/bfs/garb/22537f0cb06fe16ac37f2de845fd9530b4c36ef7.png"},{"name":"吃手手","image_webp":"https://i0.hdslb.com/bfs/garb/4db1b7c825427fbfc7720da8acc4aeb4e64475f1.webp","image_gif":"https://i0.hdslb.com/bfs/garb/b083634aa25b94b8e8d87c5697f333851d4b6cef.gif","image":"https://i0.hdslb.com/bfs/garb/bc551634acf39e2cd27ed7bbe9045c1e650e7664.png"},{"name":"马赛克","image_webp":"https://i0.hdslb.com/bfs/garb/a41d118bceca855762369d6b8716b39990d47598.webp","image_gif":"https://i0.hdslb.com/bfs/garb/82692f53988e1cb9de2fbe0811a8864650245677.gif","image":"https://i0.hdslb.com/bfs/garb/c4fd5f4ae119398db44e9432ef58d66cc194de14.png"},{"name":"打屁屁","image_webp":"https://i0.hdslb.com/bfs/garb/b39c5d3a8769f79fbbb25b712863b7135168c637.webp","image_gif":"https://i0.hdslb.com/bfs/garb/840a0d9d040410c315386d4a2be0110990fd4f0f.gif","image":"https://i0.hdslb.com/bfs/garb/c06880efee98b0baee5d32c3800d9cf7a899b03a.png"},{"name":"RUA","image_webp":"https://i0.hdslb.com/bfs/garb/da87816b06ce67281bd038e801f12990a15d5ea6.webp","image_gif":"https://i0.hdslb.com/bfs/garb/eb4493fd08a06bf5a7230698c25097e8774bfc6c.gif","image":"https://i0.hdslb.com/bfs/garb/34948f5e838a528946ff07035e1962100ab199ec.png"},{"name":"哒咩","image_webp":"https://i0.hdslb.com/bfs/garb/ae3de6a39f1205cee2aae24580439fd71b0d4aa6.webp","image_gif":"https://i0.hdslb.com/bfs/garb/425e559e5269ba9598d78b99702c57e079a6c075.gif","image":"https://i0.hdslb.com/bfs/garb/f12a1e159b69e8ab26187fc1ee12891cd393612f.png"},{"name":"oi","image_webp":"https://i0.hdslb.com/bfs/garb/23a4ce551378d9ac32688b8437d484388d7888c2.webp","image_gif":"https://i0.hdslb.com/bfs/garb/6354917fddb2a4d1f099accfe237298ed4383579.gif","image":"https://i0.hdslb.com/bfs/garb/6fb46333bcb6f8d34c0aca763432da2cfe4f804e.png"},{"name":"jiojio","image_webp":"https://i0.hdslb.com/bfs/garb/850e95e40f657df8f7e2f8a72d35a416d3d65979.webp","image_gif":"https://i0.hdslb.com/bfs/garb/a80598613316827db865fd6438b5d11100f7da2c.gif","image":"https://i0.hdslb.com/bfs/garb/fb95c0a067e7176a66a6d24fad9bcf213787f2d5.png"},{"name":"生草","image_webp":"https://i0.hdslb.com/bfs/garb/332c0c705f215f8abbd61bdf24d5d82f30525b68.webp","image_gif":"https://i0.hdslb.com/bfs/garb/178dd3d78bd55dac77248ffe67d7d7d27fe838dc.gif","image":"https://i0.hdslb.com/bfs/garb/86a984649f3d07c40a4110b8dc3eb637c0b5a1a2.png"},{"name":"干活","image_webp":"https://i0.hdslb.com/bfs/garb/9df2552ff922516c4cf4edfad3d5c03b273bb599.webp","image_gif":"https://i0.hdslb.com/bfs/garb/90d5af1ea599c2fe4e41a1dd1172f1dc9e36a2d6.gif","image":"https://i0.hdslb.com/bfs/garb/f4469dba56dec9fa7d4007543a23d283443fae64.png"},{"name":"鸽闹钟","image_webp":"https://i0.hdslb.com/bfs/garb/89ce9f4d09e54f0eaaae0d0c6a4eb5073f385838.webp","image_gif":"https://i0.hdslb.com/bfs/garb/5470bae7b22f5d72115c5fc7594718ce8bb30746.gif","image":"https://i0.hdslb.com/bfs/garb/c7339860eb7d06cf5c6f7812411e4f9a0f6e7ce7.png"}]",
|
|
3418
|
+
* ```
|
|
3419
|
+
*/
|
|
3411
3420
|
item_emoji_list: string
|
|
3412
3421
|
permanent: string
|
|
3413
3422
|
preview: string
|
|
@@ -3910,6 +3919,11 @@ export declare namespace BilibiliInternal {
|
|
|
3910
3919
|
start_time: number
|
|
3911
3920
|
end_time: number
|
|
3912
3921
|
redeem_text: string
|
|
3922
|
+
/**
|
|
3923
|
+
* 2: 静态表情包
|
|
3924
|
+
* 15: 动态表情包
|
|
3925
|
+
* 1001: 评论背景
|
|
3926
|
+
*/
|
|
3913
3927
|
redeem_item_type: number
|
|
3914
3928
|
/** 解锁的表情包之类的额外内容可通过此 ID 获取,该 ID 可以拿到 /bilibili/suits/ 下请求到具体数据 */
|
|
3915
3929
|
redeem_item_id: string
|
|
@@ -4243,6 +4257,147 @@ export declare namespace BilibiliInternal {
|
|
|
4243
4257
|
data: null
|
|
4244
4258
|
}
|
|
4245
4259
|
|
|
4260
|
+
/**
|
|
4261
|
+
* 发送红包
|
|
4262
|
+
*
|
|
4263
|
+
* @link https://api.live.bilibili.com/xlive/lottery-interface/v1/popularityRedPocket/SendRedPocket
|
|
4264
|
+
* @example POST /bilibili/live-send-red-pocket
|
|
4265
|
+
*/
|
|
4266
|
+
export type SendRedPocket = SendRedPocketSuccess | SendRedPocketError
|
|
4267
|
+
|
|
4268
|
+
/** Data of `SendRedPocket` when success */
|
|
4269
|
+
export interface SendRedPocketSuccess {
|
|
4270
|
+
code: 0
|
|
4271
|
+
/** @example "0" */
|
|
4272
|
+
message: string
|
|
4273
|
+
ttl: number
|
|
4274
|
+
data: {
|
|
4275
|
+
lot_info: {
|
|
4276
|
+
/** 红包抽奖 ID */
|
|
4277
|
+
lot_id: number
|
|
4278
|
+
/** 发送者 UID */
|
|
4279
|
+
sender_uid: number
|
|
4280
|
+
/** 发送者昵称 */
|
|
4281
|
+
sender_name: string
|
|
4282
|
+
/** 发送者头像 */
|
|
4283
|
+
sender_face: string
|
|
4284
|
+
/** 参与条件,1 为关注 */
|
|
4285
|
+
join_requirement: number
|
|
4286
|
+
/**
|
|
4287
|
+
* 红包弹幕内容
|
|
4288
|
+
*
|
|
4289
|
+
* @example "老板大气!点点红包抽礼物"
|
|
4290
|
+
*/
|
|
4291
|
+
danmu: string
|
|
4292
|
+
/** 红包奖品列表 */
|
|
4293
|
+
awards: SendRedPocketAward[]
|
|
4294
|
+
/** 红包开始时间(秒级时间戳) */
|
|
4295
|
+
start_time: number
|
|
4296
|
+
/** 红包结束时间(秒级时间戳) */
|
|
4297
|
+
end_time: number
|
|
4298
|
+
/** 红包持续时间(秒) */
|
|
4299
|
+
last_time: number
|
|
4300
|
+
/** 红包移除时间(秒级时间戳) */
|
|
4301
|
+
remove_time: number
|
|
4302
|
+
/** 红包替换时间(秒级时间戳) */
|
|
4303
|
+
replace_time: number
|
|
4304
|
+
/** 当前服务器时间(秒级时间戳) */
|
|
4305
|
+
current_time: number
|
|
4306
|
+
/** 红包状态,1 为进行中 */
|
|
4307
|
+
lot_status: number
|
|
4308
|
+
/** H5 红包页面 URL */
|
|
4309
|
+
h5_url: string
|
|
4310
|
+
/** 用户参与状态,2 为已发送 */
|
|
4311
|
+
user_status: number
|
|
4312
|
+
/** 红包配置 ID */
|
|
4313
|
+
lot_config_id: number
|
|
4314
|
+
/** 红包总价(金瓜子) */
|
|
4315
|
+
total_price: number
|
|
4316
|
+
wait_num: number
|
|
4317
|
+
is_mystery: boolean
|
|
4318
|
+
sender_info: {
|
|
4319
|
+
uid: number
|
|
4320
|
+
base: {
|
|
4321
|
+
name: string
|
|
4322
|
+
face: string
|
|
4323
|
+
name_color: number
|
|
4324
|
+
is_mystery: boolean
|
|
4325
|
+
risk_ctrl_info: null
|
|
4326
|
+
origin_info: {
|
|
4327
|
+
name: string
|
|
4328
|
+
face: string
|
|
4329
|
+
}
|
|
4330
|
+
official_info: {
|
|
4331
|
+
role: number
|
|
4332
|
+
title: string
|
|
4333
|
+
desc: string
|
|
4334
|
+
type: number
|
|
4335
|
+
}
|
|
4336
|
+
/** @example "#FF7C28" */
|
|
4337
|
+
name_color_str: string
|
|
4338
|
+
}
|
|
4339
|
+
medal: MedalInfo
|
|
4340
|
+
wealth: {
|
|
4341
|
+
level: number
|
|
4342
|
+
/** @example "ChronosWealth_5.png" */
|
|
4343
|
+
dm_icon_key: string
|
|
4344
|
+
}
|
|
4345
|
+
title: null
|
|
4346
|
+
guard: {
|
|
4347
|
+
/**
|
|
4348
|
+
* - `1`: 总督
|
|
4349
|
+
* - `2`: 提督
|
|
4350
|
+
* - `3`: 舰长
|
|
4351
|
+
*/
|
|
4352
|
+
level: number
|
|
4353
|
+
/** @example "2026-03-30 23:59:59" */
|
|
4354
|
+
expired_str: string
|
|
4355
|
+
} | null
|
|
4356
|
+
uhead_frame: null
|
|
4357
|
+
guard_leader: null
|
|
4358
|
+
}
|
|
4359
|
+
rp_type: number
|
|
4360
|
+
/** 当前参与人数 */
|
|
4361
|
+
join_cnt: number
|
|
4362
|
+
icon_url: string
|
|
4363
|
+
animation_icon_url: string
|
|
4364
|
+
wait_num_v2: number
|
|
4365
|
+
rp_guard_info: null
|
|
4366
|
+
}
|
|
4367
|
+
tips: string
|
|
4368
|
+
need_gold: number
|
|
4369
|
+
/** 订单号 @example "2603212309547063127631308" */
|
|
4370
|
+
order_id: string
|
|
4371
|
+
tips_v2: string
|
|
4372
|
+
}
|
|
4373
|
+
}
|
|
4374
|
+
|
|
4375
|
+
/** 红包奖品信息 */
|
|
4376
|
+
export interface SendRedPocketAward {
|
|
4377
|
+
/** 礼物 ID */
|
|
4378
|
+
gift_id: number
|
|
4379
|
+
/** 礼物数量 */
|
|
4380
|
+
num: number
|
|
4381
|
+
/** 礼物名称 */
|
|
4382
|
+
gift_name: string
|
|
4383
|
+
/** 礼物图片 URL */
|
|
4384
|
+
gift_pic: string
|
|
4385
|
+
guard_sub_pic: string
|
|
4386
|
+
}
|
|
4387
|
+
|
|
4388
|
+
/** Data of `SendRedPocket` when error */
|
|
4389
|
+
export interface SendRedPocketError {
|
|
4390
|
+
/**
|
|
4391
|
+
* - `1300012`: 余额不足
|
|
4392
|
+
* - `1009115`: 等主播开播时再赠送吧
|
|
4393
|
+
* - `1009700`: 送出红包数量上限
|
|
4394
|
+
*/
|
|
4395
|
+
code: number
|
|
4396
|
+
message: string
|
|
4397
|
+
ttl: number
|
|
4398
|
+
data: null
|
|
4399
|
+
}
|
|
4400
|
+
|
|
4246
4401
|
/**
|
|
4247
4402
|
* 视频元信息
|
|
4248
4403
|
* @link https://api.bilibili.com/x/web-interface/view?bvid={bvid}
|
|
@@ -885,6 +885,17 @@ export declare namespace LaplaceInternal {
|
|
|
885
885
|
lastPeriodStart: string
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
+
/**
|
|
889
|
+
* Response for DELETE /laplace/fertility-delete/:uid
|
|
890
|
+
* Deletes the entire fertility cycle record and any pending contributions
|
|
891
|
+
*/
|
|
892
|
+
export interface FertilityDeleteResponse {
|
|
893
|
+
success: true
|
|
894
|
+
uid: number
|
|
895
|
+
/** Number of pending contributions that were also deleted */
|
|
896
|
+
deletedContributions: number
|
|
897
|
+
}
|
|
898
|
+
|
|
888
899
|
// ============================================
|
|
889
900
|
// Fertility Contribution Types (Anonymous Submissions)
|
|
890
901
|
// ============================================
|