Skip to content

Commit 2914707

Browse files
feat(api): api update
1 parent 88f8c8a commit 2914707

File tree

229 files changed

+3658
-13114
lines changed

Some content is hidden

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

229 files changed

+3658
-13114
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1727
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3ceecccb58d541adca7fe096feb5f83dc1513ef46c142cd06c270753beb5e3e8.yml
3-
openapi_spec_hash: c14e6f07f356890c9436bae49ef2f64b
1+
configured_endpoints: 1733
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c109df42d166d1586b0bd33d8ab8345dea421efc529f938f0a6db1e4c576766b.yml
3+
openapi_spec_hash: bf5cfe4ffaf97a414a0d4a75d66d1046
44
config_hash: dfeb8d5cdc5b0e8ce06686b558ed124e

api.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,13 +2563,13 @@ Methods:
25632563
Types:
25642564

25652565
```python
2566-
from cloudflare.types.kv import Namespace, NamespaceUpdateResponse, NamespaceDeleteResponse
2566+
from cloudflare.types.kv import Namespace, NamespaceDeleteResponse
25672567
```
25682568

25692569
Methods:
25702570

25712571
- <code title="post /accounts/{account_id}/storage/kv/namespaces">client.kv.namespaces.<a href="./src/cloudflare/resources/kv/namespaces/namespaces.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/kv/namespace_create_params.py">params</a>) -> <a href="./src/cloudflare/types/kv/namespace.py">Optional[Namespace]</a></code>
2572-
- <code title="put /accounts/{account_id}/storage/kv/namespaces/{namespace_id}">client.kv.namespaces.<a href="./src/cloudflare/resources/kv/namespaces/namespaces.py">update</a>(namespace_id, \*, account_id, \*\*<a href="src/cloudflare/types/kv/namespace_update_params.py">params</a>) -> <a href="./src/cloudflare/types/kv/namespace_update_response.py">Optional[NamespaceUpdateResponse]</a></code>
2572+
- <code title="put /accounts/{account_id}/storage/kv/namespaces/{namespace_id}">client.kv.namespaces.<a href="./src/cloudflare/resources/kv/namespaces/namespaces.py">update</a>(namespace_id, \*, account_id, \*\*<a href="src/cloudflare/types/kv/namespace_update_params.py">params</a>) -> <a href="./src/cloudflare/types/kv/namespace.py">Namespace</a></code>
25732573
- <code title="get /accounts/{account_id}/storage/kv/namespaces">client.kv.namespaces.<a href="./src/cloudflare/resources/kv/namespaces/namespaces.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/kv/namespace_list_params.py">params</a>) -> <a href="./src/cloudflare/types/kv/namespace.py">SyncV4PagePaginationArray[Namespace]</a></code>
25742574
- <code title="delete /accounts/{account_id}/storage/kv/namespaces/{namespace_id}">client.kv.namespaces.<a href="./src/cloudflare/resources/kv/namespaces/namespaces.py">delete</a>(namespace_id, \*, account_id) -> <a href="./src/cloudflare/types/kv/namespace_delete_response.py">Optional[NamespaceDeleteResponse]</a></code>
25752575
- <code title="get /accounts/{account_id}/storage/kv/namespaces/{namespace_id}">client.kv.namespaces.<a href="./src/cloudflare/resources/kv/namespaces/namespaces.py">get</a>(namespace_id, \*, account_id) -> <a href="./src/cloudflare/types/kv/namespace.py">Optional[Namespace]</a></code>
@@ -5285,9 +5285,25 @@ Methods:
52855285
Types:
52865286

52875287
```python
5288-
from cloudflare.types.zero_trust.devices import SchemaData, SchemaHTTP
5288+
from cloudflare.types.zero_trust.devices import (
5289+
SchemaData,
5290+
SchemaHTTP,
5291+
DEXTestCreateResponse,
5292+
DEXTestUpdateResponse,
5293+
DEXTestListResponse,
5294+
DEXTestDeleteResponse,
5295+
DEXTestGetResponse,
5296+
)
52895297
```
52905298

5299+
Methods:
5300+
5301+
- <code title="post /accounts/{account_id}/devices/dex_tests">client.zero_trust.devices.dex_tests.<a href="./src/cloudflare/resources/zero_trust/devices/dex_tests.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/devices/dex_test_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/devices/dex_test_create_response.py">Optional[DEXTestCreateResponse]</a></code>
5302+
- <code title="put /accounts/{account_id}/devices/dex_tests/{dex_test_id}">client.zero_trust.devices.dex_tests.<a href="./src/cloudflare/resources/zero_trust/devices/dex_tests.py">update</a>(dex_test_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/devices/dex_test_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/devices/dex_test_update_response.py">Optional[DEXTestUpdateResponse]</a></code>
5303+
- <code title="get /accounts/{account_id}/devices/dex_tests">client.zero_trust.devices.dex_tests.<a href="./src/cloudflare/resources/zero_trust/devices/dex_tests.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/dex_test_list_response.py">SyncSinglePage[DEXTestListResponse]</a></code>
5304+
- <code title="delete /accounts/{account_id}/devices/dex_tests/{dex_test_id}">client.zero_trust.devices.dex_tests.<a href="./src/cloudflare/resources/zero_trust/devices/dex_tests.py">delete</a>(dex_test_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/dex_test_delete_response.py">Optional[DEXTestDeleteResponse]</a></code>
5305+
- <code title="get /accounts/{account_id}/devices/dex_tests/{dex_test_id}">client.zero_trust.devices.dex_tests.<a href="./src/cloudflare/resources/zero_trust/devices/dex_tests.py">get</a>(dex_test_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/dex_test_get_response.py">Optional[DEXTestGetResponse]</a></code>
5306+
52915307
### Networks
52925308

52935309
Types:
@@ -6638,6 +6654,12 @@ Methods:
66386654
- <code title="patch /accounts/{account_id}/gateway/configuration">client.zero_trust.gateway.configurations.<a href="./src/cloudflare/resources/zero_trust/gateway/configurations/configurations.py">edit</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/gateway/configuration_edit_response.py">Optional[ConfigurationEditResponse]</a></code>
66396655
- <code title="get /accounts/{account_id}/gateway/configuration">client.zero_trust.gateway.configurations.<a href="./src/cloudflare/resources/zero_trust/gateway/configurations/configurations.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/zero_trust/gateway/configuration_get_response.py">Optional[ConfigurationGetResponse]</a></code>
66406656

6657+
#### CustomCertificate
6658+
6659+
Methods:
6660+
6661+
- <code title="get /accounts/{account_id}/gateway/configuration/custom_certificate">client.zero_trust.gateway.configurations.custom_certificate.<a href="./src/cloudflare/resources/zero_trust/gateway/configurations/custom_certificate.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/zero_trust/gateway/custom_certificate_settings.py">CustomCertificateSettings</a></code>
6662+
66416663
### Lists
66426664

66436665
Types:

src/cloudflare/resources/brand_protection.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ def submit(
5858
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
5959
) -> Optional[Submit]:
6060
"""
61-
Submit suspicious URL for scanning
61+
Submit suspicious URL for scanning.
6262
6363
Args:
64-
account_id: Identifier
64+
account_id: Identifier.
6565
66-
url: URL(s) to filter submissions results by
66+
url: URL(s) to filter submissions results by.
6767
6868
extra_headers: Send extra headers
6969
@@ -105,7 +105,7 @@ def url_info(
105105
Gets phishing details about a URL.
106106
107107
Args:
108-
account_id: Identifier
108+
account_id: Identifier.
109109
110110
url: Submission URL(s) to filter submission results by.
111111
@@ -174,12 +174,12 @@ async def submit(
174174
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
175175
) -> Optional[Submit]:
176176
"""
177-
Submit suspicious URL for scanning
177+
Submit suspicious URL for scanning.
178178
179179
Args:
180-
account_id: Identifier
180+
account_id: Identifier.
181181
182-
url: URL(s) to filter submissions results by
182+
url: URL(s) to filter submissions results by.
183183
184184
extra_headers: Send extra headers
185185
@@ -221,7 +221,7 @@ async def url_info(
221221
Gets phishing details about a URL.
222222
223223
Args:
224-
account_id: Identifier
224+
account_id: Identifier.
225225
226226
url: Submission URL(s) to filter submission results by.
227227

src/cloudflare/resources/browser_rendering/content.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def create(
5050
*,
5151
account_id: str,
5252
cache_ttl: float | NotGiven = NOT_GIVEN,
53+
action_timeout: float | NotGiven = NOT_GIVEN,
5354
add_script_tag: Iterable[content_create_params.AddScriptTag] | NotGiven = NOT_GIVEN,
5455
add_style_tag: Iterable[content_create_params.AddStyleTag] | NotGiven = NOT_GIVEN,
5556
allow_request_pattern: List[str] | NotGiven = NOT_GIVEN,
@@ -130,6 +131,10 @@ def create(
130131
131132
cache_ttl: Cache TTL default is 5s. Set to 0 to disable.
132133
134+
action_timeout: The maximum duration allowed for the browser action to complete after the page
135+
has loaded (such as taking screenshots, extracting content, or generating PDFs).
136+
If this time limit is exceeded, the action stops and returns a timeout error.
137+
133138
add_script_tag: Adds a `<script>` tag into the page with the desired URL or content.
134139
135140
add_style_tag: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a
@@ -180,6 +185,7 @@ def create(
180185
f"/accounts/{account_id}/browser-rendering/content",
181186
body=maybe_transform(
182187
{
188+
"action_timeout": action_timeout,
183189
"add_script_tag": add_script_tag,
184190
"add_style_tag": add_style_tag,
185191
"allow_request_pattern": allow_request_pattern,
@@ -239,6 +245,7 @@ async def create(
239245
*,
240246
account_id: str,
241247
cache_ttl: float | NotGiven = NOT_GIVEN,
248+
action_timeout: float | NotGiven = NOT_GIVEN,
242249
add_script_tag: Iterable[content_create_params.AddScriptTag] | NotGiven = NOT_GIVEN,
243250
add_style_tag: Iterable[content_create_params.AddStyleTag] | NotGiven = NOT_GIVEN,
244251
allow_request_pattern: List[str] | NotGiven = NOT_GIVEN,
@@ -319,6 +326,10 @@ async def create(
319326
320327
cache_ttl: Cache TTL default is 5s. Set to 0 to disable.
321328
329+
action_timeout: The maximum duration allowed for the browser action to complete after the page
330+
has loaded (such as taking screenshots, extracting content, or generating PDFs).
331+
If this time limit is exceeded, the action stops and returns a timeout error.
332+
322333
add_script_tag: Adds a `<script>` tag into the page with the desired URL or content.
323334
324335
add_style_tag: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a
@@ -369,6 +380,7 @@ async def create(
369380
f"/accounts/{account_id}/browser-rendering/content",
370381
body=await async_maybe_transform(
371382
{
383+
"action_timeout": action_timeout,
372384
"add_script_tag": add_script_tag,
373385
"add_style_tag": add_style_tag,
374386
"allow_request_pattern": allow_request_pattern,

src/cloudflare/resources/browser_rendering/json.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def create(
5050
*,
5151
account_id: str,
5252
cache_ttl: float | NotGiven = NOT_GIVEN,
53+
action_timeout: float | NotGiven = NOT_GIVEN,
5354
add_script_tag: Iterable[json_create_params.AddScriptTag] | NotGiven = NOT_GIVEN,
5455
add_style_tag: Iterable[json_create_params.AddStyleTag] | NotGiven = NOT_GIVEN,
5556
allow_request_pattern: List[str] | NotGiven = NOT_GIVEN,
@@ -132,6 +133,10 @@ def create(
132133
133134
cache_ttl: Cache TTL default is 5s. Set to 0 to disable.
134135
136+
action_timeout: The maximum duration allowed for the browser action to complete after the page
137+
has loaded (such as taking screenshots, extracting content, or generating PDFs).
138+
If this time limit is exceeded, the action stops and returns a timeout error.
139+
135140
add_script_tag: Adds a `<script>` tag into the page with the desired URL or content.
136141
137142
add_style_tag: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a
@@ -182,6 +187,7 @@ def create(
182187
f"/accounts/{account_id}/browser-rendering/json",
183188
body=maybe_transform(
184189
{
190+
"action_timeout": action_timeout,
185191
"add_script_tag": add_script_tag,
186192
"add_style_tag": add_style_tag,
187193
"allow_request_pattern": allow_request_pattern,
@@ -243,6 +249,7 @@ async def create(
243249
*,
244250
account_id: str,
245251
cache_ttl: float | NotGiven = NOT_GIVEN,
252+
action_timeout: float | NotGiven = NOT_GIVEN,
246253
add_script_tag: Iterable[json_create_params.AddScriptTag] | NotGiven = NOT_GIVEN,
247254
add_style_tag: Iterable[json_create_params.AddStyleTag] | NotGiven = NOT_GIVEN,
248255
allow_request_pattern: List[str] | NotGiven = NOT_GIVEN,
@@ -325,6 +332,10 @@ async def create(
325332
326333
cache_ttl: Cache TTL default is 5s. Set to 0 to disable.
327334
335+
action_timeout: The maximum duration allowed for the browser action to complete after the page
336+
has loaded (such as taking screenshots, extracting content, or generating PDFs).
337+
If this time limit is exceeded, the action stops and returns a timeout error.
338+
328339
add_script_tag: Adds a `<script>` tag into the page with the desired URL or content.
329340
330341
add_style_tag: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a
@@ -375,6 +386,7 @@ async def create(
375386
f"/accounts/{account_id}/browser-rendering/json",
376387
body=await async_maybe_transform(
377388
{
389+
"action_timeout": action_timeout,
378390
"add_script_tag": add_script_tag,
379391
"add_style_tag": add_style_tag,
380392
"allow_request_pattern": allow_request_pattern,

src/cloudflare/resources/browser_rendering/links.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def create(
5050
*,
5151
account_id: str,
5252
cache_ttl: float | NotGiven = NOT_GIVEN,
53+
action_timeout: float | NotGiven = NOT_GIVEN,
5354
add_script_tag: Iterable[link_create_params.AddScriptTag] | NotGiven = NOT_GIVEN,
5455
add_style_tag: Iterable[link_create_params.AddStyleTag] | NotGiven = NOT_GIVEN,
5556
allow_request_pattern: List[str] | NotGiven = NOT_GIVEN,
@@ -129,6 +130,10 @@ def create(
129130
130131
cache_ttl: Cache TTL default is 5s. Set to 0 to disable.
131132
133+
action_timeout: The maximum duration allowed for the browser action to complete after the page
134+
has loaded (such as taking screenshots, extracting content, or generating PDFs).
135+
If this time limit is exceeded, the action stops and returns a timeout error.
136+
132137
add_script_tag: Adds a `<script>` tag into the page with the desired URL or content.
133138
134139
add_style_tag: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a
@@ -179,6 +184,7 @@ def create(
179184
f"/accounts/{account_id}/browser-rendering/links",
180185
body=maybe_transform(
181186
{
187+
"action_timeout": action_timeout,
182188
"add_script_tag": add_script_tag,
183189
"add_style_tag": add_style_tag,
184190
"allow_request_pattern": allow_request_pattern,
@@ -239,6 +245,7 @@ async def create(
239245
*,
240246
account_id: str,
241247
cache_ttl: float | NotGiven = NOT_GIVEN,
248+
action_timeout: float | NotGiven = NOT_GIVEN,
242249
add_script_tag: Iterable[link_create_params.AddScriptTag] | NotGiven = NOT_GIVEN,
243250
add_style_tag: Iterable[link_create_params.AddStyleTag] | NotGiven = NOT_GIVEN,
244251
allow_request_pattern: List[str] | NotGiven = NOT_GIVEN,
@@ -318,6 +325,10 @@ async def create(
318325
319326
cache_ttl: Cache TTL default is 5s. Set to 0 to disable.
320327
328+
action_timeout: The maximum duration allowed for the browser action to complete after the page
329+
has loaded (such as taking screenshots, extracting content, or generating PDFs).
330+
If this time limit is exceeded, the action stops and returns a timeout error.
331+
321332
add_script_tag: Adds a `<script>` tag into the page with the desired URL or content.
322333
323334
add_style_tag: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a
@@ -368,6 +379,7 @@ async def create(
368379
f"/accounts/{account_id}/browser-rendering/links",
369380
body=await async_maybe_transform(
370381
{
382+
"action_timeout": action_timeout,
371383
"add_script_tag": add_script_tag,
372384
"add_style_tag": add_style_tag,
373385
"allow_request_pattern": allow_request_pattern,

src/cloudflare/resources/browser_rendering/markdown.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def create(
5050
*,
5151
account_id: str,
5252
cache_ttl: float | NotGiven = NOT_GIVEN,
53+
action_timeout: float | NotGiven = NOT_GIVEN,
5354
add_script_tag: Iterable[markdown_create_params.AddScriptTag] | NotGiven = NOT_GIVEN,
5455
add_style_tag: Iterable[markdown_create_params.AddStyleTag] | NotGiven = NOT_GIVEN,
5556
allow_request_pattern: List[str] | NotGiven = NOT_GIVEN,
@@ -130,6 +131,10 @@ def create(
130131
131132
cache_ttl: Cache TTL default is 5s. Set to 0 to disable.
132133
134+
action_timeout: The maximum duration allowed for the browser action to complete after the page
135+
has loaded (such as taking screenshots, extracting content, or generating PDFs).
136+
If this time limit is exceeded, the action stops and returns a timeout error.
137+
133138
add_script_tag: Adds a `<script>` tag into the page with the desired URL or content.
134139
135140
add_style_tag: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a
@@ -180,6 +185,7 @@ def create(
180185
f"/accounts/{account_id}/browser-rendering/markdown",
181186
body=maybe_transform(
182187
{
188+
"action_timeout": action_timeout,
183189
"add_script_tag": add_script_tag,
184190
"add_style_tag": add_style_tag,
185191
"allow_request_pattern": allow_request_pattern,
@@ -239,6 +245,7 @@ async def create(
239245
*,
240246
account_id: str,
241247
cache_ttl: float | NotGiven = NOT_GIVEN,
248+
action_timeout: float | NotGiven = NOT_GIVEN,
242249
add_script_tag: Iterable[markdown_create_params.AddScriptTag] | NotGiven = NOT_GIVEN,
243250
add_style_tag: Iterable[markdown_create_params.AddStyleTag] | NotGiven = NOT_GIVEN,
244251
allow_request_pattern: List[str] | NotGiven = NOT_GIVEN,
@@ -319,6 +326,10 @@ async def create(
319326
320327
cache_ttl: Cache TTL default is 5s. Set to 0 to disable.
321328
329+
action_timeout: The maximum duration allowed for the browser action to complete after the page
330+
has loaded (such as taking screenshots, extracting content, or generating PDFs).
331+
If this time limit is exceeded, the action stops and returns a timeout error.
332+
322333
add_script_tag: Adds a `<script>` tag into the page with the desired URL or content.
323334
324335
add_style_tag: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a
@@ -369,6 +380,7 @@ async def create(
369380
f"/accounts/{account_id}/browser-rendering/markdown",
370381
body=await async_maybe_transform(
371382
{
383+
"action_timeout": action_timeout,
372384
"add_script_tag": add_script_tag,
373385
"add_style_tag": add_style_tag,
374386
"allow_request_pattern": allow_request_pattern,

0 commit comments

Comments
 (0)