feat(short-drama-agent-front): 接入素材预览审核并完善创作流程
This commit is contained in:
1 parent
f8b0fbb8ca
commit
dc8bb17a23
66 files changed
+2864
-632
No files matched your search
@@ -81,10 +81,10 @@ export const subjectIdentityApi = {
|
||||
timeoutMs: 0
|
||||
}),
|
||||
/**
|
||||
* 读取与实际生图同源的输入预览,道具可能执行已确认的结构模型编译。
|
||||
* 只读编译当前已有资料,与实际生图输入同源,不补齐结构规格。
|
||||
* @param subjectId 正式主体 ID
|
||||
* @param input 与实际生图相同的参数
|
||||
* @param signal 只读预览取消信号,可能付费的道具不传
|
||||
* @param signal 取消过期预览
|
||||
* @returns 后端真实输入与最终参数
|
||||
*/
|
||||
previewImage: (subjectId: string, input: GenerateIdentityImageInput, signal?: AbortSignal) =>
|
||||
@@ -117,19 +117,40 @@ export const subjectIdentityApi = {
|
||||
body: input,
|
||||
timeoutMs: 0
|
||||
}),
|
||||
/**
|
||||
* 确认身份母版,质量审核可能耗时,等待真实服务结果。
|
||||
* @param subjectId 正式主体编号
|
||||
* @param imageId 当前候选编号
|
||||
* @returns 已通过事务确认的图片或锁定回执
|
||||
*/
|
||||
setAnchor: (subjectId: string, imageId: string) =>
|
||||
request<IdentityImage>(`${identityPath(subjectId)}/images/${encodeURIComponent(imageId)}/anchor`, {
|
||||
method: 'PUT'
|
||||
method: 'PUT',
|
||||
timeoutMs: 0
|
||||
}),
|
||||
/**
|
||||
* 确认场景或道具母版,通过质量门禁后锁定身份。
|
||||
* @param subjectId 正式主体编号
|
||||
* @param imageId 当前候选编号
|
||||
* @returns 已通过事务确认的图片或锁定回执
|
||||
*/
|
||||
confirmStableAnchor: (subjectId: string, imageId: string) =>
|
||||
request<ConfirmCastingResult>(
|
||||
`${identityPath(subjectId)}/images/${encodeURIComponent(imageId)}/stable-anchor`,
|
||||
{
|
||||
method: 'PUT'
|
||||
method: 'PUT',
|
||||
timeoutMs: 0
|
||||
}
|
||||
),
|
||||
/**
|
||||
* 确认角色选角,通过质量门禁后锁定演员。
|
||||
* @param subjectId 正式主体编号
|
||||
* @param imageId 当前候选编号
|
||||
* @returns 已通过事务确认的图片或锁定回执
|
||||
*/
|
||||
confirmCasting: (subjectId: string, imageId: string) =>
|
||||
request<ConfirmCastingResult>(`${identityPath(subjectId)}/images/${encodeURIComponent(imageId)}/casting`, {
|
||||
method: 'PUT'
|
||||
method: 'PUT',
|
||||
timeoutMs: 0
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user