pub struct PermissionPromptRequestWrite {
pub assisted_approval: Option<PermissionAssistedApproval>,
pub can_offer_session_approval: bool,
pub diff: String,
pub file_name: String,
pub intention: String,
pub kind: PermissionPromptRequestWriteKind,
pub managed_approval_required: Option<bool>,
pub new_file_contents: Option<String>,
pub resolved_path: Option<String>,
pub tool_call_id: Option<String>,
}Expand description
File write permission prompt
Fields§
§assisted_approval: Option<PermissionAssistedApproval>Assisted-approval judge information for this request; present only in assisted mode.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
can_offer_session_approval: boolWhether the UI can offer session-wide approval for file write operations
diff: StringUnified diff showing the proposed changes
file_name: StringPath of the file being written to
intention: StringHuman-readable description of the intended file change
kind: PermissionPromptRequestWriteKindPrompt kind discriminator
managed_approval_required: Option<bool>Whether managed policy requires a human response and forbids host auto-approval
new_file_contents: Option<String>Complete new file contents for newly created files
resolved_path: Option<String>Runtime-resolved canonical path used for authorization identity checks. Internal and experimental; clients should continue to display fileName.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
tool_call_id: Option<String>Tool call ID that triggered this permission request