feat(resources): add cursor, group by on /api/favorites/resources

This commit is contained in:
Edouard Vanbelle
2026-05-28 10:08:38 +02:00
parent 5790a1459f
commit 607ae5e6df
15 changed files with 1265 additions and 209 deletions
+16
View File
@@ -333,6 +333,22 @@
* @property {string|undefined} [next_cursor] - Absent when the last page is reached.
*/
/**
* One item returned by `GET /api/favorites/resources`.
* `resource_type` discriminates the shape of `resource`.
* @typedef {Object} FavoritesResourceItem
* @property {ResourceTypeEnum} resource_type - 'file' | 'folder'
* @property {string} favorited_at - ISO-8601 timestamp when the item was starred.
* @property {FileItem|FolderItem} resource - Full resource details; shape follows resource_type.
*/
/**
* Response for `GET /api/favorites/resources`.
* @typedef {Object} FavoritesResourcesResponse
* @property {FavoritesResourceItem[]} items
* @property {string|undefined} [next_cursor] - Absent when the last page is reached.
*/
/**
* @typedef {Object} ContactEmail
* @property {string} email