refactor: move attachment metadata schema to shared protocol package

This commit is contained in:
weishu
2026-01-23 16:04:37 +08:00
parent 78f56ad0f7
commit 6f8f44a314
6 changed files with 33 additions and 43 deletions
+11
View File
@@ -91,6 +91,17 @@ export type TodoItem = z.infer<typeof TodoItemSchema>
export const TodosSchema = z.array(TodoItemSchema)
export const AttachmentMetadataSchema = z.object({
id: z.string(),
filename: z.string(),
mimeType: z.string(),
size: z.number(),
path: z.string(),
previewUrl: z.string().optional()
})
export type AttachmentMetadata = z.infer<typeof AttachmentMetadataSchema>
export const DecryptedMessageSchema = z.object({
id: z.string(),
seq: z.number().nullable(),
+1
View File
@@ -2,6 +2,7 @@ export type {
AgentState,
AgentStateCompletedRequest,
AgentStateRequest,
AttachmentMetadata,
DecryptedMessage,
Metadata,
Session,