mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
refactor: move attachment metadata schema to shared protocol package
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -2,6 +2,7 @@ export type {
|
||||
AgentState,
|
||||
AgentStateCompletedRequest,
|
||||
AgentStateRequest,
|
||||
AttachmentMetadata,
|
||||
DecryptedMessage,
|
||||
Metadata,
|
||||
Session,
|
||||
|
||||
Reference in New Issue
Block a user