supermemory 3.2.0__py3-none-any.whl → 3.3.0__py3-none-any.whl

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

Potentially problematic release.


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

supermemory/_version.py CHANGED
@@ -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
 
@@ -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
@@ -11,7 +11,7 @@ supermemory/_resource.py,sha256=_wuaB1exMy-l-qqdJJdTv15hH5qBSN2Rj9CFwjXTZJU,1130
11
11
  supermemory/_response.py,sha256=Yh869-U8INkojKZHFsNw69z5Y2BrK2isgRJ8mifEURM,28848
12
12
  supermemory/_streaming.py,sha256=MGbosxSTqq0_JG52hvH2Z-Mr_Y95ws5UdFw77_iYukc,10120
13
13
  supermemory/_types.py,sha256=KHnNDTZJ8YzCPCGZTNkEXcpiWp7FdH9skhEaOQb9uMM,7241
14
- supermemory/_version.py,sha256=ExzGNc9U5ekZsaPACRMVTrA-WeAlvLbck8TLnPzDyyM,163
14
+ supermemory/_version.py,sha256=rKjbfpeTRdaPAmvsUNvIZVfTcexzt_GFYqmEYUwr_pQ,163
15
15
  supermemory/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  supermemory/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
17
17
  supermemory/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
@@ -28,8 +28,8 @@ supermemory/_utils/_utils.py,sha256=0dDqauUbVZEXV0NVl7Bwu904Wwo5eyFCZpQThhFNhyA,
28
28
  supermemory/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
29
29
  supermemory/resources/__init__.py,sha256=qLgw280drj5DMESoNQyiaS6fO-NMC4hq3jcdFvLu3Hs,2508
30
30
  supermemory/resources/connections.py,sha256=U5FHDjkSJsMN4gAeA40MULns0L-rYMFwkBF7pv5WOJg,33207
31
- supermemory/resources/documents.py,sha256=gRIy7eeMISOmRx7SMZh9ioGG2xev_cx0c1bQl9h2T04,37034
32
- supermemory/resources/memories.py,sha256=SnThxR6IRl7tyjLmrohEu-9lxG1Dc_dhWEz8BjKM5Og,36874
31
+ supermemory/resources/documents.py,sha256=6uEmx3zVzLpxqeRManQu2OZW7QMLlxZS8B_BkjFqga4,37658
32
+ supermemory/resources/memories.py,sha256=65KGIRM-2Ssny3tR80wbXYyYPauUsmnQVQGM2nUfwXw,37498
33
33
  supermemory/resources/search.py,sha256=SJ2b3JKOmm6kDVUCvF4htQr7Uq33bX0ro98l9zILXys,28245
34
34
  supermemory/resources/settings.py,sha256=WLDupwUkhBb8IH2G7P0tOwr3wqFHKotQ99cDkOJ8Nq4,11823
35
35
  supermemory/types/__init__.py,sha256=6mc6zMo_elaztHDCS6gkpKPug3lmhLqDtYC4YdHoB-U,3714
@@ -54,7 +54,7 @@ supermemory/types/document_list_params.py,sha256=LDllwZmvNnCzgdXNHwra5L0gpDXumRH
54
54
  supermemory/types/document_list_response.py,sha256=c7tY8VIHpe0iqeJTbnr2OoGue2RU9H45rKRWceQUgG8,2765
55
55
  supermemory/types/document_update_params.py,sha256=SYvB8JSbn0r_o3H6vk2-F9JYyFlOMwczz4UA3MCYnfQ,2399
56
56
  supermemory/types/document_update_response.py,sha256=JHZEFINrQogslaqr0lYs1QJIFNY7Gb660SIJ54c6DBE,229
57
- supermemory/types/document_upload_file_params.py,sha256=WfeUmWAqraZUr8N1s5ddrSHuVAebhSwBmJw2UjiRbCw,1166
57
+ supermemory/types/document_upload_file_params.py,sha256=MFQd2LdJCuf4wqwpPFSL2oYBlTK1v2KZCJz4pbAuBk8,1397
58
58
  supermemory/types/document_upload_file_response.py,sha256=vIhqRvnbqO6WGKTcAbPEkYF4Ai25gGQtzPd534yH8I8,237
59
59
  supermemory/types/memory_add_params.py,sha256=OTMekh8ZdN1TNPcEqgErKM0mPlGSVueGlHZwA6diGZk,2409
60
60
  supermemory/types/memory_add_response.py,sha256=5lim8sVXM7WzG8tUuKORHEe2lJc6yVWvyjylzNsLGjw,219
@@ -63,7 +63,7 @@ supermemory/types/memory_list_params.py,sha256=IGjP5KHyf2J36hbgjgbhdIKjai8ON1Kq5
63
63
  supermemory/types/memory_list_response.py,sha256=C8-BzTdcC15tJxtXW3a0aNJJcD6kLZE22TFsFlw37go,2761
64
64
  supermemory/types/memory_update_params.py,sha256=T857pkUEHUxv8SjyurewFwG5IzbGFEpJ9yu-inSUHAU,2395
65
65
  supermemory/types/memory_update_response.py,sha256=fvfO9lGM8xv2EUOQfOSxqig6fx6-ykq7syW69er_2ng,225
66
- supermemory/types/memory_upload_file_params.py,sha256=WgiqScDxcDfEUusFBf1aS0VWiU2DLN7PYg_EOh_0GXs,1162
66
+ supermemory/types/memory_upload_file_params.py,sha256=_UYoqIoSCVgSqcjB7WdfJD1Ltg3mIlmNsOcXwr6xa-A,1393
67
67
  supermemory/types/memory_upload_file_response.py,sha256=KTq6AExBMz7eMt8az1TgMSSNMTktKk0d0xItCwHRNl0,233
68
68
  supermemory/types/search_documents_params.py,sha256=cjQcZ1hPMZD5UxfCza2ARB9MaYNA6lITm7ER6vePXNA,4911
69
69
  supermemory/types/search_documents_response.py,sha256=dCQ1UUOALmfPqnUpX_-_kFbV4eHPFcuT1b7AVtLq5y4,1464
@@ -74,7 +74,7 @@ supermemory/types/search_memories_response.py,sha256=FfYDXRccWjMSWi-2sqpM7WHrVk_
74
74
  supermemory/types/setting_get_response.py,sha256=S-I64GR4hnmA8MLzI9Px7Al9Ele9pCkDiGiXiKhKhkg,1724
75
75
  supermemory/types/setting_update_params.py,sha256=3-NcmbhcYesDDw0DC80DuEv_TVF54O45tk0RXjyKAog,1785
76
76
  supermemory/types/setting_update_response.py,sha256=4xXuerIZl6KJjHsvk0l-02Sz3LoYqJfa3IbLiuvuaHE,1882
77
- supermemory-3.2.0.dist-info/METADATA,sha256=iDV52p-WnW_blv1CkIzaSburc1pr6_olUYwY1SU4_8Q,15072
78
- supermemory-3.2.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
79
- supermemory-3.2.0.dist-info/licenses/LICENSE,sha256=M2NcpYEBpakciOULpWzo-xO2Lincf74gGwfaU00Sct0,11341
80
- supermemory-3.2.0.dist-info/RECORD,,
77
+ supermemory-3.3.0.dist-info/METADATA,sha256=mEULq7ccSvttLgrTE0zsDogEFL-UQRBWM7OuDwCofWU,15072
78
+ supermemory-3.3.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
79
+ supermemory-3.3.0.dist-info/licenses/LICENSE,sha256=M2NcpYEBpakciOULpWzo-xO2Lincf74gGwfaU00Sct0,11341
80
+ supermemory-3.3.0.dist-info/RECORD,,