diff --git a/src/features/production/quality-api.ts b/src/features/production/quality-api.ts index 08c2bf5..3162369 100644 --- a/src/features/production/quality-api.ts +++ b/src/features/production/quality-api.ts @@ -87,6 +87,28 @@ export const qualityApi = { `/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/quality-review`, { signal } ), + /** 人工接受前的零费用安全预检查。 */ + previewKeyframeAccept: (shotId: string, keyframeId: string, validationTaskId: string) => + request<{ canAccept: boolean; expectedPrimaryId: string; requiresManualConfirmation: boolean }>( + `/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/quality-review/accept/preview`, + { method: 'POST', body: { validationTaskId } } + ), + /** 人工接受会修改主首帧,必须由用户明确确认。 */ + acceptKeyframeReview: (shotId: string, keyframeId: string, body: { + validationTaskId: string; expectedPrimaryId: string; reviewer: string; reason: string + }) => + request<{ reviewId: string; decision: 'accepted'; primaryChanged: boolean }>( + `/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/quality-review/accept`, + { method: 'POST', body } + ), + /** 人工拒绝只记录审核决定,不删除候选图片。 */ + rejectKeyframeReview: (shotId: string, keyframeId: string, body: { + validationTaskId: string; reviewer: string; reason: string + }) => + request<{ reviewId: string; decision: 'rejected'; primaryChanged: false }>( + `/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/quality-review/reject`, + { method: 'POST', body } + ), keyframeHistory: (shotId: string, keyframeId: string, signal?: AbortSignal) => request( `/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/validations`,