Member Junction
    Preparing search index...

    Represents an attachment on a message for display

    interface MessageAttachment {
        artifactId?: string;
        artifactTypeName?: string;
        artifactVersionId?: string;
        contentUrl?: string;
        fileName: string | null;
        height?: number;
        id: string;
        mimeType: string;
        sizeBytes: number;
        source?: "artifact" | "upload";
        thumbnailUrl?: string;
        type: "Image" | "Video" | "Audio" | "Document";
        width?: number;
    }
    Index

    Properties

    artifactId?: string

    For source='artifact': the underlying MJArtifact.ID so clicks can open the viewer.

    artifactTypeName?: string

    For source='artifact': resolved MJArtifactType.Name, e.g. "Data Snapshot". Drives the type badge.

    artifactVersionId?: string

    For source='artifact': the underlying MJArtifactVersion.ID.

    contentUrl?: string
    fileName: string | null
    height?: number
    id: string
    mimeType: string
    sizeBytes: number
    source?: "artifact" | "upload"

    Source of the attachment: 'upload' for chat uploads, 'artifact' for artifact picker

    thumbnailUrl?: string
    type: "Image" | "Video" | "Audio" | "Document"
    width?: number