feat: 形态图库补充身份母版追溯类型

This commit is contained in:
GouJ
2026-09-01 10:37:05 +08:00
parent 95bd12cfcd
commit c7adb0c25a
+16 -2
View File
@@ -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[]
}