@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
19 lines (18 loc) • 576 B
TypeScript
import type { WebhookBodyAPIUpdate } from "./apiUpdate";
import type { WebhookBodyTestTrigger } from "./testTrigger";
export type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger;
/**
* Types of Prismic Webhooks.
*
* @see More details: {@link https://prismic.io/docs/webhooks}
*/
export declare const WebhookType: {
readonly APIUpdate: "api-update";
readonly TestTrigger: "test-trigger";
};
export interface WebhookBodyBase {
type: (typeof WebhookType)[keyof typeof WebhookType];
domain: string;
apiUrl: string;
secret: string | null;
}