Skip to content

Commit 493c628

Browse files
feat(api): api update
1 parent f116592 commit 493c628

11 files changed

Lines changed: 78 additions & 22 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1759
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2149603ebd47ac872065d6594e87a6561ffe30aebfe31084beb2277c0ee621aa.yml
3-
openapi_spec_hash: 4a72e88a017593587a3a08c629e506fa
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-90dc16f3a79cea2e47b58d0e4c9d2a47acf00b29de5e4e33427ac0a1911bbe54.yml
3+
openapi_spec_hash: cf0290a44e021b2c81d8b0b00ea09b5d
44
config_hash: 920bb1b417565d337cbdb7c39e77be5b

src/cloudflare/resources/bot_management.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ def update(
128128
Args:
129129
zone_id: Identifier.
130130
131-
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers.
131+
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers. Please note the value
132+
`only_on_ad_pages` is currently not available for Enterprise customers.
132133
133134
crawler_protection: Enable rule to punish AI Scrapers and Crawlers via a link maze.
134135
@@ -232,7 +233,8 @@ def update(
232233
Args:
233234
zone_id: Identifier.
234235
235-
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers.
236+
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers. Please note the value
237+
`only_on_ad_pages` is currently not available for Enterprise customers.
236238
237239
crawler_protection: Enable rule to punish AI Scrapers and Crawlers via a link maze.
238240
@@ -345,7 +347,8 @@ def update(
345347
Args:
346348
zone_id: Identifier.
347349
348-
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers.
350+
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers. Please note the value
351+
`only_on_ad_pages` is currently not available for Enterprise customers.
349352
350353
crawler_protection: Enable rule to punish AI Scrapers and Crawlers via a link maze.
351354
@@ -457,7 +460,8 @@ def update(
457460
Args:
458461
zone_id: Identifier.
459462
460-
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers.
463+
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers. Please note the value
464+
`only_on_ad_pages` is currently not available for Enterprise customers.
461465
462466
auto_update_model: Automatically update to the newest bot detection models created by Cloudflare as
463467
they are released.
@@ -686,7 +690,8 @@ async def update(
686690
Args:
687691
zone_id: Identifier.
688692
689-
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers.
693+
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers. Please note the value
694+
`only_on_ad_pages` is currently not available for Enterprise customers.
690695
691696
crawler_protection: Enable rule to punish AI Scrapers and Crawlers via a link maze.
692697
@@ -790,7 +795,8 @@ async def update(
790795
Args:
791796
zone_id: Identifier.
792797
793-
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers.
798+
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers. Please note the value
799+
`only_on_ad_pages` is currently not available for Enterprise customers.
794800
795801
crawler_protection: Enable rule to punish AI Scrapers and Crawlers via a link maze.
796802
@@ -903,7 +909,8 @@ async def update(
903909
Args:
904910
zone_id: Identifier.
905911
906-
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers.
912+
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers. Please note the value
913+
`only_on_ad_pages` is currently not available for Enterprise customers.
907914
908915
crawler_protection: Enable rule to punish AI Scrapers and Crawlers via a link maze.
909916
@@ -1015,7 +1022,8 @@ async def update(
10151022
Args:
10161023
zone_id: Identifier.
10171024
1018-
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers.
1025+
ai_bots_protection: Enable rule to block AI Scrapers and Crawlers. Please note the value
1026+
`only_on_ad_pages` is currently not available for Enterprise customers.
10191027
10201028
auto_update_model: Automatically update to the newest bot detection models created by Cloudflare as
10211029
they are released.

src/cloudflare/types/bot_management/bot_fight_mode_configuration.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ class StaleZoneConfiguration(BaseModel):
3636

3737
class BotFightModeConfiguration(BaseModel):
3838
ai_bots_protection: Optional[Literal["block", "disabled", "only_on_ad_pages"]] = None
39-
"""Enable rule to block AI Scrapers and Crawlers."""
39+
"""Enable rule to block AI Scrapers and Crawlers.
40+
41+
Please note the value `only_on_ad_pages` is currently not available for
42+
Enterprise customers.
43+
"""
4044

4145
crawler_protection: Optional[Literal["enabled", "disabled"]] = None
4246
"""Enable rule to punish AI Scrapers and Crawlers via a link maze."""

src/cloudflare/types/bot_management/bot_fight_mode_configuration_param.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99

1010
class BotFightModeConfigurationParam(TypedDict, total=False):
1111
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
12-
"""Enable rule to block AI Scrapers and Crawlers."""
12+
"""Enable rule to block AI Scrapers and Crawlers.
13+
14+
Please note the value `only_on_ad_pages` is currently not available for
15+
Enterprise customers.
16+
"""
1317

1418
crawler_protection: Literal["enabled", "disabled"]
1519
"""Enable rule to punish AI Scrapers and Crawlers via a link maze."""

src/cloudflare/types/bot_management/bot_management_update_params.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ class BotFightModeConfiguration(TypedDict, total=False):
1919
"""Identifier."""
2020

2121
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
22-
"""Enable rule to block AI Scrapers and Crawlers."""
22+
"""Enable rule to block AI Scrapers and Crawlers.
23+
24+
Please note the value `only_on_ad_pages` is currently not available for
25+
Enterprise customers.
26+
"""
2327

2428
crawler_protection: Literal["enabled", "disabled"]
2529
"""Enable rule to punish AI Scrapers and Crawlers via a link maze."""
@@ -39,7 +43,11 @@ class SuperBotFightModeDefinitelyConfiguration(TypedDict, total=False):
3943
"""Identifier."""
4044

4145
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
42-
"""Enable rule to block AI Scrapers and Crawlers."""
46+
"""Enable rule to block AI Scrapers and Crawlers.
47+
48+
Please note the value `only_on_ad_pages` is currently not available for
49+
Enterprise customers.
50+
"""
4351

4452
crawler_protection: Literal["enabled", "disabled"]
4553
"""Enable rule to punish AI Scrapers and Crawlers via a link maze."""
@@ -72,7 +80,11 @@ class SuperBotFightModeLikelyConfiguration(TypedDict, total=False):
7280
"""Identifier."""
7381

7482
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
75-
"""Enable rule to block AI Scrapers and Crawlers."""
83+
"""Enable rule to block AI Scrapers and Crawlers.
84+
85+
Please note the value `only_on_ad_pages` is currently not available for
86+
Enterprise customers.
87+
"""
7688

7789
crawler_protection: Literal["enabled", "disabled"]
7890
"""Enable rule to punish AI Scrapers and Crawlers via a link maze."""
@@ -108,7 +120,11 @@ class SubscriptionConfiguration(TypedDict, total=False):
108120
"""Identifier."""
109121

110122
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
111-
"""Enable rule to block AI Scrapers and Crawlers."""
123+
"""Enable rule to block AI Scrapers and Crawlers.
124+
125+
Please note the value `only_on_ad_pages` is currently not available for
126+
Enterprise customers.
127+
"""
112128

113129
auto_update_model: bool
114130
"""

src/cloudflare/types/bot_management/subscription_configuration.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ class StaleZoneConfiguration(BaseModel):
3636

3737
class SubscriptionConfiguration(BaseModel):
3838
ai_bots_protection: Optional[Literal["block", "disabled", "only_on_ad_pages"]] = None
39-
"""Enable rule to block AI Scrapers and Crawlers."""
39+
"""Enable rule to block AI Scrapers and Crawlers.
40+
41+
Please note the value `only_on_ad_pages` is currently not available for
42+
Enterprise customers.
43+
"""
4044

4145
auto_update_model: Optional[bool] = None
4246
"""

src/cloudflare/types/bot_management/subscription_configuration_param.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99

1010
class SubscriptionConfigurationParam(TypedDict, total=False):
1111
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
12-
"""Enable rule to block AI Scrapers and Crawlers."""
12+
"""Enable rule to block AI Scrapers and Crawlers.
13+
14+
Please note the value `only_on_ad_pages` is currently not available for
15+
Enterprise customers.
16+
"""
1317

1418
auto_update_model: bool
1519
"""

src/cloudflare/types/bot_management/super_bot_fight_mode_definitely_configuration.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class StaleZoneConfiguration(BaseModel):
2121

2222
class SuperBotFightModeDefinitelyConfiguration(BaseModel):
2323
ai_bots_protection: Optional[Literal["block", "disabled", "only_on_ad_pages"]] = None
24-
"""Enable rule to block AI Scrapers and Crawlers."""
24+
"""Enable rule to block AI Scrapers and Crawlers.
25+
26+
Please note the value `only_on_ad_pages` is currently not available for
27+
Enterprise customers.
28+
"""
2529

2630
crawler_protection: Optional[Literal["enabled", "disabled"]] = None
2731
"""Enable rule to punish AI Scrapers and Crawlers via a link maze."""

src/cloudflare/types/bot_management/super_bot_fight_mode_definitely_configuration_param.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99

1010
class SuperBotFightModeDefinitelyConfigurationParam(TypedDict, total=False):
1111
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
12-
"""Enable rule to block AI Scrapers and Crawlers."""
12+
"""Enable rule to block AI Scrapers and Crawlers.
13+
14+
Please note the value `only_on_ad_pages` is currently not available for
15+
Enterprise customers.
16+
"""
1317

1418
crawler_protection: Literal["enabled", "disabled"]
1519
"""Enable rule to punish AI Scrapers and Crawlers via a link maze."""

src/cloudflare/types/bot_management/super_bot_fight_mode_likely_configuration.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ class StaleZoneConfiguration(BaseModel):
1515

1616
class SuperBotFightModeLikelyConfiguration(BaseModel):
1717
ai_bots_protection: Optional[Literal["block", "disabled", "only_on_ad_pages"]] = None
18-
"""Enable rule to block AI Scrapers and Crawlers."""
18+
"""Enable rule to block AI Scrapers and Crawlers.
19+
20+
Please note the value `only_on_ad_pages` is currently not available for
21+
Enterprise customers.
22+
"""
1923

2024
crawler_protection: Optional[Literal["enabled", "disabled"]] = None
2125
"""Enable rule to punish AI Scrapers and Crawlers via a link maze."""

0 commit comments

Comments
 (0)