summary refs log tree commit diff
path: root/src/util/schemas
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-09-23 23:51:28 +0200
committerRory& <root@rory.gay>2025-09-29 18:38:06 +0200
commit34bf6cb42bcfe6a50b09c7165b7ba615b3662c8d (patch)
treedc36257420703f88b450d4288fa01114b676caed /src/util/schemas
parentLog validation errors (diff)
downloadserver-ts-34bf6cb42bcfe6a50b09c7165b7ba615b3662c8d.tar.xz
Fix schemas
Diffstat (limited to 'src/util/schemas')
-rw-r--r--src/util/schemas/MessageCreateSchema.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts

index 2bd6ccf5..98c55cf8 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts
@@ -24,6 +24,13 @@ export type MessageCreateAttachment = { filename: string; }; +export type MessageCreateCloudAttachment = { + id?: string; + filename: string; + uploaded_filename: string; + original_content_type?: string; +} + export interface MessageCreateSchema { type?: number; content?: string; @@ -53,7 +60,7 @@ export interface MessageCreateSchema { TODO: we should create an interface for attachments TODO: OpenWAAO<-->attachment-style metadata conversion **/ - attachments?: (MessageCreateAttachment | UploadAttachmentResponse)[]; + attachments?: (MessageCreateAttachment | MessageCreateCloudAttachment)[]; sticker_ids?: string[]; components?: ActionRowComponent[]; // TODO: Fix TypeScript errors in src\api\util\handlers\Message.ts once this is enabled