JS SDK: Fetching queues across multiple divisions without manual pagination

Is there a clean way to pull every queue across all our divisions using the Genesys Cloud JavaScript SDK without writing a custom pagination loop for each division ID?

I’ve got a script that grabs the division list first, then iterates through them to call queuesApi.getQueues(). It feels clunky. The SDK docs show a getQueues method but it seems tied to a single division context. If I pass divisionId: 'all' or just omit it, I get a 400 Bad Request saying the division is invalid.

const divisions = await adminApi.getDivisions();
const allQueues = [];
for (const div of divisions.resources) {
 const res = await queuesApi.getQueues({ divisionId: div.id });
 allQueues.push(...res.resources);
}

This works but it’s slow. Does the SDK have a bulk fetch method I’m missing, or is there a specific query param I can pass to getQueues to ignore the division filter entirely?