import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as HydraDB from "../../../index.js"; export declare namespace WebhooksClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class WebhooksClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: WebhooksClient.Options); /** * Get the registered indexing webhook configuration for this API key. * * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.webhooks.get() */ get(requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __get; /** * Register the indexing webhook for this API key's org. Set `generate_signing_secret` to register and enable signing in one request; the secret is returned once on the response. Omitting `signing_secret` preserves any secret already configured - to disable signing, call DELETE /webhooks/indexing/signing-secret. * * @param {HydraDB.WebhooksWebhookRegisterRequest} request * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link HydraDB.BadRequestError} * * @example * await client.webhooks.register() */ register(request?: HydraDB.WebhooksWebhookRegisterRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __register; /** * Unregister the indexing webhook for this API key. * * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link HydraDB.NotFoundError} * * @example * await client.webhooks.delete() */ delete(requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * List recent webhook delivery attempts with optional cursor-based pagination. * * @param {HydraDB.ListDeliveriesWebhooksRequest} request * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.webhooks.listDeliveries() */ listDeliveries(request?: HydraDB.ListDeliveriesWebhooksRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __listDeliveries; /** * Get a single webhook delivery attempt by ID. * * @param {HydraDB.GetDeliveryWebhooksRequest} request * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link HydraDB.NotFoundError} * * @example * await client.webhooks.getDelivery({ * deliveryId: "dlv_9f8e7d6c" * }) */ getDelivery(request: HydraDB.GetDeliveryWebhooksRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __getDelivery; /** * Queue a failed or permanently-failed delivery for retry. * * @param {HydraDB.RetryDeliveryWebhooksRequest} request * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link HydraDB.NotFoundError} * * @example * await client.webhooks.retryDelivery({ * deliveryId: "dlv_9f8e7d6c" * }) */ retryDelivery(request: HydraDB.RetryDeliveryWebhooksRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __retryDelivery; /** * Generates a signing secret, or stores one you supply. The plaintext is returned exactly once and cannot be retrieved afterwards. Takes effect immediately, so rotate only once your receiver accepts the new secret. * * @param {HydraDB.WebhooksSigningSecretRequest} request * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link HydraDB.NotFoundError} * @throws {@link HydraDB.UnprocessableEntityError} * * @example * await client.webhooks.setSigningSecret() */ setSigningSecret(request?: HydraDB.WebhooksSigningSecretRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __setSigningSecret; /** * Removes the stored signing secret. Deliveries stop carrying the X-HydraDB-Signature header. This is the only way to disable signing - editing a registration never clears the secret. * * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link HydraDB.NotFoundError} * * @example * await client.webhooks.clearSigningSecret() */ clearSigningSecret(requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __clearSigningSecret; /** * Send a test webhook event to the registered endpoint to verify connectivity. * * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link HydraDB.NotFoundError} * * @example * await client.webhooks.test() */ test(requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __test; /** * Ingest a Supabase INSERT/UPDATE/DELETE row change into the graph. * * @param {HydraDB.PostWebhooksSupabaseRequest} request * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link HydraDB.BadRequestError} * @throws {@link HydraDB.NotFoundError} * * @example * await client.webhooks.supabaseRowChangeWebhook({ * hydraDbConnector: "X-HydraDB-Connector", * body: { * "key": "value" * } * }) */ supabaseRowChangeWebhook(request: HydraDB.PostWebhooksSupabaseRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise; private __supabaseRowChangeWebhook; }