feat: 前端增加首帧人工复核状态只读接口与类型

This commit is contained in:
GouJ committed 2026-10-10 13:04:36 +08:00
1 parent 72a86171dc
commit a8165fce3c
1 file changed
+29
+29
View File
@@ -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<KeyframeQualityReview>(
`/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/quality-review`,
{ signal }
),
keyframeHistory: (shotId: string, keyframeId: string, signal?: AbortSignal) =>
request<KeyframeValidationHistoryItem[]>(
`/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/validations`,