feat: 接入视频输入规划与任务筛选
This commit is contained in:
1 parent
9747a8f0ab
commit
2c3e72ae9a
7 files changed
+264
-96
No files matched your search
@@ -9,6 +9,7 @@ import type {
|
||||
KeyframeGenerationPreview,
|
||||
KeyframeSpec,
|
||||
ProjectVideoStatus,
|
||||
ProjectVideoInputPlan,
|
||||
PromptReadiness,
|
||||
ProductionPipelineResult,
|
||||
ProductionPlan,
|
||||
@@ -22,6 +23,7 @@ import type {
|
||||
VideoQualityBatchResult,
|
||||
VideoQualityConfig,
|
||||
VideoGenerationSpec,
|
||||
VideoInputPlan,
|
||||
VideoReadiness,
|
||||
ProjectAssemblyReadiness,
|
||||
EpisodeAssemblyResult
|
||||
@@ -96,6 +98,16 @@ export const productionApi = {
|
||||
}),
|
||||
videoReadiness: (projectId: string, force: boolean, signal?: AbortSignal) =>
|
||||
request<VideoReadiness>(`${projectPath(projectId)}/videos/readiness?force=${force}`, { signal }),
|
||||
/** 预览当前项目或剧集的推荐视频输入模式,不创建 Provider 任务。 */
|
||||
videoInputPlans: (projectId: string, episodeNo?: number, signal?: AbortSignal) => {
|
||||
const params = new URLSearchParams()
|
||||
if (episodeNo) params.set('episodeNo', String(episodeNo))
|
||||
const query = params.size ? `?${params}` : ''
|
||||
return request<ProjectVideoInputPlan>(`${projectPath(projectId)}/video-input-plans${query}`, { signal })
|
||||
},
|
||||
/** 读取单镜头的确定性输入规划。 */
|
||||
videoInputPlan: (shotId: string, signal?: AbortSignal) =>
|
||||
request<VideoInputPlan>(`${shotPath(shotId)}/video-input-plan`, { signal }),
|
||||
/** 启动项目级严格视频质量流水线;创建后由后端自动完成校验、有限修复与晋升。 */
|
||||
generateQualityVideos: (projectId: string, input: GenerateQualityVideosInput) =>
|
||||
request<VideoQualityBatchResult>(`${projectPath(projectId)}/videos/generate-quality`, {
|
||||
|
||||
Reference in new issue
Block a user