Skip to content

Commit d517cbc

Browse files
feat(api): api update
1 parent fa9f582 commit d517cbc

File tree

6 files changed

+11
-21
lines changed

6 files changed

+11
-21
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-a21611536939732050acbb8df94fea712aaca3d24a0428d97f97d7fd47d585ef.yml
3-
openapi_spec_hash: db614ee0bb0fa13db67364ddf563f2c7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-603f50d7f791edc333ab3daa15187aa28663836e5352171134e747fe25a263e8.yml
3+
openapi_spec_hash: 28dca6595e16eb68600abb339c43783c
44
config_hash: 8477e3ee6fd596ab6ac911d052e4de79

src/supermemory/resources/connections.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ def create(
6464
Initialize connection and get authorization URL
6565
6666
Args:
67-
document_limit: Maximum number of documents to sync from this connection (default: 100,
68-
max: 10000)
69-
7067
extra_headers: Send extra headers
7168
7269
extra_query: Add additional query parameters to the request
@@ -167,9 +164,6 @@ async def create(
167164
Initialize connection and get authorization URL
168165
169166
Args:
170-
document_limit: Maximum number of documents to sync from this connection (default: 100,
171-
max: 10000)
172-
173167
extra_headers: Send extra headers
174168
175169
extra_query: Add additional query parameters to the request

src/supermemory/resources/memories.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ def list(
120120
*,
121121
container_tags: List[str] | NotGiven = NOT_GIVEN,
122122
filters: str | NotGiven = NOT_GIVEN,
123-
limit: str | NotGiven = NOT_GIVEN,
123+
limit: Union[str, float] | NotGiven = NOT_GIVEN,
124124
order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
125-
page: str | NotGiven = NOT_GIVEN,
125+
page: Union[str, float] | NotGiven = NOT_GIVEN,
126126
sort: Literal["createdAt", "updatedAt"] | NotGiven = NOT_GIVEN,
127127
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
128128
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -441,9 +441,9 @@ async def list(
441441
*,
442442
container_tags: List[str] | NotGiven = NOT_GIVEN,
443443
filters: str | NotGiven = NOT_GIVEN,
444-
limit: str | NotGiven = NOT_GIVEN,
444+
limit: Union[str, float] | NotGiven = NOT_GIVEN,
445445
order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
446-
page: str | NotGiven = NOT_GIVEN,
446+
page: Union[str, float] | NotGiven = NOT_GIVEN,
447447
sort: Literal["createdAt", "updatedAt"] | NotGiven = NOT_GIVEN,
448448
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
449449
# The extra values given here take precedence over values defined on the client or passed to this method.

src/supermemory/types/connection_create_params.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ class ConnectionCreateParams(TypedDict, total=False):
1414
container_tags: Annotated[List[str], PropertyInfo(alias="containerTags")]
1515

1616
document_limit: Annotated[int, PropertyInfo(alias="documentLimit")]
17-
"""
18-
Maximum number of documents to sync from this connection (default: 100,
19-
max: 10000)
20-
"""
2117

2218
metadata: Optional[Dict[str, Union[str, float, bool]]]
2319

src/supermemory/types/memory_list_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List
5+
from typing import List, Union
66
from typing_extensions import Literal, Annotated, TypedDict
77

88
from .._utils import PropertyInfo
@@ -21,13 +21,13 @@ class MemoryListParams(TypedDict, total=False):
2121
filters: str
2222
"""Optional filters to apply to the search"""
2323

24-
limit: str
24+
limit: Union[str, float]
2525
"""Number of items per page"""
2626

2727
order: Literal["asc", "desc"]
2828
"""Sort order"""
2929

30-
page: str
30+
page: Union[str, float]
3131
"""Page number to fetch"""
3232

3333
sort: Literal["createdAt", "updatedAt"]

tests/api_resources/test_connections.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: Supermemory) -> None:
3131
connection = client.connections.create(
3232
provider="notion",
3333
container_tags=["string"],
34-
document_limit=100,
34+
document_limit=1,
3535
metadata={"foo": "string"},
3636
redirect_url="redirectUrl",
3737
)
@@ -123,7 +123,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncSupermemor
123123
connection = await async_client.connections.create(
124124
provider="notion",
125125
container_tags=["string"],
126-
document_limit=100,
126+
document_limit=1,
127127
metadata={"foo": "string"},
128128
redirect_url="redirectUrl",
129129
)

0 commit comments

Comments
 (0)