@laplace.live/internal 1.2.45 → 1.2.47
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 +56 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -540,6 +540,62 @@ export declare namespace LaplaceInternal {
|
|
|
540
540
|
tags?: LaplaceInternal.HTTPS.Workers.TagWithCount[]
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
+
/**
|
|
544
|
+
* 列表哔哩哔哩用户(分页)
|
|
545
|
+
* @link /laplace/bilibili-users
|
|
546
|
+
*
|
|
547
|
+
* Query params:
|
|
548
|
+
* - `?page=1` — page number (min 1, default 1)
|
|
549
|
+
* - `?pageSize=100` — items per page (1–500, default 100)
|
|
550
|
+
* - `?all=true` — return all rows without pagination
|
|
551
|
+
* - `?tags=1,2,3` — filter to users who have all listed tag IDs (AND)
|
|
552
|
+
*/
|
|
553
|
+
export interface ListBilibiliUsers {
|
|
554
|
+
data: ListBilibiliUsersItem[]
|
|
555
|
+
total: number
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* Single user item returned by the list endpoint.
|
|
560
|
+
*
|
|
561
|
+
* Differs from {@link BilibiliUser} (single-user endpoint) because the list
|
|
562
|
+
* query returns raw DB rows without relation joins or sanitization:
|
|
563
|
+
* - `guild` is a raw numeric FK (not a resolved name string)
|
|
564
|
+
* - `tags` is a raw `int[]` (not resolved {@link TagWithCount} objects)
|
|
565
|
+
* - `mcnInfo.history` entries include `mcnId` (stripped in single-user endpoint)
|
|
566
|
+
* - No `guildDetails` relation (only present when joined via single-user query)
|
|
567
|
+
*/
|
|
568
|
+
export interface ListBilibiliUsersItem {
|
|
569
|
+
id: number
|
|
570
|
+
room: number | null
|
|
571
|
+
username: string
|
|
572
|
+
liveFansCount: number | null
|
|
573
|
+
liveFansMedal: string | null
|
|
574
|
+
liveStatus: number | null
|
|
575
|
+
/** @deprecated use `guildInfo` instead */
|
|
576
|
+
guild: number | null
|
|
577
|
+
avatar: string | null
|
|
578
|
+
guildInfo: {
|
|
579
|
+
history: {
|
|
580
|
+
name: string
|
|
581
|
+
/** Unix timestamp */
|
|
582
|
+
updatedAt: number
|
|
583
|
+
}[]
|
|
584
|
+
} | null
|
|
585
|
+
mcnInfo: {
|
|
586
|
+
history: {
|
|
587
|
+
mcnId: number
|
|
588
|
+
mcnName: string
|
|
589
|
+
/** Unix timestamp */
|
|
590
|
+
updatedAt: number
|
|
591
|
+
}[]
|
|
592
|
+
} | null
|
|
593
|
+
/** Raw integer tag IDs assigned to this user */
|
|
594
|
+
tags: number[] | null
|
|
595
|
+
/** ISO 8601 timestamp */
|
|
596
|
+
updatedAt: string
|
|
597
|
+
}
|
|
598
|
+
|
|
543
599
|
// ============================================
|
|
544
600
|
// Tag Types
|
|
545
601
|
// ============================================
|