OutlineUser gains language + preferences fields, new updateUserLanguage/ updateUserPreferences/deleteAccount client methods. Preference wire keys are best-effort against Outline's own naming, same speculative treatment as OutlinePin/OutlineDocumentMember — expect a correction round once tested against a live server.
15 lines
525 B
Swift
15 lines
525 B
Swift
import Foundation
|
|
|
|
/// `users.update`, preferences only. Sends the *whole* preferences object
|
|
/// back (not a single changed key) — avoids needing to know whether the
|
|
/// server deep-merges a partial `preferences` body or replaces it outright.
|
|
public struct UpdateUserPreferencesRequest: Encodable, Sendable {
|
|
public let id: String
|
|
public let preferences: OutlineUserPreferences
|
|
|
|
public init(id: String, preferences: OutlineUserPreferences) {
|
|
self.id = id
|
|
self.preferences = preferences
|
|
}
|
|
}
|