supermemory 3.47.0__tar.gz → 3.49.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.49.0/.release-please-manifest.json +3 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/CHANGELOG.md +16 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/PKG-INFO +1 -1
- {supermemory-3.47.0 → supermemory-3.49.0}/api.md +0 -32
- {supermemory-3.47.0 → supermemory-3.49.0}/pyproject.toml +1 -1
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_client.py +22 -45
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_version.py +1 -1
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/resources/__init__.py +0 -14
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/resources/settings.py +8 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/__init__.py +0 -21
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/client_profile_params.py +15 -1
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/profile_response.py +6 -3
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/setting_get_response.py +14 -1
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/setting_update_params.py +15 -2
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/setting_update_response.py +14 -1
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/api_resources/test_client.py +4 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/api_resources/test_settings.py +12 -0
- supermemory-3.47.0/.release-please-manifest.json +0 -3
- supermemory-3.47.0/src/supermemory/resources/connections.py +0 -1028
- supermemory-3.47.0/src/supermemory/types/connection_configure_params.py +0 -12
- supermemory-3.47.0/src/supermemory/types/connection_configure_response.py +0 -17
- supermemory-3.47.0/src/supermemory/types/connection_create_params.py +0 -23
- supermemory-3.47.0/src/supermemory/types/connection_create_response.py +0 -19
- supermemory-3.47.0/src/supermemory/types/connection_delete_by_id_params.py +0 -14
- supermemory-3.47.0/src/supermemory/types/connection_delete_by_id_response.py +0 -11
- supermemory-3.47.0/src/supermemory/types/connection_delete_by_provider_params.py +0 -15
- supermemory-3.47.0/src/supermemory/types/connection_delete_by_provider_response.py +0 -11
- supermemory-3.47.0/src/supermemory/types/connection_get_by_id_response.py +0 -27
- supermemory-3.47.0/src/supermemory/types/connection_get_by_tag_params.py +0 -15
- supermemory-3.47.0/src/supermemory/types/connection_get_by_tag_response.py +0 -27
- supermemory-3.47.0/src/supermemory/types/connection_import_params.py +0 -15
- supermemory-3.47.0/src/supermemory/types/connection_import_response.py +0 -7
- supermemory-3.47.0/src/supermemory/types/connection_list_documents_params.py +0 -15
- supermemory-3.47.0/src/supermemory/types/connection_list_documents_response.py +0 -29
- supermemory-3.47.0/src/supermemory/types/connection_list_params.py +0 -15
- supermemory-3.47.0/src/supermemory/types/connection_list_response.py +0 -31
- supermemory-3.47.0/src/supermemory/types/connection_resources_params.py +0 -15
- supermemory-3.47.0/src/supermemory/types/connection_resources_response.py +0 -13
- supermemory-3.47.0/tests/api_resources/test_connections.py +0 -904
- {supermemory-3.47.0 → supermemory-3.49.0}/.gitignore +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/CONTRIBUTING.md +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/LICENSE +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/README.md +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/SECURITY.md +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/bin/check-release-environment +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/bin/publish-pypi +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/examples/.keep +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/noxfile.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/release-please-config.json +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/requirements-dev.lock +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/requirements.lock +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/__init__.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_base_client.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_compat.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_constants.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_exceptions.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_files.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_models.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_qs.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_resource.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_streaming.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_types.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/__init__.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_compat.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_datetime_parse.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_json.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_logs.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_path.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_proxy.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_reflection.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_streams.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_sync.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_transform.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_typing.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/_utils/_utils.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/lib/.keep +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/py.typed +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/resources/documents.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/resources/memories.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/resources/search.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/add_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/client_add_params.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_add_params.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_add_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_batch_add_params.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_batch_add_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_delete_bulk_params.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_delete_bulk_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_get_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_list_params.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_list_processing_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_list_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_update_params.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_update_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_upload_file_params.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/document_upload_file_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/memory_forget_params.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/memory_forget_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/memory_update_memory_params.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/memory_update_memory_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/search_documents_params.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/search_documents_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/search_execute_params.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/search_execute_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/search_memories_params.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory/types/search_memories_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/src/supermemory_new/lib/.keep +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/__init__.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/api_resources/__init__.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/api_resources/test_documents.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/api_resources/test_memories.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/api_resources/test_search.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/conftest.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/sample_file.txt +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_client.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_extract_files.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_files.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_models.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_qs.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_required_args.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_response.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_streaming.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_transform.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_utils/test_json.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_utils/test_path.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_utils/test_proxy.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/test_utils/test_typing.py +0 -0
- {supermemory-3.47.0 → supermemory-3.49.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.49.0 (2026-06-22)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.48.0...v3.49.0](https://github.com/supermemoryai/python-sdk/compare/v3.48.0...v3.49.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([8e8bab1](https://github.com/supermemoryai/python-sdk/commit/8e8bab1d33f48015bf7acf1412653c0237440ebd))
|
|
10
|
+
|
|
11
|
+
## 3.48.0 (2026-06-20)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v3.47.0...v3.48.0](https://github.com/supermemoryai/python-sdk/compare/v3.47.0...v3.48.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([9ed1cba](https://github.com/supermemoryai/python-sdk/commit/9ed1cba81d04a41687621bc6ce66217527b06a31))
|
|
18
|
+
|
|
3
19
|
## 3.47.0 (2026-06-18)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v3.46.0...v3.47.0](https://github.com/supermemoryai/python-sdk/compare/v3.46.0...v3.47.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: supermemory
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.49.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
|
|
@@ -79,35 +79,3 @@ Methods:
|
|
|
79
79
|
|
|
80
80
|
- <code title="patch /v3/settings">client.settings.<a href="./src/supermemory/resources/settings.py">update</a>(\*\*<a href="src/supermemory/types/setting_update_params.py">params</a>) -> <a href="./src/supermemory/types/setting_update_response.py">SettingUpdateResponse</a></code>
|
|
81
81
|
- <code title="get /v3/settings">client.settings.<a href="./src/supermemory/resources/settings.py">get</a>() -> <a href="./src/supermemory/types/setting_get_response.py">SettingGetResponse</a></code>
|
|
82
|
-
|
|
83
|
-
# Connections
|
|
84
|
-
|
|
85
|
-
Types:
|
|
86
|
-
|
|
87
|
-
```python
|
|
88
|
-
from supermemory.types import (
|
|
89
|
-
ConnectionCreateResponse,
|
|
90
|
-
ConnectionListResponse,
|
|
91
|
-
ConnectionConfigureResponse,
|
|
92
|
-
ConnectionDeleteByIDResponse,
|
|
93
|
-
ConnectionDeleteByProviderResponse,
|
|
94
|
-
ConnectionGetByIDResponse,
|
|
95
|
-
ConnectionGetByTagResponse,
|
|
96
|
-
ConnectionImportResponse,
|
|
97
|
-
ConnectionListDocumentsResponse,
|
|
98
|
-
ConnectionResourcesResponse,
|
|
99
|
-
)
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Methods:
|
|
103
|
-
|
|
104
|
-
- <code title="post /v3/connections/{provider}">client.connections.<a href="./src/supermemory/resources/connections.py">create</a>(provider, \*\*<a href="src/supermemory/types/connection_create_params.py">params</a>) -> <a href="./src/supermemory/types/connection_create_response.py">ConnectionCreateResponse</a></code>
|
|
105
|
-
- <code title="post /v3/connections/list">client.connections.<a href="./src/supermemory/resources/connections.py">list</a>(\*\*<a href="src/supermemory/types/connection_list_params.py">params</a>) -> <a href="./src/supermemory/types/connection_list_response.py">ConnectionListResponse</a></code>
|
|
106
|
-
- <code title="post /v3/connections/{connectionId}/configure">client.connections.<a href="./src/supermemory/resources/connections.py">configure</a>(connection_id, \*\*<a href="src/supermemory/types/connection_configure_params.py">params</a>) -> <a href="./src/supermemory/types/connection_configure_response.py">ConnectionConfigureResponse</a></code>
|
|
107
|
-
- <code title="delete /v3/connections/{connectionId}">client.connections.<a href="./src/supermemory/resources/connections.py">delete_by_id</a>(connection_id, \*\*<a href="src/supermemory/types/connection_delete_by_id_params.py">params</a>) -> <a href="./src/supermemory/types/connection_delete_by_id_response.py">ConnectionDeleteByIDResponse</a></code>
|
|
108
|
-
- <code title="delete /v3/connections/{provider}">client.connections.<a href="./src/supermemory/resources/connections.py">delete_by_provider</a>(provider, \*\*<a href="src/supermemory/types/connection_delete_by_provider_params.py">params</a>) -> <a href="./src/supermemory/types/connection_delete_by_provider_response.py">ConnectionDeleteByProviderResponse</a></code>
|
|
109
|
-
- <code title="get /v3/connections/{connectionId}">client.connections.<a href="./src/supermemory/resources/connections.py">get_by_id</a>(connection_id) -> <a href="./src/supermemory/types/connection_get_by_id_response.py">ConnectionGetByIDResponse</a></code>
|
|
110
|
-
- <code title="post /v3/connections/{provider}/connection">client.connections.<a href="./src/supermemory/resources/connections.py">get_by_tag</a>(provider, \*\*<a href="src/supermemory/types/connection_get_by_tag_params.py">params</a>) -> <a href="./src/supermemory/types/connection_get_by_tag_response.py">ConnectionGetByTagResponse</a></code>
|
|
111
|
-
- <code title="post /v3/connections/{provider}/import">client.connections.<a href="./src/supermemory/resources/connections.py">import\_</a>(provider, \*\*<a href="src/supermemory/types/connection_import_params.py">params</a>) -> str</code>
|
|
112
|
-
- <code title="post /v3/connections/{provider}/documents">client.connections.<a href="./src/supermemory/resources/connections.py">list_documents</a>(provider, \*\*<a href="src/supermemory/types/connection_list_documents_params.py">params</a>) -> <a href="./src/supermemory/types/connection_list_documents_response.py">ConnectionListDocumentsResponse</a></code>
|
|
113
|
-
- <code title="get /v3/connections/{connectionId}/resources">client.connections.<a href="./src/supermemory/resources/connections.py">resources</a>(connection_id, \*\*<a href="src/supermemory/types/connection_resources_params.py">params</a>) -> <a href="./src/supermemory/types/connection_resources_response.py">ConnectionResourcesResponse</a></code>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
-
from typing import TYPE_CHECKING, Any, Dict, Union, Mapping
|
|
6
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Union, Mapping
|
|
7
7
|
from typing_extensions import Self, Literal, override
|
|
8
8
|
|
|
9
9
|
import httpx
|
|
@@ -52,12 +52,11 @@ from .types.add_response import AddResponse
|
|
|
52
52
|
from .types.profile_response import ProfileResponse
|
|
53
53
|
|
|
54
54
|
if TYPE_CHECKING:
|
|
55
|
-
from .resources import search, memories, settings, documents
|
|
55
|
+
from .resources import search, memories, settings, documents
|
|
56
56
|
from .resources.search import SearchResource, AsyncSearchResource
|
|
57
57
|
from .resources.memories import MemoriesResource, AsyncMemoriesResource
|
|
58
58
|
from .resources.settings import SettingsResource, AsyncSettingsResource
|
|
59
59
|
from .resources.documents import DocumentsResource, AsyncDocumentsResource
|
|
60
|
-
from .resources.connections import ConnectionsResource, AsyncConnectionsResource
|
|
61
60
|
|
|
62
61
|
__all__ = [
|
|
63
62
|
"Timeout",
|
|
@@ -161,13 +160,6 @@ class Supermemory(SyncAPIClient):
|
|
|
161
160
|
|
|
162
161
|
return SettingsResource(self)
|
|
163
162
|
|
|
164
|
-
@cached_property
|
|
165
|
-
def connections(self) -> ConnectionsResource:
|
|
166
|
-
"""External service integrations"""
|
|
167
|
-
from .resources.connections import ConnectionsResource
|
|
168
|
-
|
|
169
|
-
return ConnectionsResource(self)
|
|
170
|
-
|
|
171
163
|
@cached_property
|
|
172
164
|
def with_raw_response(self) -> SupermemoryWithRawResponse:
|
|
173
165
|
return SupermemoryWithRawResponse(self)
|
|
@@ -334,7 +326,9 @@ class Supermemory(SyncAPIClient):
|
|
|
334
326
|
self,
|
|
335
327
|
*,
|
|
336
328
|
container_tag: str,
|
|
329
|
+
buckets: SequenceNotStr[str] | Omit = omit,
|
|
337
330
|
filters: client_profile_params.Filters | Omit = omit,
|
|
331
|
+
include: List[Literal["static", "dynamic", "buckets"]] | Omit = omit,
|
|
338
332
|
q: str | Omit = omit,
|
|
339
333
|
threshold: float | Omit = omit,
|
|
340
334
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -351,9 +345,15 @@ class Supermemory(SyncAPIClient):
|
|
|
351
345
|
container_tag: Tag to filter the profile by. This can be an ID for your user, a project ID, or
|
|
352
346
|
any other identifier you wish to use to filter memories.
|
|
353
347
|
|
|
348
|
+
buckets: Specific bucket keys to return. Omit to return all configured buckets. Only
|
|
349
|
+
relevant when "buckets" is included.
|
|
350
|
+
|
|
354
351
|
filters: Optional metadata filters to apply to profile results and search results.
|
|
355
352
|
Supports complex AND/OR queries with multiple conditions.
|
|
356
353
|
|
|
354
|
+
include: Profile sections to return. Omit to return all sections. Pass a subset to reduce
|
|
355
|
+
payload — e.g. ["buckets"] skips static and dynamic entirely.
|
|
356
|
+
|
|
357
357
|
q: Optional search query to include search results in the response
|
|
358
358
|
|
|
359
359
|
threshold: Threshold for search results. Only results with a score above this threshold
|
|
@@ -372,7 +372,9 @@ class Supermemory(SyncAPIClient):
|
|
|
372
372
|
body=maybe_transform(
|
|
373
373
|
{
|
|
374
374
|
"container_tag": container_tag,
|
|
375
|
+
"buckets": buckets,
|
|
375
376
|
"filters": filters,
|
|
377
|
+
"include": include,
|
|
376
378
|
"q": q,
|
|
377
379
|
"threshold": threshold,
|
|
378
380
|
},
|
|
@@ -508,13 +510,6 @@ class AsyncSupermemory(AsyncAPIClient):
|
|
|
508
510
|
|
|
509
511
|
return AsyncSettingsResource(self)
|
|
510
512
|
|
|
511
|
-
@cached_property
|
|
512
|
-
def connections(self) -> AsyncConnectionsResource:
|
|
513
|
-
"""External service integrations"""
|
|
514
|
-
from .resources.connections import AsyncConnectionsResource
|
|
515
|
-
|
|
516
|
-
return AsyncConnectionsResource(self)
|
|
517
|
-
|
|
518
513
|
@cached_property
|
|
519
514
|
def with_raw_response(self) -> AsyncSupermemoryWithRawResponse:
|
|
520
515
|
return AsyncSupermemoryWithRawResponse(self)
|
|
@@ -681,7 +676,9 @@ class AsyncSupermemory(AsyncAPIClient):
|
|
|
681
676
|
self,
|
|
682
677
|
*,
|
|
683
678
|
container_tag: str,
|
|
679
|
+
buckets: SequenceNotStr[str] | Omit = omit,
|
|
684
680
|
filters: client_profile_params.Filters | Omit = omit,
|
|
681
|
+
include: List[Literal["static", "dynamic", "buckets"]] | Omit = omit,
|
|
685
682
|
q: str | Omit = omit,
|
|
686
683
|
threshold: float | Omit = omit,
|
|
687
684
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -698,9 +695,15 @@ class AsyncSupermemory(AsyncAPIClient):
|
|
|
698
695
|
container_tag: Tag to filter the profile by. This can be an ID for your user, a project ID, or
|
|
699
696
|
any other identifier you wish to use to filter memories.
|
|
700
697
|
|
|
698
|
+
buckets: Specific bucket keys to return. Omit to return all configured buckets. Only
|
|
699
|
+
relevant when "buckets" is included.
|
|
700
|
+
|
|
701
701
|
filters: Optional metadata filters to apply to profile results and search results.
|
|
702
702
|
Supports complex AND/OR queries with multiple conditions.
|
|
703
703
|
|
|
704
|
+
include: Profile sections to return. Omit to return all sections. Pass a subset to reduce
|
|
705
|
+
payload — e.g. ["buckets"] skips static and dynamic entirely.
|
|
706
|
+
|
|
704
707
|
q: Optional search query to include search results in the response
|
|
705
708
|
|
|
706
709
|
threshold: Threshold for search results. Only results with a score above this threshold
|
|
@@ -719,7 +722,9 @@ class AsyncSupermemory(AsyncAPIClient):
|
|
|
719
722
|
body=await async_maybe_transform(
|
|
720
723
|
{
|
|
721
724
|
"container_tag": container_tag,
|
|
725
|
+
"buckets": buckets,
|
|
722
726
|
"filters": filters,
|
|
727
|
+
"include": include,
|
|
723
728
|
"q": q,
|
|
724
729
|
"threshold": threshold,
|
|
725
730
|
},
|
|
@@ -804,13 +809,6 @@ class SupermemoryWithRawResponse:
|
|
|
804
809
|
|
|
805
810
|
return SettingsResourceWithRawResponse(self._client.settings)
|
|
806
811
|
|
|
807
|
-
@cached_property
|
|
808
|
-
def connections(self) -> connections.ConnectionsResourceWithRawResponse:
|
|
809
|
-
"""External service integrations"""
|
|
810
|
-
from .resources.connections import ConnectionsResourceWithRawResponse
|
|
811
|
-
|
|
812
|
-
return ConnectionsResourceWithRawResponse(self._client.connections)
|
|
813
|
-
|
|
814
812
|
|
|
815
813
|
class AsyncSupermemoryWithRawResponse:
|
|
816
814
|
_client: AsyncSupermemory
|
|
@@ -851,13 +849,6 @@ class AsyncSupermemoryWithRawResponse:
|
|
|
851
849
|
|
|
852
850
|
return AsyncSettingsResourceWithRawResponse(self._client.settings)
|
|
853
851
|
|
|
854
|
-
@cached_property
|
|
855
|
-
def connections(self) -> connections.AsyncConnectionsResourceWithRawResponse:
|
|
856
|
-
"""External service integrations"""
|
|
857
|
-
from .resources.connections import AsyncConnectionsResourceWithRawResponse
|
|
858
|
-
|
|
859
|
-
return AsyncConnectionsResourceWithRawResponse(self._client.connections)
|
|
860
|
-
|
|
861
852
|
|
|
862
853
|
class SupermemoryWithStreamedResponse:
|
|
863
854
|
_client: Supermemory
|
|
@@ -898,13 +889,6 @@ class SupermemoryWithStreamedResponse:
|
|
|
898
889
|
|
|
899
890
|
return SettingsResourceWithStreamingResponse(self._client.settings)
|
|
900
891
|
|
|
901
|
-
@cached_property
|
|
902
|
-
def connections(self) -> connections.ConnectionsResourceWithStreamingResponse:
|
|
903
|
-
"""External service integrations"""
|
|
904
|
-
from .resources.connections import ConnectionsResourceWithStreamingResponse
|
|
905
|
-
|
|
906
|
-
return ConnectionsResourceWithStreamingResponse(self._client.connections)
|
|
907
|
-
|
|
908
892
|
|
|
909
893
|
class AsyncSupermemoryWithStreamedResponse:
|
|
910
894
|
_client: AsyncSupermemory
|
|
@@ -945,13 +929,6 @@ class AsyncSupermemoryWithStreamedResponse:
|
|
|
945
929
|
|
|
946
930
|
return AsyncSettingsResourceWithStreamingResponse(self._client.settings)
|
|
947
931
|
|
|
948
|
-
@cached_property
|
|
949
|
-
def connections(self) -> connections.AsyncConnectionsResourceWithStreamingResponse:
|
|
950
|
-
"""External service integrations"""
|
|
951
|
-
from .resources.connections import AsyncConnectionsResourceWithStreamingResponse
|
|
952
|
-
|
|
953
|
-
return AsyncConnectionsResourceWithStreamingResponse(self._client.connections)
|
|
954
|
-
|
|
955
932
|
|
|
956
933
|
Client = Supermemory
|
|
957
934
|
|
|
@@ -32,14 +32,6 @@ from .documents import (
|
|
|
32
32
|
DocumentsResourceWithStreamingResponse,
|
|
33
33
|
AsyncDocumentsResourceWithStreamingResponse,
|
|
34
34
|
)
|
|
35
|
-
from .connections import (
|
|
36
|
-
ConnectionsResource,
|
|
37
|
-
AsyncConnectionsResource,
|
|
38
|
-
ConnectionsResourceWithRawResponse,
|
|
39
|
-
AsyncConnectionsResourceWithRawResponse,
|
|
40
|
-
ConnectionsResourceWithStreamingResponse,
|
|
41
|
-
AsyncConnectionsResourceWithStreamingResponse,
|
|
42
|
-
)
|
|
43
35
|
|
|
44
36
|
__all__ = [
|
|
45
37
|
"MemoriesResource",
|
|
@@ -66,10 +58,4 @@ __all__ = [
|
|
|
66
58
|
"AsyncSettingsResourceWithRawResponse",
|
|
67
59
|
"SettingsResourceWithStreamingResponse",
|
|
68
60
|
"AsyncSettingsResourceWithStreamingResponse",
|
|
69
|
-
"ConnectionsResource",
|
|
70
|
-
"AsyncConnectionsResource",
|
|
71
|
-
"ConnectionsResourceWithRawResponse",
|
|
72
|
-
"AsyncConnectionsResourceWithRawResponse",
|
|
73
|
-
"ConnectionsResourceWithStreamingResponse",
|
|
74
|
-
"AsyncConnectionsResourceWithStreamingResponse",
|
|
75
61
|
]
|
|
@@ -65,6 +65,7 @@ class SettingsResource(SyncAPIResource):
|
|
|
65
65
|
onedrive_client_id: Optional[str] | Omit = omit,
|
|
66
66
|
onedrive_client_secret: Optional[str] | Omit = omit,
|
|
67
67
|
onedrive_custom_key_enabled: Optional[bool] | Omit = omit,
|
|
68
|
+
profile_buckets: Iterable[setting_update_params.ProfileBucket] | Omit = omit,
|
|
68
69
|
should_llm_filter: Optional[bool] | Omit = omit,
|
|
69
70
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
70
71
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -77,6 +78,8 @@ class SettingsResource(SyncAPIResource):
|
|
|
77
78
|
Update settings for an organization
|
|
78
79
|
|
|
79
80
|
Args:
|
|
81
|
+
profile_buckets: Profile bucket definitions
|
|
82
|
+
|
|
80
83
|
extra_headers: Send extra headers
|
|
81
84
|
|
|
82
85
|
extra_query: Add additional query parameters to the request
|
|
@@ -105,6 +108,7 @@ class SettingsResource(SyncAPIResource):
|
|
|
105
108
|
"onedrive_client_id": onedrive_client_id,
|
|
106
109
|
"onedrive_client_secret": onedrive_client_secret,
|
|
107
110
|
"onedrive_custom_key_enabled": onedrive_custom_key_enabled,
|
|
111
|
+
"profile_buckets": profile_buckets,
|
|
108
112
|
"should_llm_filter": should_llm_filter,
|
|
109
113
|
},
|
|
110
114
|
setting_update_params.SettingUpdateParams,
|
|
@@ -176,6 +180,7 @@ class AsyncSettingsResource(AsyncAPIResource):
|
|
|
176
180
|
onedrive_client_id: Optional[str] | Omit = omit,
|
|
177
181
|
onedrive_client_secret: Optional[str] | Omit = omit,
|
|
178
182
|
onedrive_custom_key_enabled: Optional[bool] | Omit = omit,
|
|
183
|
+
profile_buckets: Iterable[setting_update_params.ProfileBucket] | Omit = omit,
|
|
179
184
|
should_llm_filter: Optional[bool] | Omit = omit,
|
|
180
185
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
181
186
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -188,6 +193,8 @@ class AsyncSettingsResource(AsyncAPIResource):
|
|
|
188
193
|
Update settings for an organization
|
|
189
194
|
|
|
190
195
|
Args:
|
|
196
|
+
profile_buckets: Profile bucket definitions
|
|
197
|
+
|
|
191
198
|
extra_headers: Send extra headers
|
|
192
199
|
|
|
193
200
|
extra_query: Add additional query parameters to the request
|
|
@@ -216,6 +223,7 @@ class AsyncSettingsResource(AsyncAPIResource):
|
|
|
216
223
|
"onedrive_client_id": onedrive_client_id,
|
|
217
224
|
"onedrive_client_secret": onedrive_client_secret,
|
|
218
225
|
"onedrive_custom_key_enabled": onedrive_custom_key_enabled,
|
|
226
|
+
"profile_buckets": profile_buckets,
|
|
219
227
|
"should_llm_filter": should_llm_filter,
|
|
220
228
|
},
|
|
221
229
|
setting_update_params.SettingUpdateParams,
|
|
@@ -14,7 +14,6 @@ from .document_add_response import DocumentAddResponse as DocumentAddResponse
|
|
|
14
14
|
from .document_get_response import DocumentGetResponse as DocumentGetResponse
|
|
15
15
|
from .search_execute_params import SearchExecuteParams as SearchExecuteParams
|
|
16
16
|
from .setting_update_params import SettingUpdateParams as SettingUpdateParams
|
|
17
|
-
from .connection_list_params import ConnectionListParams as ConnectionListParams
|
|
18
17
|
from .document_list_response import DocumentListResponse as DocumentListResponse
|
|
19
18
|
from .document_update_params import DocumentUpdateParams as DocumentUpdateParams
|
|
20
19
|
from .memory_forget_response import MemoryForgetResponse as MemoryForgetResponse
|
|
@@ -22,35 +21,15 @@ from .search_memories_params import SearchMemoriesParams as SearchMemoriesParams
|
|
|
22
21
|
from .search_documents_params import SearchDocumentsParams as SearchDocumentsParams
|
|
23
22
|
from .search_execute_response import SearchExecuteResponse as SearchExecuteResponse
|
|
24
23
|
from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse
|
|
25
|
-
from .connection_create_params import ConnectionCreateParams as ConnectionCreateParams
|
|
26
|
-
from .connection_import_params import ConnectionImportParams as ConnectionImportParams
|
|
27
|
-
from .connection_list_response import ConnectionListResponse as ConnectionListResponse
|
|
28
24
|
from .document_update_response import DocumentUpdateResponse as DocumentUpdateResponse
|
|
29
25
|
from .search_memories_response import SearchMemoriesResponse as SearchMemoriesResponse
|
|
30
26
|
from .document_batch_add_params import DocumentBatchAddParams as DocumentBatchAddParams
|
|
31
27
|
from .search_documents_response import SearchDocumentsResponse as SearchDocumentsResponse
|
|
32
|
-
from .connection_create_response import ConnectionCreateResponse as ConnectionCreateResponse
|
|
33
|
-
from .connection_import_response import ConnectionImportResponse as ConnectionImportResponse
|
|
34
|
-
from .connection_configure_params import ConnectionConfigureParams as ConnectionConfigureParams
|
|
35
|
-
from .connection_resources_params import ConnectionResourcesParams as ConnectionResourcesParams
|
|
36
28
|
from .document_batch_add_response import DocumentBatchAddResponse as DocumentBatchAddResponse
|
|
37
29
|
from .document_delete_bulk_params import DocumentDeleteBulkParams as DocumentDeleteBulkParams
|
|
38
30
|
from .document_upload_file_params import DocumentUploadFileParams as DocumentUploadFileParams
|
|
39
31
|
from .memory_update_memory_params import MemoryUpdateMemoryParams as MemoryUpdateMemoryParams
|
|
40
|
-
from .connection_get_by_tag_params import ConnectionGetByTagParams as ConnectionGetByTagParams
|
|
41
|
-
from .connection_configure_response import ConnectionConfigureResponse as ConnectionConfigureResponse
|
|
42
|
-
from .connection_get_by_id_response import ConnectionGetByIDResponse as ConnectionGetByIDResponse
|
|
43
|
-
from .connection_resources_response import ConnectionResourcesResponse as ConnectionResourcesResponse
|
|
44
32
|
from .document_delete_bulk_response import DocumentDeleteBulkResponse as DocumentDeleteBulkResponse
|
|
45
33
|
from .document_upload_file_response import DocumentUploadFileResponse as DocumentUploadFileResponse
|
|
46
34
|
from .memory_update_memory_response import MemoryUpdateMemoryResponse as MemoryUpdateMemoryResponse
|
|
47
|
-
from .connection_delete_by_id_params import ConnectionDeleteByIDParams as ConnectionDeleteByIDParams
|
|
48
|
-
from .connection_get_by_tag_response import ConnectionGetByTagResponse as ConnectionGetByTagResponse
|
|
49
|
-
from .connection_delete_by_id_response import ConnectionDeleteByIDResponse as ConnectionDeleteByIDResponse
|
|
50
|
-
from .connection_list_documents_params import ConnectionListDocumentsParams as ConnectionListDocumentsParams
|
|
51
35
|
from .document_list_processing_response import DocumentListProcessingResponse as DocumentListProcessingResponse
|
|
52
|
-
from .connection_list_documents_response import ConnectionListDocumentsResponse as ConnectionListDocumentsResponse
|
|
53
|
-
from .connection_delete_by_provider_params import ConnectionDeleteByProviderParams as ConnectionDeleteByProviderParams
|
|
54
|
-
from .connection_delete_by_provider_response import (
|
|
55
|
-
ConnectionDeleteByProviderResponse as ConnectionDeleteByProviderResponse,
|
|
56
|
-
)
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Union, Iterable
|
|
5
|
+
from typing import List, Union, Iterable
|
|
6
6
|
from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
|
|
7
7
|
|
|
8
|
+
from .._types import SequenceNotStr
|
|
8
9
|
from .._utils import PropertyInfo
|
|
9
10
|
|
|
10
11
|
__all__ = [
|
|
@@ -335,12 +336,25 @@ class ClientProfileParams(TypedDict, total=False):
|
|
|
335
336
|
to use to filter memories.
|
|
336
337
|
"""
|
|
337
338
|
|
|
339
|
+
buckets: SequenceNotStr[str]
|
|
340
|
+
"""Specific bucket keys to return.
|
|
341
|
+
|
|
342
|
+
Omit to return all configured buckets. Only relevant when "buckets" is included.
|
|
343
|
+
"""
|
|
344
|
+
|
|
338
345
|
filters: Filters
|
|
339
346
|
"""Optional metadata filters to apply to profile results and search results.
|
|
340
347
|
|
|
341
348
|
Supports complex AND/OR queries with multiple conditions.
|
|
342
349
|
"""
|
|
343
350
|
|
|
351
|
+
include: List[Literal["static", "dynamic", "buckets"]]
|
|
352
|
+
"""Profile sections to return.
|
|
353
|
+
|
|
354
|
+
Omit to return all sections. Pass a subset to reduce payload — e.g. ["buckets"]
|
|
355
|
+
skips static and dynamic entirely.
|
|
356
|
+
"""
|
|
357
|
+
|
|
344
358
|
q: str
|
|
345
359
|
"""Optional search query to include search results in the response"""
|
|
346
360
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import List, Optional
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
4
|
|
|
5
5
|
from pydantic import Field as FieldInfo
|
|
6
6
|
|
|
@@ -10,10 +10,13 @@ __all__ = ["ProfileResponse", "Profile", "SearchResults"]
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Profile(BaseModel):
|
|
13
|
-
|
|
13
|
+
buckets: Optional[Dict[str, List[str]]] = None
|
|
14
|
+
"""Per-bucket memory lists, keyed by bucket key"""
|
|
15
|
+
|
|
16
|
+
dynamic: Optional[List[str]] = None
|
|
14
17
|
"""Dynamic profile information (recent memories)"""
|
|
15
18
|
|
|
16
|
-
static: List[str]
|
|
19
|
+
static: Optional[List[str]] = None
|
|
17
20
|
"""Static profile information that remains relevant long-term"""
|
|
18
21
|
|
|
19
22
|
|
|
@@ -6,7 +6,17 @@ from pydantic import Field as FieldInfo
|
|
|
6
6
|
|
|
7
7
|
from .._models import BaseModel
|
|
8
8
|
|
|
9
|
-
__all__ = ["SettingGetResponse"]
|
|
9
|
+
__all__ = ["SettingGetResponse", "ProfileBucket"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ProfileBucket(BaseModel):
|
|
13
|
+
"""Definition of a single profile bucket"""
|
|
14
|
+
|
|
15
|
+
key: str
|
|
16
|
+
"""Stable slug for the bucket, stored on each memory"""
|
|
17
|
+
|
|
18
|
+
description: Optional[str] = None
|
|
19
|
+
"""What belongs in this bucket — used to guide the ingestion classifier."""
|
|
10
20
|
|
|
11
21
|
|
|
12
22
|
class SettingGetResponse(BaseModel):
|
|
@@ -46,4 +56,7 @@ class SettingGetResponse(BaseModel):
|
|
|
46
56
|
|
|
47
57
|
onedrive_custom_key_enabled: Optional[bool] = FieldInfo(alias="onedriveCustomKeyEnabled", default=None)
|
|
48
58
|
|
|
59
|
+
profile_buckets: Optional[List[ProfileBucket]] = FieldInfo(alias="profileBuckets", default=None)
|
|
60
|
+
"""Profile bucket definitions"""
|
|
61
|
+
|
|
49
62
|
should_llm_filter: Optional[bool] = FieldInfo(alias="shouldLLMFilter", default=None)
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import Dict, Union, Iterable, Optional
|
|
6
|
-
from typing_extensions import Annotated, TypedDict
|
|
6
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
7
7
|
|
|
8
8
|
from .._utils import PropertyInfo
|
|
9
9
|
|
|
10
|
-
__all__ = ["SettingUpdateParams"]
|
|
10
|
+
__all__ = ["SettingUpdateParams", "ProfileBucket"]
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class SettingUpdateParams(TypedDict, total=False):
|
|
@@ -47,4 +47,17 @@ class SettingUpdateParams(TypedDict, total=False):
|
|
|
47
47
|
|
|
48
48
|
onedrive_custom_key_enabled: Annotated[Optional[bool], PropertyInfo(alias="onedriveCustomKeyEnabled")]
|
|
49
49
|
|
|
50
|
+
profile_buckets: Annotated[Iterable[ProfileBucket], PropertyInfo(alias="profileBuckets")]
|
|
51
|
+
"""Profile bucket definitions"""
|
|
52
|
+
|
|
50
53
|
should_llm_filter: Annotated[Optional[bool], PropertyInfo(alias="shouldLLMFilter")]
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class ProfileBucket(TypedDict, total=False):
|
|
57
|
+
"""Definition of a single profile bucket"""
|
|
58
|
+
|
|
59
|
+
key: Required[str]
|
|
60
|
+
"""Stable slug for the bucket, stored on each memory"""
|
|
61
|
+
|
|
62
|
+
description: str
|
|
63
|
+
"""What belongs in this bucket — used to guide the ingestion classifier."""
|
|
@@ -6,7 +6,17 @@ from pydantic import Field as FieldInfo
|
|
|
6
6
|
|
|
7
7
|
from .._models import BaseModel
|
|
8
8
|
|
|
9
|
-
__all__ = ["SettingUpdateResponse", "Updated"]
|
|
9
|
+
__all__ = ["SettingUpdateResponse", "Updated", "UpdatedProfileBucket"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class UpdatedProfileBucket(BaseModel):
|
|
13
|
+
"""Definition of a single profile bucket"""
|
|
14
|
+
|
|
15
|
+
key: str
|
|
16
|
+
"""Stable slug for the bucket, stored on each memory"""
|
|
17
|
+
|
|
18
|
+
description: Optional[str] = None
|
|
19
|
+
"""What belongs in this bucket — used to guide the ingestion classifier."""
|
|
10
20
|
|
|
11
21
|
|
|
12
22
|
class Updated(BaseModel):
|
|
@@ -46,6 +56,9 @@ class Updated(BaseModel):
|
|
|
46
56
|
|
|
47
57
|
onedrive_custom_key_enabled: Optional[bool] = FieldInfo(alias="onedriveCustomKeyEnabled", default=None)
|
|
48
58
|
|
|
59
|
+
profile_buckets: Optional[List[UpdatedProfileBucket]] = FieldInfo(alias="profileBuckets", default=None)
|
|
60
|
+
"""Profile bucket definitions"""
|
|
61
|
+
|
|
49
62
|
should_llm_filter: Optional[bool] = FieldInfo(alias="shouldLLMFilter", default=None)
|
|
50
63
|
|
|
51
64
|
|
|
@@ -81,6 +81,7 @@ class TestClient:
|
|
|
81
81
|
def test_method_profile_with_all_params(self, client: Supermemory) -> None:
|
|
82
82
|
client_ = client.profile(
|
|
83
83
|
container_tag="containerTag",
|
|
84
|
+
buckets=["string"],
|
|
84
85
|
filters={
|
|
85
86
|
"or_": [
|
|
86
87
|
{
|
|
@@ -93,6 +94,7 @@ class TestClient:
|
|
|
93
94
|
}
|
|
94
95
|
]
|
|
95
96
|
},
|
|
97
|
+
include=["static"],
|
|
96
98
|
q="q",
|
|
97
99
|
threshold=0,
|
|
98
100
|
)
|
|
@@ -194,6 +196,7 @@ class TestAsyncClient:
|
|
|
194
196
|
async def test_method_profile_with_all_params(self, async_client: AsyncSupermemory) -> None:
|
|
195
197
|
client = await async_client.profile(
|
|
196
198
|
container_tag="containerTag",
|
|
199
|
+
buckets=["string"],
|
|
197
200
|
filters={
|
|
198
201
|
"or_": [
|
|
199
202
|
{
|
|
@@ -206,6 +209,7 @@ class TestAsyncClient:
|
|
|
206
209
|
}
|
|
207
210
|
]
|
|
208
211
|
},
|
|
212
|
+
include=["static"],
|
|
209
213
|
q="q",
|
|
210
214
|
threshold=0,
|
|
211
215
|
)
|
|
@@ -43,6 +43,12 @@ class TestSettings:
|
|
|
43
43
|
onedrive_client_id="onedriveClientId",
|
|
44
44
|
onedrive_client_secret="onedriveClientSecret",
|
|
45
45
|
onedrive_custom_key_enabled=True,
|
|
46
|
+
profile_buckets=[
|
|
47
|
+
{
|
|
48
|
+
"key": "key",
|
|
49
|
+
"description": "description",
|
|
50
|
+
}
|
|
51
|
+
],
|
|
46
52
|
should_llm_filter=True,
|
|
47
53
|
)
|
|
48
54
|
assert_matches_type(SettingUpdateResponse, setting, path=["response"])
|
|
@@ -129,6 +135,12 @@ class TestAsyncSettings:
|
|
|
129
135
|
onedrive_client_id="onedriveClientId",
|
|
130
136
|
onedrive_client_secret="onedriveClientSecret",
|
|
131
137
|
onedrive_custom_key_enabled=True,
|
|
138
|
+
profile_buckets=[
|
|
139
|
+
{
|
|
140
|
+
"key": "key",
|
|
141
|
+
"description": "description",
|
|
142
|
+
}
|
|
143
|
+
],
|
|
132
144
|
should_llm_filter=True,
|
|
133
145
|
)
|
|
134
146
|
assert_matches_type(SettingUpdateResponse, setting, path=["response"])
|