From e76572fdba4efdf8bce22a264888609e3c51c46c Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Tue, 13 Aug 2024 22:56:11 +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 d38ffc5b6..d7d6826d3 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-fc7e88fcbc5d6d4cdc0247bbef1bebb8de2bf610059f17ac727f9f282ba2db6e.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-657e9154dbe6a5f9388e5f0de7ee87432205e4a84af3de7e646eae54007f65f8.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"])