Files
codex/codex-rs/app-server-protocol/schema/json/v2/FileChangeGuardianApprovalReviewStartedNotification.json
T
Charles CunninghamandCodex b61c1fc544 Relax guardian approval review wording
Remove the 'This shape is expected to change soon.' wording from the long-lived guardian approval review payload docs while keeping the API marked unstable. Regenerate the app-server protocol schema fixtures to match.

Co-authored-by: Codex <noreply@openai.com>
2026-03-20 17:46:29 -07:00

84 lines
1.9 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"GuardianApprovalReview": {
"description": "[UNSTABLE] Temporary guardian approval review payload used by guardian approval review notifications.",
"properties": {
"rationale": {
"type": [
"string",
"null"
]
},
"riskLevel": {
"anyOf": [
{
"$ref": "#/definitions/GuardianRiskLevel"
},
{
"type": "null"
}
]
},
"riskScore": {
"format": "uint8",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"status": {
"$ref": "#/definitions/GuardianApprovalReviewStatus"
}
},
"required": [
"status"
],
"type": "object"
},
"GuardianApprovalReviewStatus": {
"description": "[UNSTABLE] Lifecycle state for a guardian approval review.",
"enum": [
"inProgress",
"approved",
"denied",
"aborted"
],
"type": "string"
},
"GuardianRiskLevel": {
"description": "[UNSTABLE] Risk level assigned by guardian approval review.",
"enum": [
"low",
"medium",
"high"
],
"type": "string"
}
},
"description": "[UNSTABLE] Temporary notification payload for guardian approval review on a file change item. This shape is expected to change soon.",
"properties": {
"action": true,
"itemId": {
"type": "string"
},
"review": {
"$ref": "#/definitions/GuardianApprovalReview"
},
"threadId": {
"type": "string"
},
"turnId": {
"type": "string"
}
},
"required": [
"itemId",
"review",
"threadId",
"turnId"
],
"title": "FileChangeGuardianApprovalReviewStartedNotification",
"type": "object"
}