Package-level declarations

Types

Link copied to clipboard
data class ADetailerConfig(val enabled: Boolean = false, val model: String = "face_yolov8s.pt", val prompt: String = "", val negativePrompt: String = "", val confidence: Float = 0.3f, val maskBlur: Int = 4, val denoisingStrength: Float = 0.4f, val inpaintOnlyMasked: Boolean = true, val inpaintPadding: Int = 32)

Carries ADetailer extension configuration through the SDAI domain layer.

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, val liked: Boolean = false, val modelName: String = "")

Carries AiGenerationResult data through the SDAI domain layer.

Link copied to clipboard
data class AiGenerationResultPreview(val id: Long, val image: String, val hidden: Boolean, val liked: Boolean = false)

Carries only gallery-grid fields for a generated image.

Link copied to clipboard

Lists ArliAI sampler names supported by the setup and generation forms.

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
enum BonsaiBackend(val key: String, val displayName: String) : Enum<BonsaiBackend>

Runtime backend requested by Android Bonsai generation.

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 falAiApiKey: String = "", val arliAiApiKey: String = "", val authCredentials: AuthorizationCredentials = AuthorizationCredentials.None, val localOnnxModelId: String = "", val localOnnxModelPath: String = "", val localMediaPipeModelId: String = "", val localMediaPipeModelPath: String = "", val localSdxlModelId: String = "", val localSdxlModelPath: String = "", val localCoreMlModelId: String = "", val localCoreMlModelPath: String = "", val localBonsaiModelId: String = "", val localBonsaiModelPath: 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
enum FalAiAcceleration(val key: String, val displayName: String) : Enum<FalAiAcceleration>

Coordinates supported Fal.ai acceleration presets in the SDAI domain layer.

Link copied to clipboard

Coordinates supported Fal.ai generation modes in the SDAI domain layer.

Link copied to clipboard
enum FalAiImageSize(val key: String, val displayName: String, val width: Int, val height: Int) : Enum<FalAiImageSize>

Coordinates supported Fal.ai image size presets in the SDAI domain layer.

Link copied to clipboard
enum FalAiModel(val alias: String, val displayName: String, val generationMode: FalAiGenerationMode, val minInferenceSteps: Int, val maxInferenceSteps: Int, val minGuidanceScale: Float, val maxGuidanceScale: Float, val supportsImageSize: Boolean = true, val supportedAccelerations: Set<FalAiAcceleration> = FalAiAcceleration.entries.toSet()) : Enum<FalAiModel>

Coordinates supported Fal.ai model endpoints in the SDAI domain layer.

Link copied to clipboard

Coordinates FeatureTag behavior in the SDAI domain layer.

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

Carries Forge checkpoint module metadata through 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 HiresConfig(val enabled: Boolean = false, val upscaler: String = "None", val scale: Float = 2.0f, val steps: Int = 0, val denoisingStrength: Float = 0.4f, val hrCfg: Float? = null, val hrDistilledCfg: Float? = null)

Carries A1111 Hires.Fix configuration through 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 scheduler: Scheduler = Scheduler.AUTOMATIC, 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?, val aDetailer: ADetailerConfig = ADetailerConfig.DISABLED, val falAiModel: FalAiModel = FalAiModel.defaultImageToImage, val falAiImageSize: FalAiImageSize = FalAiImageSize.default, val falAiAcceleration: FalAiAcceleration = FalAiAcceleration.default, val falAiSyncMode: Boolean = false, val arliAiModel: String = "")

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
data class NetworkUsage(val modelDownloadBytes: Long = 0, val configBytes: Long = 0, val inferenceBytes: Long = 0)

Aggregated network usage counters shown in Settings.

Link copied to clipboard

Network usage buckets persisted by the app.

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
enum Scheduler(val alias: String, val displayName: String) : Enum<Scheduler>

Coordinates A1111 scheduler selection in the SDAI domain layer.

Link copied to clipboard
enum SdxlBackend(val key: String, val displayName: String) : Enum<SdxlBackend>
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 type: ServerSourceType, val readiness: PlatformValue<ServerSourceReadiness>, val version: String, val featureTags: Set<FeatureTag>, val allowedInBuilds: Set<BuildType> = setOf(BuildType.FOSS, BuildType.PLAY, BuildType.FULL), val allowedPlatforms: Set<Platform> = setOf(Platform.ANDROID, Platform.IOS)) : Enum<ServerSource>

Provider catalog entry used by setup, onboarding, and settings screens.

Link copied to clipboard

User-facing stability level for a provider integration.

Link copied to clipboard

Broad hosting model used by provider filters and onboarding copy.

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 arliAiModel: 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 StableDiffusionScripts(val txt2img: List<String> = emptyList(), val img2img: List<String> = emptyList(), val extensions: List<String> = emptyList())

Carries StableDiffusionScripts 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 scheduler: Scheduler = Scheduler.AUTOMATIC, val nsfw: Boolean, val batchCount: Int, val style: String?, val quality: String?, val openAiModel: OpenAiModel?, val stabilityAiClipGuidance: StabilityAiClipGuidance?, val stabilityAiStylePreset: StabilityAiStylePreset?, val aDetailer: ADetailerConfig = ADetailerConfig.DISABLED, val hires: HiresConfig = HiresConfig.DISABLED, val forgeModules: List<ForgeModule> = emptyList(), val falAiModel: FalAiModel = FalAiModel.defaultTextToImage, val falAiImageSize: FalAiImageSize = FalAiImageSize.default, val falAiAcceleration: FalAiAcceleration = FalAiAcceleration.default, val sdxlBackend: SdxlBackend = SdxlBackend.AUTO, val bonsaiBackend: BonsaiBackend = BonsaiBackend.AUTO, val falAiSyncMode: Boolean = false, val arliAiModel: String = "")

Provider-neutral request model for text-to-image generation.