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.
19 lines
489 B
TOML
19 lines
489 B
TOML
[package]
|
|
name = "codex-backend-openapi-models"
|
|
version = { workspace = true }
|
|
edition = "2024"
|
|
|
|
[lib]
|
|
name = "codex_backend_openapi_models"
|
|
path = "src/lib.rs"
|
|
|
|
# Important: generated code often violates our workspace lints.
|
|
# Allow unwrap/expect in this crate so the workspace builds cleanly
|
|
# after models are regenerated.
|
|
# Lint overrides are applied in src/lib.rs via crate attributes
|
|
|
|
[dependencies]
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_with = "3"
|