import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as Extend from "../../../index"; export declare namespace WebhookEndpointsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class WebhookEndpointsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: WebhookEndpointsClient.Options); /** * List all webhook endpoints. * * @param {Extend.WebhookEndpointsListRequest} request * @param {WebhookEndpointsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.webhookEndpoints.list({ * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ=" * }) */ list(request?: Extend.WebhookEndpointsListRequest, requestOptions?: WebhookEndpointsClient.RequestOptions): core.HttpResponsePromise; private __list; /** * Create a new webhook endpoint. The response includes a `signingSecret` that is only returned once — store it securely for verifying webhook signatures. * * The `enabledEvents` array specifies which global event types this endpoint should receive. Use the [Webhook Events](https://docs.extend.ai/2026-02-09/developers/api-reference/webhook-events) reference to see available event types. * * To subscribe to events scoped to a specific resource (e.g., a single extractor or workflow), use [Create Webhook Subscription](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/webhook/create-webhook-subscription) after creating the endpoint. * * @param {Extend.WebhookEndpointsCreateRequest} request * @param {WebhookEndpointsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.webhookEndpoints.create({ * url: "https://example.com/webhooks", * name: "Production webhook", * enabledEvents: ["extract_run.processed", "workflow.created"], * apiVersion: "apiVersion" * }) */ create(request: Extend.WebhookEndpointsCreateRequest, requestOptions?: WebhookEndpointsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieve a webhook endpoint by ID. * * @param {string} id - The ID of the webhook endpoint. * * Example: `"wh_Xj8mK2pL9nR4vT7qY5wZ"` * @param {Extend.WebhookEndpointsRetrieveRequest} request * @param {WebhookEndpointsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.webhookEndpoints.retrieve("webhook_endpoint_id_here") */ retrieve(id: string, request?: Extend.WebhookEndpointsRetrieveRequest, requestOptions?: WebhookEndpointsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Update a webhook endpoint. Only the fields you include in the request body will be updated; omitted fields remain unchanged. * * The `apiVersion` of a webhook endpoint cannot be changed after creation. * * @param {string} id - The ID of the webhook endpoint to update. * * Example: `"wh_Xj8mK2pL9nR4vT7qY5wZ"` * @param {Extend.WebhookEndpointsUpdateRequest} request * @param {WebhookEndpointsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.webhookEndpoints.update("webhook_endpoint_id_here") */ update(id: string, request?: Extend.WebhookEndpointsUpdateRequest, requestOptions?: WebhookEndpointsClient.RequestOptions): core.HttpResponsePromise; private __update; /** * Delete a webhook endpoint and all of its subscriptions. This operation is permanent and cannot be undone. * * @param {string} id - The ID of the webhook endpoint to delete. * * Example: `"wh_Xj8mK2pL9nR4vT7qY5wZ"` * @param {Extend.WebhookEndpointsDeleteRequest} request * @param {WebhookEndpointsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.webhookEndpoints.delete("webhook_endpoint_id_here") */ delete(id: string, request?: Extend.WebhookEndpointsDeleteRequest, requestOptions?: WebhookEndpointsClient.RequestOptions): core.HttpResponsePromise; private __delete; }