Package-level declarations

Types

Link copied to clipboard
internal class AndroidDownloadableModelFileDownloader(val fileProviderDescriptor: FileProviderDescriptor, val networkUsageRepository: NetworkUsageRepository) : DownloadableModelFileDownloader

Downloads local model archives into Android app-private storage and reports real downloaded bytes.

Link copied to clipboard

Defines the DownloadableModelFileDownloader contract for the SDAI data layer.

Link copied to clipboard

Coordinates DownloadableModelRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates HordeStatusSource behavior in the SDAI data layer.

Link copied to clipboard
internal class IosDownloadableModelFileDownloader(val fileProviderDescriptor: FileProviderDescriptor, val networkUsageRepository: NetworkUsageRepository) : DownloadableModelFileDownloader

Downloads local model archives into iOS app storage and reports received bytes.

Link copied to clipboard
private class IosModelDownloadDelegate(val destinationPath: String, val onProgress: (Int) -> Unit, val onBytesReceived: (Long) -> Unit, val onComplete: (Result<Unit>) -> Unit) : NSObject, NSURLSessionDownloadDelegateProtocol

NSURLSession delegate that converts native progress callbacks into app download state callbacks.

Link copied to clipboard

Maps ArliAI network responses into domain generation results.

Link copied to clipboard

Loads ArliAI checkpoint metadata from the network API.

Link copied to clipboard
class KtorFalAiGenerationRemoteDataSource(val api: FalAiGenerationApi, val pollIntervalMillis: Long = DEFAULT_POLL_INTERVAL_MILLIS, val maxPollAttempts: Int = DEFAULT_MAX_POLL_ATTEMPTS) : FalAiGenerationDataSource.Remote

Coordinates KtorFalAiGenerationRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorForgeModulesRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorHordeGenerationRemoteDataSource behavior in the SDAI data layer.

Coordinates KtorHuggingFaceGenerationRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorHuggingFaceModelsRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorOpenAiGenerationRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorServerConfigurationRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorStabilityAiCreditsRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorStabilityAiEnginesRemoteDataSource behavior in the SDAI data layer.

Coordinates KtorStabilityAiGenerationRemoteDataSource behavior in the SDAI data layer.

Coordinates KtorStableDiffusionEmbeddingsRemoteDataSource behavior in the SDAI data layer.

Coordinates KtorStableDiffusionGenerationRemoteDataSource behavior in the SDAI data layer.

Coordinates KtorStableDiffusionHyperNetworksRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorStableDiffusionLorasRemoteDataSource behavior in the SDAI data layer.

Coordinates KtorStableDiffusionModelsRemoteDataSource behavior in the SDAI data layer.

Coordinates KtorStableDiffusionSamplersRemoteDataSource behavior in the SDAI data layer.

Coordinates KtorStableDiffusionScriptsRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorSupportersRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorSwarmUiEmbeddingsRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorSwarmUiGenerationRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorSwarmUiLorasRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates KtorSwarmUiModelsRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Provides the NoOpDownloadableModelFileDownloader singleton used by the SDAI data layer.

Link copied to clipboard

Coordinates RandomImageRemoteDataSource behavior in the SDAI data layer.

Link copied to clipboard

Coordinates ReportRemoteDataSource behavior in the SDAI data layer.

Properties

Link copied to clipboard
private const val DEFAULT_MODEL_ARCHIVE: String
Link copied to clipboard
private const val ZIP_EXTENSION: String

Functions

Link copied to clipboard
private fun NSFileManager.deleteDownloadFiles(destinationPath: String, temporaryPath: String)

Removes stale final and temporary model archive files before retrying or after cancellation.

Link copied to clipboard
private fun NSURLResponse?.httpError(): IllegalStateException?

Converts non-2xx HTTP download responses into the same exception shape as Android downloads.

Link copied to clipboard
private fun modelDownloadSessionConfiguration(): NSURLSessionConfiguration

Creates a non-persistent session for large model archive downloads.