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

/** The complete diff between two `ExtractionResult` values. */
data class ExtractionDiff(
    /**
     * Unified-diff hunks for the `content` field.
     *
     * Empty when the content is identical.
     */
    val contentDiff: List<DiffHunk> = emptyList(),
    /** Tables present in `b` but not in `a` (by index position, excess right-side tables). */
    val tablesAdded: List<Table> = emptyList(),
    /** Tables present in `a` but not in `b` (by index position, excess left-side tables). */
    val tablesRemoved: List<Table> = emptyList(),
    /** Cell-level changes for table pairs that share the same index and dimensions. */
    val tablesChanged: List<TableDiff> = emptyList(),
    /**
     * Metadata difference, encoded as a JSON object with three top-level keys:
     * `added` (keys present in `b` but not `a`), `removed` (keys present in `a`
     * but not `b`), and `changed` (keys whose values differ — each entry is
     * `{ "from": <value-in-a>, "to": <value-in-b> }`).
     *
     * This is NOT RFC 6902 JSON Patch — we deliberately chose a flatter shape
     * to avoid pulling in a json-patch crate. If you need RFC 6902 semantics
     * (with JSON Pointer paths) feed `a.metadata` and `b.metadata` to your
     * preferred json-patch impl directly.
     */
    val metadataChanged: Any,
    /** Changes to embedded archive children. */
    val embeddedChanges: EmbeddedChanges,
)
