Skip to content

Commit d751e7c

Browse files
authored
Merge pull request #4338 from cloudflare/release-please--branches--main--changes--next
release: 7.5.0
2 parents f1f8d9d + 705e9ff commit d751e7c

119 files changed

Lines changed: 26564 additions & 2543 deletions

File tree

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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 2325
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-6a575ece2abbfbdba8ffcb489f44514843ec30bcc2a55a3a2f029170c32bb1d7.yml
3-
openapi_spec_hash: 70a294584563b524a9dee76ad2d9ba7e
4-
config_hash: fb00b1d45d83236f53f8ef08adb2db5c
1+
configured_endpoints: 2384
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-50c963aaa7c85031a3f7317e3f3645aa89f662ef6ce9ef15fd7e46e9be3d054d.yml
3+
openapi_spec_hash: 88a94676f366bba8d8cd37c5923447d9
4+
config_hash: 16fcfddbd241cc0d165e7d05421bb89b

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## 7.5.0 (2026-06-10)
44

5+
Full Changelog: [v7.5.0...v7.5.0](https://github.com/cloudflare/cloudflare-go/compare/v7.5.0...v7.5.0)
6+
7+
## 7.5.0 (2026-06-10)
8+
59
Full Changelog: [v7.4.0...v7.5.0](https://github.com/cloudflare/cloudflare-go/compare/v7.4.0...v7.5.0)
610

711
### Features

abuse_reports/mitigation.go

Lines changed: 74 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,13 @@ type MitigationListResponseMitigation struct {
125125
ID string `json:"id" api:"required"`
126126
// Date when the mitigation will become active. Time in RFC 3339 format
127127
// (https://www.rfc-editor.org/rfc/rfc3339.html)
128-
EffectiveDate string `json:"effective_date" api:"required"`
129-
EntityID string `json:"entity_id" api:"required"`
130-
EntityType MitigationListResponseMitigationsEntityType `json:"entity_type" api:"required"`
128+
EffectiveDate string `json:"effective_date" api:"required"`
129+
EntityID string `json:"entity_id" api:"required"`
130+
// The type of entity targeted by a mitigation.
131+
EntityType MitigationListResponseMitigationsEntityType `json:"entity_type" api:"required"`
131132
// The status of a mitigation
132133
Status MitigationListResponseMitigationsStatus `json:"status" api:"required"`
133-
// The type of mitigation
134+
// The type of mitigation applied to a reported entity.
134135
Type MitigationListResponseMitigationsType `json:"type" api:"required"`
135136
JSON mitigationListResponseMitigationJSON `json:"-"`
136137
}
@@ -156,6 +157,7 @@ func (r mitigationListResponseMitigationJSON) RawJSON() string {
156157
return r.raw
157158
}
158159

160+
// The type of entity targeted by a mitigation.
159161
type MitigationListResponseMitigationsEntityType string
160162

161163
const (
@@ -191,22 +193,34 @@ func (r MitigationListResponseMitigationsStatus) IsKnown() bool {
191193
return false
192194
}
193195

194-
// The type of mitigation
196+
// The type of mitigation applied to a reported entity.
195197
type MitigationListResponseMitigationsType string
196198

197199
const (
198-
MitigationListResponseMitigationsTypeLegalBlock MitigationListResponseMitigationsType = "legal_block"
199-
MitigationListResponseMitigationsTypeMisleadingInterstitial MitigationListResponseMitigationsType = "misleading_interstitial"
200-
MitigationListResponseMitigationsTypePhishingInterstitial MitigationListResponseMitigationsType = "phishing_interstitial"
201-
MitigationListResponseMitigationsTypeNetworkBlock MitigationListResponseMitigationsType = "network_block"
202-
MitigationListResponseMitigationsTypeRateLimitCache MitigationListResponseMitigationsType = "rate_limit_cache"
203-
MitigationListResponseMitigationsTypeAccountSuspend MitigationListResponseMitigationsType = "account_suspend"
204-
MitigationListResponseMitigationsTypeRedirectVideoStream MitigationListResponseMitigationsType = "redirect_video_stream"
200+
MitigationListResponseMitigationsTypeAccountSuspend MitigationListResponseMitigationsType = "account_suspend"
201+
MitigationListResponseMitigationsTypeCopyrightInterstitial MitigationListResponseMitigationsType = "copyright_interstitial"
202+
MitigationListResponseMitigationsTypeGeoBlock MitigationListResponseMitigationsType = "geo_block"
203+
MitigationListResponseMitigationsTypeLegalBlock MitigationListResponseMitigationsType = "legal_block"
204+
MitigationListResponseMitigationsTypeMalwareInterstitial MitigationListResponseMitigationsType = "malware_interstitial"
205+
MitigationListResponseMitigationsTypeMisleadingInterstitial MitigationListResponseMitigationsType = "misleading_interstitial"
206+
MitigationListResponseMitigationsTypeNetworkBlock MitigationListResponseMitigationsType = "network_block"
207+
MitigationListResponseMitigationsTypePhishingInterstitial MitigationListResponseMitigationsType = "phishing_interstitial"
208+
MitigationListResponseMitigationsTypePlayfairiteEnforce MitigationListResponseMitigationsType = "playfairite_enforce"
209+
MitigationListResponseMitigationsTypeR2TakedownAccount MitigationListResponseMitigationsType = "r2_takedown_account"
210+
MitigationListResponseMitigationsTypeR2TakedownBucket MitigationListResponseMitigationsType = "r2_takedown_bucket"
211+
MitigationListResponseMitigationsTypeR2TakedownObject MitigationListResponseMitigationsType = "r2_takedown_object"
212+
MitigationListResponseMitigationsTypeRateLimitCache MitigationListResponseMitigationsType = "rate_limit_cache"
213+
MitigationListResponseMitigationsTypeRedirectVideoStream MitigationListResponseMitigationsType = "redirect_video_stream"
214+
MitigationListResponseMitigationsTypeRegistrarFreeze MitigationListResponseMitigationsType = "registrar_freeze"
215+
MitigationListResponseMitigationsTypeRegistrarParking MitigationListResponseMitigationsType = "registrar_parking"
216+
MitigationListResponseMitigationsTypeStreamBlockAccount MitigationListResponseMitigationsType = "stream_block_account"
217+
MitigationListResponseMitigationsTypeUserSuspend MitigationListResponseMitigationsType = "user_suspend"
218+
MitigationListResponseMitigationsTypeWorkersTakedownByZoneID MitigationListResponseMitigationsType = "workers_takedown_by_zone_id"
205219
)
206220

207221
func (r MitigationListResponseMitigationsType) IsKnown() bool {
208222
switch r {
209-
case MitigationListResponseMitigationsTypeLegalBlock, MitigationListResponseMitigationsTypeMisleadingInterstitial, MitigationListResponseMitigationsTypePhishingInterstitial, MitigationListResponseMitigationsTypeNetworkBlock, MitigationListResponseMitigationsTypeRateLimitCache, MitigationListResponseMitigationsTypeAccountSuspend, MitigationListResponseMitigationsTypeRedirectVideoStream:
223+
case MitigationListResponseMitigationsTypeAccountSuspend, MitigationListResponseMitigationsTypeCopyrightInterstitial, MitigationListResponseMitigationsTypeGeoBlock, MitigationListResponseMitigationsTypeLegalBlock, MitigationListResponseMitigationsTypeMalwareInterstitial, MitigationListResponseMitigationsTypeMisleadingInterstitial, MitigationListResponseMitigationsTypeNetworkBlock, MitigationListResponseMitigationsTypePhishingInterstitial, MitigationListResponseMitigationsTypePlayfairiteEnforce, MitigationListResponseMitigationsTypeR2TakedownAccount, MitigationListResponseMitigationsTypeR2TakedownBucket, MitigationListResponseMitigationsTypeR2TakedownObject, MitigationListResponseMitigationsTypeRateLimitCache, MitigationListResponseMitigationsTypeRedirectVideoStream, MitigationListResponseMitigationsTypeRegistrarFreeze, MitigationListResponseMitigationsTypeRegistrarParking, MitigationListResponseMitigationsTypeStreamBlockAccount, MitigationListResponseMitigationsTypeUserSuspend, MitigationListResponseMitigationsTypeWorkersTakedownByZoneID:
210224
return true
211225
}
212226
return false
@@ -217,12 +231,13 @@ type MitigationReviewResponse struct {
217231
ID string `json:"id" api:"required"`
218232
// Date when the mitigation will become active. Time in RFC 3339 format
219233
// (https://www.rfc-editor.org/rfc/rfc3339.html)
220-
EffectiveDate string `json:"effective_date" api:"required"`
221-
EntityID string `json:"entity_id" api:"required"`
222-
EntityType MitigationReviewResponseEntityType `json:"entity_type" api:"required"`
234+
EffectiveDate string `json:"effective_date" api:"required"`
235+
EntityID string `json:"entity_id" api:"required"`
236+
// The type of entity targeted by a mitigation.
237+
EntityType MitigationReviewResponseEntityType `json:"entity_type" api:"required"`
223238
// The status of a mitigation
224239
Status MitigationReviewResponseStatus `json:"status" api:"required"`
225-
// The type of mitigation
240+
// The type of mitigation applied to a reported entity.
226241
Type MitigationReviewResponseType `json:"type" api:"required"`
227242
JSON mitigationReviewResponseJSON `json:"-"`
228243
}
@@ -248,6 +263,7 @@ func (r mitigationReviewResponseJSON) RawJSON() string {
248263
return r.raw
249264
}
250265

266+
// The type of entity targeted by a mitigation.
251267
type MitigationReviewResponseEntityType string
252268

253269
const (
@@ -283,22 +299,34 @@ func (r MitigationReviewResponseStatus) IsKnown() bool {
283299
return false
284300
}
285301

286-
// The type of mitigation
302+
// The type of mitigation applied to a reported entity.
287303
type MitigationReviewResponseType string
288304

289305
const (
290-
MitigationReviewResponseTypeLegalBlock MitigationReviewResponseType = "legal_block"
291-
MitigationReviewResponseTypeMisleadingInterstitial MitigationReviewResponseType = "misleading_interstitial"
292-
MitigationReviewResponseTypePhishingInterstitial MitigationReviewResponseType = "phishing_interstitial"
293-
MitigationReviewResponseTypeNetworkBlock MitigationReviewResponseType = "network_block"
294-
MitigationReviewResponseTypeRateLimitCache MitigationReviewResponseType = "rate_limit_cache"
295-
MitigationReviewResponseTypeAccountSuspend MitigationReviewResponseType = "account_suspend"
296-
MitigationReviewResponseTypeRedirectVideoStream MitigationReviewResponseType = "redirect_video_stream"
306+
MitigationReviewResponseTypeAccountSuspend MitigationReviewResponseType = "account_suspend"
307+
MitigationReviewResponseTypeCopyrightInterstitial MitigationReviewResponseType = "copyright_interstitial"
308+
MitigationReviewResponseTypeGeoBlock MitigationReviewResponseType = "geo_block"
309+
MitigationReviewResponseTypeLegalBlock MitigationReviewResponseType = "legal_block"
310+
MitigationReviewResponseTypeMalwareInterstitial MitigationReviewResponseType = "malware_interstitial"
311+
MitigationReviewResponseTypeMisleadingInterstitial MitigationReviewResponseType = "misleading_interstitial"
312+
MitigationReviewResponseTypeNetworkBlock MitigationReviewResponseType = "network_block"
313+
MitigationReviewResponseTypePhishingInterstitial MitigationReviewResponseType = "phishing_interstitial"
314+
MitigationReviewResponseTypePlayfairiteEnforce MitigationReviewResponseType = "playfairite_enforce"
315+
MitigationReviewResponseTypeR2TakedownAccount MitigationReviewResponseType = "r2_takedown_account"
316+
MitigationReviewResponseTypeR2TakedownBucket MitigationReviewResponseType = "r2_takedown_bucket"
317+
MitigationReviewResponseTypeR2TakedownObject MitigationReviewResponseType = "r2_takedown_object"
318+
MitigationReviewResponseTypeRateLimitCache MitigationReviewResponseType = "rate_limit_cache"
319+
MitigationReviewResponseTypeRedirectVideoStream MitigationReviewResponseType = "redirect_video_stream"
320+
MitigationReviewResponseTypeRegistrarFreeze MitigationReviewResponseType = "registrar_freeze"
321+
MitigationReviewResponseTypeRegistrarParking MitigationReviewResponseType = "registrar_parking"
322+
MitigationReviewResponseTypeStreamBlockAccount MitigationReviewResponseType = "stream_block_account"
323+
MitigationReviewResponseTypeUserSuspend MitigationReviewResponseType = "user_suspend"
324+
MitigationReviewResponseTypeWorkersTakedownByZoneID MitigationReviewResponseType = "workers_takedown_by_zone_id"
297325
)
298326

299327
func (r MitigationReviewResponseType) IsKnown() bool {
300328
switch r {
301-
case MitigationReviewResponseTypeLegalBlock, MitigationReviewResponseTypeMisleadingInterstitial, MitigationReviewResponseTypePhishingInterstitial, MitigationReviewResponseTypeNetworkBlock, MitigationReviewResponseTypeRateLimitCache, MitigationReviewResponseTypeAccountSuspend, MitigationReviewResponseTypeRedirectVideoStream:
329+
case MitigationReviewResponseTypeAccountSuspend, MitigationReviewResponseTypeCopyrightInterstitial, MitigationReviewResponseTypeGeoBlock, MitigationReviewResponseTypeLegalBlock, MitigationReviewResponseTypeMalwareInterstitial, MitigationReviewResponseTypeMisleadingInterstitial, MitigationReviewResponseTypeNetworkBlock, MitigationReviewResponseTypePhishingInterstitial, MitigationReviewResponseTypePlayfairiteEnforce, MitigationReviewResponseTypeR2TakedownAccount, MitigationReviewResponseTypeR2TakedownBucket, MitigationReviewResponseTypeR2TakedownObject, MitigationReviewResponseTypeRateLimitCache, MitigationReviewResponseTypeRedirectVideoStream, MitigationReviewResponseTypeRegistrarFreeze, MitigationReviewResponseTypeRegistrarParking, MitigationReviewResponseTypeStreamBlockAccount, MitigationReviewResponseTypeUserSuspend, MitigationReviewResponseTypeWorkersTakedownByZoneID:
302330
return true
303331
}
304332
return false
@@ -398,18 +426,30 @@ func (r MitigationListParamsStatus) IsKnown() bool {
398426
type MitigationListParamsType string
399427

400428
const (
401-
MitigationListParamsTypeLegalBlock MitigationListParamsType = "legal_block"
402-
MitigationListParamsTypeMisleadingInterstitial MitigationListParamsType = "misleading_interstitial"
403-
MitigationListParamsTypePhishingInterstitial MitigationListParamsType = "phishing_interstitial"
404-
MitigationListParamsTypeNetworkBlock MitigationListParamsType = "network_block"
405-
MitigationListParamsTypeRateLimitCache MitigationListParamsType = "rate_limit_cache"
406-
MitigationListParamsTypeAccountSuspend MitigationListParamsType = "account_suspend"
407-
MitigationListParamsTypeRedirectVideoStream MitigationListParamsType = "redirect_video_stream"
429+
MitigationListParamsTypeAccountSuspend MitigationListParamsType = "account_suspend"
430+
MitigationListParamsTypeCopyrightInterstitial MitigationListParamsType = "copyright_interstitial"
431+
MitigationListParamsTypeGeoBlock MitigationListParamsType = "geo_block"
432+
MitigationListParamsTypeLegalBlock MitigationListParamsType = "legal_block"
433+
MitigationListParamsTypeMalwareInterstitial MitigationListParamsType = "malware_interstitial"
434+
MitigationListParamsTypeMisleadingInterstitial MitigationListParamsType = "misleading_interstitial"
435+
MitigationListParamsTypeNetworkBlock MitigationListParamsType = "network_block"
436+
MitigationListParamsTypePhishingInterstitial MitigationListParamsType = "phishing_interstitial"
437+
MitigationListParamsTypePlayfairiteEnforce MitigationListParamsType = "playfairite_enforce"
438+
MitigationListParamsTypeR2TakedownAccount MitigationListParamsType = "r2_takedown_account"
439+
MitigationListParamsTypeR2TakedownBucket MitigationListParamsType = "r2_takedown_bucket"
440+
MitigationListParamsTypeR2TakedownObject MitigationListParamsType = "r2_takedown_object"
441+
MitigationListParamsTypeRateLimitCache MitigationListParamsType = "rate_limit_cache"
442+
MitigationListParamsTypeRedirectVideoStream MitigationListParamsType = "redirect_video_stream"
443+
MitigationListParamsTypeRegistrarFreeze MitigationListParamsType = "registrar_freeze"
444+
MitigationListParamsTypeRegistrarParking MitigationListParamsType = "registrar_parking"
445+
MitigationListParamsTypeStreamBlockAccount MitigationListParamsType = "stream_block_account"
446+
MitigationListParamsTypeUserSuspend MitigationListParamsType = "user_suspend"
447+
MitigationListParamsTypeWorkersTakedownByZoneID MitigationListParamsType = "workers_takedown_by_zone_id"
408448
)
409449

410450
func (r MitigationListParamsType) IsKnown() bool {
411451
switch r {
412-
case MitigationListParamsTypeLegalBlock, MitigationListParamsTypeMisleadingInterstitial, MitigationListParamsTypePhishingInterstitial, MitigationListParamsTypeNetworkBlock, MitigationListParamsTypeRateLimitCache, MitigationListParamsTypeAccountSuspend, MitigationListParamsTypeRedirectVideoStream:
452+
case MitigationListParamsTypeAccountSuspend, MitigationListParamsTypeCopyrightInterstitial, MitigationListParamsTypeGeoBlock, MitigationListParamsTypeLegalBlock, MitigationListParamsTypeMalwareInterstitial, MitigationListParamsTypeMisleadingInterstitial, MitigationListParamsTypeNetworkBlock, MitigationListParamsTypePhishingInterstitial, MitigationListParamsTypePlayfairiteEnforce, MitigationListParamsTypeR2TakedownAccount, MitigationListParamsTypeR2TakedownBucket, MitigationListParamsTypeR2TakedownObject, MitigationListParamsTypeRateLimitCache, MitigationListParamsTypeRedirectVideoStream, MitigationListParamsTypeRegistrarFreeze, MitigationListParamsTypeRegistrarParking, MitigationListParamsTypeStreamBlockAccount, MitigationListParamsTypeUserSuspend, MitigationListParamsTypeWorkersTakedownByZoneID:
413453
return true
414454
}
415455
return false

abuse_reports/mitigation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TestMitigationListWithOptionalParams(t *testing.T) {
4141
PerPage: cloudflare.F(int64(0)),
4242
Sort: cloudflare.F(abuse_reports.MitigationListParamsSortTypeAsc),
4343
Status: cloudflare.F(abuse_reports.MitigationListParamsStatusPending),
44-
Type: cloudflare.F(abuse_reports.MitigationListParamsTypeLegalBlock),
44+
Type: cloudflare.F(abuse_reports.MitigationListParamsTypeAccountSuspend),
4545
},
4646
)
4747
if err != nil {

ai/model.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,16 @@ type ModelListParams struct {
7575
// response.
7676
Format param.Field[ModelListParamsFormat] `query:"format"`
7777
// Filter to hide experimental models
78-
HideExperimental param.Field[bool] `query:"hide_experimental"`
79-
Page param.Field[int64] `query:"page"`
80-
PerPage param.Field[int64] `query:"per_page"`
78+
HideExperimental param.Field[bool] `query:"hide_experimental"`
79+
// If true, include models whose planned_deprecation_date is in the past — but only
80+
// within a three-month grace window after that date. Models whose
81+
// planned_deprecation_date is more than three months in the past remain hidden
82+
// regardless of this flag. Future planned-deprecation dates are always included
83+
// regardless of this flag. Defaults to false, preserving the existing behavior of
84+
// hiding all past-dated deprecations.
85+
IncludeDeprecated param.Field[bool] `query:"include_deprecated"`
86+
Page param.Field[int64] `query:"page"`
87+
PerPage param.Field[int64] `query:"per_page"`
8188
// Search
8289
Search param.Field[string] `query:"search"`
8390
// Filter by Source Id

ai/model_test.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ func TestModelListWithOptionalParams(t *testing.T) {
2929
option.WithAPIEmail("user@example.com"),
3030
)
3131
_, err := client.AI.Models.List(context.TODO(), ai.ModelListParams{
32-
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
33-
Author: cloudflare.F("author"),
34-
Format: cloudflare.F(ai.ModelListParamsFormatOpenrouter),
35-
HideExperimental: cloudflare.F(true),
36-
Page: cloudflare.F(int64(0)),
37-
PerPage: cloudflare.F(int64(0)),
38-
Search: cloudflare.F("search"),
39-
Source: cloudflare.F(0.000000),
40-
Task: cloudflare.F("Text Generation"),
32+
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
33+
Author: cloudflare.F("author"),
34+
Format: cloudflare.F(ai.ModelListParamsFormatOpenrouter),
35+
HideExperimental: cloudflare.F(true),
36+
IncludeDeprecated: cloudflare.F(true),
37+
Page: cloudflare.F(int64(0)),
38+
PerPage: cloudflare.F(int64(0)),
39+
Search: cloudflare.F("search"),
40+
Source: cloudflare.F(0.000000),
41+
Task: cloudflare.F("Text Generation"),
4142
})
4243
if err != nil {
4344
var apierr *cloudflare.Error

0 commit comments

Comments
 (0)