Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
1d2e1ca
codegen metadata
stainless-app[bot] Dec 19, 2025
6e36dc4
feat: chore: use 'next' branch for go_sdk_version
stainless-app[bot] Dec 26, 2025
4feda80
codegen metadata
stainless-app[bot] Dec 29, 2025
34f8e0b
codegen metadata
stainless-app[bot] Dec 29, 2025
9d52208
codegen metadata
stainless-app[bot] Dec 29, 2025
0b6ebac
codegen metadata
stainless-app[bot] Dec 29, 2025
7c2d0c9
chore(api): update composite API spec
stainless-app[bot] Jan 4, 2026
a52e446
chore(api): update composite API spec
stainless-app[bot] Jan 6, 2026
b577a6a
codegen metadata
stainless-app[bot] Jan 6, 2026
352168e
chore(api): update composite API spec
stainless-app[bot] Jan 6, 2026
51946fe
chore(api): update composite API spec
stainless-app[bot] Jan 8, 2026
61dace1
codegen metadata
stainless-app[bot] Jan 8, 2026
3d01e2d
feat: fix: unsupported auth scheme
stainless-app[bot] Jan 8, 2026
20aa2ba
chore(api): update composite API spec
stainless-app[bot] Jan 9, 2026
9ebcb23
chore(api): update composite API spec
stainless-app[bot] Jan 9, 2026
2bbfb73
feat(requestconfig): more resilient rate limit handling
tamas-jozsa Jan 9, 2026
cb0887b
codegen metadata
stainless-app[bot] Jan 9, 2026
e5b3dad
chore(api): update composite API spec
stainless-app[bot] Jan 12, 2026
6a863d9
chore(api): update composite API spec
stainless-app[bot] Jan 12, 2026
aa1caa8
Merge pull request #4220 from cloudflare/ratelimit
tamas-jozsa Jan 12, 2026
9d9c0d4
codegen metadata
stainless-app[bot] Jan 12, 2026
ae823da
codegen metadata
stainless-app[bot] Jan 13, 2026
bcd01f9
codegen metadata
stainless-app[bot] Jan 13, 2026
0198b9d
chore(api): update composite API spec
stainless-app[bot] Jan 13, 2026
4cab5b1
chore(api): update composite API spec
stainless-app[bot] Jan 13, 2026
d86ec65
chore(api): update composite API spec
stainless-app[bot] Jan 13, 2026
3cca923
chore(api): update composite API spec
stainless-app[bot] Jan 14, 2026
642e88b
chore(api): update composite API spec
stainless-app[bot] Jan 14, 2026
087abae
chore(api): update composite API spec
stainless-app[bot] Jan 14, 2026
aacd207
codegen metadata
stainless-app[bot] Jan 14, 2026
f4e82ff
feat: feat(d1): Add time travel `get_bookmark` and `restore` endpoints
stainless-app[bot] Jan 15, 2026
160f215
codegen metadata
stainless-app[bot] Jan 15, 2026
72cc307
chore(ci): fix client retry tests to accomodate the new retry logic
musa-cf Jan 15, 2026
7629a70
docs(changelog): update changelog for v6.6.0
musa-cf Jan 16, 2026
281c2c2
release: 6.6.0
stainless-app[bot] Jan 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "6.5.0"
".": "6.6.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 1948
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d3b3813ba8fb0b5303cfad8fcbd363941c494711e4cce61069553692b664774f.yml
openapi_spec_hash: 4f467a53fd61500db4f7561dcfaaa088
config_hash: e46aac70a20120e31732b1248c24ef48
configured_endpoints: 2003
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-28b84a5db03b38290dfe7ef1de2c68feb68762d7a8f207bdbea4d39a7aeef1ea.yml
openapi_spec_hash: ba6bd61621e4be20b581f4f3bf0978d3
config_hash: 792d1c52dbd202202899d3af9ac09455
75 changes: 75 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,80 @@
# Changelog

## 6.6.0 (2026-01-16)

Full Changelog: [v6.5.0...v6.6.0](https://github.com/cloudflare/cloudflare-go/compare/v6.5.0...v6.6.0)

### Features

* chore: use 'next' branch for go_sdk_version ([6e36dc4](https://github.com/cloudflare/cloudflare-go/commit/6e36dc44a16f8672d9fc9ec717e3884be5cacc33))
* feat(d1): Add time travel `get_bookmark` and `restore` endpoints ([f4e82ff](https://github.com/cloudflare/cloudflare-go/commit/f4e82ffa8e03abb9d49671c262bd7aeb27b5e695))
* fix: unsupported auth scheme ([3d01e2d](https://github.com/cloudflare/cloudflare-go/commit/3d01e2d03b742099a7d1eb3262fbae095811b05c))
* **requestconfig:** more resilient rate limit handling ([2bbfb73](https://github.com/cloudflare/cloudflare-go/commit/2bbfb7321c9fe81b79554288e882f6ab46dcdd07))


### Chores

* **api:** update composite API spec ([087abae](https://github.com/cloudflare/cloudflare-go/commit/087abaec3e0ee420d742fbaf1a94beeb6a2d5e8d))
* **api:** update composite API spec ([642e88b](https://github.com/cloudflare/cloudflare-go/commit/642e88ba84480f8f671097f2e9f8012273097db7))
* **api:** update composite API spec ([3cca923](https://github.com/cloudflare/cloudflare-go/commit/3cca9238ccd2ba6c74846a262166f7445353c6c6))
* **api:** update composite API spec ([d86ec65](https://github.com/cloudflare/cloudflare-go/commit/d86ec65cf166e7c0dda5ec3d0a7a2164203880d7))
* **api:** update composite API spec ([4cab5b1](https://github.com/cloudflare/cloudflare-go/commit/4cab5b1a24718e0d6462bb9210a803133c1def41))
* **api:** update composite API spec ([0198b9d](https://github.com/cloudflare/cloudflare-go/commit/0198b9d430bb4069c3c346b1070c1d72f96d4e27))
* **api:** update composite API spec ([6a863d9](https://github.com/cloudflare/cloudflare-go/commit/6a863d9d4e3b9b6fdb4828e9599cc5f77bfc22a6))
* **api:** update composite API spec ([e5b3dad](https://github.com/cloudflare/cloudflare-go/commit/e5b3dad3d396a425a5d2b6b251127e77f685cb42))
* **api:** update composite API spec ([9ebcb23](https://github.com/cloudflare/cloudflare-go/commit/9ebcb236689be5c2327103e19f4d08106a038705))
* **api:** update composite API spec ([20aa2ba](https://github.com/cloudflare/cloudflare-go/commit/20aa2baa64f78d608c7c1cd6df7226feb33d7f00))
* **api:** update composite API spec ([51946fe](https://github.com/cloudflare/cloudflare-go/commit/51946fedde72943b8b9d933a7fc8b4955e2d562d))
* **api:** update composite API spec ([352168e](https://github.com/cloudflare/cloudflare-go/commit/352168ede302b94aef9ce758925b14dce58a8a22))
* **api:** update composite API spec ([a52e446](https://github.com/cloudflare/cloudflare-go/commit/a52e446a6c523db828cc58ef0c400d2d0add371c))
* **api:** update composite API spec ([7c2d0c9](https://github.com/cloudflare/cloudflare-go/commit/7c2d0c940f953fdd7436150c27475ba10a834d56))
* **ci:** fix client retry tests to accomodate the new retry logic ([72cc307](https://github.com/cloudflare/cloudflare-go/commit/72cc3074aa2fc0f36d5511b0409b1322f80f083c))
* remove stalebot ([1c1e4b9](https://github.com/cloudflare/cloudflare-go/commit/1c1e4b9de15e284150f2b6f8ec73255744ad7239))


### Documentation

* **changelog:** update changelog for v6.6.0 ([7629a70](https://github.com/cloudflare/cloudflare-go/commit/7629a707f273272787f0e404f6002eb2557716a7))

## 6.6.0 (2025-01-15)

Full Changelog: [v6.5.0...v6.6.0](https://github.com/cloudflare/cloudflare-go/compare/v6.5.0...v6.6.0)

### Breaking Changes

* **browser_rendering:** refactor request body parameters to use proper union types

The models were updated to be accurate to what the API expects, so there are parameter changes
across most of the sub-resources under the `browser_rendering` umbrella. This prevents some malformed
requests that resulted in client errors.

### Features

* **ai_search:** add hybrid search and public endpoint support
* **ai_gateway:** add `is_default` field to gateway configurations
* **cloudforce_one:** add UUID support, STIX2 format, and async indicator processing
* **custom_pages:** add `waf_challenge` identifier support
* **email_security:** add async polling support with Location header and success field
* **magic_cloud_networking:** expand type definitions for catalog sync, cloud integration, and onramp
* **realtime_kit:** add comprehensive meeting, preset, recording, session, and webhook endpoints
* **rulesets:** add request and response body buffering configuration options
* **stream:** add properly typed download responses with status tracking
* **workers:** add targeted placement support with host, hostname, and region options
* **workers_for_platforms:** enhance dispatch namespace script settings types
* **workflows:** add properly typed instance_retention parameter with error and success retention
* **zones:** refactor subscription responses to use dedicated types

### Chores

* **addressing:** add `auto_generated` field to LOA document responses
* **custom_hostnames:** make SSL parameter optional in create requests
* **email_security:** deprecate `item_count` field in move responses
* **hyperdrive:** improve documentation for caching and port configuration
* **pages:** refactor project and deployment type definitions
* **shared:** add union type implementations and documentation updates
* **zero_trust:** simplify DLP shared entry types by removing entry_type unions


## 6.5.0 (2025-12-17)

Full Changelog: [v6.4.0...v6.5.0](https://github.com/cloudflare/cloudflare-go/compare/v6.4.0...v6.5.0)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2025 Cloudflare
Copyright 2026 Cloudflare

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/cloudflare/cloudflare-go/v4@v6.5.0'
go get -u 'github.com/cloudflare/cloudflare-go/v4@v6.6.0'
```

<!-- x-release-please-end -->
Expand Down
25 changes: 14 additions & 11 deletions addressing/loadocument.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ type LOADocumentNewResponse struct {
// Identifier for the uploaded LOA document.
ID string `json:"id,nullable"`
// Identifier of a Cloudflare account.
AccountID string `json:"account_id"`
Created time.Time `json:"created" format:"date-time"`
AccountID string `json:"account_id"`
// Whether the LOA has been auto-generated for the prefix owner by Cloudflare.
AutoGenerated bool `json:"auto_generated"`
Created time.Time `json:"created" format:"date-time"`
// Name of LOA document. Max file size 10MB, and supported filetype is pdf.
Filename string `json:"filename"`
// File size of the uploaded LOA document.
Expand All @@ -94,15 +96,16 @@ type LOADocumentNewResponse struct {
// loaDocumentNewResponseJSON contains the JSON metadata for the struct
// [LOADocumentNewResponse]
type loaDocumentNewResponseJSON struct {
ID apijson.Field
AccountID apijson.Field
Created apijson.Field
Filename apijson.Field
SizeBytes apijson.Field
Verified apijson.Field
VerifiedAt apijson.Field
raw string
ExtraFields map[string]apijson.Field
ID apijson.Field
AccountID apijson.Field
AutoGenerated apijson.Field
Created apijson.Field
Filename apijson.Field
SizeBytes apijson.Field
Verified apijson.Field
VerifiedAt apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *LOADocumentNewResponse) UnmarshalJSON(data []byte) (err error) {
Expand Down
12 changes: 12 additions & 0 deletions ai_gateway/aigateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ type AIGatewayNewResponse struct {
RateLimitingTechnique AIGatewayNewResponseRateLimitingTechnique `json:"rate_limiting_technique,required"`
Authentication bool `json:"authentication"`
DLP AIGatewayNewResponseDLP `json:"dlp"`
IsDefault bool `json:"is_default"`
LogManagement int64 `json:"log_management,nullable"`
LogManagementStrategy AIGatewayNewResponseLogManagementStrategy `json:"log_management_strategy,nullable"`
Logpush bool `json:"logpush"`
Expand Down Expand Up @@ -201,6 +202,7 @@ type aiGatewayNewResponseJSON struct {
RateLimitingTechnique apijson.Field
Authentication apijson.Field
DLP apijson.Field
IsDefault apijson.Field
LogManagement apijson.Field
LogManagementStrategy apijson.Field
Logpush apijson.Field
Expand Down Expand Up @@ -458,6 +460,7 @@ type AIGatewayUpdateResponse struct {
RateLimitingTechnique AIGatewayUpdateResponseRateLimitingTechnique `json:"rate_limiting_technique,required"`
Authentication bool `json:"authentication"`
DLP AIGatewayUpdateResponseDLP `json:"dlp"`
IsDefault bool `json:"is_default"`
LogManagement int64 `json:"log_management,nullable"`
LogManagementStrategy AIGatewayUpdateResponseLogManagementStrategy `json:"log_management_strategy,nullable"`
Logpush bool `json:"logpush"`
Expand Down Expand Up @@ -486,6 +489,7 @@ type aiGatewayUpdateResponseJSON struct {
RateLimitingTechnique apijson.Field
Authentication apijson.Field
DLP apijson.Field
IsDefault apijson.Field
LogManagement apijson.Field
LogManagementStrategy apijson.Field
Logpush apijson.Field
Expand Down Expand Up @@ -744,6 +748,7 @@ type AIGatewayListResponse struct {
RateLimitingTechnique AIGatewayListResponseRateLimitingTechnique `json:"rate_limiting_technique,required"`
Authentication bool `json:"authentication"`
DLP AIGatewayListResponseDLP `json:"dlp"`
IsDefault bool `json:"is_default"`
LogManagement int64 `json:"log_management,nullable"`
LogManagementStrategy AIGatewayListResponseLogManagementStrategy `json:"log_management_strategy,nullable"`
Logpush bool `json:"logpush"`
Expand Down Expand Up @@ -772,6 +777,7 @@ type aiGatewayListResponseJSON struct {
RateLimitingTechnique apijson.Field
Authentication apijson.Field
DLP apijson.Field
IsDefault apijson.Field
LogManagement apijson.Field
LogManagementStrategy apijson.Field
Logpush apijson.Field
Expand Down Expand Up @@ -1030,6 +1036,7 @@ type AIGatewayDeleteResponse struct {
RateLimitingTechnique AIGatewayDeleteResponseRateLimitingTechnique `json:"rate_limiting_technique,required"`
Authentication bool `json:"authentication"`
DLP AIGatewayDeleteResponseDLP `json:"dlp"`
IsDefault bool `json:"is_default"`
LogManagement int64 `json:"log_management,nullable"`
LogManagementStrategy AIGatewayDeleteResponseLogManagementStrategy `json:"log_management_strategy,nullable"`
Logpush bool `json:"logpush"`
Expand Down Expand Up @@ -1058,6 +1065,7 @@ type aiGatewayDeleteResponseJSON struct {
RateLimitingTechnique apijson.Field
Authentication apijson.Field
DLP apijson.Field
IsDefault apijson.Field
LogManagement apijson.Field
LogManagementStrategy apijson.Field
Logpush apijson.Field
Expand Down Expand Up @@ -1316,6 +1324,7 @@ type AIGatewayGetResponse struct {
RateLimitingTechnique AIGatewayGetResponseRateLimitingTechnique `json:"rate_limiting_technique,required"`
Authentication bool `json:"authentication"`
DLP AIGatewayGetResponseDLP `json:"dlp"`
IsDefault bool `json:"is_default"`
LogManagement int64 `json:"log_management,nullable"`
LogManagementStrategy AIGatewayGetResponseLogManagementStrategy `json:"log_management_strategy,nullable"`
Logpush bool `json:"logpush"`
Expand Down Expand Up @@ -1344,6 +1353,7 @@ type aiGatewayGetResponseJSON struct {
RateLimitingTechnique apijson.Field
Authentication apijson.Field
DLP apijson.Field
IsDefault apijson.Field
LogManagement apijson.Field
LogManagementStrategy apijson.Field
Logpush apijson.Field
Expand Down Expand Up @@ -1596,6 +1606,7 @@ type AIGatewayNewParams struct {
RateLimitingLimit param.Field[int64] `json:"rate_limiting_limit,required"`
RateLimitingTechnique param.Field[AIGatewayNewParamsRateLimitingTechnique] `json:"rate_limiting_technique,required"`
Authentication param.Field[bool] `json:"authentication"`
IsDefault param.Field[bool] `json:"is_default"`
LogManagement param.Field[int64] `json:"log_management"`
LogManagementStrategy param.Field[AIGatewayNewParamsLogManagementStrategy] `json:"log_management_strategy"`
Logpush param.Field[bool] `json:"logpush"`
Expand Down Expand Up @@ -1670,6 +1681,7 @@ type AIGatewayUpdateParams struct {
RateLimitingTechnique param.Field[AIGatewayUpdateParamsRateLimitingTechnique] `json:"rate_limiting_technique,required"`
Authentication param.Field[bool] `json:"authentication"`
DLP param.Field[AIGatewayUpdateParamsDLPUnion] `json:"dlp"`
IsDefault param.Field[bool] `json:"is_default"`
LogManagement param.Field[int64] `json:"log_management"`
LogManagementStrategy param.Field[AIGatewayUpdateParamsLogManagementStrategy] `json:"log_management_strategy"`
Logpush param.Field[bool] `json:"logpush"`
Expand Down
2 changes: 2 additions & 0 deletions ai_gateway/aigateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func TestAIGatewayNewWithOptionalParams(t *testing.T) {
RateLimitingLimit: cloudflare.F(int64(0)),
RateLimitingTechnique: cloudflare.F(ai_gateway.AIGatewayNewParamsRateLimitingTechniqueFixed),
Authentication: cloudflare.F(true),
IsDefault: cloudflare.F(true),
LogManagement: cloudflare.F(int64(10000)),
LogManagementStrategy: cloudflare.F(ai_gateway.AIGatewayNewParamsLogManagementStrategyStopInserting),
Logpush: cloudflare.F(true),
Expand Down Expand Up @@ -82,6 +83,7 @@ func TestAIGatewayUpdateWithOptionalParams(t *testing.T) {
Enabled: cloudflare.F(true),
Profiles: cloudflare.F([]string{"string"}),
}),
IsDefault: cloudflare.F(true),
LogManagement: cloudflare.F(int64(10000)),
LogManagementStrategy: cloudflare.F(ai_gateway.AIGatewayUpdateParamsLogManagementStrategyStopInserting),
Logpush: cloudflare.F(true),
Expand Down
Loading
Loading