@laplace.live/internal 1.2.39 → 1.2.40

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 +40 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1139,6 +1139,46 @@ export declare namespace LaplaceInternal {
1139
1139
  /** List of missing UIDs */
1140
1140
  skippedUids: number[]
1141
1141
  }
1142
+
1143
+ // ============================================
1144
+ // Guild Batch Update Types
1145
+ // ============================================
1146
+
1147
+ /**
1148
+ * A single entry in the guild batch update request
1149
+ * Maps to the raw export format from the agency data
1150
+ */
1151
+ export interface GuildBatchUpdateEntry {
1152
+ /** User's Bilibili UID (maps to bilibili_users.id) */
1153
+ upper_mid: number
1154
+ /** Guild name */
1155
+ live_guild_name: string
1156
+ }
1157
+
1158
+ /**
1159
+ * Request body for POST /laplace/guild-batch-update
1160
+ * Batch updates guild info for multiple users (max 10,000 entries)
1161
+ */
1162
+ export interface GuildBatchUpdateRequest {
1163
+ entries: GuildBatchUpdateEntry[]
1164
+ }
1165
+
1166
+ /**
1167
+ * Response for POST /laplace/guild-batch-update
1168
+ */
1169
+ export interface GuildBatchUpdateResponse {
1170
+ success: true
1171
+ /** Total entries received */
1172
+ total: number
1173
+ /** Users whose guildInfo was changed (new guild or guild change) */
1174
+ updated: number
1175
+ /** Users whose guild matched the latest history entry (no-op) */
1176
+ unchanged: number
1177
+ /** UIDs not found in bilibili_users */
1178
+ skipped: number
1179
+ /** List of missing UIDs */
1180
+ skippedUids: number[]
1181
+ }
1142
1182
  }
1143
1183
 
1144
1184
  /** Migrated from experiments.sparanoid.net */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.2.39",
3
+ "version": "1.2.40",
4
4
  "module": "index.d.ts",
5
5
  "devDependencies": {
6
6
  "@types/bun": "latest"