pub struct CommandExecutionRequestApprovalParams {Show 14 fields
pub approval_id: Option<String>,
pub command: Option<String>,
pub command_actions: Option<Vec<CommandAction>>,
pub cwd: Option<LegacyAppPathString>,
pub environment_id: Option<String>,
pub item_id: String,
pub kind: Option<CommandExecutionApprovalKind>,
pub network_approval_context: Option<NetworkApprovalContext>,
pub proposed_execpolicy_amendment: Option<Vec<String>>,
pub proposed_network_policy_amendments: Option<Vec<NetworkPolicyAmendment>>,
pub reason: Option<String>,
pub started_at_ms: i64,
pub thread_id: String,
pub turn_id: String,
}Fields§
§approval_id: Option<String>Unique identifier for this specific approval callback.
For regular shell/unified_exec approvals, this is null.
For zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent itemId, so approvalId is a distinct opaque callback id (a UUID) used to disambiguate routing. Stdin approvals also use a distinct callback id; inspect kind to distinguish them.
command: Option<String>The command to be executed.
command_actions: Option<Vec<CommandAction>>Best-effort parsed command actions for friendly display.
cwd: Option<LegacyAppPathString>The command’s working directory.
environment_id: Option<String>Environment in which the command will run.
item_id: String§kind: Option<CommandExecutionApprovalKind>Kind of action under review. Defaults to command for older servers.
network_approval_context: Option<NetworkApprovalContext>Optional context for a managed-network approval prompt.
proposed_execpolicy_amendment: Option<Vec<String>>Optional proposed execpolicy amendment to allow similar commands without prompting.
proposed_network_policy_amendments: Option<Vec<NetworkPolicyAmendment>>Optional proposed network policy amendments (allow/deny host) for future requests.
reason: Option<String>Optional explanatory reason (e.g. request for network access).
started_at_ms: i64Unix timestamp (in milliseconds) when this approval request started.
thread_id: String§turn_id: String