Package-level declarations

Types

Link copied to clipboard
data class AiGenerationResult(val id: Long, val image: String, val inputImage: String, val createdAt: Long, val type: AiGenerationResult.Type, val prompt: String, val negativePrompt: String, val width: Int, val height: Int, val samplingSteps: Int, val cfgScale: Float, val restoreFaces: Boolean, val sampler: String, val seed: String, val subSeed: String, val subSeedStrength: Float, val denoisingStrength: Float, val hidden: Boolean)

Carries AiGenerationResult data through the SDAI domain layer.

Link copied to clipboard
sealed interface BackgroundWorkResult

Defines the BackgroundWorkResult contract for the SDAI domain layer.

Link copied to clipboard
data class BackgroundWorkStatus(val running: Boolean, val statusTitle: String, val statusSubTitle: String)

Carries BackgroundWorkStatus data through the SDAI domain layer.

Link copied to clipboard

Coordinates ColorToken behavior in the SDAI domain layer.

Link copied to clipboard
data class Configuration(val serverUrl: String = "", val swarmUiUrl: String = "", val swarmUiModel: String = "", val demoMode: Boolean = false, val source: ServerSource = ServerSource.AUTOMATIC1111, val hordeApiKey: String = "", val openAiApiKey: String = "", val huggingFaceApiKey: String = "", val huggingFaceModel: String = "", val stabilityAiApiKey: String = "", val stabilityAiEngineId: String = "", val authCredentials: AuthorizationCredentials = AuthorizationCredentials.None, val localOnnxModelId: String = "", val localOnnxModelPath: String = "", val localMediaPipeModelId: String = "", val localMediaPipeModelPath: String = "")

Carries Configuration data through the SDAI domain layer.

Link copied to clipboard

Coordinates DarkThemeToken behavior in the SDAI domain layer.

Link copied to clipboard
sealed interface DownloadState

Defines the DownloadState contract for the SDAI domain layer.

Link copied to clipboard
data class Embedding(val keyword: String)

Carries Embedding data through the SDAI domain layer.

Link copied to clipboard

Coordinates FeatureTag behavior in the SDAI domain layer.

Link copied to clipboard
enum Grid(val size: Int) : Enum<Grid>

Coordinates Grid behavior in the SDAI domain layer.

Link copied to clipboard
data class HordeProcessStatus(val waitTimeSeconds: Int, val queuePosition: Int?)

Carries HordeProcessStatus data through the SDAI domain layer.

Link copied to clipboard
data class HuggingFaceModel(val id: String, val name: String, val alias: String, val source: String)

Carries HuggingFaceModel data through the SDAI domain layer.

Link copied to clipboard
data class ImageToImagePayload(val base64Image: String, val base64MaskImage: String, val denoisingStrength: Float, val prompt: String, val negativePrompt: String, val samplingSteps: Int, val cfgScale: Float, val width: Int, val height: Int, val restoreFaces: Boolean, val seed: String, val subSeed: String, val subSeedStrength: Float, val sampler: String, val nsfw: Boolean, val batchCount: Int, val inPaintingMaskInvert: Int, val inPaintFullResPadding: Int, val inPaintingFill: Int, val inPaintFullRes: Boolean, val maskBlur: Int, val stabilityAiClipGuidance: StabilityAiClipGuidance?, val stabilityAiStylePreset: StabilityAiStylePreset?)

Carries ImageToImagePayload data through the SDAI domain layer.

Link copied to clipboard
data class LocalAiModel(val id: String, val type: LocalAiModel.Type, val name: String, val size: String, val sources: List<String>, val downloaded: Boolean = false, val selected: Boolean = false)

Carries LocalAiModel data through the SDAI domain layer.

Link copied to clipboard
data class LocalDiffusionStatus(val current: Int, val total: Int)

Carries LocalDiffusionStatus data through the SDAI domain layer.

Link copied to clipboard
data class LoRA(val name: String, val alias: String, val path: String)

Carries LoRA data through the SDAI domain layer.

Link copied to clipboard
data class MediaStoreInfo(val count: Int = 0, val folderUri: String? = null)

Carries MediaStoreInfo data through the SDAI domain layer.

Link copied to clipboard
enum OpenAiModel(val alias: String) : Enum<OpenAiModel>

Coordinates OpenAiModel behavior in the SDAI domain layer.

Link copied to clipboard

Coordinates OpenAiQuality behavior in the SDAI domain layer.

Link copied to clipboard
enum OpenAiSize(val key: String, val supportedModels: Set<OpenAiModel>) : Enum<OpenAiSize>

Coordinates OpenAiSize behavior in the SDAI domain layer.

Link copied to clipboard

Coordinates ReportReason behavior in the SDAI domain layer.

Link copied to clipboard
data class ServerConfiguration(val sdModelCheckpoint: String)

Carries ServerConfiguration data through the SDAI domain layer.

Link copied to clipboard
enum ServerSource(val key: String, val featureTags: Set<FeatureTag>, val allowedInBuilds: Set<BuildType> = setOf(BuildType.FOSS, BuildType.PLAY, BuildType.FULL)) : Enum<ServerSource>

Coordinates ServerSource behavior in the SDAI domain layer.

Link copied to clipboard
data class Settings(val serverUrl: String = "", val sdModel: String = "", val demoMode: Boolean = false, val developerMode: Boolean = false, val localDiffusionAllowCancel: Boolean = false, val localDiffusionSchedulerThread: SchedulersToken = SchedulersToken.COMPUTATION, val monitorConnectivity: Boolean = false, val backgroundGeneration: Boolean = false, val autoSaveAiResults: Boolean = false, val saveToMediaStore: Boolean = false, val formAdvancedOptionsAlwaysShow: Boolean = false, val formPromptTaggedInput: Boolean = false, val source: ServerSource = ServerSource.AUTOMATIC1111, val hordeApiKey: String = "", val localUseNNAPI: Boolean = false, val designUseSystemColorPalette: Boolean = false, val designUseSystemDarkTheme: Boolean = false, val designDarkTheme: Boolean = false, val designColorToken: String = "", val designDarkThemeToken: String = "", val galleryGrid: Grid = Grid.Fixed2, val languageCode: String = "")

Carries Settings data through the SDAI domain layer.

Link copied to clipboard

Coordinates StabilityAiClipGuidance behavior in the SDAI domain layer.

Link copied to clipboard
data class StabilityAiEngine(val id: String, val name: String)

Carries StabilityAiEngine data through the SDAI domain layer.

Link copied to clipboard

Coordinates StabilityAiSampler behavior in the SDAI domain layer.

Link copied to clipboard

Coordinates StabilityAiStylePreset behavior in the SDAI domain layer.

Link copied to clipboard
data class StableDiffusionHyperNetwork(val name: String, val path: String)

Carries StableDiffusionHyperNetwork data through the SDAI domain layer.

Link copied to clipboard
data class StableDiffusionModel(val title: String, val modelName: String, val hash: String, val sha256: String, val filename: String, val config: String)

Carries StableDiffusionModel data through the SDAI domain layer.

Link copied to clipboard
data class StableDiffusionSampler(val name: String, val aliases: List<String>, val options: Map<String, String>)

Carries StableDiffusionSampler data through the SDAI domain layer.

Link copied to clipboard
data class Supporter(val id: Int, val name: String, val date: String, val message: String)

Carries Supporter data through the SDAI domain layer.

Link copied to clipboard
class SwarmUiModel(val name: String, val title: String, val author: String)

Coordinates SwarmUiModel behavior in the SDAI domain layer.

Link copied to clipboard
data class TextToImagePayload(val prompt: String, val negativePrompt: String, val samplingSteps: Int, val cfgScale: Float, val width: Int, val height: Int, val restoreFaces: Boolean, val seed: String, val subSeed: String, val subSeedStrength: Float, val sampler: String, val nsfw: Boolean, val batchCount: Int, val style: String?, val quality: String?, val openAiModel: OpenAiModel?, val stabilityAiClipGuidance: StabilityAiClipGuidance?, val stabilityAiStylePreset: StabilityAiStylePreset?)

Carries TextToImagePayload data through the SDAI domain layer.