Skip to main content
Dotset CLI API Documentation / tollgate / AuditRecord

Interface: AuditRecord

Defined in: src/tollgate/audit/schema.ts:133 Record of a tool call in the audit log.

Properties

analyzer?

optional analyzer: string;
Defined in: src/tollgate/audit/schema.ts:147 Analyzer used for smart decisions

args

args: Record<string, unknown>;
Defined in: src/tollgate/audit/schema.ts:139 Original arguments (may contain sensitive data)

argsRedacted?

optional argsRedacted: string;
Defined in: src/tollgate/audit/schema.ts:141 PII-redacted version of args for compliance reporting

clientId?

optional clientId: string;
Defined in: src/tollgate/audit/schema.ts:159 Client identifier

correlationId?

optional correlationId: string;
Defined in: src/tollgate/audit/schema.ts:157 Correlation ID for linking related events

durationMs?

optional durationMs: number;
Defined in: src/tollgate/audit/schema.ts:153

errorMessage?

optional errorMessage: string;
Defined in: src/tollgate/audit/schema.ts:152

id

id: string;
Defined in: src/tollgate/audit/schema.ts:134

policyDecision

policyDecision: "allow" | "prompt" | "deny";
Defined in: src/tollgate/audit/schema.ts:142

policyReason?

optional policyReason: string;
Defined in: src/tollgate/audit/schema.ts:145 Reason for the policy decision

policyRule?

optional policyRule: string;
Defined in: src/tollgate/audit/schema.ts:143

result?

optional result: "error" | "success";
Defined in: src/tollgate/audit/schema.ts:151

riskLevel?

optional riskLevel: AuditRiskLevel;
Defined in: src/tollgate/audit/schema.ts:149 Risk level from smart analysis

server

server: string;
Defined in: src/tollgate/audit/schema.ts:136

sessionGrantId?

optional sessionGrantId: string;
Defined in: src/tollgate/audit/schema.ts:155 ID of the session grant that authorized this call

timestamp

timestamp: Date;
Defined in: src/tollgate/audit/schema.ts:135

tool

tool: string;
Defined in: src/tollgate/audit/schema.ts:137

userDecision?

optional userDecision: "timeout" | "approved" | "denied" | null;
Defined in: src/tollgate/audit/schema.ts:150