pub struct PermissionsConfigureParams {
pub additional_content_exclusion_policies: Option<Vec<PermissionsConfigureAdditionalContentExclusionPolicy>>,
pub approve_all_read_permission_requests: Option<bool>,
pub approve_all_tool_permission_requests: Option<bool>,
pub paths: Option<PermissionPathsConfig>,
pub rules: Option<PermissionRulesSet>,
pub urls: Option<PermissionUrlsConfig>,
}Expand description
Patch of permission policy fields to apply (omit a field to leave it unchanged).
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§additional_content_exclusion_policies: Option<Vec<PermissionsConfigureAdditionalContentExclusionPolicy>>If specified, replaces the host-supplied GitHub Content Exclusion policies on the session (combined with natively-discovered policies when evaluating tool/file access). Omit to leave the current policies unchanged.
approve_all_read_permission_requests: Option<bool>If specified, sets whether path/URL read permission requests are auto-approved. Omit to leave the current value unchanged.
approve_all_tool_permission_requests: Option<bool>If specified, sets whether tool permission requests are auto-approved without prompting. Omit to leave the current value unchanged.
paths: Option<PermissionPathsConfig>If specified, replaces the session’s path-permission policy. The runtime constructs the appropriate PathManager based on these inputs (rooted at the session’s working directory). Omit to leave the current path policy unchanged.
rules: Option<PermissionRulesSet>If specified, replaces the session’s approved/denied permission rules. Omit to leave the current rules unchanged.
urls: Option<PermissionUrlsConfig>If specified, replaces the session’s URL-permission policy. The runtime constructs a fresh DefaultUrlManager based on these inputs. Omit to leave the current URL policy unchanged.
Trait Implementations§
Source§impl Clone for PermissionsConfigureParams
impl Clone for PermissionsConfigureParams
Source§fn clone(&self) -> PermissionsConfigureParams
fn clone(&self) -> PermissionsConfigureParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more