SessionRepository

internal interface SessionRepository

Inheritors

Functions

Link copied to clipboard
abstract suspend fun allSessions(): Either<StorageFailure, List<AccountInfo>>
Link copied to clipboard
abstract fun allSessionsFlow(): Flow<List<AccountInfo>>
Link copied to clipboard
abstract suspend fun allValidSessions(): Either<StorageFailure, List<AccountInfo.Valid>>
Link copied to clipboard
abstract fun allValidSessionsFlow(): Flow<Either<StorageFailure, List<AccountInfo>>>
Link copied to clipboard
abstract suspend fun cookieLabel(userId: UserId): Either<StorageFailure, String?>
Link copied to clipboard
abstract suspend fun currentSession(): Either<StorageFailure, AccountInfo>
Link copied to clipboard
abstract fun currentSessionFlow(): Flow<Either<StorageFailure, AccountInfo>>
Link copied to clipboard
abstract suspend fun deleteSession(userId: UserId): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun doesSessionExist(userId: UserId): Either<StorageFailure, Boolean>
Link copied to clipboard
abstract suspend fun doesValidNomadAccountExist(): Either<StorageFailure, Boolean>
Link copied to clipboard
abstract suspend fun doesValidSessionExist(userId: UserId): Either<StorageFailure, Boolean>
Link copied to clipboard
abstract suspend fun fullAccountInfo(userId: UserId): Either<StorageFailure, Account>
abstract fun getAllValidAccountPersistentWebSocketStatus(): Either<StorageFailure, Flow<List<PersistentWebSocketStatus>>>
Link copied to clipboard
abstract suspend fun isAccountReadOnly(userId: UserId): Either<StorageFailure, Boolean>
Link copied to clipboard
abstract suspend fun isFederated(userId: UserId): Either<StorageFailure, Boolean>
Link copied to clipboard
abstract suspend fun isNativePushSupportedByServer(userId: UserId): Either<StorageFailure, Boolean>
Link copied to clipboard
abstract suspend fun logout(userId: UserId, reason: LogoutReason): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun persistentWebSocketStatus(userId: UserId): Either<StorageFailure, Boolean>
Link copied to clipboard
abstract suspend fun setAllPersistentWebSocketEnabled(enabled: Boolean): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun setNativePushSupportedByServer(userId: UserId, supported: Boolean): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun ssoId(userId: UserId): Either<StorageFailure, SsoIdEntity?>
Link copied to clipboard
abstract suspend fun storeSession(session: StoreSessionParam): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun updateCurrentSession(userId: UserId?): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun updatePersistentWebSocketStatus(userId: UserId, isPersistentWebSocketEnabled: Boolean): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun updateSsoIdAndScimInfo(userId: UserId, ssoId: SsoId?, managedBy: ManagedByDTO?): Either<StorageFailure, Unit>
Link copied to clipboard
abstract suspend fun userAccountInfo(userId: UserId): Either<StorageFailure, AccountInfo>
Link copied to clipboard
abstract suspend fun validSessionsWithServerConfig(): Either<StorageFailure, Map<UserId, ServerConfig>>