diff --git a/src/features/production/quality-api.ts b/src/features/production/quality-api.ts index b23b5ce..08c2bf5 100644 --- a/src/features/production/quality-api.ts +++ b/src/features/production/quality-api.ts @@ -11,6 +11,29 @@ import type { VideoRepair } from './quality.types' +/** 首帧人工复核只读摘要,AI 原始判定与人工结论分别展示。 */ +export interface KeyframeQualityReview { + qualityDecision: 'passed' | 'failed' | 'needs_review' | 'unknown' + effectiveQualityStatus: 'passed' | 'failed' | 'needs_review' | 'manual_accepted' | 'unknown' + validationTaskId: string | null + historicalGazePreview: Array<{ + subjectRef: string + targetDescription: string + decision: 'passed' | 'failed' | 'needs_review' + physicalAlignment: string | null + observationCertainty: string | null + reason: string + }> + manualReview: { + reviewId: string + decision: string + reviewer: string | null + reason: string | null + reviewedAt: string | null + } | null + manualReviewAvailable: boolean +} + /** 校验会调用视觉模型,POST 不设短超时、不自动重试;能力检查只读。 */ export const qualityApi = { repairVideo: (shotId: string, videoId: string, maxRepairAttempts: number) => @@ -58,6 +81,12 @@ export const qualityApi = { * @param signal 取消信号 * @returns 后端保存的校验记录列表 */ + /** 零费用读取首帧 AI 证据分歧及人工复核状态。 */ + keyframeQualityReview: (shotId: string, keyframeId: string, signal?: AbortSignal) => + request( + `/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/quality-review`, + { signal } + ), keyframeHistory: (shotId: string, keyframeId: string, signal?: AbortSignal) => request( `/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/validations`,