NetworkServiceProtocol.swift 563 B

12345678910111213
  1. import Foundation
  2. import Combine
  3. /// Reserved protocol for cloud sync with Celestia Track backend.
  4. protocol NetworkServiceProtocol {
  5. /// Upload a complete research session including audio, photos, notes and timeline JSON.
  6. /// - Returns: Publisher emitting upload progress (0.0 - 1.0)
  7. func syncSession(_ sessionId: UUID) -> AnyPublisher<Double, Error>
  8. /// Fetch AI transcription and report generation status.
  9. /// - Returns: Transcribed text or AI summary report
  10. func fetchAIReport(for cloudSessionId: String) async throws -> String
  11. }