import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptions } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as ElevenLabs from "../../../index"; export declare namespace WebhooksClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class WebhooksClient { protected readonly _options: NormalizedClientOptions; constructor(options?: WebhooksClient.Options); /** * List all webhooks for a workspace * * @param {ElevenLabs.WebhooksListRequest} request * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.UnprocessableEntityError} * @throws {@link errors.ElevenLabsError} * @throws {@link errors.ElevenLabsTimeoutError} * * @example * await client.webhooks.list({ * includeUsages: false * }) */ list(request?: ElevenLabs.WebhooksListRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __list; /** * Create a new webhook for the workspace with the specified authentication type. * * @param {ElevenLabs.BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost} request * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.UnprocessableEntityError} * @throws {@link errors.ElevenLabsError} * @throws {@link errors.ElevenLabsTimeoutError} * * @example * await client.webhooks.create({ * settings: { * authType: "hmac", * name: "name", * webhookUrl: "webhook_url" * } * }) */ create(request: ElevenLabs.BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Delete the specified workspace webhook * * @param {string} webhook_id - The unique ID for the webhook * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.UnprocessableEntityError} * @throws {@link errors.ElevenLabsError} * @throws {@link errors.ElevenLabsTimeoutError} * * @example * await client.webhooks.delete("G007vmtq9uWYl7SUW9zGS8GZZa1K") */ delete(webhook_id: string, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * Update the specified workspace webhook * * @param {string} webhook_id - The unique ID for the webhook * @param {ElevenLabs.BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch} request * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.UnprocessableEntityError} * @throws {@link errors.ElevenLabsError} * @throws {@link errors.ElevenLabsTimeoutError} * * @example * await client.webhooks.update("G007vmtq9uWYl7SUW9zGS8GZZa1K", { * isDisabled: true, * name: "My Callback Webhook" * }) */ update(webhook_id: string, request: ElevenLabs.BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __update; /** * Sends a sample event of the given type to the webhook once and returns the endpoint's status code, response time, content type and response size. Test events are signed like real ones, are never retried, and share a limit of 10 per webhook per minute with redeliveries. * * @param {string} webhook_id - The ID of the webhook. * @param {ElevenLabs.BodySendTestWebhookEventV1WorkspaceWebhooksWebhookIdTestPost} request * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.UnprocessableEntityError} * @throws {@link errors.ElevenLabsError} * @throws {@link errors.ElevenLabsTimeoutError} * * @example * await client.webhooks.test("webhook_id", { * webhookType: "project_conversion_status" * }) */ test(webhook_id: string, request: ElevenLabs.BodySendTestWebhookEventV1WorkspaceWebhooksWebhookIdTestPost, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __test; /** * Sends a stored delivery again, once, with the same delivery ID, a new signature and an ElevenLabs-Webhook-Redelivery header. A retry that is already scheduled is still sent. Redelivering needs permission to manage webhooks and a web session, and the delivery's payload must be stored. Redeliveries and test events share a limit of 10 per webhook per minute. * * @param {string} webhook_id - The ID of the webhook. * @param {string} delivery_id - The ID of the delivery to send again. * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.UnprocessableEntityError} * @throws {@link errors.ElevenLabsError} * @throws {@link errors.ElevenLabsTimeoutError} * * @example * await client.webhooks.redeliver("webhook_id", "delivery_id") */ redeliver(webhook_id: string, delivery_id: string, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __redeliver; }