Skip to main content

Variable: DetectorViolationBreakdownEntrySchema

const DetectorViolationBreakdownEntrySchema: ZodObject<{
detection_type: ZodOptional<ZodString>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
detection_type: ZodOptional<ZodString>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
detection_type: ZodOptional<ZodString>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">>>;
}, ZodTypeAny, "passthrough">>;

Defined in: src/models/mgmt-dashboard.ts:81

One entry in detection_type_violation_breakdown[] - severity counts for a single detector.

detection_type values observed live (2026-05-28): agent_security, contextual_grounding, dbs (database security), dlp, malicious_code, pi (prompt injection), source_code, tc (toxic content), topic_guardrails, uf (URL filtering). Detector set may evolve; the field uses a plain z.string() so additions parse without changes.