mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
Make sandbox settings environment-owned
This commit is contained in:
+167
@@ -20828,6 +20828,57 @@
|
||||
"title": "TurnDiffUpdatedNotification",
|
||||
"type": "object"
|
||||
},
|
||||
"TurnEnvironmentManagedFileSystemPermissionsParams": {
|
||||
"oneOf": [
|
||||
{
|
||||
"properties": {
|
||||
"entries": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/v2/FileSystemSandboxEntry"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"glob_scan_max_depth": {
|
||||
"format": "uint",
|
||||
"minimum": 1.0,
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"restricted"
|
||||
],
|
||||
"title": "RestrictedTurnEnvironmentManagedFileSystemPermissionsParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"entries",
|
||||
"type"
|
||||
],
|
||||
"title": "RestrictedTurnEnvironmentManagedFileSystemPermissionsParams",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"unrestricted"
|
||||
],
|
||||
"title": "UnrestrictedTurnEnvironmentManagedFileSystemPermissionsParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "UnrestrictedTurnEnvironmentManagedFileSystemPermissionsParams",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
"TurnEnvironmentParams": {
|
||||
"properties": {
|
||||
"cwd": {
|
||||
@@ -20845,6 +20896,17 @@
|
||||
"array",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"sandbox": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/v2/TurnEnvironmentSandboxParams"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Sandbox settings for this environment. Omitted inherits the thread sandbox settings."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -20853,6 +20915,103 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"TurnEnvironmentPermissionProfileParams": {
|
||||
"oneOf": [
|
||||
{
|
||||
"properties": {
|
||||
"file_system": {
|
||||
"$ref": "#/definitions/v2/TurnEnvironmentManagedFileSystemPermissionsParams"
|
||||
},
|
||||
"network": {
|
||||
"$ref": "#/definitions/v2/NetworkAccess"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"managed"
|
||||
],
|
||||
"title": "ManagedTurnEnvironmentPermissionProfileParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"file_system",
|
||||
"network",
|
||||
"type"
|
||||
],
|
||||
"title": "ManagedTurnEnvironmentPermissionProfileParams",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"disabled"
|
||||
],
|
||||
"title": "DisabledTurnEnvironmentPermissionProfileParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "DisabledTurnEnvironmentPermissionProfileParams",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"network": {
|
||||
"$ref": "#/definitions/v2/NetworkAccess"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"external"
|
||||
],
|
||||
"title": "ExternalTurnEnvironmentPermissionProfileParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"network",
|
||||
"type"
|
||||
],
|
||||
"title": "ExternalTurnEnvironmentPermissionProfileParams",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
"TurnEnvironmentSandboxParams": {
|
||||
"properties": {
|
||||
"activePermissionProfile": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/v2/ActivePermissionProfile"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"permissionProfile": {
|
||||
"$ref": "#/definitions/v2/TurnEnvironmentPermissionProfileParams"
|
||||
},
|
||||
"useLegacyLandlock": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"windowsSandboxLevel": {
|
||||
"$ref": "#/definitions/v2/WindowsSandboxLevel"
|
||||
},
|
||||
"windowsSandboxPrivateDesktop": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"permissionProfile",
|
||||
"windowsSandboxLevel"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"TurnError": {
|
||||
"properties": {
|
||||
"additionalDetails": {
|
||||
@@ -21620,6 +21779,14 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"WindowsSandboxLevel": {
|
||||
"enum": [
|
||||
"disabled",
|
||||
"restricted-token",
|
||||
"elevated"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"WindowsSandboxReadiness": {
|
||||
"enum": [
|
||||
"ready",
|
||||
|
||||
Reference in New Issue
Block a user