12 lines
333 B
TypeScript
12 lines
333 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' }),
|
|
|
|
// message: Type.MessageAttachment(),
|
|
}, { title: 'Attachment', description: 'Attachment' })
|