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

Interface: ApprovalRequest

Defined in: src/tollgate/approval/types.ts:9 Request for user approval of a tool call.

Properties

context

context: ToolCallContext;
Defined in: src/tollgate/approval/types.ts:14 Context of the tool call being approved

decision

decision: PolicyDecision;
Defined in: src/tollgate/approval/types.ts:17 Policy decision that triggered this approval

id

id: string;
Defined in: src/tollgate/approval/types.ts:11 Unique identifier for this approval request

sessionConfig?

optional sessionConfig: SessionPolicyConfig;
Defined in: src/tollgate/approval/types.ts:26 Session configuration from policy. Controls what duration options are shown to the user.

timestamp

timestamp: Date;
Defined in: src/tollgate/approval/types.ts:20 When the request was created