Skip to content

Commit 640eb58

Browse files
chore(api): update composite API spec
1 parent 21e9135 commit 640eb58

58 files changed

Lines changed: 1369 additions & 533 deletions

File tree

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1993
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d3b3813ba8fb0b5303cfad8fcbd363941c494711e4cce61069553692b664774f.yml
3-
openapi_spec_hash: 4f467a53fd61500db4f7561dcfaaa088
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2c5a168341aaea1d7f1c7376373a05f2710e9113d06d327e0094eaf33c875cb9.yml
3+
openapi_spec_hash: ea35d76e5547184fe53dd92940db0da5
44
config_hash: ef319a79ff462ce842b47460e889e37b

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2025 Cloudflare
189+
Copyright 2026 Cloudflare
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

api.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,11 +458,21 @@ Methods:
458458

459459
## Subscriptions
460460

461+
Types:
462+
463+
```python
464+
from cloudflare.types.zones import (
465+
SubscriptionCreateResponse,
466+
SubscriptionUpdateResponse,
467+
SubscriptionGetResponse,
468+
)
469+
```
470+
461471
Methods:
462472

463-
- <code title="post /zones/{zone_id}/subscription">client.zones.subscriptions.<a href="./src/cloudflare/resources/zones/subscriptions.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/subscription_create_params.py">params</a>) -> <a href="./src/cloudflare/types/shared/subscription.py">Subscription</a></code>
464-
- <code title="put /zones/{zone_id}/subscription">client.zones.subscriptions.<a href="./src/cloudflare/resources/zones/subscriptions.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/subscription_update_params.py">params</a>) -> <a href="./src/cloudflare/types/shared/subscription.py">Subscription</a></code>
465-
- <code title="get /zones/{zone_id}/subscription">client.zones.subscriptions.<a href="./src/cloudflare/resources/zones/subscriptions.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/shared/subscription.py">Subscription</a></code>
473+
- <code title="post /zones/{zone_id}/subscription">client.zones.subscriptions.<a href="./src/cloudflare/resources/zones/subscriptions.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/subscription_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/subscription_create_response.py">SubscriptionCreateResponse</a></code>
474+
- <code title="put /zones/{zone_id}/subscription">client.zones.subscriptions.<a href="./src/cloudflare/resources/zones/subscriptions.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/subscription_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/subscription_update_response.py">SubscriptionUpdateResponse</a></code>
475+
- <code title="get /zones/{zone_id}/subscription">client.zones.subscriptions.<a href="./src/cloudflare/resources/zones/subscriptions.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/subscription_get_response.py">SubscriptionGetResponse</a></code>
466476

467477
## Plans
468478

src/cloudflare/resources/aisearch/instances/instances.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def create(
129129
| Omit = omit,
130130
max_num_results: int | Omit = omit,
131131
metadata: instance_create_params.Metadata | Omit = omit,
132+
public_endpoint_params: instance_create_params.PublicEndpointParams | Omit = omit,
132133
reranking: bool | Omit = omit,
133134
reranking_model: Literal["@cf/baai/bge-reranker-base", ""] | Omit = omit,
134135
rewrite_model: Literal[
@@ -202,6 +203,7 @@ def create(
202203
"embedding_model": embedding_model,
203204
"max_num_results": max_num_results,
204205
"metadata": metadata,
206+
"public_endpoint_params": public_endpoint_params,
205207
"reranking": reranking,
206208
"reranking_model": reranking_model,
207209
"rewrite_model": rewrite_model,
@@ -276,6 +278,7 @@ def update(
276278
max_num_results: int | Omit = omit,
277279
metadata: instance_update_params.Metadata | Omit = omit,
278280
paused: bool | Omit = omit,
281+
public_endpoint_params: instance_update_params.PublicEndpointParams | Omit = omit,
279282
reranking: bool | Omit = omit,
280283
reranking_model: Literal["@cf/baai/bge-reranker-base", ""] | Omit = omit,
281284
rewrite_model: Literal[
@@ -384,6 +387,7 @@ def update(
384387
"max_num_results": max_num_results,
385388
"metadata": metadata,
386389
"paused": paused,
390+
"public_endpoint_params": public_endpoint_params,
387391
"reranking": reranking,
388392
"reranking_model": reranking_model,
389393
"rewrite_model": rewrite_model,
@@ -668,6 +672,7 @@ async def create(
668672
| Omit = omit,
669673
max_num_results: int | Omit = omit,
670674
metadata: instance_create_params.Metadata | Omit = omit,
675+
public_endpoint_params: instance_create_params.PublicEndpointParams | Omit = omit,
671676
reranking: bool | Omit = omit,
672677
reranking_model: Literal["@cf/baai/bge-reranker-base", ""] | Omit = omit,
673678
rewrite_model: Literal[
@@ -741,6 +746,7 @@ async def create(
741746
"embedding_model": embedding_model,
742747
"max_num_results": max_num_results,
743748
"metadata": metadata,
749+
"public_endpoint_params": public_endpoint_params,
744750
"reranking": reranking,
745751
"reranking_model": reranking_model,
746752
"rewrite_model": rewrite_model,
@@ -815,6 +821,7 @@ async def update(
815821
max_num_results: int | Omit = omit,
816822
metadata: instance_update_params.Metadata | Omit = omit,
817823
paused: bool | Omit = omit,
824+
public_endpoint_params: instance_update_params.PublicEndpointParams | Omit = omit,
818825
reranking: bool | Omit = omit,
819826
reranking_model: Literal["@cf/baai/bge-reranker-base", ""] | Omit = omit,
820827
rewrite_model: Literal[
@@ -923,6 +930,7 @@ async def update(
923930
"max_num_results": max_num_results,
924931
"metadata": metadata,
925932
"paused": paused,
933+
"public_endpoint_params": public_endpoint_params,
926934
"reranking": reranking,
927935
"reranking_model": reranking_model,
928936
"rewrite_model": rewrite_model,

src/cloudflare/resources/cloudforce_one/threat_events/threat_events.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ def edit(
415415
attacker: Optional[str] | Omit = omit,
416416
attacker_country: str | Omit = omit,
417417
category: str | Omit = omit,
418+
created_at: Union[str, datetime] | Omit = omit,
419+
dataset_id: str | Omit = omit,
418420
date: Union[str, datetime] | Omit = omit,
419421
event: str | Omit = omit,
420422
indicator: str | Omit = omit,
@@ -458,6 +460,8 @@ def edit(
458460
"attacker": attacker,
459461
"attacker_country": attacker_country,
460462
"category": category,
463+
"created_at": created_at,
464+
"dataset_id": dataset_id,
461465
"date": date,
462466
"event": event,
463467
"indicator": indicator,
@@ -819,6 +823,8 @@ async def edit(
819823
attacker: Optional[str] | Omit = omit,
820824
attacker_country: str | Omit = omit,
821825
category: str | Omit = omit,
826+
created_at: Union[str, datetime] | Omit = omit,
827+
dataset_id: str | Omit = omit,
822828
date: Union[str, datetime] | Omit = omit,
823829
event: str | Omit = omit,
824830
indicator: str | Omit = omit,
@@ -862,6 +868,8 @@ async def edit(
862868
"attacker": attacker,
863869
"attacker_country": attacker_country,
864870
"category": category,
871+
"created_at": created_at,
872+
"dataset_id": dataset_id,
865873
"date": date,
866874
"event": event,
867875
"indicator": indicator,

src/cloudflare/resources/custom_pages.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def update(
6060
"ratelimit_block",
6161
"under_attack",
6262
"waf_block",
63+
"waf_challenge",
6364
],
6465
*,
6566
state: Literal["default", "customized"],
@@ -189,6 +190,7 @@ def get(
189190
"ratelimit_block",
190191
"under_attack",
191192
"waf_block",
193+
"waf_challenge",
192194
],
193195
*,
194196
account_id: str | Omit = omit,
@@ -277,6 +279,7 @@ async def update(
277279
"ratelimit_block",
278280
"under_attack",
279281
"waf_block",
282+
"waf_challenge",
280283
],
281284
*,
282285
state: Literal["default", "customized"],
@@ -406,6 +409,7 @@ async def get(
406409
"ratelimit_block",
407410
"under_attack",
408411
"waf_block",
412+
"waf_challenge",
409413
],
410414
*,
411415
account_id: str | Omit = omit,

src/cloudflare/resources/hyperdrive/configs.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ def create(
6767
Args:
6868
account_id: Define configurations using a unique string identifier.
6969
70+
name: The name of the Hyperdrive configuration. Used to identify the configuration in
71+
the Cloudflare dashboard and API.
72+
7073
origin_connection_limit: The (soft) maximum number of connections the Hyperdrive is allowed to make to
7174
the origin database.
7275
@@ -127,6 +130,9 @@ def update(
127130
128131
hyperdrive_id: Define configurations using a unique string identifier.
129132
133+
name: The name of the Hyperdrive configuration. Used to identify the configuration in
134+
the Cloudflare dashboard and API.
135+
130136
origin_connection_limit: The (soft) maximum number of connections the Hyperdrive is allowed to make to
131137
the origin database.
132138
@@ -271,6 +277,9 @@ def edit(
271277
272278
hyperdrive_id: Define configurations using a unique string identifier.
273279
280+
name: The name of the Hyperdrive configuration. Used to identify the configuration in
281+
the Cloudflare dashboard and API.
282+
274283
origin_connection_limit: The (soft) maximum number of connections the Hyperdrive is allowed to make to
275284
the origin database.
276285
@@ -395,6 +404,9 @@ async def create(
395404
Args:
396405
account_id: Define configurations using a unique string identifier.
397406
407+
name: The name of the Hyperdrive configuration. Used to identify the configuration in
408+
the Cloudflare dashboard and API.
409+
398410
origin_connection_limit: The (soft) maximum number of connections the Hyperdrive is allowed to make to
399411
the origin database.
400412
@@ -455,6 +467,9 @@ async def update(
455467
456468
hyperdrive_id: Define configurations using a unique string identifier.
457469
470+
name: The name of the Hyperdrive configuration. Used to identify the configuration in
471+
the Cloudflare dashboard and API.
472+
458473
origin_connection_limit: The (soft) maximum number of connections the Hyperdrive is allowed to make to
459474
the origin database.
460475
@@ -599,6 +614,9 @@ async def edit(
599614
600615
hyperdrive_id: Define configurations using a unique string identifier.
601616
617+
name: The name of the Hyperdrive configuration. Used to identify the configuration in
618+
the Cloudflare dashboard and API.
619+
602620
origin_connection_limit: The (soft) maximum number of connections the Hyperdrive is allowed to make to
603621
the origin database.
604622

0 commit comments

Comments
 (0)