Files
codex/codex-rs/app-server-protocol/schema/json/PermissionPresetRequestApprovalResponse.json
T
Felipe Coury 88e46f7459 feat(app-server): transport permission preset requests
Add the v2 `item/permissionPreset/requestApproval` server request and
thread it through app-server delivery for clients that opt into the
matching `supportedServerRequests` capability.

Keep the flow backward compatible by failing closed when a connection
does not advertise support, reject it explicitly in `codex exec`, and
update the docs, schemas, and request transport tests.
2026-04-13 14:45:50 -03:00

37 lines
876 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"PermissionPresetApprovalDecision": {
"enum": [
"accepted",
"declined"
],
"type": "string"
},
"PermissionPresetId": {
"description": "A built-in permission-mode preset that app clients can confirm.",
"enum": [
"auto",
"full-access",
"read-only",
"guardian-approvals"
],
"type": "string"
}
},
"description": "Response from an app client after the permission preset picker resolves.",
"properties": {
"decision": {
"$ref": "#/definitions/PermissionPresetApprovalDecision"
},
"preset": {
"$ref": "#/definitions/PermissionPresetId"
}
},
"required": [
"decision",
"preset"
],
"title": "PermissionPresetRequestApprovalResponse",
"type": "object"
}