Skip to content

Commit 2259bff

Browse files
authored
Merge pull request #4169 from cloudflare/release-please--branches--main--changes--next
release: 4.6.0
2 parents 911970b + 7b0a6ee commit 2259bff

File tree

200 files changed

+11209
-2014
lines changed

Some content is hidden

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

200 files changed

+11209
-2014
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ on:
77
- 'integrated/**'
88
- 'stl-preview-head/**'
99
- 'stl-preview-base/**'
10+
pull_request:
11+
branches-ignore:
12+
- 'stl-preview-head/**'
13+
- 'stl-preview-base/**'
1014

1115
jobs:
1216
lint:
1317
timeout-minutes: 10
1418
name: lint
1519
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
1621

1722
steps:
1823
- uses: actions/checkout@v4
@@ -28,6 +33,7 @@ jobs:
2833
timeout-minutes: 10
2934
name: test
3035
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
36+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
3137
steps:
3238
- uses: actions/checkout@v4
3339

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
- next
7+
8+
jobs:
9+
detect_breaking_changes:
10+
runs-on: 'ubuntu-latest'
11+
name: detect-breaking-changes
12+
if: github.repository == 'cloudflare/cloudflare-go'
13+
steps:
14+
- name: Calculate fetch-depth
15+
run: |
16+
echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV
17+
18+
- uses: actions/checkout@v4
19+
with:
20+
# Ensure we can check out the pull request base in the script below.
21+
fetch-depth: ${{ env.FETCH_DEPTH }}
22+
23+
- name: Setup go
24+
uses: actions/setup-go@v5
25+
with:
26+
go-version-file: ./go.mod
27+
28+
- name: Detect breaking changes
29+
run: ./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.5.1"
2+
".": "4.6.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: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b15b44e0efd207de48e7e74e742b0b4b190c74f12a941a1a0ef59a51656a5224.yml
3-
openapi_spec_hash: 83243c9ee06f88d0fa91e9b185d8a42e
4-
config_hash: 8601d43fd5ccaf9e3d08f26748a5a63a
1+
configured_endpoints: 1769
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-22bd279cee32addc645f421ef52b9cc207ec998f883e77e580f7be79950833b4.yml
3+
openapi_spec_hash: 3e0f59ac2722028954566a4c850e8849
4+
config_hash: 70c445587de6c1089e4d0eadb6eb9d9a

CHANGELOG.md

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

3+
## 4.6.0 (2025-07-10)
4+
5+
Full Changelog: [v4.5.1...v4.6.0](https://github.com/cloudflare/cloudflare-go/compare/v4.5.1...v4.6.0)
6+
7+
### Features
8+
9+
* **api:** Add DELETE and POST routes for Magic Connector ([d45adbd](https://github.com/cloudflare/cloudflare-go/commit/d45adbd6f2a3796e64d624a9c3bb04a3718c6116))
10+
* **api:** Add Radar Bots and Web Crawlers ([4e3ea2c](https://github.com/cloudflare/cloudflare-go/commit/4e3ea2cff5ab0abd9cfe995d6ba78898196b2ed6))
11+
* **api:** api update ([0af7457](https://github.com/cloudflare/cloudflare-go/commit/0af74574785a12d504dfb7b1f1d5e1580a679eb8))
12+
* **api:** api update ([b52f252](https://github.com/cloudflare/cloudflare-go/commit/b52f25275048e0fc59fc3a38638630b823ebb302))
13+
* **api:** api update ([71ee99c](https://github.com/cloudflare/cloudflare-go/commit/71ee99cd75e66ec07113f6999a261ccfb1e3e128))
14+
* **api:** api update ([f53d57f](https://github.com/cloudflare/cloudflare-go/commit/f53d57fca5dc3bfc7bb704d383eccb2eceaa0e61))
15+
* **api:** api update ([3b6fe10](https://github.com/cloudflare/cloudflare-go/commit/3b6fe10d7712c758789e6596d1e53473119f145a))
16+
* **api:** api update ([a3e09ca](https://github.com/cloudflare/cloudflare-go/commit/a3e09cae1b983fa145df363d45f0f8d29d73f38a))
17+
* **api:** api update ([ef21850](https://github.com/cloudflare/cloudflare-go/commit/ef218509bad0d472b8eb8cdf600e7597dfe7e43d))
18+
* **api:** api update ([35fa796](https://github.com/cloudflare/cloudflare-go/commit/35fa79634060ca929bbcab72715fae2d91ef9539))
19+
* **api:** api update ([6c20151](https://github.com/cloudflare/cloudflare-go/commit/6c201511b00d40c1e84a4f7329a27e7c2f82851a))
20+
* **api:** api update ([fa269c0](https://github.com/cloudflare/cloudflare-go/commit/fa269c02267c73e34243c5f8727f96422cec1241))
21+
* **api:** api update ([39c2969](https://github.com/cloudflare/cloudflare-go/commit/39c2969abf73e451f7b945527be56dfb430d27d5))
22+
* **api:** api update ([3c68c7a](https://github.com/cloudflare/cloudflare-go/commit/3c68c7ae46c81d13f688673e48d705af59fb2b60))
23+
* **api:** api update ([e905b46](https://github.com/cloudflare/cloudflare-go/commit/e905b46620e31e117c71d51ae3428206e315a933))
24+
* **api:** api update ([9b002bb](https://github.com/cloudflare/cloudflare-go/commit/9b002bbd8e4739e59938bf57c4ffc160c76419ba))
25+
* **api:** api update ([059540e](https://github.com/cloudflare/cloudflare-go/commit/059540e573b2317912c2a9692e0235a8b2486af2))
26+
* **api:** api update ([9fdcec1](https://github.com/cloudflare/cloudflare-go/commit/9fdcec192ba7d88a4f140d8e5217a3f163c70eb8))
27+
* **api:** api update ([16f5c2a](https://github.com/cloudflare/cloudflare-go/commit/16f5c2a55afff9757dc336e89413a943366cb9e1))
28+
* **api:** api update ([a85480d](https://github.com/cloudflare/cloudflare-go/commit/a85480d5af6f6e459273262d720353abe3d2d437))
29+
* **api:** api update ([2d8c349](https://github.com/cloudflare/cloudflare-go/commit/2d8c3498574ba93e4a32d028e974e269d06f1a19))
30+
* **api:** api update ([acc0954](https://github.com/cloudflare/cloudflare-go/commit/acc09548a6af5b7d095b77f22d2191fc9ca7b59d))
31+
* **api:** api update ([3d0cfd4](https://github.com/cloudflare/cloudflare-go/commit/3d0cfd4ec05e46e96b470a309ddff34475752cc0))
32+
* **api:** api update ([ab3fa1e](https://github.com/cloudflare/cloudflare-go/commit/ab3fa1e848227cd33e36733647545f2f70b29ad5))
33+
* **api:** api update ([730b558](https://github.com/cloudflare/cloudflare-go/commit/730b558a76373b4730fa015927f7548639d710f4))
34+
* **api:** api update ([e54b6c1](https://github.com/cloudflare/cloudflare-go/commit/e54b6c16eabc2f4e2f5e661f8c1afb152b143652))
35+
* **brand_protection:** Add new routes ([a91a512](https://github.com/cloudflare/cloudflare-go/commit/a91a51230bf62b13628d3dd0da5989001a98b485))
36+
* **zero_trust_dlp:** Added individual resources and new routes ([8c3106e](https://github.com/cloudflare/cloudflare-go/commit/8c3106eb39c102ae60d37352e5fbd3970d5bc868))
37+
38+
39+
### Bug Fixes
40+
41+
* don't try to deserialize as json when ResponseBodyInto is []byte ([590dee4](https://github.com/cloudflare/cloudflare-go/commit/590dee42c9afc1886f4958ca96864b304fb2cf7e))
42+
* **pagination:** check if page data is empty in GetNextPage ([a4d9e9c](https://github.com/cloudflare/cloudflare-go/commit/a4d9e9c6d5146d7aa64b3a089b023b737ca0a1c1))
43+
44+
45+
### Chores
46+
47+
* **api:** skip broken prism tests ([00501df](https://github.com/cloudflare/cloudflare-go/commit/00501df01413758fcdbeb514eef25cc92d6e8cf8))
48+
* **api:** TTL is required on DNS records ([c483216](https://github.com/cloudflare/cloudflare-go/commit/c4832164ddc1e7d225b3993edf2194cb73639852))
49+
* **ci:** enable for pull requests ([dd46ce2](https://github.com/cloudflare/cloudflare-go/commit/dd46ce2f8ba2dc705b75392a675fa2af0a896f44))
50+
* **ci:** only run for pushes and fork pull requests ([ff43124](https://github.com/cloudflare/cloudflare-go/commit/ff43124e6237469ffecff929375b370e87609273))
51+
* **internal:** add breaking change detection ([8dddfab](https://github.com/cloudflare/cloudflare-go/commit/8dddfabe2e5b849ad4619eab2194f9c52274c524))
52+
* **internal:** fix lint script for tests ([045d3cc](https://github.com/cloudflare/cloudflare-go/commit/045d3cc0da088be9393d728729e033b957de9552))
53+
* lint tests ([cd65f19](https://github.com/cloudflare/cloudflare-go/commit/cd65f19f8c849fa4f3f379bbff6bab0ffe22ceae))
54+
355
## 4.5.1 (2025-06-16)
456

557
Full Changelog: [v4.5.0...v4.5.1](https://github.com/cloudflare/cloudflare-go/compare/v4.5.0...v4.5.1)

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@v4.5.1'
27+
go get -u 'github.com/cloudflare/cloudflare-go/v4@v4.6.0'
2828
```
2929

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

abuse_reports/aliases.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
404404
// This is an alias to an internal type.
405405
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
406406

407+
// A simple wildcard permission, e.g., "\*".
408+
//
409+
// This is an alias to an internal type.
410+
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411+
412+
// A nested permission grant for further scoping.
413+
//
414+
// This is an alias to an internal type.
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
416+
407417
// This is an alias to an internal type.
408418
type TokenPolicyParam = shared.TokenPolicyParam
409419

@@ -418,6 +428,16 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418428
// This is an alias to an internal type.
419429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420430

431+
// A simple wildcard permission, e.g., "\*".
432+
//
433+
// This is an alias to an internal type.
434+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
435+
436+
// A nested permission grant for further scoping.
437+
//
438+
// This is an alias to an internal type.
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
440+
421441
// The token value.
422442
//
423443
// This is an alias to an internal type.

accounts/aliases.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
404404
// This is an alias to an internal type.
405405
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
406406

407+
// A simple wildcard permission, e.g., "\*".
408+
//
409+
// This is an alias to an internal type.
410+
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
411+
412+
// A nested permission grant for further scoping.
413+
//
414+
// This is an alias to an internal type.
415+
type TokenPolicyResourcesMap = shared.TokenPolicyResourcesMap
416+
407417
// This is an alias to an internal type.
408418
type TokenPolicyParam = shared.TokenPolicyParam
409419

@@ -418,6 +428,16 @@ type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
418428
// This is an alias to an internal type.
419429
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
420430

431+
// A simple wildcard permission, e.g., "\*".
432+
//
433+
// This is an alias to an internal type.
434+
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
435+
436+
// A nested permission grant for further scoping.
437+
//
438+
// This is an alias to an internal type.
439+
type TokenPolicyResourcesMapParam = shared.TokenPolicyResourcesMapParam
440+
421441
// The token value.
422442
//
423443
// This is an alias to an internal type.

accounts/token_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ func TestTokenNewWithOptionalParams(t *testing.T) {
4848
Value: cloudflare.F("value"),
4949
}),
5050
}}),
51-
Resources: cloudflare.F(map[string]string{
52-
"com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43": "*",
53-
"com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4": "*",
51+
Resources: cloudflare.F(map[string]shared.TokenPolicyResourcesUnionParam{
52+
"foo": shared.UnionString("string"),
5453
}),
5554
}}),
5655
Condition: cloudflare.F(accounts.TokenNewParamsCondition{
@@ -115,9 +114,8 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) {
115114
Value: cloudflare.F("value"),
116115
}),
117116
}}),
118-
Resources: cloudflare.F(map[string]string{
119-
"com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43": "*",
120-
"com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4": "*",
117+
Resources: cloudflare.F(map[string]shared.TokenPolicyResourcesUnionParam{
118+
"foo": shared.UnionString("string"),
121119
}),
122120
}}),
123121
Status: cloudflare.F(shared.TokenStatusActive),

0 commit comments

Comments
 (0)