@marxlnfcs/wildduck-api
Version:
Provides a client to interact with the wildduck api
9 lines (8 loc) • 687 B
TypeScript
import { WildduckClientComponent } from "../../client-component";
import { IWildduckApiCreateWebhookRequest, IWildduckApiCreateWebhookResponse, IWildduckApiGetWebhooksResponse, IWildduckApiSuccessResponse } from "../../client-schema";
import { IWildduckApiGetWebhooksOptions } from "./webhooks.interface";
export declare class WildduckWebhooksService extends WildduckClientComponent {
deleteWebhook(webhook: string): Promise<IWildduckApiSuccessResponse>;
getWebhooks(type: string, options?: Partial<IWildduckApiGetWebhooksOptions>): Promise<IWildduckApiGetWebhooksResponse>;
createWebhook(dto: IWildduckApiCreateWebhookRequest): Promise<IWildduckApiCreateWebhookResponse>;
}