mirror of
https://github.com/openai/codex.git
synced 2026-11-19 15:04:25 +00:00
Support the ent26 enterprise plan (#35238)
## What changed - Recognize `ent26` in authentication, account protocol, backend rate-limit payloads, and generated app-server schemas. - Treat it as an enterprise workspace plan for cloud-config eligibility and business-style usage-limit guidance. - Cover token parsing, serialization, backend mapping, plan classification, cloud-config access, and usage-limit formatting with tests. GitOrigin-RevId: 537d897c8b1d80bcdb66d0fd402563fbb8c5a277
This commit is contained in:
1 parent
99744cfe04
commit
544007d006
16 files changed
+71
-13
No files matched your search
@@ -689,6 +689,7 @@ impl Client {
|
||||
AccountPlanType::SelfServeBusinessUsageBased
|
||||
}
|
||||
crate::types::PlanType::Business => AccountPlanType::Business,
|
||||
crate::types::PlanType::Ent26 => AccountPlanType::Ent26,
|
||||
crate::types::PlanType::EnterpriseCbpUsageBased => {
|
||||
AccountPlanType::EnterpriseCbpUsageBased
|
||||
}
|
||||
@@ -740,6 +741,9 @@ mod tests {
|
||||
Client::map_plan_type(crate::types::PlanType::EnterpriseCbpUsageBased),
|
||||
AccountPlanType::EnterpriseCbpUsageBased
|
||||
);
|
||||
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);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user