import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as Webflow from "../../../index"; export declare namespace Webhooks { interface Options extends BaseClientOptions { } interface RequestOptions extends BaseRequestOptions { } } /** * Webhooks are the webhooks in your Webflow site. */ export declare class Webhooks { protected readonly _options: Webhooks.Options; constructor(_options: Webhooks.Options); /** * List all App-created Webhooks registered for a given site * * Required scope | `sites:read` * * @param {string} siteId - Unique identifier for a Site * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.TooManyRequestsError} * @throws {@link Webflow.InternalServerError} * * @example * await client.webhooks.list("580e63e98c9a982ac9b8b741") */ list(siteId: string, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise; private __list; /** * Create a new Webhook. * * Limit of 75 registrations per `triggerType`, per site. * * Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients). * Required scope | `sites:write` * * @param {string} siteId - Unique identifier for a Site * @param {Webflow.Webhook} request * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.TooManyRequestsError} * @throws {@link Webflow.InternalServerError} * * @example * await client.webhooks.create("580e63e98c9a982ac9b8b741", { * id: "582266e0cd48de0f0e3c6d8b", * triggerType: "form_submission", * url: "https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f", * workspaceId: "4f4e46fd476ea8c507000001", * siteId: "562ac0395358780a1f5e6fbd", * lastTriggered: new Date("2023-02-08T23:59:28.000Z"), * createdOn: new Date("2022-11-08T23:59:28.000Z") * }) */ create(siteId: string, request: Webflow.Webhook, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise; private __create; /** * Get a specific Webhook instance * * Required scope: `sites:read` * * @param {string} webhookId - Unique identifier for a Webhook * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.TooManyRequestsError} * @throws {@link Webflow.InternalServerError} * * @example * await client.webhooks.get("580e64008c9a982ac9b8b754") */ get(webhookId: string, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise; private __get; /** * Remove a Webhook * * Required scope: `sites:read` * * @param {string} webhookId - Unique identifier for a Webhook * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.TooManyRequestsError} * @throws {@link Webflow.InternalServerError} * * @example * await client.webhooks.delete("580e64008c9a982ac9b8b754") */ delete(webhookId: string, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise; private __delete; protected _getAuthorizationHeader(): Promise; }