mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
feat: support cloud managed config
This commit is contained in:
@@ -6920,6 +6920,15 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"apps": {
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/v2/ConfigRequirementsApp"
|
||||
},
|
||||
"type": [
|
||||
"object",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"enforceResidency": {
|
||||
"anyOf": [
|
||||
{
|
||||
@@ -6938,10 +6947,151 @@
|
||||
"object",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"guardianPolicyConfig": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"mcpServers": {
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/v2/ConfigRequirementsMcpServer"
|
||||
},
|
||||
"type": [
|
||||
"object",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"rules": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/v2/ConfigRequirementsRules"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsApp": {
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": [
|
||||
"boolean",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsMcpServer": {
|
||||
"properties": {
|
||||
"identity": {
|
||||
"$ref": "#/definitions/v2/ConfigRequirementsMcpServerIdentity"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"identity"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsMcpServerIdentity": {
|
||||
"oneOf": [
|
||||
{
|
||||
"properties": {
|
||||
"command": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"command"
|
||||
],
|
||||
"title": "CommandConfigRequirementsMcpServerIdentityType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"command",
|
||||
"type"
|
||||
],
|
||||
"title": "CommandConfigRequirementsMcpServerIdentity",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"url"
|
||||
],
|
||||
"title": "UrlConfigRequirementsMcpServerIdentityType",
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"url"
|
||||
],
|
||||
"title": "UrlConfigRequirementsMcpServerIdentity",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ConfigRequirementsPatternToken": {
|
||||
"properties": {
|
||||
"anyOf": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"token": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsPrefixRule": {
|
||||
"properties": {
|
||||
"decision": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/v2/ConfigRequirementsRuleDecision"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"justification": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"pattern": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/v2/ConfigRequirementsPatternToken"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"pattern"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsReadResponse": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"properties": {
|
||||
@@ -6960,6 +7110,28 @@
|
||||
"title": "ConfigRequirementsReadResponse",
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsRuleDecision": {
|
||||
"enum": [
|
||||
"allow",
|
||||
"prompt",
|
||||
"forbidden"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ConfigRequirementsRules": {
|
||||
"properties": {
|
||||
"prefixRules": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/v2/ConfigRequirementsPrefixRule"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"prefixRules"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigValueWriteParams": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"properties": {
|
||||
|
||||
@@ -3548,6 +3548,15 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"apps": {
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/ConfigRequirementsApp"
|
||||
},
|
||||
"type": [
|
||||
"object",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"enforceResidency": {
|
||||
"anyOf": [
|
||||
{
|
||||
@@ -3566,10 +3575,151 @@
|
||||
"object",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"guardianPolicyConfig": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"mcpServers": {
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/ConfigRequirementsMcpServer"
|
||||
},
|
||||
"type": [
|
||||
"object",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"rules": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ConfigRequirementsRules"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsApp": {
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": [
|
||||
"boolean",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsMcpServer": {
|
||||
"properties": {
|
||||
"identity": {
|
||||
"$ref": "#/definitions/ConfigRequirementsMcpServerIdentity"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"identity"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsMcpServerIdentity": {
|
||||
"oneOf": [
|
||||
{
|
||||
"properties": {
|
||||
"command": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"command"
|
||||
],
|
||||
"title": "CommandConfigRequirementsMcpServerIdentityType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"command",
|
||||
"type"
|
||||
],
|
||||
"title": "CommandConfigRequirementsMcpServerIdentity",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"url"
|
||||
],
|
||||
"title": "UrlConfigRequirementsMcpServerIdentityType",
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"url"
|
||||
],
|
||||
"title": "UrlConfigRequirementsMcpServerIdentity",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ConfigRequirementsPatternToken": {
|
||||
"properties": {
|
||||
"anyOf": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"token": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsPrefixRule": {
|
||||
"properties": {
|
||||
"decision": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ConfigRequirementsRuleDecision"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"justification": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"pattern": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/ConfigRequirementsPatternToken"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"pattern"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsReadResponse": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"properties": {
|
||||
@@ -3588,6 +3738,28 @@
|
||||
"title": "ConfigRequirementsReadResponse",
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsRuleDecision": {
|
||||
"enum": [
|
||||
"allow",
|
||||
"prompt",
|
||||
"forbidden"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ConfigRequirementsRules": {
|
||||
"properties": {
|
||||
"prefixRules": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/ConfigRequirementsPrefixRule"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"prefixRules"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigValueWriteParams": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"properties": {
|
||||
|
||||
@@ -88,6 +88,15 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"apps": {
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/ConfigRequirementsApp"
|
||||
},
|
||||
"type": [
|
||||
"object",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"enforceResidency": {
|
||||
"anyOf": [
|
||||
{
|
||||
@@ -106,10 +115,173 @@
|
||||
"object",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"guardianPolicyConfig": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"mcpServers": {
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/ConfigRequirementsMcpServer"
|
||||
},
|
||||
"type": [
|
||||
"object",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"rules": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ConfigRequirementsRules"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsApp": {
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": [
|
||||
"boolean",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsMcpServer": {
|
||||
"properties": {
|
||||
"identity": {
|
||||
"$ref": "#/definitions/ConfigRequirementsMcpServerIdentity"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"identity"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsMcpServerIdentity": {
|
||||
"oneOf": [
|
||||
{
|
||||
"properties": {
|
||||
"command": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"command"
|
||||
],
|
||||
"title": "CommandConfigRequirementsMcpServerIdentityType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"command",
|
||||
"type"
|
||||
],
|
||||
"title": "CommandConfigRequirementsMcpServerIdentity",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"url"
|
||||
],
|
||||
"title": "UrlConfigRequirementsMcpServerIdentityType",
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"url"
|
||||
],
|
||||
"title": "UrlConfigRequirementsMcpServerIdentity",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ConfigRequirementsPatternToken": {
|
||||
"properties": {
|
||||
"anyOf": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"token": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsPrefixRule": {
|
||||
"properties": {
|
||||
"decision": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ConfigRequirementsRuleDecision"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"justification": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"pattern": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/ConfigRequirementsPatternToken"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"pattern"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigRequirementsRuleDecision": {
|
||||
"enum": [
|
||||
"allow",
|
||||
"prompt",
|
||||
"forbidden"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ConfigRequirementsRules": {
|
||||
"properties": {
|
||||
"prefixRules": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/ConfigRequirementsPrefixRule"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"prefixRules"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"NetworkDomainPermission": {
|
||||
"enum": [
|
||||
"allow",
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { WebSearchMode } from "../WebSearchMode";
|
||||
import type { AskForApproval } from "./AskForApproval";
|
||||
import type { ConfigRequirementsApp } from "./ConfigRequirementsApp";
|
||||
import type { ConfigRequirementsMcpServer } from "./ConfigRequirementsMcpServer";
|
||||
import type { ConfigRequirementsRules } from "./ConfigRequirementsRules";
|
||||
import type { ResidencyRequirement } from "./ResidencyRequirement";
|
||||
import type { SandboxMode } from "./SandboxMode";
|
||||
|
||||
export type ConfigRequirements = {allowedApprovalPolicies: Array<AskForApproval> | null, allowedSandboxModes: Array<SandboxMode> | null, allowedWebSearchModes: Array<WebSearchMode> | null, featureRequirements: { [key in string]?: boolean } | null, enforceResidency: ResidencyRequirement | null};
|
||||
export type ConfigRequirements = {allowedApprovalPolicies: Array<AskForApproval> | null, allowedSandboxModes: Array<SandboxMode> | null, allowedWebSearchModes: Array<WebSearchMode> | null, featureRequirements: { [key in string]?: boolean } | null, mcpServers: { [key in string]?: ConfigRequirementsMcpServer } | null, apps: { [key in string]?: ConfigRequirementsApp } | null, rules: ConfigRequirementsRules | null, enforceResidency: ResidencyRequirement | null, guardianPolicyConfig: string | null};
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// 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.
|
||||
|
||||
export type ConfigRequirementsApp = { enabled: boolean | null, };
|
||||
@@ -0,0 +1,6 @@
|
||||
// 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.
|
||||
import type { ConfigRequirementsMcpServerIdentity } from "./ConfigRequirementsMcpServerIdentity";
|
||||
|
||||
export type ConfigRequirementsMcpServer = { identity: ConfigRequirementsMcpServerIdentity, };
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// 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.
|
||||
|
||||
export type ConfigRequirementsMcpServerIdentity = { "type": "command", command: string, } | { "type": "url", url: string, };
|
||||
@@ -0,0 +1,5 @@
|
||||
// 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.
|
||||
|
||||
export type ConfigRequirementsPatternToken = { token: string | null, anyOf: Array<string> | null, };
|
||||
@@ -0,0 +1,7 @@
|
||||
// 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.
|
||||
import type { ConfigRequirementsPatternToken } from "./ConfigRequirementsPatternToken";
|
||||
import type { ConfigRequirementsRuleDecision } from "./ConfigRequirementsRuleDecision";
|
||||
|
||||
export type ConfigRequirementsPrefixRule = { pattern: Array<ConfigRequirementsPatternToken>, decision: ConfigRequirementsRuleDecision | null, justification: string | null, };
|
||||
@@ -0,0 +1,5 @@
|
||||
// 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.
|
||||
|
||||
export type ConfigRequirementsRuleDecision = "allow" | "prompt" | "forbidden";
|
||||
@@ -0,0 +1,6 @@
|
||||
// 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.
|
||||
import type { ConfigRequirementsPrefixRule } from "./ConfigRequirementsPrefixRule";
|
||||
|
||||
export type ConfigRequirementsRules = { prefixRules: Array<ConfigRequirementsPrefixRule>, };
|
||||
@@ -66,7 +66,14 @@ export type { ConfigLayerSource } from "./ConfigLayerSource";
|
||||
export type { ConfigReadParams } from "./ConfigReadParams";
|
||||
export type { ConfigReadResponse } from "./ConfigReadResponse";
|
||||
export type { ConfigRequirements } from "./ConfigRequirements";
|
||||
export type { ConfigRequirementsApp } from "./ConfigRequirementsApp";
|
||||
export type { ConfigRequirementsMcpServer } from "./ConfigRequirementsMcpServer";
|
||||
export type { ConfigRequirementsMcpServerIdentity } from "./ConfigRequirementsMcpServerIdentity";
|
||||
export type { ConfigRequirementsPatternToken } from "./ConfigRequirementsPatternToken";
|
||||
export type { ConfigRequirementsPrefixRule } from "./ConfigRequirementsPrefixRule";
|
||||
export type { ConfigRequirementsReadResponse } from "./ConfigRequirementsReadResponse";
|
||||
export type { ConfigRequirementsRuleDecision } from "./ConfigRequirementsRuleDecision";
|
||||
export type { ConfigRequirementsRules } from "./ConfigRequirementsRules";
|
||||
export type { ConfigValueWriteParams } from "./ConfigValueWriteParams";
|
||||
export type { ConfigWarningNotification } from "./ConfigWarningNotification";
|
||||
export type { ConfigWriteResponse } from "./ConfigWriteResponse";
|
||||
|
||||
Reference in New Issue
Block a user