@kontent-ai/webhook-helper
Version:
This utility helps with webhook notifications from Kontent.ai
10 lines (9 loc) • 466 B
TypeScript
import type { WebhookResponse } from "../models/webhook-schemas.js";
import type { ParseResult } from "../utils/types.js";
export type SignatureParams = Readonly<{
payload: string;
secret: string;
signature: string;
}>;
export declare const parseSignedWebhookResponse: ({ payload, secret, signature, }: SignatureParams) => ParseResult<WebhookResponse>;
export declare const isSignatureValid: ({ payload, secret, signature }: SignatureParams) => boolean;