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

Interface: RiskMapping

Defined in: src/tollgate/analyzers/types.ts:124 Mapping from risk levels to policy actions. Used in smart policies to define how each risk level should be handled. Unspecified levels fall back to DEFAULT_RISK_MAPPING.

Example

const strictMapping: RiskMapping = {
  safe: 'allow',
  read: 'allow',
  write: 'prompt',
  destructive: 'deny',  // Stricter than default
  dangerous: 'deny'
};

Properties

dangerous?

optional dangerous: "allow" | "prompt" | "deny";
Defined in: src/tollgate/analyzers/types.ts:129

destructive?

optional destructive: "allow" | "prompt" | "deny";
Defined in: src/tollgate/analyzers/types.ts:128

read?

optional read: "allow" | "prompt" | "deny";
Defined in: src/tollgate/analyzers/types.ts:126

safe?

optional safe: "allow" | "prompt" | "deny";
Defined in: src/tollgate/analyzers/types.ts:125

write?

optional write: "allow" | "prompt" | "deny";
Defined in: src/tollgate/analyzers/types.ts:127