From 1dde2754b5062ccd4b76702f3500e3037b18ebee Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Wed, 14 Aug 2024 03:12:20 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API --- .stats.yml | 2 +- src/runloop_api_client/resources/functions/invocations.py | 4 ++-- .../types/functions/invocation_list_params.py | 2 +- tests/api_resources/functions/test_invocations.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6dc704897..9068a9902 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 22 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-dee1779e10f5321966423c3d22dc8864e5ace072c86065e2144e81d71d1ad528.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-f8e5f5af651b36c2ceed0edd7ad24bc9227ebd55a782be369428c38bde32c3d2.yml diff --git a/src/runloop_api_client/resources/functions/invocations.py b/src/runloop_api_client/resources/functions/invocations.py index b519df35a..59491d1e7 100644 --- a/src/runloop_api_client/resources/functions/invocations.py +++ b/src/runloop_api_client/resources/functions/invocations.py @@ -72,7 +72,7 @@ def retrieve( def list( self, *, - limit: str | NotGiven = NOT_GIVEN, + limit: int | NotGiven = NOT_GIVEN, starting_after: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -197,7 +197,7 @@ async def retrieve( async def list( self, *, - limit: str | NotGiven = NOT_GIVEN, + limit: int | NotGiven = NOT_GIVEN, starting_after: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. diff --git a/src/runloop_api_client/types/functions/invocation_list_params.py b/src/runloop_api_client/types/functions/invocation_list_params.py index dad6156bd..5ad136ee1 100644 --- a/src/runloop_api_client/types/functions/invocation_list_params.py +++ b/src/runloop_api_client/types/functions/invocation_list_params.py @@ -8,7 +8,7 @@ class InvocationListParams(TypedDict, total=False): - limit: str + limit: int """Page Limit""" starting_after: str diff --git a/tests/api_resources/functions/test_invocations.py b/tests/api_resources/functions/test_invocations.py index 36db3aa52..726e5843c 100644 --- a/tests/api_resources/functions/test_invocations.py +++ b/tests/api_resources/functions/test_invocations.py @@ -64,7 +64,7 @@ def test_method_list(self, client: Runloop) -> None: @parametrize def test_method_list_with_all_params(self, client: Runloop) -> None: invocation = client.functions.invocations.list( - limit="limit", + limit=0, starting_after="starting_after", ) assert_matches_type(FunctionInvocationListView, invocation, path=["response"]) @@ -177,7 +177,7 @@ async def test_method_list(self, async_client: AsyncRunloop) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncRunloop) -> None: invocation = await async_client.functions.invocations.list( - limit="limit", + limit=0, starting_after="starting_after", ) assert_matches_type(FunctionInvocationListView, invocation, path=["response"])