package wang.yaojia.webterm.api.models

import kotlinx.serialization.Serializable
import java.util.UUID

/**
 * `GET /live-sessions/:id/preview` response: the tail of the session's ring buffer for a
 * read-only thumbnail (no attach, no client registered). [data] is opaque ANSI/UTF-8 — feed it to
 * a terminal, never parse it. All fields required (a malformed body → `InvalidResponseBody`).
 */
@Serializable
public data class SessionPreview(
    @Serializable(with = UuidSerializer::class) val id: UUID,
    val cols: Int,
    val rows: Int,
    val data: String,
)
