// One device as the Your devices list and Home's devices fold hold it: a// value rather than the wire row, filled from `read.devices`.importCottonKitimportFoundation/// One device, as both the Your devices list and the sidebar line need it.////// A value rather than the wire row, so the derivation is testable without a/// core and so the `serving` fact can be filled from whatever answers it.publicstructDeviceLine: Equatable, Sendable {publiclet id: Stringpubliclet name: String/// The wire's enum — `"ios"`, `"mac"`, `"android"`.publiclet platform: String?publiclet appVersion: String?/// The registry's stamp — `nil` off the file. See the file header.publiclet lastSeenAt: String?/// The Mac's own reading (`sampledAt`), off the file. See the file header.publiclet reportedAt: String?/// When the device was let in — the one stamp every row has.publiclet approvedAt: String?publiclet revokedAt: String?publiclet isThisDevice: Bool/// `nil` until the server says. See the file header.publiclet serving: Bool?publicinit( id: String, name: String, platform: String? = nil, appVersion: String? = nil, lastSeenAt: String? = nil, reportedAt: String? = nil, approvedAt: String? = nil, revokedAt: String? = nil, isThisDevice: Bool = false, serving: Bool? = nil ) {self.id = idself.name = nameself.platform = platformself.appVersion = appVersionself.lastSeenAt = lastSeenAtself.reportedAt = reportedAtself.approvedAt = approvedAtself.revokedAt = revokedAtself.isThisDevice = isThisDeviceself.serving = serving }}