pub enum ReviewDecision {
Approved,
ApprovedExecpolicyAmendment {
proposed_execpolicy_amendment: Vec<String>,
},
ApprovedForSession,
NetworkPolicyAmendment {
network_policy_amendment: NetworkPolicyAmendment,
},
Denied,
TimedOut,
Abort,
}Expand description
User’s decision in response to an ExecApprovalRequest.
JSON schema
{
"description": "User's decision in response to an ExecApprovalRequest.",
"oneOf": [
{
"description": "User has approved this command and the agent should execute it.",
"type": "string",
"enum": [
"approved"
]
},
{
"title": "ApprovedExecpolicyAmendmentReviewDecision",
"description": "User has approved this command and wants to apply the proposed execpolicy amendment so future matching commands are permitted.",
"type": "object",
"required": [
"approved_execpolicy_amendment"
],
"properties": {
"approved_execpolicy_amendment": {
"type": "object",
"required": [
"proposed_execpolicy_amendment"
],
"properties": {
"proposed_execpolicy_amendment": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"additionalProperties": false
},
{
"description": "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.",
"type": "string",
"enum": [
"approved_for_session"
]
},
{
"title": "NetworkPolicyAmendmentReviewDecision",
"description": "User chose to persist a network policy rule (allow/deny) for future requests to the same host.",
"type": "object",
"required": [
"network_policy_amendment"
],
"properties": {
"network_policy_amendment": {
"type": "object",
"required": [
"network_policy_amendment"
],
"properties": {
"network_policy_amendment": {
"$ref": "#/definitions/NetworkPolicyAmendment"
}
}
}
},
"additionalProperties": false
},
{
"description": "User has denied this command and the agent should not execute it, but it should continue the session and try something else.",
"type": "string",
"enum": [
"denied"
]
},
{
"description": "Automatic approval review timed out before reaching a decision.",
"type": "string",
"enum": [
"timed_out"
]
},
{
"description": "User has denied this command and the agent should not do anything until the user's next command.",
"type": "string",
"enum": [
"abort"
]
}
]
}Variants§
Approved
User has approved this command and the agent should execute it.
ApprovedExecpolicyAmendment
User has approved this command and wants to apply the proposed execpolicy amendment so future matching commands are permitted.
ApprovedForSession
User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.
NetworkPolicyAmendment
User chose to persist a network policy rule (allow/deny) for future requests to the same host.
Fields
network_policy_amendment: NetworkPolicyAmendmentDenied
User has denied this command and the agent should not execute it, but it should continue the session and try something else.
TimedOut
Automatic approval review timed out before reaching a decision.
Abort
User has denied this command and the agent should not do anything until the user’s next command.
Trait Implementations§
Source§impl Clone for ReviewDecision
impl Clone for ReviewDecision
Source§fn clone(&self) -> ReviewDecision
fn clone(&self) -> ReviewDecision
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more