supermemory 3.59.0__tar.gz → 3.60.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.60.0/.release-please-manifest.json +3 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/CHANGELOG.md +8 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/PKG-INFO +1 -1
- {supermemory-3.59.0 → supermemory-3.60.0}/api.md +1 -1
- {supermemory-3.59.0 → supermemory-3.60.0}/pyproject.toml +1 -1
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_version.py +1 -1
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/resources/documents.py +81 -4
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/__init__.py +1 -0
- supermemory-3.60.0/src/supermemory/types/document_list_processing_params.py +27 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_list_processing_response.py +25 -1
- {supermemory-3.59.0 → supermemory-3.60.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.60.0}/.gitignore +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/CONTRIBUTING.md +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/LICENSE +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/README.md +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/SECURITY.md +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/bin/check-release-environment +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/bin/publish-pypi +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/examples/.keep +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/noxfile.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/release-please-config.json +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/requirements-dev.lock +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/requirements.lock +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/__init__.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_base_client.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_client.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_compat.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_constants.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_exceptions.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_files.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_models.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_qs.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_resource.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_streaming.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_types.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/__init__.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_compat.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_datetime_parse.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_json.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_logs.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_path.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_proxy.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_reflection.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_streams.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_sync.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_transform.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_typing.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/_utils/_utils.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/lib/.keep +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/py.typed +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/resources/__init__.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/resources/connections.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/resources/memories.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/resources/search.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/resources/settings.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/add_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/client_add_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/client_profile_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_configure_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_configure_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_create_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_create_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_delete_by_id_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_delete_by_id_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_delete_by_provider_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_delete_by_provider_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_get_by_id_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_get_by_tag_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_get_by_tag_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_import_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_import_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_list_documents_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_list_documents_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_list_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_list_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_resources_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_resources_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_add_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_add_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_batch_add_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_batch_add_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_delete_bulk_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_delete_bulk_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_get_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_list_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_list_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_update_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_update_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_upload_file_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_upload_file_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/memory_forget_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/memory_forget_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/memory_update_memory_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/memory_update_memory_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/profile_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/search_documents_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/search_documents_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/search_execute_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/search_execute_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/search_memories_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/search_memories_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/setting_get_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/setting_update_params.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/setting_update_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory_new/lib/.keep +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/__init__.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/api_resources/__init__.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/api_resources/test_client.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/api_resources/test_connections.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/api_resources/test_memories.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/api_resources/test_search.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/api_resources/test_settings.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/conftest.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/sample_file.txt +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_client.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_extract_files.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_files.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_models.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_qs.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_required_args.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_response.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_streaming.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_transform.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_utils/test_json.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_utils/test_path.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_utils/test_proxy.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/test_utils/test_typing.py +0 -0
- {supermemory-3.59.0 → supermemory-3.60.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.60.0 (2026-09-01)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.59.0...v3.60.0](https://github.com/supermemoryai/python-sdk/compare/v3.59.0...v3.60.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([8531a88](https://github.com/supermemoryai/python-sdk/commit/8531a888ad97a9279708ee9bf0bf370aa8198f2f))
|
|
10
|
+
|
|
3
11
|
## 3.59.0 (2026-08-14)
|
|
4
12
|
|
|
5
13
|
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.60.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", "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,45 @@ 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=all` also includes failed and stuck documents.
|
|
557
|
+
|
|
558
|
+
Args:
|
|
559
|
+
container_tags: Comma-separated container tags to filter by
|
|
560
|
+
|
|
561
|
+
limit: Number of items per page. Used with `view=all`.
|
|
562
|
+
|
|
563
|
+
page: Page number to fetch. Used with `view=all`.
|
|
564
|
+
|
|
565
|
+
view: `active` returns in-flight documents updated in the last 4 hours. `all` also
|
|
566
|
+
includes failed and stuck documents.
|
|
567
|
+
|
|
568
|
+
extra_headers: Send extra headers
|
|
569
|
+
|
|
570
|
+
extra_query: Add additional query parameters to the request
|
|
571
|
+
|
|
572
|
+
extra_body: Add additional JSON properties to the request
|
|
573
|
+
|
|
574
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
575
|
+
"""
|
|
549
576
|
return self._get(
|
|
550
577
|
"/v3/documents/processing",
|
|
551
578
|
options=make_request_options(
|
|
552
|
-
extra_headers=extra_headers,
|
|
579
|
+
extra_headers=extra_headers,
|
|
580
|
+
extra_query=extra_query,
|
|
581
|
+
extra_body=extra_body,
|
|
582
|
+
timeout=timeout,
|
|
583
|
+
query=maybe_transform(
|
|
584
|
+
{
|
|
585
|
+
"container_tags": container_tags,
|
|
586
|
+
"limit": limit,
|
|
587
|
+
"page": page,
|
|
588
|
+
"view": view,
|
|
589
|
+
},
|
|
590
|
+
document_list_processing_params.DocumentListProcessingParams,
|
|
591
|
+
),
|
|
553
592
|
),
|
|
554
593
|
cast_to=DocumentListProcessingResponse,
|
|
555
594
|
)
|
|
@@ -1167,6 +1206,10 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
1167
1206
|
async def list_processing(
|
|
1168
1207
|
self,
|
|
1169
1208
|
*,
|
|
1209
|
+
container_tags: str | Omit = omit,
|
|
1210
|
+
limit: Union[str, float] | Omit = omit,
|
|
1211
|
+
page: Union[str, float] | Omit = omit,
|
|
1212
|
+
view: Literal["active", "all"] | Omit = omit,
|
|
1170
1213
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1171
1214
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1172
1215
|
extra_headers: Headers | None = None,
|
|
@@ -1174,11 +1217,45 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
1174
1217
|
extra_body: Body | None = None,
|
|
1175
1218
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1176
1219
|
) -> DocumentListProcessingResponse:
|
|
1177
|
-
"""Get documents that are currently being processed
|
|
1220
|
+
"""Get documents that are currently being processed.
|
|
1221
|
+
|
|
1222
|
+
Default `view=active` is the
|
|
1223
|
+
live in-flight queue. `view=all` also includes failed and stuck documents.
|
|
1224
|
+
|
|
1225
|
+
Args:
|
|
1226
|
+
container_tags: Comma-separated container tags to filter by
|
|
1227
|
+
|
|
1228
|
+
limit: Number of items per page. Used with `view=all`.
|
|
1229
|
+
|
|
1230
|
+
page: Page number to fetch. Used with `view=all`.
|
|
1231
|
+
|
|
1232
|
+
view: `active` returns in-flight documents updated in the last 4 hours. `all` also
|
|
1233
|
+
includes failed and stuck documents.
|
|
1234
|
+
|
|
1235
|
+
extra_headers: Send extra headers
|
|
1236
|
+
|
|
1237
|
+
extra_query: Add additional query parameters to the request
|
|
1238
|
+
|
|
1239
|
+
extra_body: Add additional JSON properties to the request
|
|
1240
|
+
|
|
1241
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1242
|
+
"""
|
|
1178
1243
|
return await self._get(
|
|
1179
1244
|
"/v3/documents/processing",
|
|
1180
1245
|
options=make_request_options(
|
|
1181
|
-
extra_headers=extra_headers,
|
|
1246
|
+
extra_headers=extra_headers,
|
|
1247
|
+
extra_query=extra_query,
|
|
1248
|
+
extra_body=extra_body,
|
|
1249
|
+
timeout=timeout,
|
|
1250
|
+
query=await async_maybe_transform(
|
|
1251
|
+
{
|
|
1252
|
+
"container_tags": container_tags,
|
|
1253
|
+
"limit": limit,
|
|
1254
|
+
"page": page,
|
|
1255
|
+
"view": view,
|
|
1256
|
+
},
|
|
1257
|
+
document_list_processing_params.DocumentListProcessingParams,
|
|
1258
|
+
),
|
|
1182
1259
|
),
|
|
1183
1260
|
cast_to=DocumentListProcessingResponse,
|
|
1184
1261
|
)
|
|
@@ -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,27 @@
|
|
|
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", "all"]
|
|
24
|
+
"""`active` returns in-flight documents updated in the last 4 hours.
|
|
25
|
+
|
|
26
|
+
`all` also includes failed and stuck documents.
|
|
27
|
+
"""
|
{supermemory-3.59.0 → supermemory-3.60.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.60.0}/src/supermemory/types/connection_configure_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_configure_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_create_response.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_delete_by_id_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.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.60.0}/src/supermemory/types/connection_get_by_id_response.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_get_by_tag_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_get_by_tag_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_import_response.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.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.60.0}/src/supermemory/types/connection_resources_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/connection_resources_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_batch_add_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_batch_add_response.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.0}/src/supermemory/types/document_delete_bulk_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.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.60.0}/src/supermemory/types/document_upload_file_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.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.60.0}/src/supermemory/types/memory_update_memory_params.py
RENAMED
|
File without changes
|
{supermemory-3.59.0 → supermemory-3.60.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.60.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
|