supermemory 3.55.0__tar.gz → 3.56.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.56.0/.release-please-manifest.json +3 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/CHANGELOG.md +8 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/PKG-INFO +1 -1
- {supermemory-3.55.0 → supermemory-3.56.0}/pyproject.toml +1 -1
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_version.py +1 -1
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/resources/settings.py +121 -2
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/setting_get_response.py +2 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/setting_update_params.py +12 -5
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/setting_update_response.py +2 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/api_resources/test_settings.py +76 -8
- supermemory-3.55.0/.release-please-manifest.json +0 -3
- {supermemory-3.55.0 → supermemory-3.56.0}/.gitignore +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/CONTRIBUTING.md +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/LICENSE +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/README.md +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/SECURITY.md +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/api.md +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/bin/check-release-environment +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/bin/publish-pypi +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/examples/.keep +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/noxfile.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/release-please-config.json +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/requirements-dev.lock +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/requirements.lock +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/__init__.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_base_client.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_client.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_compat.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_constants.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_exceptions.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_files.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_models.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_qs.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_resource.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_streaming.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_types.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/__init__.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_compat.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_datetime_parse.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_json.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_logs.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_path.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_proxy.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_reflection.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_streams.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_sync.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_transform.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_typing.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/_utils/_utils.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/lib/.keep +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/py.typed +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/resources/__init__.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/resources/connections.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/resources/documents.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/resources/memories.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/resources/search.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/__init__.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/add_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/client_add_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/client_profile_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_configure_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_configure_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_create_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_create_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_delete_by_id_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_delete_by_id_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_delete_by_provider_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_delete_by_provider_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_get_by_id_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_get_by_tag_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_get_by_tag_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_import_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_import_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_list_documents_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_list_documents_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_list_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_list_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_resources_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_resources_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_add_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_add_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_batch_add_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_batch_add_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_delete_bulk_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_delete_bulk_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_get_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_list_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_list_processing_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_list_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_update_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_update_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_upload_file_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_upload_file_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/memory_forget_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/memory_forget_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/memory_update_memory_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/memory_update_memory_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/profile_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/search_documents_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/search_documents_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/search_execute_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/search_execute_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/search_memories_params.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/search_memories_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory_new/lib/.keep +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/__init__.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/api_resources/__init__.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/api_resources/test_client.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/api_resources/test_connections.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/api_resources/test_documents.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/api_resources/test_memories.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/api_resources/test_search.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/conftest.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/sample_file.txt +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_client.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_extract_files.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_files.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_models.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_qs.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_required_args.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_response.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_streaming.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_transform.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_utils/test_json.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_utils/test_path.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_utils/test_proxy.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/test_utils/test_typing.py +0 -0
- {supermemory-3.55.0 → supermemory-3.56.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.56.0 (2026-07-24)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.55.0...v3.56.0](https://github.com/supermemoryai/python-sdk/compare/v3.55.0...v3.56.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([d04a39c](https://github.com/supermemoryai/python-sdk/commit/d04a39c5b163af7e0297417d47bd917d45231751))
|
|
10
|
+
|
|
3
11
|
## 3.55.0 (2026-07-24)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v3.54.0...v3.55.0](https://github.com/supermemoryai/python-sdk/compare/v3.54.0...v3.55.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: supermemory
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.56.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,6 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import Dict, Union, Iterable, Optional
|
|
6
|
+
from typing_extensions import overload
|
|
6
7
|
|
|
7
8
|
import httpx
|
|
8
9
|
|
|
@@ -46,6 +47,33 @@ class SettingsResource(SyncAPIResource):
|
|
|
46
47
|
"""
|
|
47
48
|
return SettingsResourceWithStreamingResponse(self)
|
|
48
49
|
|
|
50
|
+
@overload
|
|
51
|
+
def update(
|
|
52
|
+
self,
|
|
53
|
+
*,
|
|
54
|
+
workspace_prompt: Optional[str],
|
|
55
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
56
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
57
|
+
extra_headers: Headers | None = None,
|
|
58
|
+
extra_query: Query | None = None,
|
|
59
|
+
extra_body: Body | None = None,
|
|
60
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
61
|
+
) -> SettingUpdateResponse:
|
|
62
|
+
"""
|
|
63
|
+
Update settings for an organization
|
|
64
|
+
|
|
65
|
+
Args:
|
|
66
|
+
extra_headers: Send extra headers
|
|
67
|
+
|
|
68
|
+
extra_query: Add additional query parameters to the request
|
|
69
|
+
|
|
70
|
+
extra_body: Add additional JSON properties to the request
|
|
71
|
+
|
|
72
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
73
|
+
"""
|
|
74
|
+
...
|
|
75
|
+
|
|
76
|
+
@overload
|
|
49
77
|
def update(
|
|
50
78
|
self,
|
|
51
79
|
*,
|
|
@@ -65,7 +93,7 @@ class SettingsResource(SyncAPIResource):
|
|
|
65
93
|
onedrive_client_id: Optional[str] | Omit = omit,
|
|
66
94
|
onedrive_client_secret: Optional[str] | Omit = omit,
|
|
67
95
|
onedrive_custom_key_enabled: Optional[bool] | Omit = omit,
|
|
68
|
-
profile_buckets: Iterable[setting_update_params.
|
|
96
|
+
profile_buckets: Iterable[setting_update_params.Variant1ProfileBucket] | Omit = omit,
|
|
69
97
|
should_llm_filter: Optional[bool] | Omit = omit,
|
|
70
98
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
71
99
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -88,10 +116,42 @@ class SettingsResource(SyncAPIResource):
|
|
|
88
116
|
|
|
89
117
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
90
118
|
"""
|
|
119
|
+
...
|
|
120
|
+
|
|
121
|
+
def update(
|
|
122
|
+
self,
|
|
123
|
+
*,
|
|
124
|
+
workspace_prompt: Optional[str] | Omit = omit,
|
|
125
|
+
chunk_size: Optional[int] | Omit = omit,
|
|
126
|
+
exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | Omit = omit,
|
|
127
|
+
filter_prompt: Optional[str] | Omit = omit,
|
|
128
|
+
github_client_id: Optional[str] | Omit = omit,
|
|
129
|
+
github_client_secret: Optional[str] | Omit = omit,
|
|
130
|
+
github_custom_key_enabled: Optional[bool] | Omit = omit,
|
|
131
|
+
google_drive_client_id: Optional[str] | Omit = omit,
|
|
132
|
+
google_drive_client_secret: Optional[str] | Omit = omit,
|
|
133
|
+
google_drive_custom_key_enabled: Optional[bool] | Omit = omit,
|
|
134
|
+
include_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | Omit = omit,
|
|
135
|
+
notion_client_id: Optional[str] | Omit = omit,
|
|
136
|
+
notion_client_secret: Optional[str] | Omit = omit,
|
|
137
|
+
notion_custom_key_enabled: Optional[bool] | Omit = omit,
|
|
138
|
+
onedrive_client_id: Optional[str] | Omit = omit,
|
|
139
|
+
onedrive_client_secret: Optional[str] | Omit = omit,
|
|
140
|
+
onedrive_custom_key_enabled: Optional[bool] | Omit = omit,
|
|
141
|
+
profile_buckets: Iterable[setting_update_params.Variant1ProfileBucket] | Omit = omit,
|
|
142
|
+
should_llm_filter: Optional[bool] | Omit = omit,
|
|
143
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
144
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
145
|
+
extra_headers: Headers | None = None,
|
|
146
|
+
extra_query: Query | None = None,
|
|
147
|
+
extra_body: Body | None = None,
|
|
148
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
149
|
+
) -> SettingUpdateResponse:
|
|
91
150
|
return self._patch(
|
|
92
151
|
"/v3/settings",
|
|
93
152
|
body=maybe_transform(
|
|
94
153
|
{
|
|
154
|
+
"workspace_prompt": workspace_prompt,
|
|
95
155
|
"chunk_size": chunk_size,
|
|
96
156
|
"exclude_items": exclude_items,
|
|
97
157
|
"filter_prompt": filter_prompt,
|
|
@@ -161,6 +221,33 @@ class AsyncSettingsResource(AsyncAPIResource):
|
|
|
161
221
|
"""
|
|
162
222
|
return AsyncSettingsResourceWithStreamingResponse(self)
|
|
163
223
|
|
|
224
|
+
@overload
|
|
225
|
+
async def update(
|
|
226
|
+
self,
|
|
227
|
+
*,
|
|
228
|
+
workspace_prompt: Optional[str],
|
|
229
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
230
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
231
|
+
extra_headers: Headers | None = None,
|
|
232
|
+
extra_query: Query | None = None,
|
|
233
|
+
extra_body: Body | None = None,
|
|
234
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
235
|
+
) -> SettingUpdateResponse:
|
|
236
|
+
"""
|
|
237
|
+
Update settings for an organization
|
|
238
|
+
|
|
239
|
+
Args:
|
|
240
|
+
extra_headers: Send extra headers
|
|
241
|
+
|
|
242
|
+
extra_query: Add additional query parameters to the request
|
|
243
|
+
|
|
244
|
+
extra_body: Add additional JSON properties to the request
|
|
245
|
+
|
|
246
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
247
|
+
"""
|
|
248
|
+
...
|
|
249
|
+
|
|
250
|
+
@overload
|
|
164
251
|
async def update(
|
|
165
252
|
self,
|
|
166
253
|
*,
|
|
@@ -180,7 +267,7 @@ class AsyncSettingsResource(AsyncAPIResource):
|
|
|
180
267
|
onedrive_client_id: Optional[str] | Omit = omit,
|
|
181
268
|
onedrive_client_secret: Optional[str] | Omit = omit,
|
|
182
269
|
onedrive_custom_key_enabled: Optional[bool] | Omit = omit,
|
|
183
|
-
profile_buckets: Iterable[setting_update_params.
|
|
270
|
+
profile_buckets: Iterable[setting_update_params.Variant1ProfileBucket] | Omit = omit,
|
|
184
271
|
should_llm_filter: Optional[bool] | Omit = omit,
|
|
185
272
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
186
273
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -203,10 +290,42 @@ class AsyncSettingsResource(AsyncAPIResource):
|
|
|
203
290
|
|
|
204
291
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
205
292
|
"""
|
|
293
|
+
...
|
|
294
|
+
|
|
295
|
+
async def update(
|
|
296
|
+
self,
|
|
297
|
+
*,
|
|
298
|
+
workspace_prompt: Optional[str] | Omit = omit,
|
|
299
|
+
chunk_size: Optional[int] | Omit = omit,
|
|
300
|
+
exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | Omit = omit,
|
|
301
|
+
filter_prompt: Optional[str] | Omit = omit,
|
|
302
|
+
github_client_id: Optional[str] | Omit = omit,
|
|
303
|
+
github_client_secret: Optional[str] | Omit = omit,
|
|
304
|
+
github_custom_key_enabled: Optional[bool] | Omit = omit,
|
|
305
|
+
google_drive_client_id: Optional[str] | Omit = omit,
|
|
306
|
+
google_drive_client_secret: Optional[str] | Omit = omit,
|
|
307
|
+
google_drive_custom_key_enabled: Optional[bool] | Omit = omit,
|
|
308
|
+
include_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | Omit = omit,
|
|
309
|
+
notion_client_id: Optional[str] | Omit = omit,
|
|
310
|
+
notion_client_secret: Optional[str] | Omit = omit,
|
|
311
|
+
notion_custom_key_enabled: Optional[bool] | Omit = omit,
|
|
312
|
+
onedrive_client_id: Optional[str] | Omit = omit,
|
|
313
|
+
onedrive_client_secret: Optional[str] | Omit = omit,
|
|
314
|
+
onedrive_custom_key_enabled: Optional[bool] | Omit = omit,
|
|
315
|
+
profile_buckets: Iterable[setting_update_params.Variant1ProfileBucket] | Omit = omit,
|
|
316
|
+
should_llm_filter: Optional[bool] | Omit = omit,
|
|
317
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
318
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
319
|
+
extra_headers: Headers | None = None,
|
|
320
|
+
extra_query: Query | None = None,
|
|
321
|
+
extra_body: Body | None = None,
|
|
322
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
323
|
+
) -> SettingUpdateResponse:
|
|
206
324
|
return await self._patch(
|
|
207
325
|
"/v3/settings",
|
|
208
326
|
body=await async_maybe_transform(
|
|
209
327
|
{
|
|
328
|
+
"workspace_prompt": workspace_prompt,
|
|
210
329
|
"chunk_size": chunk_size,
|
|
211
330
|
"exclude_items": exclude_items,
|
|
212
331
|
"filter_prompt": filter_prompt,
|
|
@@ -3,14 +3,18 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import Dict, Union, Iterable, Optional
|
|
6
|
-
from typing_extensions import Required, Annotated, TypedDict
|
|
6
|
+
from typing_extensions import Required, Annotated, TypeAlias, TypedDict
|
|
7
7
|
|
|
8
8
|
from .._utils import PropertyInfo
|
|
9
9
|
|
|
10
|
-
__all__ = ["SettingUpdateParams", "
|
|
10
|
+
__all__ = ["SettingUpdateParams", "Variant0", "Variant1", "Variant1ProfileBucket"]
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class Variant0(TypedDict, total=False):
|
|
14
|
+
workspace_prompt: Required[Annotated[Optional[str], PropertyInfo(alias="workspacePrompt")]]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class Variant1(TypedDict, total=False):
|
|
14
18
|
chunk_size: Annotated[Optional[int], PropertyInfo(alias="chunkSize")]
|
|
15
19
|
|
|
16
20
|
exclude_items: Annotated[
|
|
@@ -47,13 +51,13 @@ class SettingUpdateParams(TypedDict, total=False):
|
|
|
47
51
|
|
|
48
52
|
onedrive_custom_key_enabled: Annotated[Optional[bool], PropertyInfo(alias="onedriveCustomKeyEnabled")]
|
|
49
53
|
|
|
50
|
-
profile_buckets: Annotated[Iterable[
|
|
54
|
+
profile_buckets: Annotated[Iterable[Variant1ProfileBucket], PropertyInfo(alias="profileBuckets")]
|
|
51
55
|
"""Profile bucket definitions"""
|
|
52
56
|
|
|
53
57
|
should_llm_filter: Annotated[Optional[bool], PropertyInfo(alias="shouldLLMFilter")]
|
|
54
58
|
|
|
55
59
|
|
|
56
|
-
class
|
|
60
|
+
class Variant1ProfileBucket(TypedDict, total=False):
|
|
57
61
|
"""Definition of a single profile bucket"""
|
|
58
62
|
|
|
59
63
|
key: Required[str]
|
|
@@ -61,3 +65,6 @@ class ProfileBucket(TypedDict, total=False):
|
|
|
61
65
|
|
|
62
66
|
description: str
|
|
63
67
|
"""What belongs in this bucket — used to guide the ingestion classifier."""
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
SettingUpdateParams: TypeAlias = Union[Variant0, Variant1]
|
|
@@ -61,6 +61,8 @@ class Updated(BaseModel):
|
|
|
61
61
|
|
|
62
62
|
should_llm_filter: Optional[bool] = FieldInfo(alias="shouldLLMFilter", default=None)
|
|
63
63
|
|
|
64
|
+
workspace_prompt: Optional[str] = FieldInfo(alias="workspacePrompt", default=None)
|
|
65
|
+
|
|
64
66
|
|
|
65
67
|
class SettingUpdateResponse(BaseModel):
|
|
66
68
|
org_id: str = FieldInfo(alias="orgId")
|
|
@@ -19,13 +19,47 @@ class TestSettings:
|
|
|
19
19
|
|
|
20
20
|
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
21
21
|
@parametrize
|
|
22
|
-
def
|
|
22
|
+
def test_method_update_overload_1(self, client: Supermemory) -> None:
|
|
23
|
+
setting = client.settings.update(
|
|
24
|
+
workspace_prompt="workspacePrompt",
|
|
25
|
+
)
|
|
26
|
+
assert_matches_type(SettingUpdateResponse, setting, path=["response"])
|
|
27
|
+
|
|
28
|
+
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
29
|
+
@parametrize
|
|
30
|
+
def test_raw_response_update_overload_1(self, client: Supermemory) -> None:
|
|
31
|
+
response = client.settings.with_raw_response.update(
|
|
32
|
+
workspace_prompt="workspacePrompt",
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
assert response.is_closed is True
|
|
36
|
+
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
37
|
+
setting = response.parse()
|
|
38
|
+
assert_matches_type(SettingUpdateResponse, setting, path=["response"])
|
|
39
|
+
|
|
40
|
+
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
41
|
+
@parametrize
|
|
42
|
+
def test_streaming_response_update_overload_1(self, client: Supermemory) -> None:
|
|
43
|
+
with client.settings.with_streaming_response.update(
|
|
44
|
+
workspace_prompt="workspacePrompt",
|
|
45
|
+
) as response:
|
|
46
|
+
assert not response.is_closed
|
|
47
|
+
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
48
|
+
|
|
49
|
+
setting = response.parse()
|
|
50
|
+
assert_matches_type(SettingUpdateResponse, setting, path=["response"])
|
|
51
|
+
|
|
52
|
+
assert cast(Any, response.is_closed) is True
|
|
53
|
+
|
|
54
|
+
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
55
|
+
@parametrize
|
|
56
|
+
def test_method_update_overload_2(self, client: Supermemory) -> None:
|
|
23
57
|
setting = client.settings.update()
|
|
24
58
|
assert_matches_type(SettingUpdateResponse, setting, path=["response"])
|
|
25
59
|
|
|
26
60
|
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
27
61
|
@parametrize
|
|
28
|
-
def
|
|
62
|
+
def test_method_update_with_all_params_overload_2(self, client: Supermemory) -> None:
|
|
29
63
|
setting = client.settings.update(
|
|
30
64
|
chunk_size=-2147483648,
|
|
31
65
|
exclude_items="string",
|
|
@@ -55,7 +89,7 @@ class TestSettings:
|
|
|
55
89
|
|
|
56
90
|
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
57
91
|
@parametrize
|
|
58
|
-
def
|
|
92
|
+
def test_raw_response_update_overload_2(self, client: Supermemory) -> None:
|
|
59
93
|
response = client.settings.with_raw_response.update()
|
|
60
94
|
|
|
61
95
|
assert response.is_closed is True
|
|
@@ -65,7 +99,7 @@ class TestSettings:
|
|
|
65
99
|
|
|
66
100
|
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
67
101
|
@parametrize
|
|
68
|
-
def
|
|
102
|
+
def test_streaming_response_update_overload_2(self, client: Supermemory) -> None:
|
|
69
103
|
with client.settings.with_streaming_response.update() as response:
|
|
70
104
|
assert not response.is_closed
|
|
71
105
|
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
@@ -111,13 +145,47 @@ class TestAsyncSettings:
|
|
|
111
145
|
|
|
112
146
|
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
113
147
|
@parametrize
|
|
114
|
-
async def
|
|
148
|
+
async def test_method_update_overload_1(self, async_client: AsyncSupermemory) -> None:
|
|
149
|
+
setting = await async_client.settings.update(
|
|
150
|
+
workspace_prompt="workspacePrompt",
|
|
151
|
+
)
|
|
152
|
+
assert_matches_type(SettingUpdateResponse, setting, path=["response"])
|
|
153
|
+
|
|
154
|
+
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
155
|
+
@parametrize
|
|
156
|
+
async def test_raw_response_update_overload_1(self, async_client: AsyncSupermemory) -> None:
|
|
157
|
+
response = await async_client.settings.with_raw_response.update(
|
|
158
|
+
workspace_prompt="workspacePrompt",
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
assert response.is_closed is True
|
|
162
|
+
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
163
|
+
setting = await response.parse()
|
|
164
|
+
assert_matches_type(SettingUpdateResponse, setting, path=["response"])
|
|
165
|
+
|
|
166
|
+
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
167
|
+
@parametrize
|
|
168
|
+
async def test_streaming_response_update_overload_1(self, async_client: AsyncSupermemory) -> None:
|
|
169
|
+
async with async_client.settings.with_streaming_response.update(
|
|
170
|
+
workspace_prompt="workspacePrompt",
|
|
171
|
+
) as response:
|
|
172
|
+
assert not response.is_closed
|
|
173
|
+
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
174
|
+
|
|
175
|
+
setting = await response.parse()
|
|
176
|
+
assert_matches_type(SettingUpdateResponse, setting, path=["response"])
|
|
177
|
+
|
|
178
|
+
assert cast(Any, response.is_closed) is True
|
|
179
|
+
|
|
180
|
+
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
181
|
+
@parametrize
|
|
182
|
+
async def test_method_update_overload_2(self, async_client: AsyncSupermemory) -> None:
|
|
115
183
|
setting = await async_client.settings.update()
|
|
116
184
|
assert_matches_type(SettingUpdateResponse, setting, path=["response"])
|
|
117
185
|
|
|
118
186
|
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
119
187
|
@parametrize
|
|
120
|
-
async def
|
|
188
|
+
async def test_method_update_with_all_params_overload_2(self, async_client: AsyncSupermemory) -> None:
|
|
121
189
|
setting = await async_client.settings.update(
|
|
122
190
|
chunk_size=-2147483648,
|
|
123
191
|
exclude_items="string",
|
|
@@ -147,7 +215,7 @@ class TestAsyncSettings:
|
|
|
147
215
|
|
|
148
216
|
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
149
217
|
@parametrize
|
|
150
|
-
async def
|
|
218
|
+
async def test_raw_response_update_overload_2(self, async_client: AsyncSupermemory) -> None:
|
|
151
219
|
response = await async_client.settings.with_raw_response.update()
|
|
152
220
|
|
|
153
221
|
assert response.is_closed is True
|
|
@@ -157,7 +225,7 @@ class TestAsyncSettings:
|
|
|
157
225
|
|
|
158
226
|
@pytest.mark.skip(reason="Mock server tests are disabled")
|
|
159
227
|
@parametrize
|
|
160
|
-
async def
|
|
228
|
+
async def test_streaming_response_update_overload_2(self, async_client: AsyncSupermemory) -> None:
|
|
161
229
|
async with async_client.settings.with_streaming_response.update() as response:
|
|
162
230
|
assert not response.is_closed
|
|
163
231
|
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
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
|
|
File without changes
|
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_configure_params.py
RENAMED
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_configure_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_create_response.py
RENAMED
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_delete_by_id_params.py
RENAMED
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_delete_by_id_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_get_by_id_response.py
RENAMED
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_get_by_tag_params.py
RENAMED
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_get_by_tag_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_import_response.py
RENAMED
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_list_documents_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_resources_params.py
RENAMED
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/connection_resources_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_batch_add_params.py
RENAMED
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_batch_add_response.py
RENAMED
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_delete_bulk_params.py
RENAMED
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_delete_bulk_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_list_processing_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_upload_file_params.py
RENAMED
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/document_upload_file_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/memory_update_memory_params.py
RENAMED
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.0}/src/supermemory/types/memory_update_memory_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.55.0 → supermemory-3.56.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
|