@laplace.live/internal 1.2.41 → 1.2.43
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 +87 -3
- 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
|
/**
|
|
@@ -740,6 +800,17 @@ export declare namespace LaplaceInternal {
|
|
|
740
800
|
updatedAt: number
|
|
741
801
|
}[]
|
|
742
802
|
} | null
|
|
803
|
+
/** MCN agency membership info */
|
|
804
|
+
mcnInfo: {
|
|
805
|
+
history: {
|
|
806
|
+
/** MCN agency ID */
|
|
807
|
+
mcnId: number
|
|
808
|
+
/** MCN agency name */
|
|
809
|
+
mcnName: string
|
|
810
|
+
/** Unix timestamp in milliseconds */
|
|
811
|
+
updatedAt: number
|
|
812
|
+
}[]
|
|
813
|
+
} | null
|
|
743
814
|
} | null
|
|
744
815
|
status: FertilityStatus
|
|
745
816
|
dayInCycle: number
|
|
@@ -778,6 +849,17 @@ export declare namespace LaplaceInternal {
|
|
|
778
849
|
updatedAt: number
|
|
779
850
|
}[]
|
|
780
851
|
} | null
|
|
852
|
+
/** MCN agency membership info */
|
|
853
|
+
mcnInfo: {
|
|
854
|
+
history: {
|
|
855
|
+
/** MCN agency ID */
|
|
856
|
+
mcnId: number
|
|
857
|
+
/** MCN agency name */
|
|
858
|
+
mcnName: string
|
|
859
|
+
/** Unix timestamp in milliseconds */
|
|
860
|
+
updatedAt: number
|
|
861
|
+
}[]
|
|
862
|
+
} | null
|
|
781
863
|
} | null
|
|
782
864
|
status: FertilityStatus
|
|
783
865
|
dayInCycle: number
|
|
@@ -1155,8 +1237,8 @@ export declare namespace LaplaceInternal {
|
|
|
1155
1237
|
export interface GuildBatchUpdateEntry {
|
|
1156
1238
|
/** User's Bilibili UID (maps to bilibili_users.id) */
|
|
1157
1239
|
upper_mid: number
|
|
1158
|
-
/** Guild name */
|
|
1159
|
-
live_guild_name: string
|
|
1240
|
+
/** Guild name (null if user is not in any guild) */
|
|
1241
|
+
live_guild_name: string | null
|
|
1160
1242
|
}
|
|
1161
1243
|
|
|
1162
1244
|
/**
|
|
@@ -3682,9 +3764,11 @@ export declare namespace BilibiliInternal {
|
|
|
3682
3764
|
*
|
|
3683
3765
|
* May 30, 2025, 1:24:24 AM PDT 发现该接口也需要 web_location 封控
|
|
3684
3766
|
*
|
|
3685
|
-
*
|
|
3767
|
+
* May 30, 2025, 1:31:07 AM PDT 该请求与 getInfoByRoom 一样,在普通直播间也已经不再使用,会直接嵌入 DOM
|
|
3686
3768
|
* 通过 /blanc/21696950 可暂时强制恢复该请求调用
|
|
3687
3769
|
*
|
|
3770
|
+
* Feb 18, 2026, 11:52:36 PM GMT+8 不知道什么时候开始这个 API 又恢复了😅,正常 web 请求都会用到
|
|
3771
|
+
*
|
|
3688
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
|
|
3689
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
|
|
3690
3774
|
*/
|