supermemory 3.2.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.2.0 → supermemory-3.3.0}/CHANGELOG.md +8 -0
  3. {supermemory-3.2.0 → supermemory-3.3.0}/PKG-INFO +1 -1
  4. {supermemory-3.2.0 → supermemory-3.3.0}/pyproject.toml +1 -1
  5. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_version.py +1 -1
  6. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/resources/documents.py +12 -0
  7. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/resources/memories.py +12 -0
  8. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/document_upload_file_params.py +7 -0
  9. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/memory_upload_file_params.py +7 -0
  10. {supermemory-3.2.0 → supermemory-3.3.0}/tests/api_resources/test_documents.py +2 -0
  11. {supermemory-3.2.0 → supermemory-3.3.0}/tests/api_resources/test_memories.py +2 -0
  12. supermemory-3.2.0/.release-please-manifest.json +0 -3
  13. {supermemory-3.2.0 → supermemory-3.3.0}/.gitignore +0 -0
  14. {supermemory-3.2.0 → supermemory-3.3.0}/CONTRIBUTING.md +0 -0
  15. {supermemory-3.2.0 → supermemory-3.3.0}/LICENSE +0 -0
  16. {supermemory-3.2.0 → supermemory-3.3.0}/README.md +0 -0
  17. {supermemory-3.2.0 → supermemory-3.3.0}/SECURITY.md +0 -0
  18. {supermemory-3.2.0 → supermemory-3.3.0}/api.md +0 -0
  19. {supermemory-3.2.0 → supermemory-3.3.0}/bin/check-release-environment +0 -0
  20. {supermemory-3.2.0 → supermemory-3.3.0}/bin/publish-pypi +0 -0
  21. {supermemory-3.2.0 → supermemory-3.3.0}/examples/.keep +0 -0
  22. {supermemory-3.2.0 → supermemory-3.3.0}/noxfile.py +0 -0
  23. {supermemory-3.2.0 → supermemory-3.3.0}/release-please-config.json +0 -0
  24. {supermemory-3.2.0 → supermemory-3.3.0}/requirements-dev.lock +0 -0
  25. {supermemory-3.2.0 → supermemory-3.3.0}/requirements.lock +0 -0
  26. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/__init__.py +0 -0
  27. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_base_client.py +0 -0
  28. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_client.py +0 -0
  29. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_compat.py +0 -0
  30. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_constants.py +0 -0
  31. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_exceptions.py +0 -0
  32. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_files.py +0 -0
  33. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_models.py +0 -0
  34. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_qs.py +0 -0
  35. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_resource.py +0 -0
  36. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_response.py +0 -0
  37. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_streaming.py +0 -0
  38. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_types.py +0 -0
  39. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_utils/__init__.py +0 -0
  40. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_utils/_compat.py +0 -0
  41. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_utils/_datetime_parse.py +0 -0
  42. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_utils/_logs.py +0 -0
  43. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_utils/_proxy.py +0 -0
  44. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_utils/_reflection.py +0 -0
  45. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
  46. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_utils/_streams.py +0 -0
  47. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_utils/_sync.py +0 -0
  48. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_utils/_transform.py +0 -0
  49. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_utils/_typing.py +0 -0
  50. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/_utils/_utils.py +0 -0
  51. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/lib/.keep +0 -0
  52. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/py.typed +0 -0
  53. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/resources/__init__.py +0 -0
  54. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/resources/connections.py +0 -0
  55. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/resources/search.py +0 -0
  56. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/resources/settings.py +0 -0
  57. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/__init__.py +0 -0
  58. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_create_params.py +0 -0
  59. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_create_response.py +0 -0
  60. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_delete_by_id_response.py +0 -0
  61. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_delete_by_provider_params.py +0 -0
  62. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_delete_by_provider_response.py +0 -0
  63. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_get_by_id_response.py +0 -0
  64. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_get_by_tags_params.py +0 -0
  65. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_get_by_tags_response.py +0 -0
  66. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_import_params.py +0 -0
  67. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_import_response.py +0 -0
  68. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_list_documents_params.py +0 -0
  69. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_list_documents_response.py +0 -0
  70. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_list_params.py +0 -0
  71. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/connection_list_response.py +0 -0
  72. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/document_add_params.py +0 -0
  73. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/document_add_response.py +0 -0
  74. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/document_get_response.py +0 -0
  75. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/document_list_params.py +0 -0
  76. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/document_list_response.py +0 -0
  77. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/document_update_params.py +0 -0
  78. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/document_update_response.py +0 -0
  79. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/document_upload_file_response.py +0 -0
  80. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/memory_add_params.py +0 -0
  81. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/memory_add_response.py +0 -0
  82. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/memory_get_response.py +0 -0
  83. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/memory_list_params.py +0 -0
  84. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/memory_list_response.py +0 -0
  85. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/memory_update_params.py +0 -0
  86. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/memory_update_response.py +0 -0
  87. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/memory_upload_file_response.py +0 -0
  88. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/search_documents_params.py +0 -0
  89. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/search_documents_response.py +0 -0
  90. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/search_execute_params.py +0 -0
  91. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/search_execute_response.py +0 -0
  92. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/search_memories_params.py +0 -0
  93. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/search_memories_response.py +0 -0
  94. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/setting_get_response.py +0 -0
  95. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/setting_update_params.py +0 -0
  96. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory/types/setting_update_response.py +0 -0
  97. {supermemory-3.2.0 → supermemory-3.3.0}/src/supermemory_new/lib/.keep +0 -0
  98. {supermemory-3.2.0 → supermemory-3.3.0}/tests/__init__.py +0 -0
  99. {supermemory-3.2.0 → supermemory-3.3.0}/tests/api_resources/__init__.py +0 -0
  100. {supermemory-3.2.0 → supermemory-3.3.0}/tests/api_resources/test_connections.py +0 -0
  101. {supermemory-3.2.0 → supermemory-3.3.0}/tests/api_resources/test_search.py +0 -0
  102. {supermemory-3.2.0 → supermemory-3.3.0}/tests/api_resources/test_settings.py +0 -0
  103. {supermemory-3.2.0 → supermemory-3.3.0}/tests/conftest.py +0 -0
  104. {supermemory-3.2.0 → supermemory-3.3.0}/tests/sample_file.txt +0 -0
  105. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_client.py +0 -0
  106. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_deepcopy.py +0 -0
  107. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_extract_files.py +0 -0
  108. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_files.py +0 -0
  109. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_models.py +0 -0
  110. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_qs.py +0 -0
  111. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_required_args.py +0 -0
  112. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_response.py +0 -0
  113. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_streaming.py +0 -0
  114. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_transform.py +0 -0
  115. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_utils/test_datetime_parse.py +0 -0
  116. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_utils/test_proxy.py +0 -0
  117. {supermemory-3.2.0 → supermemory-3.3.0}/tests/test_utils/test_typing.py +0 -0
  118. {supermemory-3.2.0 → supermemory-3.3.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "3.3.0"
3
+ }
@@ -1,5 +1,13 @@
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
+
3
11
  ## 3.2.0 (2025-09-21)
4
12
 
5
13
  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.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.2.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.2.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
  )
@@ -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
 
@@ -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"])
@@ -1,3 +0,0 @@
1
- {
2
- ".": "3.2.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