Analytics Aggregates API: type mismatch on customInterval definition

Trying to build a custom interval report via the Analytics Conversations Aggregates API. The documentation says customInterval is an object, but the JS SDK types expect a CustomInterval model instance. Passing a raw object throws a type error in strict mode, and instantiating the model feels like boilerplate hell.

Here’s the query payload I’m sending to /api/v2/analytics/conversations/aggregates:

{
 "interval": "custom",
 "dateFrom": "2023-10-01T00:00:00.000Z",
 "dateTo": "2023-10-02T00:00:00.000Z",
 "customInterval": {
 "unit": "minutes",
 "size": 15
 },
 "groupings": [
 { "type": "wrapUpCode" }
 ],
 "metrics": [
 { "name": "conversation/count" }
 ]
}

The API returns 200, but the TypeScript compiler yells about customInterval not matching CustomInterval | undefined. Is there a way to bypass the strict model instantiation for simple interval definitions without suppressing @ts-ignore everywhere?