Skip to content

Commit e543b27

Browse files
authored
Merge pull request #4164 from cloudflare/release-please--branches--main--changes--next
release: 4.5.0
2 parents a3a1e0e + cef6629 commit e543b27

File tree

277 files changed

+43388
-10966
lines changed

Some content is hidden

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

277 files changed

+43388
-10966
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 22 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
33
{
4-
"name": "Debian",
5-
"build": {
6-
"dockerfile": "Dockerfile"
7-
}
8-
9-
// Features to add to the dev container. More info: https://containers.dev/features.
10-
// "features": {},
11-
12-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
13-
// "forwardPorts": [],
14-
15-
// Configure tool-specific properties.
16-
// "customizations": {},
17-
18-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
19-
// "remoteUser": "root"
4+
"name": "Development",
5+
"image": "mcr.microsoft.com/devcontainers/go:1.23-bookworm",
6+
"postCreateCommand": "go mod tidy"
207
}

.github/workflows/ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
- 'stl-preview-head/**'
99
- 'stl-preview-base/**'
1010

11-
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: true
14-
1511
jobs:
1612
lint:
1713
timeout-minutes: 10
@@ -32,7 +28,6 @@ jobs:
3228
timeout-minutes: 10
3329
name: test
3430
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
35-
3631
steps:
3732
- uses: actions/checkout@v4
3833

.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.4.0"
2+
".": "4.5.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: 1739
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-845f804141f01edfcce598436ef1e94b17a4281624186c9728108732936bcb5a.yml
3-
openapi_spec_hash: 71b329a117f0bfc0378e1ce68fab7874
4-
config_hash: 3d9fadb4356418193954f0f70e6f47f9
1+
configured_endpoints: 1749
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b15b44e0efd207de48e7e74e742b0b4b190c74f12a941a1a0ef59a51656a5224.yml
3+
openapi_spec_hash: 83243c9ee06f88d0fa91e9b185d8a42e
4+
config_hash: d0ab46f06dbe6f6e33d86a3ede15ac44

CHANGELOG.md

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

3+
## 4.5.0 (2025-06-16)
4+
5+
Full Changelog: [v4.4.0...v4.5.0](https://github.com/cloudflare/cloudflare-go/compare/v4.4.0...v4.5.0)
6+
7+
### Features
8+
9+
* **api:** Add IAM User Groups and AutoRAG ([1a45db9](https://github.com/cloudflare/cloudflare-go/commit/1a45db9ef6dcd6f8a255672b992a1b1a1ebcde0a))
10+
* **api:** Add new bulk deletion endpoint for ZT infra targets ([117dbde](https://github.com/cloudflare/cloudflare-go/commit/117dbdee58a4a09529962f43228aa6423773597c))
11+
* **api:** api update ([c1b4d1a](https://github.com/cloudflare/cloudflare-go/commit/c1b4d1a9c3b1eaac5ba5a1cfb9a2ab2bbb1a788b))
12+
* **api:** api update ([7bdb8d7](https://github.com/cloudflare/cloudflare-go/commit/7bdb8d7300b8d3ee59e9693170a1101fc4e17e92))
13+
* **api:** api update ([817e8d0](https://github.com/cloudflare/cloudflare-go/commit/817e8d0283ff8cc5bc290c068f5971a816d1b3c0))
14+
* **api:** api update ([32f3ab1](https://github.com/cloudflare/cloudflare-go/commit/32f3ab18f9e958a8cc0f3521468d61c851e65505))
15+
* **api:** api update ([ab50a2a](https://github.com/cloudflare/cloudflare-go/commit/ab50a2a05ae52b6b4efb6670a2daec4a7be7bf7e))
16+
* **api:** api update ([aabe457](https://github.com/cloudflare/cloudflare-go/commit/aabe45743df31d1a0aec36dd987df623bd3fa866))
17+
* **api:** api update ([f7cc141](https://github.com/cloudflare/cloudflare-go/commit/f7cc141456a55f2cbd822aa308159567fc21e75e))
18+
* **api:** api update ([f759457](https://github.com/cloudflare/cloudflare-go/commit/f759457ef3ba8838b72c5c1d9a3ae3794ab9c124))
19+
* **api:** api update ([922a9a7](https://github.com/cloudflare/cloudflare-go/commit/922a9a75bd708bd77f6cf1e839c270404b409897))
20+
* **api:** api update ([8af85ad](https://github.com/cloudflare/cloudflare-go/commit/8af85adc4a666f7b3b4d6545b9c8622d0ef8e194))
21+
* **api:** api update ([d66502d](https://github.com/cloudflare/cloudflare-go/commit/d66502d94275388228027c7e677220ecff8b0e85))
22+
* **api:** api update ([4635488](https://github.com/cloudflare/cloudflare-go/commit/463548879244ffe21c7e47da5fd60389ee7af527))
23+
* **api:** api update ([15911c4](https://github.com/cloudflare/cloudflare-go/commit/15911c448f982bf192399195541a6286150d2683))
24+
* **api:** api update ([3abb83a](https://github.com/cloudflare/cloudflare-go/commit/3abb83a773bab93b270bdaafd15ec26e1a1e35a1))
25+
* **api:** api update ([a53f1a5](https://github.com/cloudflare/cloudflare-go/commit/a53f1a5bf31a95b55dd584863a6e9c3dcee47110))
26+
* **api:** api update ([a5d487c](https://github.com/cloudflare/cloudflare-go/commit/a5d487cae4f4981773a120f8ba74ac15477aebb8))
27+
* **api:** api update ([2895ee9](https://github.com/cloudflare/cloudflare-go/commit/2895ee97809bfd81e1b600cc9086fd30afaba548))
28+
* **api:** api update ([5eba076](https://github.com/cloudflare/cloudflare-go/commit/5eba07651aa50a0d9330863d47aefbcd4f677970))
29+
* **api:** api update ([d33eebc](https://github.com/cloudflare/cloudflare-go/commit/d33eebcb938cebd2655dd7f18f8603cc6b087311))
30+
* **api:** api update ([40b14d2](https://github.com/cloudflare/cloudflare-go/commit/40b14d2ec3f2ed31348024446a162e998722a5ae))
31+
* **api:** api update ([4b8a12d](https://github.com/cloudflare/cloudflare-go/commit/4b8a12d06b1d8a900bb47e71b85cbb5950c65d92))
32+
* **api:** api update ([102dc6f](https://github.com/cloudflare/cloudflare-go/commit/102dc6f83f649df380796071b597a88938d5a5c7))
33+
* **api:** api update ([dd35540](https://github.com/cloudflare/cloudflare-go/commit/dd35540cb844ba7225e362ff8ad640dcd0bd7697))
34+
* **api:** api update ([b827264](https://github.com/cloudflare/cloudflare-go/commit/b827264dbad6dfb99c0a573bee7d1c8f4530258c))
35+
* **api:** api update ([18af3f1](https://github.com/cloudflare/cloudflare-go/commit/18af3f17c55bffb0e934a3729100ffebcc6f95d9))
36+
* **api:** api update ([dc215f8](https://github.com/cloudflare/cloudflare-go/commit/dc215f89a8c722572414f3e44f58cdc2707eacf6))
37+
* **api:** api update ([ce2708c](https://github.com/cloudflare/cloudflare-go/commit/ce2708cf440dea2d7d9f0db1dba362491d5b9fba))
38+
* **api:** api update ([1967ab8](https://github.com/cloudflare/cloudflare-go/commit/1967ab835e915cc6b673ac50e1148ee2565fd703))
39+
* **api:** api update ([fefef5c](https://github.com/cloudflare/cloudflare-go/commit/fefef5c6856e36573b51e0e157f07dc8511b71ba))
40+
* **api:** api update ([cbc5448](https://github.com/cloudflare/cloudflare-go/commit/cbc544828f5354dd2ec947ba9f5ef65ae23cc519))
41+
* **api:** api update ([f7fb584](https://github.com/cloudflare/cloudflare-go/commit/f7fb584f9c66178b54f7d9090b244ddf61979e26))
42+
* **api:** api update ([050120d](https://github.com/cloudflare/cloudflare-go/commit/050120d774255e108531b1e929b5824c1d679d52))
43+
* **api:** api update ([9de14df](https://github.com/cloudflare/cloudflare-go/commit/9de14dfe495a0a45980eeb4323f6c309a4d13afc))
44+
* **api:** api update ([b6fc090](https://github.com/cloudflare/cloudflare-go/commit/b6fc090b83818b3bdf1dc5e3e14a690467d1aaf1))
45+
* **api:** fix account ID types ([e4231aa](https://github.com/cloudflare/cloudflare-go/commit/e4231aa184b6ce03ddc5cc738d6dac1380f18f90))
46+
* **infrastructure_targets:** swap DELETE handler to new endpoint ([338e920](https://github.com/cloudflare/cloudflare-go/commit/338e92006353bc46314683e8c7bf2d138744dae7))
47+
48+
49+
### Bug Fixes
50+
51+
* add back kv.namespaces bulk methods ([5cb2db9](https://github.com/cloudflare/cloudflare-go/commit/5cb2db9d75d4976ec273215805484e3a8fd0edce))
52+
* add missing properties ([41b4851](https://github.com/cloudflare/cloudflare-go/commit/41b4851c45c41897a684f663e426e976e580f139))
53+
* **AI:** Add explicit variant names for union types ([f16e867](https://github.com/cloudflare/cloudflare-go/commit/f16e8673ca68bf5635d277ffac44290d5f08af83))
54+
* **api:** 'name' and 'type' are required on dns_record ([6f8cbb6](https://github.com/cloudflare/cloudflare-go/commit/6f8cbb6e480090e107add602f09fa86c1bdc5582))
55+
* **api:** Typo in jsonpath-plus query for transformation ([ba73079](https://github.com/cloudflare/cloudflare-go/commit/ba730794cc5ace1691f3f7641fd3bc9ab8758542))
56+
* **config:** Diagnostic errors ([467f38f](https://github.com/cloudflare/cloudflare-go/commit/467f38fb755f63c0faecf3383b1797d2dcbba044))
57+
* **DLP:** Add explicit variant names ([70af3b9](https://github.com/cloudflare/cloudflare-go/commit/70af3b906dc4cbe935f0212a47cdd7b1f314bf8d))
58+
59+
60+
### Chores
61+
62+
* **api:** Fix edge IPs variant names ([0169853](https://github.com/cloudflare/cloudflare-go/commit/016985339664acd2e8fc3b2f8dc9b14ddb1d8712))
63+
* **api:** mark some methods as deprecated ([c73b979](https://github.com/cloudflare/cloudflare-go/commit/c73b979bb727528f92c59d7ca37981335673085d))
64+
* **internal:** codegen related update ([f148dac](https://github.com/cloudflare/cloudflare-go/commit/f148daca99f40dd6f5fe6bb4389b55a444324ab6))
65+
* **internal:** codegen related update ([5b1bc45](https://github.com/cloudflare/cloudflare-go/commit/5b1bc453eac95091961dbee3f035766c4963dae7))
66+
* **internal:** codegen related update ([f7f249b](https://github.com/cloudflare/cloudflare-go/commit/f7f249bb12a9d243500ee95033639d1b621beb34))
67+
* make go mod tidy continue on error ([a615f3b](https://github.com/cloudflare/cloudflare-go/commit/a615f3b44519619a56ed51a83c0fb8c995ca9e29))
68+
369
## 4.4.0 (2025-05-16)
470

571
Full Changelog: [v4.3.0...v4.4.0](https://github.com/cloudflare/cloudflare-go/compare/v4.3.0...v4.4.0)

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
The Cloudflare Go library provides convenient access to the [Cloudflare REST API](https://developers.cloudflare.com/api)
66
from applications written in Go.
77

8+
It is generated with [Stainless](https://www.stainless.com/).
9+
810
## Installation
911

1012
<!-- x-release-please-start-version -->
@@ -22,7 +24,7 @@ Or to pin the version:
2224
<!-- x-release-please-start-version -->
2325

2426
```sh
25-
go get -u 'github.com/cloudflare/cloudflare-go/v4@v4.4.0'
27+
go get -u 'github.com/cloudflare/cloudflare-go/v4@v4.5.0'
2628
```
2729

2830
<!-- x-release-please-end -->
@@ -49,8 +51,7 @@ import (
4951

5052
func main() {
5153
client := cloudflare.NewClient(
52-
option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), // defaults to os.LookupEnv("CLOUDFLARE_API_KEY")
53-
option.WithAPIEmail("user@example.com"), // defaults to os.LookupEnv("CLOUDFLARE_EMAIL")
54+
option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), // defaults to os.LookupEnv("CLOUDFLARE_API_TOKEN")
5455
)
5556
zone, err := client.Zones.New(context.TODO(), zones.ZoneNewParams{
5657
Account: cloudflare.F(zones.ZoneNewParamsAccount{
@@ -421,9 +422,8 @@ middleware has been applied.
421422

422423
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
423424

424-
1. Changes that only affect static types, without breaking runtime behavior.
425-
1. Changes to library internals which are technically public but not intended or documented for external use.
426-
1. Changes that we do not expect to impact the vast majority of users in practice.
425+
1. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
426+
2. Changes that we do not expect to impact the vast majority of users in practice.
427427

428428
## Maintenance
429429

SECURITY.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
11
# Reporting Security Vulnerabilities
22

3+
## Reporting Security Issues
4+
5+
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
6+
7+
To report a security issue, please contact the Stainless team at security@stainless.com.
8+
9+
## Responsible Disclosure
10+
11+
We appreciate the efforts of security researchers and individuals who help us maintain the security of
12+
SDKs we generate. If you believe you have found a security vulnerability, please adhere to responsible
13+
disclosure practices by allowing us a reasonable amount of time to investigate and address the issue
14+
before making any information public.
15+
16+
## Reporting Non-SDK Related Security Issues
17+
18+
If you encounter security issues that are not directly related to SDKs but pertain to the services
19+
or products provided by Cloudflare, please follow the respective company's security reporting guidelines.
20+
21+
### Cloudflare Terms and Policies
22+
23+
Please contact api@cloudflare.com for any questions or concerns regarding the security of our services.
24+
25+
---
26+
27+
Thank you for helping us keep the SDKs and systems they interact with secure.
28+
329
Please see [this page](https://www.cloudflare.com/.well-known/security.txt) for information on how to report a vulnerability to Cloudflare. Thanks!

accounts/account.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ func (r accountSettingsJSON) RawJSON() string {
193193
}
194194

195195
type AccountParam struct {
196+
// Identifier
197+
ID param.Field[string] `json:"id,required"`
196198
// Account name
197199
Name param.Field[string] `json:"name,required"`
198200
// Account settings

accounts/account_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ func TestAccountUpdateWithOptionalParams(t *testing.T) {
5757
option.WithAPIEmail("user@example.com"),
5858
)
5959
_, err := client.Accounts.Update(context.TODO(), accounts.AccountUpdateParams{
60-
AccountID: cloudflare.F("eb78d65290b24279ba6f44721b3ea3c4"),
60+
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
6161
Account: accounts.AccountParam{
62+
ID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
6263
Name: cloudflare.F("Demo Account"),
6364
Settings: cloudflare.F(accounts.AccountSettingsParam{
6465
AbuseContactEmail: cloudflare.F("abuse_contact_email"),
@@ -142,7 +143,7 @@ func TestAccountGet(t *testing.T) {
142143
option.WithAPIEmail("user@example.com"),
143144
)
144145
_, err := client.Accounts.Get(context.TODO(), accounts.AccountGetParams{
145-
AccountID: cloudflare.F("eb78d65290b24279ba6f44721b3ea3c4"),
146+
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
146147
})
147148
if err != nil {
148149
var apierr *cloudflare.Error

0 commit comments

Comments
 (0)