@laplace.live/internal 1.3.26 → 1.3.27
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 +22 -1
- package/src/namespaces/laplace.d.ts +73 -22
package/package.json
CHANGED
|
@@ -4429,6 +4429,13 @@ export declare namespace BilibiliInternal {
|
|
|
4429
4429
|
uhead_frame: null
|
|
4430
4430
|
guard_leader: null
|
|
4431
4431
|
}
|
|
4432
|
+
/**
|
|
4433
|
+
* 红包类型
|
|
4434
|
+
*
|
|
4435
|
+
* - 1: 礼物红包
|
|
4436
|
+
* - 2: 上舰红包
|
|
4437
|
+
* - 3: 电池红包
|
|
4438
|
+
*/
|
|
4432
4439
|
rp_type: number
|
|
4433
4440
|
/** 当前参与人数 */
|
|
4434
4441
|
join_cnt: number
|
|
@@ -6357,6 +6364,13 @@ export declare namespace BilibiliInternal {
|
|
|
6357
6364
|
* 是否为神秘人
|
|
6358
6365
|
*/
|
|
6359
6366
|
is_mystery: boolean
|
|
6367
|
+
/**
|
|
6368
|
+
* 红包类型
|
|
6369
|
+
*
|
|
6370
|
+
* - 1: 礼物红包
|
|
6371
|
+
* - 2: 上舰红包
|
|
6372
|
+
* - 3: 电池红包
|
|
6373
|
+
*/
|
|
6360
6374
|
rp_type: number
|
|
6361
6375
|
sender_uinfo: UINFO
|
|
6362
6376
|
/**
|
|
@@ -6454,7 +6468,14 @@ export declare namespace BilibiliInternal {
|
|
|
6454
6468
|
[key: string]: RedEnvelopeResultRewardsItem
|
|
6455
6469
|
}
|
|
6456
6470
|
version: number
|
|
6457
|
-
|
|
6471
|
+
/**
|
|
6472
|
+
* 红包类型
|
|
6473
|
+
*
|
|
6474
|
+
* - 1: 礼物红包
|
|
6475
|
+
* - 2: 上舰红包
|
|
6476
|
+
* - 3: 电池红包
|
|
6477
|
+
*/
|
|
6478
|
+
rp_type: number
|
|
6458
6479
|
/**
|
|
6459
6480
|
* 😅
|
|
6460
6481
|
*/
|
|
@@ -199,46 +199,97 @@ export declare namespace LaplaceInternal {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
|
-
*
|
|
202
|
+
* 哔哩哔哩装扮列表(分页)
|
|
203
|
+
* @link /laplace/suits
|
|
204
|
+
*
|
|
205
|
+
* Query params:
|
|
206
|
+
* - `?page=1` — page number (min 1, default 1)
|
|
207
|
+
* - `?pageSize=100` — items per page (1–500, default 100)
|
|
208
|
+
* - `?all=true` — return every row without pagination; `data` holds everything, `pageSize` equals `total`, `hasMore` is `false`
|
|
209
|
+
* - `?includeUnassigned=true` — include non-fan suits (`user = 0`); default excludes them
|
|
210
|
+
* - `?user=<uid>` — filter to fan suits belonging to this streamer (fan_mid)
|
|
211
|
+
* - `?publisher=<uid>` — filter by publisher/distributor (`owner`)
|
|
212
|
+
* - `?withDetails=true` — include `ownerDetails` on each item (joined owner user row)
|
|
213
|
+
* - `?assets=archived` — rewrite Bilibili CDN URLs to their archived R2 URLs
|
|
214
|
+
*/
|
|
215
|
+
export interface ListSuits {
|
|
216
|
+
data: Suit[]
|
|
217
|
+
total: number
|
|
218
|
+
/** Current page (1-indexed); always `1` when `all=true` */
|
|
219
|
+
page: number
|
|
220
|
+
/** Items per page; equals `total` when `all=true` */
|
|
221
|
+
pageSize: number
|
|
222
|
+
/** Whether more pages follow this one; always `false` when `all=true` */
|
|
223
|
+
hasMore: boolean
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Single suit item returned by {@link ListSuits}.
|
|
228
|
+
* The `properties`, `raw`, `createdAt`, and `updatedAt` columns are omitted by the query.
|
|
203
229
|
*/
|
|
204
|
-
interface Suit {
|
|
230
|
+
export interface Suit {
|
|
205
231
|
id: number
|
|
206
232
|
name: string
|
|
207
|
-
description: string
|
|
208
|
-
|
|
209
|
-
|
|
233
|
+
description: string | null
|
|
234
|
+
/** Unix timestamp (seconds) of sale start */
|
|
235
|
+
startTime: number | null
|
|
236
|
+
totalPurchaseCount: number | null
|
|
237
|
+
/** Associated fan user (streamer) UID; `0` for non-fan suits */
|
|
210
238
|
user: number
|
|
211
239
|
username: string
|
|
240
|
+
/** Publisher/distributor UID (代发行商) */
|
|
212
241
|
owner: number
|
|
213
242
|
image_cover: string | null
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
ownerDetails: {
|
|
243
|
+
/** Present only when `?withDetails=true`; a subset of the joined owner Bilibili user row */
|
|
244
|
+
ownerDetails?: {
|
|
217
245
|
id: number
|
|
218
|
-
room: number
|
|
246
|
+
room: number | null
|
|
219
247
|
username: string
|
|
220
|
-
guild: null
|
|
221
|
-
avatar: string
|
|
248
|
+
guild: number | null
|
|
249
|
+
avatar: string | null
|
|
250
|
+
/** ISO 8601 timestamp */
|
|
222
251
|
updatedAt: string
|
|
223
252
|
} | null
|
|
224
253
|
}
|
|
225
254
|
|
|
226
255
|
/**
|
|
227
|
-
*
|
|
256
|
+
* 哔哩哔哩收藏集列表(分页)
|
|
257
|
+
* @link /laplace/collections
|
|
258
|
+
*
|
|
259
|
+
* Query params:
|
|
260
|
+
* - `?page=1` — page number (min 1, default 1)
|
|
261
|
+
* - `?pageSize=100` — items per page (1–500, default 100)
|
|
262
|
+
* - `?all=true` — return every row without pagination; `data` holds everything, `pageSize` equals `total`, `hasMore` is `false`
|
|
263
|
+
* - `?user=<uid>` — filter to collections whose `relatedUsers` contains this UID
|
|
264
|
+
* - `?assets=archived` — rewrite Bilibili CDN URLs to their archived R2 URLs
|
|
265
|
+
*/
|
|
266
|
+
export interface ListCollections {
|
|
267
|
+
data: Collection[]
|
|
268
|
+
total: number
|
|
269
|
+
/** Current page (1-indexed); always `1` when `all=true` */
|
|
270
|
+
page: number
|
|
271
|
+
/** Items per page; equals `total` when `all=true` */
|
|
272
|
+
pageSize: number
|
|
273
|
+
/** Whether more pages follow this one; always `false` when `all=true` */
|
|
274
|
+
hasMore: boolean
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Single collection item returned by {@link ListCollections}.
|
|
279
|
+
* The `raw`, `createdAt`, and `updatedAt` columns are omitted by the query.
|
|
228
280
|
*/
|
|
229
|
-
interface Collection {
|
|
281
|
+
export interface Collection {
|
|
230
282
|
id: number
|
|
231
283
|
name: string
|
|
232
|
-
description: string
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
284
|
+
description: string | null
|
|
285
|
+
/** Unix timestamp (seconds) of sale start */
|
|
286
|
+
startTime: number | null
|
|
287
|
+
relatedUsers: number[] | null
|
|
288
|
+
totalPreorderCount: number | null
|
|
289
|
+
totalPurchaseCount: number | null
|
|
237
290
|
/** @deprecated use `lottery_image` */
|
|
238
|
-
act_square_img: string
|
|
239
|
-
lottery_image: string
|
|
240
|
-
createdAt: string
|
|
241
|
-
updatedAt: string
|
|
291
|
+
act_square_img: string | null
|
|
292
|
+
lottery_image: string | null
|
|
242
293
|
}
|
|
243
294
|
|
|
244
295
|
/**
|