Skip to content

Commit 2d31877

Browse files
feat(api): api update
1 parent f96551d commit 2d31877

11 files changed

Lines changed: 24 additions & 24 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-00c303ed3ff51e75fd30ab890a69ebbfde9bcb7c3a64397b081abfdd30c7b212.yml
3-
openapi_spec_hash: 6886ec9a0f6960b8da8ef7309236eefb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fe53c8e1ba9040b0f7a669ede08f5e9c2a888661408036e7ea14b76ad713de49.yml
3+
openapi_spec_hash: 5652d9793419b03cb9bba3883f6c2a92
44
config_hash: 284c4178d08f75d8c8b29f275948a8fd

src/cloudflare/resources/bot_management.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def update(
5151
self,
5252
*,
5353
zone_id: str,
54-
ai_bots_protection: Literal["block", "disabled"] | NotGiven = NOT_GIVEN,
54+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
5555
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
5656
enable_js: bool | NotGiven = NOT_GIVEN,
5757
fight_mode: bool | NotGiven = NOT_GIVEN,
@@ -152,7 +152,7 @@ def update(
152152
self,
153153
*,
154154
zone_id: str,
155-
ai_bots_protection: Literal["block", "disabled"] | NotGiven = NOT_GIVEN,
155+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
156156
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
157157
enable_js: bool | NotGiven = NOT_GIVEN,
158158
optimize_wordpress: bool | NotGiven = NOT_GIVEN,
@@ -264,7 +264,7 @@ def update(
264264
self,
265265
*,
266266
zone_id: str,
267-
ai_bots_protection: Literal["block", "disabled"] | NotGiven = NOT_GIVEN,
267+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
268268
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
269269
enable_js: bool | NotGiven = NOT_GIVEN,
270270
optimize_wordpress: bool | NotGiven = NOT_GIVEN,
@@ -379,7 +379,7 @@ def update(
379379
self,
380380
*,
381381
zone_id: str,
382-
ai_bots_protection: Literal["block", "disabled"] | NotGiven = NOT_GIVEN,
382+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
383383
auto_update_model: bool | NotGiven = NOT_GIVEN,
384384
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
385385
enable_js: bool | NotGiven = NOT_GIVEN,
@@ -486,7 +486,7 @@ def update(
486486
self,
487487
*,
488488
zone_id: str,
489-
ai_bots_protection: Literal["block", "disabled"] | NotGiven = NOT_GIVEN,
489+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
490490
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
491491
enable_js: bool | NotGiven = NOT_GIVEN,
492492
fight_mode: bool | NotGiven = NOT_GIVEN,
@@ -609,7 +609,7 @@ async def update(
609609
self,
610610
*,
611611
zone_id: str,
612-
ai_bots_protection: Literal["block", "disabled"] | NotGiven = NOT_GIVEN,
612+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
613613
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
614614
enable_js: bool | NotGiven = NOT_GIVEN,
615615
fight_mode: bool | NotGiven = NOT_GIVEN,
@@ -710,7 +710,7 @@ async def update(
710710
self,
711711
*,
712712
zone_id: str,
713-
ai_bots_protection: Literal["block", "disabled"] | NotGiven = NOT_GIVEN,
713+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
714714
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
715715
enable_js: bool | NotGiven = NOT_GIVEN,
716716
optimize_wordpress: bool | NotGiven = NOT_GIVEN,
@@ -822,7 +822,7 @@ async def update(
822822
self,
823823
*,
824824
zone_id: str,
825-
ai_bots_protection: Literal["block", "disabled"] | NotGiven = NOT_GIVEN,
825+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
826826
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
827827
enable_js: bool | NotGiven = NOT_GIVEN,
828828
optimize_wordpress: bool | NotGiven = NOT_GIVEN,
@@ -937,7 +937,7 @@ async def update(
937937
self,
938938
*,
939939
zone_id: str,
940-
ai_bots_protection: Literal["block", "disabled"] | NotGiven = NOT_GIVEN,
940+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
941941
auto_update_model: bool | NotGiven = NOT_GIVEN,
942942
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
943943
enable_js: bool | NotGiven = NOT_GIVEN,
@@ -1044,7 +1044,7 @@ async def update(
10441044
self,
10451045
*,
10461046
zone_id: str,
1047-
ai_bots_protection: Literal["block", "disabled"] | NotGiven = NOT_GIVEN,
1047+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"] | NotGiven = NOT_GIVEN,
10481048
crawler_protection: Literal["enabled", "disabled"] | NotGiven = NOT_GIVEN,
10491049
enable_js: bool | NotGiven = NOT_GIVEN,
10501050
fight_mode: bool | NotGiven = NOT_GIVEN,

src/cloudflare/types/bot_management/bot_fight_mode_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class StaleZoneConfiguration(BaseModel):
3535

3636

3737
class BotFightModeConfiguration(BaseModel):
38-
ai_bots_protection: Optional[Literal["block", "disabled"]] = None
38+
ai_bots_protection: Optional[Literal["block", "disabled", "only_on_ad_pages"]] = None
3939
"""Enable rule to block AI Scrapers and Crawlers."""
4040

4141
crawler_protection: Optional[Literal["enabled", "disabled"]] = None

src/cloudflare/types/bot_management/bot_fight_mode_configuration_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class BotFightModeConfigurationParam(TypedDict, total=False):
11-
ai_bots_protection: Literal["block", "disabled"]
11+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
1212
"""Enable rule to block AI Scrapers and Crawlers."""
1313

1414
crawler_protection: Literal["enabled", "disabled"]

src/cloudflare/types/bot_management/bot_management_update_params.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class BotFightModeConfiguration(TypedDict, total=False):
1818
zone_id: Required[str]
1919
"""Identifier."""
2020

21-
ai_bots_protection: Literal["block", "disabled"]
21+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
2222
"""Enable rule to block AI Scrapers and Crawlers."""
2323

2424
crawler_protection: Literal["enabled", "disabled"]
@@ -38,7 +38,7 @@ class SuperBotFightModeDefinitelyConfiguration(TypedDict, total=False):
3838
zone_id: Required[str]
3939
"""Identifier."""
4040

41-
ai_bots_protection: Literal["block", "disabled"]
41+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
4242
"""Enable rule to block AI Scrapers and Crawlers."""
4343

4444
crawler_protection: Literal["enabled", "disabled"]
@@ -71,7 +71,7 @@ class SuperBotFightModeLikelyConfiguration(TypedDict, total=False):
7171
zone_id: Required[str]
7272
"""Identifier."""
7373

74-
ai_bots_protection: Literal["block", "disabled"]
74+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
7575
"""Enable rule to block AI Scrapers and Crawlers."""
7676

7777
crawler_protection: Literal["enabled", "disabled"]
@@ -107,7 +107,7 @@ class SubscriptionConfiguration(TypedDict, total=False):
107107
zone_id: Required[str]
108108
"""Identifier."""
109109

110-
ai_bots_protection: Literal["block", "disabled"]
110+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
111111
"""Enable rule to block AI Scrapers and Crawlers."""
112112

113113
auto_update_model: bool

src/cloudflare/types/bot_management/subscription_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class StaleZoneConfiguration(BaseModel):
3535

3636

3737
class SubscriptionConfiguration(BaseModel):
38-
ai_bots_protection: Optional[Literal["block", "disabled"]] = None
38+
ai_bots_protection: Optional[Literal["block", "disabled", "only_on_ad_pages"]] = None
3939
"""Enable rule to block AI Scrapers and Crawlers."""
4040

4141
auto_update_model: Optional[bool] = None

src/cloudflare/types/bot_management/subscription_configuration_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class SubscriptionConfigurationParam(TypedDict, total=False):
11-
ai_bots_protection: Literal["block", "disabled"]
11+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
1212
"""Enable rule to block AI Scrapers and Crawlers."""
1313

1414
auto_update_model: bool

src/cloudflare/types/bot_management/super_bot_fight_mode_definitely_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class StaleZoneConfiguration(BaseModel):
2020

2121

2222
class SuperBotFightModeDefinitelyConfiguration(BaseModel):
23-
ai_bots_protection: Optional[Literal["block", "disabled"]] = None
23+
ai_bots_protection: Optional[Literal["block", "disabled", "only_on_ad_pages"]] = None
2424
"""Enable rule to block AI Scrapers and Crawlers."""
2525

2626
crawler_protection: Optional[Literal["enabled", "disabled"]] = None

src/cloudflare/types/bot_management/super_bot_fight_mode_definitely_configuration_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class SuperBotFightModeDefinitelyConfigurationParam(TypedDict, total=False):
11-
ai_bots_protection: Literal["block", "disabled"]
11+
ai_bots_protection: Literal["block", "disabled", "only_on_ad_pages"]
1212
"""Enable rule to block AI Scrapers and Crawlers."""
1313

1414
crawler_protection: Literal["enabled", "disabled"]

src/cloudflare/types/bot_management/super_bot_fight_mode_likely_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class StaleZoneConfiguration(BaseModel):
1414

1515

1616
class SuperBotFightModeLikelyConfiguration(BaseModel):
17-
ai_bots_protection: Optional[Literal["block", "disabled"]] = None
17+
ai_bots_protection: Optional[Literal["block", "disabled", "only_on_ad_pages"]] = None
1818
"""Enable rule to block AI Scrapers and Crawlers."""
1919

2020
crawler_protection: Optional[Literal["enabled", "disabled"]] = None

0 commit comments

Comments
 (0)