huskies: merge 726_story_notify_chat_transports_when_oauth_account_swaps_or_all_accounts_are_exhausted

This commit is contained in:
dave
2026-04-27 18:39:35 +00:00
parent 80661fa622
commit 4b64bc614f
8 changed files with 187 additions and 4 deletions
+12
View File
@@ -85,6 +85,18 @@ pub enum WatcherEvent {
/// UTC instant at which the rate limit resets.
reset_at: chrono::DateTime<chrono::Utc>,
},
/// An OAuth account pool swap succeeded: a different account is now active.
/// Triggers a notification to chat transports naming the new account.
OAuthAccountSwapped {
/// Email address of the newly activated account.
new_email: String,
},
/// All OAuth accounts in the pool are rate-limited — no swap was possible.
/// Triggers a notification to chat transports with the earliest reset time.
OAuthAccountsExhausted {
/// Human-readable message describing when the earliest reset occurs.
earliest_reset_msg: String,
},
}
/// Return `true` if `path` is the root-level `.huskies/project.toml` or