supermemory 3.0.0a28__py3-none-any.whl → 3.0.0a29__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/_models.py +1 -1
- supermemory/_version.py +1 -1
- supermemory/resources/connections.py +7 -7
- supermemory/resources/memories.py +10 -0
- supermemory/types/__init__.py +1 -0
- supermemory/types/connection_import_response.py +7 -0
- supermemory/types/memory_list_params.py +6 -0
- supermemory/types/memory_list_response.py +3 -0
- {supermemory-3.0.0a28.dist-info → supermemory-3.0.0a29.dist-info}/METADATA +1 -1
- {supermemory-3.0.0a28.dist-info → supermemory-3.0.0a29.dist-info}/RECORD +12 -11
- {supermemory-3.0.0a28.dist-info → supermemory-3.0.0a29.dist-info}/WHEEL +0 -0
- {supermemory-3.0.0a28.dist-info → supermemory-3.0.0a29.dist-info}/licenses/LICENSE +0 -0
supermemory/_models.py
CHANGED
|
@@ -304,7 +304,7 @@ class BaseModel(pydantic.BaseModel):
|
|
|
304
304
|
exclude_none=exclude_none,
|
|
305
305
|
)
|
|
306
306
|
|
|
307
|
-
return cast(dict[str, Any], json_safe(dumped)) if mode == "json" else dumped
|
|
307
|
+
return cast("dict[str, Any]", json_safe(dumped)) if mode == "json" else dumped
|
|
308
308
|
|
|
309
309
|
@override
|
|
310
310
|
def model_dump_json(
|
supermemory/_version.py
CHANGED
|
@@ -15,7 +15,7 @@ from ..types import (
|
|
|
15
15
|
connection_list_documents_params,
|
|
16
16
|
connection_delete_by_provider_params,
|
|
17
17
|
)
|
|
18
|
-
from .._types import NOT_GIVEN, Body, Query, Headers,
|
|
18
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
19
19
|
from .._utils import maybe_transform, async_maybe_transform
|
|
20
20
|
from .._compat import cached_property
|
|
21
21
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -293,7 +293,7 @@ class ConnectionsResource(SyncAPIResource):
|
|
|
293
293
|
extra_query: Query | None = None,
|
|
294
294
|
extra_body: Body | None = None,
|
|
295
295
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
296
|
-
) ->
|
|
296
|
+
) -> str:
|
|
297
297
|
"""
|
|
298
298
|
Initiate a manual sync of connections
|
|
299
299
|
|
|
@@ -310,14 +310,14 @@ class ConnectionsResource(SyncAPIResource):
|
|
|
310
310
|
"""
|
|
311
311
|
if not provider:
|
|
312
312
|
raise ValueError(f"Expected a non-empty value for `provider` but received {provider!r}")
|
|
313
|
-
extra_headers = {"Accept": "
|
|
313
|
+
extra_headers = {"Accept": "text/plain", **(extra_headers or {})}
|
|
314
314
|
return self._post(
|
|
315
315
|
f"/v3/connections/{provider}/import",
|
|
316
316
|
body=maybe_transform({"container_tags": container_tags}, connection_import_params.ConnectionImportParams),
|
|
317
317
|
options=make_request_options(
|
|
318
318
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
319
319
|
),
|
|
320
|
-
cast_to=
|
|
320
|
+
cast_to=str,
|
|
321
321
|
)
|
|
322
322
|
|
|
323
323
|
def list_documents(
|
|
@@ -618,7 +618,7 @@ class AsyncConnectionsResource(AsyncAPIResource):
|
|
|
618
618
|
extra_query: Query | None = None,
|
|
619
619
|
extra_body: Body | None = None,
|
|
620
620
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
621
|
-
) ->
|
|
621
|
+
) -> str:
|
|
622
622
|
"""
|
|
623
623
|
Initiate a manual sync of connections
|
|
624
624
|
|
|
@@ -635,7 +635,7 @@ class AsyncConnectionsResource(AsyncAPIResource):
|
|
|
635
635
|
"""
|
|
636
636
|
if not provider:
|
|
637
637
|
raise ValueError(f"Expected a non-empty value for `provider` but received {provider!r}")
|
|
638
|
-
extra_headers = {"Accept": "
|
|
638
|
+
extra_headers = {"Accept": "text/plain", **(extra_headers or {})}
|
|
639
639
|
return await self._post(
|
|
640
640
|
f"/v3/connections/{provider}/import",
|
|
641
641
|
body=await async_maybe_transform(
|
|
@@ -644,7 +644,7 @@ class AsyncConnectionsResource(AsyncAPIResource):
|
|
|
644
644
|
options=make_request_options(
|
|
645
645
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
646
646
|
),
|
|
647
|
-
cast_to=
|
|
647
|
+
cast_to=str,
|
|
648
648
|
)
|
|
649
649
|
|
|
650
650
|
async def list_documents(
|
|
@@ -126,6 +126,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
126
126
|
*,
|
|
127
127
|
container_tags: List[str] | NotGiven = NOT_GIVEN,
|
|
128
128
|
filters: str | NotGiven = NOT_GIVEN,
|
|
129
|
+
include_content: bool | NotGiven = NOT_GIVEN,
|
|
129
130
|
limit: Union[str, float] | NotGiven = NOT_GIVEN,
|
|
130
131
|
order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
|
|
131
132
|
page: Union[str, float] | NotGiven = NOT_GIVEN,
|
|
@@ -146,6 +147,9 @@ class MemoriesResource(SyncAPIResource):
|
|
|
146
147
|
|
|
147
148
|
filters: Optional filters to apply to the search
|
|
148
149
|
|
|
150
|
+
include_content: Whether to include the content field in the response. Warning: This can make
|
|
151
|
+
responses significantly larger.
|
|
152
|
+
|
|
149
153
|
limit: Number of items per page
|
|
150
154
|
|
|
151
155
|
order: Sort order
|
|
@@ -168,6 +172,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
168
172
|
{
|
|
169
173
|
"container_tags": container_tags,
|
|
170
174
|
"filters": filters,
|
|
175
|
+
"include_content": include_content,
|
|
171
176
|
"limit": limit,
|
|
172
177
|
"order": order,
|
|
173
178
|
"page": page,
|
|
@@ -462,6 +467,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
462
467
|
*,
|
|
463
468
|
container_tags: List[str] | NotGiven = NOT_GIVEN,
|
|
464
469
|
filters: str | NotGiven = NOT_GIVEN,
|
|
470
|
+
include_content: bool | NotGiven = NOT_GIVEN,
|
|
465
471
|
limit: Union[str, float] | NotGiven = NOT_GIVEN,
|
|
466
472
|
order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
|
|
467
473
|
page: Union[str, float] | NotGiven = NOT_GIVEN,
|
|
@@ -482,6 +488,9 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
482
488
|
|
|
483
489
|
filters: Optional filters to apply to the search
|
|
484
490
|
|
|
491
|
+
include_content: Whether to include the content field in the response. Warning: This can make
|
|
492
|
+
responses significantly larger.
|
|
493
|
+
|
|
485
494
|
limit: Number of items per page
|
|
486
495
|
|
|
487
496
|
order: Sort order
|
|
@@ -504,6 +513,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
504
513
|
{
|
|
505
514
|
"container_tags": container_tags,
|
|
506
515
|
"filters": filters,
|
|
516
|
+
"include_content": include_content,
|
|
507
517
|
"limit": limit,
|
|
508
518
|
"order": order,
|
|
509
519
|
"page": page,
|
supermemory/types/__init__.py
CHANGED
|
@@ -24,6 +24,7 @@ from .search_memories_response import SearchMemoriesResponse as SearchMemoriesRe
|
|
|
24
24
|
from .memory_upload_file_params import MemoryUploadFileParams as MemoryUploadFileParams
|
|
25
25
|
from .search_documents_response import SearchDocumentsResponse as SearchDocumentsResponse
|
|
26
26
|
from .connection_create_response import ConnectionCreateResponse as ConnectionCreateResponse
|
|
27
|
+
from .connection_import_response import ConnectionImportResponse as ConnectionImportResponse
|
|
27
28
|
from .memory_upload_file_response import MemoryUploadFileResponse as MemoryUploadFileResponse
|
|
28
29
|
from .connection_get_by_id_response import ConnectionGetByIDResponse as ConnectionGetByIDResponse
|
|
29
30
|
from .connection_get_by_tags_params import ConnectionGetByTagsParams as ConnectionGetByTagsParams
|
|
@@ -21,6 +21,12 @@ class MemoryListParams(TypedDict, total=False):
|
|
|
21
21
|
filters: str
|
|
22
22
|
"""Optional filters to apply to the search"""
|
|
23
23
|
|
|
24
|
+
include_content: Annotated[bool, PropertyInfo(alias="includeContent")]
|
|
25
|
+
"""Whether to include the content field in the response.
|
|
26
|
+
|
|
27
|
+
Warning: This can make responses significantly larger.
|
|
28
|
+
"""
|
|
29
|
+
|
|
24
30
|
limit: Union[str, float]
|
|
25
31
|
"""Number of items per page"""
|
|
26
32
|
|
|
@@ -73,6 +73,9 @@ class Memory(BaseModel):
|
|
|
73
73
|
to use to group memories.
|
|
74
74
|
"""
|
|
75
75
|
|
|
76
|
+
content: Optional[str] = None
|
|
77
|
+
"""Content of the memory (only included when includeContent=true)"""
|
|
78
|
+
|
|
76
79
|
|
|
77
80
|
class Pagination(BaseModel):
|
|
78
81
|
current_page: float = FieldInfo(alias="currentPage")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: supermemory
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.0a29
|
|
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
|
|
@@ -5,13 +5,13 @@ supermemory/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
|
|
5
5
|
supermemory/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
|
6
6
|
supermemory/_exceptions.py,sha256=5nnX7W8L_eA6LkX3SBl7csJy5d9QEcDqRVuwDq8wVh8,3230
|
|
7
7
|
supermemory/_files.py,sha256=9QITJCyATjxJqhMXckfLrrOKltxCpKhbrlZX_NcL9WQ,3616
|
|
8
|
-
supermemory/_models.py,sha256=
|
|
8
|
+
supermemory/_models.py,sha256=6rDtUmk6jhjGN1q96CUICYfBunNXNhhEk_AqztTm3uE,30012
|
|
9
9
|
supermemory/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
|
10
10
|
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=ohS8PFDHBFM-0ua6YsUlS55BPHft3xY6DhiIKaYrlN0,6202
|
|
14
|
-
supermemory/_version.py,sha256=
|
|
14
|
+
supermemory/_version.py,sha256=qFvS0PVsZ9Uno1oiivttJLLRfriiSCWkl--d6PE2AgQ,172
|
|
15
15
|
supermemory/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
supermemory/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
|
17
17
|
supermemory/_utils/_logs.py,sha256=iceljYaEUb4Q4q1SgbSzwSrlJA64ISbaccczzZ8Z9Vg,789
|
|
@@ -25,11 +25,11 @@ supermemory/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0XcnjtY
|
|
|
25
25
|
supermemory/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
|
|
26
26
|
supermemory/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
27
27
|
supermemory/resources/__init__.py,sha256=c1dal-ngMY7gwIf9PDPapYx6rHi670pREX5t3_d6298,2019
|
|
28
|
-
supermemory/resources/connections.py,sha256
|
|
29
|
-
supermemory/resources/memories.py,sha256=
|
|
28
|
+
supermemory/resources/connections.py,sha256=_6uUtigQ28Ov8gbxHi1AKt5CsqGFQ26k2x4m1im6Iyc,33191
|
|
29
|
+
supermemory/resources/memories.py,sha256=8r_yrX90NAsJQTriVZ_BO6kjFNrbcwj2Z4YKvwlqxRg,32714
|
|
30
30
|
supermemory/resources/search.py,sha256=Lp1SchUinbM9AyvKghz4SCqFEohr5KZTegWMqF4po2I,28497
|
|
31
31
|
supermemory/resources/settings.py,sha256=tLM7ya1CEYI_TO8DMP_KLxXHqsxOeq3R3Xs4CQnvPuU,11855
|
|
32
|
-
supermemory/types/__init__.py,sha256=
|
|
32
|
+
supermemory/types/__init__.py,sha256=dFnf8B_y5Lgjk4Rbsec91KQHA_sj6KfYqTtXw-P-cZ4,2968
|
|
33
33
|
supermemory/types/connection_create_params.py,sha256=bYYKu3ns60PX6Mt34UQUpYwThB3SBZsKn5tW0c46DUM,630
|
|
34
34
|
supermemory/types/connection_create_response.py,sha256=i4sb0DSRs7wVVd8xDBOtr7vw-YbaeZ7MydlQLYvlvJs,468
|
|
35
35
|
supermemory/types/connection_delete_by_id_response.py,sha256=guD1vxqV2wiQnwnWCZSQH0z2HYXQOtvicRzouPVkHXA,243
|
|
@@ -39,6 +39,7 @@ supermemory/types/connection_get_by_id_response.py,sha256=H0xkm41aGnhzN29iPWit9x
|
|
|
39
39
|
supermemory/types/connection_get_by_tags_params.py,sha256=kPQfi7nrM3DbarVx8_Nlq20hVEqelPmfouizAZ6NHDY,504
|
|
40
40
|
supermemory/types/connection_get_by_tags_response.py,sha256=EX5wP1PHFO5uurKiTacudDX3Syp65TUJLN2KVZrb9QE,654
|
|
41
41
|
supermemory/types/connection_import_params.py,sha256=HbMAE6vjmhpJk4shqa9d78hxh_q3J6hdST8GUKGEopM,488
|
|
42
|
+
supermemory/types/connection_import_response.py,sha256=W3Jn98_wmYGSAr4H553uoiutdWL49-myc6MDa0mFEog,210
|
|
42
43
|
supermemory/types/connection_list_documents_params.py,sha256=pXMe7sDpqSwBVjPsY2qyTep6rlnfnzE150WdY0-CnOU,500
|
|
43
44
|
supermemory/types/connection_list_documents_response.py,sha256=0IdHufx0yErjfmoXYeY0KJ2QID9C-_58joyGEuu8gd4,682
|
|
44
45
|
supermemory/types/connection_list_params.py,sha256=E0thiUUlyGHeLmb-iAbat1vl8BOqaqCOPDjtYolKkng,482
|
|
@@ -46,8 +47,8 @@ supermemory/types/connection_list_response.py,sha256=D4mYePuR9NAGMDkbgDncN-KjulL
|
|
|
46
47
|
supermemory/types/memory_add_params.py,sha256=UFlCZ1BrXvmoNwYPUoZ_aTyAPD3vKxMwiL2_Cme1toY,1805
|
|
47
48
|
supermemory/types/memory_add_response.py,sha256=5lim8sVXM7WzG8tUuKORHEe2lJc6yVWvyjylzNsLGjw,219
|
|
48
49
|
supermemory/types/memory_get_response.py,sha256=qWe-mdEBA-d-zklNnsbULSlGax3KXBMHlyLTPpNglFg,3164
|
|
49
|
-
supermemory/types/memory_list_params.py,sha256=
|
|
50
|
-
supermemory/types/memory_list_response.py,sha256=
|
|
50
|
+
supermemory/types/memory_list_params.py,sha256=lL3x_iPXJe_loTbqnBB30y24hno-WWLaB8VXLbfQ-RE,1119
|
|
51
|
+
supermemory/types/memory_list_response.py,sha256=ybKyVGTz3MGLwmert6yNb88XpvGItcj4DQtrJFSwgaE,2728
|
|
51
52
|
supermemory/types/memory_update_params.py,sha256=Ln-Z_oAF9XQN0aA_oxkRcHVJ7eBSMhZ1XvRR5kyUliM,1811
|
|
52
53
|
supermemory/types/memory_update_response.py,sha256=fvfO9lGM8xv2EUOQfOSxqig6fx6-ykq7syW69er_2ng,225
|
|
53
54
|
supermemory/types/memory_upload_file_params.py,sha256=jE3IxTOsFiuVQsi8b-ql5Q4ZT5HJG2X1ysL8mHCgdLQ,447
|
|
@@ -61,7 +62,7 @@ supermemory/types/search_memories_response.py,sha256=oXy9qe9Ri-WAUcpU3RzwuHgH-_D
|
|
|
61
62
|
supermemory/types/setting_get_response.py,sha256=WvgAb9zGMsMnAhLiYk6h5NBptnq0D06TnuoI4EJg5Ds,1648
|
|
62
63
|
supermemory/types/setting_update_params.py,sha256=KsreaS35v25aRKBY5vHna3hZ31U3b1Q5ruQLoM0gcyE,1710
|
|
63
64
|
supermemory/types/setting_update_response.py,sha256=F__RcFFWiiSw11IV8PsWn6POEb1crDwO8QwHEQToVuQ,1806
|
|
64
|
-
supermemory-3.0.
|
|
65
|
-
supermemory-3.0.
|
|
66
|
-
supermemory-3.0.
|
|
67
|
-
supermemory-3.0.
|
|
65
|
+
supermemory-3.0.0a29.dist-info/METADATA,sha256=xRBV-d3_6ke5t8uE9WzeML1GDD4dCwVFmILyXzA4PSE,14689
|
|
66
|
+
supermemory-3.0.0a29.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
67
|
+
supermemory-3.0.0a29.dist-info/licenses/LICENSE,sha256=M2NcpYEBpakciOULpWzo-xO2Lincf74gGwfaU00Sct0,11341
|
|
68
|
+
supermemory-3.0.0a29.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|