// // Copyright 2026 Element Creations Ltd. // // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial. // Please see LICENSE files in the repository root for full details. // import Foundation enum HealthChatAPIError: Error, Equatable { case tokenAcquisitionFailed case unauthorized case networkFailure case decodingFailure case httpStatus(Int) } // sourcery: AutoMockable protocol HealthChatAPIServiceProtocol { func members(searchQuery: String?) async -> Result func ownProfile() async -> Result func updateOwnProfile(_ update: HealthChatProfileUpdate) async -> Result func profileCompleteness() async -> Result func inviteMember(email: String, personalNote: String) async -> Result }