mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## What changed Add `Client::get_account_analytics` with public `AnalyticsReport`, `AnalyticsResponse`, and analytics models for token usage, credits, workspace messages, plugins, and skills. Select report-specific routes and query parameters for both `api/codex` and `wham` paths. Preserve backend attribution, optional amounts, and signed credit values. Keep string values open for forward compatibility, and return a generic decoding error without including the response body. ## Testing Add HTTP contract tests covering report routing and decoding, plugin query parameters, signed credit events, new string values, and rejection of mismatched response shapes without exposing the body in the error. GitOrigin-RevId: 196ff7f49c3f9d8a029398d09af14449c5d04207
69 lines
2.4 KiB
Rust
69 lines
2.4 KiB
Rust
pub mod analytics;
|
|
// Curated minimal export list for current workspace usage.
|
|
// NOTE: This file was previously auto-generated by the OpenAPI generator.
|
|
// Currently export only the types referenced by the workspace
|
|
// The process for this will change
|
|
|
|
// Config
|
|
pub(crate) mod config_bundle_response;
|
|
pub use self::config_bundle_response::ConfigBundleResponse;
|
|
|
|
pub(crate) mod config_file_response;
|
|
pub use self::config_file_response::ConfigFileResponse;
|
|
|
|
pub(crate) mod delivered_config_toml;
|
|
pub use self::delivered_config_toml::DeliveredConfigToml;
|
|
|
|
pub(crate) mod delivered_managed_layers;
|
|
pub use self::delivered_managed_layers::DeliveredManagedLayers;
|
|
|
|
pub(crate) mod delivered_requirements_toml;
|
|
pub use self::delivered_requirements_toml::DeliveredRequirementsToml;
|
|
|
|
pub(crate) mod delivered_toml_fragment;
|
|
pub use self::delivered_toml_fragment::DeliveredTomlFragment;
|
|
|
|
// Cloud Tasks
|
|
pub(crate) mod code_task_details_response;
|
|
pub use self::code_task_details_response::CodeTaskDetailsResponse;
|
|
|
|
pub(crate) mod task_response;
|
|
pub use self::task_response::TaskResponse;
|
|
|
|
pub(crate) mod external_pull_request_response;
|
|
pub use self::external_pull_request_response::ExternalPullRequestResponse;
|
|
|
|
pub(crate) mod git_pull_request;
|
|
pub use self::git_pull_request::GitPullRequest;
|
|
|
|
pub(crate) mod task_list_item;
|
|
pub use self::task_list_item::TaskListItem;
|
|
|
|
pub(crate) mod paginated_list_task_list_item_;
|
|
pub use self::paginated_list_task_list_item_::PaginatedListTaskListItem;
|
|
|
|
// Rate Limits
|
|
pub(crate) mod additional_rate_limit_details;
|
|
pub use self::additional_rate_limit_details::AdditionalRateLimitDetails;
|
|
|
|
pub(crate) mod rate_limit_status_payload;
|
|
pub use self::rate_limit_status_payload::PlanType;
|
|
pub use self::rate_limit_status_payload::RateLimitReachedKind;
|
|
pub use self::rate_limit_status_payload::RateLimitReachedType;
|
|
pub use self::rate_limit_status_payload::RateLimitStatusPayload;
|
|
|
|
pub(crate) mod rate_limit_status_details;
|
|
pub use self::rate_limit_status_details::RateLimitStatusDetails;
|
|
|
|
pub(crate) mod rate_limit_window_snapshot;
|
|
pub use self::rate_limit_window_snapshot::RateLimitWindowSnapshot;
|
|
|
|
pub(crate) mod credit_status_details;
|
|
pub use self::credit_status_details::CreditStatusDetails;
|
|
|
|
pub(crate) mod spend_control_limit_details;
|
|
pub use self::spend_control_limit_details::SpendControlLimitDetails;
|
|
|
|
pub(crate) mod spend_control_status_details;
|
|
pub use self::spend_control_status_details::SpendControlStatusDetails;
|