import { WebhookBodyBase, WebhookType } from "./types"; /** * Webhook payload sent when a Prismic repository content is updated. * * @see More details: {@link https://prismic.io/docs/core-concepts/webhooks} */ export interface WebhookBodyAPIUpdate extends WebhookBodyBase { type: typeof WebhookType.APIUpdate; masterRef?: string; releases: WebhookBodyAPIUpdateOperations; masks: WebhookBodyAPIUpdateOperations; tags: WebhookBodyAPIUpdateOperations; documents: string[]; /** * @deprecated Experiments are no longer supported by Prismic. */ experiments?: WebhookBodyAPIUpdateOperations; } interface WebhookBodyAPIUpdateOperations { update?: T[]; addition?: T[]; deletion?: T[]; } /** * Metadata representing a mask (also called a Custom Type). * * @see More details: {@link https://prismic.io/docs/core-concepts/custom-types} */ interface WebhookBodyAPIUpdateMask { id: string; label: string; } /** * Metadata representing a tag. * * @see More details: {@link https://prismic.io/docs/core-concepts/document-tags} */ interface WebhookBodyAPIUpdateTag { id: string; } /** * Metadata representing a Release. * * @see More details: {@link https://prismic.io/docs/core-concepts/draft-plan-and-schedule-content#releases} */ interface WebhookBodyAPIUpdateRelease { id: string; ref: string; label: string; documents: string[]; } export {};