feat: support cloud managed config

This commit is contained in:
viyatb-oai
2026-04-10 15:09:54 -07:00
parent 87328976f6
commit f7cd3a7e40
17 changed files with 1100 additions and 6 deletions

View File

@@ -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",