import { CrowdinApi, PaginationOptions, PatchRequest, ResponseList, ResponseObject } from '../core'; import { WebhooksModel } from '../webhooks'; /** * Webhooks allow you to collect information about events that happen in your Crowdin account. * * You can select the request type, content type, and add a custom payload, which allows you to create integrations with other systems on your own. */ export declare class OrganizationWebhooks extends CrowdinApi { /** * @requiredScope webhook:read * @param options optional pagination parameters for the request * @see https://developer.crowdin.com/api/v2/#operation/api.webhooks.getMany */ listWebhooks(options?: PaginationOptions): Promise>; /** * @requiredScope webhook:write * @param request request body * @see https://developer.crowdin.com/api/v2/#operation/api.webhooks.post */ addWebhook(request: OrganizationWebhooksModel.AddOrganizationWebhookRequest): Promise>; /** * @requiredScope webhook:read * @param webhookId webhook identifier * @see https://developer.crowdin.com/api/v2/#operation/api.webhooks.get */ getWebhook(webhookId: number): Promise>; /** * @requiredScope webhook:write * @param webhookId webhook identifier * @see https://developer.crowdin.com/api/v2/#operation/api.webhooks.delete */ deleteWebhook(webhookId: number): Promise; /** * @requiredScope webhook:write * @param webhookId webhook identifier * @param request request body * @see https://developer.crowdin.com/api/v2/#operation/api.webhooks.patch */ editWebhook(webhookId: number, request: PatchRequest[]): Promise>; } export declare namespace OrganizationWebhooksModel { type OrganizationWebhook = Omit & { events: Event[]; }; type AddOrganizationWebhookRequest = Omit & { events: Event[]; }; type Event = 'group.created' | 'group.deleted' | 'project.created' | 'project.deleted'; }