API reference: @salmonui/chat/conversation
ConversationAttachmentinterface
import type { ConversationAttachment } from '@salmonui/chat/conversation';interface ConversationAttachment {
readonly id: string;
readonly name: string;
readonly size?: number;
readonly type?: string;
readonly url?: string;
readonly file?: File;
}
A file attached to a message or pending in the composer.
| Name | Signature | Description |
|---|---|---|
id | readonly id: string; | Stable id (the upload transport's reference, or a generated id). |
name | readonly name: string; | |
sizeoptional | readonly size?: number; | Size in bytes. |
typeoptional | readonly type?: string; | MIME type. |
urloptional | readonly url?: string; | Where the stored file can be opened (from the |
fileoptional | readonly file?: File; | The picked file, when no |