@laplace.live/internal 1.3.31 → 1.3.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.3.31",
3
+ "version": "1.3.33",
4
4
  "module": "src/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -168,6 +168,7 @@ export declare namespace LaplaceInternal {
168
168
 
169
169
  /** FollowingV2 enrich 用户信息,仅查数据库(不请求上游),无记录时字段为空字符串 */
170
170
  interface FollowingV2EnrichedUser {
171
+ uid: number
171
172
  /** 用户名,数据库无记录时为空字符串 */
172
173
  username: string
173
174
  /**
@@ -188,8 +189,8 @@ export declare namespace LaplaceInternal {
188
189
  lastSeenAt: number
189
190
  unfollowedAt: number
190
191
  }>
191
- /** 按 uid 索引的用户信息,覆盖关注列表与 `laplace.unfollowed` 的全部 uid。`?enrich=1` 时返回,此时 `data.list` 一律为空数组 */
192
- users?: Record<string, FollowingV2EnrichedUser>
192
+ /** 用户信息,覆盖关注列表与 `laplace.unfollowed` 的全部 uid,保持上游关注列表顺序、取关条目在后。`?enrich=1` 时返回,此时 `data.list` 一律为空数组 */
193
+ users?: FollowingV2EnrichedUser[]
193
194
  }
194
195
  }
195
196
 
@@ -1175,6 +1176,15 @@ export declare namespace LaplaceInternal {
1175
1176
  /** Verdict produced by evaluating the AI's structured output against the contribution's claim. */
1176
1177
  export type FertilityAiVerdict = 'valid' | 'invalid' | 'inconclusive'
1177
1178
 
1179
+ /**
1180
+ * What kicked off the check.
1181
+ * - `admin` — an admin pressed the button (POST /laplace/fertility-contribution-ai-check/:id)
1182
+ * - `submit` — fired automatically in the background when the contributor submitted
1183
+ *
1184
+ * Absent on rows written before the auto-check existed; treat undefined as `admin`.
1185
+ */
1186
+ export type FertilityAiTrigger = 'admin' | 'submit'
1187
+
1178
1188
  /**
1179
1189
  * What the system did automatically based on the verdict.
1180
1190
  * - `approved` — verdict was `valid`; approveFertilityContribution succeeded
@@ -1220,6 +1230,8 @@ export declare namespace LaplaceInternal {
1220
1230
  sessionId: string
1221
1231
  model: string
1222
1232
  liveUrl?: string
1233
+ /** What kicked off the check. Undefined on rows predating the auto-check; treat as `admin`. */
1234
+ trigger?: FertilityAiTrigger
1223
1235
  /** ISO 8601 */
1224
1236
  startedAt: string
1225
1237
  /** ISO 8601, set when status leaves 'running' */