feat: add attach from documents
Signed-off-by: Sebastian <krupinski01@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user