import type { RailDeckDirectIntegrationClient as Client } from '@raildeck/frontend-sdk/direct-integration'; /** * Check the access decision for the selected account. * @param client - Configured client; the caller owns current authority. * @param accountId - Authorised account for this workflow. * @param signal - Caller-owned cancellation signal. * @returns A decision tied to the account that was checked, not an operating lease. */ export async function readAccountAccess( client: Client, accountId: string, signal: AbortSignal, ) { const access = await client.accounts.access.getProductAccess(accountId, { signal, timeoutMs: 15_000, }); return { accountId, access }; }