feat(asset): refactor version stack to surface latest metadata and add UI support

This commit is contained in:
yiling
2026-05-22 23:03:29 +08:00
parent 9128517492
commit 0ac075539b
9 changed files with 251 additions and 117 deletions
+13
View File
@@ -102,6 +102,19 @@ export const assetInfoSchema = z.object({
})
.optional(),
ancestorFolders: z.array(ancestorFolderSchema).optional(),
versionStack: z
.object({
id: z.string(),
versions: z.array(
z.object({
version: z.number(),
current: z.boolean(),
id: z.string(),
}),
),
})
.optional()
.nullable(),
})
export type AssetInfo = z.infer<typeof assetInfoSchema>