@laplace.live/internal 1.2.3 → 1.2.6

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 +25 -5
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -5219,10 +5219,11 @@ export declare namespace BilibiliInternal {
5219
5219
  title_css_id: string
5220
5220
  } | null
5221
5221
  /**
5222
- * 大航海信息,已知下列事件中包含:
5222
+ * 当前直播间的大航海信息(非粉丝牌的大航海状态),已知下列事件中包含:
5223
5223
  * - `ONLINE_RANK_V2`
5224
5224
  * - `EFFECT_DANMAKU_MSG`
5225
5225
  * - `SUPER_CHAT_MESSAGE`
5226
+ * - `LIKE_INFO_V3_CLICK`
5226
5227
  *
5227
5228
  * 已知无:
5228
5229
  * - `SEND_GIFT`
@@ -5763,6 +5764,7 @@ export declare namespace BilibiliInternal {
5763
5764
  dm_icon_key: string
5764
5765
  }
5765
5766
  business: number
5767
+ new_style: number
5766
5768
  icon_list: string[]
5767
5769
  max_delay_time: number
5768
5770
  /** ie. 1680586909839989500 */
@@ -6243,7 +6245,10 @@ export declare namespace BilibiliInternal {
6243
6245
  /** Item of `INTERACT_WORD` */
6244
6246
  export interface FansMedalItem {
6245
6247
  /**
6246
- * 直播间号,在点赞事件中返回 0,其他类型事件需要更多确认
6248
+ * 直播间号
6249
+ *
6250
+ * 在下列事件中返回 0 😅,其他类型事件需要更多确认:
6251
+ * - LIKE_INFO_V3_CLICK
6247
6252
  */
6248
6253
  anchor_roomid: number
6249
6254
  /**
@@ -7272,15 +7277,30 @@ export declare namespace BilibiliInternal {
7272
7277
  export interface LIVE {
7273
7278
  cmd: 'LIVE'
7274
7279
  live_key: string
7280
+ /**
7281
+ * 语音直播时,此处不为空
7282
+ *
7283
+ * @default ''
7284
+ */
7275
7285
  voice_background: string
7276
7286
  sub_session_key: string
7277
7287
  /** 开播平台:例如 pc */
7278
7288
  live_platform: string
7279
- /** 未知,通常为 0 */
7289
+ /**
7290
+ * 使用内置 Live2D 模式直播时,此处不为 0
7291
+ *
7292
+ * @default 0
7293
+ */
7280
7294
  live_model: number
7281
7295
  roomid: number
7282
- /** 开播 unix 时间戳,例如 `1718132706` */
7283
- live_time: number
7296
+ /**
7297
+ * 开播 unix 时间戳
7298
+ *
7299
+ * 开播时,必会触发两次,通常情况下,第一次带 `live_time` 以及额外的 `special_types` 字段,第二次触发的则不带这两个字段
7300
+ *
7301
+ * @example 1718132706
7302
+ */
7303
+ live_time?: number
7284
7304
  }
7285
7305
 
7286
7306
  /**
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.2.3",
3
+ "version": "1.2.6",
4
4
  "module": "index.d.ts",
5
5
  "devDependencies": {
6
6
  "@types/bun": "latest"
7
7
  },
8
8
  "peerDependencies": {
9
- "typescript": "^5.8.3"
9
+ "typescript": "^5.9.2"
10
10
  },
11
11
  "license": "AGPL-3.0",
12
12
  "scripts": {