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.
13 lines
352 B
Swift
13 lines
352 B
Swift
import Foundation
|
|
|
|
/// Result of `auth.info` — confirms a token is valid and identifies the signed-in user/workspace.
|
|
public struct OutlineAuthInfo: Codable, Sendable {
|
|
public let user: OutlineUser
|
|
public let team: OutlineTeam
|
|
|
|
public init(user: OutlineUser, team: OutlineTeam) {
|
|
self.user = user
|
|
self.team = team
|
|
}
|
|
}
|