Add guardian review client overrides

This commit is contained in:
Owen Lin
2026-04-09 21:20:54 -07:00
parent b114781495
commit e59f7fbf69
24 changed files with 817 additions and 13 deletions

View File

@@ -1058,6 +1058,30 @@
"title": "Review/startRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"item/autoApprovalReview/override"
],
"title": "Item/autoApprovalReview/overrideRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ItemGuardianApprovalReviewOverrideParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Item/autoApprovalReview/overrideRequest",
"type": "object"
},
{
"properties": {
"id": {
@@ -5539,7 +5563,8 @@
"AutoReviewDecisionSource": {
"description": "[UNSTABLE] Source that produced a terminal guardian approval review decision.",
"enum": [
"agent"
"agent",
"user"
],
"type": "string"
},
@@ -8291,6 +8316,14 @@
}
]
},
"GuardianApprovalReviewOverrideDecision": {
"description": "[UNSTABLE] Client decision that preempts a pending guardian approval review.",
"enum": [
"approve",
"decline"
],
"type": "string"
},
"GuardianApprovalReviewStatus": {
"description": "[UNSTABLE] Lifecycle state for a guardian approval review.",
"enum": [
@@ -8619,6 +8652,38 @@
"title": "ItemGuardianApprovalReviewCompletedNotification",
"type": "object"
},
"ItemGuardianApprovalReviewOverrideParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "[UNSTABLE] Params for preempting a pending guardian approval review.",
"properties": {
"decision": {
"$ref": "#/definitions/v2/GuardianApprovalReviewOverrideDecision"
},
"reviewId": {
"type": "string"
},
"threadId": {
"type": "string"
},
"turnId": {
"type": "string"
}
},
"required": [
"decision",
"reviewId",
"threadId",
"turnId"
],
"title": "ItemGuardianApprovalReviewOverrideParams",
"type": "object"
},
"ItemGuardianApprovalReviewOverrideResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "[UNSTABLE] Empty response for `item/autoApprovalReview/override`.",
"title": "ItemGuardianApprovalReviewOverrideResponse",
"type": "object"
},
"ItemGuardianApprovalReviewStartedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.",