UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

15 lines (14 loc) 701 B
//#region src/channels/message-access/store-allow-from.ts /** * Read pairing-store allowlist entries when a direct-message policy permits * store fallback. */ async function readChannelIngressStoreAllowFromForDmPolicy(params) { if (params.shouldRead === false || params.dmPolicy === "allowlist" || params.dmPolicy === "open") return []; return await (params.readStore ?? (async (provider, accountId) => { const { readChannelAllowFromStore } = await import("./pairing-store-vRPrGn4p.js"); return await readChannelAllowFromStore(provider, process.env, accountId); }))(params.provider, params.accountId).catch(() => []); } //#endregion export { readChannelIngressStoreAllowFromForDmPolicy as t };