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

Interface: SessionPolicyConfig

Defined in: src/tollgate/session/types.ts:155 Configuration for session behavior in a tool policy. Enhanced from the original SessionConfig in policy/types.ts.

Properties

allowedDurations?

optional allowedDurations: SessionDuration[];
Defined in: src/tollgate/session/types.ts:178 Allowed durations to show in terminal UI.

Default

['once', '5min', '15min', 'session']

allowRemember?

optional allowRemember: boolean;
Defined in: src/tollgate/session/types.ts:160 Whether to offer session options when prompting.

Default

true

defaultScope?

optional defaultScope: SessionScope;
Defined in: src/tollgate/session/types.ts:166 Default scope when user doesn’t specify.

Default

'tool'

maxTtl?

optional maxTtl: number;
Defined in: src/tollgate/session/types.ts:172 Maximum TTL in seconds that can be granted.

Default

1800 (30 minutes)

persist?

optional persist: boolean;
Defined in: src/tollgate/session/types.ts:184 Whether to persist grants to disk (survives restart).

Default

false