Skip to content

Commit fcff175

Browse files
chore(api): upload stainless config from cloudflare-config
1 parent 4f42c75 commit fcff175

54 files changed

Lines changed: 180 additions & 5718 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1791
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-aae5bc3dd2044698eb06f0f43f3b9faf332b51705c8d1e388e30eb83cf23b4f4.yml
1+
configured_endpoints: 1781
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3789da414df5e55a6347441e22086536eb4e2c535b266b70748006b3a632abbe.yml
33
openapi_spec_hash: 2fa2142d09ad6810582fa0950a23e978
4-
config_hash: a369123b780ef98d372657aadaf013ee
4+
config_hash: ab4569f2e8dd52d04ef8493482a67230

api.md

Lines changed: 4 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -2396,18 +2396,19 @@ Types:
23962396

23972397
```python
23982398
from cloudflare.types.workers.scripts import (
2399-
Deployment,
2399+
DeploymentCreateResponse,
24002400
DeploymentListResponse,
24012401
DeploymentDeleteResponse,
2402+
DeploymentGetResponse,
24022403
)
24032404
```
24042405

24052406
Methods:
24062407

2407-
- <code title="post /accounts/{account_id}/workers/scripts/{script_name}/deployments">client.workers.scripts.deployments.<a href="./src/cloudflare/resources/workers/scripts/deployments.py">create</a>(script_name, \*, account_id, \*\*<a href="src/cloudflare/types/workers/scripts/deployment_create_params.py">params</a>) -> <a href="./src/cloudflare/types/workers/scripts/deployment.py">Deployment</a></code>
2408+
- <code title="post /accounts/{account_id}/workers/scripts/{script_name}/deployments">client.workers.scripts.deployments.<a href="./src/cloudflare/resources/workers/scripts/deployments.py">create</a>(script_name, \*, account_id, \*\*<a href="src/cloudflare/types/workers/scripts/deployment_create_params.py">params</a>) -> <a href="./src/cloudflare/types/workers/scripts/deployment_create_response.py">DeploymentCreateResponse</a></code>
24082409
- <code title="get /accounts/{account_id}/workers/scripts/{script_name}/deployments">client.workers.scripts.deployments.<a href="./src/cloudflare/resources/workers/scripts/deployments.py">list</a>(script_name, \*, account_id) -> <a href="./src/cloudflare/types/workers/scripts/deployment_list_response.py">DeploymentListResponse</a></code>
24092410
- <code title="delete /accounts/{account_id}/workers/scripts/{script_name}/deployments/{deployment_id}">client.workers.scripts.deployments.<a href="./src/cloudflare/resources/workers/scripts/deployments.py">delete</a>(deployment_id, \*, account_id, script_name) -> <a href="./src/cloudflare/types/workers/scripts/deployment_delete_response.py">DeploymentDeleteResponse</a></code>
2410-
- <code title="get /accounts/{account_id}/workers/scripts/{script_name}/deployments/{deployment_id}">client.workers.scripts.deployments.<a href="./src/cloudflare/resources/workers/scripts/deployments.py">get</a>(deployment_id, \*, account_id, script_name) -> <a href="./src/cloudflare/types/workers/scripts/deployment.py">Deployment</a></code>
2411+
- <code title="get /accounts/{account_id}/workers/scripts/{script_name}/deployments/{deployment_id}">client.workers.scripts.deployments.<a href="./src/cloudflare/resources/workers/scripts/deployments.py">get</a>(deployment_id, \*, account_id, script_name) -> <a href="./src/cloudflare/types/workers/scripts/deployment_get_response.py">DeploymentGetResponse</a></code>
24112412

24122413
### Versions
24132414

@@ -7246,68 +7247,6 @@ Methods:
72467247
- <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>
72477248
- <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>
72487249

7249-
### TimeseriesGroups
7250-
7251-
Types:
7252-
7253-
```python
7254-
from cloudflare.types.radar.ai import (
7255-
TimeseriesGroupSummaryResponse,
7256-
TimeseriesGroupTimeseriesResponse,
7257-
TimeseriesGroupTimeseriesGroupsResponse,
7258-
)
7259-
```
7260-
7261-
Methods:
7262-
7263-
- <code title="get /radar/ai/bots/summary/{dimension}">client.radar.ai.timeseries_groups.<a href="./src/cloudflare/resources/radar/ai/timeseries_groups.py">summary</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ai/timeseries_group_summary_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/timeseries_group_summary_response.py">TimeseriesGroupSummaryResponse</a></code>
7264-
- <code title="get /radar/ai/bots/timeseries">client.radar.ai.timeseries_groups.<a href="./src/cloudflare/resources/radar/ai/timeseries_groups.py">timeseries</a>(\*\*<a href="src/cloudflare/types/radar/ai/timeseries_group_timeseries_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/timeseries_group_timeseries_response.py">TimeseriesGroupTimeseriesResponse</a></code>
7265-
- <code title="get /radar/ai/bots/timeseries_groups/{dimension}">client.radar.ai.timeseries_groups.<a href="./src/cloudflare/resources/radar/ai/timeseries_groups.py">timeseries_groups</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ai/timeseries_group_timeseries_groups_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/timeseries_group_timeseries_groups_response.py">TimeseriesGroupTimeseriesGroupsResponse</a></code>
7266-
7267-
## Ct
7268-
7269-
Types:
7270-
7271-
```python
7272-
from cloudflare.types.radar import (
7273-
CtSummaryResponse,
7274-
CtTimeseriesResponse,
7275-
CtTimeseriesGroupsResponse,
7276-
)
7277-
```
7278-
7279-
Methods:
7280-
7281-
- <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>
7282-
- <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>
7283-
- <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>
7284-
7285-
### Authorities
7286-
7287-
Types:
7288-
7289-
```python
7290-
from cloudflare.types.radar.ct import AuthorityListResponse, AuthorityGetResponse
7291-
```
7292-
7293-
Methods:
7294-
7295-
- <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>
7296-
- <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>
7297-
7298-
### Logs
7299-
7300-
Types:
7301-
7302-
```python
7303-
from cloudflare.types.radar.ct import LogListResponse, LogGetResponse
7304-
```
7305-
7306-
Methods:
7307-
7308-
- <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>
7309-
- <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>
7310-
73117250
## Annotations
73127251

73137252
Types:

src/cloudflare/pagination.py

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
"CursorPaginationResultInfo",
1818
"SyncCursorPagination",
1919
"AsyncCursorPagination",
20+
"CursorPaginationAfterResultInfo",
21+
"CursorPaginationAfterCursors",
22+
"SyncCursorPaginationAfter",
23+
"AsyncCursorPaginationAfter",
2024
"CursorLimitPaginationResultInfo",
2125
"SyncCursorLimitPagination",
2226
"AsyncCursorLimitPagination",
@@ -175,6 +179,62 @@ def next_page_info(self) -> Optional[PageInfo]:
175179
return PageInfo(params={"cursor": cursor})
176180

177181

182+
class CursorPaginationAfterCursors(BaseModel):
183+
after: Optional[str] = None
184+
185+
186+
class CursorPaginationAfterResultInfo(BaseModel):
187+
cursors: Optional[CursorPaginationAfterCursors] = None
188+
189+
190+
class SyncCursorPaginationAfter(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
191+
result: List[_T]
192+
result_info: Optional[CursorPaginationAfterResultInfo] = None
193+
194+
@override
195+
def _get_page_items(self) -> List[_T]:
196+
result = self.result
197+
if not result:
198+
return []
199+
return result
200+
201+
@override
202+
def next_page_info(self) -> Optional[PageInfo]:
203+
after = None
204+
if self.result_info is not None:
205+
if self.result_info.cursors is not None:
206+
if self.result_info.cursors.after is not None:
207+
after = self.result_info.cursors.after
208+
if not after:
209+
return None
210+
211+
return PageInfo(params={"cursor": after})
212+
213+
214+
class AsyncCursorPaginationAfter(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
215+
result: List[_T]
216+
result_info: Optional[CursorPaginationAfterResultInfo] = None
217+
218+
@override
219+
def _get_page_items(self) -> List[_T]:
220+
result = self.result
221+
if not result:
222+
return []
223+
return result
224+
225+
@override
226+
def next_page_info(self) -> Optional[PageInfo]:
227+
after = None
228+
if self.result_info is not None:
229+
if self.result_info.cursors is not None:
230+
if self.result_info.cursors.after is not None:
231+
after = self.result_info.cursors.after
232+
if not after:
233+
return None
234+
235+
return PageInfo(params={"cursor": after})
236+
237+
178238
class CursorLimitPaginationResultInfo(BaseModel):
179239
count: Optional[int] = None
180240

src/cloudflare/resources/kv/namespaces/values.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ def update(
9696
9797
expiration_ttl: Expires the key after a number of seconds. Must be at least 60.
9898
99-
metadata: Associates arbitrary JSON data with a key/value pair.
100-
10199
extra_headers: Send extra headers
102100
103101
extra_query: Add additional query parameters to the request
@@ -310,8 +308,6 @@ async def update(
310308
311309
expiration_ttl: Expires the key after a number of seconds. Must be at least 60.
312310
313-
metadata: Associates arbitrary JSON data with a key/value pair.
314-
315311
extra_headers: Send extra headers
316312
317313
extra_query: Add additional query parameters to the request

src/cloudflare/resources/radar/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
AIResourceWithStreamingResponse,
99
AsyncAIResourceWithStreamingResponse,
1010
)
11-
from .ct import (
12-
CtResource,
13-
AsyncCtResource,
14-
CtResourceWithRawResponse,
15-
AsyncCtResourceWithRawResponse,
16-
CtResourceWithStreamingResponse,
17-
AsyncCtResourceWithStreamingResponse,
18-
)
1911
from .bgp import (
2012
BGPResource,
2113
AsyncBGPResource,
@@ -184,12 +176,6 @@
184176
"AsyncAIResourceWithRawResponse",
185177
"AIResourceWithStreamingResponse",
186178
"AsyncAIResourceWithStreamingResponse",
187-
"CtResource",
188-
"AsyncCtResource",
189-
"CtResourceWithRawResponse",
190-
"AsyncCtResourceWithRawResponse",
191-
"CtResourceWithStreamingResponse",
192-
"AsyncCtResourceWithStreamingResponse",
193179
"AnnotationsResource",
194180
"AsyncAnnotationsResource",
195181
"AnnotationsResourceWithRawResponse",

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@
2424
ToMarkdownResourceWithStreamingResponse,
2525
AsyncToMarkdownResourceWithStreamingResponse,
2626
)
27-
from .timeseries_groups import (
28-
TimeseriesGroupsResource,
29-
AsyncTimeseriesGroupsResource,
30-
TimeseriesGroupsResourceWithRawResponse,
31-
AsyncTimeseriesGroupsResourceWithRawResponse,
32-
TimeseriesGroupsResourceWithStreamingResponse,
33-
AsyncTimeseriesGroupsResourceWithStreamingResponse,
34-
)
3527

3628
__all__ = [
3729
"ToMarkdownResource",
@@ -46,12 +38,6 @@
4638
"AsyncInferenceResourceWithRawResponse",
4739
"InferenceResourceWithStreamingResponse",
4840
"AsyncInferenceResourceWithStreamingResponse",
49-
"TimeseriesGroupsResource",
50-
"AsyncTimeseriesGroupsResource",
51-
"TimeseriesGroupsResourceWithRawResponse",
52-
"AsyncTimeseriesGroupsResourceWithRawResponse",
53-
"TimeseriesGroupsResourceWithStreamingResponse",
54-
"AsyncTimeseriesGroupsResourceWithStreamingResponse",
5541
"AIResource",
5642
"AsyncAIResource",
5743
"AIResourceWithRawResponse",

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

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@
1212
AsyncToMarkdownResourceWithStreamingResponse,
1313
)
1414
from ...._resource import SyncAPIResource, AsyncAPIResource
15-
from .timeseries_groups import (
16-
TimeseriesGroupsResource,
17-
AsyncTimeseriesGroupsResource,
18-
TimeseriesGroupsResourceWithRawResponse,
19-
AsyncTimeseriesGroupsResourceWithRawResponse,
20-
TimeseriesGroupsResourceWithStreamingResponse,
21-
AsyncTimeseriesGroupsResourceWithStreamingResponse,
22-
)
2315
from .inference.inference import (
2416
InferenceResource,
2517
AsyncInferenceResource,
@@ -41,10 +33,6 @@ def to_markdown(self) -> ToMarkdownResource:
4133
def inference(self) -> InferenceResource:
4234
return InferenceResource(self._client)
4335

44-
@cached_property
45-
def timeseries_groups(self) -> TimeseriesGroupsResource:
46-
return TimeseriesGroupsResource(self._client)
47-
4836
@cached_property
4937
def with_raw_response(self) -> AIResourceWithRawResponse:
5038
"""
@@ -74,10 +62,6 @@ def to_markdown(self) -> AsyncToMarkdownResource:
7462
def inference(self) -> AsyncInferenceResource:
7563
return AsyncInferenceResource(self._client)
7664

77-
@cached_property
78-
def timeseries_groups(self) -> AsyncTimeseriesGroupsResource:
79-
return AsyncTimeseriesGroupsResource(self._client)
80-
8165
@cached_property
8266
def with_raw_response(self) -> AsyncAIResourceWithRawResponse:
8367
"""
@@ -110,10 +94,6 @@ def to_markdown(self) -> ToMarkdownResourceWithRawResponse:
11094
def inference(self) -> InferenceResourceWithRawResponse:
11195
return InferenceResourceWithRawResponse(self._ai.inference)
11296

113-
@cached_property
114-
def timeseries_groups(self) -> TimeseriesGroupsResourceWithRawResponse:
115-
return TimeseriesGroupsResourceWithRawResponse(self._ai.timeseries_groups)
116-
11797

11898
class AsyncAIResourceWithRawResponse:
11999
def __init__(self, ai: AsyncAIResource) -> None:
@@ -127,10 +107,6 @@ def to_markdown(self) -> AsyncToMarkdownResourceWithRawResponse:
127107
def inference(self) -> AsyncInferenceResourceWithRawResponse:
128108
return AsyncInferenceResourceWithRawResponse(self._ai.inference)
129109

130-
@cached_property
131-
def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithRawResponse:
132-
return AsyncTimeseriesGroupsResourceWithRawResponse(self._ai.timeseries_groups)
133-
134110

135111
class AIResourceWithStreamingResponse:
136112
def __init__(self, ai: AIResource) -> None:
@@ -144,10 +120,6 @@ def to_markdown(self) -> ToMarkdownResourceWithStreamingResponse:
144120
def inference(self) -> InferenceResourceWithStreamingResponse:
145121
return InferenceResourceWithStreamingResponse(self._ai.inference)
146122

147-
@cached_property
148-
def timeseries_groups(self) -> TimeseriesGroupsResourceWithStreamingResponse:
149-
return TimeseriesGroupsResourceWithStreamingResponse(self._ai.timeseries_groups)
150-
151123

152124
class AsyncAIResourceWithStreamingResponse:
153125
def __init__(self, ai: AsyncAIResource) -> None:
@@ -160,7 +132,3 @@ def to_markdown(self) -> AsyncToMarkdownResourceWithStreamingResponse:
160132
@cached_property
161133
def inference(self) -> AsyncInferenceResourceWithStreamingResponse:
162134
return AsyncInferenceResourceWithStreamingResponse(self._ai.inference)
163-
164-
@cached_property
165-
def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse:
166-
return AsyncTimeseriesGroupsResourceWithStreamingResponse(self._ai.timeseries_groups)

0 commit comments

Comments
 (0)