Release Notes for v1.3.7
This release adds cursor pagination for documents.fetch_text_data, aligned with the Moorcheh Fetch Text Data API.
Improvements
Fetch Text Data pagination
client.documents.fetch_text_data (sync and async) now supports paginated listing of text and summary chunks in a text namespace.
- Calls
GET /v1/namespaces/{namespace_name}/documents/fetch-text-datawith optional query params:limit— items per page (1–100; omit for API default 100)next_token— cursor from the previous response'spagination.next_token
- Response includes
pagination:limit,has_more, andnext_token(nullon the last page). statisticsandmessagedescribe the current page only, not the full namespace total.- Client-side validation: invalid
limitvalues raiseInvalidInputErrorbefore the request is sent. - New type
TextDataPagination;FetchTextDataResponseincludespagination. created_atand statistics timestamps documented as ISO 8601 strings ornull, matching live API behavior.- See
examples/09_fetch_text_data.pyfor a multi-page export loop.
Bug Fixes
- None in this release.
Breaking / Behavioral Changes
None for resource migration
This release is additive on top of the v1.3.5+ resource-only MoorchehClient. Existing calls without limit or next_token behave as before (first page, API default page size).
Response shape
Responses may now include a pagination object. Code that assumed a single response contained all chunks should use pagination.has_more and next_token to walk remaining pages.
Documentation
- Fetch text data (Python SDK): https://docs.moorcheh.ai/python-sdk/data/fetch-text-data
- Fetch text data (API): https://docs.moorcheh.ai/api-reference/data/fetch-text-data
- README:
documents.fetch_text_dataadded to the API methods table
Full Changelog
Full Changelog: https://github.com/moorcheh-ai/moorcheh-python-sdk/compare/v1.3.6..v1.3.7