[app-server] account rate limits updated event

This commit is contained in:
Owen Lin
2025-10-21 14:53:12 -07:00
parent 26f314904a
commit 9ce2a2e992
4 changed files with 156 additions and 4 deletions
@@ -883,6 +883,10 @@ pub enum ServerNotification {
/// The special session configured event for a new or resumed conversation.
SessionConfigured(SessionConfiguredNotification),
#[serde(rename = "account/rateLimits/updated")]
#[ts(rename = "account/rateLimits/updated")]
#[strum(serialize = "account/rateLimits/updated")]
AccountRateLimitsUpdated(RateLimitSnapshot),
}
impl ServerNotification {
@@ -891,6 +895,7 @@ impl ServerNotification {
ServerNotification::AuthStatusChange(params) => serde_json::to_value(params),
ServerNotification::LoginChatGptComplete(params) => serde_json::to_value(params),
ServerNotification::SessionConfigured(params) => serde_json::to_value(params),
ServerNotification::AccountRateLimitsUpdated(params) => serde_json::to_value(params),
}
}
}