Skip to content

Commit 09f8e4e

Browse files
chore(api): update composite API spec
1 parent b92a468 commit 09f8e4e

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2223
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: bffae552c9187ab2f14f0c87039bdbab
3+
openapi_spec_hash: 478ddecc51ea529014a89e20699fad90
44
config_hash: f6fa3a155508fae2904b264233641e02

src/cloudflare/resources/ai_gateway/billing/billing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ def usage_history(
208208
Args:
209209
value_grouping_window: Grouping window for usage data.
210210
211-
end_time: End time (Unix timestamp).
211+
end_time: End time as Unix timestamp in milliseconds.
212212
213-
start_time: Start time (Unix timestamp).
213+
start_time: Start time as Unix timestamp in milliseconds.
214214
215215
extra_headers: Send extra headers
216216
@@ -409,9 +409,9 @@ async def usage_history(
409409
Args:
410410
value_grouping_window: Grouping window for usage data.
411411
412-
end_time: End time (Unix timestamp).
412+
end_time: End time as Unix timestamp in milliseconds.
413413
414-
start_time: Start time (Unix timestamp).
414+
start_time: Start time as Unix timestamp in milliseconds.
415415
416416
extra_headers: Send extra headers
417417

src/cloudflare/types/ai_gateway/billing_usage_history_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class BillingUsageHistoryParams(TypedDict, total=False):
1515
"""Grouping window for usage data."""
1616

1717
end_time: Optional[float]
18-
"""End time (Unix timestamp)."""
18+
"""End time as Unix timestamp in milliseconds."""
1919

2020
start_time: Optional[float]
21-
"""Start time (Unix timestamp)."""
21+
"""Start time as Unix timestamp in milliseconds."""

tests/api_resources/ai_gateway/test_billing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def test_method_usage_history_with_all_params(self, client: Cloudflare) -> None:
161161
billing = client.ai_gateway.billing.usage_history(
162162
account_id="account_id",
163163
value_grouping_window="day",
164-
end_time=1700086400,
165-
start_time=1700000000,
164+
end_time=1700086400000,
165+
start_time=1700000000000,
166166
)
167167
assert_matches_type(BillingUsageHistoryResponse, billing, path=["response"])
168168

@@ -345,8 +345,8 @@ async def test_method_usage_history_with_all_params(self, async_client: AsyncClo
345345
billing = await async_client.ai_gateway.billing.usage_history(
346346
account_id="account_id",
347347
value_grouping_window="day",
348-
end_time=1700086400,
349-
start_time=1700000000,
348+
end_time=1700086400000,
349+
start_time=1700000000000,
350350
)
351351
assert_matches_type(BillingUsageHistoryResponse, billing, path=["response"])
352352

0 commit comments

Comments
 (0)