WebhookConfig
Defined in: packages/webhook/src/types/webhook.types.ts:3
Properties
Section titled “Properties”algorithm?
Section titled “algorithm?”
optionalalgorithm?:"sha256"|"sha1"
Defined in: packages/webhook/src/types/webhook.types.ts:23
backoffMultiplier?
Section titled “backoffMultiplier?”
optionalbackoffMultiplier?:number
Defined in: packages/webhook/src/types/webhook.types.ts:8
batchSize?
Section titled “batchSize?”
optionalbatchSize?:number
Defined in: packages/webhook/src/types/webhook.types.ts:39
How many events queued by emit() go out in one batch. The emit() call
that fills a batch sends it, retries included, before it resolves, unless
another batch is still being sent: then the full batch follows that one,
or, if that one fails, goes with the timer, the next call, or flush().
Infinity leaves every event for flush() or the timer. Defaults to 10,
which also replaces a value below 1. emitSync() does not use it.
batchTimeoutMs?
Section titled “batchTimeoutMs?”
optionalbatchTimeoutMs?:number
Defined in: packages/webhook/src/types/webhook.types.ts:45
With autoStart, how long in milliseconds the first event queued by
emit() waits before its batch is sent. Defaults to 5000. emitSync()
does not use it.
enabledEvents
Section titled “enabledEvents”enabledEvents:
WebhookEventType[]
Defined in: packages/webhook/src/types/webhook.types.ts:28
enableSecurity
Section titled “enableSecurity”enableSecurity:
boolean
Defined in: packages/webhook/src/types/webhook.types.ts:20
Signs every delivery with HMAC. While on, a delivery is never sent
unsigned: endpoints need a secret (or secretKey must be set), and a
stored endpoint without one gets a failed delivery and no request.
jitter?
Section titled “jitter?”
optionaljitter?:boolean
Defined in: packages/webhook/src/types/webhook.types.ts:9
maxDelayMs?
Section titled “maxDelayMs?”
optionalmaxDelayMs?:number
Defined in: packages/webhook/src/types/webhook.types.ts:7
maxRetries
Section titled “maxRetries”maxRetries:
number
Defined in: packages/webhook/src/types/webhook.types.ts:5
retryDelayMs
Section titled “retryDelayMs”retryDelayMs:
number
Defined in: packages/webhook/src/types/webhook.types.ts:6
secretKey?
Section titled “secretKey?”
optionalsecretKey?:string
Defined in: packages/webhook/src/types/webhook.types.ts:22
Signs deliveries to endpoints that have no secret of their own.
signatureHeader?
Section titled “signatureHeader?”
optionalsignatureHeader?:string
Defined in: packages/webhook/src/types/webhook.types.ts:24
signaturePrefix?
Section titled “signaturePrefix?”
optionalsignaturePrefix?:string
Defined in: packages/webhook/src/types/webhook.types.ts:25
timeoutMs
Section titled “timeoutMs”timeoutMs:
number
Defined in: packages/webhook/src/types/webhook.types.ts:12