Skip to content

Commit 6cb0866

Browse files
authored
Merge pull request #4216 from cloudflare/release-please--branches--main--changes--next
release: 6.5.0
2 parents 841061e + 9f3f31e commit 6cb0866

Some content is hidden

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

50 files changed

+7914
-3467
lines changed

.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.4.0"
2+
".": "6.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: 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
1+
configured_endpoints: 1948
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d3b3813ba8fb0b5303cfad8fcbd363941c494711e4cce61069553692b664774f.yml
3+
openapi_spec_hash: 4f467a53fd61500db4f7561dcfaaa088
4+
config_hash: e46aac70a20120e31732b1248c24ef48

CHANGELOG.md

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

3+
## 6.5.0 (2025-12-17)
4+
5+
Full Changelog: [v6.4.0...v6.5.0](https://github.com/cloudflare/cloudflare-go/compare/v6.4.0...v6.5.0)
6+
7+
### Features
8+
9+
* **ai_gateway:** add `zdr` field ([f85b933](https://github.com/cloudflare/cloudflare-go/commit/f85b93344696aab1472cbe94c51badf28c6a5de7))
10+
* **ai_search**: add AI Search endpoints ([9d95c4b](https://github.com/cloudflare/cloudflare-go/commit/9d95c4baab206211083fbf85ab04ff3fa9205fc8))
11+
* **leaked_credentials_check**: Add GET endpoint for leaked_credentials_check/detections ([2c4f6f5](https://github.com/cloudflare/cloudflare-go/commit/2c4f6f5f09e5aba4afe79b4df782032b242bf2af))
12+
* **magic_transit:** support custom remote identities ([f85b933](https://github.com/cloudflare/cloudflare-go/commit/f85b93344696aab1472cbe94c51badf28c6a5de7))
13+
* **r2:** add `keys` to super slurper response types ([f85b933](https://github.com/cloudflare/cloudflare-go/commit/f85b93344696aab1472cbe94c51badf28c6a5de7))
14+
* **radar:** support filtering results by agent type ([2020995](https://github.com/cloudflare/cloudflare-go/commit/2020995fcd4a89b52f8b1bf2f78303a90fa4e66a))
15+
* **workers:** add startup_time_ms to version types ([f85b933](https://github.com/cloudflare/cloudflare-go/commit/f85b93344696aab1472cbe94c51badf28c6a5de7))
16+
* **zero_trust:** support new gateway list types ([2020995](https://github.com/cloudflare/cloudflare-go/commit/2020995fcd4a89b52f8b1bf2f78303a90fa4e66a))
17+
18+
### Chores
19+
20+
* **accounts:** docs, tests updates ([f85b933](https://github.com/cloudflare/cloudflare-go/commit/f85b93344696aab1472cbe94c51badf28c6a5de7))
21+
* **api_gateway** Deprecate API Shield Schema Validation resources ([ae8644c](https://github.com/cloudflare/cloudflare-go/commit/ae8644cb41a29e0a1496b79cbe797365be1cb253))
22+
* **internal:** codegen related update ([d2d0a29](https://github.com/cloudflare/cloudflare-go/commit/d2d0a295b5658e40177ec6af88b7d6a5d4bbc8bb))
23+
* **load_balancers:** update pool, monitor nullability ([2020995](https://github.com/cloudflare/cloudflare-go/commit/2020995fcd4a89b52f8b1bf2f78303a90fa4e66a))
24+
* **zero_trus:** refactor DLP entry types ([23fdbc6](https://github.com/cloudflare/cloudflare-go/commit/23fdbc69d399ef783bf4ad85df3ae07cf8ffb794))
25+
326
## 6.4.0 (2025-12-04)
427

528
Full Changelog: [v6.3.0...v6.4.0](https://github.com/cloudflare/cloudflare-go/compare/v6.3.0...v6.4.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.4.0'
27+
go get -u 'github.com/cloudflare/cloudflare-go/v4@v6.5.0'
2828
```
2929

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

accounts/logaudit.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,8 @@ func (r LogAuditListParamsActorTypeNot) IsKnown() bool {
625625
// Deprecated: deprecated in favor of ID. Use ID to query by the audit log ID.
626626
type LogAuditListParamsAuditLogID struct {
627627
// Filters out audit logs by their IDs.
628+
//
629+
// Deprecated: deprecated
628630
Not param.Field[[]string] `query:"not"`
629631
}
630632

accounts/logaudit_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ func TestLogAuditListWithOptionalParams(t *testing.T) {
6666
ActorType: cloudflare.F(accounts.LogAuditListParamsActorType{
6767
Not: cloudflare.F([]accounts.LogAuditListParamsActorTypeNot{accounts.LogAuditListParamsActorTypeNotAccount}),
6868
}),
69+
AuditLogID: cloudflare.F(accounts.LogAuditListParamsAuditLogID{
70+
Not: cloudflare.F([]string{"f174be97-19b1-40d6-954d-70cd5fbd52db"}),
71+
}),
6972
Cursor: cloudflare.F("Q1buH-__DQqqig7SVYXT-SsMOTGY2Z3Y80W-fGgva7yaDdmPKveucH5ddOcHsJRhNb-xUK8agZQqkJSMAENGO8NU6g=="),
7073
Direction: cloudflare.F(accounts.LogAuditListParamsDirectionDesc),
7174
Limit: cloudflare.F(25.000000),

ai/tomarkdown.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ func (r *ToMarkdownService) SupportedAutoPaging(ctx context.Context, query ToMar
6767
}
6868

6969
// Convert Files into Markdown
70-
func (r *ToMarkdownService) Transform(ctx context.Context, file io.Reader, body ToMarkdownTransformParams, opts ...option.RequestOption) (res *pagination.SinglePage[ToMarkdownTransformResponse], err error) {
70+
func (r *ToMarkdownService) Transform(ctx context.Context, file io.Reader, params ToMarkdownTransformParams, opts ...option.RequestOption) (res *pagination.SinglePage[ToMarkdownTransformResponse], err error) {
7171
var raw *http.Response
7272
opts = slices.Concat(r.Options, opts)
7373
opts = append([]option.RequestOption{option.WithRequestBody("application/octet-stream", file), option.WithResponseInto(&raw)}, opts...)
74-
if body.AccountID.Value == "" {
74+
if params.AccountID.Value == "" {
7575
err = errors.New("missing required account_id parameter")
7676
return
7777
}
78-
path := fmt.Sprintf("accounts/%s/ai/tomarkdown", body.AccountID)
78+
path := fmt.Sprintf("accounts/%s/ai/tomarkdown", params.AccountID)
7979
cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodPost, path, nil, &res, opts...)
8080
if err != nil {
8181
return nil, err
@@ -89,8 +89,8 @@ func (r *ToMarkdownService) Transform(ctx context.Context, file io.Reader, body
8989
}
9090

9191
// Convert Files into Markdown
92-
func (r *ToMarkdownService) TransformAutoPaging(ctx context.Context, file io.Reader, body ToMarkdownTransformParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[ToMarkdownTransformResponse] {
93-
return pagination.NewSinglePageAutoPager(r.Transform(ctx, file, body, opts...))
92+
func (r *ToMarkdownService) TransformAutoPaging(ctx context.Context, file io.Reader, params ToMarkdownTransformParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[ToMarkdownTransformResponse] {
93+
return pagination.NewSinglePageAutoPager(r.Transform(ctx, file, params, opts...))
9494
}
9595

9696
type ToMarkdownSupportedResponse struct {

ai_gateway/aigateway.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ type AIGatewayNewResponse struct {
180180
Otel []AIGatewayNewResponseOtel `json:"otel,nullable"`
181181
StoreID string `json:"store_id,nullable"`
182182
Stripe AIGatewayNewResponseStripe `json:"stripe,nullable"`
183+
Zdr bool `json:"zdr"`
183184
JSON aiGatewayNewResponseJSON `json:"-"`
184185
}
185186

@@ -207,6 +208,7 @@ type aiGatewayNewResponseJSON struct {
207208
Otel apijson.Field
208209
StoreID apijson.Field
209210
Stripe apijson.Field
211+
Zdr apijson.Field
210212
raw string
211213
ExtraFields map[string]apijson.Field
212214
}
@@ -463,6 +465,7 @@ type AIGatewayUpdateResponse struct {
463465
Otel []AIGatewayUpdateResponseOtel `json:"otel,nullable"`
464466
StoreID string `json:"store_id,nullable"`
465467
Stripe AIGatewayUpdateResponseStripe `json:"stripe,nullable"`
468+
Zdr bool `json:"zdr"`
466469
JSON aiGatewayUpdateResponseJSON `json:"-"`
467470
}
468471

@@ -490,6 +493,7 @@ type aiGatewayUpdateResponseJSON struct {
490493
Otel apijson.Field
491494
StoreID apijson.Field
492495
Stripe apijson.Field
496+
Zdr apijson.Field
493497
raw string
494498
ExtraFields map[string]apijson.Field
495499
}
@@ -747,6 +751,7 @@ type AIGatewayListResponse struct {
747751
Otel []AIGatewayListResponseOtel `json:"otel,nullable"`
748752
StoreID string `json:"store_id,nullable"`
749753
Stripe AIGatewayListResponseStripe `json:"stripe,nullable"`
754+
Zdr bool `json:"zdr"`
750755
JSON aiGatewayListResponseJSON `json:"-"`
751756
}
752757

@@ -774,6 +779,7 @@ type aiGatewayListResponseJSON struct {
774779
Otel apijson.Field
775780
StoreID apijson.Field
776781
Stripe apijson.Field
782+
Zdr apijson.Field
777783
raw string
778784
ExtraFields map[string]apijson.Field
779785
}
@@ -1031,6 +1037,7 @@ type AIGatewayDeleteResponse struct {
10311037
Otel []AIGatewayDeleteResponseOtel `json:"otel,nullable"`
10321038
StoreID string `json:"store_id,nullable"`
10331039
Stripe AIGatewayDeleteResponseStripe `json:"stripe,nullable"`
1040+
Zdr bool `json:"zdr"`
10341041
JSON aiGatewayDeleteResponseJSON `json:"-"`
10351042
}
10361043

@@ -1058,6 +1065,7 @@ type aiGatewayDeleteResponseJSON struct {
10581065
Otel apijson.Field
10591066
StoreID apijson.Field
10601067
Stripe apijson.Field
1068+
Zdr apijson.Field
10611069
raw string
10621070
ExtraFields map[string]apijson.Field
10631071
}
@@ -1315,6 +1323,7 @@ type AIGatewayGetResponse struct {
13151323
Otel []AIGatewayGetResponseOtel `json:"otel,nullable"`
13161324
StoreID string `json:"store_id,nullable"`
13171325
Stripe AIGatewayGetResponseStripe `json:"stripe,nullable"`
1326+
Zdr bool `json:"zdr"`
13181327
JSON aiGatewayGetResponseJSON `json:"-"`
13191328
}
13201329

@@ -1342,6 +1351,7 @@ type aiGatewayGetResponseJSON struct {
13421351
Otel apijson.Field
13431352
StoreID apijson.Field
13441353
Stripe apijson.Field
1354+
Zdr apijson.Field
13451355
raw string
13461356
ExtraFields map[string]apijson.Field
13471357
}
@@ -1590,6 +1600,7 @@ type AIGatewayNewParams struct {
15901600
LogManagementStrategy param.Field[AIGatewayNewParamsLogManagementStrategy] `json:"log_management_strategy"`
15911601
Logpush param.Field[bool] `json:"logpush"`
15921602
LogpushPublicKey param.Field[string] `json:"logpush_public_key"`
1603+
Zdr param.Field[bool] `json:"zdr"`
15931604
}
15941605

15951606
func (r AIGatewayNewParams) MarshalJSON() (data []byte, err error) {
@@ -1666,6 +1677,7 @@ type AIGatewayUpdateParams struct {
16661677
Otel param.Field[[]AIGatewayUpdateParamsOtel] `json:"otel"`
16671678
StoreID param.Field[string] `json:"store_id"`
16681679
Stripe param.Field[AIGatewayUpdateParamsStripe] `json:"stripe"`
1680+
Zdr param.Field[bool] `json:"zdr"`
16691681
}
16701682

16711683
func (r AIGatewayUpdateParams) MarshalJSON() (data []byte, err error) {

ai_gateway/aigateway_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func TestAIGatewayNewWithOptionalParams(t *testing.T) {
4141
LogManagementStrategy: cloudflare.F(ai_gateway.AIGatewayNewParamsLogManagementStrategyStopInserting),
4242
Logpush: cloudflare.F(true),
4343
LogpushPublicKey: cloudflare.F("xxxxxxxxxxxxxxxx"),
44+
Zdr: cloudflare.F(true),
4445
})
4546
if err != nil {
4647
var apierr *cloudflare.Error
@@ -99,6 +100,7 @@ func TestAIGatewayUpdateWithOptionalParams(t *testing.T) {
99100
Payload: cloudflare.F("payload"),
100101
}}),
101102
}),
103+
Zdr: cloudflare.F(true),
102104
},
103105
)
104106
if err != nil {

ai_search/aisearch.go

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
package ai_search
4+
5+
import (
6+
"github.com/cloudflare/cloudflare-go/v6/option"
7+
)
8+
9+
// AISearchService contains methods and other services that help with interacting
10+
// with the cloudflare API.
11+
//
12+
// Note, unlike clients, this service does not read variables from the environment
13+
// automatically. You should not instantiate this service directly, and instead use
14+
// the [NewAISearchService] method instead.
15+
type AISearchService struct {
16+
Options []option.RequestOption
17+
Instances *InstanceService
18+
Tokens *TokenService
19+
}
20+
21+
// NewAISearchService generates a new service that applies the given options to
22+
// each request. These options are applied after the parent client's options (if
23+
// there is one), and before any request-specific options.
24+
func NewAISearchService(opts ...option.RequestOption) (r *AISearchService) {
25+
r = &AISearchService{}
26+
r.Options = opts
27+
r.Instances = NewInstanceService(opts...)
28+
r.Tokens = NewTokenService(opts...)
29+
return
30+
}

0 commit comments

Comments
 (0)