import { APIResource } from "../../../../core/resource.mjs"; import * as SendersAPI from "../../senders.mjs"; import { APIPromise } from "../../../../core/api-promise.mjs"; import { RequestOptions } from "../../../../internal/request-options.mjs"; export declare class Webhook extends APIResource { /** * Generate a new signing secret for this tool. The previous one stops working on * the next call, with no overlap, so update your endpoint first. The tool keeps * its id, so flows that reference it by name are unaffected. * * @example * ```ts * const webhookSecretResponse = * await client.senders.agent.tools.webhook.rotateSecret( * 'toolId', * { senderId: 'senderId' }, * ); * ``` */ rotateSecret(toolID: string, params: WebhookRotateSecretParams, options?: RequestOptions): APIPromise; } export interface WebhookRotateSecretParams { senderId: string; } export declare namespace Webhook { export { type WebhookRotateSecretParams as WebhookRotateSecretParams }; } //# sourceMappingURL=webhook.d.mts.map