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

Interface: CreateSessionGrantInput

Defined in: src/tollgate/session/types.ts:117 Input for creating a new session grant.

Properties

context

context: ToolCallContext;
Defined in: src/tollgate/session/types.ts:119 The tool call context that triggered approval

duration

duration: SessionDuration;
Defined in: src/tollgate/session/types.ts:125 Duration of the grant

grantedBy

grantedBy: "api" | "webhook" | "terminal";
Defined in: src/tollgate/session/types.ts:128 How the grant was created

originalRequestId?

optional originalRequestId: string;
Defined in: src/tollgate/session/types.ts:134 ID of the original approval request (for audit linkage)

pattern?

optional pattern: string;
Defined in: src/tollgate/session/types.ts:131 Pattern for ‘pattern’ scope

scope

scope: SessionScope;
Defined in: src/tollgate/session/types.ts:122 Scope of the grant