Files
chad/server/plugins/schemas/attachment.ts

14 lines
393 B
TypeScript

import { Type } from 'typebox'
export const AttachmentSchema = Type.Object({
id: Type.String(),
name: Type.String(),
mimetype: Type.String(),
size: Type.Number({ minimum: 0 }),
createdAt: Type.String({ format: 'date-time' }),
}, { $id: 'Attachment' })
export const GetAttachmentParamsSchema = Type.Object({
id: Type.String({ format: 'uuid' }),
}, { $id: 'GetAttachmentParams' })