Extracts items from a single page response
OptionalonOptional: called once before the first fetch starts
OptionalonOptional: called once after all pages have been fetched
OptionalonOptional: called after each page is fetched
OptionalmaxOptional: maximum number of pages to fetch (safety limit)
OptionaldelayOptional: milliseconds to wait between each page fetch
OptionalretryOptional: retry failed page fetches
OptionalsignalOptional: signal to abort pagination early and return partial results
Returns the cursor for the next page, or null/undefined when there are no more pages