#[non_exhaustive]pub struct ApprovalResolvedParams {Show 14 fields
pub session_id: String,
pub view_cursor: String,
pub source_range: SourceRange,
pub approval_id: String,
pub item_id: String,
pub turn_id: String,
pub decision: ApprovalDecision,
pub policy_result: ApprovalPolicyResult,
pub amendment: Option<ApprovalAmendment>,
pub resolved_by: ApprovalResolvedBy,
pub decided_by_command_id: Option<String>,
pub decided_at: Option<String>,
pub stage_evidence: Vec<ApprovalStageEvidence>,
pub subagent_origin: Option<ApprovalSubagentOrigin>,
}Expand description
approval/resolved params: the first durable terminal decision.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: StringThe owning session.
view_cursor: StringThis event’s view cursor: opaque, and strictly increasing within the session.
source_range: SourceRangeThe stored records this event was folded from: an opaque token clients must not interpret.
approval_id: StringThe approval that was decided.
item_id: StringThe toolCall view item this approval was holding.
turn_id: StringThe turn whose tool call this approval was holding.
decision: ApprovalDecisionThe final decision.
policy_result: ApprovalPolicyResultWhether the final decision lets the action run (allow) or blocks it
(deny).
amendment: Option<ApprovalAmendment>The policy rule the decision created. Present only when the decision created one.
resolved_by: ApprovalResolvedByWho or what made the decision: user, policy or llmJudge.
decided_by_command_id: Option<String>The commandId of the approval/decide command that won. Absent when
no such command made the decision, for example a policy or LLM judge
decision.
decided_at: Option<String>The decision time as RFC3339, projected from the durable
DecisionApplied record’s own stamp: optional on the wire so decoders
tolerate its absence, always populated by current hosts.
stage_evidence: Vec<ApprovalStageEvidence>For a shell approval, how each stage was resolved when the decision
became final. Empty for other subject kinds, and it can be empty for
shell too.
subagent_origin: Option<ApprovalSubagentOrigin>Present only for a child (native subagent) approval projected onto the parent session’s plane; parent-own approvals omit it.