@laplace.live/internal 1.2.38 → 1.2.39
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.
- package/index.d.ts +43 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -524,11 +524,9 @@ export declare namespace LaplaceInternal {
|
|
|
524
524
|
updatedAt: number
|
|
525
525
|
}[]
|
|
526
526
|
} | null
|
|
527
|
-
/** MCN 机构详细信息 */
|
|
527
|
+
/** MCN 机构详细信息 (mcnId is internal-only, not exposed in public API) */
|
|
528
528
|
mcnInfo: {
|
|
529
529
|
history: {
|
|
530
|
-
/** MCN agency ID */
|
|
531
|
-
mcnId: number
|
|
532
530
|
/** MCN agency name */
|
|
533
531
|
mcnName: string
|
|
534
532
|
/** Unix timestamp
|
|
@@ -1099,6 +1097,48 @@ export declare namespace LaplaceInternal {
|
|
|
1099
1097
|
uid: number
|
|
1100
1098
|
historyCount: number
|
|
1101
1099
|
}
|
|
1100
|
+
|
|
1101
|
+
// ============================================
|
|
1102
|
+
// MCN Batch Update Types
|
|
1103
|
+
// ============================================
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* A single entry in the MCN batch update request
|
|
1107
|
+
* Maps to the raw export format from the MCN agency data (laplace-scripts)
|
|
1108
|
+
*/
|
|
1109
|
+
export interface McnBatchUpdateEntry {
|
|
1110
|
+
/** User's Bilibili UID (maps to bilibili_users.id) */
|
|
1111
|
+
upper_mid: number
|
|
1112
|
+
/** MCN agency ID */
|
|
1113
|
+
mcn_id: number
|
|
1114
|
+
/** MCN agency company name */
|
|
1115
|
+
mcn_company_name: string
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* Request body for POST /laplace/mcn-update
|
|
1120
|
+
* Batch updates MCN info for multiple users (max 10,000 entries)
|
|
1121
|
+
*/
|
|
1122
|
+
export interface McnBatchUpdateRequest {
|
|
1123
|
+
entries: McnBatchUpdateEntry[]
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Response for POST /laplace/mcn-update
|
|
1128
|
+
*/
|
|
1129
|
+
export interface McnBatchUpdateResponse {
|
|
1130
|
+
success: true
|
|
1131
|
+
/** Total entries received */
|
|
1132
|
+
total: number
|
|
1133
|
+
/** Users whose mcnInfo was changed (new MCN or MCN change) */
|
|
1134
|
+
updated: number
|
|
1135
|
+
/** Users whose MCN matched the latest history entry (no-op) */
|
|
1136
|
+
unchanged: number
|
|
1137
|
+
/** UIDs not found in bilibili_users */
|
|
1138
|
+
skipped: number
|
|
1139
|
+
/** List of missing UIDs */
|
|
1140
|
+
skippedUids: number[]
|
|
1141
|
+
}
|
|
1102
1142
|
}
|
|
1103
1143
|
|
|
1104
1144
|
/** Migrated from experiments.sparanoid.net */
|