Skip to content

Commit 841061e

Browse files
release: 6.4.0 (#4210)
* codegen metadata * feat: feat(silences): add a new alert silencing api * codegen metadata * codegen metadata * chore(api): update composite API spec * codegen metadata * codegen metadata * feat: feat(r2_data_catalog): Configure SDKs/Terraform to use R2 Data Catalog routes * feat(r2_data_catalog): Configure SDKs/Terraform to use R2 Data Catalog routes * chore(api): update composite API spec * chore(internal): codegen related update * feat: chore: skip unsupported auth tests * fix(logaudit): revert breaking change to query by log audit id param (#4212) * feat: chore(abuse_report): unsupported auth scheme * chore(zero_trust_gateway_proxy_endpoint): unsupported auth scheme * chore(abuse_report): unsupported auth scheme * fix(ci): clean cache (#4213) * chore(ci): increase timeout * chore(ci): trap only tcp listeners, add timeout flag, add parallel flag * chore(ci): clean caches * release: 6.4.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Vaishak Dinesh <vaishakpdinesh@gmail.com>
1 parent d124aa2 commit 841061e

File tree

189 files changed

+46455
-4709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+46455
-4709
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Run lints
3131
run: ./scripts/lint
3232
test:
33-
timeout-minutes: 10
33+
timeout-minutes: 30
3434
name: test
3535
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
3636
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "6.3.0"
2+
".": "6.4.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1915
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cc732ca8d1d7f1c11a1ee579060ddfd8f953a3ad94fd5053056b53370129d040.yml
3-
openapi_spec_hash: a3e1e833dfe13845abd1e2227993a979
4-
config_hash: 6b8d4cb6cfb2bdcc28988fb6e9769676
1+
configured_endpoints: 1932
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6183ef87f1b8eea6ad4bae542bfde2ec23a5526ae2b7bacdf6c6a4c48d990995.yml
3+
openapi_spec_hash: 9c8ac3d56571ebf1e170d993b71ccb4d
4+
config_hash: aaacea52b646facd5527d7b1e928123d

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Changelog
22

3+
## 6.4.0 (2025-12-04)
4+
5+
Full Changelog: [v6.3.0...v6.4.0](https://github.com/cloudflare/cloudflare-go/compare/v6.3.0...v6.4.0)
6+
7+
### Features
8+
9+
* chore: skip unsupported auth tests ([b08ac6e](https://github.com/cloudflare/cloudflare-go/commit/b08ac6eb9f235c5f112b9b7625f8c8c2bf1fd7ab))
10+
* chore(abuse_report): unsupported auth scheme ([61ece69](https://github.com/cloudflare/cloudflare-go/commit/61ece69b7ae6a76319b47054f416609de31a24fb))
11+
* feat(r2_data_catalog): Configure SDKs/Terraform to use R2 Data Catalog routes ([d1b1eab](https://github.com/cloudflare/cloudflare-go/commit/d1b1eab741593d97221a099b07e120cc205999dc))
12+
* feat(silences): add a new alert silencing api ([fbe4969](https://github.com/cloudflare/cloudflare-go/commit/fbe4969d2d8b61c2e8c635543297a04e14435391))
13+
14+
15+
### Bug Fixes
16+
17+
* **ci:** clean cache ([#4213](https://github.com/cloudflare/cloudflare-go/issues/4213)) ([92a4819](https://github.com/cloudflare/cloudflare-go/commit/92a481998217dd120e6f893c8631b6dafac5f24c))
18+
* **logaudit:** revert breaking change to query by log audit id param ([#4212](https://github.com/cloudflare/cloudflare-go/issues/4212)) ([e1d5999](https://github.com/cloudflare/cloudflare-go/commit/e1d5999b2509fb2b33bf2e22f135942d1be4b32e))
19+
20+
21+
### Chores
22+
23+
* **api:** update composite API spec ([813b47b](https://github.com/cloudflare/cloudflare-go/commit/813b47b136cd4e9095aa00f3921f2d94242287e9))
24+
* **api:** update composite API spec ([86f0a73](https://github.com/cloudflare/cloudflare-go/commit/86f0a73093fe70cec9766b585281f396ec500c76))
25+
* **internal:** codegen related update ([4548d4d](https://github.com/cloudflare/cloudflare-go/commit/4548d4d0057294c110ce8ed12509a18fae3225ac))
26+
327
## 6.3.0 (2025-11-19)
428

529
Full Changelog: [v6.2.0...v6.3.0](https://github.com/cloudflare/cloudflare-go/compare/v6.2.0...v6.3.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Or to pin the version:
2424
<!-- x-release-please-start-version -->
2525

2626
```sh
27-
go get -u 'github.com/cloudflare/cloudflare-go/v4@v6.3.0'
27+
go get -u 'github.com/cloudflare/cloudflare-go/v4@v6.4.0'
2828
```
2929

3030
<!-- x-release-please-end -->

abuse_reports/abusereport.go

Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,14 @@ type AbuseReportListResponseReport struct {
146146
Status AbuseReportListResponseReportsStatus `json:"status,required"`
147147
// The abuse report type
148148
Type AbuseReportListResponseReportsType `json:"type,required"`
149-
JSON abuseReportListResponseReportJSON `json:"-"`
149+
// Justification for the report.
150+
Justification string `json:"justification"`
151+
// Original work / Targeted brand in the alleged abuse.
152+
OriginalWork string `json:"original_work"`
153+
// Information about the submitter of the report.
154+
Submitter AbuseReportListResponseReportsSubmitter `json:"submitter"`
155+
URLs []string `json:"urls"`
156+
JSON abuseReportListResponseReportJSON `json:"-"`
150157
}
151158

152159
// abuseReportListResponseReportJSON contains the JSON metadata for the struct
@@ -158,6 +165,10 @@ type abuseReportListResponseReportJSON struct {
158165
MitigationSummary apijson.Field
159166
Status apijson.Field
160167
Type apijson.Field
168+
Justification apijson.Field
169+
OriginalWork apijson.Field
170+
Submitter apijson.Field
171+
URLs apijson.Field
161172
raw string
162173
ExtraFields map[string]apijson.Field
163174
}
@@ -244,6 +255,34 @@ func (r AbuseReportListResponseReportsType) IsKnown() bool {
244255
return false
245256
}
246257

258+
// Information about the submitter of the report.
259+
type AbuseReportListResponseReportsSubmitter struct {
260+
Company string `json:"company"`
261+
Email string `json:"email"`
262+
Name string `json:"name"`
263+
Telephone string `json:"telephone"`
264+
JSON abuseReportListResponseReportsSubmitterJSON `json:"-"`
265+
}
266+
267+
// abuseReportListResponseReportsSubmitterJSON contains the JSON metadata for the
268+
// struct [AbuseReportListResponseReportsSubmitter]
269+
type abuseReportListResponseReportsSubmitterJSON struct {
270+
Company apijson.Field
271+
Email apijson.Field
272+
Name apijson.Field
273+
Telephone apijson.Field
274+
raw string
275+
ExtraFields map[string]apijson.Field
276+
}
277+
278+
func (r *AbuseReportListResponseReportsSubmitter) UnmarshalJSON(data []byte) (err error) {
279+
return apijson.UnmarshalRoot(data, r)
280+
}
281+
282+
func (r abuseReportListResponseReportsSubmitterJSON) RawJSON() string {
283+
return r.raw
284+
}
285+
247286
type AbuseReportGetResponse struct {
248287
// Public facing ID of abuse report, aka abuse_rand.
249288
ID string `json:"id,required"`
@@ -258,7 +297,14 @@ type AbuseReportGetResponse struct {
258297
Status AbuseReportGetResponseStatus `json:"status,required"`
259298
// The abuse report type
260299
Type AbuseReportGetResponseType `json:"type,required"`
261-
JSON abuseReportGetResponseJSON `json:"-"`
300+
// Justification for the report.
301+
Justification string `json:"justification"`
302+
// Original work / Targeted brand in the alleged abuse.
303+
OriginalWork string `json:"original_work"`
304+
// Information about the submitter of the report.
305+
Submitter AbuseReportGetResponseSubmitter `json:"submitter"`
306+
URLs []string `json:"urls"`
307+
JSON abuseReportGetResponseJSON `json:"-"`
262308
}
263309

264310
// abuseReportGetResponseJSON contains the JSON metadata for the struct
@@ -270,6 +316,10 @@ type abuseReportGetResponseJSON struct {
270316
MitigationSummary apijson.Field
271317
Status apijson.Field
272318
Type apijson.Field
319+
Justification apijson.Field
320+
OriginalWork apijson.Field
321+
Submitter apijson.Field
322+
URLs apijson.Field
273323
raw string
274324
ExtraFields map[string]apijson.Field
275325
}
@@ -356,6 +406,34 @@ func (r AbuseReportGetResponseType) IsKnown() bool {
356406
return false
357407
}
358408

409+
// Information about the submitter of the report.
410+
type AbuseReportGetResponseSubmitter struct {
411+
Company string `json:"company"`
412+
Email string `json:"email"`
413+
Name string `json:"name"`
414+
Telephone string `json:"telephone"`
415+
JSON abuseReportGetResponseSubmitterJSON `json:"-"`
416+
}
417+
418+
// abuseReportGetResponseSubmitterJSON contains the JSON metadata for the struct
419+
// [AbuseReportGetResponseSubmitter]
420+
type abuseReportGetResponseSubmitterJSON struct {
421+
Company apijson.Field
422+
Email apijson.Field
423+
Name apijson.Field
424+
Telephone apijson.Field
425+
raw string
426+
ExtraFields map[string]apijson.Field
427+
}
428+
429+
func (r *AbuseReportGetResponseSubmitter) UnmarshalJSON(data []byte) (err error) {
430+
return apijson.UnmarshalRoot(data, r)
431+
}
432+
433+
func (r abuseReportGetResponseSubmitterJSON) RawJSON() string {
434+
return r.raw
435+
}
436+
359437
type AbuseReportNewParams struct {
360438
AccountID param.Field[string] `path:"account_id,required"`
361439
Body AbuseReportNewParamsBodyUnion `json:"body,required"`

abuse_reports/abusereport_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func TestAbuseReportNewWithOptionalParams(t *testing.T) {
6868
}
6969

7070
func TestAbuseReportListWithOptionalParams(t *testing.T) {
71+
t.Skip("TODO: support api token auth scheme")
7172
baseURL := "http://localhost:4010"
7273
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
7374
baseURL = envURL
@@ -102,6 +103,7 @@ func TestAbuseReportListWithOptionalParams(t *testing.T) {
102103
}
103104

104105
func TestAbuseReportGet(t *testing.T) {
106+
t.Skip("TODO: support api token auth scheme")
105107
baseURL := "http://localhost:4010"
106108
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
107109
baseURL = envURL

abuse_reports/mitigation_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
)
1616

1717
func TestMitigationListWithOptionalParams(t *testing.T) {
18+
t.Skip("TODO: support api token auth scheme")
1819
baseURL := "http://localhost:4010"
1920
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
2021
baseURL = envURL
@@ -52,6 +53,7 @@ func TestMitigationListWithOptionalParams(t *testing.T) {
5253
}
5354

5455
func TestMitigationReview(t *testing.T) {
56+
t.Skip("TODO: support api token auth scheme")
5557
baseURL := "http://localhost:4010"
5658
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
5759
baseURL = envURL

accounts/accountprofile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func NewAccountProfileService(opts ...option.RequestOption) (r *AccountProfileSe
3838
// Modify account profile
3939
func (r *AccountProfileService) Update(ctx context.Context, params AccountProfileUpdateParams, opts ...option.RequestOption) (err error) {
4040
opts = slices.Concat(r.Options, opts)
41-
opts = append([]option.RequestOption{option.WithHeader("Accept", "")}, opts...)
41+
opts = append([]option.RequestOption{option.WithHeader("Accept", "*/*")}, opts...)
4242
if params.AccountID.Value == "" {
4343
err = errors.New("missing required account_id parameter")
4444
return

accounts/logaudit.go

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ type LogAuditListParams struct {
356356
// date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that
357357
// conforms to RFC3339.
358358
Since param.Field[time.Time] `query:"since,required" format:"date"`
359+
ID param.Field[LogAuditListParamsID] `query:"id"`
359360
AccountName param.Field[LogAuditListParamsAccountName] `query:"account_name"`
360361
ActionResult param.Field[LogAuditListParamsActionResult] `query:"action_result"`
361362
ActionType param.Field[LogAuditListParamsActionType] `query:"action_type"`
@@ -366,7 +367,8 @@ type LogAuditListParams struct {
366367
ActorTokenID param.Field[LogAuditListParamsActorTokenID] `query:"actor_token_id"`
367368
ActorTokenName param.Field[LogAuditListParamsActorTokenName] `query:"actor_token_name"`
368369
ActorType param.Field[LogAuditListParamsActorType] `query:"actor_type"`
369-
AuditLogID param.Field[LogAuditListParamsAuditLogID] `query:"audit_log_id"`
370+
// Deprecated: deprecated in favor of ID. Use ID to query by the audit log ID.
371+
AuditLogID param.Field[LogAuditListParamsAuditLogID] `query:"audit_log_id"`
370372
// The cursor is an opaque token used to paginate through large sets of records. It
371373
// indicates the position from which to continue when requesting the next set of
372374
// records. A valid cursor value can be obtained from the cursor object in the
@@ -397,6 +399,19 @@ func (r LogAuditListParams) URLQuery() (v url.Values) {
397399
})
398400
}
399401

402+
type LogAuditListParamsID struct {
403+
// Filters out audit logs by their IDs.
404+
Not param.Field[[]string] `query:"not"`
405+
}
406+
407+
// URLQuery serializes [LogAuditListParamsID]'s query parameters as `url.Values`.
408+
func (r LogAuditListParamsID) URLQuery() (v url.Values) {
409+
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
410+
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
411+
NestedFormat: apiquery.NestedQueryFormatDots,
412+
})
413+
}
414+
400415
type LogAuditListParamsAccountName struct {
401416
// Filters out audit logs by the account name.
402417
Not param.Field[[]string] `query:"not"`
@@ -607,13 +622,15 @@ func (r LogAuditListParamsActorTypeNot) IsKnown() bool {
607622
return false
608623
}
609624

625+
// Deprecated: deprecated in favor of ID. Use ID to query by the audit log ID.
610626
type LogAuditListParamsAuditLogID struct {
611627
// Filters out audit logs by their IDs.
612628
Not param.Field[[]string] `query:"not"`
613629
}
614630

615631
// URLQuery serializes [LogAuditListParamsAuditLogID]'s query parameters as
616632
// `url.Values`.
633+
// Deprecated: deprecated in favor of ID. Use ID to query by the audit log ID.
617634
func (r LogAuditListParamsAuditLogID) URLQuery() (v url.Values) {
618635
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
619636
ArrayFormat: apiquery.ArrayQueryFormatRepeat,

0 commit comments

Comments
 (0)