import type { LegacyAppPathString } from "../LegacyAppPathString"; import type { CommandAction } from "./CommandAction"; import type { CommandExecutionApprovalKind } from "./CommandExecutionApprovalKind"; import type { ExecPolicyAmendment } from "./ExecPolicyAmendment"; import type { NetworkApprovalContext } from "./NetworkApprovalContext"; import type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment"; export type CommandExecutionRequestApprovalParams = { kind: CommandExecutionApprovalKind; threadId: string; turnId: string; itemId: string; /** * Unix timestamp (in milliseconds) when this approval request started. */ startedAtMs: number; /** * 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. */ approvalId?: string | null; /** * Environment in which the command will run. */ environmentId: string | null; /** * Optional explanatory reason (e.g. request for network access). */ reason?: string | null; /** * Optional context for a managed-network approval prompt. */ networkApprovalContext?: NetworkApprovalContext | null; /** * The command to be executed. */ command?: string | null; /** * The command's working directory. */ cwd?: LegacyAppPathString | null; /** * Best-effort parsed command actions for friendly display. */ commandActions?: Array | null; /** * Optional proposed execpolicy amendment to allow similar commands without prompting. */ proposedExecpolicyAmendment?: ExecPolicyAmendment | null; /** * Optional proposed network policy amendments (allow/deny host) for future requests. */ proposedNetworkPolicyAmendments?: Array | null; }; //# sourceMappingURL=CommandExecutionRequestApprovalParams.d.ts.map