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

Interface: PolicyCondition

Defined in: src/tollgate/policy/types.ts:105 Legacy condition for policy evaluation.

Deprecated

Use smart analyzers instead. Conditions are still supported for backwards compatibility but will be removed in a future version.

Properties

field?

optional field: string;
Defined in: src/tollgate/policy/types.ts:113 Field to match against for custom conditions

pattern?

optional pattern: string;
Defined in: src/tollgate/policy/types.ts:110 Pattern for regex conditions

type

type: "regex" | "sql_readonly" | "custom";
Defined in: src/tollgate/policy/types.ts:107 Type of condition to evaluate