1export interface TrustedNetwork {2 ssid?: string;3 bssid?: string;4 isTailscale: boolean;5 addedAt: number;6}78export interface PairedDevice {9 deviceId: string;10 displayName: string;11 x25519PublicKey: string;12 pairedAt: number;13 lastSeenAt?: number;14 lastSyncAt?: number;15 lastKnownIp?: string;16}1718192021export interface SyncableDevice {22 publicKeyHex: string;23 deviceName: string;24 pairedAt: number;25}2627export type SyncMessage =28 | { type: 'SYNC_HELLO' }29 | { type: 'SYNC_VAULT_SEND'; blob: string; timestamp: number; license?: string; devices: SyncableDevice[] }30 | { type: 'SYNC_VAULT_ACK'; applied: boolean }31 | { type: 'SYNC_DONE' }32 | { type: 'SYNC_ERROR'; error: string };3334export type SyncStatus = "synced" | "syncing" | "no_peers" | "not_trusted" | "offline";35363738394041424344export interface IncomingPairingRequest {45 deviceName: string;46 publicKeyHex: string;47 receivedAt: number;48 expiresAt: number;49 505152535455 connectionId?: string;56}