Skip to content

Commit a59205e

Browse files
chore(api): upload stainless config from cloudflare-config
1 parent a27e50c commit a59205e

23 files changed

Lines changed: 781 additions & 248 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1790
1+
configured_endpoints: 1791
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a617495230e553e067b258702b644f898b56c21bdf238c1eb2dd10df376f098d.yml
33
openapi_spec_hash: ae16f120056f9a9558a408f0c1ecb626
4-
config_hash: 320699f1f989d92845c2558a970acd18
4+
config_hash: f20ebbab54916fcc81ef643e3acda11a

api.md

Lines changed: 65 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -7202,6 +7202,18 @@ Methods:
72027202

72037203
## AI
72047204

7205+
### ToMarkdown
7206+
7207+
Types:
7208+
7209+
```python
7210+
from cloudflare.types.radar.ai import ToMarkdownCreateResponse
7211+
```
7212+
7213+
Methods:
7214+
7215+
- <code title="post /accounts/{account_id}/ai/tomarkdown">client.radar.ai.to_markdown.<a href="./src/cloudflare/resources/radar/ai/to_markdown.py">create</a>(body, \*, account_id, \*\*<a href="src/cloudflare/types/radar/ai/to_markdown_create_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/to_markdown_create_response.py">SyncSinglePage[ToMarkdownCreateResponse]</a></code>
7216+
72057217
### Inference
72067218

72077219
#### Summary
@@ -7237,21 +7249,67 @@ Methods:
72377249

72387250
### Bots
72397251

7252+
#### Summary
7253+
72407254
Types:
72417255

72427256
```python
7243-
from cloudflare.types.radar.ai import (
7244-
BotSummaryResponse,
7245-
BotTimeseriesResponse,
7246-
BotTimeseriesGroupsResponse,
7257+
from cloudflare.types.radar.ai.bots import (
7258+
SummarySummaryResponse,
7259+
SummaryTimeseriesResponse,
7260+
SummaryTimeseriesGroupsResponse,
72477261
)
72487262
```
72497263

72507264
Methods:
72517265

7252-
- <code title="get /radar/ai/bots/summary/{dimension}">client.radar.ai.bots.<a href="./src/cloudflare/resources/radar/ai/bots.py">summary</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ai/bot_summary_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/bot_summary_response.py">BotSummaryResponse</a></code>
7253-
- <code title="get /radar/ai/bots/timeseries">client.radar.ai.bots.<a href="./src/cloudflare/resources/radar/ai/bots.py">timeseries</a>(\*\*<a href="src/cloudflare/types/radar/ai/bot_timeseries_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/bot_timeseries_response.py">BotTimeseriesResponse</a></code>
7254-
- <code title="get /radar/ai/bots/timeseries_groups/{dimension}">client.radar.ai.bots.<a href="./src/cloudflare/resources/radar/ai/bots.py">timeseries_groups</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ai/bot_timeseries_groups_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/bot_timeseries_groups_response.py">BotTimeseriesGroupsResponse</a></code>
7266+
- <code title="get /radar/ai/bots/summary/{dimension}">client.radar.ai.bots.summary.<a href="./src/cloudflare/resources/radar/ai/bots/summary.py">summary</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ai/bots/summary_summary_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/bots/summary_summary_response.py">SummarySummaryResponse</a></code>
7267+
- <code title="get /radar/ai/bots/timeseries">client.radar.ai.bots.summary.<a href="./src/cloudflare/resources/radar/ai/bots/summary.py">timeseries</a>(\*\*<a href="src/cloudflare/types/radar/ai/bots/summary_timeseries_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/bots/summary_timeseries_response.py">SummaryTimeseriesResponse</a></code>
7268+
- <code title="get /radar/ai/bots/timeseries_groups/{dimension}">client.radar.ai.bots.summary.<a href="./src/cloudflare/resources/radar/ai/bots/summary.py">timeseries_groups</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ai/bots/summary_timeseries_groups_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/bots/summary_timeseries_groups_response.py">SummaryTimeseriesGroupsResponse</a></code>
7269+
7270+
## Ct
7271+
7272+
Types:
7273+
7274+
```python
7275+
from cloudflare.types.radar import (
7276+
CtSummaryResponse,
7277+
CtTimeseriesResponse,
7278+
CtTimeseriesGroupsResponse,
7279+
)
7280+
```
7281+
7282+
Methods:
7283+
7284+
- <code title="get /radar/ct/summary/{dimension}">client.radar.ct.<a href="./src/cloudflare/resources/radar/ct/ct.py">summary</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ct_summary_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct_summary_response.py">CtSummaryResponse</a></code>
7285+
- <code title="get /radar/ct/timeseries">client.radar.ct.<a href="./src/cloudflare/resources/radar/ct/ct.py">timeseries</a>(\*\*<a href="src/cloudflare/types/radar/ct_timeseries_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct_timeseries_response.py">CtTimeseriesResponse</a></code>
7286+
- <code title="get /radar/ct/timeseries_groups/{dimension}">client.radar.ct.<a href="./src/cloudflare/resources/radar/ct/ct.py">timeseries_groups</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ct_timeseries_groups_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct_timeseries_groups_response.py">CtTimeseriesGroupsResponse</a></code>
7287+
7288+
### Authorities
7289+
7290+
Types:
7291+
7292+
```python
7293+
from cloudflare.types.radar.ct import AuthorityListResponse, AuthorityGetResponse
7294+
```
7295+
7296+
Methods:
7297+
7298+
- <code title="get /radar/ct/authorities">client.radar.ct.authorities.<a href="./src/cloudflare/resources/radar/ct/authorities.py">list</a>(\*\*<a href="src/cloudflare/types/radar/ct/authority_list_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct/authority_list_response.py">AuthorityListResponse</a></code>
7299+
- <code title="get /radar/ct/authorities/{ca_slug}">client.radar.ct.authorities.<a href="./src/cloudflare/resources/radar/ct/authorities.py">get</a>(ca_slug, \*\*<a href="src/cloudflare/types/radar/ct/authority_get_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct/authority_get_response.py">AuthorityGetResponse</a></code>
7300+
7301+
### Logs
7302+
7303+
Types:
7304+
7305+
```python
7306+
from cloudflare.types.radar.ct import LogListResponse, LogGetResponse
7307+
```
7308+
7309+
Methods:
7310+
7311+
- <code title="get /radar/ct/logs">client.radar.ct.logs.<a href="./src/cloudflare/resources/radar/ct/logs.py">list</a>(\*\*<a href="src/cloudflare/types/radar/ct/log_list_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct/log_list_response.py">LogListResponse</a></code>
7312+
- <code title="get /radar/ct/logs/{log_slug}">client.radar.ct.logs.<a href="./src/cloudflare/resources/radar/ct/logs.py">get</a>(log_slug, \*\*<a href="src/cloudflare/types/radar/ct/log_get_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct/log_get_response.py">LogGetResponse</a></code>
72557313

72567314
## Annotations
72577315

@@ -7415,50 +7473,6 @@ Methods:
74157473
- <code title="get /radar/bots/crawlers/summary/{dimension}">client.radar.bots.web_crawlers.<a href="./src/cloudflare/resources/radar/bots/web_crawlers.py">summary</a>(dimension, \*\*<a href="src/cloudflare/types/radar/bots/web_crawler_summary_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/bots/web_crawler_summary_response.py">WebCrawlerSummaryResponse</a></code>
74167474
- <code title="get /radar/bots/crawlers/timeseries_groups/{dimension}">client.radar.bots.web_crawlers.<a href="./src/cloudflare/resources/radar/bots/web_crawlers.py">timeseries_groups</a>(dimension, \*\*<a href="src/cloudflare/types/radar/bots/web_crawler_timeseries_groups_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/bots/web_crawler_timeseries_groups_response.py">WebCrawlerTimeseriesGroupsResponse</a></code>
74177475

7418-
## Ct
7419-
7420-
Types:
7421-
7422-
```python
7423-
from cloudflare.types.radar import (
7424-
CtSummaryResponse,
7425-
CtTimeseriesResponse,
7426-
CtTimeseriesGroupsResponse,
7427-
)
7428-
```
7429-
7430-
Methods:
7431-
7432-
- <code title="get /radar/ct/summary/{dimension}">client.radar.ct.<a href="./src/cloudflare/resources/radar/ct/ct.py">summary</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ct_summary_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct_summary_response.py">CtSummaryResponse</a></code>
7433-
- <code title="get /radar/ct/timeseries">client.radar.ct.<a href="./src/cloudflare/resources/radar/ct/ct.py">timeseries</a>(\*\*<a href="src/cloudflare/types/radar/ct_timeseries_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct_timeseries_response.py">CtTimeseriesResponse</a></code>
7434-
- <code title="get /radar/ct/timeseries_groups/{dimension}">client.radar.ct.<a href="./src/cloudflare/resources/radar/ct/ct.py">timeseries_groups</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ct_timeseries_groups_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct_timeseries_groups_response.py">CtTimeseriesGroupsResponse</a></code>
7435-
7436-
### Authorities
7437-
7438-
Types:
7439-
7440-
```python
7441-
from cloudflare.types.radar.ct import AuthorityListResponse, AuthorityGetResponse
7442-
```
7443-
7444-
Methods:
7445-
7446-
- <code title="get /radar/ct/authorities">client.radar.ct.authorities.<a href="./src/cloudflare/resources/radar/ct/authorities.py">list</a>(\*\*<a href="src/cloudflare/types/radar/ct/authority_list_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct/authority_list_response.py">AuthorityListResponse</a></code>
7447-
- <code title="get /radar/ct/authorities/{ca_slug}">client.radar.ct.authorities.<a href="./src/cloudflare/resources/radar/ct/authorities.py">get</a>(ca_slug, \*\*<a href="src/cloudflare/types/radar/ct/authority_get_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct/authority_get_response.py">AuthorityGetResponse</a></code>
7448-
7449-
### Logs
7450-
7451-
Types:
7452-
7453-
```python
7454-
from cloudflare.types.radar.ct import LogListResponse, LogGetResponse
7455-
```
7456-
7457-
Methods:
7458-
7459-
- <code title="get /radar/ct/logs">client.radar.ct.logs.<a href="./src/cloudflare/resources/radar/ct/logs.py">list</a>(\*\*<a href="src/cloudflare/types/radar/ct/log_list_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct/log_list_response.py">LogListResponse</a></code>
7460-
- <code title="get /radar/ct/logs/{log_slug}">client.radar.ct.logs.<a href="./src/cloudflare/resources/radar/ct/logs.py">get</a>(log_slug, \*\*<a href="src/cloudflare/types/radar/ct/log_get_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct/log_get_response.py">LogGetResponse</a></code>
7461-
74627476
## Datasets
74637477

74647478
Types:

src/cloudflare/resources/radar/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@
184184
"AsyncAIResourceWithRawResponse",
185185
"AIResourceWithStreamingResponse",
186186
"AsyncAIResourceWithStreamingResponse",
187+
"CtResource",
188+
"AsyncCtResource",
189+
"CtResourceWithRawResponse",
190+
"AsyncCtResourceWithRawResponse",
191+
"CtResourceWithStreamingResponse",
192+
"AsyncCtResourceWithStreamingResponse",
187193
"AnnotationsResource",
188194
"AsyncAnnotationsResource",
189195
"AnnotationsResourceWithRawResponse",
@@ -202,12 +208,6 @@
202208
"AsyncBotsResourceWithRawResponse",
203209
"BotsResourceWithStreamingResponse",
204210
"AsyncBotsResourceWithStreamingResponse",
205-
"CtResource",
206-
"AsyncCtResource",
207-
"CtResourceWithRawResponse",
208-
"AsyncCtResourceWithRawResponse",
209-
"CtResourceWithStreamingResponse",
210-
"AsyncCtResourceWithStreamingResponse",
211211
"DatasetsResource",
212212
"AsyncDatasetsResource",
213213
"DatasetsResourceWithRawResponse",

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,22 @@
2424
InferenceResourceWithStreamingResponse,
2525
AsyncInferenceResourceWithStreamingResponse,
2626
)
27+
from .to_markdown import (
28+
ToMarkdownResource,
29+
AsyncToMarkdownResource,
30+
ToMarkdownResourceWithRawResponse,
31+
AsyncToMarkdownResourceWithRawResponse,
32+
ToMarkdownResourceWithStreamingResponse,
33+
AsyncToMarkdownResourceWithStreamingResponse,
34+
)
2735

2836
__all__ = [
37+
"ToMarkdownResource",
38+
"AsyncToMarkdownResource",
39+
"ToMarkdownResourceWithRawResponse",
40+
"AsyncToMarkdownResourceWithRawResponse",
41+
"ToMarkdownResourceWithStreamingResponse",
42+
"AsyncToMarkdownResourceWithStreamingResponse",
2943
"InferenceResource",
3044
"AsyncInferenceResource",
3145
"InferenceResourceWithRawResponse",

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

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from .bots import (
5+
from .bots.bots import (
66
BotsResource,
77
AsyncBotsResource,
88
BotsResourceWithRawResponse,
@@ -11,6 +11,14 @@
1111
AsyncBotsResourceWithStreamingResponse,
1212
)
1313
from ...._compat import cached_property
14+
from .to_markdown import (
15+
ToMarkdownResource,
16+
AsyncToMarkdownResource,
17+
ToMarkdownResourceWithRawResponse,
18+
AsyncToMarkdownResourceWithRawResponse,
19+
ToMarkdownResourceWithStreamingResponse,
20+
AsyncToMarkdownResourceWithStreamingResponse,
21+
)
1422
from ...._resource import SyncAPIResource, AsyncAPIResource
1523
from .inference.inference import (
1624
InferenceResource,
@@ -25,6 +33,10 @@
2533

2634

2735
class AIResource(SyncAPIResource):
36+
@cached_property
37+
def to_markdown(self) -> ToMarkdownResource:
38+
return ToMarkdownResource(self._client)
39+
2840
@cached_property
2941
def inference(self) -> InferenceResource:
3042
return InferenceResource(self._client)
@@ -54,6 +66,10 @@ def with_streaming_response(self) -> AIResourceWithStreamingResponse:
5466

5567

5668
class AsyncAIResource(AsyncAPIResource):
69+
@cached_property
70+
def to_markdown(self) -> AsyncToMarkdownResource:
71+
return AsyncToMarkdownResource(self._client)
72+
5773
@cached_property
5874
def inference(self) -> AsyncInferenceResource:
5975
return AsyncInferenceResource(self._client)
@@ -86,6 +102,10 @@ class AIResourceWithRawResponse:
86102
def __init__(self, ai: AIResource) -> None:
87103
self._ai = ai
88104

105+
@cached_property
106+
def to_markdown(self) -> ToMarkdownResourceWithRawResponse:
107+
return ToMarkdownResourceWithRawResponse(self._ai.to_markdown)
108+
89109
@cached_property
90110
def inference(self) -> InferenceResourceWithRawResponse:
91111
return InferenceResourceWithRawResponse(self._ai.inference)
@@ -99,6 +119,10 @@ class AsyncAIResourceWithRawResponse:
99119
def __init__(self, ai: AsyncAIResource) -> None:
100120
self._ai = ai
101121

122+
@cached_property
123+
def to_markdown(self) -> AsyncToMarkdownResourceWithRawResponse:
124+
return AsyncToMarkdownResourceWithRawResponse(self._ai.to_markdown)
125+
102126
@cached_property
103127
def inference(self) -> AsyncInferenceResourceWithRawResponse:
104128
return AsyncInferenceResourceWithRawResponse(self._ai.inference)
@@ -112,6 +136,10 @@ class AIResourceWithStreamingResponse:
112136
def __init__(self, ai: AIResource) -> None:
113137
self._ai = ai
114138

139+
@cached_property
140+
def to_markdown(self) -> ToMarkdownResourceWithStreamingResponse:
141+
return ToMarkdownResourceWithStreamingResponse(self._ai.to_markdown)
142+
115143
@cached_property
116144
def inference(self) -> InferenceResourceWithStreamingResponse:
117145
return InferenceResourceWithStreamingResponse(self._ai.inference)
@@ -125,6 +153,10 @@ class AsyncAIResourceWithStreamingResponse:
125153
def __init__(self, ai: AsyncAIResource) -> None:
126154
self._ai = ai
127155

156+
@cached_property
157+
def to_markdown(self) -> AsyncToMarkdownResourceWithStreamingResponse:
158+
return AsyncToMarkdownResourceWithStreamingResponse(self._ai.to_markdown)
159+
128160
@cached_property
129161
def inference(self) -> AsyncInferenceResourceWithStreamingResponse:
130162
return AsyncInferenceResourceWithStreamingResponse(self._ai.inference)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .bots import (
4+
BotsResource,
5+
AsyncBotsResource,
6+
BotsResourceWithRawResponse,
7+
AsyncBotsResourceWithRawResponse,
8+
BotsResourceWithStreamingResponse,
9+
AsyncBotsResourceWithStreamingResponse,
10+
)
11+
from .summary import (
12+
SummaryResource,
13+
AsyncSummaryResource,
14+
SummaryResourceWithRawResponse,
15+
AsyncSummaryResourceWithRawResponse,
16+
SummaryResourceWithStreamingResponse,
17+
AsyncSummaryResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"SummaryResource",
22+
"AsyncSummaryResource",
23+
"SummaryResourceWithRawResponse",
24+
"AsyncSummaryResourceWithRawResponse",
25+
"SummaryResourceWithStreamingResponse",
26+
"AsyncSummaryResourceWithStreamingResponse",
27+
"BotsResource",
28+
"AsyncBotsResource",
29+
"BotsResourceWithRawResponse",
30+
"AsyncBotsResourceWithRawResponse",
31+
"BotsResourceWithStreamingResponse",
32+
"AsyncBotsResourceWithStreamingResponse",
33+
]

0 commit comments

Comments
 (0)