import { Type } from "typebox"; /** * Exec approval protocol schemas. * * These payloads cross the security-review boundary for command execution, so * persisted policy, request snapshots, and resolve decisions stay explicit. */ /** One persisted allowlist entry for a command pattern or resolved executable. */ export declare const ExecApprovalsAllowlistEntrySchema: Type.TObject<{ id: Type.TOptional; pattern: Type.TString; source: Type.TOptional>; commandText: Type.TOptional; argPattern: Type.TOptional; lastUsedAt: Type.TOptional; lastUsedCommand: Type.TOptional; lastResolvedPath: Type.TOptional; }>; /** Default exec approval policy shared by all agents unless overridden. */ export declare const ExecApprovalsDefaultsSchema: Type.TObject<{ security: Type.TOptional; ask: Type.TOptional; askFallback: Type.TOptional; autoAllowSkills: Type.TOptional; }>; /** Agent-specific exec approval policy and allowlist. */ export declare const ExecApprovalsAgentSchema: Type.TObject<{ security: Type.TOptional; ask: Type.TOptional; askFallback: Type.TOptional; autoAllowSkills: Type.TOptional; allowlist: Type.TOptional; pattern: Type.TString; source: Type.TOptional>; commandText: Type.TOptional; argPattern: Type.TOptional; lastUsedAt: Type.TOptional; lastUsedCommand: Type.TOptional; lastResolvedPath: Type.TOptional; }>>>; }>; /** Versioned exec approvals config file edited through gateway APIs. */ export declare const ExecApprovalsFileSchema: Type.TObject<{ version: Type.TLiteral<1>; socket: Type.TOptional; token: Type.TOptional; }>>; defaults: Type.TOptional; ask: Type.TOptional; askFallback: Type.TOptional; autoAllowSkills: Type.TOptional; }>>; agents: Type.TOptional; ask: Type.TOptional; askFallback: Type.TOptional; autoAllowSkills: Type.TOptional; allowlist: Type.TOptional; pattern: Type.TString; source: Type.TOptional>; commandText: Type.TOptional; argPattern: Type.TOptional; lastUsedAt: Type.TOptional; lastUsedCommand: Type.TOptional; lastResolvedPath: Type.TOptional; }>>>; }>>>; }>; /** Read snapshot with path/hash metadata for optimistic writes. */ export declare const ExecApprovalsSnapshotSchema: Type.TObject<{ path: Type.TString; exists: Type.TBoolean; hash: Type.TString; file: Type.TObject<{ version: Type.TLiteral<1>; socket: Type.TOptional; token: Type.TOptional; }>>; defaults: Type.TOptional; ask: Type.TOptional; askFallback: Type.TOptional; autoAllowSkills: Type.TOptional; }>>; agents: Type.TOptional; ask: Type.TOptional; askFallback: Type.TOptional; autoAllowSkills: Type.TOptional; allowlist: Type.TOptional; pattern: Type.TString; source: Type.TOptional>; commandText: Type.TOptional; argPattern: Type.TOptional; lastUsedAt: Type.TOptional; lastUsedCommand: Type.TOptional; lastResolvedPath: Type.TOptional; }>>>; }>>>; }>; }>; /** Empty request payload for reading local exec approval policy. */ export declare const ExecApprovalsGetParamsSchema: Type.TObject<{}>; /** Local exec approval policy write request with optional base hash guard. */ export declare const ExecApprovalsSetParamsSchema: Type.TObject<{ file: Type.TObject<{ version: Type.TLiteral<1>; socket: Type.TOptional; token: Type.TOptional; }>>; defaults: Type.TOptional; ask: Type.TOptional; askFallback: Type.TOptional; autoAllowSkills: Type.TOptional; }>>; agents: Type.TOptional; ask: Type.TOptional; askFallback: Type.TOptional; autoAllowSkills: Type.TOptional; allowlist: Type.TOptional; pattern: Type.TString; source: Type.TOptional>; commandText: Type.TOptional; argPattern: Type.TOptional; lastUsedAt: Type.TOptional; lastUsedCommand: Type.TOptional; lastResolvedPath: Type.TOptional; }>>>; }>>>; }>; baseHash: Type.TOptional; }>; /** Node-scoped request payload for reading exec approval policy. */ export declare const ExecApprovalsNodeGetParamsSchema: Type.TObject<{ nodeId: Type.TString; }>; /** Node-scoped exec approval policy write request with optional base hash guard. */ export declare const ExecApprovalsNodeSetParamsSchema: Type.TObject<{ nodeId: Type.TString; file: Type.TObject<{ version: Type.TLiteral<1>; socket: Type.TOptional; token: Type.TOptional; }>>; defaults: Type.TOptional; ask: Type.TOptional; askFallback: Type.TOptional; autoAllowSkills: Type.TOptional; }>>; agents: Type.TOptional; ask: Type.TOptional; askFallback: Type.TOptional; autoAllowSkills: Type.TOptional; allowlist: Type.TOptional; pattern: Type.TString; source: Type.TOptional>; commandText: Type.TOptional; argPattern: Type.TOptional; lastUsedAt: Type.TOptional; lastUsedCommand: Type.TOptional; lastResolvedPath: Type.TOptional; }>>>; }>>>; }>; baseHash: Type.TOptional; }>; /** Lookup request for one pending exec approval by id. */ export declare const ExecApprovalGetParamsSchema: Type.TObject<{ id: Type.TString; }>; /** Pending command execution approval request shown to reviewers. */ export declare const ExecApprovalRequestParamsSchema: Type.TObject<{ id: Type.TOptional; command: Type.TOptional; commandArgv: Type.TOptional>; systemRunPlan: Type.TOptional; cwd: Type.TUnion<[Type.TString, Type.TNull]>; commandText: Type.TString; commandPreview: Type.TOptional>; agentId: Type.TUnion<[Type.TString, Type.TNull]>; sessionKey: Type.TUnion<[Type.TString, Type.TNull]>; mutableFileOperand: Type.TOptional, Type.TNull]>>; }>>; env: Type.TOptional>; cwd: Type.TOptional>; nodeId: Type.TOptional>; host: Type.TOptional>; security: Type.TOptional>; ask: Type.TOptional>; warningText: Type.TOptional>; commandSpans: Type.TOptional>>; agentId: Type.TOptional>; resolvedPath: Type.TOptional>; sessionKey: Type.TOptional>; turnSourceChannel: Type.TOptional>; turnSourceTo: Type.TOptional>; turnSourceAccountId: Type.TOptional>; turnSourceThreadId: Type.TOptional>; requireDeliveryRoute: Type.TOptional; suppressDelivery: Type.TOptional; timeoutMs: Type.TOptional; twoPhase: Type.TOptional; }>; /** Reviewer decision payload for one pending exec approval. */ export declare const ExecApprovalResolveParamsSchema: Type.TObject<{ id: Type.TString; decision: Type.TString; }>;