supermemory 3.59.0__tar.gz → 3.61.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- supermemory-3.61.0/.release-please-manifest.json +3 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/CHANGELOG.md +16 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/PKG-INFO +1 -1
- {supermemory-3.59.0 → supermemory-3.61.0}/api.md +1 -1
- {supermemory-3.59.0 → supermemory-3.61.0}/pyproject.toml +1 -1
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_version.py +1 -1
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/resources/documents.py +85 -4
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/__init__.py +1 -0
- supermemory-3.61.0/src/supermemory/types/document_list_processing_params.py +28 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_list_processing_response.py +25 -1
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/api_resources/test_documents.py +22 -0
- supermemory-3.59.0/.release-please-manifest.json +0 -3
- {supermemory-3.59.0 → supermemory-3.61.0}/.gitignore +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/CONTRIBUTING.md +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/LICENSE +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/README.md +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/SECURITY.md +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/bin/check-release-environment +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/bin/publish-pypi +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/examples/.keep +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/noxfile.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/release-please-config.json +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/requirements-dev.lock +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/requirements.lock +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/__init__.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_base_client.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_client.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_compat.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_constants.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_exceptions.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_files.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_models.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_qs.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_resource.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_streaming.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_types.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/__init__.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_compat.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_datetime_parse.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_json.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_logs.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_path.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_proxy.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_reflection.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_streams.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_sync.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_transform.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_typing.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/_utils/_utils.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/lib/.keep +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/py.typed +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/resources/__init__.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/resources/connections.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/resources/memories.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/resources/search.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/resources/settings.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/add_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/client_add_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/client_profile_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_configure_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_configure_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_create_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_create_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_delete_by_id_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_delete_by_id_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_delete_by_provider_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_delete_by_provider_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_get_by_id_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_get_by_tag_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_get_by_tag_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_import_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_import_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_list_documents_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_list_documents_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_list_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_list_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_resources_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_resources_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_add_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_add_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_batch_add_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_batch_add_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_delete_bulk_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_delete_bulk_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_get_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_list_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_list_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_update_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_update_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_upload_file_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_upload_file_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/memory_forget_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/memory_forget_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/memory_update_memory_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/memory_update_memory_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/profile_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/search_documents_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/search_documents_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/search_execute_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/search_execute_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/search_memories_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/search_memories_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/setting_get_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/setting_update_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/setting_update_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory_new/lib/.keep +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/__init__.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/api_resources/__init__.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/api_resources/test_client.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/api_resources/test_connections.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/api_resources/test_memories.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/api_resources/test_search.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/api_resources/test_settings.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/conftest.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/sample_file.txt +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_client.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_extract_files.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_files.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_models.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_qs.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_required_args.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_streaming.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_transform.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_utils/test_json.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_utils/test_path.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_utils/test_proxy.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/test_utils/test_typing.py +0 -0
- {supermemory-3.59.0 → supermemory-3.61.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.61.0 (2026-09-05)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.60.0...v3.61.0](https://github.com/supermemoryai/python-sdk/compare/v3.60.0...v3.61.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([7a4deed](https://github.com/supermemoryai/python-sdk/commit/7a4deedcb60a0f39ecf144a6ba16d540d1ddfb1f))
|
|
10
|
+
|
|
11
|
+
## 3.60.0 (2026-09-01)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v3.59.0...v3.60.0](https://github.com/supermemoryai/python-sdk/compare/v3.59.0...v3.60.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([8531a88](https://github.com/supermemoryai/python-sdk/commit/8531a888ad97a9279708ee9bf0bf370aa8198f2f))
|
|
18
|
+
|
|
3
19
|
## 3.59.0 (2026-08-14)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v3.58.0...v3.59.0](https://github.com/supermemoryai/python-sdk/compare/v3.58.0...v3.59.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: supermemory
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.61.0
|
|
4
4
|
Summary: The official Python library for the supermemory API
|
|
5
5
|
Project-URL: Homepage, https://github.com/supermemoryai/python-sdk
|
|
6
6
|
Project-URL: Repository, https://github.com/supermemoryai/python-sdk
|
|
@@ -50,7 +50,7 @@ Methods:
|
|
|
50
50
|
- <code title="post /v3/documents/batch">client.documents.<a href="./src/supermemory/resources/documents.py">batch_add</a>(\*\*<a href="src/supermemory/types/document_batch_add_params.py">params</a>) -> <a href="./src/supermemory/types/document_batch_add_response.py">DocumentBatchAddResponse</a></code>
|
|
51
51
|
- <code title="delete /v3/documents/bulk">client.documents.<a href="./src/supermemory/resources/documents.py">delete_bulk</a>(\*\*<a href="src/supermemory/types/document_delete_bulk_params.py">params</a>) -> <a href="./src/supermemory/types/document_delete_bulk_response.py">DocumentDeleteBulkResponse</a></code>
|
|
52
52
|
- <code title="get /v3/documents/{id}">client.documents.<a href="./src/supermemory/resources/documents.py">get</a>(id) -> <a href="./src/supermemory/types/document_get_response.py">DocumentGetResponse</a></code>
|
|
53
|
-
- <code title="get /v3/documents/processing">client.documents.<a href="./src/supermemory/resources/documents.py">list_processing</a>() -> <a href="./src/supermemory/types/document_list_processing_response.py">DocumentListProcessingResponse</a></code>
|
|
53
|
+
- <code title="get /v3/documents/processing">client.documents.<a href="./src/supermemory/resources/documents.py">list_processing</a>(\*\*<a href="src/supermemory/types/document_list_processing_params.py">params</a>) -> <a href="./src/supermemory/types/document_list_processing_response.py">DocumentListProcessingResponse</a></code>
|
|
54
54
|
- <code title="post /v3/documents/file">client.documents.<a href="./src/supermemory/resources/documents.py">upload_file</a>(\*\*<a href="src/supermemory/types/document_upload_file_params.py">params</a>) -> <a href="./src/supermemory/types/document_upload_file_response.py">DocumentUploadFileResponse</a></code>
|
|
55
55
|
|
|
56
56
|
# Search
|
|
@@ -14,6 +14,7 @@ from ..types import (
|
|
|
14
14
|
document_batch_add_params,
|
|
15
15
|
document_delete_bulk_params,
|
|
16
16
|
document_upload_file_params,
|
|
17
|
+
document_list_processing_params,
|
|
17
18
|
)
|
|
18
19
|
from .._files import deepcopy_with_paths
|
|
19
20
|
from .._types import Body, Omit, Query, Headers, NoneType, NotGiven, FileTypes, SequenceNotStr, omit, not_given
|
|
@@ -538,6 +539,10 @@ class DocumentsResource(SyncAPIResource):
|
|
|
538
539
|
def list_processing(
|
|
539
540
|
self,
|
|
540
541
|
*,
|
|
542
|
+
container_tags: str | Omit = omit,
|
|
543
|
+
limit: Union[str, float] | Omit = omit,
|
|
544
|
+
page: Union[str, float] | Omit = omit,
|
|
545
|
+
view: Literal["active", "pending", "all"] | Omit = omit,
|
|
541
546
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
542
547
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
543
548
|
extra_headers: Headers | None = None,
|
|
@@ -545,11 +550,47 @@ class DocumentsResource(SyncAPIResource):
|
|
|
545
550
|
extra_body: Body | None = None,
|
|
546
551
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
547
552
|
) -> DocumentListProcessingResponse:
|
|
548
|
-
"""Get documents that are currently being processed
|
|
553
|
+
"""Get documents that are currently being processed.
|
|
554
|
+
|
|
555
|
+
Default `view=active` is the
|
|
556
|
+
live in-flight queue. `view=pending` is every unfinished document with no time
|
|
557
|
+
cutoff. `view=all` also includes failed documents, paginated.
|
|
558
|
+
|
|
559
|
+
Args:
|
|
560
|
+
container_tags: Comma-separated container tags to filter by
|
|
561
|
+
|
|
562
|
+
limit: Number of items per page. Used with `view=all`.
|
|
563
|
+
|
|
564
|
+
page: Page number to fetch. Used with `view=all`.
|
|
565
|
+
|
|
566
|
+
view: `active` returns in-flight documents updated in the last 4 hours. `pending`
|
|
567
|
+
returns every document that is not done or failed, with no time cutoff. `all`
|
|
568
|
+
also includes failed documents, paginated.
|
|
569
|
+
|
|
570
|
+
extra_headers: Send extra headers
|
|
571
|
+
|
|
572
|
+
extra_query: Add additional query parameters to the request
|
|
573
|
+
|
|
574
|
+
extra_body: Add additional JSON properties to the request
|
|
575
|
+
|
|
576
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
577
|
+
"""
|
|
549
578
|
return self._get(
|
|
550
579
|
"/v3/documents/processing",
|
|
551
580
|
options=make_request_options(
|
|
552
|
-
extra_headers=extra_headers,
|
|
581
|
+
extra_headers=extra_headers,
|
|
582
|
+
extra_query=extra_query,
|
|
583
|
+
extra_body=extra_body,
|
|
584
|
+
timeout=timeout,
|
|
585
|
+
query=maybe_transform(
|
|
586
|
+
{
|
|
587
|
+
"container_tags": container_tags,
|
|
588
|
+
"limit": limit,
|
|
589
|
+
"page": page,
|
|
590
|
+
"view": view,
|
|
591
|
+
},
|
|
592
|
+
document_list_processing_params.DocumentListProcessingParams,
|
|
593
|
+
),
|
|
553
594
|
),
|
|
554
595
|
cast_to=DocumentListProcessingResponse,
|
|
555
596
|
)
|
|
@@ -1167,6 +1208,10 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
1167
1208
|
async def list_processing(
|
|
1168
1209
|
self,
|
|
1169
1210
|
*,
|
|
1211
|
+
container_tags: str | Omit = omit,
|
|
1212
|
+
limit: Union[str, float] | Omit = omit,
|
|
1213
|
+
page: Union[str, float] | Omit = omit,
|
|
1214
|
+
view: Literal["active", "pending", "all"] | Omit = omit,
|
|
1170
1215
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1171
1216
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1172
1217
|
extra_headers: Headers | None = None,
|
|
@@ -1174,11 +1219,47 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
1174
1219
|
extra_body: Body | None = None,
|
|
1175
1220
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1176
1221
|
) -> DocumentListProcessingResponse:
|
|
1177
|
-
"""Get documents that are currently being processed
|
|
1222
|
+
"""Get documents that are currently being processed.
|
|
1223
|
+
|
|
1224
|
+
Default `view=active` is the
|
|
1225
|
+
live in-flight queue. `view=pending` is every unfinished document with no time
|
|
1226
|
+
cutoff. `view=all` also includes failed documents, paginated.
|
|
1227
|
+
|
|
1228
|
+
Args:
|
|
1229
|
+
container_tags: Comma-separated container tags to filter by
|
|
1230
|
+
|
|
1231
|
+
limit: Number of items per page. Used with `view=all`.
|
|
1232
|
+
|
|
1233
|
+
page: Page number to fetch. Used with `view=all`.
|
|
1234
|
+
|
|
1235
|
+
view: `active` returns in-flight documents updated in the last 4 hours. `pending`
|
|
1236
|
+
returns every document that is not done or failed, with no time cutoff. `all`
|
|
1237
|
+
also includes failed documents, paginated.
|
|
1238
|
+
|
|
1239
|
+
extra_headers: Send extra headers
|
|
1240
|
+
|
|
1241
|
+
extra_query: Add additional query parameters to the request
|
|
1242
|
+
|
|
1243
|
+
extra_body: Add additional JSON properties to the request
|
|
1244
|
+
|
|
1245
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1246
|
+
"""
|
|
1178
1247
|
return await self._get(
|
|
1179
1248
|
"/v3/documents/processing",
|
|
1180
1249
|
options=make_request_options(
|
|
1181
|
-
extra_headers=extra_headers,
|
|
1250
|
+
extra_headers=extra_headers,
|
|
1251
|
+
extra_query=extra_query,
|
|
1252
|
+
extra_body=extra_body,
|
|
1253
|
+
timeout=timeout,
|
|
1254
|
+
query=await async_maybe_transform(
|
|
1255
|
+
{
|
|
1256
|
+
"container_tags": container_tags,
|
|
1257
|
+
"limit": limit,
|
|
1258
|
+
"page": page,
|
|
1259
|
+
"view": view,
|
|
1260
|
+
},
|
|
1261
|
+
document_list_processing_params.DocumentListProcessingParams,
|
|
1262
|
+
),
|
|
1182
1263
|
),
|
|
1183
1264
|
cast_to=DocumentListProcessingResponse,
|
|
1184
1265
|
)
|
|
@@ -46,6 +46,7 @@ from .document_upload_file_response import DocumentUploadFileResponse as Documen
|
|
|
46
46
|
from .memory_update_memory_response import MemoryUpdateMemoryResponse as MemoryUpdateMemoryResponse
|
|
47
47
|
from .connection_delete_by_id_params import ConnectionDeleteByIDParams as ConnectionDeleteByIDParams
|
|
48
48
|
from .connection_get_by_tag_response import ConnectionGetByTagResponse as ConnectionGetByTagResponse
|
|
49
|
+
from .document_list_processing_params import DocumentListProcessingParams as DocumentListProcessingParams
|
|
49
50
|
from .connection_delete_by_id_response import ConnectionDeleteByIDResponse as ConnectionDeleteByIDResponse
|
|
50
51
|
from .connection_list_documents_params import ConnectionListDocumentsParams as ConnectionListDocumentsParams
|
|
51
52
|
from .document_list_processing_response import DocumentListProcessingResponse as DocumentListProcessingResponse
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union
|
|
6
|
+
from typing_extensions import Literal, Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from .._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["DocumentListProcessingParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DocumentListProcessingParams(TypedDict, total=False):
|
|
14
|
+
container_tags: Annotated[str, PropertyInfo(alias="containerTags")]
|
|
15
|
+
"""Comma-separated container tags to filter by"""
|
|
16
|
+
|
|
17
|
+
limit: Union[str, float]
|
|
18
|
+
"""Number of items per page. Used with `view=all`."""
|
|
19
|
+
|
|
20
|
+
page: Union[str, float]
|
|
21
|
+
"""Page number to fetch. Used with `view=all`."""
|
|
22
|
+
|
|
23
|
+
view: Literal["active", "pending", "all"]
|
|
24
|
+
"""`active` returns in-flight documents updated in the last 4 hours.
|
|
25
|
+
|
|
26
|
+
`pending` returns every document that is not done or failed, with no time
|
|
27
|
+
cutoff. `all` also includes failed documents, paginated.
|
|
28
|
+
"""
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_list_processing_response.py
RENAMED
|
@@ -7,7 +7,7 @@ from pydantic import Field as FieldInfo
|
|
|
7
7
|
|
|
8
8
|
from .._models import BaseModel
|
|
9
9
|
|
|
10
|
-
__all__ = ["DocumentListProcessingResponse", "Document"]
|
|
10
|
+
__all__ = ["DocumentListProcessingResponse", "Document", "Pagination"]
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class Document(BaseModel):
|
|
@@ -76,6 +76,27 @@ class Document(BaseModel):
|
|
|
76
76
|
to use to group documents.
|
|
77
77
|
"""
|
|
78
78
|
|
|
79
|
+
error_code: Optional[str] = FieldInfo(alias="errorCode", default=None)
|
|
80
|
+
"""Stable error code when processing failed, if available"""
|
|
81
|
+
|
|
82
|
+
error_message: Optional[str] = FieldInfo(alias="errorMessage", default=None)
|
|
83
|
+
"""Human-readable processing error, if available"""
|
|
84
|
+
|
|
85
|
+
stuck: Optional[bool] = None
|
|
86
|
+
"""True when the document is not done/failed and has not been updated for 4 hours"""
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class Pagination(BaseModel):
|
|
90
|
+
"""Present when `view=all`"""
|
|
91
|
+
|
|
92
|
+
current_page: float = FieldInfo(alias="currentPage")
|
|
93
|
+
|
|
94
|
+
total_items: float = FieldInfo(alias="totalItems")
|
|
95
|
+
|
|
96
|
+
total_pages: float = FieldInfo(alias="totalPages")
|
|
97
|
+
|
|
98
|
+
limit: Optional[float] = None
|
|
99
|
+
|
|
79
100
|
|
|
80
101
|
class DocumentListProcessingResponse(BaseModel):
|
|
81
102
|
"""List of documents currently being processed"""
|
|
@@ -84,3 +105,6 @@ class DocumentListProcessingResponse(BaseModel):
|
|
|
84
105
|
|
|
85
106
|
total_count: float = FieldInfo(alias="totalCount")
|
|
86
107
|
"""Total number of processing documents"""
|
|
108
|
+
|
|
109
|
+
pagination: Optional[Pagination] = None
|
|
110
|
+
"""Present when `view=all`"""
|
|
@@ -423,6 +423,17 @@ class TestDocuments:
|
|
|
423
423
|
document = client.documents.list_processing()
|
|
424
424
|
assert_matches_type(DocumentListProcessingResponse, document, path=["response"])
|
|
425
425
|
|
|
426
|
+
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
427
|
+
@parametrize
|
|
428
|
+
def test_method_list_processing_with_all_params(self, client: Supermemory) -> None:
|
|
429
|
+
document = client.documents.list_processing(
|
|
430
|
+
container_tags="user_123,sm_project_default",
|
|
431
|
+
limit="50",
|
|
432
|
+
page="1",
|
|
433
|
+
view="all",
|
|
434
|
+
)
|
|
435
|
+
assert_matches_type(DocumentListProcessingResponse, document, path=["response"])
|
|
436
|
+
|
|
426
437
|
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
427
438
|
@parametrize
|
|
428
439
|
def test_raw_response_list_processing(self, client: Supermemory) -> None:
|
|
@@ -902,6 +913,17 @@ class TestAsyncDocuments:
|
|
|
902
913
|
document = await async_client.documents.list_processing()
|
|
903
914
|
assert_matches_type(DocumentListProcessingResponse, document, path=["response"])
|
|
904
915
|
|
|
916
|
+
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
917
|
+
@parametrize
|
|
918
|
+
async def test_method_list_processing_with_all_params(self, async_client: AsyncSupermemory) -> None:
|
|
919
|
+
document = await async_client.documents.list_processing(
|
|
920
|
+
container_tags="user_123,sm_project_default",
|
|
921
|
+
limit="50",
|
|
922
|
+
page="1",
|
|
923
|
+
view="all",
|
|
924
|
+
)
|
|
925
|
+
assert_matches_type(DocumentListProcessingResponse, document, path=["response"])
|
|
926
|
+
|
|
905
927
|
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
906
928
|
@parametrize
|
|
907
929
|
async def test_raw_response_list_processing(self, async_client: AsyncSupermemory) -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_configure_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_configure_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_create_response.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_delete_by_id_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_delete_by_id_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_get_by_id_response.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_get_by_tag_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_get_by_tag_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_import_response.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_list_documents_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_resources_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/connection_resources_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_batch_add_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_batch_add_response.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_delete_bulk_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_delete_bulk_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_upload_file_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/document_upload_file_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/memory_update_memory_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/memory_update_memory_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.61.0}/src/supermemory/types/search_documents_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|