Skip to content

Commit 4f45fd3

Browse files
feat(api): api update
1 parent 54f39a7 commit 4f45fd3

32 files changed

Lines changed: 1386 additions & 123 deletions

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1781
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a8e2f9b43dab071e1560856014f5de528bf67743c5e3f129f42f0a6d08d88c1b.yml
3-
openapi_spec_hash: ff9ad2afc74c6556007cde31b96c0453
1+
configured_endpoints: 1783
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e408a7cdec2dae3d1a18842dcc59280c56050fb042569139aec3fe0f12e0d461.yml
3+
openapi_spec_hash: 7e210c76f5dd4c79b3e67204ad279b81
44
config_hash: a433f3793b734bc6fcc9d9e0c27ff8c2

api.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7241,6 +7241,32 @@ Methods:
72417241
- <code title="get /radar/ai/inference/timeseries_groups/model">client.radar.ai.inference.timeseries_groups.summary.<a href="./src/cloudflare/resources/radar/ai/inference/timeseries_groups/summary.py">model</a>(\*\*<a href="src/cloudflare/types/radar/ai/inference/timeseries_groups/summary_model_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/inference/timeseries_groups/summary_model_response.py">SummaryModelResponse</a></code>
72427242
- <code title="get /radar/ai/inference/timeseries_groups/task">client.radar.ai.inference.timeseries_groups.summary.<a href="./src/cloudflare/resources/radar/ai/inference/timeseries_groups/summary.py">task</a>(\*\*<a href="src/cloudflare/types/radar/ai/inference/timeseries_groups/summary_task_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/inference/timeseries_groups/summary_task_response.py">SummaryTaskResponse</a></code>
72437243

7244+
### Bots
7245+
7246+
#### Summary
7247+
7248+
Types:
7249+
7250+
```python
7251+
from cloudflare.types.radar.ai.bots import SummaryUserAgentResponse
7252+
```
7253+
7254+
Methods:
7255+
7256+
- <code title="get /radar/ai/bots/summary/user_agent">client.radar.ai.bots.summary.<a href="./src/cloudflare/resources/radar/ai/bots/summary.py">user_agent</a>(\*\*<a href="src/cloudflare/types/radar/ai/bots/summary_user_agent_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/bots/summary_user_agent_response.py">SummaryUserAgentResponse</a></code>
7257+
7258+
### TimeseriesGroups
7259+
7260+
Types:
7261+
7262+
```python
7263+
from cloudflare.types.radar.ai import TimeseriesGroupUserAgentResponse
7264+
```
7265+
7266+
Methods:
7267+
7268+
- <code title="get /radar/ai/bots/timeseries_groups/user_agent">client.radar.ai.timeseries_groups.<a href="./src/cloudflare/resources/radar/ai/timeseries_groups.py">user_agent</a>(\*\*<a href="src/cloudflare/types/radar/ai/timeseries_group_user_agent_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/timeseries_group_user_agent_response.py">TimeseriesGroupUserAgentResponse</a></code>
7269+
72447270
## Annotations
72457271

72467272
Types:

src/cloudflare/resources/browser_rendering/json.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def create(
8080
authenticate: json_create_params.Authenticate | NotGiven = NOT_GIVEN,
8181
best_attempt: bool | NotGiven = NOT_GIVEN,
8282
cookies: Iterable[json_create_params.Cookie] | NotGiven = NOT_GIVEN,
83-
custom_ai: Iterable[json_create_params.CustomAI] | NotGiven = NOT_GIVEN,
8483
emulate_media_type: str | NotGiven = NOT_GIVEN,
8584
goto_options: json_create_params.GotoOptions | NotGiven = NOT_GIVEN,
8685
html: str | NotGiven = NOT_GIVEN,
@@ -154,10 +153,6 @@ def create(
154153
155154
cookies: Check [options](https://pptr.dev/api/puppeteer.page.setcookie).
156155
157-
custom_ai: Optional list of custom AI models to use for the request. The models will be
158-
tried in the order provided, and in case a model returns an error, the next one
159-
will be used as fallback.
160-
161156
goto_options: Check [options](https://pptr.dev/api/puppeteer.gotooptions).
162157
163158
html: Set the content of the page, eg: `<h1>Hello World!!</h1>`. Either `html` or
@@ -200,7 +195,6 @@ def create(
200195
"authenticate": authenticate,
201196
"best_attempt": best_attempt,
202197
"cookies": cookies,
203-
"custom_ai": custom_ai,
204198
"emulate_media_type": emulate_media_type,
205199
"goto_options": goto_options,
206200
"html": html,
@@ -285,7 +279,6 @@ async def create(
285279
authenticate: json_create_params.Authenticate | NotGiven = NOT_GIVEN,
286280
best_attempt: bool | NotGiven = NOT_GIVEN,
287281
cookies: Iterable[json_create_params.Cookie] | NotGiven = NOT_GIVEN,
288-
custom_ai: Iterable[json_create_params.CustomAI] | NotGiven = NOT_GIVEN,
289282
emulate_media_type: str | NotGiven = NOT_GIVEN,
290283
goto_options: json_create_params.GotoOptions | NotGiven = NOT_GIVEN,
291284
html: str | NotGiven = NOT_GIVEN,
@@ -359,10 +352,6 @@ async def create(
359352
360353
cookies: Check [options](https://pptr.dev/api/puppeteer.page.setcookie).
361354
362-
custom_ai: Optional list of custom AI models to use for the request. The models will be
363-
tried in the order provided, and in case a model returns an error, the next one
364-
will be used as fallback.
365-
366355
goto_options: Check [options](https://pptr.dev/api/puppeteer.gotooptions).
367356
368357
html: Set the content of the page, eg: `<h1>Hello World!!</h1>`. Either `html` or
@@ -405,7 +394,6 @@ async def create(
405394
"authenticate": authenticate,
406395
"best_attempt": best_attempt,
407396
"cookies": cookies,
408-
"custom_ai": custom_ai,
409397
"emulate_media_type": emulate_media_type,
410398
"goto_options": goto_options,
411399
"html": html,

src/cloudflare/resources/r2/buckets/domains/custom.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List, Type, cast
5+
from typing import Type, cast
66
from typing_extensions import Literal
77

88
import httpx
@@ -57,7 +57,6 @@ def create(
5757
domain: str,
5858
enabled: bool,
5959
zone_id: str,
60-
ciphers: List[str] | NotGiven = NOT_GIVEN,
6160
min_tls: Literal["1.0", "1.1", "1.2", "1.3"] | NotGiven = NOT_GIVEN,
6261
jurisdiction: Literal["default", "eu", "fedramp"] | NotGiven = NOT_GIVEN,
6362
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -82,9 +81,6 @@ def create(
8281
8382
zone_id: Zone ID of the custom domain.
8483
85-
ciphers: An allowlist of ciphers for TLS termination. These ciphers must be in the
86-
BoringSSL format.
87-
8884
min_tls: Minimum TLS Version the custom domain will accept for incoming connections. If
8985
not set, defaults to 1.0.
9086
@@ -113,7 +109,6 @@ def create(
113109
"domain": domain,
114110
"enabled": enabled,
115111
"zone_id": zone_id,
116-
"ciphers": ciphers,
117112
"min_tls": min_tls,
118113
},
119114
custom_create_params.CustomCreateParams,
@@ -134,7 +129,6 @@ def update(
134129
*,
135130
account_id: str,
136131
bucket_name: str,
137-
ciphers: List[str] | NotGiven = NOT_GIVEN,
138132
enabled: bool | NotGiven = NOT_GIVEN,
139133
min_tls: Literal["1.0", "1.1", "1.2", "1.3"] | NotGiven = NOT_GIVEN,
140134
jurisdiction: Literal["default", "eu", "fedramp"] | NotGiven = NOT_GIVEN,
@@ -155,9 +149,6 @@ def update(
155149
156150
domain: Name of the custom domain.
157151
158-
ciphers: An allowlist of ciphers for TLS termination. These ciphers must be in the
159-
BoringSSL format.
160-
161152
enabled: Whether to enable public bucket access at the specified custom domain.
162153
163154
min_tls: Minimum TLS Version the custom domain will accept for incoming connections. If
@@ -187,7 +178,6 @@ def update(
187178
f"/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom/{domain}",
188179
body=maybe_transform(
189180
{
190-
"ciphers": ciphers,
191181
"enabled": enabled,
192182
"min_tls": min_tls,
193183
},
@@ -395,7 +385,6 @@ async def create(
395385
domain: str,
396386
enabled: bool,
397387
zone_id: str,
398-
ciphers: List[str] | NotGiven = NOT_GIVEN,
399388
min_tls: Literal["1.0", "1.1", "1.2", "1.3"] | NotGiven = NOT_GIVEN,
400389
jurisdiction: Literal["default", "eu", "fedramp"] | NotGiven = NOT_GIVEN,
401390
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -420,9 +409,6 @@ async def create(
420409
421410
zone_id: Zone ID of the custom domain.
422411
423-
ciphers: An allowlist of ciphers for TLS termination. These ciphers must be in the
424-
BoringSSL format.
425-
426412
min_tls: Minimum TLS Version the custom domain will accept for incoming connections. If
427413
not set, defaults to 1.0.
428414
@@ -451,7 +437,6 @@ async def create(
451437
"domain": domain,
452438
"enabled": enabled,
453439
"zone_id": zone_id,
454-
"ciphers": ciphers,
455440
"min_tls": min_tls,
456441
},
457442
custom_create_params.CustomCreateParams,
@@ -472,7 +457,6 @@ async def update(
472457
*,
473458
account_id: str,
474459
bucket_name: str,
475-
ciphers: List[str] | NotGiven = NOT_GIVEN,
476460
enabled: bool | NotGiven = NOT_GIVEN,
477461
min_tls: Literal["1.0", "1.1", "1.2", "1.3"] | NotGiven = NOT_GIVEN,
478462
jurisdiction: Literal["default", "eu", "fedramp"] | NotGiven = NOT_GIVEN,
@@ -493,9 +477,6 @@ async def update(
493477
494478
domain: Name of the custom domain.
495479
496-
ciphers: An allowlist of ciphers for TLS termination. These ciphers must be in the
497-
BoringSSL format.
498-
499480
enabled: Whether to enable public bucket access at the specified custom domain.
500481
501482
min_tls: Minimum TLS Version the custom domain will accept for incoming connections. If
@@ -525,7 +506,6 @@ async def update(
525506
f"/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom/{domain}",
526507
body=await async_maybe_transform(
527508
{
528-
"ciphers": ciphers,
529509
"enabled": enabled,
530510
"min_tls": min_tls,
531511
},

src/cloudflare/resources/radar/ai/__init__.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
AIResourceWithStreamingResponse,
99
AsyncAIResourceWithStreamingResponse,
1010
)
11+
from .bots import (
12+
BotsResource,
13+
AsyncBotsResource,
14+
BotsResourceWithRawResponse,
15+
AsyncBotsResourceWithRawResponse,
16+
BotsResourceWithStreamingResponse,
17+
AsyncBotsResourceWithStreamingResponse,
18+
)
1119
from .inference import (
1220
InferenceResource,
1321
AsyncInferenceResource,
@@ -24,6 +32,14 @@
2432
ToMarkdownResourceWithStreamingResponse,
2533
AsyncToMarkdownResourceWithStreamingResponse,
2634
)
35+
from .timeseries_groups import (
36+
TimeseriesGroupsResource,
37+
AsyncTimeseriesGroupsResource,
38+
TimeseriesGroupsResourceWithRawResponse,
39+
AsyncTimeseriesGroupsResourceWithRawResponse,
40+
TimeseriesGroupsResourceWithStreamingResponse,
41+
AsyncTimeseriesGroupsResourceWithStreamingResponse,
42+
)
2743

2844
__all__ = [
2945
"ToMarkdownResource",
@@ -38,6 +54,18 @@
3854
"AsyncInferenceResourceWithRawResponse",
3955
"InferenceResourceWithStreamingResponse",
4056
"AsyncInferenceResourceWithStreamingResponse",
57+
"BotsResource",
58+
"AsyncBotsResource",
59+
"BotsResourceWithRawResponse",
60+
"AsyncBotsResourceWithRawResponse",
61+
"BotsResourceWithStreamingResponse",
62+
"AsyncBotsResourceWithStreamingResponse",
63+
"TimeseriesGroupsResource",
64+
"AsyncTimeseriesGroupsResource",
65+
"TimeseriesGroupsResourceWithRawResponse",
66+
"AsyncTimeseriesGroupsResourceWithRawResponse",
67+
"TimeseriesGroupsResourceWithStreamingResponse",
68+
"AsyncTimeseriesGroupsResourceWithStreamingResponse",
4169
"AIResource",
4270
"AsyncAIResource",
4371
"AIResourceWithRawResponse",

src/cloudflare/resources/radar/ai/ai.py

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
from __future__ import annotations
44

5+
from .bots.bots import (
6+
BotsResource,
7+
AsyncBotsResource,
8+
BotsResourceWithRawResponse,
9+
AsyncBotsResourceWithRawResponse,
10+
BotsResourceWithStreamingResponse,
11+
AsyncBotsResourceWithStreamingResponse,
12+
)
513
from ...._compat import cached_property
614
from .to_markdown import (
715
ToMarkdownResource,
@@ -12,6 +20,14 @@
1220
AsyncToMarkdownResourceWithStreamingResponse,
1321
)
1422
from ...._resource import SyncAPIResource, AsyncAPIResource
23+
from .timeseries_groups import (
24+
TimeseriesGroupsResource,
25+
AsyncTimeseriesGroupsResource,
26+
TimeseriesGroupsResourceWithRawResponse,
27+
AsyncTimeseriesGroupsResourceWithRawResponse,
28+
TimeseriesGroupsResourceWithStreamingResponse,
29+
AsyncTimeseriesGroupsResourceWithStreamingResponse,
30+
)
1531
from .inference.inference import (
1632
InferenceResource,
1733
AsyncInferenceResource,
@@ -33,6 +49,14 @@ def to_markdown(self) -> ToMarkdownResource:
3349
def inference(self) -> InferenceResource:
3450
return InferenceResource(self._client)
3551

52+
@cached_property
53+
def bots(self) -> BotsResource:
54+
return BotsResource(self._client)
55+
56+
@cached_property
57+
def timeseries_groups(self) -> TimeseriesGroupsResource:
58+
return TimeseriesGroupsResource(self._client)
59+
3660
@cached_property
3761
def with_raw_response(self) -> AIResourceWithRawResponse:
3862
"""
@@ -62,6 +86,14 @@ def to_markdown(self) -> AsyncToMarkdownResource:
6286
def inference(self) -> AsyncInferenceResource:
6387
return AsyncInferenceResource(self._client)
6488

89+
@cached_property
90+
def bots(self) -> AsyncBotsResource:
91+
return AsyncBotsResource(self._client)
92+
93+
@cached_property
94+
def timeseries_groups(self) -> AsyncTimeseriesGroupsResource:
95+
return AsyncTimeseriesGroupsResource(self._client)
96+
6597
@cached_property
6698
def with_raw_response(self) -> AsyncAIResourceWithRawResponse:
6799
"""
@@ -94,6 +126,14 @@ def to_markdown(self) -> ToMarkdownResourceWithRawResponse:
94126
def inference(self) -> InferenceResourceWithRawResponse:
95127
return InferenceResourceWithRawResponse(self._ai.inference)
96128

129+
@cached_property
130+
def bots(self) -> BotsResourceWithRawResponse:
131+
return BotsResourceWithRawResponse(self._ai.bots)
132+
133+
@cached_property
134+
def timeseries_groups(self) -> TimeseriesGroupsResourceWithRawResponse:
135+
return TimeseriesGroupsResourceWithRawResponse(self._ai.timeseries_groups)
136+
97137

98138
class AsyncAIResourceWithRawResponse:
99139
def __init__(self, ai: AsyncAIResource) -> None:
@@ -107,6 +147,14 @@ def to_markdown(self) -> AsyncToMarkdownResourceWithRawResponse:
107147
def inference(self) -> AsyncInferenceResourceWithRawResponse:
108148
return AsyncInferenceResourceWithRawResponse(self._ai.inference)
109149

150+
@cached_property
151+
def bots(self) -> AsyncBotsResourceWithRawResponse:
152+
return AsyncBotsResourceWithRawResponse(self._ai.bots)
153+
154+
@cached_property
155+
def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithRawResponse:
156+
return AsyncTimeseriesGroupsResourceWithRawResponse(self._ai.timeseries_groups)
157+
110158

111159
class AIResourceWithStreamingResponse:
112160
def __init__(self, ai: AIResource) -> None:
@@ -120,6 +168,14 @@ def to_markdown(self) -> ToMarkdownResourceWithStreamingResponse:
120168
def inference(self) -> InferenceResourceWithStreamingResponse:
121169
return InferenceResourceWithStreamingResponse(self._ai.inference)
122170

171+
@cached_property
172+
def bots(self) -> BotsResourceWithStreamingResponse:
173+
return BotsResourceWithStreamingResponse(self._ai.bots)
174+
175+
@cached_property
176+
def timeseries_groups(self) -> TimeseriesGroupsResourceWithStreamingResponse:
177+
return TimeseriesGroupsResourceWithStreamingResponse(self._ai.timeseries_groups)
178+
123179

124180
class AsyncAIResourceWithStreamingResponse:
125181
def __init__(self, ai: AsyncAIResource) -> None:
@@ -132,3 +188,11 @@ def to_markdown(self) -> AsyncToMarkdownResourceWithStreamingResponse:
132188
@cached_property
133189
def inference(self) -> AsyncInferenceResourceWithStreamingResponse:
134190
return AsyncInferenceResourceWithStreamingResponse(self._ai.inference)
191+
192+
@cached_property
193+
def bots(self) -> AsyncBotsResourceWithStreamingResponse:
194+
return AsyncBotsResourceWithStreamingResponse(self._ai.bots)
195+
196+
@cached_property
197+
def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse:
198+
return AsyncTimeseriesGroupsResourceWithStreamingResponse(self._ai.timeseries_groups)

0 commit comments

Comments
 (0)