Beignet API reference
Preparing search index...
@beignet/core
webhooks
parseWebhookEvent
Function parseWebhookEvent
parseWebhookEvent
<
TWebhook
extends
WebhookDef
<
string
,
WebhookEventSchemas
>
,
AllowUnknownEvents
extends
boolean
=
false
,
>
(
webhook
:
TWebhook
,
event
:
WebhookEvent
,
options
?:
Pick
<
VerifyWebhookOptions
<
AllowUnknownEvents
>
,
"allowUnknownEvents"
,
>
,
)
:
Promise
<
InferWebhookVerificationResult
<
TWebhook
,
AllowUnknownEvents
>
>
Validate a verified webhook event against its catalog entry.
Type Parameters
TWebhook
extends
WebhookDef
<
string
,
WebhookEventSchemas
>
AllowUnknownEvents
extends
boolean
=
false
Parameters
webhook
:
TWebhook
event
:
WebhookEvent
options
:
Pick
<
VerifyWebhookOptions
<
AllowUnknownEvents
>
,
"allowUnknownEvents"
>
= {}
Returns
Promise
<
InferWebhookVerificationResult
<
TWebhook
,
AllowUnknownEvents
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Beignet API reference
Loading...
Validate a verified webhook event against its catalog entry.