# Variable AuditEventInputSchema`Const`

AuditEventInputSchema: ZodObject<
{
category: ZodEnum<
{
authorization: "authorization";
system: "system";
configuration: "configuration";
security: "security";
authentication: "authentication";
tool_invocation: "tool_invocation";
data_access: "data_access";
data_modification: "data_modification";
},
>;
severity: ZodDefault<
ZodOptional<
ZodEnum<{ info: "info"; warning: "warning"; critical: "critical" }>,
>,
>;
outcome: ZodEnum<
{
error: "error";
success: "success";
failure: "failure";
denied: "denied";
},
>;
action: ZodString;
description: ZodOptional<ZodString>;
actor: ZodObject<
{
type: ZodEnum<
{
system: "system";
user: "user";
external: "external";
agent: "agent";
},
>;
id: ZodString;
name: ZodOptional<ZodString>;
ip: ZodOptional<ZodString>;
userAgent: ZodOptional<ZodString>;
},
$strip,
>;
resource: ZodOptional<
ZodObject<
{
type: ZodString;
id: ZodString;
name: ZodOptional<ZodString>;
path: ZodOptional<ZodString>;
},
$strip,
>,
>;
requestId: ZodOptional<ZodString>;
traceId: ZodOptional<ZodString>;
sessionId: ZodOptional<ZodString>;
toolName: ZodOptional<ZodString>;
durationMs: ZodOptional<ZodNumber>;
metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
policyName: ZodOptional<ZodString>;
policyDecision: ZodOptional<ZodString>;
violationType: ZodOptional<ZodString>;
},
$strip,
> = ...

Audit exports - Structured audit logging (Issue #193) Split from index.ts for file size compliance (Issue #285)

- Defined in packages/nexus-agents/src/audit/audit-types.ts:146