import type { PaginatedWebhookList } from "../models/PaginatedWebhookList"; import type { WrappedWebhook } from "../models/WrappedWebhook"; import type { WrappedWebhookCreate } from "../models/WrappedWebhookCreate"; import type { WrappedWebhookUpdate } from "../models/WrappedWebhookUpdate"; import type { CancelablePromise } from "../core/CancelablePromise"; export declare class WebhookService { /** * Create a new webhook * Create a new webhook that sends selected workspace events to a URL. * @param requestBody * @returns WrappedWebhook Success, including the created webhook * @throws ApiError */ static createWebhook(requestBody: WrappedWebhookCreate): CancelablePromise; /** * Retrieve an existing webhook * Retrieve an existing webhook by its ID. * @param id * @returns WrappedWebhook Success, including the retrieved webhook * @throws ApiError */ static getWebhook(id: string): CancelablePromise; /** * Update an existing webhook * Update an existing webhook. Only the fields provided will be updated. * @param id * @param requestBody * @returns WrappedWebhook Success, including the updated webhook * @throws ApiError */ static updateWebhook(id: string, requestBody: WrappedWebhookUpdate): CancelablePromise; /** * Delete an existing webhook * Delete a webhook by its ID. * @param id * @returns WrappedWebhook Success, including the deleted webhook * @throws ApiError */ static deleteWebhook(id: string): CancelablePromise; /** * List all webhooks * List all webhooks in the workspace. * @param limit Number of results to return per page. * @param offset The initial index from which to return the results. * @returns PaginatedWebhookList Success, including a list of webhooks * @throws ApiError */ static listWebhooks(limit?: number, offset?: number): CancelablePromise; }