openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
14 lines (13 loc) • 416 B
JavaScript
//#region src/plugin-sdk/account-configured-ids.ts
/** List normalized configured account ids from a raw channel account record map. */
function listConfiguredAccountIds(e) {
if (!e.accounts) return [];
const t = /* @__PURE__ */ new Set();
for (const n of Object.keys(e.accounts)) {
if (!n) continue;
t.add(e.normalizeAccountId(n));
}
return [...t];
}
//#endregion
export { listConfiguredAccountIds as t };