supermemory 3.2.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.

Files changed (127) hide show
  1. supermemory-3.4.0/.release-please-manifest.json +3 -0
  2. {supermemory-3.2.0 → supermemory-3.4.0}/CHANGELOG.md +20 -0
  3. {supermemory-3.2.0 → supermemory-3.4.0}/PKG-INFO +1 -1
  4. {supermemory-3.2.0 → supermemory-3.4.0}/api.md +6 -0
  5. {supermemory-3.2.0 → supermemory-3.4.0}/pyproject.toml +1 -1
  6. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_version.py +1 -1
  7. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/resources/documents.py +18 -52
  8. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/resources/memories.py +18 -52
  9. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/__init__.py +1 -0
  10. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_get_by_id_response.py +2 -3
  11. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_get_by_tags_response.py +2 -3
  12. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_list_response.py +2 -3
  13. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/document_add_params.py +0 -14
  14. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/document_get_response.py +5 -6
  15. supermemory-3.4.0/src/supermemory/types/document_list_params.py +46 -0
  16. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/document_list_response.py +4 -5
  17. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/document_update_params.py +0 -14
  18. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/document_upload_file_params.py +11 -3
  19. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/memory_add_params.py +0 -14
  20. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/memory_get_response.py +5 -6
  21. supermemory-3.4.0/src/supermemory/types/memory_list_params.py +46 -0
  22. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/memory_list_response.py +4 -5
  23. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/memory_update_params.py +0 -14
  24. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/memory_upload_file_params.py +11 -3
  25. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/search_documents_params.py +5 -70
  26. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/search_documents_response.py +2 -3
  27. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/search_execute_params.py +5 -70
  28. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/search_execute_response.py +2 -3
  29. supermemory-3.4.0/src/supermemory/types/search_memories_params.py +69 -0
  30. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/search_memories_response.py +5 -6
  31. supermemory-3.4.0/src/supermemory/types/shared/__init__.py +4 -0
  32. supermemory-3.4.0/src/supermemory/types/shared/and_.py +13 -0
  33. supermemory-3.4.0/src/supermemory/types/shared/or_.py +13 -0
  34. supermemory-3.4.0/src/supermemory/types/shared_params/__init__.py +4 -0
  35. supermemory-3.4.0/src/supermemory/types/shared_params/and_.py +14 -0
  36. supermemory-3.4.0/src/supermemory/types/shared_params/or_.py +14 -0
  37. {supermemory-3.2.0 → supermemory-3.4.0}/tests/api_resources/test_documents.py +14 -22
  38. {supermemory-3.2.0 → supermemory-3.4.0}/tests/api_resources/test_memories.py +14 -22
  39. {supermemory-3.2.0 → supermemory-3.4.0}/tests/api_resources/test_search.py +30 -36
  40. supermemory-3.2.0/.release-please-manifest.json +0 -3
  41. supermemory-3.2.0/src/supermemory/types/document_list_params.py +0 -111
  42. supermemory-3.2.0/src/supermemory/types/memory_list_params.py +0 -111
  43. supermemory-3.2.0/src/supermemory/types/search_memories_params.py +0 -135
  44. {supermemory-3.2.0 → supermemory-3.4.0}/.gitignore +0 -0
  45. {supermemory-3.2.0 → supermemory-3.4.0}/CONTRIBUTING.md +0 -0
  46. {supermemory-3.2.0 → supermemory-3.4.0}/LICENSE +0 -0
  47. {supermemory-3.2.0 → supermemory-3.4.0}/README.md +0 -0
  48. {supermemory-3.2.0 → supermemory-3.4.0}/SECURITY.md +0 -0
  49. {supermemory-3.2.0 → supermemory-3.4.0}/bin/check-release-environment +0 -0
  50. {supermemory-3.2.0 → supermemory-3.4.0}/bin/publish-pypi +0 -0
  51. {supermemory-3.2.0 → supermemory-3.4.0}/examples/.keep +0 -0
  52. {supermemory-3.2.0 → supermemory-3.4.0}/noxfile.py +0 -0
  53. {supermemory-3.2.0 → supermemory-3.4.0}/release-please-config.json +0 -0
  54. {supermemory-3.2.0 → supermemory-3.4.0}/requirements-dev.lock +0 -0
  55. {supermemory-3.2.0 → supermemory-3.4.0}/requirements.lock +0 -0
  56. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/__init__.py +0 -0
  57. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_base_client.py +0 -0
  58. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_client.py +0 -0
  59. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_compat.py +0 -0
  60. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_constants.py +0 -0
  61. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_exceptions.py +0 -0
  62. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_files.py +0 -0
  63. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_models.py +0 -0
  64. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_qs.py +0 -0
  65. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_resource.py +0 -0
  66. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_response.py +0 -0
  67. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_streaming.py +0 -0
  68. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_types.py +0 -0
  69. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_utils/__init__.py +0 -0
  70. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_utils/_compat.py +0 -0
  71. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_utils/_datetime_parse.py +0 -0
  72. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_utils/_logs.py +0 -0
  73. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_utils/_proxy.py +0 -0
  74. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_utils/_reflection.py +0 -0
  75. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
  76. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_utils/_streams.py +0 -0
  77. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_utils/_sync.py +0 -0
  78. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_utils/_transform.py +0 -0
  79. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_utils/_typing.py +0 -0
  80. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/_utils/_utils.py +0 -0
  81. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/lib/.keep +0 -0
  82. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/py.typed +0 -0
  83. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/resources/__init__.py +0 -0
  84. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/resources/connections.py +0 -0
  85. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/resources/search.py +0 -0
  86. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/resources/settings.py +0 -0
  87. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_create_params.py +0 -0
  88. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_create_response.py +0 -0
  89. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_delete_by_id_response.py +0 -0
  90. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_delete_by_provider_params.py +0 -0
  91. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_delete_by_provider_response.py +0 -0
  92. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_get_by_tags_params.py +0 -0
  93. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_import_params.py +0 -0
  94. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_import_response.py +0 -0
  95. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_list_documents_params.py +0 -0
  96. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_list_documents_response.py +0 -0
  97. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/connection_list_params.py +0 -0
  98. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/document_add_response.py +0 -0
  99. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/document_update_response.py +0 -0
  100. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/document_upload_file_response.py +0 -0
  101. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/memory_add_response.py +0 -0
  102. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/memory_update_response.py +0 -0
  103. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/memory_upload_file_response.py +0 -0
  104. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/setting_get_response.py +0 -0
  105. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/setting_update_params.py +0 -0
  106. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory/types/setting_update_response.py +0 -0
  107. {supermemory-3.2.0 → supermemory-3.4.0}/src/supermemory_new/lib/.keep +0 -0
  108. {supermemory-3.2.0 → supermemory-3.4.0}/tests/__init__.py +0 -0
  109. {supermemory-3.2.0 → supermemory-3.4.0}/tests/api_resources/__init__.py +0 -0
  110. {supermemory-3.2.0 → supermemory-3.4.0}/tests/api_resources/test_connections.py +0 -0
  111. {supermemory-3.2.0 → supermemory-3.4.0}/tests/api_resources/test_settings.py +0 -0
  112. {supermemory-3.2.0 → supermemory-3.4.0}/tests/conftest.py +0 -0
  113. {supermemory-3.2.0 → supermemory-3.4.0}/tests/sample_file.txt +0 -0
  114. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_client.py +0 -0
  115. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_deepcopy.py +0 -0
  116. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_extract_files.py +0 -0
  117. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_files.py +0 -0
  118. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_models.py +0 -0
  119. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_qs.py +0 -0
  120. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_required_args.py +0 -0
  121. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_response.py +0 -0
  122. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_streaming.py +0 -0
  123. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_transform.py +0 -0
  124. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_utils/test_datetime_parse.py +0 -0
  125. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_utils/test_proxy.py +0 -0
  126. {supermemory-3.2.0 → supermemory-3.4.0}/tests/test_utils/test_typing.py +0 -0
  127. {supermemory-3.2.0 → supermemory-3.4.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "3.4.0"
3
+ }
@@ -1,5 +1,25 @@
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
+
15
+ ## 3.3.0 (2025-09-21)
16
+
17
+ Full Changelog: [v3.2.0...v3.3.0](https://github.com/supermemoryai/python-sdk/compare/v3.2.0...v3.3.0)
18
+
19
+ ### Features
20
+
21
+ * **api:** api update ([fd86dc5](https://github.com/supermemoryai/python-sdk/commit/fd86dc5ee1a83000113c7dcc8ba678af94d825bd))
22
+
3
23
  ## 3.2.0 (2025-09-21)
4
24
 
5
25
  Full Changelog: [v3.1.0...v3.2.0](https://github.com/supermemoryai/python-sdk/compare/v3.1.0...v3.2.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: supermemory
3
- Version: 3.2.0
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
@@ -1,3 +1,9 @@
1
+ # Shared Types
2
+
3
+ ```python
4
+ from supermemory.types import And, Or
5
+ ```
6
+
1
7
  # Memories
2
8
 
3
9
  Types:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "supermemory"
3
- version = "3.2.0"
3
+ version = "3.4.0"
4
4
  description = "The official Python library for the supermemory API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "supermemory"
4
- __version__ = "3.2.0" # x-release-please-version
4
+ __version__ = "3.4.0" # x-release-please-version
@@ -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
  ),
@@ -356,6 +332,7 @@ class DocumentsResource(SyncAPIResource):
356
332
  file: FileTypes,
357
333
  container_tags: str | Omit = omit,
358
334
  file_type: str | Omit = omit,
335
+ metadata: str | Omit = omit,
359
336
  mime_type: str | Omit = omit,
360
337
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
361
338
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -370,14 +347,19 @@ class DocumentsResource(SyncAPIResource):
370
347
  Args:
371
348
  file: File to upload and process
372
349
 
373
- container_tags: Optional JSON string of container tags array. This can be an ID for your user, a
374
- project ID, or any other identifier you wish to use to group documents.
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.
375
353
 
376
354
  file_type:
377
355
  Optional file type override to force specific processing behavior. Valid values:
378
356
  text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
379
357
  notion_doc, webpage, onedrive
380
358
 
359
+ metadata: Optional metadata for the document as a JSON string. This is used to store
360
+ additional information about the document. Keys must be strings and values can
361
+ be strings, numbers, or booleans.
362
+
381
363
  mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
382
364
  use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
383
365
 
@@ -394,6 +376,7 @@ class DocumentsResource(SyncAPIResource):
394
376
  "file": file,
395
377
  "container_tags": container_tags,
396
378
  "file_type": file_type,
379
+ "metadata": metadata,
397
380
  "mime_type": mime_type,
398
381
  }
399
382
  )
@@ -441,9 +424,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
441
424
  container_tags: SequenceNotStr[str] | Omit = omit,
442
425
  content: str | Omit = omit,
443
426
  custom_id: str | Omit = omit,
444
- file_type: str | Omit = omit,
445
427
  metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
446
- mime_type: str | Omit = omit,
447
428
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
448
429
  # The extra values given here take precedence over values defined on the client or passed to this method.
449
430
  extra_headers: Headers | None = None,
@@ -475,20 +456,12 @@ class AsyncDocumentsResource(AsyncAPIResource):
475
456
  custom_id: Optional custom ID of the document. This could be an ID from your database that
476
457
  will uniquely identify this document.
477
458
 
478
- file_type:
479
- Optional file type override to force specific processing behavior. Valid values:
480
- text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
481
- notion_doc, webpage, onedrive
482
-
483
459
  metadata: Optional metadata for the document. This is used to store additional information
484
460
  about the document. You can use this to store any additional information you
485
461
  need about the document. Metadata can be filtered through. Keys must be strings
486
462
  and are case sensitive. Values can be strings, numbers, or booleans. You cannot
487
463
  nest objects.
488
464
 
489
- mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
490
- use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
491
-
492
465
  extra_headers: Send extra headers
493
466
 
494
467
  extra_query: Add additional query parameters to the request
@@ -507,9 +480,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
507
480
  "container_tags": container_tags,
508
481
  "content": content,
509
482
  "custom_id": custom_id,
510
- "file_type": file_type,
511
483
  "metadata": metadata,
512
- "mime_type": mime_type,
513
484
  },
514
485
  document_update_params.DocumentUpdateParams,
515
486
  ),
@@ -626,9 +597,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
626
597
  container_tag: str | Omit = omit,
627
598
  container_tags: SequenceNotStr[str] | Omit = omit,
628
599
  custom_id: str | Omit = omit,
629
- file_type: str | Omit = omit,
630
600
  metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
631
- mime_type: str | Omit = omit,
632
601
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
633
602
  # The extra values given here take precedence over values defined on the client or passed to this method.
634
603
  extra_headers: Headers | None = None,
@@ -660,20 +629,12 @@ class AsyncDocumentsResource(AsyncAPIResource):
660
629
  custom_id: Optional custom ID of the document. This could be an ID from your database that
661
630
  will uniquely identify this document.
662
631
 
663
- file_type:
664
- Optional file type override to force specific processing behavior. Valid values:
665
- text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
666
- notion_doc, webpage, onedrive
667
-
668
632
  metadata: Optional metadata for the document. This is used to store additional information
669
633
  about the document. You can use this to store any additional information you
670
634
  need about the document. Metadata can be filtered through. Keys must be strings
671
635
  and are case sensitive. Values can be strings, numbers, or booleans. You cannot
672
636
  nest objects.
673
637
 
674
- mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
675
- use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
676
-
677
638
  extra_headers: Send extra headers
678
639
 
679
640
  extra_query: Add additional query parameters to the request
@@ -690,9 +651,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
690
651
  "container_tag": container_tag,
691
652
  "container_tags": container_tags,
692
653
  "custom_id": custom_id,
693
- "file_type": file_type,
694
654
  "metadata": metadata,
695
- "mime_type": mime_type,
696
655
  },
697
656
  document_add_params.DocumentAddParams,
698
657
  ),
@@ -741,6 +700,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
741
700
  file: FileTypes,
742
701
  container_tags: str | Omit = omit,
743
702
  file_type: str | Omit = omit,
703
+ metadata: str | Omit = omit,
744
704
  mime_type: str | Omit = omit,
745
705
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
746
706
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -755,14 +715,19 @@ class AsyncDocumentsResource(AsyncAPIResource):
755
715
  Args:
756
716
  file: File to upload and process
757
717
 
758
- container_tags: Optional JSON string of container tags array. This can be an ID for your user, a
759
- project ID, or any other identifier you wish to use to group documents.
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.
760
721
 
761
722
  file_type:
762
723
  Optional file type override to force specific processing behavior. Valid values:
763
724
  text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
764
725
  notion_doc, webpage, onedrive
765
726
 
727
+ metadata: Optional metadata for the document as a JSON string. This is used to store
728
+ additional information about the document. Keys must be strings and values can
729
+ be strings, numbers, or booleans.
730
+
766
731
  mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
767
732
  use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
768
733
 
@@ -779,6 +744,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
779
744
  "file": file,
780
745
  "container_tags": container_tags,
781
746
  "file_type": file_type,
747
+ "metadata": metadata,
782
748
  "mime_type": mime_type,
783
749
  }
784
750
  )
@@ -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
  ),
@@ -356,6 +332,7 @@ class MemoriesResource(SyncAPIResource):
356
332
  file: FileTypes,
357
333
  container_tags: str | Omit = omit,
358
334
  file_type: str | Omit = omit,
335
+ metadata: str | Omit = omit,
359
336
  mime_type: str | Omit = omit,
360
337
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
361
338
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -370,14 +347,19 @@ class MemoriesResource(SyncAPIResource):
370
347
  Args:
371
348
  file: File to upload and process
372
349
 
373
- container_tags: Optional JSON string of container tags array. This can be an ID for your user, a
374
- project ID, or any other identifier you wish to use to group documents.
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.
375
353
 
376
354
  file_type:
377
355
  Optional file type override to force specific processing behavior. Valid values:
378
356
  text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
379
357
  notion_doc, webpage, onedrive
380
358
 
359
+ metadata: Optional metadata for the document as a JSON string. This is used to store
360
+ additional information about the document. Keys must be strings and values can
361
+ be strings, numbers, or booleans.
362
+
381
363
  mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
382
364
  use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
383
365
 
@@ -394,6 +376,7 @@ class MemoriesResource(SyncAPIResource):
394
376
  "file": file,
395
377
  "container_tags": container_tags,
396
378
  "file_type": file_type,
379
+ "metadata": metadata,
397
380
  "mime_type": mime_type,
398
381
  }
399
382
  )
@@ -441,9 +424,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
441
424
  container_tags: SequenceNotStr[str] | Omit = omit,
442
425
  content: str | Omit = omit,
443
426
  custom_id: str | Omit = omit,
444
- file_type: str | Omit = omit,
445
427
  metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
446
- mime_type: str | Omit = omit,
447
428
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
448
429
  # The extra values given here take precedence over values defined on the client or passed to this method.
449
430
  extra_headers: Headers | None = None,
@@ -475,20 +456,12 @@ class AsyncMemoriesResource(AsyncAPIResource):
475
456
  custom_id: Optional custom ID of the document. This could be an ID from your database that
476
457
  will uniquely identify this document.
477
458
 
478
- file_type:
479
- Optional file type override to force specific processing behavior. Valid values:
480
- text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
481
- notion_doc, webpage, onedrive
482
-
483
459
  metadata: Optional metadata for the document. This is used to store additional information
484
460
  about the document. You can use this to store any additional information you
485
461
  need about the document. Metadata can be filtered through. Keys must be strings
486
462
  and are case sensitive. Values can be strings, numbers, or booleans. You cannot
487
463
  nest objects.
488
464
 
489
- mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
490
- use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
491
-
492
465
  extra_headers: Send extra headers
493
466
 
494
467
  extra_query: Add additional query parameters to the request
@@ -507,9 +480,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
507
480
  "container_tags": container_tags,
508
481
  "content": content,
509
482
  "custom_id": custom_id,
510
- "file_type": file_type,
511
483
  "metadata": metadata,
512
- "mime_type": mime_type,
513
484
  },
514
485
  memory_update_params.MemoryUpdateParams,
515
486
  ),
@@ -626,9 +597,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
626
597
  container_tag: str | Omit = omit,
627
598
  container_tags: SequenceNotStr[str] | Omit = omit,
628
599
  custom_id: str | Omit = omit,
629
- file_type: str | Omit = omit,
630
600
  metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
631
- mime_type: str | Omit = omit,
632
601
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
633
602
  # The extra values given here take precedence over values defined on the client or passed to this method.
634
603
  extra_headers: Headers | None = None,
@@ -660,20 +629,12 @@ class AsyncMemoriesResource(AsyncAPIResource):
660
629
  custom_id: Optional custom ID of the document. This could be an ID from your database that
661
630
  will uniquely identify this document.
662
631
 
663
- file_type:
664
- Optional file type override to force specific processing behavior. Valid values:
665
- text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
666
- notion_doc, webpage, onedrive
667
-
668
632
  metadata: Optional metadata for the document. This is used to store additional information
669
633
  about the document. You can use this to store any additional information you
670
634
  need about the document. Metadata can be filtered through. Keys must be strings
671
635
  and are case sensitive. Values can be strings, numbers, or booleans. You cannot
672
636
  nest objects.
673
637
 
674
- mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
675
- use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
676
-
677
638
  extra_headers: Send extra headers
678
639
 
679
640
  extra_query: Add additional query parameters to the request
@@ -690,9 +651,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
690
651
  "container_tag": container_tag,
691
652
  "container_tags": container_tags,
692
653
  "custom_id": custom_id,
693
- "file_type": file_type,
694
654
  "metadata": metadata,
695
- "mime_type": mime_type,
696
655
  },
697
656
  memory_add_params.MemoryAddParams,
698
657
  ),
@@ -741,6 +700,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
741
700
  file: FileTypes,
742
701
  container_tags: str | Omit = omit,
743
702
  file_type: str | Omit = omit,
703
+ metadata: str | Omit = omit,
744
704
  mime_type: str | Omit = omit,
745
705
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
746
706
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -755,14 +715,19 @@ class AsyncMemoriesResource(AsyncAPIResource):
755
715
  Args:
756
716
  file: File to upload and process
757
717
 
758
- container_tags: Optional JSON string of container tags array. This can be an ID for your user, a
759
- project ID, or any other identifier you wish to use to group documents.
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.
760
721
 
761
722
  file_type:
762
723
  Optional file type override to force specific processing behavior. Valid values:
763
724
  text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
764
725
  notion_doc, webpage, onedrive
765
726
 
727
+ metadata: Optional metadata for the document as a JSON string. This is used to store
728
+ additional information about the document. Keys must be strings and values can
729
+ be strings, numbers, or booleans.
730
+
766
731
  mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
767
732
  use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
768
733
 
@@ -779,6 +744,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
779
744
  "file": file,
780
745
  "container_tags": container_tags,
781
746
  "file_type": file_type,
747
+ "metadata": metadata,
782
748
  "mime_type": mime_type,
783
749
  }
784
750
  )
@@ -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
@@ -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: datetime = FieldInfo(alias="createdAt")
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[datetime] = FieldInfo(alias="expiresAt", default=None)
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, 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: datetime = FieldInfo(alias="createdAt")
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[datetime] = FieldInfo(alias="expiresAt", default=None)
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: datetime = FieldInfo(alias="createdAt")
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[datetime] = FieldInfo(alias="expiresAt", default=None)
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
- """