feat: add attach from documents

Signed-off-by: Sebastian <krupinski01@gmail.com>
This commit is contained in:
2026-08-15 12:55:59 -04:00
parent 8a18494883
commit 4839f822fa
9 changed files with 591 additions and 107 deletions
+6 -2
View File
@@ -22,7 +22,7 @@ export interface CompositionMessageInterface {
export interface CompositionAttachmentInterface {
identifier: string
composition: string
origin: 'source' | 'upload'
origin: 'device' | 'message' | 'documents'
name: string
type: string
size: number
@@ -94,13 +94,17 @@ export interface CompositionAttachmentAddRequest {
}
export interface CompositionAttachmentAddResponse {
disposition: 'added' | 'error'
disposition: 'added' | 'partial' | 'error'
error?: {
type: string
message: string
}
composition: string
attachments: Record<string, CompositionAttachmentInterface>
failed?: {
identifier: string
message: string
}[]
}
export interface CompositionAttachmentRemoveRequest {