supermemory 3.1.0__tar.gz → 3.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of supermemory might be problematic. Click here for more details.

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