supermemory 3.3.0__tar.gz → 3.4.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.4.0/.release-please-manifest.json +3 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/CHANGELOG.md +12 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/PKG-INFO +1 -1
- {supermemory-3.3.0 → supermemory-3.4.0}/api.md +6 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/pyproject.toml +1 -1
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_version.py +1 -1
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/resources/documents.py +6 -52
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/resources/memories.py +6 -52
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/__init__.py +1 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_get_by_id_response.py +2 -3
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_get_by_tags_response.py +2 -3
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_list_response.py +2 -3
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/document_add_params.py +0 -14
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/document_get_response.py +5 -6
- supermemory-3.4.0/src/supermemory/types/document_list_params.py +46 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/document_list_response.py +4 -5
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/document_update_params.py +0 -14
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/document_upload_file_params.py +4 -3
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/memory_add_params.py +0 -14
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/memory_get_response.py +5 -6
- supermemory-3.4.0/src/supermemory/types/memory_list_params.py +46 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/memory_list_response.py +4 -5
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/memory_update_params.py +0 -14
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/memory_upload_file_params.py +4 -3
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/search_documents_params.py +5 -70
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/search_documents_response.py +2 -3
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/search_execute_params.py +5 -70
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/search_execute_response.py +2 -3
- supermemory-3.4.0/src/supermemory/types/search_memories_params.py +69 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/search_memories_response.py +5 -6
- supermemory-3.4.0/src/supermemory/types/shared/__init__.py +4 -0
- supermemory-3.4.0/src/supermemory/types/shared/and_.py +13 -0
- supermemory-3.4.0/src/supermemory/types/shared/or_.py +13 -0
- supermemory-3.4.0/src/supermemory/types/shared_params/__init__.py +4 -0
- supermemory-3.4.0/src/supermemory/types/shared_params/and_.py +14 -0
- supermemory-3.4.0/src/supermemory/types/shared_params/or_.py +14 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/api_resources/test_documents.py +12 -22
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/api_resources/test_memories.py +12 -22
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/api_resources/test_search.py +30 -36
- supermemory-3.3.0/.release-please-manifest.json +0 -3
- supermemory-3.3.0/src/supermemory/types/document_list_params.py +0 -111
- supermemory-3.3.0/src/supermemory/types/memory_list_params.py +0 -111
- supermemory-3.3.0/src/supermemory/types/search_memories_params.py +0 -135
- {supermemory-3.3.0 → supermemory-3.4.0}/.gitignore +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/CONTRIBUTING.md +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/LICENSE +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/README.md +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/SECURITY.md +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/bin/check-release-environment +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/bin/publish-pypi +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/examples/.keep +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/noxfile.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/release-please-config.json +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/requirements-dev.lock +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/requirements.lock +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/__init__.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_base_client.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_client.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_compat.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_constants.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_exceptions.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_files.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_models.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_qs.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_resource.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_streaming.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_types.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_utils/__init__.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_utils/_compat.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_utils/_datetime_parse.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_utils/_logs.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_utils/_proxy.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_utils/_reflection.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_utils/_streams.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_utils/_sync.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_utils/_transform.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_utils/_typing.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/_utils/_utils.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/lib/.keep +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/py.typed +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/resources/__init__.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/resources/connections.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/resources/search.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/resources/settings.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_create_params.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_create_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_delete_by_id_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_delete_by_provider_params.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_delete_by_provider_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_get_by_tags_params.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_import_params.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_import_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_list_documents_params.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_list_documents_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_list_params.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/document_add_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/document_update_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/document_upload_file_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/memory_add_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/memory_update_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/memory_upload_file_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/setting_get_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/setting_update_params.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/setting_update_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory_new/lib/.keep +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/__init__.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/api_resources/__init__.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/api_resources/test_connections.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/api_resources/test_settings.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/conftest.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/sample_file.txt +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_client.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_deepcopy.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_extract_files.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_files.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_models.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_qs.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_required_args.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_response.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_streaming.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_transform.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_utils/test_proxy.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/test_utils/test_typing.py +0 -0
- {supermemory-3.3.0 → supermemory-3.4.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.4.0 (2025-10-07)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.3.0...v3.4.0](https://github.com/supermemoryai/python-sdk/compare/v3.3.0...v3.4.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([ad11246](https://github.com/supermemoryai/python-sdk/commit/ad112460d7aa5642895c4dec8b9c4e1993c01635))
|
|
10
|
+
* **api:** api update ([0a01f62](https://github.com/supermemoryai/python-sdk/commit/0a01f623aa5daf19192259bee921e65acd583244))
|
|
11
|
+
* **api:** api update ([91585de](https://github.com/supermemoryai/python-sdk/commit/91585de6396d6529c2d15b2b2c4db481e72f32d0))
|
|
12
|
+
* **api:** api update ([2a12ab8](https://github.com/supermemoryai/python-sdk/commit/2a12ab834b2748eb30a6bad5ea6ce6e53644334e))
|
|
13
|
+
* **api:** manual updates ([71bae29](https://github.com/supermemoryai/python-sdk/commit/71bae2938f3c523b3bb5f814e96937f067f454f5))
|
|
14
|
+
|
|
3
15
|
## 3.3.0 (2025-09-21)
|
|
4
16
|
|
|
5
17
|
Full Changelog: [v3.2.0...v3.3.0](https://github.com/supermemoryai/python-sdk/compare/v3.2.0...v3.3.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: supermemory
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.4.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
|
|
@@ -56,9 +56,7 @@ class DocumentsResource(SyncAPIResource):
|
|
|
56
56
|
container_tags: SequenceNotStr[str] | Omit = omit,
|
|
57
57
|
content: str | Omit = omit,
|
|
58
58
|
custom_id: str | Omit = omit,
|
|
59
|
-
file_type: str | Omit = omit,
|
|
60
59
|
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
|
|
61
|
-
mime_type: str | Omit = omit,
|
|
62
60
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
63
61
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
64
62
|
extra_headers: Headers | None = None,
|
|
@@ -90,20 +88,12 @@ class DocumentsResource(SyncAPIResource):
|
|
|
90
88
|
custom_id: Optional custom ID of the document. This could be an ID from your database that
|
|
91
89
|
will uniquely identify this document.
|
|
92
90
|
|
|
93
|
-
file_type:
|
|
94
|
-
Optional file type override to force specific processing behavior. Valid values:
|
|
95
|
-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
|
|
96
|
-
notion_doc, webpage, onedrive
|
|
97
|
-
|
|
98
91
|
metadata: Optional metadata for the document. This is used to store additional information
|
|
99
92
|
about the document. You can use this to store any additional information you
|
|
100
93
|
need about the document. Metadata can be filtered through. Keys must be strings
|
|
101
94
|
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
|
|
102
95
|
nest objects.
|
|
103
96
|
|
|
104
|
-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
|
|
105
|
-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
|
|
106
|
-
|
|
107
97
|
extra_headers: Send extra headers
|
|
108
98
|
|
|
109
99
|
extra_query: Add additional query parameters to the request
|
|
@@ -122,9 +112,7 @@ class DocumentsResource(SyncAPIResource):
|
|
|
122
112
|
"container_tags": container_tags,
|
|
123
113
|
"content": content,
|
|
124
114
|
"custom_id": custom_id,
|
|
125
|
-
"file_type": file_type,
|
|
126
115
|
"metadata": metadata,
|
|
127
|
-
"mime_type": mime_type,
|
|
128
116
|
},
|
|
129
117
|
document_update_params.DocumentUpdateParams,
|
|
130
118
|
),
|
|
@@ -241,9 +229,7 @@ class DocumentsResource(SyncAPIResource):
|
|
|
241
229
|
container_tag: str | Omit = omit,
|
|
242
230
|
container_tags: SequenceNotStr[str] | Omit = omit,
|
|
243
231
|
custom_id: str | Omit = omit,
|
|
244
|
-
file_type: str | Omit = omit,
|
|
245
232
|
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
|
|
246
|
-
mime_type: str | Omit = omit,
|
|
247
233
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
248
234
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
249
235
|
extra_headers: Headers | None = None,
|
|
@@ -275,20 +261,12 @@ class DocumentsResource(SyncAPIResource):
|
|
|
275
261
|
custom_id: Optional custom ID of the document. This could be an ID from your database that
|
|
276
262
|
will uniquely identify this document.
|
|
277
263
|
|
|
278
|
-
file_type:
|
|
279
|
-
Optional file type override to force specific processing behavior. Valid values:
|
|
280
|
-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
|
|
281
|
-
notion_doc, webpage, onedrive
|
|
282
|
-
|
|
283
264
|
metadata: Optional metadata for the document. This is used to store additional information
|
|
284
265
|
about the document. You can use this to store any additional information you
|
|
285
266
|
need about the document. Metadata can be filtered through. Keys must be strings
|
|
286
267
|
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
|
|
287
268
|
nest objects.
|
|
288
269
|
|
|
289
|
-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
|
|
290
|
-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
|
|
291
|
-
|
|
292
270
|
extra_headers: Send extra headers
|
|
293
271
|
|
|
294
272
|
extra_query: Add additional query parameters to the request
|
|
@@ -305,9 +283,7 @@ class DocumentsResource(SyncAPIResource):
|
|
|
305
283
|
"container_tag": container_tag,
|
|
306
284
|
"container_tags": container_tags,
|
|
307
285
|
"custom_id": custom_id,
|
|
308
|
-
"file_type": file_type,
|
|
309
286
|
"metadata": metadata,
|
|
310
|
-
"mime_type": mime_type,
|
|
311
287
|
},
|
|
312
288
|
document_add_params.DocumentAddParams,
|
|
313
289
|
),
|
|
@@ -371,8 +347,9 @@ class DocumentsResource(SyncAPIResource):
|
|
|
371
347
|
Args:
|
|
372
348
|
file: File to upload and process
|
|
373
349
|
|
|
374
|
-
container_tags: Optional
|
|
375
|
-
|
|
350
|
+
container_tags: Optional container tags. Can be either a JSON string of an array (e.g.,
|
|
351
|
+
'["user_123", "project_123"]') or a single string (e.g., 'user_123'). Single
|
|
352
|
+
strings will be automatically converted to an array.
|
|
376
353
|
|
|
377
354
|
file_type:
|
|
378
355
|
Optional file type override to force specific processing behavior. Valid values:
|
|
@@ -447,9 +424,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
447
424
|
container_tags: SequenceNotStr[str] | Omit = omit,
|
|
448
425
|
content: str | Omit = omit,
|
|
449
426
|
custom_id: str | Omit = omit,
|
|
450
|
-
file_type: str | Omit = omit,
|
|
451
427
|
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
|
|
452
|
-
mime_type: str | Omit = omit,
|
|
453
428
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
454
429
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
455
430
|
extra_headers: Headers | None = None,
|
|
@@ -481,20 +456,12 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
481
456
|
custom_id: Optional custom ID of the document. This could be an ID from your database that
|
|
482
457
|
will uniquely identify this document.
|
|
483
458
|
|
|
484
|
-
file_type:
|
|
485
|
-
Optional file type override to force specific processing behavior. Valid values:
|
|
486
|
-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
|
|
487
|
-
notion_doc, webpage, onedrive
|
|
488
|
-
|
|
489
459
|
metadata: Optional metadata for the document. This is used to store additional information
|
|
490
460
|
about the document. You can use this to store any additional information you
|
|
491
461
|
need about the document. Metadata can be filtered through. Keys must be strings
|
|
492
462
|
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
|
|
493
463
|
nest objects.
|
|
494
464
|
|
|
495
|
-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
|
|
496
|
-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
|
|
497
|
-
|
|
498
465
|
extra_headers: Send extra headers
|
|
499
466
|
|
|
500
467
|
extra_query: Add additional query parameters to the request
|
|
@@ -513,9 +480,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
513
480
|
"container_tags": container_tags,
|
|
514
481
|
"content": content,
|
|
515
482
|
"custom_id": custom_id,
|
|
516
|
-
"file_type": file_type,
|
|
517
483
|
"metadata": metadata,
|
|
518
|
-
"mime_type": mime_type,
|
|
519
484
|
},
|
|
520
485
|
document_update_params.DocumentUpdateParams,
|
|
521
486
|
),
|
|
@@ -632,9 +597,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
632
597
|
container_tag: str | Omit = omit,
|
|
633
598
|
container_tags: SequenceNotStr[str] | Omit = omit,
|
|
634
599
|
custom_id: str | Omit = omit,
|
|
635
|
-
file_type: str | Omit = omit,
|
|
636
600
|
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
|
|
637
|
-
mime_type: str | Omit = omit,
|
|
638
601
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
639
602
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
640
603
|
extra_headers: Headers | None = None,
|
|
@@ -666,20 +629,12 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
666
629
|
custom_id: Optional custom ID of the document. This could be an ID from your database that
|
|
667
630
|
will uniquely identify this document.
|
|
668
631
|
|
|
669
|
-
file_type:
|
|
670
|
-
Optional file type override to force specific processing behavior. Valid values:
|
|
671
|
-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
|
|
672
|
-
notion_doc, webpage, onedrive
|
|
673
|
-
|
|
674
632
|
metadata: Optional metadata for the document. This is used to store additional information
|
|
675
633
|
about the document. You can use this to store any additional information you
|
|
676
634
|
need about the document. Metadata can be filtered through. Keys must be strings
|
|
677
635
|
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
|
|
678
636
|
nest objects.
|
|
679
637
|
|
|
680
|
-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
|
|
681
|
-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
|
|
682
|
-
|
|
683
638
|
extra_headers: Send extra headers
|
|
684
639
|
|
|
685
640
|
extra_query: Add additional query parameters to the request
|
|
@@ -696,9 +651,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
696
651
|
"container_tag": container_tag,
|
|
697
652
|
"container_tags": container_tags,
|
|
698
653
|
"custom_id": custom_id,
|
|
699
|
-
"file_type": file_type,
|
|
700
654
|
"metadata": metadata,
|
|
701
|
-
"mime_type": mime_type,
|
|
702
655
|
},
|
|
703
656
|
document_add_params.DocumentAddParams,
|
|
704
657
|
),
|
|
@@ -762,8 +715,9 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
762
715
|
Args:
|
|
763
716
|
file: File to upload and process
|
|
764
717
|
|
|
765
|
-
container_tags: Optional
|
|
766
|
-
|
|
718
|
+
container_tags: Optional container tags. Can be either a JSON string of an array (e.g.,
|
|
719
|
+
'["user_123", "project_123"]') or a single string (e.g., 'user_123'). Single
|
|
720
|
+
strings will be automatically converted to an array.
|
|
767
721
|
|
|
768
722
|
file_type:
|
|
769
723
|
Optional file type override to force specific processing behavior. Valid values:
|
|
@@ -56,9 +56,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
56
56
|
container_tags: SequenceNotStr[str] | Omit = omit,
|
|
57
57
|
content: str | Omit = omit,
|
|
58
58
|
custom_id: str | Omit = omit,
|
|
59
|
-
file_type: str | Omit = omit,
|
|
60
59
|
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
|
|
61
|
-
mime_type: str | Omit = omit,
|
|
62
60
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
63
61
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
64
62
|
extra_headers: Headers | None = None,
|
|
@@ -90,20 +88,12 @@ class MemoriesResource(SyncAPIResource):
|
|
|
90
88
|
custom_id: Optional custom ID of the document. This could be an ID from your database that
|
|
91
89
|
will uniquely identify this document.
|
|
92
90
|
|
|
93
|
-
file_type:
|
|
94
|
-
Optional file type override to force specific processing behavior. Valid values:
|
|
95
|
-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
|
|
96
|
-
notion_doc, webpage, onedrive
|
|
97
|
-
|
|
98
91
|
metadata: Optional metadata for the document. This is used to store additional information
|
|
99
92
|
about the document. You can use this to store any additional information you
|
|
100
93
|
need about the document. Metadata can be filtered through. Keys must be strings
|
|
101
94
|
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
|
|
102
95
|
nest objects.
|
|
103
96
|
|
|
104
|
-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
|
|
105
|
-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
|
|
106
|
-
|
|
107
97
|
extra_headers: Send extra headers
|
|
108
98
|
|
|
109
99
|
extra_query: Add additional query parameters to the request
|
|
@@ -122,9 +112,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
122
112
|
"container_tags": container_tags,
|
|
123
113
|
"content": content,
|
|
124
114
|
"custom_id": custom_id,
|
|
125
|
-
"file_type": file_type,
|
|
126
115
|
"metadata": metadata,
|
|
127
|
-
"mime_type": mime_type,
|
|
128
116
|
},
|
|
129
117
|
memory_update_params.MemoryUpdateParams,
|
|
130
118
|
),
|
|
@@ -241,9 +229,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
241
229
|
container_tag: str | Omit = omit,
|
|
242
230
|
container_tags: SequenceNotStr[str] | Omit = omit,
|
|
243
231
|
custom_id: str | Omit = omit,
|
|
244
|
-
file_type: str | Omit = omit,
|
|
245
232
|
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
|
|
246
|
-
mime_type: str | Omit = omit,
|
|
247
233
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
248
234
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
249
235
|
extra_headers: Headers | None = None,
|
|
@@ -275,20 +261,12 @@ class MemoriesResource(SyncAPIResource):
|
|
|
275
261
|
custom_id: Optional custom ID of the document. This could be an ID from your database that
|
|
276
262
|
will uniquely identify this document.
|
|
277
263
|
|
|
278
|
-
file_type:
|
|
279
|
-
Optional file type override to force specific processing behavior. Valid values:
|
|
280
|
-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
|
|
281
|
-
notion_doc, webpage, onedrive
|
|
282
|
-
|
|
283
264
|
metadata: Optional metadata for the document. This is used to store additional information
|
|
284
265
|
about the document. You can use this to store any additional information you
|
|
285
266
|
need about the document. Metadata can be filtered through. Keys must be strings
|
|
286
267
|
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
|
|
287
268
|
nest objects.
|
|
288
269
|
|
|
289
|
-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
|
|
290
|
-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
|
|
291
|
-
|
|
292
270
|
extra_headers: Send extra headers
|
|
293
271
|
|
|
294
272
|
extra_query: Add additional query parameters to the request
|
|
@@ -305,9 +283,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
305
283
|
"container_tag": container_tag,
|
|
306
284
|
"container_tags": container_tags,
|
|
307
285
|
"custom_id": custom_id,
|
|
308
|
-
"file_type": file_type,
|
|
309
286
|
"metadata": metadata,
|
|
310
|
-
"mime_type": mime_type,
|
|
311
287
|
},
|
|
312
288
|
memory_add_params.MemoryAddParams,
|
|
313
289
|
),
|
|
@@ -371,8 +347,9 @@ class MemoriesResource(SyncAPIResource):
|
|
|
371
347
|
Args:
|
|
372
348
|
file: File to upload and process
|
|
373
349
|
|
|
374
|
-
container_tags: Optional
|
|
375
|
-
|
|
350
|
+
container_tags: Optional container tags. Can be either a JSON string of an array (e.g.,
|
|
351
|
+
'["user_123", "project_123"]') or a single string (e.g., 'user_123'). Single
|
|
352
|
+
strings will be automatically converted to an array.
|
|
376
353
|
|
|
377
354
|
file_type:
|
|
378
355
|
Optional file type override to force specific processing behavior. Valid values:
|
|
@@ -447,9 +424,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
447
424
|
container_tags: SequenceNotStr[str] | Omit = omit,
|
|
448
425
|
content: str | Omit = omit,
|
|
449
426
|
custom_id: str | Omit = omit,
|
|
450
|
-
file_type: str | Omit = omit,
|
|
451
427
|
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
|
|
452
|
-
mime_type: str | Omit = omit,
|
|
453
428
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
454
429
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
455
430
|
extra_headers: Headers | None = None,
|
|
@@ -481,20 +456,12 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
481
456
|
custom_id: Optional custom ID of the document. This could be an ID from your database that
|
|
482
457
|
will uniquely identify this document.
|
|
483
458
|
|
|
484
|
-
file_type:
|
|
485
|
-
Optional file type override to force specific processing behavior. Valid values:
|
|
486
|
-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
|
|
487
|
-
notion_doc, webpage, onedrive
|
|
488
|
-
|
|
489
459
|
metadata: Optional metadata for the document. This is used to store additional information
|
|
490
460
|
about the document. You can use this to store any additional information you
|
|
491
461
|
need about the document. Metadata can be filtered through. Keys must be strings
|
|
492
462
|
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
|
|
493
463
|
nest objects.
|
|
494
464
|
|
|
495
|
-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
|
|
496
|
-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
|
|
497
|
-
|
|
498
465
|
extra_headers: Send extra headers
|
|
499
466
|
|
|
500
467
|
extra_query: Add additional query parameters to the request
|
|
@@ -513,9 +480,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
513
480
|
"container_tags": container_tags,
|
|
514
481
|
"content": content,
|
|
515
482
|
"custom_id": custom_id,
|
|
516
|
-
"file_type": file_type,
|
|
517
483
|
"metadata": metadata,
|
|
518
|
-
"mime_type": mime_type,
|
|
519
484
|
},
|
|
520
485
|
memory_update_params.MemoryUpdateParams,
|
|
521
486
|
),
|
|
@@ -632,9 +597,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
632
597
|
container_tag: str | Omit = omit,
|
|
633
598
|
container_tags: SequenceNotStr[str] | Omit = omit,
|
|
634
599
|
custom_id: str | Omit = omit,
|
|
635
|
-
file_type: str | Omit = omit,
|
|
636
600
|
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
|
|
637
|
-
mime_type: str | Omit = omit,
|
|
638
601
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
639
602
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
640
603
|
extra_headers: Headers | None = None,
|
|
@@ -666,20 +629,12 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
666
629
|
custom_id: Optional custom ID of the document. This could be an ID from your database that
|
|
667
630
|
will uniquely identify this document.
|
|
668
631
|
|
|
669
|
-
file_type:
|
|
670
|
-
Optional file type override to force specific processing behavior. Valid values:
|
|
671
|
-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
|
|
672
|
-
notion_doc, webpage, onedrive
|
|
673
|
-
|
|
674
632
|
metadata: Optional metadata for the document. This is used to store additional information
|
|
675
633
|
about the document. You can use this to store any additional information you
|
|
676
634
|
need about the document. Metadata can be filtered through. Keys must be strings
|
|
677
635
|
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
|
|
678
636
|
nest objects.
|
|
679
637
|
|
|
680
|
-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
|
|
681
|
-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
|
|
682
|
-
|
|
683
638
|
extra_headers: Send extra headers
|
|
684
639
|
|
|
685
640
|
extra_query: Add additional query parameters to the request
|
|
@@ -696,9 +651,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
696
651
|
"container_tag": container_tag,
|
|
697
652
|
"container_tags": container_tags,
|
|
698
653
|
"custom_id": custom_id,
|
|
699
|
-
"file_type": file_type,
|
|
700
654
|
"metadata": metadata,
|
|
701
|
-
"mime_type": mime_type,
|
|
702
655
|
},
|
|
703
656
|
memory_add_params.MemoryAddParams,
|
|
704
657
|
),
|
|
@@ -762,8 +715,9 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
762
715
|
Args:
|
|
763
716
|
file: File to upload and process
|
|
764
717
|
|
|
765
|
-
container_tags: Optional
|
|
766
|
-
|
|
718
|
+
container_tags: Optional container tags. Can be either a JSON string of an array (e.g.,
|
|
719
|
+
'["user_123", "project_123"]') or a single string (e.g., 'user_123'). Single
|
|
720
|
+
strings will be automatically converted to an array.
|
|
767
721
|
|
|
768
722
|
file_type:
|
|
769
723
|
Optional file type override to force specific processing behavior. Valid values:
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from .shared import Or as Or, And as And
|
|
5
6
|
from .memory_add_params import MemoryAddParams as MemoryAddParams
|
|
6
7
|
from .memory_list_params import MemoryListParams as MemoryListParams
|
|
7
8
|
from .document_add_params import DocumentAddParams as DocumentAddParams
|
{supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_get_by_id_response.py
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from typing import Dict, Optional
|
|
4
|
-
from datetime import datetime
|
|
5
4
|
|
|
6
5
|
from pydantic import Field as FieldInfo
|
|
7
6
|
|
|
@@ -13,7 +12,7 @@ __all__ = ["ConnectionGetByIDResponse"]
|
|
|
13
12
|
class ConnectionGetByIDResponse(BaseModel):
|
|
14
13
|
id: str
|
|
15
14
|
|
|
16
|
-
created_at:
|
|
15
|
+
created_at: str = FieldInfo(alias="createdAt")
|
|
17
16
|
|
|
18
17
|
provider: str
|
|
19
18
|
|
|
@@ -21,6 +20,6 @@ class ConnectionGetByIDResponse(BaseModel):
|
|
|
21
20
|
|
|
22
21
|
email: Optional[str] = None
|
|
23
22
|
|
|
24
|
-
expires_at: Optional[
|
|
23
|
+
expires_at: Optional[str] = FieldInfo(alias="expiresAt", default=None)
|
|
25
24
|
|
|
26
25
|
metadata: Optional[Dict[str, object]] = None
|
{supermemory-3.3.0 → supermemory-3.4.0}/src/supermemory/types/connection_get_by_tags_response.py
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from typing import Dict, Optional
|
|
4
|
-
from datetime import datetime
|
|
5
4
|
|
|
6
5
|
from pydantic import Field as FieldInfo
|
|
7
6
|
|
|
@@ -13,7 +12,7 @@ __all__ = ["ConnectionGetByTagsResponse"]
|
|
|
13
12
|
class ConnectionGetByTagsResponse(BaseModel):
|
|
14
13
|
id: str
|
|
15
14
|
|
|
16
|
-
created_at:
|
|
15
|
+
created_at: str = FieldInfo(alias="createdAt")
|
|
17
16
|
|
|
18
17
|
provider: str
|
|
19
18
|
|
|
@@ -21,6 +20,6 @@ class ConnectionGetByTagsResponse(BaseModel):
|
|
|
21
20
|
|
|
22
21
|
email: Optional[str] = None
|
|
23
22
|
|
|
24
|
-
expires_at: Optional[
|
|
23
|
+
expires_at: Optional[str] = FieldInfo(alias="expiresAt", default=None)
|
|
25
24
|
|
|
26
25
|
metadata: Optional[Dict[str, object]] = None
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from typing import Dict, List, Optional
|
|
4
|
-
from datetime import datetime
|
|
5
4
|
from typing_extensions import TypeAlias
|
|
6
5
|
|
|
7
6
|
from pydantic import Field as FieldInfo
|
|
@@ -14,7 +13,7 @@ __all__ = ["ConnectionListResponse", "ConnectionListResponseItem"]
|
|
|
14
13
|
class ConnectionListResponseItem(BaseModel):
|
|
15
14
|
id: str
|
|
16
15
|
|
|
17
|
-
created_at:
|
|
16
|
+
created_at: str = FieldInfo(alias="createdAt")
|
|
18
17
|
|
|
19
18
|
provider: str
|
|
20
19
|
|
|
@@ -22,7 +21,7 @@ class ConnectionListResponseItem(BaseModel):
|
|
|
22
21
|
|
|
23
22
|
email: Optional[str] = None
|
|
24
23
|
|
|
25
|
-
expires_at: Optional[
|
|
24
|
+
expires_at: Optional[str] = FieldInfo(alias="expiresAt", default=None)
|
|
26
25
|
|
|
27
26
|
metadata: Optional[Dict[str, object]] = None
|
|
28
27
|
|
|
@@ -45,13 +45,6 @@ class DocumentAddParams(TypedDict, total=False):
|
|
|
45
45
|
document.
|
|
46
46
|
"""
|
|
47
47
|
|
|
48
|
-
file_type: Annotated[str, PropertyInfo(alias="fileType")]
|
|
49
|
-
"""Optional file type override to force specific processing behavior.
|
|
50
|
-
|
|
51
|
-
Valid values: text, pdf, tweet, google_doc, google_slide, google_sheet, image,
|
|
52
|
-
video, notion_doc, webpage, onedrive
|
|
53
|
-
"""
|
|
54
|
-
|
|
55
48
|
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]]
|
|
56
49
|
"""Optional metadata for the document.
|
|
57
50
|
|
|
@@ -60,10 +53,3 @@ class DocumentAddParams(TypedDict, total=False):
|
|
|
60
53
|
can be filtered through. Keys must be strings and are case sensitive. Values can
|
|
61
54
|
be strings, numbers, or booleans. You cannot nest objects.
|
|
62
55
|
"""
|
|
63
|
-
|
|
64
|
-
mime_type: Annotated[str, PropertyInfo(alias="mimeType")]
|
|
65
|
-
"""Required when fileType is 'image' or 'video'.
|
|
66
|
-
|
|
67
|
-
Specifies the exact MIME type to use (e.g., 'image/png', 'image/jpeg',
|
|
68
|
-
'video/mp4', 'video/webm')
|
|
69
|
-
"""
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from typing import Dict, List, Union, Optional
|
|
4
|
-
from datetime import datetime
|
|
5
4
|
from typing_extensions import Literal
|
|
6
5
|
|
|
7
6
|
from pydantic import Field as FieldInfo
|
|
@@ -33,7 +32,7 @@ class DocumentGetResponse(BaseModel):
|
|
|
33
32
|
We automatically detect the content type from the url's response format.
|
|
34
33
|
"""
|
|
35
34
|
|
|
36
|
-
created_at:
|
|
35
|
+
created_at: str = FieldInfo(alias="createdAt")
|
|
37
36
|
"""Creation timestamp"""
|
|
38
37
|
|
|
39
38
|
custom_id: Optional[str] = FieldInfo(alias="customId", default=None)
|
|
@@ -54,6 +53,9 @@ class DocumentGetResponse(BaseModel):
|
|
|
54
53
|
|
|
55
54
|
og_image: Optional[str] = FieldInfo(alias="ogImage", default=None)
|
|
56
55
|
|
|
56
|
+
raw: object
|
|
57
|
+
"""Raw content of the document"""
|
|
58
|
+
|
|
57
59
|
source: Optional[str] = None
|
|
58
60
|
"""Source of the document"""
|
|
59
61
|
|
|
@@ -87,7 +89,7 @@ class DocumentGetResponse(BaseModel):
|
|
|
87
89
|
]
|
|
88
90
|
"""Type of the document"""
|
|
89
91
|
|
|
90
|
-
updated_at:
|
|
92
|
+
updated_at: str = FieldInfo(alias="updatedAt")
|
|
91
93
|
"""Last update timestamp"""
|
|
92
94
|
|
|
93
95
|
container_tags: Optional[List[str]] = FieldInfo(alias="containerTags", default=None)
|
|
@@ -97,8 +99,5 @@ class DocumentGetResponse(BaseModel):
|
|
|
97
99
|
to use to group documents.
|
|
98
100
|
"""
|
|
99
101
|
|
|
100
|
-
raw: None = None
|
|
101
|
-
"""Raw content of the document"""
|
|
102
|
-
|
|
103
102
|
url: Optional[str] = None
|
|
104
103
|
"""URL of the document"""
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union
|
|
6
|
+
from typing_extensions import Literal, Annotated, TypeAlias, TypedDict
|
|
7
|
+
|
|
8
|
+
from .._types import SequenceNotStr
|
|
9
|
+
from .._utils import PropertyInfo
|
|
10
|
+
from .shared_params.or_ import Or
|
|
11
|
+
from .shared_params.and_ import And
|
|
12
|
+
|
|
13
|
+
__all__ = ["DocumentListParams", "Filters"]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class DocumentListParams(TypedDict, total=False):
|
|
17
|
+
container_tags: Annotated[SequenceNotStr[str], PropertyInfo(alias="containerTags")]
|
|
18
|
+
"""Optional tags this document should be containerized by.
|
|
19
|
+
|
|
20
|
+
This can be an ID for your user, a project ID, or any other identifier you wish
|
|
21
|
+
to use to group documents.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
filters: Filters
|
|
25
|
+
"""Optional filters to apply to the search. Can be a JSON string or Query object."""
|
|
26
|
+
|
|
27
|
+
include_content: Annotated[bool, PropertyInfo(alias="includeContent")]
|
|
28
|
+
"""Whether to include the content field in the response.
|
|
29
|
+
|
|
30
|
+
Warning: This can make responses significantly larger.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
limit: Union[str, float]
|
|
34
|
+
"""Number of items per page"""
|
|
35
|
+
|
|
36
|
+
order: Literal["asc", "desc"]
|
|
37
|
+
"""Sort order"""
|
|
38
|
+
|
|
39
|
+
page: Union[str, float]
|
|
40
|
+
"""Page number to fetch"""
|
|
41
|
+
|
|
42
|
+
sort: Literal["createdAt", "updatedAt"]
|
|
43
|
+
"""Field to sort by"""
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
Filters: TypeAlias = Union[Or, And]
|