Skip to content

Commit f70dfa8

Browse files
chore(api): update composite API spec
1 parent 0337708 commit f70dfa8

45 files changed

Lines changed: 405 additions & 292 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2412
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-ee348bae3bc19d58249c0a0334ea1be47869fd3c73ea0cbbf505f185acc85393.yml
3-
openapi_spec_hash: ce574d5447a6a01dde1d36709a279533
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-9cadb6f47eb3d145352d0e7112605e553321aa88991fc55ba6efbe665bb2b52f.yml
3+
openapi_spec_hash: 653808896077b2132c43a0a8a383679c
44
config_hash: a23f4c71ccd6c6117c24f63ae415dcf7

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ def update(
378378
| Omit = omit,
379379
rewrite_query: bool | Omit = omit,
380380
score_threshold: float | Omit = omit,
381+
source: Optional[str] | Omit = omit,
381382
source_params: Optional[instance_update_params.SourceParams] | Omit = omit,
382383
summarization: bool | Omit = omit,
383384
summarization_model: Optional[
@@ -481,6 +482,7 @@ def update(
481482
"rewrite_model": rewrite_model,
482483
"rewrite_query": rewrite_query,
483484
"score_threshold": score_threshold,
485+
"source": source,
484486
"source_params": source_params,
485487
"summarization": summarization,
486488
"summarization_model": summarization_model,
@@ -1165,6 +1167,7 @@ async def update(
11651167
| Omit = omit,
11661168
rewrite_query: bool | Omit = omit,
11671169
score_threshold: float | Omit = omit,
1170+
source: Optional[str] | Omit = omit,
11681171
source_params: Optional[instance_update_params.SourceParams] | Omit = omit,
11691172
summarization: bool | Omit = omit,
11701173
summarization_model: Optional[
@@ -1268,6 +1271,7 @@ async def update(
12681271
"rewrite_model": rewrite_model,
12691272
"rewrite_query": rewrite_query,
12701273
"score_threshold": score_threshold,
1274+
"source": source,
12711275
"source_params": source_params,
12721276
"summarization": summarization,
12731277
"summarization_model": summarization_model,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ def update(
396396
| Omit = omit,
397397
rewrite_query: bool | Omit = omit,
398398
score_threshold: float | Omit = omit,
399+
source: Optional[str] | Omit = omit,
399400
source_params: Optional[instance_update_params.SourceParams] | Omit = omit,
400401
summarization: bool | Omit = omit,
401402
summarization_model: Optional[
@@ -506,6 +507,7 @@ def update(
506507
"rewrite_model": rewrite_model,
507508
"rewrite_query": rewrite_query,
508509
"score_threshold": score_threshold,
510+
"source": source,
509511
"source_params": source_params,
510512
"summarization": summarization,
511513
"summarization_model": summarization_model,
@@ -1243,6 +1245,7 @@ async def update(
12431245
| Omit = omit,
12441246
rewrite_query: bool | Omit = omit,
12451247
score_threshold: float | Omit = omit,
1248+
source: Optional[str] | Omit = omit,
12461249
source_params: Optional[instance_update_params.SourceParams] | Omit = omit,
12471250
summarization: bool | Omit = omit,
12481251
summarization_model: Optional[
@@ -1353,6 +1356,7 @@ async def update(
13531356
"rewrite_model": rewrite_model,
13541357
"rewrite_query": rewrite_query,
13551358
"score_threshold": score_threshold,
1359+
"source": source,
13561360
"source_params": source_params,
13571361
"summarization": summarization,
13581362
"summarization_model": summarization_model,

src/cloudflare/resources/zero_trust/access/ai_controls/mcp/servers.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ def create(
8080
8181
is_shared_oauth_callback_enabled: When true, the gateway worker uses the shared Cloudflare-owned OAuth callback
8282
endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the
83-
customer portal hostname. New public server creates default to true; existing
84-
servers default to false from migration until explicitly updated. Effective
85-
behavior is gated by the gateway worker's per-env rollout mode KV key.
83+
customer portal hostname. Defaults to false (off); opt in per server by setting
84+
true. Effective behavior is gated by the gateway worker's per-env rollout mode
85+
KV key.
8686
8787
secure_web_gateway: Route outbound traffic to this MCP server through Zero Trust Secure Web Gateway
8888
@@ -150,9 +150,9 @@ def update(
150150
151151
is_shared_oauth_callback_enabled: When true, the gateway worker uses the shared Cloudflare-owned OAuth callback
152152
endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the
153-
customer portal hostname. New public server creates default to true; existing
154-
servers default to false from migration until explicitly updated. Effective
155-
behavior is gated by the gateway worker's per-env rollout mode KV key.
153+
customer portal hostname. Defaults to false (off); opt in per server by setting
154+
true. Effective behavior is gated by the gateway worker's per-env rollout mode
155+
KV key.
156156
157157
secure_web_gateway: Route outbound traffic to this MCP server through Zero Trust Secure Web Gateway
158158
@@ -421,9 +421,9 @@ async def create(
421421
422422
is_shared_oauth_callback_enabled: When true, the gateway worker uses the shared Cloudflare-owned OAuth callback
423423
endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the
424-
customer portal hostname. New public server creates default to true; existing
425-
servers default to false from migration until explicitly updated. Effective
426-
behavior is gated by the gateway worker's per-env rollout mode KV key.
424+
customer portal hostname. Defaults to false (off); opt in per server by setting
425+
true. Effective behavior is gated by the gateway worker's per-env rollout mode
426+
KV key.
427427
428428
secure_web_gateway: Route outbound traffic to this MCP server through Zero Trust Secure Web Gateway
429429
@@ -491,9 +491,9 @@ async def update(
491491
492492
is_shared_oauth_callback_enabled: When true, the gateway worker uses the shared Cloudflare-owned OAuth callback
493493
endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the
494-
customer portal hostname. New public server creates default to true; existing
495-
servers default to false from migration until explicitly updated. Effective
496-
behavior is gated by the gateway worker's per-env rollout mode KV key.
494+
customer portal hostname. Defaults to false (off); opt in per server by setting
495+
true. Effective behavior is gated by the gateway worker's per-env rollout mode
496+
KV key.
497497
498498
secure_web_gateway: Route outbound traffic to this MCP server through Zero Trust Secure Web Gateway
499499

src/cloudflare/resources/zero_trust/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Methods:
9999

100100
- <code title="post /accounts/{account_id}/devices/ip-profiles">client.zero_trust.devices.ip_profiles.<a href="./src/cloudflare/resources/zero_trust/devices/ip_profiles.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/devices/ip_profile_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/devices/ip_profile.py">IPProfile</a></code>
101101
- <code title="patch /accounts/{account_id}/devices/ip-profiles/{profile_id}">client.zero_trust.devices.ip_profiles.<a href="./src/cloudflare/resources/zero_trust/devices/ip_profiles.py">update</a>(profile_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/devices/ip_profile_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/devices/ip_profile.py">IPProfile</a></code>
102-
- <code title="get /accounts/{account_id}/devices/ip-profiles">client.zero_trust.devices.ip_profiles.<a href="./src/cloudflare/resources/zero_trust/devices/ip_profiles.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/devices/ip_profile_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/devices/ip_profile.py">SyncSinglePage[IPProfile]</a></code>
102+
- <code title="get /accounts/{account_id}/devices/ip-profiles">client.zero_trust.devices.ip_profiles.<a href="./src/cloudflare/resources/zero_trust/devices/ip_profiles.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/devices/ip_profile_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/devices/ip_profile.py">SyncV4PagePaginationArray[IPProfile]</a></code>
103103
- <code title="delete /accounts/{account_id}/devices/ip-profiles/{profile_id}">client.zero_trust.devices.ip_profiles.<a href="./src/cloudflare/resources/zero_trust/devices/ip_profiles.py">delete</a>(profile_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/ip_profile_delete_response.py">IPProfileDeleteResponse</a></code>
104104
- <code title="get /accounts/{account_id}/devices/ip-profiles/{profile_id}">client.zero_trust.devices.ip_profiles.<a href="./src/cloudflare/resources/zero_trust/devices/ip_profiles.py">get</a>(profile_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/ip_profile.py">IPProfile</a></code>
105105

src/cloudflare/resources/zero_trust/devices/ip_profiles.py

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
async_to_streamed_response_wrapper,
1818
)
1919
from ...._wrappers import ResultWrapper
20-
from ....pagination import SyncSinglePage, AsyncSinglePage
20+
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
2121
from ...._base_client import AsyncPaginator, make_request_options
2222
from ....types.zero_trust.devices import ip_profile_list_params, ip_profile_create_params, ip_profile_update_params
2323
from ....types.zero_trust.devices.ip_profile import IPProfile
@@ -201,18 +201,21 @@ def list(
201201
self,
202202
*,
203203
account_id: str,
204+
page: int | Omit = omit,
204205
per_page: int | Omit = omit,
205206
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
206207
# The extra values given here take precedence over values defined on the client or passed to this method.
207208
extra_headers: Headers | None = None,
208209
extra_query: Query | None = None,
209210
extra_body: Body | None = None,
210211
timeout: float | httpx.Timeout | None | NotGiven = not_given,
211-
) -> SyncSinglePage[IPProfile]:
212+
) -> SyncV4PagePaginationArray[IPProfile]:
212213
"""
213214
Lists WARP Device IP profiles.
214215
215216
Args:
217+
page: The page number to return.
218+
216219
per_page: The number of IP profiles to return per page.
217220
218221
extra_headers: Send extra headers
@@ -227,13 +230,19 @@ def list(
227230
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
228231
return self._get_api_list(
229232
path_template("/accounts/{account_id}/devices/ip-profiles", account_id=account_id),
230-
page=SyncSinglePage[IPProfile],
233+
page=SyncV4PagePaginationArray[IPProfile],
231234
options=make_request_options(
232235
extra_headers=extra_headers,
233236
extra_query=extra_query,
234237
extra_body=extra_body,
235238
timeout=timeout,
236-
query=maybe_transform({"per_page": per_page}, ip_profile_list_params.IPProfileListParams),
239+
query=maybe_transform(
240+
{
241+
"page": page,
242+
"per_page": per_page,
243+
},
244+
ip_profile_list_params.IPProfileListParams,
245+
),
237246
),
238247
model=IPProfile,
239248
)
@@ -498,18 +507,21 @@ def list(
498507
self,
499508
*,
500509
account_id: str,
510+
page: int | Omit = omit,
501511
per_page: int | Omit = omit,
502512
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
503513
# The extra values given here take precedence over values defined on the client or passed to this method.
504514
extra_headers: Headers | None = None,
505515
extra_query: Query | None = None,
506516
extra_body: Body | None = None,
507517
timeout: float | httpx.Timeout | None | NotGiven = not_given,
508-
) -> AsyncPaginator[IPProfile, AsyncSinglePage[IPProfile]]:
518+
) -> AsyncPaginator[IPProfile, AsyncV4PagePaginationArray[IPProfile]]:
509519
"""
510520
Lists WARP Device IP profiles.
511521
512522
Args:
523+
page: The page number to return.
524+
513525
per_page: The number of IP profiles to return per page.
514526
515527
extra_headers: Send extra headers
@@ -524,13 +536,19 @@ def list(
524536
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
525537
return self._get_api_list(
526538
path_template("/accounts/{account_id}/devices/ip-profiles", account_id=account_id),
527-
page=AsyncSinglePage[IPProfile],
539+
page=AsyncV4PagePaginationArray[IPProfile],
528540
options=make_request_options(
529541
extra_headers=extra_headers,
530542
extra_query=extra_query,
531543
extra_body=extra_body,
532544
timeout=timeout,
533-
query=maybe_transform({"per_page": per_page}, ip_profile_list_params.IPProfileListParams),
545+
query=maybe_transform(
546+
{
547+
"page": page,
548+
"per_page": per_page,
549+
},
550+
ip_profile_list_params.IPProfileListParams,
551+
),
534552
),
535553
model=IPProfile,
536554
)

src/cloudflare/resources/zero_trust/devices/policies/custom/custom.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def create(
101101
enabled: bool | Omit = omit,
102102
exclude: Iterable[SplitTunnelExcludeParam] | Omit = omit,
103103
exclude_office_ips: bool | Omit = omit,
104+
global_acceleration: Optional[custom_create_params.GlobalAcceleration] | Omit = omit,
104105
include: Iterable[SplitTunnelIncludeParam] | Omit = omit,
105106
lan_allow_minutes: float | Omit = omit,
106107
lan_allow_subnet_size: float | Omit = omit,
@@ -160,6 +161,11 @@ def create(
160161
161162
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
162163
164+
global_acceleration: Global Acceleration settings for China. When configured, WARP clients connect to
165+
the Global Accelerator addresses instead of the default ones. Please contact
166+
your account representative to enable this feature on your account. See
167+
https://developers.cloudflare.com/china-network/concepts/global-acceleration/.
168+
163169
include: List of routes included in the WARP client's tunnel. Both 'exclude' and
164170
'include' cannot be set in the same request.
165171
@@ -213,6 +219,7 @@ def create(
213219
"enabled": enabled,
214220
"exclude": exclude,
215221
"exclude_office_ips": exclude_office_ips,
222+
"global_acceleration": global_acceleration,
216223
"include": include,
217224
"lan_allow_minutes": lan_allow_minutes,
218225
"lan_allow_subnet_size": lan_allow_subnet_size,
@@ -327,6 +334,7 @@ def edit(
327334
enabled: bool | Omit = omit,
328335
exclude: Iterable[SplitTunnelExcludeParam] | Omit = omit,
329336
exclude_office_ips: bool | Omit = omit,
337+
global_acceleration: Optional[custom_edit_params.GlobalAcceleration] | Omit = omit,
330338
include: Iterable[SplitTunnelIncludeParam] | Omit = omit,
331339
lan_allow_minutes: float | Omit = omit,
332340
lan_allow_subnet_size: float | Omit = omit,
@@ -378,6 +386,11 @@ def edit(
378386
379387
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
380388
389+
global_acceleration: Global Acceleration settings for China. When configured, WARP clients connect to
390+
the Global Accelerator addresses instead of the default ones. Please contact
391+
your account representative to enable this feature on your account. See
392+
https://developers.cloudflare.com/china-network/concepts/global-acceleration/.
393+
381394
include: List of routes included in the WARP client's tunnel. Both 'exclude' and
382395
'include' cannot be set in the same request.
383396
@@ -442,6 +455,7 @@ def edit(
442455
"enabled": enabled,
443456
"exclude": exclude,
444457
"exclude_office_ips": exclude_office_ips,
458+
"global_acceleration": global_acceleration,
445459
"include": include,
446460
"lan_allow_minutes": lan_allow_minutes,
447461
"lan_allow_subnet_size": lan_allow_subnet_size,
@@ -561,6 +575,7 @@ async def create(
561575
enabled: bool | Omit = omit,
562576
exclude: Iterable[SplitTunnelExcludeParam] | Omit = omit,
563577
exclude_office_ips: bool | Omit = omit,
578+
global_acceleration: Optional[custom_create_params.GlobalAcceleration] | Omit = omit,
564579
include: Iterable[SplitTunnelIncludeParam] | Omit = omit,
565580
lan_allow_minutes: float | Omit = omit,
566581
lan_allow_subnet_size: float | Omit = omit,
@@ -620,6 +635,11 @@ async def create(
620635
621636
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
622637
638+
global_acceleration: Global Acceleration settings for China. When configured, WARP clients connect to
639+
the Global Accelerator addresses instead of the default ones. Please contact
640+
your account representative to enable this feature on your account. See
641+
https://developers.cloudflare.com/china-network/concepts/global-acceleration/.
642+
623643
include: List of routes included in the WARP client's tunnel. Both 'exclude' and
624644
'include' cannot be set in the same request.
625645
@@ -673,6 +693,7 @@ async def create(
673693
"enabled": enabled,
674694
"exclude": exclude,
675695
"exclude_office_ips": exclude_office_ips,
696+
"global_acceleration": global_acceleration,
676697
"include": include,
677698
"lan_allow_minutes": lan_allow_minutes,
678699
"lan_allow_subnet_size": lan_allow_subnet_size,
@@ -787,6 +808,7 @@ async def edit(
787808
enabled: bool | Omit = omit,
788809
exclude: Iterable[SplitTunnelExcludeParam] | Omit = omit,
789810
exclude_office_ips: bool | Omit = omit,
811+
global_acceleration: Optional[custom_edit_params.GlobalAcceleration] | Omit = omit,
790812
include: Iterable[SplitTunnelIncludeParam] | Omit = omit,
791813
lan_allow_minutes: float | Omit = omit,
792814
lan_allow_subnet_size: float | Omit = omit,
@@ -838,6 +860,11 @@ async def edit(
838860
839861
exclude_office_ips: Whether to add Microsoft IPs to Split Tunnel exclusions.
840862
863+
global_acceleration: Global Acceleration settings for China. When configured, WARP clients connect to
864+
the Global Accelerator addresses instead of the default ones. Please contact
865+
your account representative to enable this feature on your account. See
866+
https://developers.cloudflare.com/china-network/concepts/global-acceleration/.
867+
841868
include: List of routes included in the WARP client's tunnel. Both 'exclude' and
842869
'include' cannot be set in the same request.
843870
@@ -902,6 +929,7 @@ async def edit(
902929
"enabled": enabled,
903930
"exclude": exclude,
904931
"exclude_office_ips": exclude_office_ips,
932+
"global_acceleration": global_acceleration,
905933
"include": include,
906934
"lan_allow_minutes": lan_allow_minutes,
907935
"lan_allow_subnet_size": lan_allow_subnet_size,

0 commit comments

Comments
 (0)