mirror of
https://github.com/openai/codex.git
synced 2026-11-21 22:50:37 +00:00
config: add cloud-managed layer provenance
This commit is contained in:
+44
@@ -7083,6 +7083,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"CloudManagedLayer": {
|
||||
"description": "Position of a fragment within the cloud-managed configuration contract.",
|
||||
"enum": [
|
||||
"baseline",
|
||||
"systemOverlay"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"CodexErrorInfo": {
|
||||
"description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",
|
||||
"oneOf": [
|
||||
@@ -8160,6 +8168,42 @@
|
||||
"title": "EnterpriseManagedConfigLayerSource",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "Config fragment delivered through the cloud-managed layer contract.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"description": "Stable identifier for the delivered fragment.",
|
||||
"type": "string"
|
||||
},
|
||||
"layer": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/v2/CloudManagedLayer"
|
||||
}
|
||||
],
|
||||
"description": "Precedence tier that contains the fragment."
|
||||
},
|
||||
"name": {
|
||||
"description": "Human-readable name for diagnostics and source attribution.",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"cloudManaged"
|
||||
],
|
||||
"title": "CloudManagedConfigLayerSourceType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"layer",
|
||||
"name",
|
||||
"type"
|
||||
],
|
||||
"title": "CloudManagedConfigLayerSource",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "User config layer from $CODEX_HOME/config.toml. This layer is special in that it is expected to be: - writable by the user - generally outside the workspace directory",
|
||||
"properties": {
|
||||
|
||||
+44
@@ -3323,6 +3323,14 @@
|
||||
],
|
||||
"title": "ClientRequest"
|
||||
},
|
||||
"CloudManagedLayer": {
|
||||
"description": "Position of a fragment within the cloud-managed configuration contract.",
|
||||
"enum": [
|
||||
"baseline",
|
||||
"systemOverlay"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"CodexErrorInfo": {
|
||||
"description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",
|
||||
"oneOf": [
|
||||
@@ -4400,6 +4408,42 @@
|
||||
"title": "EnterpriseManagedConfigLayerSource",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "Config fragment delivered through the cloud-managed layer contract.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"description": "Stable identifier for the delivered fragment.",
|
||||
"type": "string"
|
||||
},
|
||||
"layer": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/CloudManagedLayer"
|
||||
}
|
||||
],
|
||||
"description": "Precedence tier that contains the fragment."
|
||||
},
|
||||
"name": {
|
||||
"description": "Human-readable name for diagnostics and source attribution.",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"cloudManaged"
|
||||
],
|
||||
"title": "CloudManagedConfigLayerSourceType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"layer",
|
||||
"name",
|
||||
"type"
|
||||
],
|
||||
"title": "CloudManagedConfigLayerSource",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "User config layer from $CODEX_HOME/config.toml. This layer is special in that it is expected to be: - writable by the user - generally outside the workspace directory",
|
||||
"properties": {
|
||||
|
||||
@@ -237,6 +237,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"CloudManagedLayer": {
|
||||
"description": "Position of a fragment within the cloud-managed configuration contract.",
|
||||
"enum": [
|
||||
"baseline",
|
||||
"systemOverlay"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"Config": {
|
||||
"additionalProperties": true,
|
||||
"properties": {
|
||||
@@ -555,6 +563,42 @@
|
||||
"title": "EnterpriseManagedConfigLayerSource",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "Config fragment delivered through the cloud-managed layer contract.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"description": "Stable identifier for the delivered fragment.",
|
||||
"type": "string"
|
||||
},
|
||||
"layer": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/CloudManagedLayer"
|
||||
}
|
||||
],
|
||||
"description": "Precedence tier that contains the fragment."
|
||||
},
|
||||
"name": {
|
||||
"description": "Human-readable name for diagnostics and source attribution.",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"cloudManaged"
|
||||
],
|
||||
"title": "CloudManagedConfigLayerSourceType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"layer",
|
||||
"name",
|
||||
"type"
|
||||
],
|
||||
"title": "CloudManagedConfigLayerSource",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "User config layer from $CODEX_HOME/config.toml. This layer is special in that it is expected to be: - writable by the user - generally outside the workspace directory",
|
||||
"properties": {
|
||||
|
||||
@@ -5,6 +5,14 @@
|
||||
"description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
|
||||
"type": "string"
|
||||
},
|
||||
"CloudManagedLayer": {
|
||||
"description": "Position of a fragment within the cloud-managed configuration contract.",
|
||||
"enum": [
|
||||
"baseline",
|
||||
"systemOverlay"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ConfigLayerMetadata": {
|
||||
"properties": {
|
||||
"name": {
|
||||
@@ -100,6 +108,42 @@
|
||||
"title": "EnterpriseManagedConfigLayerSource",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "Config fragment delivered through the cloud-managed layer contract.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"description": "Stable identifier for the delivered fragment.",
|
||||
"type": "string"
|
||||
},
|
||||
"layer": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/CloudManagedLayer"
|
||||
}
|
||||
],
|
||||
"description": "Precedence tier that contains the fragment."
|
||||
},
|
||||
"name": {
|
||||
"description": "Human-readable name for diagnostics and source attribution.",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"cloudManaged"
|
||||
],
|
||||
"title": "CloudManagedConfigLayerSourceType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"layer",
|
||||
"name",
|
||||
"type"
|
||||
],
|
||||
"title": "CloudManagedConfigLayerSource",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "User config layer from $CODEX_HOME/config.toml. This layer is special in that it is expected to be: - writable by the user - generally outside the workspace directory",
|
||||
"properties": {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
/**
|
||||
* Position of a fragment within the cloud-managed configuration contract.
|
||||
*/
|
||||
export type CloudManagedLayer = "baseline" | "systemOverlay";
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AbsolutePathBuf } from "../AbsolutePathBuf";
|
||||
import type { CloudManagedLayer } from "./CloudManagedLayer";
|
||||
|
||||
export type ConfigLayerSource = { "type": "mdm", domain: string, key: string, } | { "type": "system",
|
||||
/**
|
||||
@@ -18,6 +19,18 @@ id: string,
|
||||
* diagnostics so users know which cloud layer needs administrator
|
||||
* attention.
|
||||
*/
|
||||
name: string, } | { "type": "cloudManaged",
|
||||
/**
|
||||
* Precedence tier that contains the fragment.
|
||||
*/
|
||||
layer: CloudManagedLayer,
|
||||
/**
|
||||
* Stable identifier for the delivered fragment.
|
||||
*/
|
||||
id: string,
|
||||
/**
|
||||
* Human-readable name for diagnostics and source attribution.
|
||||
*/
|
||||
name: string, } | { "type": "user",
|
||||
/**
|
||||
* This is the path to the user's config.toml file, though it is not
|
||||
|
||||
@@ -44,6 +44,7 @@ export type { CapabilityRootLocation } from "./CapabilityRootLocation";
|
||||
export type { ChatgptAuthTokensRefreshParams } from "./ChatgptAuthTokensRefreshParams";
|
||||
export type { ChatgptAuthTokensRefreshReason } from "./ChatgptAuthTokensRefreshReason";
|
||||
export type { ChatgptAuthTokensRefreshResponse } from "./ChatgptAuthTokensRefreshResponse";
|
||||
export type { CloudManagedLayer } from "./CloudManagedLayer";
|
||||
export type { CodexErrorInfo } from "./CodexErrorInfo";
|
||||
export type { CollabAgentState } from "./CollabAgentState";
|
||||
export type { CollabAgentStatus } from "./CollabAgentStatus";
|
||||
|
||||
Reference in New Issue
Block a user