@laplace.live/internal 1.2.39 → 1.2.41
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 +53 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1116,7 +1116,7 @@ export declare namespace LaplaceInternal {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
|
|
1118
1118
|
/**
|
|
1119
|
-
* Request body for POST /laplace/mcn-update
|
|
1119
|
+
* Request body for POST /laplace/mcn-batch-update
|
|
1120
1120
|
* Batch updates MCN info for multiple users (max 10,000 entries)
|
|
1121
1121
|
*/
|
|
1122
1122
|
export interface McnBatchUpdateRequest {
|
|
@@ -1124,17 +1124,65 @@ export declare namespace LaplaceInternal {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
|
|
1126
1126
|
/**
|
|
1127
|
-
* Response for POST /laplace/mcn-update
|
|
1127
|
+
* Response for POST /laplace/mcn-batch-update
|
|
1128
1128
|
*/
|
|
1129
1129
|
export interface McnBatchUpdateResponse {
|
|
1130
1130
|
success: true
|
|
1131
1131
|
/** Total entries received */
|
|
1132
1132
|
total: number
|
|
1133
|
-
/**
|
|
1133
|
+
/** Count of users whose mcnInfo was changed */
|
|
1134
1134
|
updated: number
|
|
1135
|
-
/**
|
|
1135
|
+
/** UIDs whose mcnInfo was changed (new MCN or MCN change) */
|
|
1136
|
+
updatedUids: number[]
|
|
1137
|
+
/** Count of users whose MCN matched the latest history entry (no-op) */
|
|
1136
1138
|
unchanged: number
|
|
1137
|
-
/** UIDs
|
|
1139
|
+
/** UIDs whose MCN matched the latest history entry (no-op) */
|
|
1140
|
+
unchangedUids: number[]
|
|
1141
|
+
/** Count of UIDs not found in bilibili_users */
|
|
1142
|
+
skipped: number
|
|
1143
|
+
/** List of missing UIDs */
|
|
1144
|
+
skippedUids: number[]
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
// ============================================
|
|
1148
|
+
// Guild Batch Update Types
|
|
1149
|
+
// ============================================
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* A single entry in the guild batch update request
|
|
1153
|
+
* Maps to the raw export format from the agency data
|
|
1154
|
+
*/
|
|
1155
|
+
export interface GuildBatchUpdateEntry {
|
|
1156
|
+
/** User's Bilibili UID (maps to bilibili_users.id) */
|
|
1157
|
+
upper_mid: number
|
|
1158
|
+
/** Guild name */
|
|
1159
|
+
live_guild_name: string
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Request body for POST /laplace/guild-batch-update
|
|
1164
|
+
* Batch updates guild info for multiple users (max 10,000 entries)
|
|
1165
|
+
*/
|
|
1166
|
+
export interface GuildBatchUpdateRequest {
|
|
1167
|
+
entries: GuildBatchUpdateEntry[]
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* Response for POST /laplace/guild-batch-update
|
|
1172
|
+
*/
|
|
1173
|
+
export interface GuildBatchUpdateResponse {
|
|
1174
|
+
success: true
|
|
1175
|
+
/** Total entries received */
|
|
1176
|
+
total: number
|
|
1177
|
+
/** Count of users whose guildInfo was changed */
|
|
1178
|
+
updated: number
|
|
1179
|
+
/** UIDs whose guildInfo was changed (new guild or guild change) */
|
|
1180
|
+
updatedUids: number[]
|
|
1181
|
+
/** Count of users whose guild matched the latest history entry (no-op) */
|
|
1182
|
+
unchanged: number
|
|
1183
|
+
/** UIDs whose guild matched the latest history entry (no-op) */
|
|
1184
|
+
unchangedUids: number[]
|
|
1185
|
+
/** Count of UIDs not found in bilibili_users */
|
|
1138
1186
|
skipped: number
|
|
1139
1187
|
/** List of missing UIDs */
|
|
1140
1188
|
skippedUids: number[]
|