Skip to content

Commit 6c20151

Browse files
feat(api): api update
1 parent fa269c0 commit 6c20151

File tree

2 files changed

+38
-20
lines changed

2 files changed

+38
-20
lines changed

.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

bot_management/botmanagement.go

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ func (r *BotManagementService) Get(ctx context.Context, query BotManagementGetPa
138138
}
139139

140140
type BotFightModeConfiguration struct {
141-
// Enable rule to block AI Scrapers and Crawlers.
141+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
142+
// `only_on_ad_pages` is currently not available for Enterprise customers.
142143
AIBotsProtection BotFightModeConfigurationAIBotsProtection `json:"ai_bots_protection"`
143144
// Enable rule to punish AI Scrapers and Crawlers via a link maze.
144145
CrawlerProtection BotFightModeConfigurationCrawlerProtection `json:"crawler_protection"`
@@ -181,7 +182,8 @@ func (r BotFightModeConfiguration) implementsBotManagementUpdateResponse() {}
181182

182183
func (r BotFightModeConfiguration) implementsBotManagementGetResponse() {}
183184

184-
// Enable rule to block AI Scrapers and Crawlers.
185+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
186+
// `only_on_ad_pages` is currently not available for Enterprise customers.
185187
type BotFightModeConfigurationAIBotsProtection string
186188

187189
const (
@@ -256,7 +258,8 @@ func (r botFightModeConfigurationStaleZoneConfigurationJSON) RawJSON() string {
256258
}
257259

258260
type BotFightModeConfigurationParam struct {
259-
// Enable rule to block AI Scrapers and Crawlers.
261+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
262+
// `only_on_ad_pages` is currently not available for Enterprise customers.
260263
AIBotsProtection param.Field[BotFightModeConfigurationAIBotsProtection] `json:"ai_bots_protection"`
261264
// Enable rule to punish AI Scrapers and Crawlers via a link maze.
262265
CrawlerProtection param.Field[BotFightModeConfigurationCrawlerProtection] `json:"crawler_protection"`
@@ -297,7 +300,8 @@ func (r BotFightModeConfigurationStaleZoneConfigurationParam) MarshalJSON() (dat
297300
}
298301

299302
type SubscriptionConfiguration struct {
300-
// Enable rule to block AI Scrapers and Crawlers.
303+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
304+
// `only_on_ad_pages` is currently not available for Enterprise customers.
301305
AIBotsProtection SubscriptionConfigurationAIBotsProtection `json:"ai_bots_protection"`
302306
// Automatically update to the newest bot detection models created by Cloudflare as
303307
// they are released.
@@ -346,7 +350,8 @@ func (r SubscriptionConfiguration) implementsBotManagementUpdateResponse() {}
346350

347351
func (r SubscriptionConfiguration) implementsBotManagementGetResponse() {}
348352

349-
// Enable rule to block AI Scrapers and Crawlers.
353+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
354+
// `only_on_ad_pages` is currently not available for Enterprise customers.
350355
type SubscriptionConfigurationAIBotsProtection string
351356

352357
const (
@@ -421,7 +426,8 @@ func (r subscriptionConfigurationStaleZoneConfigurationJSON) RawJSON() string {
421426
}
422427

423428
type SubscriptionConfigurationParam struct {
424-
// Enable rule to block AI Scrapers and Crawlers.
429+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
430+
// `only_on_ad_pages` is currently not available for Enterprise customers.
425431
AIBotsProtection param.Field[SubscriptionConfigurationAIBotsProtection] `json:"ai_bots_protection"`
426432
// Automatically update to the newest bot detection models created by Cloudflare as
427433
// they are released.
@@ -467,7 +473,8 @@ func (r SubscriptionConfigurationStaleZoneConfigurationParam) MarshalJSON() (dat
467473
}
468474

469475
type SuperBotFightModeDefinitelyConfiguration struct {
470-
// Enable rule to block AI Scrapers and Crawlers.
476+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
477+
// `only_on_ad_pages` is currently not available for Enterprise customers.
471478
AIBotsProtection SuperBotFightModeDefinitelyConfigurationAIBotsProtection `json:"ai_bots_protection"`
472479
// Enable rule to punish AI Scrapers and Crawlers via a link maze.
473480
CrawlerProtection SuperBotFightModeDefinitelyConfigurationCrawlerProtection `json:"crawler_protection"`
@@ -521,7 +528,8 @@ func (r SuperBotFightModeDefinitelyConfiguration) implementsBotManagementUpdateR
521528

522529
func (r SuperBotFightModeDefinitelyConfiguration) implementsBotManagementGetResponse() {}
523530

524-
// Enable rule to block AI Scrapers and Crawlers.
531+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
532+
// `only_on_ad_pages` is currently not available for Enterprise customers.
525533
type SuperBotFightModeDefinitelyConfigurationAIBotsProtection string
526534

527535
const (
@@ -617,7 +625,8 @@ func (r superBotFightModeDefinitelyConfigurationStaleZoneConfigurationJSON) RawJ
617625
}
618626

619627
type SuperBotFightModeDefinitelyConfigurationParam struct {
620-
// Enable rule to block AI Scrapers and Crawlers.
628+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
629+
// `only_on_ad_pages` is currently not available for Enterprise customers.
621630
AIBotsProtection param.Field[SuperBotFightModeDefinitelyConfigurationAIBotsProtection] `json:"ai_bots_protection"`
622631
// Enable rule to punish AI Scrapers and Crawlers via a link maze.
623632
CrawlerProtection param.Field[SuperBotFightModeDefinitelyConfigurationCrawlerProtection] `json:"crawler_protection"`
@@ -658,7 +667,8 @@ func (r SuperBotFightModeDefinitelyConfigurationStaleZoneConfigurationParam) Mar
658667
}
659668

660669
type SuperBotFightModeLikelyConfiguration struct {
661-
// Enable rule to block AI Scrapers and Crawlers.
670+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
671+
// `only_on_ad_pages` is currently not available for Enterprise customers.
662672
AIBotsProtection SuperBotFightModeLikelyConfigurationAIBotsProtection `json:"ai_bots_protection"`
663673
// Enable rule to punish AI Scrapers and Crawlers via a link maze.
664674
CrawlerProtection SuperBotFightModeLikelyConfigurationCrawlerProtection `json:"crawler_protection"`
@@ -715,7 +725,8 @@ func (r SuperBotFightModeLikelyConfiguration) implementsBotManagementUpdateRespo
715725

716726
func (r SuperBotFightModeLikelyConfiguration) implementsBotManagementGetResponse() {}
717727

718-
// Enable rule to block AI Scrapers and Crawlers.
728+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
729+
// `only_on_ad_pages` is currently not available for Enterprise customers.
719730
type SuperBotFightModeLikelyConfigurationAIBotsProtection string
720731

721732
const (
@@ -824,7 +835,8 @@ func (r superBotFightModeLikelyConfigurationStaleZoneConfigurationJSON) RawJSON(
824835
}
825836

826837
type SuperBotFightModeLikelyConfigurationParam struct {
827-
// Enable rule to block AI Scrapers and Crawlers.
838+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
839+
// `only_on_ad_pages` is currently not available for Enterprise customers.
828840
AIBotsProtection param.Field[SuperBotFightModeLikelyConfigurationAIBotsProtection] `json:"ai_bots_protection"`
829841
// Enable rule to punish AI Scrapers and Crawlers via a link maze.
830842
CrawlerProtection param.Field[SuperBotFightModeLikelyConfigurationCrawlerProtection] `json:"crawler_protection"`
@@ -863,7 +875,8 @@ func (r SuperBotFightModeLikelyConfigurationStaleZoneConfigurationParam) Marshal
863875
}
864876

865877
type BotManagementUpdateResponse struct {
866-
// Enable rule to block AI Scrapers and Crawlers.
878+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
879+
// `only_on_ad_pages` is currently not available for Enterprise customers.
867880
AIBotsProtection BotManagementUpdateResponseAIBotsProtection `json:"ai_bots_protection"`
868881
// Automatically update to the newest bot detection models created by Cloudflare as
869882
// they are released.
@@ -977,7 +990,8 @@ func init() {
977990
)
978991
}
979992

980-
// Enable rule to block AI Scrapers and Crawlers.
993+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
994+
// `only_on_ad_pages` is currently not available for Enterprise customers.
981995
type BotManagementUpdateResponseAIBotsProtection string
982996

983997
const (
@@ -1061,7 +1075,8 @@ func (r BotManagementUpdateResponseSBFMVerifiedBots) IsKnown() bool {
10611075
}
10621076

10631077
type BotManagementGetResponse struct {
1064-
// Enable rule to block AI Scrapers and Crawlers.
1078+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
1079+
// `only_on_ad_pages` is currently not available for Enterprise customers.
10651080
AIBotsProtection BotManagementGetResponseAIBotsProtection `json:"ai_bots_protection"`
10661081
// Automatically update to the newest bot detection models created by Cloudflare as
10671082
// they are released.
@@ -1175,7 +1190,8 @@ func init() {
11751190
)
11761191
}
11771192

1178-
// Enable rule to block AI Scrapers and Crawlers.
1193+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
1194+
// `only_on_ad_pages` is currently not available for Enterprise customers.
11791195
type BotManagementGetResponseAIBotsProtection string
11801196

11811197
const (
@@ -1269,7 +1285,8 @@ func (r BotManagementUpdateParams) MarshalJSON() (data []byte, err error) {
12691285
}
12701286

12711287
type BotManagementUpdateParamsBody struct {
1272-
// Enable rule to block AI Scrapers and Crawlers.
1288+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
1289+
// `only_on_ad_pages` is currently not available for Enterprise customers.
12731290
AIBotsProtection param.Field[BotManagementUpdateParamsBodyAIBotsProtection] `json:"ai_bots_protection"`
12741291
// Automatically update to the newest bot detection models created by Cloudflare as
12751292
// they are released.
@@ -1315,7 +1332,8 @@ type BotManagementUpdateParamsBodyUnion interface {
13151332
implementsBotManagementUpdateParamsBodyUnion()
13161333
}
13171334

1318-
// Enable rule to block AI Scrapers and Crawlers.
1335+
// Enable rule to block AI Scrapers and Crawlers. Please note the value
1336+
// `only_on_ad_pages` is currently not available for Enterprise customers.
13191337
type BotManagementUpdateParamsBodyAIBotsProtection string
13201338

13211339
const (

0 commit comments

Comments
 (0)