Skip to content
docs

ApprovalQueueOptions

Defined in: approvals.ts:79

optional annotate?: (origin) => string[]

Defined in: approvals.ts:81

Called for every request’s origin; the lines are shown on the sheet (e.g. the shipped phishing list’s verdict).

string

string[]


optional maxPendingPerOrigin?: number

Defined in: approvals.ts:89

Requests one origin may have waiting (current + queued). Default APPROVALS_MAX_PENDING_PER_ORIGIN.


optional refuse?: (origin) => string | null | undefined

Defined in: approvals.ts:87

Called for every request’s origin before anything is queued: a reason refuses the request with OriginRefused (4100) and no window opens. Wire PhishingDetector.refusal here — a warning on the sheet is one click away from a signature.

string

string | null | undefined