supermemory 3.44.0__tar.gz → 3.46.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.
Files changed (131) hide show
  1. supermemory-3.46.0/.release-please-manifest.json +3 -0
  2. {supermemory-3.44.0 → supermemory-3.46.0}/CHANGELOG.md +16 -0
  3. {supermemory-3.44.0 → supermemory-3.46.0}/PKG-INFO +1 -1
  4. {supermemory-3.44.0 → supermemory-3.46.0}/pyproject.toml +1 -1
  5. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_version.py +1 -1
  6. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/resources/connections.py +10 -10
  7. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/resources/documents.py +14 -0
  8. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_get_response.py +1 -0
  9. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_list_processing_response.py +1 -0
  10. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_list_response.py +1 -0
  11. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_upload_file_params.py +9 -0
  12. {supermemory-3.44.0 → supermemory-3.46.0}/tests/api_resources/test_documents.py +2 -0
  13. supermemory-3.44.0/.release-please-manifest.json +0 -3
  14. {supermemory-3.44.0 → supermemory-3.46.0}/.gitignore +0 -0
  15. {supermemory-3.44.0 → supermemory-3.46.0}/CONTRIBUTING.md +0 -0
  16. {supermemory-3.44.0 → supermemory-3.46.0}/LICENSE +0 -0
  17. {supermemory-3.44.0 → supermemory-3.46.0}/README.md +0 -0
  18. {supermemory-3.44.0 → supermemory-3.46.0}/SECURITY.md +0 -0
  19. {supermemory-3.44.0 → supermemory-3.46.0}/api.md +0 -0
  20. {supermemory-3.44.0 → supermemory-3.46.0}/bin/check-release-environment +0 -0
  21. {supermemory-3.44.0 → supermemory-3.46.0}/bin/publish-pypi +0 -0
  22. {supermemory-3.44.0 → supermemory-3.46.0}/examples/.keep +0 -0
  23. {supermemory-3.44.0 → supermemory-3.46.0}/noxfile.py +0 -0
  24. {supermemory-3.44.0 → supermemory-3.46.0}/release-please-config.json +0 -0
  25. {supermemory-3.44.0 → supermemory-3.46.0}/requirements-dev.lock +0 -0
  26. {supermemory-3.44.0 → supermemory-3.46.0}/requirements.lock +0 -0
  27. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/__init__.py +0 -0
  28. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_base_client.py +0 -0
  29. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_client.py +0 -0
  30. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_compat.py +0 -0
  31. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_constants.py +0 -0
  32. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_exceptions.py +0 -0
  33. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_files.py +0 -0
  34. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_models.py +0 -0
  35. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_qs.py +0 -0
  36. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_resource.py +0 -0
  37. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_response.py +0 -0
  38. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_streaming.py +0 -0
  39. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_types.py +0 -0
  40. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/__init__.py +0 -0
  41. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_compat.py +0 -0
  42. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_datetime_parse.py +0 -0
  43. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_json.py +0 -0
  44. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_logs.py +0 -0
  45. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_path.py +0 -0
  46. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_proxy.py +0 -0
  47. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_reflection.py +0 -0
  48. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
  49. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_streams.py +0 -0
  50. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_sync.py +0 -0
  51. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_transform.py +0 -0
  52. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_typing.py +0 -0
  53. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/_utils/_utils.py +0 -0
  54. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/lib/.keep +0 -0
  55. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/py.typed +0 -0
  56. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/resources/__init__.py +0 -0
  57. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/resources/memories.py +0 -0
  58. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/resources/search.py +0 -0
  59. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/resources/settings.py +0 -0
  60. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/__init__.py +0 -0
  61. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/add_response.py +0 -0
  62. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/client_add_params.py +0 -0
  63. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/client_profile_params.py +0 -0
  64. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_configure_params.py +0 -0
  65. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_configure_response.py +0 -0
  66. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_create_params.py +0 -0
  67. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_create_response.py +0 -0
  68. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_delete_by_id_params.py +0 -0
  69. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_delete_by_id_response.py +0 -0
  70. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_delete_by_provider_params.py +0 -0
  71. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_delete_by_provider_response.py +0 -0
  72. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_get_by_id_response.py +0 -0
  73. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_get_by_tag_params.py +0 -0
  74. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_get_by_tag_response.py +0 -0
  75. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_import_params.py +0 -0
  76. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_import_response.py +0 -0
  77. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_list_documents_params.py +0 -0
  78. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_list_documents_response.py +0 -0
  79. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_list_params.py +0 -0
  80. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_list_response.py +0 -0
  81. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_resources_params.py +0 -0
  82. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/connection_resources_response.py +0 -0
  83. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_add_params.py +0 -0
  84. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_add_response.py +0 -0
  85. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_batch_add_params.py +0 -0
  86. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_batch_add_response.py +0 -0
  87. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_delete_bulk_params.py +0 -0
  88. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_delete_bulk_response.py +0 -0
  89. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_list_params.py +0 -0
  90. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_update_params.py +0 -0
  91. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_update_response.py +0 -0
  92. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/document_upload_file_response.py +0 -0
  93. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/memory_forget_params.py +0 -0
  94. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/memory_forget_response.py +0 -0
  95. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/memory_update_memory_params.py +0 -0
  96. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/memory_update_memory_response.py +0 -0
  97. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/profile_response.py +0 -0
  98. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/search_documents_params.py +0 -0
  99. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/search_documents_response.py +0 -0
  100. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/search_execute_params.py +0 -0
  101. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/search_execute_response.py +0 -0
  102. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/search_memories_params.py +0 -0
  103. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/search_memories_response.py +0 -0
  104. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/setting_get_response.py +0 -0
  105. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/setting_update_params.py +0 -0
  106. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory/types/setting_update_response.py +0 -0
  107. {supermemory-3.44.0 → supermemory-3.46.0}/src/supermemory_new/lib/.keep +0 -0
  108. {supermemory-3.44.0 → supermemory-3.46.0}/tests/__init__.py +0 -0
  109. {supermemory-3.44.0 → supermemory-3.46.0}/tests/api_resources/__init__.py +0 -0
  110. {supermemory-3.44.0 → supermemory-3.46.0}/tests/api_resources/test_client.py +0 -0
  111. {supermemory-3.44.0 → supermemory-3.46.0}/tests/api_resources/test_connections.py +0 -0
  112. {supermemory-3.44.0 → supermemory-3.46.0}/tests/api_resources/test_memories.py +0 -0
  113. {supermemory-3.44.0 → supermemory-3.46.0}/tests/api_resources/test_search.py +0 -0
  114. {supermemory-3.44.0 → supermemory-3.46.0}/tests/api_resources/test_settings.py +0 -0
  115. {supermemory-3.44.0 → supermemory-3.46.0}/tests/conftest.py +0 -0
  116. {supermemory-3.44.0 → supermemory-3.46.0}/tests/sample_file.txt +0 -0
  117. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_client.py +0 -0
  118. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_extract_files.py +0 -0
  119. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_files.py +0 -0
  120. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_models.py +0 -0
  121. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_qs.py +0 -0
  122. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_required_args.py +0 -0
  123. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_response.py +0 -0
  124. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_streaming.py +0 -0
  125. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_transform.py +0 -0
  126. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_utils/test_datetime_parse.py +0 -0
  127. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_utils/test_json.py +0 -0
  128. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_utils/test_path.py +0 -0
  129. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_utils/test_proxy.py +0 -0
  130. {supermemory-3.44.0 → supermemory-3.46.0}/tests/test_utils/test_typing.py +0 -0
  131. {supermemory-3.44.0 → supermemory-3.46.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "3.46.0"
3
+ }
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.46.0 (2026-06-08)
4
+
5
+ Full Changelog: [v3.45.0...v3.46.0](https://github.com/supermemoryai/python-sdk/compare/v3.45.0...v3.46.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([79ca8d5](https://github.com/supermemoryai/python-sdk/commit/79ca8d500f2e91fa8bb7d621fd06337715641400))
10
+
11
+ ## 3.45.0 (2026-06-03)
12
+
13
+ Full Changelog: [v3.44.0...v3.45.0](https://github.com/supermemoryai/python-sdk/compare/v3.44.0...v3.45.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([4736c1b](https://github.com/supermemoryai/python-sdk/commit/4736c1b8ae95d02b75e93f9209fa7746032eac1a))
18
+
3
19
  ## 3.44.0 (2026-06-01)
4
20
 
5
21
  Full Changelog: [v3.43.0...v3.44.0](https://github.com/supermemoryai/python-sdk/compare/v3.43.0...v3.44.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: supermemory
3
- Version: 3.44.0
3
+ Version: 3.46.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,6 +1,6 @@
1
1
  [project]
2
2
  name = "supermemory"
3
- version = "3.44.0"
3
+ version = "3.46.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.44.0" # x-release-please-version
4
+ __version__ = "3.46.0" # x-release-please-version
@@ -66,7 +66,7 @@ class ConnectionsResource(SyncAPIResource):
66
66
 
67
67
  def create(
68
68
  self,
69
- provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3"],
69
+ provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3", "granola"],
70
70
  *,
71
71
  container_tag: str | Omit = omit,
72
72
  container_tags: SequenceNotStr[str] | Omit = omit,
@@ -225,7 +225,7 @@ class ConnectionsResource(SyncAPIResource):
225
225
 
226
226
  def delete_by_provider(
227
227
  self,
228
- provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3"],
228
+ provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3", "granola"],
229
229
  *,
230
230
  container_tags: SequenceNotStr[str],
231
231
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -298,7 +298,7 @@ class ConnectionsResource(SyncAPIResource):
298
298
 
299
299
  def get_by_tag(
300
300
  self,
301
- provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3"],
301
+ provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3", "granola"],
302
302
  *,
303
303
  container_tags: SequenceNotStr[str],
304
304
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -337,7 +337,7 @@ class ConnectionsResource(SyncAPIResource):
337
337
 
338
338
  def import_(
339
339
  self,
340
- provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3"],
340
+ provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3", "granola"],
341
341
  *,
342
342
  container_tags: SequenceNotStr[str] | Omit = omit,
343
343
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -375,7 +375,7 @@ class ConnectionsResource(SyncAPIResource):
375
375
 
376
376
  def list_documents(
377
377
  self,
378
- provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3"],
378
+ provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3", "granola"],
379
379
  *,
380
380
  container_tags: SequenceNotStr[str] | Omit = omit,
381
381
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -484,7 +484,7 @@ class AsyncConnectionsResource(AsyncAPIResource):
484
484
 
485
485
  async def create(
486
486
  self,
487
- provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3"],
487
+ provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3", "granola"],
488
488
  *,
489
489
  container_tag: str | Omit = omit,
490
490
  container_tags: SequenceNotStr[str] | Omit = omit,
@@ -647,7 +647,7 @@ class AsyncConnectionsResource(AsyncAPIResource):
647
647
 
648
648
  async def delete_by_provider(
649
649
  self,
650
- provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3"],
650
+ provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3", "granola"],
651
651
  *,
652
652
  container_tags: SequenceNotStr[str],
653
653
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -720,7 +720,7 @@ class AsyncConnectionsResource(AsyncAPIResource):
720
720
 
721
721
  async def get_by_tag(
722
722
  self,
723
- provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3"],
723
+ provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3", "granola"],
724
724
  *,
725
725
  container_tags: SequenceNotStr[str],
726
726
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -759,7 +759,7 @@ class AsyncConnectionsResource(AsyncAPIResource):
759
759
 
760
760
  async def import_(
761
761
  self,
762
- provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3"],
762
+ provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3", "granola"],
763
763
  *,
764
764
  container_tags: SequenceNotStr[str] | Omit = omit,
765
765
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -799,7 +799,7 @@ class AsyncConnectionsResource(AsyncAPIResource):
799
799
 
800
800
  async def list_documents(
801
801
  self,
802
- provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3"],
802
+ provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3", "granola"],
803
803
  *,
804
804
  container_tags: SequenceNotStr[str] | Omit = omit,
805
805
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -535,6 +535,7 @@ class DocumentsResource(SyncAPIResource):
535
535
  container_tag: str | Omit = omit,
536
536
  container_tags: str | Omit = omit,
537
537
  custom_id: str | Omit = omit,
538
+ dreaming: Literal["instant", "dynamic"] | Omit = omit,
538
539
  entity_context: str | Omit = omit,
539
540
  filepath: str | Omit = omit,
540
541
  file_type: str | Omit = omit,
@@ -565,6 +566,11 @@ class DocumentsResource(SyncAPIResource):
565
566
  custom_id: Optional custom ID of the document. Max 100 characters, alphanumeric with
566
567
  hyphens, underscores, and colons only.
567
568
 
569
+ dreaming: Processing mode. "dynamic" (default) groups related documents together so
570
+ memories form from coherent, logical units rather than one isolated entry at a
571
+ time. "instant" processes each document on its own right away, and bills one
572
+ extra operation per document.
573
+
568
574
  entity_context: Optional entity context for this container tag. Max 1500 characters. Used during
569
575
  document processing to guide memory extraction.
570
576
 
@@ -608,6 +614,7 @@ class DocumentsResource(SyncAPIResource):
608
614
  "container_tag": container_tag,
609
615
  "container_tags": container_tags,
610
616
  "custom_id": custom_id,
617
+ "dreaming": dreaming,
611
618
  "entity_context": entity_context,
612
619
  "filepath": filepath,
613
620
  "file_type": file_type,
@@ -1131,6 +1138,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
1131
1138
  container_tag: str | Omit = omit,
1132
1139
  container_tags: str | Omit = omit,
1133
1140
  custom_id: str | Omit = omit,
1141
+ dreaming: Literal["instant", "dynamic"] | Omit = omit,
1134
1142
  entity_context: str | Omit = omit,
1135
1143
  filepath: str | Omit = omit,
1136
1144
  file_type: str | Omit = omit,
@@ -1161,6 +1169,11 @@ class AsyncDocumentsResource(AsyncAPIResource):
1161
1169
  custom_id: Optional custom ID of the document. Max 100 characters, alphanumeric with
1162
1170
  hyphens, underscores, and colons only.
1163
1171
 
1172
+ dreaming: Processing mode. "dynamic" (default) groups related documents together so
1173
+ memories form from coherent, logical units rather than one isolated entry at a
1174
+ time. "instant" processes each document on its own right away, and bills one
1175
+ extra operation per document.
1176
+
1164
1177
  entity_context: Optional entity context for this container tag. Max 1500 characters. Used during
1165
1178
  document processing to guide memory extraction.
1166
1179
 
@@ -1204,6 +1217,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
1204
1217
  "container_tag": container_tag,
1205
1218
  "container_tags": container_tags,
1206
1219
  "custom_id": custom_id,
1220
+ "dreaming": dreaming,
1207
1221
  "entity_context": entity_context,
1208
1222
  "filepath": filepath,
1209
1223
  "file_type": file_type,
@@ -94,6 +94,7 @@ class DocumentGetResponse(BaseModel):
94
94
  "webpage",
95
95
  "onedrive",
96
96
  "github_markdown",
97
+ "granola",
97
98
  ]
98
99
  """Type of the document"""
99
100
 
@@ -53,6 +53,7 @@ class Document(BaseModel):
53
53
  "webpage",
54
54
  "onedrive",
55
55
  "github_markdown",
56
+ "granola",
56
57
  ]
57
58
  """Type of the document"""
58
59
 
@@ -64,6 +64,7 @@ class Memory(BaseModel):
64
64
  "webpage",
65
65
  "onedrive",
66
66
  "github_markdown",
67
+ "granola",
67
68
  ]
68
69
  """Type of the document"""
69
70
 
@@ -31,6 +31,15 @@ class DocumentUploadFileParams(TypedDict, total=False):
31
31
  Max 100 characters, alphanumeric with hyphens, underscores, and colons only.
32
32
  """
33
33
 
34
+ dreaming: Literal["instant", "dynamic"]
35
+ """Processing mode.
36
+
37
+ "dynamic" (default) groups related documents together so memories form from
38
+ coherent, logical units rather than one isolated entry at a time. "instant"
39
+ processes each document on its own right away, and bills one extra operation per
40
+ document.
41
+ """
42
+
34
43
  entity_context: Annotated[str, PropertyInfo(alias="entityContext")]
35
44
  """Optional entity context for this container tag.
36
45
 
@@ -457,6 +457,7 @@ class TestDocuments:
457
457
  container_tag="user",
458
458
  container_tags="containerTags",
459
459
  custom_id="mem_abc123",
460
+ dreaming="instant",
460
461
  entity_context="User's name is {XYZ}",
461
462
  filepath="/documents/reports/file.pdf",
462
463
  file_type="image",
@@ -931,6 +932,7 @@ class TestAsyncDocuments:
931
932
  container_tag="user",
932
933
  container_tags="containerTags",
933
934
  custom_id="mem_abc123",
935
+ dreaming="instant",
934
936
  entity_context="User's name is {XYZ}",
935
937
  filepath="/documents/reports/file.pdf",
936
938
  file_type="image",
@@ -1,3 +0,0 @@
1
- {
2
- ".": "3.44.0"
3
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes