From d77a47e7ecccfeb3dd045e6759b7ccc9f1250ef1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 16:10:20 +0000 Subject: [PATCH] feat(api): api update (#2276) --- .stats.yml | 2 +- src/cloudflare/types/ai_gateway/log_delete_params.py | 5 +++++ src/cloudflare/types/ai_gateway/log_list_params.py | 5 +++++ tests/api_resources/ai_gateway/test_logs.py | 8 ++++---- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5d7b2c16a46..ff11f713089 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1462 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4118c37824cecf34c05447175906b84c57105e89ea6a092fee7047b46613e094.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3b96d01a5ed5ab049912224c82a2378d389d9426503d468a859ff8d59e79fabc.yml diff --git a/src/cloudflare/types/ai_gateway/log_delete_params.py b/src/cloudflare/types/ai_gateway/log_delete_params.py index 4a6d76f27a0..fcc8d1d6b54 100644 --- a/src/cloudflare/types/ai_gateway/log_delete_params.py +++ b/src/cloudflare/types/ai_gateway/log_delete_params.py @@ -35,6 +35,7 @@ class LogDeleteParams(TypedDict, total=False): class Filter(TypedDict, total=False): key: Required[ Literal[ + "id", "created_at", "request_content_type", "response_content_type", @@ -49,6 +50,10 @@ class Filter(TypedDict, total=False): "tokens_out", "duration", "feedback", + "event_id", + "request_type", + "metadata.key", + "metadata.value", ] ] diff --git a/src/cloudflare/types/ai_gateway/log_list_params.py b/src/cloudflare/types/ai_gateway/log_list_params.py index 14365d3a489..b4037dde51f 100644 --- a/src/cloudflare/types/ai_gateway/log_list_params.py +++ b/src/cloudflare/types/ai_gateway/log_list_params.py @@ -74,6 +74,7 @@ class LogListParams(TypedDict, total=False): class Filter(TypedDict, total=False): key: Required[ Literal[ + "id", "created_at", "request_content_type", "response_content_type", @@ -88,6 +89,10 @@ class Filter(TypedDict, total=False): "tokens_out", "duration", "feedback", + "event_id", + "request_type", + "metadata.key", + "metadata.value", ] ] diff --git a/tests/api_resources/ai_gateway/test_logs.py b/tests/api_resources/ai_gateway/test_logs.py index 44ff2500f24..4be76ce1282 100644 --- a/tests/api_resources/ai_gateway/test_logs.py +++ b/tests/api_resources/ai_gateway/test_logs.py @@ -42,7 +42,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None: feedback=0, filters=[ { - "key": "created_at", + "key": "id", "operator": "eq", "value": ["string"], } @@ -128,7 +128,7 @@ def test_method_delete_with_all_params(self, client: Cloudflare) -> None: account_id="0d37909e38d3e99c29fa2cd343ac421a", filters=[ { - "key": "created_at", + "key": "id", "operator": "eq", "value": ["string"], } @@ -454,7 +454,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) feedback=0, filters=[ { - "key": "created_at", + "key": "id", "operator": "eq", "value": ["string"], } @@ -540,7 +540,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare account_id="0d37909e38d3e99c29fa2cd343ac421a", filters=[ { - "key": "created_at", + "key": "id", "operator": "eq", "value": ["string"], }