You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ab271d9
Browse filesBrowse the repository at this point in the historyBrowse files
feat(files): page, search, look up, and roll up workspace files over the session API
The workspace files browser could only read a workspace's whole file list.
These session endpoints give it bounded reads that share the v2 and
Mothership implementation under the `files.list` operation:
- GET /api/workspaces/[id]/files accepts folderId (`root` or an id), sortBy,
sortOrder, limit (up to 500), and cursor. Any of them asks for one keyset
page with `nextCursor`; with none, the response is unchanged.
- GET /api/workspaces/[id]/files/search?q matches file names
case-insensitively, within a folder and (by default) its subfolders.
- POST /api/workspaces/[id]/files/lookup resolves capped batches of ids,
storage keys, and references without listing the workspace.
- GET /api/workspaces/[id]/files/folder-stats?parentId reports each child
folder's live file count and bytes, its subtree rolled up from one grouped
aggregate.
`queryWorkspaceFilePage` now takes a folder id beside a folder path, and the
browser's collection read attaches share state only for the files it returns.
0 commit comments