// Generated by alef. Do not edit by hand.
@file:Suppress(
    "ktlint:standard:trailing-comma-on-call-site",
    "ktlint:standard:trailing-comma-on-declaration-site",
    "ktlint:standard:spacing-between-declarations-with-comments",
    "ktlint:standard:spacing-between-declarations-with-annotations",
    "ktlint:standard:when-entry-bracing",
    "ktlint:standard:blank-line-between-when-conditions",
    "ktlint:standard:blank-line-before-declaration",
    "ktlint:standard:chain-method-continuation",
    "ktlint:standard:annotation",
    "ktlint:standard:max-line-length",
    "ktlint:standard:no-semi",
    "ktlint:standard:statement-wrapping",
    "MaxLineLength",
    "TooManyFunctions",
    "FunctionParameterNaming",
    "LongParameterList",
    "CyclomaticComplexMethod",
    "LongMethod",
)

package dev.kreuzberg

/**
 * Email attachment representation.
 *
 * Contains metadata and optionally the content of an email attachment.
 */
data class EmailAttachment(
    /** Attachment name (from Content-Disposition header) */
    val name: String? = null,
    /** Filename of the attachment */
    val filename: String? = null,
    /** MIME type of the attachment */
    val mimeType: String? = null,
    /** Size in bytes */
    val size: Long? = null,
    /** Whether this attachment is an image */
    val isImage: Boolean,
    /**
     * Attachment data (if extracted).
     * Uses `bytes.Bytes` for cheap cloning of large buffers.
     */
    val data: ByteArray? = null,
)
