NotificationEventType (wire keys confirmed live), OutlineUser.notification Settings dictionary, subscribeToNotifications/unsubscribeFromNotifications (users.notificationsSubscribe/Unsubscribe, nil eventType = all — confirmed against the "All notifications" master toggle live too).
14 lines
461 B
Swift
14 lines
461 B
Swift
import Foundation
|
|
|
|
/// `users.notificationsSubscribe` / `users.notificationsUnsubscribe`. A
|
|
/// `nil` `eventType` targets every notification event at once — confirmed
|
|
/// live via Outline's own "All notifications" master toggle, which sends
|
|
/// no `eventType` at all.
|
|
public struct NotificationSubscriptionRequest: Encodable, Sendable {
|
|
public let eventType: String?
|
|
|
|
public init(eventType: String? = nil) {
|
|
self.eventType = eventType
|
|
}
|
|
}
|