refactor: add provider barrels and webhook grouping

This commit is contained in:
Peter Steinberger
2025-11-25 03:56:11 +01:00
parent b3511e1192
commit af577f07da
7 changed files with 46 additions and 5 deletions

View File

@@ -0,0 +1 @@
export type Provider = "twilio" | "web";

View File

@@ -0,0 +1,13 @@
export { sendTypingIndicator } from "../../twilio/typing.js";
export { createClient } from "../../twilio/client.js";
export { monitorTwilio } from "../../twilio/monitor.js";
export { sendMessage, waitForFinalStatus } from "../../twilio/send.js";
export { listRecentMessages, formatMessageLine } from "../../twilio/messages.js";
export {
updateWebhook,
findIncomingNumberSid,
findMessagingServiceSid,
setMessagingServiceWebhook,
} from "../../twilio/update-webhook.js";
export { findWhatsappSenderSid } from "../../twilio/senders.js";
export { formatTwilioError, logTwilioSendError } from "../../twilio/utils.js";

View File

@@ -0,0 +1,12 @@
export {
createWaSocket,
waitForWaConnection,
sendMessageWeb,
loginWeb,
monitorWebInbox,
monitorWebProvider,
webAuthExists,
logWebSelfId,
pickProvider,
WA_WEB_AUTH_DIR,
} from "../../provider-web.js";