@laplace.live/internal 1.2.15 → 1.2.17

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 +120 -1
  2. package/package.json +6 -3
package/index.d.ts CHANGED
@@ -473,7 +473,7 @@ export declare namespace LaplaceInternal {
473
473
 
474
474
  /**
475
475
  * 用户信息
476
- * @link /bilibili/bilibili-user/<uid>
476
+ * @link /laplace/bilibili-user/:uid
477
477
  */
478
478
  export interface BilibiliUser {
479
479
  /** 对应 UID */
@@ -487,6 +487,7 @@ export declare namespace LaplaceInternal {
487
487
  guild: string
488
488
  room: number
489
489
  liveFansCount: number
490
+ liveFansMedal: string | null
490
491
  avatar: string | null
491
492
  /** 2024-12-15T03:44:13.788Z */
492
493
  updatedAt: string
@@ -8266,6 +8267,124 @@ export declare namespace Danmakus {
8266
8267
  }
8267
8268
  }
8268
8269
 
8270
+ export declare namespace Aicu {
8271
+ /**
8272
+ * Root API response
8273
+ *
8274
+ * @example
8275
+ * {
8276
+ * code: 0,
8277
+ * data: { ... },
8278
+ * message: "",
8279
+ * ttl: 1
8280
+ * }
8281
+ * @link https://api.aicu.cc/api/v3/search/getlivedm?uid=32210417&pn=1&ps=100&keyword=
8282
+ */
8283
+ export interface LiveDm {
8284
+ /** Status code, 0 indicates success */
8285
+ code: number
8286
+
8287
+ /** Main payload */
8288
+ data: {
8289
+ /**
8290
+ * List of room + danmu records
8291
+ *
8292
+ * @example
8293
+ * [
8294
+ * {
8295
+ * roominfo: { ... },
8296
+ * danmu: [ ... ]
8297
+ * }
8298
+ * ]
8299
+ */
8300
+ list: {
8301
+ /**
8302
+ * Room metadata
8303
+ *
8304
+ * @example
8305
+ * {
8306
+ * upname: "五条悟跳舞",
8307
+ * upuid: "32210417",
8308
+ * roomid: "2156755",
8309
+ * roomname: "让俺移动端看看怎么个事儿"
8310
+ * }
8311
+ */
8312
+ roominfo: {
8313
+ /** Streamer display name */
8314
+ upname: string
8315
+
8316
+ /** Streamer UID (stringified number) */
8317
+ upuid: string
8318
+
8319
+ /** Room ID (stringified number) */
8320
+ roomid: string
8321
+
8322
+ /** Room title */
8323
+ roomname: string
8324
+ }
8325
+
8326
+ /**
8327
+ * Danmu (chat messages) sent in this room
8328
+ *
8329
+ * @example
8330
+ * [
8331
+ * { uname: "五条悟跳舞", text: "666", ts: 1766410063 }
8332
+ * ]
8333
+ */
8334
+ danmu: {
8335
+ /** Username of the sender */
8336
+ uname: string
8337
+
8338
+ /**
8339
+ * Message content
8340
+ * Can be plain text or emoticon codes like "[Icomochi_萌萌]"
8341
+ */
8342
+ text: string
8343
+
8344
+ /**
8345
+ * Unix timestamp (seconds)
8346
+ *
8347
+ * @example
8348
+ * 1767347950
8349
+ */
8350
+ ts: number
8351
+ }[]
8352
+ }[]
8353
+
8354
+ /**
8355
+ * Pagination cursor info
8356
+ *
8357
+ * @example
8358
+ * {
8359
+ * is_end: false,
8360
+ * all_count: 180
8361
+ * }
8362
+ */
8363
+ cursor: {
8364
+ /**
8365
+ * Whether this is the last page
8366
+ *
8367
+ * @example false
8368
+ */
8369
+ is_end: boolean
8370
+
8371
+ /**
8372
+ * Total available records
8373
+ *
8374
+ * @example 180
8375
+ */
8376
+ all_count: number
8377
+ }
8378
+ }
8379
+
8380
+ /** Optional message, usually empty on success */
8381
+ message: string
8382
+
8383
+ /** Cache TTL in seconds */
8384
+ ttl: number
8385
+ }
8386
+ }
8387
+
8269
8388
  /**
8270
8389
  * vup.loveava.top API
8271
8390
  */
package/package.json CHANGED
@@ -1,17 +1,20 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "module": "index.d.ts",
5
5
  "devDependencies": {
6
6
  "@types/bun": "latest"
7
7
  },
8
8
  "peerDependencies": {
9
- "typescript": "^5.9.2"
9
+ "typescript": "^5.9.3"
10
10
  },
11
11
  "license": "AGPL-3.0",
12
12
  "scripts": {
13
13
  "publish:npm": "npm publish",
14
14
  "publish:jsr": "bunx jsr publish"
15
15
  },
16
- "type": "module"
16
+ "type": "module",
17
+ "publishConfig": {
18
+ "access": "public"
19
+ }
17
20
  }