@laplace.live/internal 1.2.1 → 1.2.3

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 (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +15 -31
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @laplace.live/internal
2
2
 
3
- Sparanoid general types
3
+ LAPLACE Live! general types
4
4
 
5
5
  To install:
6
6
 
package/index.d.ts CHANGED
@@ -3517,10 +3517,10 @@ export declare namespace BilibiliInternal {
3517
3517
  config_type: number
3518
3518
  general_config: {
3519
3519
  web_css_style: {
3520
- 'borderRadius': '50%'
3520
+ borderRadius: '50%'
3521
3521
  'background-color'?: 'rgb(255,255,255)'
3522
- 'border'?: '2px solid rgba(255,255,255,1)'
3523
- 'boxSizing'?: 'border-box'
3522
+ border?: '2px solid rgba(255,255,255,1)'
3523
+ boxSizing?: 'border-box'
3524
3524
  }
3525
3525
  }
3526
3526
  }
@@ -3746,10 +3746,10 @@ export declare namespace BilibiliInternal {
3746
3746
  config_type: number
3747
3747
  general_config: {
3748
3748
  web_css_style: {
3749
- 'borderRadius': '50%'
3749
+ borderRadius: '50%'
3750
3750
  'background-color'?: 'rgb(255,255,255)'
3751
- 'border'?: '2px solid rgba(255,255,255,1)'
3752
- 'boxSizing'?: 'border-box'
3751
+ border?: '2px solid rgba(255,255,255,1)'
3752
+ boxSizing?: 'border-box'
3753
3753
  }
3754
3754
  }
3755
3755
  }
@@ -4474,8 +4474,13 @@ export declare namespace BilibiliInternal {
4474
4474
  pre_end_time: number
4475
4475
  is_booked: number
4476
4476
  act_desc: string
4477
- /** 抽奖列表,通常只有一个,打包的会有多个,例如 VR */
4478
- lottery_list: CollectionLotteryList[]
4477
+ /** 抽奖列表
4478
+ *
4479
+ * 通常只有一个,打包的会有多个,例如 VR
4480
+ *
4481
+ * 在某些极端情况下,可以为 null😅,例如 collections/267
4482
+ */
4483
+ lottery_list: CollectionLotteryList[] | null
4479
4484
  share_info: {
4480
4485
  main_title: string
4481
4486
  sub_title: string
@@ -5327,7 +5332,6 @@ export declare namespace BilibiliInternal {
5327
5332
  * 未知,通常为 `'{}'`
5328
5333
  */
5329
5334
  '{}', // [0][14]
5330
-
5331
5335
  {
5332
5336
  /**
5333
5337
  * extra: extraJsonStr = {}
@@ -5356,12 +5360,10 @@ export declare namespace BilibiliInternal {
5356
5360
  // not_show, // 0
5357
5361
  // } // 16
5358
5362
  ],
5359
-
5360
5363
  /**
5361
5364
  * [1]: message
5362
5365
  */
5363
5366
  string,
5364
-
5365
5367
  // [2]
5366
5368
  [
5367
5369
  /**
@@ -5372,7 +5374,6 @@ export declare namespace BilibiliInternal {
5372
5374
  * [2][1]: username
5373
5375
  */
5374
5376
  string,
5375
-
5376
5377
  /**
5377
5378
  * [2][2]: userType
5378
5379
  * 0: normal user
@@ -5387,27 +5388,23 @@ export declare namespace BilibiliInternal {
5387
5388
  * [2][4]: isSvip
5388
5389
  */
5389
5390
  boolean, // 4
5390
-
5391
5391
  /**
5392
5392
  * [2][5]: isNewUser
5393
5393
  * < 10000: new user
5394
5394
  */
5395
5395
  boolean, // 5
5396
-
5397
5396
  /**
5398
5397
  * [2][6]: phoneVerified
5399
5398
  * 0: not verified
5400
5399
  * 1: verified
5401
5400
  */
5402
5401
  number, // 6
5403
-
5404
5402
  // username color in HEX format. normal user is empty
5405
5403
  /**
5406
5404
  * [2][7]: nameColor
5407
5405
  */
5408
5406
  string, // 7
5409
5407
  ],
5410
-
5411
5408
  // [3] badge
5412
5409
  (
5413
5410
  | [
@@ -5448,7 +5445,6 @@ export declare namespace BilibiliInternal {
5448
5445
  ]
5449
5446
  | null
5450
5447
  ),
5451
-
5452
5448
  // [4]
5453
5449
  [
5454
5450
  /**
@@ -5470,13 +5466,10 @@ export declare namespace BilibiliInternal {
5470
5466
  */
5471
5467
  number,
5472
5468
  ],
5473
-
5474
5469
  // [5] 头衔,有头衔时会返回 ["title-902-1", "title-902-1"],无头衔时会返回 ["", ""]
5475
5470
  [string, string], // 5
5476
-
5477
5471
  // [6],通常为一个数字,0,不知道是干什么的
5478
5472
  number, // 6
5479
-
5480
5473
  /**
5481
5474
  * [7]: guardType
5482
5475
  * 0: 白字
@@ -5485,10 +5478,8 @@ export declare namespace BilibiliInternal {
5485
5478
  * 3: 舰长
5486
5479
  */
5487
5480
  number,
5488
-
5489
5481
  // [8],通常为 null
5490
5482
  null, // 8
5491
-
5492
5483
  // [9]
5493
5484
  {
5494
5485
  // This is short and may have collision with high traffic danmakus
@@ -5500,25 +5491,18 @@ export declare namespace BilibiliInternal {
5500
5491
  */
5501
5492
  ct: string
5502
5493
  },
5503
-
5504
5494
  // [10]: 0
5505
5495
  unknown,
5506
-
5507
5496
  // [11]: 0
5508
5497
  unknown,
5509
-
5510
5498
  // [12]: null
5511
5499
  null,
5512
-
5513
5500
  // [13]: null
5514
5501
  null,
5515
-
5516
5502
  // [14]: 0
5517
5503
  number,
5518
-
5519
5504
  // [15]: 70
5520
5505
  number,
5521
-
5522
5506
  // [16]
5523
5507
  [
5524
5508
  /**
@@ -5526,7 +5510,6 @@ export declare namespace BilibiliInternal {
5526
5510
  */
5527
5511
  number,
5528
5512
  ],
5529
-
5530
5513
  /**
5531
5514
  * [17]
5532
5515
  * 当是大航海套票时,此字段存在
@@ -8253,7 +8236,8 @@ export declare namespace Aliyun {
8253
8236
  per: string
8254
8237
  prov: string
8255
8238
  }
8256
- | Record<string, unknown>
8239
+ // biome-ignore lint/complexity/noBannedTypes: expected empty object
8240
+ | {}
8257
8241
  /** 状态,'OK',当传入的地址无效时,依然返回 OK 😅 */
8258
8242
  status: string
8259
8243
  /** 算法处理耗时 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "module": "index.d.ts",
5
5
  "devDependencies": {
6
6
  "@types/bun": "latest"