diff --git a/src/features/subject-images/types.ts b/src/features/subject-images/types.ts index 4b9eb0c..1cf7760 100644 --- a/src/features/subject-images/types.ts +++ b/src/features/subject-images/types.ts @@ -18,10 +18,17 @@ export interface SubjectImage { /** 详情查询才返回实际使用的 Prompt;列表不包含长文本。 */ prompt?: string negativePrompt?: string | null - /** 详情保留生成追溯信息,可读取当时引用的身份母版 ID。 */ + /** 形态图生成追溯信息,包含当时使用的 Identity Anchor ID。 */ rawJson?: string | null } +/** 当前主体 Identity 只暴露形态图库判断新旧母版所需的轻量信息。 */ +export interface SubjectFormIdentitySummary { + id: string + isLocked: boolean + images: { id: string }[] +} + /** 正式 SubjectForm 及其所属主体、图片,不使用 checkpoint 的领域 formId。 */ export interface SubjectFormAsset { id: string @@ -31,7 +38,14 @@ export interface SubjectFormAsset { appearancePrompt: string | null generationPrompt: string | null isDefault: boolean - subject: { id: string; projectId: string; ref: string; name: string; module: string } + subject: { + id: string + projectId: string + ref: string + name: string + module: string + identity?: SubjectFormIdentitySummary | null + } images: SubjectImage[] }