Skip to content

Commit ab60a76

Browse files
feat(api): api update
1 parent 0950bae commit ab60a76

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-10c98134d24013fd174c40fd595c7986b984cffa71cad4d3ef9fe199e7f565ab.yml
3-
openapi_spec_hash: b5ee093b1cbbf9c32277d92c0222ff62
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-5d883c307659b317ca9a27ffd4e98855210c7030167bc79f4727412266c8e53b.yml
3+
openapi_spec_hash: 4e5b35c97838082939b19a24d9472ffd
44
config_hash: f3eb5ca71172780678106f6d46f15dda

src/supermemory/resources/connections.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def resources(
417417
connection_id: str,
418418
*,
419419
page: float | Omit = omit,
420+
parent_id: str | Omit = omit,
420421
per_page: float | Omit = omit,
421422
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
422423
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -449,6 +450,7 @@ def resources(
449450
query=maybe_transform(
450451
{
451452
"page": page,
453+
"parent_id": parent_id,
452454
"per_page": per_page,
453455
},
454456
connection_resources_params.ConnectionResourcesParams,
@@ -839,6 +841,7 @@ async def resources(
839841
connection_id: str,
840842
*,
841843
page: float | Omit = omit,
844+
parent_id: str | Omit = omit,
842845
per_page: float | Omit = omit,
843846
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
844847
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -871,6 +874,7 @@ async def resources(
871874
query=await async_maybe_transform(
872875
{
873876
"page": page,
877+
"parent_id": parent_id,
874878
"per_page": per_page,
875879
},
876880
connection_resources_params.ConnectionResourcesParams,

src/supermemory/types/connection_resources_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010
class ConnectionResourcesParams(TypedDict, total=False):
1111
page: float
1212

13+
parent_id: str
14+
1315
per_page: float

tests/api_resources/test_connections.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ def test_method_resources_with_all_params(self, client: Supermemory) -> None:
423423
connection = client.connections.resources(
424424
connection_id="connectionId",
425425
page=0,
426+
parent_id="parent_id",
426427
per_page=0,
427428
)
428429
assert_matches_type(ConnectionResourcesResponse, connection, path=["response"])
@@ -863,6 +864,7 @@ async def test_method_resources_with_all_params(self, async_client: AsyncSuperme
863864
connection = await async_client.connections.resources(
864865
connection_id="connectionId",
865866
page=0,
867+
parent_id="parent_id",
866868
per_page=0,
867869
)
868870
assert_matches_type(ConnectionResourcesResponse, connection, path=["response"])

0 commit comments

Comments
 (0)