Skip to content

WebhooksPanelOptions

Defined in: src/server/create-fetch-handler.ts:36

Options for the panel handler (shared by every framework adapter).

Property Type Description Defined in
auth? AuthProvider Authentication provider. Default: anonymous (no auth). src/server/create-fetch-handler.ts:48
authorization? AuthorizationProvider Authorization provider. Default: allow all. src/server/create-fetch-handler.ts:50
basePath? string Mount prefix, e.g. "/webhooks". Default "" (root). src/server/create-fetch-handler.ts:46
core? WebhooksCore Reuse an existing core instead of constructing one. src/server/create-fetch-handler.ts:67
cors? CorsOptions Enable CORS on the handler itself — answers OPTIONS preflights and attaches Access-Control-* headers to every response, so a cross-origin embed works regardless of the host framework. See WebhooksCorsOptions. src/server/create-fetch-handler.ts:93
dispatcher? | false | DispatcherOptions Delivery-engine configuration. By default the panel creates and starts a dispatcher so deliveries flow the moment the panel is mounted. Pass false to skip it entirely (split-worker deployments where a separate process runs xtandard-webhooks dispatch against the same storage). src/server/create-fetch-handler.ts:100
hooks? WebhooksHooksInput Control-plane hooks fired around admin mutations (see ../hooks/contract.WebhooksHooks). Ignored when core is supplied — configure hooks on that core instead. src/server/create-fetch-handler.ts:73
logoUrl? string Logo image URL shown in the navbar in place of the title wordmark. src/server/create-fetch-handler.ts:63
onDelivery? DeliveryListener Fire-and-forget sink invoked for every delivery attempt (metrics tap). Ignored when core is supplied. See ../delivery-sink.DeliveryListener. src/server/create-fetch-handler.ts:85
onDeliveryError? DeliveryErrorReporter Reporter for errors thrown by onDelivery. Default: console.warn. src/server/create-fetch-handler.ts:87
onHookError? HookErrorReporter Reporter for errors thrown by after hooks. Default: console.warn. src/server/create-fetch-handler.ts:75
portal? WebhooksPortalOptions Portal-token composition: requests bearing a valid whpt_… token act as a portal principal scoped to the token’s application. Mint tokens server-side with createPortalToken. See ./routes.WebhooksPortalOptions. src/server/create-fetch-handler.ts:57
queueStorage? KvStorage Store for deliveries, attempts, and the due index. Defaults to storage. src/server/create-fetch-handler.ts:44
readonly? boolean Block all mutating operations when true. src/server/create-fetch-handler.ts:59
retention? RetentionOptions Message/audit retention policy. Ignored when a prebuilt core is supplied — configure it on that core instead. See ../core.RetentionOptions. src/server/create-fetch-handler.ts:80
storage? KvStorage Control-plane store: applications, event types, endpoints, messages, audit. Required unless a prebuilt core is supplied (which carries its own storage, and its queueStorage, as the source of truth). src/server/create-fetch-handler.ts:42
title? string UI title shown in the page and bootstrap config. src/server/create-fetch-handler.ts:61
uiDir? string Override the directory the bundled UI is served from (defaults to ./ui beside this module). src/server/create-fetch-handler.ts:65