Zero Trust Team Lists API pagination issue with Pulumi

I’m trying to use Pulumi’s Cloudflare provider to manage the contents of my Gateway/Teams/Zero Trust Lists. I have a list with 144 items and when I import the list, Pulumi only found part of the list. This seems like it could be an issue with pagination and inconsistent behavior between the server and clients.

To see how the API was operating, I issued a few requests documented below

This returns 50 items and no information about pagination:

curl -X GET "https://api.cloudflare.com/client/v4/accounts/<ACCOUNT>/gateway/lists/<ID>/items" \
     -H "Authorization: bearer <TOKEN>" \
     -H "Content-Type: application/json"

Following the documentation on Pagination the above request should have been roughly equivalent to this. Incrementing the page did not return different results.

curl -X GET "https://api.cloudflare.com/client/v4/accounts/<ACCOUNT>/gateway/lists/<ID>/items?page=1&per_page=50" \
     -H "Authorization: bearer <TOKEN>" \
     -H "Content-Type: application/json"

Only this returned the whole list by upping the limit above the list size (I found this query param in the developer tools while navigating the list in the console)

curl -X GET "https://api.cloudflare.com/client/v4/accounts/<ACCOUNT>/gateway/lists/<ID>/items?limit=1000" \
     -H "Authorization: bearer <TOKEN>" \
     -H "Content-Type: application/json"

Fixing the behavior in the clients doesn’t seem correct as the endpoint is not behaving like a paginated resource, but I’m open to guidance as to how best to fix this issue as I imagine it also impacts the Terraform counterpart (not tested).

Pulumi Cloudflare Github Issue: