import { client } from "../client"; import { normalizePage, pageQuery, type Page, type PageParams } from "../client"; import type { Enrollment } from "../client"; export async function getInstanceEnrollments( instanceId: string, params?: PageParams, signal?: AbortSignal, ): Promise> { const data = await client(`/instances/${instanceId}/enrollments${pageQuery(params)}`, { signal }); return normalizePage(data); }