From a8165fce3c2af583e7b4248bc5b88c999373a353 Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 10 Oct 2026 13:04:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=A6=96=E5=B8=A7=E4=BA=BA=E5=B7=A5=E5=A4=8D=E6=A0=B8=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=8F=AA=E8=AF=BB=E6=8E=A5=E5=8F=A3=E4=B8=8E=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/production/quality-api.ts | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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`,