supermemory 3.46.0__tar.gz → 3.48.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.48.0/.release-please-manifest.json +3 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/CHANGELOG.md +16 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/PKG-INFO +1 -1
- {supermemory-3.46.0 → supermemory-3.48.0}/pyproject.toml +1 -1
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_client.py +21 -1
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_version.py +1 -1
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/resources/settings.py +8 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/client_profile_params.py +15 -1
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/memory_update_memory_response.py +7 -1
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/profile_response.py +6 -3
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/setting_get_response.py +14 -1
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/setting_update_params.py +15 -2
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/setting_update_response.py +14 -1
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/api_resources/test_client.py +4 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/api_resources/test_settings.py +12 -0
- supermemory-3.46.0/.release-please-manifest.json +0 -3
- {supermemory-3.46.0 → supermemory-3.48.0}/.gitignore +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/CONTRIBUTING.md +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/LICENSE +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/README.md +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/SECURITY.md +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/api.md +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/bin/check-release-environment +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/bin/publish-pypi +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/examples/.keep +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/noxfile.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/release-please-config.json +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/requirements-dev.lock +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/requirements.lock +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/__init__.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_base_client.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_compat.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_constants.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_exceptions.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_files.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_models.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_qs.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_resource.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_streaming.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_types.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/__init__.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_compat.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_datetime_parse.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_json.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_logs.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_path.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_proxy.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_reflection.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_streams.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_sync.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_transform.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_typing.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/_utils/_utils.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/lib/.keep +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/py.typed +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/resources/__init__.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/resources/connections.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/resources/documents.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/resources/memories.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/resources/search.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/__init__.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/add_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/client_add_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_configure_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_configure_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_create_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_create_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_delete_by_id_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_delete_by_id_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_delete_by_provider_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_delete_by_provider_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_get_by_id_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_get_by_tag_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_get_by_tag_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_import_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_import_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_list_documents_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_list_documents_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_list_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_list_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_resources_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_resources_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_add_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_add_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_batch_add_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_batch_add_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_delete_bulk_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_delete_bulk_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_get_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_list_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_list_processing_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_list_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_update_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_update_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_upload_file_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_upload_file_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/memory_forget_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/memory_forget_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/memory_update_memory_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/search_documents_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/search_documents_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/search_execute_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/search_execute_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/search_memories_params.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/search_memories_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory_new/lib/.keep +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/__init__.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/api_resources/__init__.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/api_resources/test_connections.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/api_resources/test_documents.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/api_resources/test_memories.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/api_resources/test_search.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/conftest.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/sample_file.txt +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_client.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_extract_files.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_files.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_models.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_qs.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_required_args.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_response.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_streaming.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_transform.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_utils/test_json.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_utils/test_path.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_utils/test_proxy.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/test_utils/test_typing.py +0 -0
- {supermemory-3.46.0 → supermemory-3.48.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.48.0 (2026-06-20)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.47.0...v3.48.0](https://github.com/supermemoryai/python-sdk/compare/v3.47.0...v3.48.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([9ed1cba](https://github.com/supermemoryai/python-sdk/commit/9ed1cba81d04a41687621bc6ce66217527b06a31))
|
|
10
|
+
|
|
11
|
+
## 3.47.0 (2026-06-18)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v3.46.0...v3.47.0](https://github.com/supermemoryai/python-sdk/compare/v3.46.0...v3.47.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([abe235b](https://github.com/supermemoryai/python-sdk/commit/abe235b586bfa98a3fc3c78422c7f1327e4df940))
|
|
18
|
+
|
|
3
19
|
## 3.46.0 (2026-06-08)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v3.45.0...v3.46.0](https://github.com/supermemoryai/python-sdk/compare/v3.45.0...v3.46.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: supermemory
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.48.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
|
|
@@ -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
|
|
@@ -334,7 +334,9 @@ class Supermemory(SyncAPIClient):
|
|
|
334
334
|
self,
|
|
335
335
|
*,
|
|
336
336
|
container_tag: str,
|
|
337
|
+
buckets: SequenceNotStr[str] | Omit = omit,
|
|
337
338
|
filters: client_profile_params.Filters | Omit = omit,
|
|
339
|
+
include: List[Literal["static", "dynamic", "buckets"]] | Omit = omit,
|
|
338
340
|
q: str | Omit = omit,
|
|
339
341
|
threshold: float | Omit = omit,
|
|
340
342
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -351,9 +353,15 @@ class Supermemory(SyncAPIClient):
|
|
|
351
353
|
container_tag: Tag to filter the profile by. This can be an ID for your user, a project ID, or
|
|
352
354
|
any other identifier you wish to use to filter memories.
|
|
353
355
|
|
|
356
|
+
buckets: Specific bucket keys to return. Omit to return all configured buckets. Only
|
|
357
|
+
relevant when "buckets" is included.
|
|
358
|
+
|
|
354
359
|
filters: Optional metadata filters to apply to profile results and search results.
|
|
355
360
|
Supports complex AND/OR queries with multiple conditions.
|
|
356
361
|
|
|
362
|
+
include: Profile sections to return. Omit to return all sections. Pass a subset to reduce
|
|
363
|
+
payload — e.g. ["buckets"] skips static and dynamic entirely.
|
|
364
|
+
|
|
357
365
|
q: Optional search query to include search results in the response
|
|
358
366
|
|
|
359
367
|
threshold: Threshold for search results. Only results with a score above this threshold
|
|
@@ -372,7 +380,9 @@ class Supermemory(SyncAPIClient):
|
|
|
372
380
|
body=maybe_transform(
|
|
373
381
|
{
|
|
374
382
|
"container_tag": container_tag,
|
|
383
|
+
"buckets": buckets,
|
|
375
384
|
"filters": filters,
|
|
385
|
+
"include": include,
|
|
376
386
|
"q": q,
|
|
377
387
|
"threshold": threshold,
|
|
378
388
|
},
|
|
@@ -681,7 +691,9 @@ class AsyncSupermemory(AsyncAPIClient):
|
|
|
681
691
|
self,
|
|
682
692
|
*,
|
|
683
693
|
container_tag: str,
|
|
694
|
+
buckets: SequenceNotStr[str] | Omit = omit,
|
|
684
695
|
filters: client_profile_params.Filters | Omit = omit,
|
|
696
|
+
include: List[Literal["static", "dynamic", "buckets"]] | Omit = omit,
|
|
685
697
|
q: str | Omit = omit,
|
|
686
698
|
threshold: float | Omit = omit,
|
|
687
699
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -698,9 +710,15 @@ class AsyncSupermemory(AsyncAPIClient):
|
|
|
698
710
|
container_tag: Tag to filter the profile by. This can be an ID for your user, a project ID, or
|
|
699
711
|
any other identifier you wish to use to filter memories.
|
|
700
712
|
|
|
713
|
+
buckets: Specific bucket keys to return. Omit to return all configured buckets. Only
|
|
714
|
+
relevant when "buckets" is included.
|
|
715
|
+
|
|
701
716
|
filters: Optional metadata filters to apply to profile results and search results.
|
|
702
717
|
Supports complex AND/OR queries with multiple conditions.
|
|
703
718
|
|
|
719
|
+
include: Profile sections to return. Omit to return all sections. Pass a subset to reduce
|
|
720
|
+
payload — e.g. ["buckets"] skips static and dynamic entirely.
|
|
721
|
+
|
|
704
722
|
q: Optional search query to include search results in the response
|
|
705
723
|
|
|
706
724
|
threshold: Threshold for search results. Only results with a score above this threshold
|
|
@@ -719,7 +737,9 @@ class AsyncSupermemory(AsyncAPIClient):
|
|
|
719
737
|
body=await async_maybe_transform(
|
|
720
738
|
{
|
|
721
739
|
"container_tag": container_tag,
|
|
740
|
+
"buckets": buckets,
|
|
722
741
|
"filters": filters,
|
|
742
|
+
"include": include,
|
|
723
743
|
"q": q,
|
|
724
744
|
"threshold": threshold,
|
|
725
745
|
},
|
|
@@ -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,
|
|
@@ -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
|
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/memory_update_memory_response.py
RENAMED
|
@@ -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 Optional
|
|
3
|
+
from typing import Dict, Optional
|
|
4
4
|
|
|
5
5
|
from pydantic import Field as FieldInfo
|
|
6
6
|
|
|
@@ -27,6 +27,12 @@ class MemoryUpdateMemoryResponse(BaseModel):
|
|
|
27
27
|
memory: str
|
|
28
28
|
"""The content of the new memory version"""
|
|
29
29
|
|
|
30
|
+
metadata: Optional[Dict[str, object]] = None
|
|
31
|
+
"""
|
|
32
|
+
Arbitrary key-value metadata attached to this memory, or null if none was
|
|
33
|
+
provided
|
|
34
|
+
"""
|
|
35
|
+
|
|
30
36
|
parent_memory_id: Optional[str] = FieldInfo(alias="parentMemoryId", default=None)
|
|
31
37
|
"""ID of the memory this version updates"""
|
|
32
38
|
|
|
@@ -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"])
|
|
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.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_configure_params.py
RENAMED
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_configure_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_create_response.py
RENAMED
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_delete_by_id_params.py
RENAMED
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_delete_by_id_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_get_by_id_response.py
RENAMED
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_get_by_tag_params.py
RENAMED
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_get_by_tag_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_import_response.py
RENAMED
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_list_documents_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_resources_params.py
RENAMED
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/connection_resources_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_batch_add_params.py
RENAMED
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_batch_add_response.py
RENAMED
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_delete_bulk_params.py
RENAMED
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_delete_bulk_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_list_processing_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_upload_file_params.py
RENAMED
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/document_upload_file_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.0}/src/supermemory/types/memory_update_memory_params.py
RENAMED
|
File without changes
|
|
File without changes
|
{supermemory-3.46.0 → supermemory-3.48.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
|