add models module: shared types for accounts, messages, threads, sync

fix Package.swift: remove NIOIMAPCore product reference (only NIOIMAP is exported by swift-nio-imap)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 18:11:24 +01:00
parent 9c3d02ae45
commit f37b287f5e
12 changed files with 198 additions and 4 deletions
@@ -0,0 +1,9 @@
/// Note: spec defines syncFailed(Error), but Error is not Sendable.
/// Using String instead for Swift 6 strict concurrency compliance.
public enum SyncEvent: Sendable {
case syncStarted
case newMessages(count: Int, mailbox: String)
case flagsChanged(messageIds: [String])
case syncCompleted
case syncFailed(String)
}