Skip to content

Commit 5698cb6

Browse files
feat(api): api update
1 parent c019dae commit 5698cb6

12 files changed

Lines changed: 130 additions & 2 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1791
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c35ceaa57ff731aa0a379ee4284a6e9608940b917c362163d52feb4be72c8d31.yml
3-
openapi_spec_hash: 07fccce915fde9d81a0294df06c47cb4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-68e2c48d15c00e0f04f76f066813a87e61922428c0decfd20d5b306cc1f874fb.yml
3+
openapi_spec_hash: 5fde58aafaa296f76dce8626a9c5437c
44
config_hash: a369123b780ef98d372657aadaf013ee

src/cloudflare/resources/bot_management.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def update(
5555
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
5656
enable_js: bool | NotGiven = NOT_GIVEN,
5757
fight_mode: bool | NotGiven = NOT_GIVEN,
58+
is_robots_txt_managed: bool | NotGiven = NOT_GIVEN,
5859
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5960
# The extra values given here take precedence over values defined on the client or passed to this method.
6061
extra_headers: Headers | None = None,
@@ -138,6 +139,9 @@ def update(
138139
139140
fight_mode: Whether to enable Bot Fight Mode.
140141
142+
is_robots_txt_managed: Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
143+
then managed robots.txt will be prepended to the existing robots.txt.
144+
141145
extra_headers: Send extra headers
142146
143147
extra_query: Add additional query parameters to the request
@@ -156,6 +160,7 @@ def update(
156160
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
157161
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
158162
enable_js: bool | NotGiven = NOT_GIVEN,
163+
is_robots_txt_managed: bool | NotGiven = NOT_GIVEN,
159164
optimize_wordpress: bool | NotGiven = NOT_GIVEN,
160165
sbfm_definitely_automated: Literal["allow", "block", "managed_challenge"] | NotGiven = NOT_GIVEN,
161166
sbfm_static_resource_protection: bool | NotGiven = NOT_GIVEN,
@@ -241,6 +246,9 @@ def update(
241246
enable_js: Use lightweight, invisible JavaScript detections to improve Bot Management.
242247
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
243248
249+
is_robots_txt_managed: Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
250+
then managed robots.txt will be prepended to the existing robots.txt.
251+
244252
optimize_wordpress: Whether to optimize Super Bot Fight Mode protections for Wordpress.
245253
246254
sbfm_definitely_automated: Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
@@ -269,6 +277,7 @@ def update(
269277
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
270278
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
271279
enable_js: bool | NotGiven = NOT_GIVEN,
280+
is_robots_txt_managed: bool | NotGiven = NOT_GIVEN,
272281
optimize_wordpress: bool | NotGiven = NOT_GIVEN,
273282
sbfm_definitely_automated: Literal["allow", "block", "managed_challenge"] | NotGiven = NOT_GIVEN,
274283
sbfm_likely_automated: Literal["allow", "block", "managed_challenge"] | NotGiven = NOT_GIVEN,
@@ -355,6 +364,9 @@ def update(
355364
enable_js: Use lightweight, invisible JavaScript detections to improve Bot Management.
356365
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
357366
367+
is_robots_txt_managed: Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
368+
then managed robots.txt will be prepended to the existing robots.txt.
369+
358370
optimize_wordpress: Whether to optimize Super Bot Fight Mode protections for Wordpress.
359371
360372
sbfm_definitely_automated: Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
@@ -386,6 +398,7 @@ def update(
386398
auto_update_model: bool | NotGiven = NOT_GIVEN,
387399
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
388400
enable_js: bool | NotGiven = NOT_GIVEN,
401+
is_robots_txt_managed: bool | NotGiven = NOT_GIVEN,
389402
suppress_session_score: bool | NotGiven = NOT_GIVEN,
390403
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
391404
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -472,6 +485,9 @@ def update(
472485
enable_js: Use lightweight, invisible JavaScript detections to improve Bot Management.
473486
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
474487
488+
is_robots_txt_managed: Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
489+
then managed robots.txt will be prepended to the existing robots.txt.
490+
475491
suppress_session_score: Whether to disable tracking the highest bot score for a session in the Bot
476492
Management cookie.
477493
@@ -494,6 +510,7 @@ def update(
494510
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
495511
enable_js: bool | NotGiven = NOT_GIVEN,
496512
fight_mode: bool | NotGiven = NOT_GIVEN,
513+
is_robots_txt_managed: bool | NotGiven = NOT_GIVEN,
497514
optimize_wordpress: bool | NotGiven = NOT_GIVEN,
498515
sbfm_definitely_automated: Literal["allow", "block", "managed_challenge"] | NotGiven = NOT_GIVEN,
499516
sbfm_static_resource_protection: bool | NotGiven = NOT_GIVEN,
@@ -520,6 +537,7 @@ def update(
520537
"crawler_protection": crawler_protection,
521538
"enable_js": enable_js,
522539
"fight_mode": fight_mode,
540+
"is_robots_txt_managed": is_robots_txt_managed,
523541
"optimize_wordpress": optimize_wordpress,
524542
"sbfm_definitely_automated": sbfm_definitely_automated,
525543
"sbfm_static_resource_protection": sbfm_static_resource_protection,
@@ -617,6 +635,7 @@ async def update(
617635
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
618636
enable_js: bool | NotGiven = NOT_GIVEN,
619637
fight_mode: bool | NotGiven = NOT_GIVEN,
638+
is_robots_txt_managed: bool | NotGiven = NOT_GIVEN,
620639
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
621640
# The extra values given here take precedence over values defined on the client or passed to this method.
622641
extra_headers: Headers | None = None,
@@ -700,6 +719,9 @@ async def update(
700719
701720
fight_mode: Whether to enable Bot Fight Mode.
702721
722+
is_robots_txt_managed: Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
723+
then managed robots.txt will be prepended to the existing robots.txt.
724+
703725
extra_headers: Send extra headers
704726
705727
extra_query: Add additional query parameters to the request
@@ -718,6 +740,7 @@ async def update(
718740
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
719741
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
720742
enable_js: bool | NotGiven = NOT_GIVEN,
743+
is_robots_txt_managed: bool | NotGiven = NOT_GIVEN,
721744
optimize_wordpress: bool | NotGiven = NOT_GIVEN,
722745
sbfm_definitely_automated: Literal["allow", "block", "managed_challenge"] | NotGiven = NOT_GIVEN,
723746
sbfm_static_resource_protection: bool | NotGiven = NOT_GIVEN,
@@ -803,6 +826,9 @@ async def update(
803826
enable_js: Use lightweight, invisible JavaScript detections to improve Bot Management.
804827
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
805828
829+
is_robots_txt_managed: Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
830+
then managed robots.txt will be prepended to the existing robots.txt.
831+
806832
optimize_wordpress: Whether to optimize Super Bot Fight Mode protections for Wordpress.
807833
808834
sbfm_definitely_automated: Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
@@ -831,6 +857,7 @@ async def update(
831857
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
832858
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
833859
enable_js: bool | NotGiven = NOT_GIVEN,
860+
is_robots_txt_managed: bool | NotGiven = NOT_GIVEN,
834861
optimize_wordpress: bool | NotGiven = NOT_GIVEN,
835862
sbfm_definitely_automated: Literal["allow", "block", "managed_challenge"] | NotGiven = NOT_GIVEN,
836863
sbfm_likely_automated: Literal["allow", "block", "managed_challenge"] | NotGiven = NOT_GIVEN,
@@ -917,6 +944,9 @@ async def update(
917944
enable_js: Use lightweight, invisible JavaScript detections to improve Bot Management.
918945
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
919946
947+
is_robots_txt_managed: Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
948+
then managed robots.txt will be prepended to the existing robots.txt.
949+
920950
optimize_wordpress: Whether to optimize Super Bot Fight Mode protections for Wordpress.
921951
922952
sbfm_definitely_automated: Super Bot Fight Mode (SBFM) action to take on definitely automated requests.
@@ -948,6 +978,7 @@ async def update(
948978
auto_update_model: bool | NotGiven = NOT_GIVEN,
949979
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
950980
enable_js: bool | NotGiven = NOT_GIVEN,
981+
is_robots_txt_managed: bool | NotGiven = NOT_GIVEN,
951982
suppress_session_score: bool | NotGiven = NOT_GIVEN,
952983
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
953984
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1034,6 +1065,9 @@ async def update(
10341065
enable_js: Use lightweight, invisible JavaScript detections to improve Bot Management.
10351066
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
10361067
1068+
is_robots_txt_managed: Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
1069+
then managed robots.txt will be prepended to the existing robots.txt.
1070+
10371071
suppress_session_score: Whether to disable tracking the highest bot score for a session in the Bot
10381072
Management cookie.
10391073
@@ -1056,6 +1090,7 @@ async def update(
10561090
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
10571091
enable_js: bool | NotGiven = NOT_GIVEN,
10581092
fight_mode: bool | NotGiven = NOT_GIVEN,
1093+
is_robots_txt_managed: bool | NotGiven = NOT_GIVEN,
10591094
optimize_wordpress: bool | NotGiven = NOT_GIVEN,
10601095
sbfm_definitely_automated: Literal["allow", "block", "managed_challenge"] | NotGiven = NOT_GIVEN,
10611096
sbfm_static_resource_protection: bool | NotGiven = NOT_GIVEN,
@@ -1082,6 +1117,7 @@ async def update(
10821117
"crawler_protection": crawler_protection,
10831118
"enable_js": enable_js,
10841119
"fight_mode": fight_mode,
1120+
"is_robots_txt_managed": is_robots_txt_managed,
10851121
"optimize_wordpress": optimize_wordpress,
10861122
"sbfm_definitely_automated": sbfm_definitely_automated,
10871123
"sbfm_static_resource_protection": sbfm_static_resource_protection,

src/cloudflare/types/bot_management/bot_fight_mode_configuration.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ class BotFightModeConfiguration(BaseModel):
5454
fight_mode: Optional[bool] = None
5555
"""Whether to enable Bot Fight Mode."""
5656

57+
is_robots_txt_managed: Optional[bool] = None
58+
"""Enable cloudflare managed robots.txt.
59+
60+
If an existing robots.txt is detected, then managed robots.txt will be prepended
61+
to the existing robots.txt.
62+
"""
63+
5764
stale_zone_configuration: Optional[StaleZoneConfiguration] = None
5865
"""
5966
A read-only field that shows which unauthorized settings are currently active on

src/cloudflare/types/bot_management/bot_fight_mode_configuration_param.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ class BotFightModeConfigurationParam(TypedDict, total=False):
2626

2727
fight_mode: bool
2828
"""Whether to enable Bot Fight Mode."""
29+
30+
is_robots_txt_managed: bool
31+
"""Enable cloudflare managed robots.txt.
32+
33+
If an existing robots.txt is detected, then managed robots.txt will be prepended
34+
to the existing robots.txt.
35+
"""

src/cloudflare/types/bot_management/bot_management_update_params.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ class BotFightModeConfiguration(TypedDict, total=False):
3737
fight_mode: bool
3838
"""Whether to enable Bot Fight Mode."""
3939

40+
is_robots_txt_managed: bool
41+
"""Enable cloudflare managed robots.txt.
42+
43+
If an existing robots.txt is detected, then managed robots.txt will be prepended
44+
to the existing robots.txt.
45+
"""
46+
4047

4148
class SuperBotFightModeDefinitelyConfiguration(TypedDict, total=False):
4249
zone_id: Required[str]
@@ -58,6 +65,13 @@ class SuperBotFightModeDefinitelyConfiguration(TypedDict, total=False):
5865
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
5966
"""
6067

68+
is_robots_txt_managed: bool
69+
"""Enable cloudflare managed robots.txt.
70+
71+
If an existing robots.txt is detected, then managed robots.txt will be prepended
72+
to the existing robots.txt.
73+
"""
74+
6175
optimize_wordpress: bool
6276
"""Whether to optimize Super Bot Fight Mode protections for Wordpress."""
6377

@@ -95,6 +109,13 @@ class SuperBotFightModeLikelyConfiguration(TypedDict, total=False):
95109
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
96110
"""
97111

112+
is_robots_txt_managed: bool
113+
"""Enable cloudflare managed robots.txt.
114+
115+
If an existing robots.txt is detected, then managed robots.txt will be prepended
116+
to the existing robots.txt.
117+
"""
118+
98119
optimize_wordpress: bool
99120
"""Whether to optimize Super Bot Fight Mode protections for Wordpress."""
100121

@@ -142,6 +163,13 @@ class SubscriptionConfiguration(TypedDict, total=False):
142163
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
143164
"""
144165

166+
is_robots_txt_managed: bool
167+
"""Enable cloudflare managed robots.txt.
168+
169+
If an existing robots.txt is detected, then managed robots.txt will be prepended
170+
to the existing robots.txt.
171+
"""
172+
145173
suppress_session_score: bool
146174
"""
147175
Whether to disable tracking the highest bot score for a session in the Bot

src/cloudflare/types/bot_management/subscription_configuration.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ class SubscriptionConfiguration(BaseModel):
5858
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
5959
"""
6060

61+
is_robots_txt_managed: Optional[bool] = None
62+
"""Enable cloudflare managed robots.txt.
63+
64+
If an existing robots.txt is detected, then managed robots.txt will be prepended
65+
to the existing robots.txt.
66+
"""
67+
6168
stale_zone_configuration: Optional[StaleZoneConfiguration] = None
6269
"""
6370
A read-only field that shows which unauthorized settings are currently active on

src/cloudflare/types/bot_management/subscription_configuration_param.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ class SubscriptionConfigurationParam(TypedDict, total=False):
3131
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
3232
"""
3333

34+
is_robots_txt_managed: bool
35+
"""Enable cloudflare managed robots.txt.
36+
37+
If an existing robots.txt is detected, then managed robots.txt will be prepended
38+
to the existing robots.txt.
39+
"""
40+
3441
suppress_session_score: bool
3542
"""
3643
Whether to disable tracking the highest bot score for a session in the Bot

src/cloudflare/types/bot_management/super_bot_fight_mode_definitely_configuration.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ class SuperBotFightModeDefinitelyConfiguration(BaseModel):
3636
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
3737
"""
3838

39+
is_robots_txt_managed: Optional[bool] = None
40+
"""Enable cloudflare managed robots.txt.
41+
42+
If an existing robots.txt is detected, then managed robots.txt will be prepended
43+
to the existing robots.txt.
44+
"""
45+
3946
optimize_wordpress: Optional[bool] = None
4047
"""Whether to optimize Super Bot Fight Mode protections for Wordpress."""
4148

src/cloudflare/types/bot_management/super_bot_fight_mode_definitely_configuration_param.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ class SuperBotFightModeDefinitelyConfigurationParam(TypedDict, total=False):
2424
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
2525
"""
2626

27+
is_robots_txt_managed: bool
28+
"""Enable cloudflare managed robots.txt.
29+
30+
If an existing robots.txt is detected, then managed robots.txt will be prepended
31+
to the existing robots.txt.
32+
"""
33+
2734
optimize_wordpress: bool
2835
"""Whether to optimize Super Bot Fight Mode protections for Wordpress."""
2936

src/cloudflare/types/bot_management/super_bot_fight_mode_likely_configuration.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ class SuperBotFightModeLikelyConfiguration(BaseModel):
3030
[Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/).
3131
"""
3232

33+
is_robots_txt_managed: Optional[bool] = None
34+
"""Enable cloudflare managed robots.txt.
35+
36+
If an existing robots.txt is detected, then managed robots.txt will be prepended
37+
to the existing robots.txt.
38+
"""
39+
3340
optimize_wordpress: Optional[bool] = None
3441
"""Whether to optimize Super Bot Fight Mode protections for Wordpress."""
3542

0 commit comments

Comments
 (0)