/** * Control Action Extension Schema (v0.11.3+ ZT Pack) * * Records access control decisions in ext["org.peacprotocol/control_action"]. * Actions: grant, deny, escalate, delegate, audit. * Triggers: policy_evaluation, manual_review, anomaly_detection, scheduled, event_driven. */ import { z } from 'zod'; export declare const CONTROL_ACTION_EXTENSION_KEY: "org.peacprotocol/control_action"; /** * Control action types */ export declare const CONTROL_ACTIONS: readonly ["grant", "deny", "escalate", "delegate", "audit"]; export declare const ControlActionTypeSchema: z.ZodEnum<{ deny: "deny"; grant: "grant"; escalate: "escalate"; delegate: "delegate"; audit: "audit"; }>; export type ControlActionType = z.infer; /** * Control action triggers */ export declare const CONTROL_TRIGGERS: readonly ["policy_evaluation", "manual_review", "anomaly_detection", "scheduled", "event_driven"]; export declare const ControlTriggerSchema: z.ZodEnum<{ policy_evaluation: "policy_evaluation"; manual_review: "manual_review"; anomaly_detection: "anomaly_detection"; scheduled: "scheduled"; event_driven: "event_driven"; }>; export type ControlTrigger = z.infer; /** * Control Action extension schema */ export declare const ControlActionSchema: z.ZodObject<{ action: z.ZodEnum<{ deny: "deny"; grant: "grant"; escalate: "escalate"; delegate: "delegate"; audit: "audit"; }>; trigger: z.ZodEnum<{ policy_evaluation: "policy_evaluation"; manual_review: "manual_review"; anomaly_detection: "anomaly_detection"; scheduled: "scheduled"; event_driven: "event_driven"; }>; resource: z.ZodOptional; reason: z.ZodOptional; policy_ref: z.ZodOptional; action_at: z.ZodOptional; }, z.core.$strict>; export type ControlAction = z.infer; /** * Validate a ControlAction object. */ export declare function validateControlAction(data: unknown): { ok: true; value: ControlAction; } | { ok: false; error: string; }; //# sourceMappingURL=control-action.d.ts.map