import type { RailDeckDirectIntegrationClient as Client } from '@raildeck/frontend-sdk/direct-integration'; /** * Find product and decoder candidates for a later reviewed application. * @param client - Configured client; the caller owns current authority. * @param query - Search phrase chosen by the person using the integration. * @returns Search candidates; inspect one and use the target feature’s dry run before applying. */ export async function searchCollectionProfiles( client: Client, query: string, ) { const products = await client.catalogue.listProductProfiles({ query, limit: 10 }); const decoders = await client.catalogue.listDecoderProfiles({ query, limit: 10 }); return { products, decoders }; }