mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-13 18:21:27 +00:00
16 lines
543 B
TypeScript
16 lines
543 B
TypeScript
import { normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime";
|
|
import { normalizeWebhookPath } from "openclaw/plugin-sdk/webhook-path";
|
|
import type { BlueBubblesAccountConfig } from "./types.js";
|
|
|
|
export { normalizeWebhookPath };
|
|
|
|
export const DEFAULT_WEBHOOK_PATH = "/bluebubbles-webhook";
|
|
|
|
export function resolveWebhookPathFromConfig(config?: BlueBubblesAccountConfig): string {
|
|
const raw = normalizeOptionalString(config?.webhookPath);
|
|
if (raw) {
|
|
return normalizeWebhookPath(raw);
|
|
}
|
|
return DEFAULT_WEBHOOK_PATH;
|
|
}
|