@laplace.live/internal 1.2.15 → 1.2.16

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