mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 22:14:50 +00:00
feat(asset): refactor version stack to surface latest metadata and add UI support
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user