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

Interface: SessionConfig

Defined in: src/tollgate/policy/types.ts:135 Configuration for session-based approval memory. When enabled, Tollgate can remember approval decisions for a period of time, reducing approval fatigue for repetitive operations.

Example

const sessionConfig: SessionConfig = {
  remember: true,
  scope: 'tool',   // Remember for all calls to this tool
  ttl: 300         // For 5 minutes
};

Properties

remember?

optional remember: boolean;
Defined in: src/tollgate/policy/types.ts:137 Whether to remember approval decisions

scope?

optional scope: "exact" | "tool" | "server";
Defined in: src/tollgate/policy/types.ts:140 Scope of the remembered approval

ttl?

optional ttl: number;
Defined in: src/tollgate/policy/types.ts:143 Time-to-live for the approval in seconds