WebhookCollectorConfig
Defined in: packages/analytics/src/collectors/webhook.collector.ts:34
Properties
Section titled “Properties”allowedSources
Section titled “allowedSources”allowedSources:
string[]
Defined in: packages/analytics/src/collectors/webhook.collector.ts:48
enableSignatureValidation
Section titled “enableSignatureValidation”enableSignatureValidation:
boolean
Defined in: packages/analytics/src/collectors/webhook.collector.ts:39
Verify each webhook’s signature before collecting it. Defaults to true,
which needs secretKey; only false accepts unsigned webhooks.
maxPayloadSize
Section titled “maxPayloadSize”maxPayloadSize:
number
Defined in: packages/analytics/src/collectors/webhook.collector.ts:53
The largest payload accepted, in bytes: rawBody is measured before its
signature is checked, then body by the length of its JSON.
rateLimitPerMinute
Section titled “rateLimitPerMinute”rateLimitPerMinute:
number
Defined in: packages/analytics/src/collectors/webhook.collector.ts:54
secretKey?
Section titled “secretKey?”
optionalsecretKey?:string
Defined in: packages/analytics/src/collectors/webhook.collector.ts:47
The shared signing secret. Required while signature validation is on.
signatureHeader
Section titled “signatureHeader”signatureHeader:
string
Defined in: packages/analytics/src/collectors/webhook.collector.ts:45
The header holding the signature, matched in any case. Its value is
sha256=<hex> or bare <hex>: the HMAC-SHA256 of rawBody keyed with
secretKey. Defaults to x-signature.