/** * LINKURIOUS CONFIDENTIAL * Copyright Linkurious SAS 2012 - 2024 * * - Created on 2024-02-05. */ import { Request } from '../../http/request'; import { PaginatedResponse } from '../commonTypes'; import { CreateWebhookParams, DeleteWebhookParams, GetWebhookDeliveriesParams, PingWebhookParams, Webhook, WebhookDelivery } from './types'; export * from './types'; export declare class WebhookAPI extends Request { /** * Create a new webhook. */ createWebhook(this: Request, params: CreateWebhookParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Delete an existing webhook. */ deleteWebhook(params: DeleteWebhookParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * List all existing webhooks. */ getWebhooks(this: Request<{ items: Webhook[]; }>): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response<{ items: Webhook[]; }>>; /** * Trigger the "ping" event on a webhook. */ pingWebhook(this: Request, params: PingWebhookParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * List deliveries for a webhook, with optional pagination. */ getWebhookDeliveries(this: Request>, params: GetWebhookDeliveriesParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>>; }