Skip to content

Commit

Permalink
feat(api): api update (#2276)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 13, 2024
1 parent 5c57d32 commit d77a47e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions src/cloudflare/types/ai_gateway/log_delete_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -49,6 +50,10 @@ class Filter(TypedDict, total=False):
"tokens_out",
"duration",
"feedback",
"event_id",
"request_type",
"metadata.key",
"metadata.value",
]
]

Expand Down
5 changes: 5 additions & 0 deletions src/cloudflare/types/ai_gateway/log_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -88,6 +89,10 @@ class Filter(TypedDict, total=False):
"tokens_out",
"duration",
"feedback",
"event_id",
"request_type",
"metadata.key",
"metadata.value",
]
]

Expand Down
8 changes: 4 additions & 4 deletions tests/api_resources/ai_gateway/test_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
}
Expand Down Expand Up @@ -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"],
}
Expand Down Expand Up @@ -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"],
}
Expand Down Expand Up @@ -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"],
}
Expand Down

0 comments on commit d77a47e

Please sign in to comment.