JavaScript Platform SDK: Fetching queues across all divisions

Trying to build a queue selector for our custom agent desktop extension. The standard queueApi.getQueues() call only returns queues in the default division, which is useless for our multi-division setup. I see the API supports a divisions query parameter, but the JS SDK typings don’t seem to expose it properly. Is there a way to pass the divisions array to fetch all queues at once, or do I have to loop through divisions manually?

The SDK options object takes a divisions array directly, so just pass it in like this:

const queues = await platformClient.queues.getQueues({ divisions: ['divisionId1', 'divisionId2'] });

No need to loop manually.