// 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

/** Embedded file descriptor extracted from the PDF name tree. */
data class EmbeddedFile(
    /** The filename as stored in the PDF name tree. */
    val name: String,
    /** Raw file bytes from the embedded stream (already decompressed by lopdf). */
    val data: ByteArray,
    /**
     * Compressed byte count of the original stream (before decompression).
     *
     * Used by callers to compute the decompression ratio and detect zip-bomb-style
     * attacks that embed a tiny compressed stream expanding to gigabytes of data.
     */
    val compressedSize: Long,
    /** MIME type if specified in the filespec, otherwise `null`. */
    val mimeType: String? = null,
)
