mirror of
https://github.com/openai/codex.git
synced 2026-11-08 20:40:33 +00:00
## Why The backend config-bundle contract now exposes managed configuration in `managed_layers`, split into `baseline` and `system_overlay`. The Rust transport models need to match that contract before any runtime behavior changes. ## What changed - add the generated `DeliveredManagedLayers` model - model `baseline` and `system_overlay` as required arrays - expose optional/null `managed_layers` on delivered config and requirements documents - retain `enterprise_managed` for transport compatibility This PR changes transport types only; cloud-config runtime behavior is unchanged. ## Stack 1 of 4. Next: #31286. ## Validation - `just test -p codex-backend-openapi-models -p codex-backend-client` - `just test -p codex-cloud-config` - revalidated against the current generated backend schema
41 lines
1009 B
Rust
41 lines
1009 B
Rust
/*
|
|
* codex-backend
|
|
*
|
|
* codex-backend
|
|
*
|
|
* The version of the OpenAPI document: 0.0.1
|
|
*
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
use crate::models;
|
|
use serde::Deserialize;
|
|
use serde::Serialize;
|
|
|
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
|
pub struct DeliveredConfigToml {
|
|
#[serde(
|
|
rename = "enterprise_managed",
|
|
default,
|
|
with = "::serde_with::rust::double_option",
|
|
skip_serializing_if = "Option::is_none"
|
|
)]
|
|
pub enterprise_managed: Option<Option<Vec<models::DeliveredTomlFragment>>>,
|
|
#[serde(
|
|
rename = "managed_layers",
|
|
default,
|
|
with = "::serde_with::rust::double_option",
|
|
skip_serializing_if = "Option::is_none"
|
|
)]
|
|
pub managed_layers: Option<Option<Box<models::DeliveredManagedLayers>>>,
|
|
}
|
|
|
|
impl DeliveredConfigToml {
|
|
pub fn new() -> DeliveredConfigToml {
|
|
DeliveredConfigToml {
|
|
enterprise_managed: None,
|
|
managed_layers: None,
|
|
}
|
|
}
|
|
}
|