Local SPM package wrapping Outline's RPC-style REST API — auth, documents, collections, and search — behind a protocol boundary (OutlineAPIClient) so the app never depends on the transport directly.
11 lines
232 B
Swift
11 lines
232 B
Swift
import Foundation
|
|
|
|
public enum OutlineAPIError: Error, Sendable {
|
|
case unauthorized
|
|
case notFound
|
|
case server(status: Int, message: String?)
|
|
case decoding(Error)
|
|
case transport(Error)
|
|
case tokenUnavailable
|
|
}
|