Member Junction
    Preparing search index...

    Attachment data with actual content for building ChatMessageContent. Used when loading attachments from storage to pass to AI providers.

    interface AttachmentData {
        content: string;
        durationSeconds?: number;
        fileName?: string;
        height?: number;
        mimeType: string;
        sizeBytes?: number;
        type: AttachmentType;
        width?: number;
    }
    Index

    Properties

    content: string

    The actual content: data URL (data:mime;base64,xxx) or pre-authenticated URL

    durationSeconds?: number

    Duration in seconds (for audio/video)

    fileName?: string

    Original filename

    height?: number

    Height in pixels (for images/videos)

    mimeType: string

    MIME type (e.g., "image/png", "video/mp4")

    sizeBytes?: number

    File size in bytes

    Type category of the attachment

    width?: number

    Width in pixels (for images/videos)