@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
23 lines (22 loc) • 684 B
text/typescript
import { WebhookBodyAPIUpdate } from "./apiUpdate.cjs";
import { WebhookBodyTestTrigger } from "./testTrigger.cjs";
//#region src/types/webhook/types.d.ts
type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger;
/**
* Types of Prismic Webhooks.
*
* @see More details: {@link https://prismic.io/docs/webhooks}
*/
declare const WebhookType: {
readonly APIUpdate: "api-update";
readonly TestTrigger: "test-trigger";
};
interface WebhookBodyBase {
type: (typeof WebhookType)[keyof typeof WebhookType];
domain: string;
apiUrl: string;
secret: string | null;
}
//#endregion
export { WebhookBody, WebhookBodyBase, WebhookType };
//# sourceMappingURL=types.d.cts.map