Installation
Breaking Changes
1. list_documents() Return Type
What changed: The method now returns a ListDocsResponse object instead of List[Document].
Before (v0.x)
After (v1.0)
- Pagination metadata (
has_more,next_skip,total_count) - Aggregates (status counts, folder counts)
- Sorting capabilities
- Better support for large datasets
2. Pagination Pattern Changes
Before (v0.x)
After (v1.0)
New Features
Sorting
Sort documents by any field:created_at- Creation timestampupdated_at- Last modification timestampfilename- Document filenameexternal_id- Document ID
Aggregates
Get document counts without retrieving all documents:Completed-Only Filter
Filter to only completed documents:Total Count
Get total matching documents for pagination:Migration Checklist
- Update
list_documents()calls to access.documentsproperty - Update pagination logic to use
has_moreandnext_skip - Consider using
include_total_countfor better UX - Add sorting if needed for your use case
- Test with filters to ensure they still work correctly
- Update any type hints from
List[Document]toListDocsResponse

