Package-level declarations

Types

Link copied to clipboard
sealed interface ErrorState : MviState

Defines the ErrorState contract for the SDAI presentation layer.

Link copied to clipboard
enum ExtraType(val raw: String) : Enum<ExtraType>

Coordinates ExtraType behavior in the SDAI presentation layer.

Link copied to clipboard
sealed interface GenerationModal

Defines the GenerationModal contract for the SDAI presentation layer.

Link copied to clipboard

Coordinates LaunchSource behavior in the SDAI presentation layer.

Link copied to clipboard

Coordinates MotionEvent behavior in the SDAI presentation layer.

Link copied to clipboard
data class PromptTagEditRequest(val prompt: String, val negativePrompt: String, val tag: String, val isNegative: Boolean)

Carries PromptTagEditRequest data through the SDAI presentation layer.

Link copied to clipboard

Maps raw storage counters into byte values that should be visible in usage UI.

Link copied to clipboard

Categories shared by storage and network usage dashboards.

Link copied to clipboard
data class UsageItem(val category: UsageCategory, val bytes: Long, val modelIds: List<String> = emptyList())

One visible usage category row and donut segment.

Link copied to clipboard

Identifies the concrete standalone usage screen rendered by the shared usage UI.

Link copied to clipboard
data class UsageState(val loading: Boolean = false, val items: List<UsageItem> = emptyList(), val selectedCategory: UsageCategory? = null)

Shared immutable state consumed by the donut chart and category list.

Functions

Link copied to clipboard

Compact label for chips and small controls.

Link copied to clipboard
internal fun ServerSource.displayName(platform: Platform): String

Full provider name for setup and source selection screens.

Link copied to clipboard
internal fun ServerSource.isAvailableOn(platform: Platform): Boolean

Returns whether the provider should be selectable on the current platform.

Link copied to clipboard

Returns true for storage categories backed by downloaded local model files.

Link copied to clipboard

Returns true for categories that can appear on the storage usage screen.

Link copied to clipboard

Picks the user-facing readiness badge for the current platform.

Link copied to clipboard

Keeps selection only while the category is still present and non-empty.

Link copied to clipboard

Short provider label used where the full setup name would be too long.

Link copied to clipboard

Returns true when all visible app-private model bytes belong to the Core ML provider.

Link copied to clipboard

Estimates persisted text payload size for gallery records stored as strings.