API Reference
ApprovalPrompter
Defined in: permissions/permissions.types.ts:100
Asks the user to approve calls whose policy is "ask".
Remarks
Receives the whole pending subset at once (one round-trip), so a CLI can present them together.
See
permissionGate for the consumer that batches "ask" calls.
Methods
ask()
ask(batch): Promise<ApprovalChoice[]>;Defined in: permissions/permissions.types.ts:108
Prompt the user for a decision on each pending call.
Parameters
| Parameter | Type | Description |
|---|---|---|
batch | ApprovalRequest[] | The pending ApprovalRequests, all calls whose policy resolved to PermissionPolicy.Ask. |
Returns
Promise<ApprovalChoice[]>
One ApprovalChoice per request, index-aligned with batch.