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

/**
 * Content layer classification for document nodes.
 *
 * Replaces separate body/furniture arrays with per-node granularity.
 */
enum class ContentLayer {
    /** Main document body content. */
    @com.fasterxml.jackson.annotation.JsonProperty("body")
    BODY,
    /** Page/section header (running header). */
    @com.fasterxml.jackson.annotation.JsonProperty("header")
    HEADER,
    /** Page/section footer (running footer). */
    @com.fasterxml.jackson.annotation.JsonProperty("footer")
    FOOTER,
    /** Footnote content. */
    @com.fasterxml.jackson.annotation.JsonProperty("footnote")
    FOOTNOTE;

    @com.fasterxml.jackson.annotation.JsonValue
    fun toWire(): String = when (this) {
        BODY -> "body"
        HEADER -> "header"
        FOOTER -> "footer"
        FOOTNOTE -> "footnote"
    }

    companion object {
        @com.fasterxml.jackson.annotation.JsonCreator
        @JvmStatic
        fun fromWire(value: String): ContentLayer = when (value) {
            "body" -> BODY
            "header" -> HEADER
            "footer" -> FOOTER
            "footnote" -> FOOTNOTE
            else -> throw IllegalArgumentException("Unknown ContentLayer value: $value")
        }
    }
}
