From c7adb0c25ad93138198d5228786da777e6c84e4c Mon Sep 17 00:00:00 2001 From: GouJ Date: Tue, 1 Sep 2026 10:37:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BD=A2=E6=80=81=E5=9B=BE=E5=BA=93?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E8=BA=AB=E4=BB=BD=E6=AF=8D=E7=89=88=E8=BF=BD?= =?UTF-8?q?=E6=BA=AF=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/subject-images/types.ts | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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[] }