pub struct SessionRpcSandbox<'a> { /* private fields */ }Expand description
session.sandbox.* RPCs.
Implementations§
Source§impl<'a> SessionRpcSandbox<'a>
impl<'a> SessionRpcSandbox<'a>
Sourcepub async fn get_enforcement_status(
&self,
) -> Result<SandboxEnforcementStatus, Error>
pub async fn get_enforcement_status( &self, ) -> Result<SandboxEnforcementStatus, Error>
Returns whether managed policy requires sandbox enforcement and whether an enforcement failure has permanently blocked the session.
Wire method: session.sandbox.getEnforcementStatus.
§Returns
Managed sandbox enforcement state for a session.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn disable_for_session(
&self,
params: SandboxDisableForSessionRequest,
) -> Result<SandboxDisableForSessionResult, Error>
pub async fn disable_for_session( &self, params: SandboxDisableForSessionRequest, ) -> Result<SandboxDisableForSessionResult, Error>
Disables sandboxing for the remainder of the current session and approves the referenced pending sandbox-bypass permission request. The request is rejected unless the exact request is still pending and the effective sandbox policy permits bypass.
Wire method: session.sandbox.disableForSession.
§Parameters
params- Request to disable sandboxing for the current session while resolving an active sandbox-bypass permission prompt.
§Returns
Result of attempting to disable sandboxing for the current session.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.