/** * Zod schemas for proof event types */ import { z } from 'zod'; /** Union of all payload types */ export declare const proofEventPayloadSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"intent_received">; intentId: z.ZodString; action: z.ZodString; actionType: z.ZodString; resourceScope: z.ZodArray; }, "strip", z.ZodTypeAny, { type: "intent_received"; intentId: string; action: string; actionType: string; resourceScope: string[]; }, { type: "intent_received"; intentId: string; action: string; actionType: string; resourceScope: string[]; }>, z.ZodObject<{ type: z.ZodLiteral<"decision_made">; decisionId: z.ZodString; intentId: z.ZodString; permitted: z.ZodBoolean; trustBand: z.ZodString; trustScore: z.ZodNumber; reasoning: z.ZodArray; }, "strip", z.ZodTypeAny, { type: "decision_made"; intentId: string; decisionId: string; trustScore: number; trustBand: string; permitted: boolean; reasoning: string[]; }, { type: "decision_made"; intentId: string; decisionId: string; trustScore: number; trustBand: string; permitted: boolean; reasoning: string[]; }>, z.ZodObject<{ type: z.ZodLiteral<"trust_delta">; deltaId: z.ZodString; previousScore: z.ZodNumber; newScore: z.ZodNumber; previousBand: z.ZodString; newBand: z.ZodString; reason: z.ZodString; }, "strip", z.ZodTypeAny, { type: "trust_delta"; deltaId: string; reason: string; previousScore: number; newScore: number; previousBand: string; newBand: string; }, { type: "trust_delta"; deltaId: string; reason: string; previousScore: number; newScore: number; previousBand: string; newBand: string; }>, z.ZodObject<{ type: z.ZodLiteral<"execution_started">; executionId: z.ZodString; actionId: z.ZodString; decisionId: z.ZodString; adapterId: z.ZodString; }, "strip", z.ZodTypeAny, { type: "execution_started"; decisionId: string; executionId: string; actionId: string; adapterId: string; }, { type: "execution_started"; decisionId: string; executionId: string; actionId: string; adapterId: string; }>, z.ZodObject<{ type: z.ZodLiteral<"execution_completed">; executionId: z.ZodString; actionId: z.ZodString; status: z.ZodEnum<["success", "partial"]>; durationMs: z.ZodNumber; outputHash: z.ZodString; }, "strip", z.ZodTypeAny, { type: "execution_completed"; status: "success" | "partial"; executionId: string; actionId: string; durationMs: number; outputHash: string; }, { type: "execution_completed"; status: "success" | "partial"; executionId: string; actionId: string; durationMs: number; outputHash: string; }>, z.ZodObject<{ type: z.ZodLiteral<"execution_failed">; executionId: z.ZodString; actionId: z.ZodString; error: z.ZodString; durationMs: z.ZodNumber; retryable: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; type: "execution_failed"; executionId: string; actionId: string; durationMs: number; retryable: boolean; }, { error: string; type: "execution_failed"; executionId: string; actionId: string; durationMs: number; retryable: boolean; }>, z.ZodObject<{ type: z.ZodLiteral<"incident_detected">; incidentId: z.ZodString; severity: z.ZodEnum<["low", "medium", "high", "critical"]>; description: z.ZodString; affectedResources: z.ZodArray; }, "strip", z.ZodTypeAny, { type: "incident_detected"; severity: "low" | "medium" | "high" | "critical"; description: string; incidentId: string; affectedResources: string[]; }, { type: "incident_detected"; severity: "low" | "medium" | "high" | "critical"; description: string; incidentId: string; affectedResources: string[]; }>, z.ZodObject<{ type: z.ZodLiteral<"rollback_initiated">; rollbackId: z.ZodString; executionId: z.ZodString; reason: z.ZodString; initiatedBy: z.ZodString; }, "strip", z.ZodTypeAny, { type: "rollback_initiated"; executionId: string; reason: string; rollbackId: string; initiatedBy: string; }, { type: "rollback_initiated"; executionId: string; reason: string; rollbackId: string; initiatedBy: string; }>, z.ZodObject<{ type: z.ZodLiteral<"component_registered">; componentId: z.ZodString; componentType: z.ZodString; name: z.ZodString; version: z.ZodString; }, "strip", z.ZodTypeAny, { type: "component_registered"; name: string; componentId: string; version: string; componentType: string; }, { type: "component_registered"; name: string; componentId: string; version: string; componentType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"component_updated">; componentId: z.ZodString; changes: z.ZodArray; previousVersion: z.ZodOptional; newVersion: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "component_updated"; componentId: string; changes: string[]; previousVersion?: string | undefined; newVersion?: string | undefined; }, { type: "component_updated"; componentId: string; changes: string[]; previousVersion?: string | undefined; newVersion?: string | undefined; }>]>, z.ZodObject<{ type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; }, z.ZodTypeAny, "passthrough">>]>; /** Proof event validator */ export declare const proofEventSchema: z.ZodObject<{ eventId: z.ZodString; eventType: z.ZodNativeEnum; correlationId: z.ZodString; agentId: z.ZodOptional; payload: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"intent_received">; intentId: z.ZodString; action: z.ZodString; actionType: z.ZodString; resourceScope: z.ZodArray; }, "strip", z.ZodTypeAny, { type: "intent_received"; intentId: string; action: string; actionType: string; resourceScope: string[]; }, { type: "intent_received"; intentId: string; action: string; actionType: string; resourceScope: string[]; }>, z.ZodObject<{ type: z.ZodLiteral<"decision_made">; decisionId: z.ZodString; intentId: z.ZodString; permitted: z.ZodBoolean; trustBand: z.ZodString; trustScore: z.ZodNumber; reasoning: z.ZodArray; }, "strip", z.ZodTypeAny, { type: "decision_made"; intentId: string; decisionId: string; trustScore: number; trustBand: string; permitted: boolean; reasoning: string[]; }, { type: "decision_made"; intentId: string; decisionId: string; trustScore: number; trustBand: string; permitted: boolean; reasoning: string[]; }>, z.ZodObject<{ type: z.ZodLiteral<"trust_delta">; deltaId: z.ZodString; previousScore: z.ZodNumber; newScore: z.ZodNumber; previousBand: z.ZodString; newBand: z.ZodString; reason: z.ZodString; }, "strip", z.ZodTypeAny, { type: "trust_delta"; deltaId: string; reason: string; previousScore: number; newScore: number; previousBand: string; newBand: string; }, { type: "trust_delta"; deltaId: string; reason: string; previousScore: number; newScore: number; previousBand: string; newBand: string; }>, z.ZodObject<{ type: z.ZodLiteral<"execution_started">; executionId: z.ZodString; actionId: z.ZodString; decisionId: z.ZodString; adapterId: z.ZodString; }, "strip", z.ZodTypeAny, { type: "execution_started"; decisionId: string; executionId: string; actionId: string; adapterId: string; }, { type: "execution_started"; decisionId: string; executionId: string; actionId: string; adapterId: string; }>, z.ZodObject<{ type: z.ZodLiteral<"execution_completed">; executionId: z.ZodString; actionId: z.ZodString; status: z.ZodEnum<["success", "partial"]>; durationMs: z.ZodNumber; outputHash: z.ZodString; }, "strip", z.ZodTypeAny, { type: "execution_completed"; status: "success" | "partial"; executionId: string; actionId: string; durationMs: number; outputHash: string; }, { type: "execution_completed"; status: "success" | "partial"; executionId: string; actionId: string; durationMs: number; outputHash: string; }>, z.ZodObject<{ type: z.ZodLiteral<"execution_failed">; executionId: z.ZodString; actionId: z.ZodString; error: z.ZodString; durationMs: z.ZodNumber; retryable: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; type: "execution_failed"; executionId: string; actionId: string; durationMs: number; retryable: boolean; }, { error: string; type: "execution_failed"; executionId: string; actionId: string; durationMs: number; retryable: boolean; }>, z.ZodObject<{ type: z.ZodLiteral<"incident_detected">; incidentId: z.ZodString; severity: z.ZodEnum<["low", "medium", "high", "critical"]>; description: z.ZodString; affectedResources: z.ZodArray; }, "strip", z.ZodTypeAny, { type: "incident_detected"; severity: "low" | "medium" | "high" | "critical"; description: string; incidentId: string; affectedResources: string[]; }, { type: "incident_detected"; severity: "low" | "medium" | "high" | "critical"; description: string; incidentId: string; affectedResources: string[]; }>, z.ZodObject<{ type: z.ZodLiteral<"rollback_initiated">; rollbackId: z.ZodString; executionId: z.ZodString; reason: z.ZodString; initiatedBy: z.ZodString; }, "strip", z.ZodTypeAny, { type: "rollback_initiated"; executionId: string; reason: string; rollbackId: string; initiatedBy: string; }, { type: "rollback_initiated"; executionId: string; reason: string; rollbackId: string; initiatedBy: string; }>, z.ZodObject<{ type: z.ZodLiteral<"component_registered">; componentId: z.ZodString; componentType: z.ZodString; name: z.ZodString; version: z.ZodString; }, "strip", z.ZodTypeAny, { type: "component_registered"; name: string; componentId: string; version: string; componentType: string; }, { type: "component_registered"; name: string; componentId: string; version: string; componentType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"component_updated">; componentId: z.ZodString; changes: z.ZodArray; previousVersion: z.ZodOptional; newVersion: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "component_updated"; componentId: string; changes: string[]; previousVersion?: string | undefined; newVersion?: string | undefined; }, { type: "component_updated"; componentId: string; changes: string[]; previousVersion?: string | undefined; newVersion?: string | undefined; }>]>, z.ZodObject<{ type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; }, z.ZodTypeAny, "passthrough">>]>; previousHash: z.ZodNullable; eventHash: z.ZodString; eventHash3: z.ZodOptional; occurredAt: z.ZodDate; recordedAt: z.ZodDate; signedBy: z.ZodOptional; signature: z.ZodOptional; }, "strip", z.ZodTypeAny, { correlationId: string; previousHash: string | null; payload: { type: "intent_received"; intentId: string; action: string; actionType: string; resourceScope: string[]; } | { type: "decision_made"; intentId: string; decisionId: string; trustScore: number; trustBand: string; permitted: boolean; reasoning: string[]; } | { type: "trust_delta"; deltaId: string; reason: string; previousScore: number; newScore: number; previousBand: string; newBand: string; } | { type: "execution_started"; decisionId: string; executionId: string; actionId: string; adapterId: string; } | { type: "execution_completed"; status: "success" | "partial"; executionId: string; actionId: string; durationMs: number; outputHash: string; } | { error: string; type: "execution_failed"; executionId: string; actionId: string; durationMs: number; retryable: boolean; } | { type: "incident_detected"; severity: "low" | "medium" | "high" | "critical"; description: string; incidentId: string; affectedResources: string[]; } | { type: "rollback_initiated"; executionId: string; reason: string; rollbackId: string; initiatedBy: string; } | { type: "component_registered"; name: string; componentId: string; version: string; componentType: string; } | { type: "component_updated"; componentId: string; changes: string[]; previousVersion?: string | undefined; newVersion?: string | undefined; } | z.objectOutputType<{ type: z.ZodString; }, z.ZodTypeAny, "passthrough">; eventId: string; eventType: import("../index.js").ProofEventType; eventHash: string; occurredAt: Date; recordedAt: Date; signature?: string | undefined; agentId?: string | undefined; eventHash3?: string | undefined; signedBy?: string | undefined; }, { correlationId: string; previousHash: string | null; payload: { type: "intent_received"; intentId: string; action: string; actionType: string; resourceScope: string[]; } | { type: "decision_made"; intentId: string; decisionId: string; trustScore: number; trustBand: string; permitted: boolean; reasoning: string[]; } | { type: "trust_delta"; deltaId: string; reason: string; previousScore: number; newScore: number; previousBand: string; newBand: string; } | { type: "execution_started"; decisionId: string; executionId: string; actionId: string; adapterId: string; } | { type: "execution_completed"; status: "success" | "partial"; executionId: string; actionId: string; durationMs: number; outputHash: string; } | { error: string; type: "execution_failed"; executionId: string; actionId: string; durationMs: number; retryable: boolean; } | { type: "incident_detected"; severity: "low" | "medium" | "high" | "critical"; description: string; incidentId: string; affectedResources: string[]; } | { type: "rollback_initiated"; executionId: string; reason: string; rollbackId: string; initiatedBy: string; } | { type: "component_registered"; name: string; componentId: string; version: string; componentType: string; } | { type: "component_updated"; componentId: string; changes: string[]; previousVersion?: string | undefined; newVersion?: string | undefined; } | z.objectInputType<{ type: z.ZodString; }, z.ZodTypeAny, "passthrough">; eventId: string; eventType: import("../index.js").ProofEventType; eventHash: string; occurredAt: Date; recordedAt: Date; signature?: string | undefined; agentId?: string | undefined; eventHash3?: string | undefined; signedBy?: string | undefined; }>; /** Proof event filter validator */ export declare const proofEventFilterSchema: z.ZodObject<{ correlationId: z.ZodOptional; agentId: z.ZodOptional; eventTypes: z.ZodOptional, "many">>; from: z.ZodOptional; to: z.ZodOptional; limit: z.ZodOptional; offset: z.ZodOptional; }, "strip", z.ZodTypeAny, { correlationId?: string | undefined; agentId?: string | undefined; limit?: number | undefined; eventTypes?: import("../index.js").ProofEventType[] | undefined; from?: Date | undefined; to?: Date | undefined; offset?: number | undefined; }, { correlationId?: string | undefined; agentId?: string | undefined; limit?: number | undefined; eventTypes?: import("../index.js").ProofEventType[] | undefined; from?: Date | undefined; to?: Date | undefined; offset?: number | undefined; }>; /** Log proof event request validator */ export declare const logProofEventRequestSchema: z.ZodObject<{ eventType: z.ZodNativeEnum; correlationId: z.ZodString; agentId: z.ZodOptional; payload: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"intent_received">; intentId: z.ZodString; action: z.ZodString; actionType: z.ZodString; resourceScope: z.ZodArray; }, "strip", z.ZodTypeAny, { type: "intent_received"; intentId: string; action: string; actionType: string; resourceScope: string[]; }, { type: "intent_received"; intentId: string; action: string; actionType: string; resourceScope: string[]; }>, z.ZodObject<{ type: z.ZodLiteral<"decision_made">; decisionId: z.ZodString; intentId: z.ZodString; permitted: z.ZodBoolean; trustBand: z.ZodString; trustScore: z.ZodNumber; reasoning: z.ZodArray; }, "strip", z.ZodTypeAny, { type: "decision_made"; intentId: string; decisionId: string; trustScore: number; trustBand: string; permitted: boolean; reasoning: string[]; }, { type: "decision_made"; intentId: string; decisionId: string; trustScore: number; trustBand: string; permitted: boolean; reasoning: string[]; }>, z.ZodObject<{ type: z.ZodLiteral<"trust_delta">; deltaId: z.ZodString; previousScore: z.ZodNumber; newScore: z.ZodNumber; previousBand: z.ZodString; newBand: z.ZodString; reason: z.ZodString; }, "strip", z.ZodTypeAny, { type: "trust_delta"; deltaId: string; reason: string; previousScore: number; newScore: number; previousBand: string; newBand: string; }, { type: "trust_delta"; deltaId: string; reason: string; previousScore: number; newScore: number; previousBand: string; newBand: string; }>, z.ZodObject<{ type: z.ZodLiteral<"execution_started">; executionId: z.ZodString; actionId: z.ZodString; decisionId: z.ZodString; adapterId: z.ZodString; }, "strip", z.ZodTypeAny, { type: "execution_started"; decisionId: string; executionId: string; actionId: string; adapterId: string; }, { type: "execution_started"; decisionId: string; executionId: string; actionId: string; adapterId: string; }>, z.ZodObject<{ type: z.ZodLiteral<"execution_completed">; executionId: z.ZodString; actionId: z.ZodString; status: z.ZodEnum<["success", "partial"]>; durationMs: z.ZodNumber; outputHash: z.ZodString; }, "strip", z.ZodTypeAny, { type: "execution_completed"; status: "success" | "partial"; executionId: string; actionId: string; durationMs: number; outputHash: string; }, { type: "execution_completed"; status: "success" | "partial"; executionId: string; actionId: string; durationMs: number; outputHash: string; }>, z.ZodObject<{ type: z.ZodLiteral<"execution_failed">; executionId: z.ZodString; actionId: z.ZodString; error: z.ZodString; durationMs: z.ZodNumber; retryable: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; type: "execution_failed"; executionId: string; actionId: string; durationMs: number; retryable: boolean; }, { error: string; type: "execution_failed"; executionId: string; actionId: string; durationMs: number; retryable: boolean; }>, z.ZodObject<{ type: z.ZodLiteral<"incident_detected">; incidentId: z.ZodString; severity: z.ZodEnum<["low", "medium", "high", "critical"]>; description: z.ZodString; affectedResources: z.ZodArray; }, "strip", z.ZodTypeAny, { type: "incident_detected"; severity: "low" | "medium" | "high" | "critical"; description: string; incidentId: string; affectedResources: string[]; }, { type: "incident_detected"; severity: "low" | "medium" | "high" | "critical"; description: string; incidentId: string; affectedResources: string[]; }>, z.ZodObject<{ type: z.ZodLiteral<"rollback_initiated">; rollbackId: z.ZodString; executionId: z.ZodString; reason: z.ZodString; initiatedBy: z.ZodString; }, "strip", z.ZodTypeAny, { type: "rollback_initiated"; executionId: string; reason: string; rollbackId: string; initiatedBy: string; }, { type: "rollback_initiated"; executionId: string; reason: string; rollbackId: string; initiatedBy: string; }>, z.ZodObject<{ type: z.ZodLiteral<"component_registered">; componentId: z.ZodString; componentType: z.ZodString; name: z.ZodString; version: z.ZodString; }, "strip", z.ZodTypeAny, { type: "component_registered"; name: string; componentId: string; version: string; componentType: string; }, { type: "component_registered"; name: string; componentId: string; version: string; componentType: string; }>, z.ZodObject<{ type: z.ZodLiteral<"component_updated">; componentId: z.ZodString; changes: z.ZodArray; previousVersion: z.ZodOptional; newVersion: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "component_updated"; componentId: string; changes: string[]; previousVersion?: string | undefined; newVersion?: string | undefined; }, { type: "component_updated"; componentId: string; changes: string[]; previousVersion?: string | undefined; newVersion?: string | undefined; }>]>, z.ZodObject<{ type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; }, z.ZodTypeAny, "passthrough">>]>; occurredAt: z.ZodOptional; signedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { correlationId: string; payload: { type: "intent_received"; intentId: string; action: string; actionType: string; resourceScope: string[]; } | { type: "decision_made"; intentId: string; decisionId: string; trustScore: number; trustBand: string; permitted: boolean; reasoning: string[]; } | { type: "trust_delta"; deltaId: string; reason: string; previousScore: number; newScore: number; previousBand: string; newBand: string; } | { type: "execution_started"; decisionId: string; executionId: string; actionId: string; adapterId: string; } | { type: "execution_completed"; status: "success" | "partial"; executionId: string; actionId: string; durationMs: number; outputHash: string; } | { error: string; type: "execution_failed"; executionId: string; actionId: string; durationMs: number; retryable: boolean; } | { type: "incident_detected"; severity: "low" | "medium" | "high" | "critical"; description: string; incidentId: string; affectedResources: string[]; } | { type: "rollback_initiated"; executionId: string; reason: string; rollbackId: string; initiatedBy: string; } | { type: "component_registered"; name: string; componentId: string; version: string; componentType: string; } | { type: "component_updated"; componentId: string; changes: string[]; previousVersion?: string | undefined; newVersion?: string | undefined; } | z.objectOutputType<{ type: z.ZodString; }, z.ZodTypeAny, "passthrough">; eventType: import("../index.js").ProofEventType; agentId?: string | undefined; occurredAt?: Date | undefined; signedBy?: string | undefined; }, { correlationId: string; payload: { type: "intent_received"; intentId: string; action: string; actionType: string; resourceScope: string[]; } | { type: "decision_made"; intentId: string; decisionId: string; trustScore: number; trustBand: string; permitted: boolean; reasoning: string[]; } | { type: "trust_delta"; deltaId: string; reason: string; previousScore: number; newScore: number; previousBand: string; newBand: string; } | { type: "execution_started"; decisionId: string; executionId: string; actionId: string; adapterId: string; } | { type: "execution_completed"; status: "success" | "partial"; executionId: string; actionId: string; durationMs: number; outputHash: string; } | { error: string; type: "execution_failed"; executionId: string; actionId: string; durationMs: number; retryable: boolean; } | { type: "incident_detected"; severity: "low" | "medium" | "high" | "critical"; description: string; incidentId: string; affectedResources: string[]; } | { type: "rollback_initiated"; executionId: string; reason: string; rollbackId: string; initiatedBy: string; } | { type: "component_registered"; name: string; componentId: string; version: string; componentType: string; } | { type: "component_updated"; componentId: string; changes: string[]; previousVersion?: string | undefined; newVersion?: string | undefined; } | z.objectInputType<{ type: z.ZodString; }, z.ZodTypeAny, "passthrough">; eventType: import("../index.js").ProofEventType; agentId?: string | undefined; occurredAt?: Date | undefined; signedBy?: string | undefined; }>; export type ValidatedProofEvent = z.infer; export type ValidatedProofEventFilter = z.infer; export type ValidatedLogProofEventRequest = z.infer;