KeyPackageRepository
Functions
Link copied to clipboard
abstract suspend fun claimKeyPackages(userIds: List<UserId>, cipherSuite: CipherSuite): Either<CoreFailure, KeyPackageClaimResult>
Claims the key packages for the specified user IDs.
Link copied to clipboard
abstract suspend fun getAvailableKeyPackageCount(clientId: ClientId, cipherSuite: CipherSuite): Either<NetworkFailure, KeyPackageCountDTO>
Link copied to clipboard
abstract suspend fun replaceKeyPackages(clientId: ClientId, keyPackages: List<ByteArray>, cipherSuite: CipherSuite): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun uploadKeyPackages(clientId: ClientId, keyPackages: List<ByteArray>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun uploadNewKeyPackages(mlsContext: MlsCoreCryptoContext, clientId: ClientId, amount: Int = 100): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun validKeyPackageCount(mlsContext: MlsCoreCryptoContext, clientId: ClientId): Either<CoreFailure, Int>