import Foundation /// Saved only in the Keychain. The random ID is public routing data, while /// credential identity and the Oficina session hash bind it to one sign-in. public struct NotificationSelection: Codable, Equatable, Sendable { static let key = "notification.selection" public let id: String public let origin: URL public let person: String let credential: String let sessionHash: String? func matches(_ account: DeviceAccount) -> Bool { origin == account.origin && person == account.address && credential == account.credential?.id && sessionHash == account.oficinaSessionHash } }