import type { RailDeckDirectIntegrationClient as Client } from '@raildeck/frontend-sdk/direct-integration'; /** * Read a paired control with its profiles and shared quick list. * @param client - Configured client; the caller owns current authority. * @param accountId - Authorised account for this workflow. * @param deviceId - Explicitly selected paired device. * @returns Management data; firmware pairing and token exchange remain outside this workflow. */ export async function openPairedControl( client: Client, accountId: string, deviceId: string, ) { const device = await client.controlSurfaces.get(accountId, deviceId); const profiles = await client.controlSurfaces.listProfiles(accountId, deviceId); const quickList = await client.controlSurfaces.listQuickList(accountId, deviceId); return { device, profiles, quickList }; }