import Foundation

/// The only file you edit.
///
/// The token is a PERSONAL CAPTURE TOKEN, not the agent token — mint one with
/// `docker exec reminder-app node scripts/mint-capture-token.mjs <email>`.
/// It authenticates as one account, so a capture it creates is owned by that
/// account and inherits its capabilities: this watch can never reach an
/// integration the account itself cannot.
///
/// Keep this file out of git if you ever push the project anywhere public.
enum Config {
    static let endpoint = URL(string: "https://steward.etpics.com/api/ingest/capture")!

    /// Paste the 43-character token here.
    static let captureToken = "PASTE_YOUR_TOKEN_HERE"

    /// Hard stop, so a recording that starts in a pocket cannot run for an hour.
    static let maxRecordingSeconds: TimeInterval = 120

    /// Below this, it was a mis-tap rather than a memo. A watch button is easy
    /// to hit twice, and two taps in quick succession would otherwise stop one
    /// recording, upload it, and silently start another.
    static let minRecordingSeconds: TimeInterval = 1.0

    /// How long the button ignores further taps after one is handled. Long
    /// enough to swallow a double-tap, short enough to never feel stuck.
    static let tapCooldownSeconds: TimeInterval = 0.6
}
