@laplace.live/internal 1.2.46 → 1.2.48

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.
Files changed (2) hide show
  1. package/index.d.ts +16 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -549,8 +549,24 @@ export declare namespace LaplaceInternal {
549
549
  * - `?pageSize=100` — items per page (1–500, default 100)
550
550
  * - `?all=true` — return all rows without pagination
551
551
  * - `?tags=1,2,3` — filter to users who have all listed tag IDs (AND)
552
+ * - `?search=keyword` — filter by UID (exact) or username (case-insensitive partial match)
552
553
  */
553
554
  export interface ListBilibiliUsers {
555
+ data: ListBilibiliUsersItem[]
556
+ total: number
557
+ }
558
+
559
+ /**
560
+ * Single user item returned by the list endpoint.
561
+ *
562
+ * Differs from {@link BilibiliUser} (single-user endpoint) because the list
563
+ * query returns raw DB rows without relation joins or sanitization:
564
+ * - `guild` is a raw numeric FK (not a resolved name string)
565
+ * - `tags` is a raw `int[]` (not resolved {@link TagWithCount} objects)
566
+ * - `mcnInfo.history` entries include `mcnId` (stripped in single-user endpoint)
567
+ * - No `guildDetails` relation (only present when joined via single-user query)
568
+ */
569
+ export interface ListBilibiliUsersItem {
554
570
  id: number
555
571
  room: number | null
556
572
  username: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.2.46",
3
+ "version": "1.2.48",
4
4
  "module": "index.d.ts",
5
5
  "devDependencies": {
6
6
  "@types/bun": "latest"