feat(storage): add listPaginated for cursor-based file listing#1579
Open
spydon wants to merge 3 commits into
Open
feat(storage): add listPaginated for cursor-based file listing#1579spydon wants to merge 3 commits into
spydon wants to merge 3 commits into
Conversation
Adds an optional cacheNonce parameter to getPublicUrl, createSignedUrl, createSignedUrls and download, appending a cacheNonce query parameter to the generated URL to bypass CDN caching for a specific file version. Ref: SDK-875
Adds StorageFileApi.listPaginated, backed by the storage list-v2 endpoint, supporting cursor-based pagination and hierarchical (delimiter) listing via PaginatedSearchOptions and returning a PaginatedListResult of PaginatedFile and PaginatedFolder entries. Implements storage.file_buckets.list_files_paginated.
dc28e71 to
5653c6a
Compare
grdsdev
approved these changes
Jul 10, 2026
Base automatically changed from
lukasklingsbo/sdk-875-storage-cache-nonce
to
main
July 10, 2026 14:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
StorageFileApi.listPaginated, backed by the storageobject/list-v2/{bucketId}endpoint, supporting cursor-based pagination and hierarchical (delimiter) listing.New API, using descriptive Dart names rather than the supabase-js
listV2/SearchV2*naming:listPaginated({PaginatedSearchOptions options})returnsPaginatedListResultPaginatedSearchOptions(limit, prefix, cursor, withDelimiter, sortBy)PaginatedListResult(hasNext, folders, objects, nextCursor)PaginatedFile,PaginatedFolderFileSort(column, order), wherecolumnandorderare the enumsFileSortColumnandFileSortOrderOutcome: implemented
Reference: supabase-js
StorageFileApi.listV2(object/list-v2)Compliance matrix:
storage.file_buckets.list_files_paginated-> implementedNotes
Paginated*) instead of theV2suffix, and enhanced enumsFileSortColumnandFileSortOrderfor the sort options instead of raw strings, matching the existingBucketSortColumn/BucketSortOrderpattern.withDelimiteris camelCase on the Dart side and mapped to thewith_delimiterwire key;FileSortColumnis serialized viasnakeCase(for examplecreatedAtbecomescreated_at) andFileSortOrdervia itsasc/descvalue.Stacking
Second of three stacked PRs. Base: #1578 (cacheNonce). Review and merge #1578 first.