supermemory 3.0.0a20__py3-none-any.whl → 3.0.0a21__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-3.0.0a20.dist-info → supermemory-3.0.0a21.dist-info}/METADATA +1 -1
- {supermemory-3.0.0a20.dist-info → supermemory-3.0.0a21.dist-info}/RECORD +12 -11
- supermemory_new/_version.py +1 -1
- supermemory_new/resources/connections.py +79 -0
- supermemory_new/resources/settings.py +0 -4
- supermemory_new/types/__init__.py +1 -0
- supermemory_new/types/connection_delete_by_id_response.py +11 -0
- supermemory_new/types/setting_get_response.py +0 -4
- supermemory_new/types/setting_update_params.py +0 -4
- supermemory_new/types/setting_update_response.py +0 -4
- {supermemory-3.0.0a20.dist-info → supermemory-3.0.0a21.dist-info}/WHEEL +0 -0
- {supermemory-3.0.0a20.dist-info → supermemory-3.0.0a21.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: supermemory
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.0a21
|
|
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_new/_resource.py,sha256=_wuaB1exMy-l-qqdJJdTv15hH5qBSN2Rj9CFwjXTZJU,
|
|
|
11
11
|
supermemory_new/_response.py,sha256=eeakb78kSNha9ybvYHYWEaIQnY4vqWoUjyUUrHJG8gM,28864
|
|
12
12
|
supermemory_new/_streaming.py,sha256=MGbosxSTqq0_JG52hvH2Z-Mr_Y95ws5UdFw77_iYukc,10120
|
|
13
13
|
supermemory_new/_types.py,sha256=fNeozFqUS0Y6kr4ZCiV-Lxl0s9ltl-l6IkETfdQx3NA,6206
|
|
14
|
-
supermemory_new/_version.py,sha256=
|
|
14
|
+
supermemory_new/_version.py,sha256=r00qCdgYnQbqCCKkxXstMb_ms-kXpzBllFUlYyEV-bc,176
|
|
15
15
|
supermemory_new/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
supermemory_new/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
|
17
17
|
supermemory_new/_utils/_logs.py,sha256=lzHhWp9VDelSwSGNWIkqO8CB4mBOYVjcCSZ7VFIIE3s,797
|
|
@@ -25,13 +25,14 @@ supermemory_new/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0Xc
|
|
|
25
25
|
supermemory_new/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
|
|
26
26
|
supermemory_new/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
27
27
|
supermemory_new/resources/__init__.py,sha256=c1dal-ngMY7gwIf9PDPapYx6rHi670pREX5t3_d6298,2019
|
|
28
|
-
supermemory_new/resources/connections.py,sha256
|
|
28
|
+
supermemory_new/resources/connections.py,sha256=-DabGIc4_3qFvFRmBOdHGtu4NkaUOaYz3y50CjpqMKQ,33199
|
|
29
29
|
supermemory_new/resources/memories.py,sha256=CfPV7qua5Rn-Yhf-UbaNpoSctQK1o86IJqoDzSTRcUo,26349
|
|
30
30
|
supermemory_new/resources/search.py,sha256=9JIv99mPiAlWCEZ41QxAzN4bteCwyo6UCEL3Our-flo,12546
|
|
31
|
-
supermemory_new/resources/settings.py,sha256=
|
|
32
|
-
supermemory_new/types/__init__.py,sha256=
|
|
31
|
+
supermemory_new/resources/settings.py,sha256=tLM7ya1CEYI_TO8DMP_KLxXHqsxOeq3R3Xs4CQnvPuU,11855
|
|
32
|
+
supermemory_new/types/__init__.py,sha256=ufEnLZv6LSfCqlxj6R7HDKYZvbnDQdYMpMBTfY8cj6c,2351
|
|
33
33
|
supermemory_new/types/connection_create_params.py,sha256=bYYKu3ns60PX6Mt34UQUpYwThB3SBZsKn5tW0c46DUM,630
|
|
34
34
|
supermemory_new/types/connection_create_response.py,sha256=i4sb0DSRs7wVVd8xDBOtr7vw-YbaeZ7MydlQLYvlvJs,468
|
|
35
|
+
supermemory_new/types/connection_delete_by_id_response.py,sha256=guD1vxqV2wiQnwnWCZSQH0z2HYXQOtvicRzouPVkHXA,243
|
|
35
36
|
supermemory_new/types/connection_delete_by_provider_params.py,sha256=VnVud6ADbvdYY37BqZ8T-s3wC4xuvbiztge96OuzigM,528
|
|
36
37
|
supermemory_new/types/connection_delete_by_provider_response.py,sha256=PgMQuSIhVFSF2LVa0FBei2bj3gyVRB7FyOi_-M-Rugc,255
|
|
37
38
|
supermemory_new/types/connection_get_by_id_response.py,sha256=IDJYDLxiuun1XiOdEnENe78zQIbM6YJy2IW3X7mStAA,614
|
|
@@ -51,10 +52,10 @@ supermemory_new/types/memory_update_params.py,sha256=swEIF-CfcxWGzsiT8O_Abtzkyuj
|
|
|
51
52
|
supermemory_new/types/memory_update_response.py,sha256=fvfO9lGM8xv2EUOQfOSxqig6fx6-ykq7syW69er_2ng,225
|
|
52
53
|
supermemory_new/types/search_execute_params.py,sha256=8JRtcQ7G1TmG9JW-f1XwNmvT1llM6FsPx0kkQN1Ellw,3130
|
|
53
54
|
supermemory_new/types/search_execute_response.py,sha256=iyKh6SHeInl8BYIlvPVWXhfHBjrO6AgWt-1E76Dk8xw,1295
|
|
54
|
-
supermemory_new/types/setting_get_response.py,sha256=
|
|
55
|
-
supermemory_new/types/setting_update_params.py,sha256=
|
|
56
|
-
supermemory_new/types/setting_update_response.py,sha256=
|
|
57
|
-
supermemory-3.0.
|
|
58
|
-
supermemory-3.0.
|
|
59
|
-
supermemory-3.0.
|
|
60
|
-
supermemory-3.0.
|
|
55
|
+
supermemory_new/types/setting_get_response.py,sha256=WvgAb9zGMsMnAhLiYk6h5NBptnq0D06TnuoI4EJg5Ds,1648
|
|
56
|
+
supermemory_new/types/setting_update_params.py,sha256=KsreaS35v25aRKBY5vHna3hZ31U3b1Q5ruQLoM0gcyE,1710
|
|
57
|
+
supermemory_new/types/setting_update_response.py,sha256=F__RcFFWiiSw11IV8PsWn6POEb1crDwO8QwHEQToVuQ,1806
|
|
58
|
+
supermemory-3.0.0a21.dist-info/METADATA,sha256=eaHbiskX_I8ENctSMgJYzoQh9Ic0q9aD7nni7PBWgWY,14348
|
|
59
|
+
supermemory-3.0.0a21.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
60
|
+
supermemory-3.0.0a21.dist-info/licenses/LICENSE,sha256=M2NcpYEBpakciOULpWzo-xO2Lincf74gGwfaU00Sct0,11341
|
|
61
|
+
supermemory-3.0.0a21.dist-info/RECORD,,
|
supermemory_new/_version.py
CHANGED
|
@@ -30,6 +30,7 @@ from ..types.connection_list_response import ConnectionListResponse
|
|
|
30
30
|
from ..types.connection_create_response import ConnectionCreateResponse
|
|
31
31
|
from ..types.connection_get_by_id_response import ConnectionGetByIDResponse
|
|
32
32
|
from ..types.connection_get_by_tags_response import ConnectionGetByTagsResponse
|
|
33
|
+
from ..types.connection_delete_by_id_response import ConnectionDeleteByIDResponse
|
|
33
34
|
from ..types.connection_list_documents_response import ConnectionListDocumentsResponse
|
|
34
35
|
from ..types.connection_delete_by_provider_response import ConnectionDeleteByProviderResponse
|
|
35
36
|
|
|
@@ -136,6 +137,39 @@ class ConnectionsResource(SyncAPIResource):
|
|
|
136
137
|
cast_to=ConnectionListResponse,
|
|
137
138
|
)
|
|
138
139
|
|
|
140
|
+
def delete_by_id(
|
|
141
|
+
self,
|
|
142
|
+
connection_id: str,
|
|
143
|
+
*,
|
|
144
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
145
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
146
|
+
extra_headers: Headers | None = None,
|
|
147
|
+
extra_query: Query | None = None,
|
|
148
|
+
extra_body: Body | None = None,
|
|
149
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
150
|
+
) -> ConnectionDeleteByIDResponse:
|
|
151
|
+
"""
|
|
152
|
+
Delete a specific connection by ID
|
|
153
|
+
|
|
154
|
+
Args:
|
|
155
|
+
extra_headers: Send extra headers
|
|
156
|
+
|
|
157
|
+
extra_query: Add additional query parameters to the request
|
|
158
|
+
|
|
159
|
+
extra_body: Add additional JSON properties to the request
|
|
160
|
+
|
|
161
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
162
|
+
"""
|
|
163
|
+
if not connection_id:
|
|
164
|
+
raise ValueError(f"Expected a non-empty value for `connection_id` but received {connection_id!r}")
|
|
165
|
+
return self._delete(
|
|
166
|
+
f"/v3/connections/{connection_id}",
|
|
167
|
+
options=make_request_options(
|
|
168
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
169
|
+
),
|
|
170
|
+
cast_to=ConnectionDeleteByIDResponse,
|
|
171
|
+
)
|
|
172
|
+
|
|
139
173
|
def delete_by_provider(
|
|
140
174
|
self,
|
|
141
175
|
provider: Literal["notion", "google-drive", "onedrive"],
|
|
@@ -428,6 +462,39 @@ class AsyncConnectionsResource(AsyncAPIResource):
|
|
|
428
462
|
cast_to=ConnectionListResponse,
|
|
429
463
|
)
|
|
430
464
|
|
|
465
|
+
async def delete_by_id(
|
|
466
|
+
self,
|
|
467
|
+
connection_id: str,
|
|
468
|
+
*,
|
|
469
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
470
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
471
|
+
extra_headers: Headers | None = None,
|
|
472
|
+
extra_query: Query | None = None,
|
|
473
|
+
extra_body: Body | None = None,
|
|
474
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
475
|
+
) -> ConnectionDeleteByIDResponse:
|
|
476
|
+
"""
|
|
477
|
+
Delete a specific connection by ID
|
|
478
|
+
|
|
479
|
+
Args:
|
|
480
|
+
extra_headers: Send extra headers
|
|
481
|
+
|
|
482
|
+
extra_query: Add additional query parameters to the request
|
|
483
|
+
|
|
484
|
+
extra_body: Add additional JSON properties to the request
|
|
485
|
+
|
|
486
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
487
|
+
"""
|
|
488
|
+
if not connection_id:
|
|
489
|
+
raise ValueError(f"Expected a non-empty value for `connection_id` but received {connection_id!r}")
|
|
490
|
+
return await self._delete(
|
|
491
|
+
f"/v3/connections/{connection_id}",
|
|
492
|
+
options=make_request_options(
|
|
493
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
494
|
+
),
|
|
495
|
+
cast_to=ConnectionDeleteByIDResponse,
|
|
496
|
+
)
|
|
497
|
+
|
|
431
498
|
async def delete_by_provider(
|
|
432
499
|
self,
|
|
433
500
|
provider: Literal["notion", "google-drive", "onedrive"],
|
|
@@ -630,6 +697,9 @@ class ConnectionsResourceWithRawResponse:
|
|
|
630
697
|
self.list = to_raw_response_wrapper(
|
|
631
698
|
connections.list,
|
|
632
699
|
)
|
|
700
|
+
self.delete_by_id = to_raw_response_wrapper(
|
|
701
|
+
connections.delete_by_id,
|
|
702
|
+
)
|
|
633
703
|
self.delete_by_provider = to_raw_response_wrapper(
|
|
634
704
|
connections.delete_by_provider,
|
|
635
705
|
)
|
|
@@ -657,6 +727,9 @@ class AsyncConnectionsResourceWithRawResponse:
|
|
|
657
727
|
self.list = async_to_raw_response_wrapper(
|
|
658
728
|
connections.list,
|
|
659
729
|
)
|
|
730
|
+
self.delete_by_id = async_to_raw_response_wrapper(
|
|
731
|
+
connections.delete_by_id,
|
|
732
|
+
)
|
|
660
733
|
self.delete_by_provider = async_to_raw_response_wrapper(
|
|
661
734
|
connections.delete_by_provider,
|
|
662
735
|
)
|
|
@@ -684,6 +757,9 @@ class ConnectionsResourceWithStreamingResponse:
|
|
|
684
757
|
self.list = to_streamed_response_wrapper(
|
|
685
758
|
connections.list,
|
|
686
759
|
)
|
|
760
|
+
self.delete_by_id = to_streamed_response_wrapper(
|
|
761
|
+
connections.delete_by_id,
|
|
762
|
+
)
|
|
687
763
|
self.delete_by_provider = to_streamed_response_wrapper(
|
|
688
764
|
connections.delete_by_provider,
|
|
689
765
|
)
|
|
@@ -711,6 +787,9 @@ class AsyncConnectionsResourceWithStreamingResponse:
|
|
|
711
787
|
self.list = async_to_streamed_response_wrapper(
|
|
712
788
|
connections.list,
|
|
713
789
|
)
|
|
790
|
+
self.delete_by_id = async_to_streamed_response_wrapper(
|
|
791
|
+
connections.delete_by_id,
|
|
792
|
+
)
|
|
714
793
|
self.delete_by_provider = async_to_streamed_response_wrapper(
|
|
715
794
|
connections.delete_by_provider,
|
|
716
795
|
)
|
|
@@ -49,7 +49,6 @@ class SettingsResource(SyncAPIResource):
|
|
|
49
49
|
*,
|
|
50
50
|
exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
|
|
51
51
|
filter_prompt: Optional[str] | NotGiven = NOT_GIVEN,
|
|
52
|
-
filter_tags: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
|
|
53
52
|
google_drive_client_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
54
53
|
google_drive_client_secret: Optional[str] | NotGiven = NOT_GIVEN,
|
|
55
54
|
google_drive_custom_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
|
|
@@ -86,7 +85,6 @@ class SettingsResource(SyncAPIResource):
|
|
|
86
85
|
{
|
|
87
86
|
"exclude_items": exclude_items,
|
|
88
87
|
"filter_prompt": filter_prompt,
|
|
89
|
-
"filter_tags": filter_tags,
|
|
90
88
|
"google_drive_client_id": google_drive_client_id,
|
|
91
89
|
"google_drive_client_secret": google_drive_client_secret,
|
|
92
90
|
"google_drive_custom_key_enabled": google_drive_custom_key_enabled,
|
|
@@ -152,7 +150,6 @@ class AsyncSettingsResource(AsyncAPIResource):
|
|
|
152
150
|
*,
|
|
153
151
|
exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
|
|
154
152
|
filter_prompt: Optional[str] | NotGiven = NOT_GIVEN,
|
|
155
|
-
filter_tags: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
|
|
156
153
|
google_drive_client_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
157
154
|
google_drive_client_secret: Optional[str] | NotGiven = NOT_GIVEN,
|
|
158
155
|
google_drive_custom_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
|
|
@@ -189,7 +186,6 @@ class AsyncSettingsResource(AsyncAPIResource):
|
|
|
189
186
|
{
|
|
190
187
|
"exclude_items": exclude_items,
|
|
191
188
|
"filter_prompt": filter_prompt,
|
|
192
|
-
"filter_tags": filter_tags,
|
|
193
189
|
"google_drive_client_id": google_drive_client_id,
|
|
194
190
|
"google_drive_client_secret": google_drive_client_secret,
|
|
195
191
|
"google_drive_custom_key_enabled": google_drive_custom_key_enabled,
|
|
@@ -22,6 +22,7 @@ from .connection_create_response import ConnectionCreateResponse as ConnectionCr
|
|
|
22
22
|
from .connection_get_by_id_response import ConnectionGetByIDResponse as ConnectionGetByIDResponse
|
|
23
23
|
from .connection_get_by_tags_params import ConnectionGetByTagsParams as ConnectionGetByTagsParams
|
|
24
24
|
from .connection_get_by_tags_response import ConnectionGetByTagsResponse as ConnectionGetByTagsResponse
|
|
25
|
+
from .connection_delete_by_id_response import ConnectionDeleteByIDResponse as ConnectionDeleteByIDResponse
|
|
25
26
|
from .connection_list_documents_params import ConnectionListDocumentsParams as ConnectionListDocumentsParams
|
|
26
27
|
from .connection_list_documents_response import ConnectionListDocumentsResponse as ConnectionListDocumentsResponse
|
|
27
28
|
from .connection_delete_by_provider_params import ConnectionDeleteByProviderParams as ConnectionDeleteByProviderParams
|
|
@@ -16,10 +16,6 @@ class SettingGetResponse(BaseModel):
|
|
|
16
16
|
|
|
17
17
|
filter_prompt: Optional[str] = FieldInfo(alias="filterPrompt", default=None)
|
|
18
18
|
|
|
19
|
-
filter_tags: Union[str, float, bool, Dict[str, object], List[object], None] = FieldInfo(
|
|
20
|
-
alias="filterTags", default=None
|
|
21
|
-
)
|
|
22
|
-
|
|
23
19
|
google_drive_client_id: Optional[str] = FieldInfo(alias="googleDriveClientId", default=None)
|
|
24
20
|
|
|
25
21
|
google_drive_client_secret: Optional[str] = FieldInfo(alias="googleDriveClientSecret", default=None)
|
|
@@ -17,10 +17,6 @@ class SettingUpdateParams(TypedDict, total=False):
|
|
|
17
17
|
|
|
18
18
|
filter_prompt: Annotated[Optional[str], PropertyInfo(alias="filterPrompt")]
|
|
19
19
|
|
|
20
|
-
filter_tags: Annotated[
|
|
21
|
-
Union[str, float, bool, Dict[str, object], Iterable[object], None], PropertyInfo(alias="filterTags")
|
|
22
|
-
]
|
|
23
|
-
|
|
24
20
|
google_drive_client_id: Annotated[Optional[str], PropertyInfo(alias="googleDriveClientId")]
|
|
25
21
|
|
|
26
22
|
google_drive_client_secret: Annotated[Optional[str], PropertyInfo(alias="googleDriveClientSecret")]
|
|
@@ -16,10 +16,6 @@ class Updated(BaseModel):
|
|
|
16
16
|
|
|
17
17
|
filter_prompt: Optional[str] = FieldInfo(alias="filterPrompt", default=None)
|
|
18
18
|
|
|
19
|
-
filter_tags: Union[str, float, bool, Dict[str, object], List[object], None] = FieldInfo(
|
|
20
|
-
alias="filterTags", default=None
|
|
21
|
-
)
|
|
22
|
-
|
|
23
19
|
google_drive_client_id: Optional[str] = FieldInfo(alias="googleDriveClientId", default=None)
|
|
24
20
|
|
|
25
21
|
google_drive_client_secret: Optional[str] = FieldInfo(alias="googleDriveClientSecret", default=None)
|
|
File without changes
|
|
File without changes
|