вложения, канальчики, бим-бим + бам-бам
This commit is contained in:
11
server/schemas/attachment.ts
Normal file
11
server/schemas/attachment.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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' })
|
||||
Reference in New Issue
Block a user