@laplace.live/internal 1.2.36 → 1.2.38

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 +33 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -524,6 +524,20 @@ export declare namespace LaplaceInternal {
524
524
  updatedAt: number
525
525
  }[]
526
526
  } | null
527
+ /** MCN 机构详细信息 */
528
+ mcnInfo: {
529
+ history: {
530
+ /** MCN agency ID */
531
+ mcnId: number
532
+ /** MCN agency name */
533
+ mcnName: string
534
+ /** Unix timestamp
535
+ *
536
+ * @example 1758039520166
537
+ */
538
+ updatedAt: number
539
+ }[]
540
+ } | null
527
541
  }
528
542
 
529
543
  /**
@@ -777,6 +791,8 @@ export declare namespace LaplaceInternal {
777
791
  effectiveCycleLength: number
778
792
  /** Calculated period length based on history (mean) or user preference */
779
793
  effectivePeriodLength: number
794
+ /** Number of history entries used for calculation */
795
+ dataPoints: number
780
796
  }
781
797
 
782
798
  /**
@@ -1008,6 +1024,23 @@ export declare namespace LaplaceInternal {
1008
1024
  updatedAt: number
1009
1025
  }
1010
1026
 
1027
+ // ============================================
1028
+ // MCN History Types
1029
+ // ============================================
1030
+
1031
+ /**
1032
+ * A single MCN agency history entry - tracks each MCN membership change
1033
+ * Stored in the `mcnInfo.history` JSONB column on bilibili_users table
1034
+ */
1035
+ export interface McnHistoryItem {
1036
+ /** MCN agency ID */
1037
+ mcnId: number
1038
+ /** MCN agency name */
1039
+ mcnName: string
1040
+ /** Unix timestamp (ms) - when this MCN membership was recorded */
1041
+ updatedAt: number
1042
+ }
1043
+
1011
1044
  /**
1012
1045
  * Response for GET /laplace/guild-entry/:uid
1013
1046
  * Returns guild history for a specific user
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.2.36",
3
+ "version": "1.2.38",
4
4
  "module": "index.d.ts",
5
5
  "devDependencies": {
6
6
  "@types/bun": "latest"