feat: 同步最新生图与身份能力
This commit is contained in:
1 parent
65e8f9c3ba
commit
be06caaa9f
18 files changed
+583
-69
No files matched your search
@@ -8,7 +8,9 @@ import type {
|
||||
GenerateIdentityImageInput,
|
||||
IdentityBatchResult,
|
||||
IdentityImage,
|
||||
IdentityModule,
|
||||
SaveIdentityInput,
|
||||
StableAnchorBatchResult,
|
||||
SubjectIdentity
|
||||
} from './types'
|
||||
|
||||
@@ -29,7 +31,7 @@ export const subjectIdentityApi = {
|
||||
body: { force },
|
||||
timeoutMs: 0
|
||||
}),
|
||||
generateProject: (projectId: string, input: { force: boolean; concurrency: number }) =>
|
||||
generateProject: (projectId: string, input: { force: boolean; concurrency: number; module?: IdentityModule }) =>
|
||||
request<IdentityBatchResult>(`/projects/${encodeURIComponent(projectId)}/subject-identities/generate`, {
|
||||
method: 'POST',
|
||||
body: input,
|
||||
@@ -56,6 +58,15 @@ export const subjectIdentityApi = {
|
||||
`/projects/${encodeURIComponent(projectId)}/character-casting/candidates/generate`,
|
||||
{ method: 'POST', body: input, timeoutMs: 0 }
|
||||
),
|
||||
/** 为场景或道具生成稳定身份母版,并由后端原子设为 Anchor、锁定 Identity。 */
|
||||
generateStableAnchors: (
|
||||
projectId: string,
|
||||
input: { module: 'scene' | 'prop'; limit: number; concurrency: number }
|
||||
) =>
|
||||
request<StableAnchorBatchResult>(
|
||||
`/projects/${encodeURIComponent(projectId)}/subject-identities/anchors/generate`,
|
||||
{ method: 'POST', body: input, timeoutMs: 0 }
|
||||
),
|
||||
listImages: (subjectId: string, signal?: AbortSignal) =>
|
||||
request<IdentityImage[]>(`${identityPath(subjectId)}/images`, { signal }),
|
||||
generateImage: (subjectId: string, input: GenerateIdentityImageInput) =>
|
||||
|
||||
Reference in new issue
Block a user