supermemory 3.1.0__tar.gz → 3.3.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.
Potentially problematic release.
This version of supermemory might be problematic. Click here for more details.
- supermemory-3.3.0/.release-please-manifest.json +3 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/CHANGELOG.md +16 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/PKG-INFO +1 -1
- {supermemory-3.1.0 → supermemory-3.3.0}/pyproject.toml +1 -1
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_version.py +1 -1
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/resources/documents.py +12 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/resources/memories.py +12 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/resources/settings.py +4 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/document_upload_file_params.py +7 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/memory_upload_file_params.py +7 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/setting_get_response.py +2 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/setting_update_params.py +2 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/setting_update_response.py +2 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/api_resources/test_documents.py +2 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/api_resources/test_memories.py +2 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/api_resources/test_settings.py +2 -0
- supermemory-3.1.0/.release-please-manifest.json +0 -3
- {supermemory-3.1.0 → supermemory-3.3.0}/.gitignore +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/CONTRIBUTING.md +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/LICENSE +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/README.md +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/SECURITY.md +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/api.md +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/bin/check-release-environment +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/bin/publish-pypi +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/examples/.keep +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/noxfile.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/release-please-config.json +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/requirements-dev.lock +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/requirements.lock +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/__init__.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_base_client.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_client.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_compat.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_constants.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_exceptions.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_files.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_models.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_qs.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_resource.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_streaming.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_types.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_utils/__init__.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_utils/_compat.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_utils/_datetime_parse.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_utils/_logs.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_utils/_proxy.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_utils/_reflection.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_utils/_streams.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_utils/_sync.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_utils/_transform.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_utils/_typing.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/_utils/_utils.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/lib/.keep +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/py.typed +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/resources/__init__.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/resources/connections.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/resources/search.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/__init__.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_create_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_create_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_delete_by_id_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_delete_by_provider_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_delete_by_provider_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_get_by_id_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_get_by_tags_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_get_by_tags_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_import_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_import_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_list_documents_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_list_documents_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_list_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_list_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/document_add_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/document_add_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/document_get_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/document_list_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/document_list_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/document_update_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/document_update_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/document_upload_file_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/memory_add_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/memory_add_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/memory_get_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/memory_list_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/memory_list_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/memory_update_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/memory_update_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/memory_upload_file_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/search_documents_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/search_documents_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/search_execute_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/search_execute_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/search_memories_params.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/search_memories_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory_new/lib/.keep +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/__init__.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/api_resources/__init__.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/api_resources/test_connections.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/api_resources/test_search.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/conftest.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/sample_file.txt +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_client.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_deepcopy.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_extract_files.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_files.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_models.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_qs.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_required_args.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_response.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_streaming.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_transform.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_utils/test_proxy.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/test_utils/test_typing.py +0 -0
- {supermemory-3.1.0 → supermemory-3.3.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.3.0 (2025-09-21)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.2.0...v3.3.0](https://github.com/supermemoryai/python-sdk/compare/v3.2.0...v3.3.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([fd86dc5](https://github.com/supermemoryai/python-sdk/commit/fd86dc5ee1a83000113c7dcc8ba678af94d825bd))
|
|
10
|
+
|
|
11
|
+
## 3.2.0 (2025-09-21)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v3.1.0...v3.2.0](https://github.com/supermemoryai/python-sdk/compare/v3.1.0...v3.2.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([82b35f0](https://github.com/supermemoryai/python-sdk/commit/82b35f0447a67d089304d57f41d1d1527f6da7fb))
|
|
18
|
+
|
|
3
19
|
## 3.1.0 (2025-09-20)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v3.0.0-alpha.30...v3.1.0](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.30...v3.1.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: supermemory
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.3.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
|
|
@@ -356,6 +356,7 @@ class DocumentsResource(SyncAPIResource):
|
|
|
356
356
|
file: FileTypes,
|
|
357
357
|
container_tags: str | Omit = omit,
|
|
358
358
|
file_type: str | Omit = omit,
|
|
359
|
+
metadata: str | Omit = omit,
|
|
359
360
|
mime_type: str | Omit = omit,
|
|
360
361
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
361
362
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -378,6 +379,10 @@ class DocumentsResource(SyncAPIResource):
|
|
|
378
379
|
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
|
|
379
380
|
notion_doc, webpage, onedrive
|
|
380
381
|
|
|
382
|
+
metadata: Optional metadata for the document as a JSON string. This is used to store
|
|
383
|
+
additional information about the document. Keys must be strings and values can
|
|
384
|
+
be strings, numbers, or booleans.
|
|
385
|
+
|
|
381
386
|
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
|
|
382
387
|
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
|
|
383
388
|
|
|
@@ -394,6 +399,7 @@ class DocumentsResource(SyncAPIResource):
|
|
|
394
399
|
"file": file,
|
|
395
400
|
"container_tags": container_tags,
|
|
396
401
|
"file_type": file_type,
|
|
402
|
+
"metadata": metadata,
|
|
397
403
|
"mime_type": mime_type,
|
|
398
404
|
}
|
|
399
405
|
)
|
|
@@ -741,6 +747,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
741
747
|
file: FileTypes,
|
|
742
748
|
container_tags: str | Omit = omit,
|
|
743
749
|
file_type: str | Omit = omit,
|
|
750
|
+
metadata: str | Omit = omit,
|
|
744
751
|
mime_type: str | Omit = omit,
|
|
745
752
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
746
753
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -763,6 +770,10 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
763
770
|
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
|
|
764
771
|
notion_doc, webpage, onedrive
|
|
765
772
|
|
|
773
|
+
metadata: Optional metadata for the document as a JSON string. This is used to store
|
|
774
|
+
additional information about the document. Keys must be strings and values can
|
|
775
|
+
be strings, numbers, or booleans.
|
|
776
|
+
|
|
766
777
|
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
|
|
767
778
|
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
|
|
768
779
|
|
|
@@ -779,6 +790,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
779
790
|
"file": file,
|
|
780
791
|
"container_tags": container_tags,
|
|
781
792
|
"file_type": file_type,
|
|
793
|
+
"metadata": metadata,
|
|
782
794
|
"mime_type": mime_type,
|
|
783
795
|
}
|
|
784
796
|
)
|
|
@@ -356,6 +356,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
356
356
|
file: FileTypes,
|
|
357
357
|
container_tags: str | Omit = omit,
|
|
358
358
|
file_type: str | Omit = omit,
|
|
359
|
+
metadata: str | Omit = omit,
|
|
359
360
|
mime_type: str | Omit = omit,
|
|
360
361
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
361
362
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -378,6 +379,10 @@ class MemoriesResource(SyncAPIResource):
|
|
|
378
379
|
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
|
|
379
380
|
notion_doc, webpage, onedrive
|
|
380
381
|
|
|
382
|
+
metadata: Optional metadata for the document as a JSON string. This is used to store
|
|
383
|
+
additional information about the document. Keys must be strings and values can
|
|
384
|
+
be strings, numbers, or booleans.
|
|
385
|
+
|
|
381
386
|
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
|
|
382
387
|
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
|
|
383
388
|
|
|
@@ -394,6 +399,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
394
399
|
"file": file,
|
|
395
400
|
"container_tags": container_tags,
|
|
396
401
|
"file_type": file_type,
|
|
402
|
+
"metadata": metadata,
|
|
397
403
|
"mime_type": mime_type,
|
|
398
404
|
}
|
|
399
405
|
)
|
|
@@ -741,6 +747,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
741
747
|
file: FileTypes,
|
|
742
748
|
container_tags: str | Omit = omit,
|
|
743
749
|
file_type: str | Omit = omit,
|
|
750
|
+
metadata: str | Omit = omit,
|
|
744
751
|
mime_type: str | Omit = omit,
|
|
745
752
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
746
753
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -763,6 +770,10 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
763
770
|
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
|
|
764
771
|
notion_doc, webpage, onedrive
|
|
765
772
|
|
|
773
|
+
metadata: Optional metadata for the document as a JSON string. This is used to store
|
|
774
|
+
additional information about the document. Keys must be strings and values can
|
|
775
|
+
be strings, numbers, or booleans.
|
|
776
|
+
|
|
766
777
|
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
|
|
767
778
|
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
|
|
768
779
|
|
|
@@ -779,6 +790,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
779
790
|
"file": file,
|
|
780
791
|
"container_tags": container_tags,
|
|
781
792
|
"file_type": file_type,
|
|
793
|
+
"metadata": metadata,
|
|
782
794
|
"mime_type": mime_type,
|
|
783
795
|
}
|
|
784
796
|
)
|
|
@@ -47,6 +47,7 @@ class SettingsResource(SyncAPIResource):
|
|
|
47
47
|
def update(
|
|
48
48
|
self,
|
|
49
49
|
*,
|
|
50
|
+
chunk_size: Optional[int] | Omit = omit,
|
|
50
51
|
exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | Omit = omit,
|
|
51
52
|
filter_prompt: Optional[str] | Omit = omit,
|
|
52
53
|
google_drive_client_id: Optional[str] | Omit = omit,
|
|
@@ -83,6 +84,7 @@ class SettingsResource(SyncAPIResource):
|
|
|
83
84
|
"/v3/settings",
|
|
84
85
|
body=maybe_transform(
|
|
85
86
|
{
|
|
87
|
+
"chunk_size": chunk_size,
|
|
86
88
|
"exclude_items": exclude_items,
|
|
87
89
|
"filter_prompt": filter_prompt,
|
|
88
90
|
"google_drive_client_id": google_drive_client_id,
|
|
@@ -148,6 +150,7 @@ class AsyncSettingsResource(AsyncAPIResource):
|
|
|
148
150
|
async def update(
|
|
149
151
|
self,
|
|
150
152
|
*,
|
|
153
|
+
chunk_size: Optional[int] | Omit = omit,
|
|
151
154
|
exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | Omit = omit,
|
|
152
155
|
filter_prompt: Optional[str] | Omit = omit,
|
|
153
156
|
google_drive_client_id: Optional[str] | Omit = omit,
|
|
@@ -184,6 +187,7 @@ class AsyncSettingsResource(AsyncAPIResource):
|
|
|
184
187
|
"/v3/settings",
|
|
185
188
|
body=await async_maybe_transform(
|
|
186
189
|
{
|
|
190
|
+
"chunk_size": chunk_size,
|
|
187
191
|
"exclude_items": exclude_items,
|
|
188
192
|
"filter_prompt": filter_prompt,
|
|
189
193
|
"google_drive_client_id": google_drive_client_id,
|
{supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/document_upload_file_params.py
RENAMED
|
@@ -28,6 +28,13 @@ class DocumentUploadFileParams(TypedDict, total=False):
|
|
|
28
28
|
video, notion_doc, webpage, onedrive
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
|
+
metadata: str
|
|
32
|
+
"""Optional metadata for the document as a JSON string.
|
|
33
|
+
|
|
34
|
+
This is used to store additional information about the document. Keys must be
|
|
35
|
+
strings and values can be strings, numbers, or booleans.
|
|
36
|
+
"""
|
|
37
|
+
|
|
31
38
|
mime_type: Annotated[str, PropertyInfo(alias="mimeType")]
|
|
32
39
|
"""Required when fileType is 'image' or 'video'.
|
|
33
40
|
|
|
@@ -28,6 +28,13 @@ class MemoryUploadFileParams(TypedDict, total=False):
|
|
|
28
28
|
video, notion_doc, webpage, onedrive
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
|
+
metadata: str
|
|
32
|
+
"""Optional metadata for the document as a JSON string.
|
|
33
|
+
|
|
34
|
+
This is used to store additional information about the document. Keys must be
|
|
35
|
+
strings and values can be strings, numbers, or booleans.
|
|
36
|
+
"""
|
|
37
|
+
|
|
31
38
|
mime_type: Annotated[str, PropertyInfo(alias="mimeType")]
|
|
32
39
|
"""Required when fileType is 'image' or 'video'.
|
|
33
40
|
|
|
@@ -10,6 +10,8 @@ __all__ = ["SettingGetResponse"]
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class SettingGetResponse(BaseModel):
|
|
13
|
+
chunk_size: Optional[int] = FieldInfo(alias="chunkSize", default=None)
|
|
14
|
+
|
|
13
15
|
exclude_items: Union[str, float, bool, Dict[str, object], List[object], None] = FieldInfo(
|
|
14
16
|
alias="excludeItems", default=None
|
|
15
17
|
)
|
|
@@ -11,6 +11,8 @@ __all__ = ["SettingUpdateParams"]
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class SettingUpdateParams(TypedDict, total=False):
|
|
14
|
+
chunk_size: Annotated[Optional[int], PropertyInfo(alias="chunkSize")]
|
|
15
|
+
|
|
14
16
|
exclude_items: Annotated[
|
|
15
17
|
Union[str, float, bool, Dict[str, object], Iterable[object], None], PropertyInfo(alias="excludeItems")
|
|
16
18
|
]
|
|
@@ -10,6 +10,8 @@ __all__ = ["SettingUpdateResponse", "Updated"]
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Updated(BaseModel):
|
|
13
|
+
chunk_size: Optional[int] = FieldInfo(alias="chunkSize", default=None)
|
|
14
|
+
|
|
13
15
|
exclude_items: Union[str, float, bool, Dict[str, object], List[object], None] = FieldInfo(
|
|
14
16
|
alias="excludeItems", default=None
|
|
15
17
|
)
|
|
@@ -300,6 +300,7 @@ class TestDocuments:
|
|
|
300
300
|
file=b"raw file contents",
|
|
301
301
|
container_tags='["user_123", "project_123"]',
|
|
302
302
|
file_type="image",
|
|
303
|
+
metadata='{"category": "technology", "isPublic": true, "readingTime": 5}',
|
|
303
304
|
mime_type="image/png",
|
|
304
305
|
)
|
|
305
306
|
assert_matches_type(DocumentUploadFileResponse, document, path=["response"])
|
|
@@ -613,6 +614,7 @@ class TestAsyncDocuments:
|
|
|
613
614
|
file=b"raw file contents",
|
|
614
615
|
container_tags='["user_123", "project_123"]',
|
|
615
616
|
file_type="image",
|
|
617
|
+
metadata='{"category": "technology", "isPublic": true, "readingTime": 5}',
|
|
616
618
|
mime_type="image/png",
|
|
617
619
|
)
|
|
618
620
|
assert_matches_type(DocumentUploadFileResponse, document, path=["response"])
|
|
@@ -300,6 +300,7 @@ class TestMemories:
|
|
|
300
300
|
file=b"raw file contents",
|
|
301
301
|
container_tags='["user_123", "project_123"]',
|
|
302
302
|
file_type="image",
|
|
303
|
+
metadata='{"category": "technology", "isPublic": true, "readingTime": 5}',
|
|
303
304
|
mime_type="image/png",
|
|
304
305
|
)
|
|
305
306
|
assert_matches_type(MemoryUploadFileResponse, memory, path=["response"])
|
|
@@ -613,6 +614,7 @@ class TestAsyncMemories:
|
|
|
613
614
|
file=b"raw file contents",
|
|
614
615
|
container_tags='["user_123", "project_123"]',
|
|
615
616
|
file_type="image",
|
|
617
|
+
metadata='{"category": "technology", "isPublic": true, "readingTime": 5}',
|
|
616
618
|
mime_type="image/png",
|
|
617
619
|
)
|
|
618
620
|
assert_matches_type(MemoryUploadFileResponse, memory, path=["response"])
|
|
@@ -27,6 +27,7 @@ class TestSettings:
|
|
|
27
27
|
@parametrize
|
|
28
28
|
def test_method_update_with_all_params(self, client: Supermemory) -> None:
|
|
29
29
|
setting = client.settings.update(
|
|
30
|
+
chunk_size=-2147483648,
|
|
30
31
|
exclude_items="string",
|
|
31
32
|
filter_prompt="filterPrompt",
|
|
32
33
|
google_drive_client_id="googleDriveClientId",
|
|
@@ -109,6 +110,7 @@ class TestAsyncSettings:
|
|
|
109
110
|
@parametrize
|
|
110
111
|
async def test_method_update_with_all_params(self, async_client: AsyncSupermemory) -> None:
|
|
111
112
|
setting = await async_client.settings.update(
|
|
113
|
+
chunk_size=-2147483648,
|
|
112
114
|
exclude_items="string",
|
|
113
115
|
filter_prompt="filterPrompt",
|
|
114
116
|
google_drive_client_id="googleDriveClientId",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_delete_by_id_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_get_by_id_response.py
RENAMED
|
File without changes
|
{supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_get_by_tags_params.py
RENAMED
|
File without changes
|
{supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_get_by_tags_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_list_documents_params.py
RENAMED
|
File without changes
|
{supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/connection_list_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
|
{supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/document_upload_file_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
|
{supermemory-3.1.0 → supermemory-3.3.0}/src/supermemory/types/memory_upload_file_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
|