Package-level declarations

Types

Link copied to clipboard

Defines the ConnectToA1111UseCase contract for the SDAI domain layer.

Link copied to clipboard

Defines the ConnectToHordeUseCase contract for the SDAI domain layer.

Link copied to clipboard

Defines the ConnectToHuggingFaceUseCase contract for the SDAI domain layer.

Link copied to clipboard

Defines the ConnectToLocalDiffusionUseCase contract for the SDAI domain layer.

Link copied to clipboard
internal class ConnectToLocalDiffusionUseCaseImpl(val getConfigurationUseCase: GetConfigurationUseCase, val setServerConfigurationUseCase: SetServerConfigurationUseCase) : ConnectToLocalDiffusionUseCase

Implements ConnectToLocalDiffusionUseCase behavior in the SDAI domain layer.

Link copied to clipboard

Defines the ConnectToMediaPipeUseCase contract for the SDAI domain layer.

Link copied to clipboard
internal class ConnectToMediaPipeUseCaseImpl(val getConfigurationUseCase: GetConfigurationUseCase, val setServerConfigurationUseCase: SetServerConfigurationUseCase) : ConnectToMediaPipeUseCase

Implements ConnectToMediaPipeUseCase behavior in the SDAI domain layer.

Link copied to clipboard

Defines the ConnectToOpenAiUseCase contract for the SDAI domain layer.

Link copied to clipboard

Defines the ConnectToStabilityAiUseCase contract for the SDAI domain layer.

Link copied to clipboard

Defines the ConnectToSwarmUiUseCase contract for the SDAI domain layer.

Link copied to clipboard
internal class DefaultConnectToA1111UseCaseImpl(val getConfigurationUseCase: GetConfigurationUseCase, val setServerConfigurationUseCase: SetServerConfigurationUseCase, val testConnectivityUseCase: TestConnectivityUseCase, val dataPreLoaderUseCase: DataPreLoaderUseCase) : ConnectToA1111UseCase

Implements DefaultConnectToA1111UseCase behavior in the SDAI domain layer.

Link copied to clipboard
internal class DefaultConnectToHordeUseCaseImpl(val getConfigurationUseCase: GetConfigurationUseCase, val setServerConfigurationUseCase: SetServerConfigurationUseCase, val testHordeApiKeyUseCase: TestHordeApiKeyUseCase) : ConnectToHordeUseCase

Implements DefaultConnectToHordeUseCase behavior in the SDAI domain layer.

Link copied to clipboard
internal class DefaultConnectToHuggingFaceUseCaseImpl(val getConfigurationUseCase: GetConfigurationUseCase, val setServerConfigurationUseCase: SetServerConfigurationUseCase, val testHuggingFaceApiKeyUseCase: TestHuggingFaceApiKeyUseCase) : ConnectToHuggingFaceUseCase

Implements DefaultConnectToHuggingFaceUseCase behavior in the SDAI domain layer.

Link copied to clipboard
internal class DefaultConnectToOpenAiUseCaseImpl(val getConfigurationUseCase: GetConfigurationUseCase, val setServerConfigurationUseCase: SetServerConfigurationUseCase, val testOpenAiApiKeyUseCase: TestOpenAiApiKeyUseCase) : ConnectToOpenAiUseCase

Implements DefaultConnectToOpenAiUseCase behavior in the SDAI domain layer.

Link copied to clipboard
internal class DefaultConnectToStabilityAiUseCaseImpl(val getConfigurationUseCase: GetConfigurationUseCase, val setServerConfigurationUseCase: SetServerConfigurationUseCase, val testStabilityAiApiKeyUseCase: TestStabilityAiApiKeyUseCase) : ConnectToStabilityAiUseCase

Implements DefaultConnectToStabilityAiUseCase behavior in the SDAI domain layer.

Link copied to clipboard
internal class DefaultConnectToSwarmUiUseCaseImpl(val getConfigurationUseCase: GetConfigurationUseCase, val setServerConfigurationUseCase: SetServerConfigurationUseCase, val testSwarmUiConnectivityUseCase: TestSwarmUiConnectivityUseCase) : ConnectToSwarmUiUseCase

Implements DefaultConnectToSwarmUiUseCase behavior in the SDAI domain layer.

Link copied to clipboard
internal class DefaultGetConfigurationUseCaseImpl(val configurationStore: ConfigurationStore, val authorizationStore: AuthorizationStore) : GetConfigurationUseCase

Implements DefaultGetConfigurationUseCase behavior in the SDAI domain layer.

Link copied to clipboard
internal class DefaultSetServerConfigurationUseCaseImpl(val configurationStore: ConfigurationStore, val authorizationStore: AuthorizationStore) : SetServerConfigurationUseCase

Implements DefaultSetServerConfigurationUseCase behavior in the SDAI domain layer.

Link copied to clipboard

Defines the GetConfigurationUseCase contract for the SDAI domain layer.

Link copied to clipboard

Defines the SetServerConfigurationUseCase contract for the SDAI domain layer.

Properties

Link copied to clipboard
private const val CONNECTION_DELAY_MILLIS: Long

Exposes the CONNECTION_DELAY_MILLIS value used by the SDAI domain layer.

Link copied to clipboard
private const val CONNECTION_TIMEOUT_MILLIS: Long

Exposes the CONNECTION_TIMEOUT_MILLIS value used by the SDAI domain layer.

Link copied to clipboard
private const val LOCAL_NETWORK_RETRY_ATTEMPTS: Int = 3

Exposes the LOCAL_NETWORK_RETRY_ATTEMPTS value used by the SDAI domain layer.

Link copied to clipboard

Exposes the LOCAL_NETWORK_RETRY_DELAYS_MILLIS value used by the SDAI domain layer.

Link copied to clipboard
internal actual val localNetworkPermissionRetryEnabled: Boolean = false

Exposes the localNetworkPermissionRetryEnabled value used by the SDAI domain layer.

Exposes the localNetworkPermissionRetryEnabled value used by the SDAI domain layer.

internal actual val localNetworkPermissionRetryEnabled: Boolean = true

Exposes the localNetworkPermissionRetryEnabled value used by the SDAI domain layer.

Functions

Link copied to clipboard
private suspend fun connectWithApiKey(getConfigurationUseCase: GetConfigurationUseCase, setServerConfigurationUseCase: SetServerConfigurationUseCase, testApiKey: suspend () -> Boolean, updateConfiguration: (Configuration) -> Configuration): Result<Unit>

Executes the connectWithApiKey step in the SDAI domain layer.

Link copied to clipboard

Executes the isLikelyLocalNetworkBootstrapError step in the SDAI domain layer.

Link copied to clipboard

Executes the isLikelyLocalNetworkEndpoint step in the SDAI domain layer.

Link copied to clipboard
internal fun requireRemoteValidApiKey(valid: Boolean)

Executes the requireRemoteValidApiKey step in the SDAI domain layer.

Link copied to clipboard
internal suspend fun restoreRemoteConfigurationAndFail(configuration: Configuration?, setServerConfigurationUseCase: SetServerConfigurationUseCase, throwable: Throwable): Result<Unit>

Executes the restoreRemoteConfigurationAndFail step in the SDAI domain layer.

Link copied to clipboard
internal suspend fun retryRemoteDelayed(attempts: Int, delayMillis: Long, block: suspend () -> Unit)

Executes the retryRemoteDelayed step in the SDAI domain layer.

Link copied to clipboard
internal suspend fun <T> withLocalNetworkPermissionRetry(url: String, block: suspend () -> T): T

Executes the withLocalNetworkPermissionRetry step in the SDAI domain layer.