Skip to content

Commit fcf96f7

Browse files
feat(api): api update (#2273)
1 parent 2fe9a70 commit fcf96f7

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1462
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-85a9c91a0b30d5f8dd27f570e6767069bd325bed73a253642d051bb79033273b.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-df037996f4a1d35cf34bb8d9deeee63b60463bb6f8814caec9fa4c659073fb0d.yml

src/cloudflare/types/ai_gateway/log_delete_params.py

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class LogDeleteParams(TypedDict, total=False):
3535
class Filter(TypedDict, total=False):
3636
key: Required[
3737
Literal[
38+
"id",
3839
"created_at",
3940
"request_content_type",
4041
"response_content_type",
@@ -49,6 +50,10 @@ class Filter(TypedDict, total=False):
4950
"tokens_out",
5051
"duration",
5152
"feedback",
53+
"event_id",
54+
"request_type",
55+
"metadata.key",
56+
"metadata.value",
5257
]
5358
]
5459

src/cloudflare/types/ai_gateway/log_list_params.py

+5
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class LogListParams(TypedDict, total=False):
7474
class Filter(TypedDict, total=False):
7575
key: Required[
7676
Literal[
77+
"id",
7778
"created_at",
7879
"request_content_type",
7980
"response_content_type",
@@ -88,6 +89,10 @@ class Filter(TypedDict, total=False):
8889
"tokens_out",
8990
"duration",
9091
"feedback",
92+
"event_id",
93+
"request_type",
94+
"metadata.key",
95+
"metadata.value",
9196
]
9297
]
9398

tests/api_resources/ai_gateway/test_logs.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
4242
feedback=0,
4343
filters=[
4444
{
45-
"key": "created_at",
45+
"key": "id",
4646
"operator": "eq",
4747
"value": ["string"],
4848
}
@@ -128,7 +128,7 @@ def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
128128
account_id="0d37909e38d3e99c29fa2cd343ac421a",
129129
filters=[
130130
{
131-
"key": "created_at",
131+
"key": "id",
132132
"operator": "eq",
133133
"value": ["string"],
134134
}
@@ -454,7 +454,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
454454
feedback=0,
455455
filters=[
456456
{
457-
"key": "created_at",
457+
"key": "id",
458458
"operator": "eq",
459459
"value": ["string"],
460460
}
@@ -540,7 +540,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare
540540
account_id="0d37909e38d3e99c29fa2cd343ac421a",
541541
filters=[
542542
{
543-
"key": "created_at",
543+
"key": "id",
544544
"operator": "eq",
545545
"value": ["string"],
546546
}

0 commit comments

Comments
 (0)