If you want to paginate through all resources in a list method in the Val Town SDK, use Array.fromAsync.

await Array.fromAsync(vt.me.vals.list({})); await Array.fromAsync(vt.vals.branches.list(VAL_ID, {})); const files = await Array.fromAsync(vt.vals.files.retrieve(VAL_ID, { path: "", recursive: true, })

Thanks Stainless! Read more about how Stainless paginates here.