mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
feat(server): adapt context model (#11028)
expose more field in listContextObject
This commit is contained in:
@@ -34,6 +34,13 @@ export enum ContextCategories {
|
||||
export const ContextDocSchema = z.object({
|
||||
id: z.string(),
|
||||
createdAt: z.number(),
|
||||
status: z
|
||||
.enum([
|
||||
ContextEmbedStatus.processing,
|
||||
ContextEmbedStatus.finished,
|
||||
ContextEmbedStatus.failed,
|
||||
])
|
||||
.nullable(),
|
||||
});
|
||||
|
||||
export const ContextFileSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user