ExportSelection

sealed interface ExportSelection

Shared selection of which captured network transactions an export (HAR, Postman) should include. Declared once here -- rather than separately in sdk:server-ktor and sdk:full -- so the browser export routes and the Android in-app exporter can never select a different set of rows for what a caller intends to be the same export. Mirrors the shape of io.devconsole.export.ExportScope (whole/time-range/explicit-ids), which plays the same role for timeline-event ZIP exports; the two are kept as separate types because they select over different id spaces (transaction ids here, event ids there), not because the selection dimensions differ.

Inheritors

Types

Link copied to clipboard
data object All : ExportSelection

Every transaction the store currently holds, subject to whatever query filters accompany it.

Link copied to clipboard
data class Ids(val ids: Set<String>) : ExportSelection

Exactly the transactions named by id; unknown ids are silently dropped, never an error.

Link copied to clipboard
data class TimeRange(val fromEpochMs: Long, val toEpochMs: Long) : ExportSelection

Transactions started within the inclusive fromEpochMs..toEpochMs window.