@laplace.live/internal 1.2.42 → 1.2.44
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 +63 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -536,6 +536,66 @@ export declare namespace LaplaceInternal {
|
|
|
536
536
|
updatedAt: number
|
|
537
537
|
}[]
|
|
538
538
|
} | null
|
|
539
|
+
/** Resolved tags with usage counts. Only present when `?fields=tags` is requested. */
|
|
540
|
+
tags?: LaplaceInternal.HTTPS.Workers.TagWithCount[]
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
// ============================================
|
|
544
|
+
// Tag Types
|
|
545
|
+
// ============================================
|
|
546
|
+
|
|
547
|
+
/** Tag definition (viewer-facing, no internal fields) */
|
|
548
|
+
export interface Tag {
|
|
549
|
+
id: number
|
|
550
|
+
name: string
|
|
551
|
+
color: string | null
|
|
552
|
+
icon: string | null
|
|
553
|
+
description: string | null
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/** Tag with usage count (viewer-facing, entity type is not exposed) */
|
|
557
|
+
export interface TagWithCount extends Tag {
|
|
558
|
+
count: number
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/** Full tag definition (admin-facing, includes internal fields) */
|
|
562
|
+
export interface TagAdmin extends Tag {
|
|
563
|
+
scope: string[] | null
|
|
564
|
+
entityCounts: Record<string, number>
|
|
565
|
+
createdAt: string
|
|
566
|
+
updatedAt: string
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/** Request body for POST /laplace/tags (create tag) */
|
|
570
|
+
export interface TagCreateRequest {
|
|
571
|
+
name: string
|
|
572
|
+
color?: string
|
|
573
|
+
icon?: string
|
|
574
|
+
description?: string
|
|
575
|
+
scope?: string[]
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/** Request body for PATCH /laplace/tags/:id (update tag) */
|
|
579
|
+
export interface TagUpdateRequest {
|
|
580
|
+
name?: string
|
|
581
|
+
color?: string | null
|
|
582
|
+
icon?: string | null
|
|
583
|
+
description?: string | null
|
|
584
|
+
scope?: string[] | null
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/** Request body for POST /laplace/tags/assign (assign tag to entity) */
|
|
588
|
+
export interface TagAssignRequest {
|
|
589
|
+
tagId: number
|
|
590
|
+
entityType: string
|
|
591
|
+
entityId: number
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/** Request body for DELETE /laplace/tags/assign (unassign tag from entity) */
|
|
595
|
+
export interface TagUnassignRequest {
|
|
596
|
+
tagId: number
|
|
597
|
+
entityType: string
|
|
598
|
+
entityId: number
|
|
539
599
|
}
|
|
540
600
|
|
|
541
601
|
/**
|
|
@@ -3704,9 +3764,11 @@ export declare namespace BilibiliInternal {
|
|
|
3704
3764
|
*
|
|
3705
3765
|
* May 30, 2025, 1:24:24 AM PDT 发现该接口也需要 web_location 封控
|
|
3706
3766
|
*
|
|
3707
|
-
*
|
|
3767
|
+
* May 30, 2025, 1:31:07 AM PDT 该请求与 getInfoByRoom 一样,在普通直播间也已经不再使用,会直接嵌入 DOM
|
|
3708
3768
|
* 通过 /blanc/21696950 可暂时强制恢复该请求调用
|
|
3709
3769
|
*
|
|
3770
|
+
* Feb 18, 2026, 11:52:36 PM GMT+8 不知道什么时候开始这个 API 又恢复了😅,正常 web 请求都会用到
|
|
3771
|
+
*
|
|
3710
3772
|
* @link https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo?room_id=1182221&protocol=0&format=0,1,2&codec=0&qn=10000&platform=web&ptype=8&dolby=5&panorama=1
|
|
3711
3773
|
* @link https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo?room_id=31361500&protocol=0%2C1&format=0%2C1%2C2&codec=0%2C1%2C2&qn=10000&platform=web&ptype=8&dolby=5&panorama=1&hdr_type=0%2C1&req_reason=1&web_location=444.8&w_rid=55da3f4eb943b742d067dcc3d3616567&wts=1748589841
|
|
3712
3774
|
*/
|