core-agent-ide/codex-rs/protocol/src
Owen Lin 5c680c6587
[app-server] read rate limits API (#5302)
Adds a `GET account/rateLimits/read` API to app-server. This calls the
codex backend to fetch the user's current rate limits.

This would be helpful in checking rate limits without having to send a
message.

For calling the codex backend usage API, I generated the types and
manually copied the relevant ones into `codex-backend-openapi-types`.
It'll be nice to extend our internal openapi generator to support Rust
so we don't have to run these manual steps.

# External (non-OpenAI) Pull Request Requirements

Before opening this Pull Request, please read the dedicated
"Contributing" markdown file or your PR may be closed:
https://github.com/openai/codex/blob/main/docs/contributing.md

If your PR conforms to our contribution guidelines, replace this text
with a detailed and high quality description of your changes.
2025-10-20 14:11:54 -07:00
..
config_types.rs Generate JSON schema for app-server protocol (#5063) 2025-10-20 11:45:11 -07:00
conversation_id.rs Generate JSON schema for app-server protocol (#5063) 2025-10-20 11:45:11 -07:00
custom_prompts.rs Generate JSON schema for app-server protocol (#5063) 2025-10-20 11:45:11 -07:00
items.rs Add ItemStarted/ItemCompleted events for UserInputItem (#5306) 2025-10-20 13:34:44 -07:00
lib.rs Add ItemStarted/ItemCompleted events for UserInputItem (#5306) 2025-10-20 13:34:44 -07:00
message_history.rs Generate JSON schema for app-server protocol (#5063) 2025-10-20 11:45:11 -07:00
models.rs Add ItemStarted/ItemCompleted events for UserInputItem (#5306) 2025-10-20 13:34:44 -07:00
num_format.rs Auto compact at ~90% (#5292) 2025-10-20 11:29:49 -07:00
parse_command.rs Generate JSON schema for app-server protocol (#5063) 2025-10-20 11:45:11 -07:00
plan_tool.rs Generate JSON schema for app-server protocol (#5063) 2025-10-20 11:45:11 -07:00
protocol.rs [app-server] read rate limits API (#5302) 2025-10-20 14:11:54 -07:00
user_input.rs Add ItemStarted/ItemCompleted events for UserInputItem (#5306) 2025-10-20 13:34:44 -07:00