mirror of
https://github.com/openai/codex.git
synced 2026-04-26 07:35:29 +00:00
feat: support cloud managed config
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user