cloudflare/cloudflare-go v6.9.0
cloudflare/cloudflare-go
Captured source
source ↗v6.9.0
Repository: cloudflare/cloudflare-go
Tag: v6.9.0
Published: 2026-04-03T18:24:28Z
Prerelease: no
Release notes:
6.9.0 (2026-04-01)
Full Changelog: v6.8.0...v6.9.0
In this release, you'll see a number of breaking changes. This is primarily due to changes in OpenAPI definitions, which our libraries are based off of, and codegen updates that we rely on to read those OpenAPI definitions and produce our SDK libraries.
Please ensure you read through the list of changes below before moving to this version - this will help you understand any down or upstream issues it may cause to your environments.
---
Breaking Changes
See the [v6.9.0 Migration Guide](./docs/migration-guides/v6.9.0-migration-guide.md) for before/after code examples and actions needed for each change.
AI Gateway - AccountID, AccountTag, and InternalID Field Removal
The AccountID, AccountTag, and InternalID fields have been removed from all AI Gateway response types:
AIGatewayNewResponseAIGatewayUpdateResponseAIGatewayListResponseAIGatewayDeleteResponseAIGatewayGetResponseDynamicRoutingNewResponseDynamicRoutingDeleteResponseDynamicRoutingNewDeploymentResponseDynamicRoutingNewVersionResponseDynamicRoutingGetResponseDynamicRoutingGetVersionResponse
AI Search - VectorizeName Field Removal
The VectorizeName field has been removed from all AI Search instance response types:
InstanceNewResponse.VectorizeNameInstanceUpdateResponse.VectorizeNameInstanceListResponse.VectorizeNameInstanceDeleteResponse.VectorizeNameInstanceReadResponse.VectorizeName
AI Search - KeywordMatchMode Enum Values Changed
The KeywordMatchMode enum values have been renamed:
KeywordMatchModeExactMatch→KeywordMatchModeAndKeywordMatchModeFuzzyMatch→KeywordMatchModeOr
Affects InstanceNewParams and InstanceUpdateParams.
Billing - New PayGo Usage Endpoint
NEW: Added billing.Usage service with PayGo endpoint:
client.Billing.Usage.Paygo()- Returns billable usage data for PayGo (self-serve) accounts
Note: The PayGo endpoint parameters (From, To) are now the primary query mechanism. The previously available LastMonthPeriodStart and LastYearPeriodStart parameters were removed in the underlying API specification.
Connectivity - TCP Service Support
The directory services now support TCP service configurations via discriminated union types:
ServiceConfigis now a discriminated union ofHttpServiceConfigandTcpServiceConfig- New
TcpServiceConfigtype withtcp_portandapp_protocolfields HttpServiceConfigandTcpServiceConfigboth extendServiceCommonbase type
Custom Hostnames - Hostname Parameter Type Change
The Hostname parameter in CustomHostnameListParams has changed from a simple string to a structured object:
- Before:
Hostname param.Field[string] - After:
Hostname param.Field[CustomHostnameListParamsHostname](object withContainfield)
AI Search - InstanceItem Service Methods Removed
The InstanceItem service methods have been removed. The service structure still exists at client.AISearch.Instances.Items but no longer provides any methods:
List()- List indexed items in an AI Search instanceListAutoPaging()- Auto-paging list methodGet()- Get a specific indexed item- All associated response types (
InstanceItemListResponse,InstanceItemGetResponse, etc.)
Workers - Filter Type Changes
The observability telemetry filters have been restructured:
- Filter types changed from
QueryFilter[]toFilterNode[](discriminated union) - Filters now support nested groups via
kind: 'group' - Affects telemetry endpoints: keys, query, and values
Workers - Domain Service Return Type Changes
The workers.Domain service methods now return specific response types instead of the generic Domain type:
Update()returns*DomainUpdateResponseinstead of*DomainList()returnspagination.SinglePage[DomainListResponse]instead ofpagination.SinglePage[Domain]Delete()now returns(*DomainDeleteResponse, error)instead of justerrorGet()returns*DomainGetResponseinstead of*Domain
Zero Trust - NetworkSubnet Response Type Consolidation
The NetworkSubnet service methods now use the shared Subnet type instead of endpoint-specific response types:
NetworkSubnetService.List()returnsSubnetinstead ofNetworkSubnetListResponseNetworkSubnetWARPService.New()returnsSubnetinstead ofNetworkSubnetWARPNewResponseNetworkSubnetWARPService.Edit()returnsSubnetinstead ofNetworkSubnetWARPEditResponseNetworkSubnetWARPService.Get()returnsSubnetinstead ofNetworkSubnetWARPGetResponseNetworkSubnetCloudflareSourceService.Update()returnsSubnetinstead ofNetworkSubnetCloudflareSourceUpdateResponse
The removed types (NetworkSubnetListResponse, NetworkSubnetWARPNewResponse, etc.) have been consolidated into the shared Subnet type.
Zero Trust - MfaBypass Field Removal
The MfaBypass field has been removed from MFA configuration types across multiple services:
Affected Param Types:
AccessApplicationNewParamsBodySelfHostedApplicationMfaConfig.MfaBypassAccessApplicationUpdateParamsBodySelfHostedApplicationMfaConfig.MfaBypassAccessApplicationPolicyNewParamsMfaConfig.MfaBypassAccessApplicationPolicyUpdateParamsMfaConfig.MfaBypassAccessApplicationPolicyTestNewParamsPoliciesObjectMfaConfig.MfaBypassAccessPolicyNewParamsMfaConfig.MfaBypassAccessPolicyUpdateParamsMfaConfig.MfaBypass
Affected Response Types:
- All corresponding MfaConfig response types
Zero Trust - MfaConfigurationAllowed Field Removal
The MfaConfigurationAllowed field has been removed from Organization types:
OrganizationNewParams.MfaConfigurationAllowedOrganizationUpdateParams.MfaConfigurationAllowedOrganizationNewResponse.MfaConfigurationAllowed
---
Features
AI Search - BoostBy Field Addition
The BoostBy field has been added to retrieval options across multiple response types:
InstanceNewResponseRetrievalOptions.BoostByInstanceUpdateResponseRetrievalOptions.BoostByInstanceListResponseRetrievalOptions.BoostByInstanceDeleteResponseRetrievalOptions.BoostBy
-...
Excerpt shown — open the source for the full document.