mirror of
https://github.com/openai/codex.git
synced 2026-11-19 15:04:25 +00:00
Support Enterprise automation account plans (#36228)
## What changed - Recognize `enterprise_cbp_automation` as an Enterprise workspace plan in authentication, backend responses, and app-server account and rate-limit APIs. - Expose the plan in generated protocol schemas and display it as `Enterprise (Automation)` in account status. - Apply existing workspace eligibility and Business usage-limit behavior to the new plan. ## Testing - Cover JWT parsing, plan conversion and serialization, app-server responses, workspace eligibility, usage-limit formatting, and TUI status rendering. GitOrigin-RevId: d84ae2be3dd60fe398f226e6dc434efe27a387a5
This commit is contained in:
1 parent
a01a2d9146
commit
3016671bb0
22 files changed
+106
-14
No files matched your search
@@ -693,6 +693,9 @@ impl Client {
|
||||
}
|
||||
crate::types::PlanType::Business => AccountPlanType::Business,
|
||||
crate::types::PlanType::Ent26 => AccountPlanType::Ent26,
|
||||
crate::types::PlanType::EnterpriseCbpAutomation => {
|
||||
AccountPlanType::EnterpriseCbpAutomation
|
||||
}
|
||||
crate::types::PlanType::EnterpriseCbpUsageBased => {
|
||||
AccountPlanType::EnterpriseCbpUsageBased
|
||||
}
|
||||
@@ -751,6 +754,10 @@ mod tests {
|
||||
Client::map_plan_type(crate::types::PlanType::EnterpriseCbpUsageBased),
|
||||
AccountPlanType::EnterpriseCbpUsageBased
|
||||
);
|
||||
assert_eq!(
|
||||
Client::map_plan_type(crate::types::PlanType::EnterpriseCbpAutomation),
|
||||
AccountPlanType::EnterpriseCbpAutomation
|
||||
);
|
||||
let ent26 = serde_json::from_str::<crate::types::PlanType>("\"ent26\"")
|
||||
.expect("ent26 backend plan should deserialize");
|
||||
assert_eq!(Client::map_plan_type(ent26), AccountPlanType::Ent26);
|
||||
|
||||
Reference in new issue
Block a user