import { resolveStandardAllowFromPath } from "../../../../src/channels/pairing/paths.js";
import { appendAllowFromIdSync, readAllowFromIdsSync } from "../../../../src/channels/pairing/allow-from-file.js";
//#region extensions/feishu/src/auth/pairing.ts
function readFrameworkAllowFromList(accountId) {
	return readAllowFromIdsSync(resolveStandardAllowFromPath("feishu", accountId));
}
async function registerUserInFrameworkStore(params) {
	const { accountId, userId } = params;
	const id = String(typeof userId === "number" ? userId : userId.trim());
	if (!id) return { changed: false };
	return { changed: appendAllowFromIdSync(resolveStandardAllowFromPath("feishu", accountId), id).changed };
}
//#endregion
export { readFrameworkAllowFromList, registerUserInFrameworkStore };

//# sourceMappingURL=pairing.js.map