Disclaimer: Please note that v5.0.0-beta.1 is in Beta and we are still testing it for stability.
Full Changelog: v4.3.1…v5.0.0-beta.1
In this release, you’ll see a large number of breaking changes. This is primarily due to a change 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. As the codegen is always evolving and improving, so are our code bases.
There may be changes that are not captured in this changelog. Feel free to open an issue to report any inaccuracies, and we will make sure it gets into the changelog before the v5.0.0 release.
Most of the breaking changes below are caused by improvements to the accuracy of the base OpenAPI schemas, which sometimes translates to breaking changes in downstream clients that depend on those schemas.
Please ensure you read through the list of changes below and the migration guide before moving to this version – this will help you understand any down or upstream issues it may cause to your environments.
Breaking Changes
The following resources have breaking changes. See the v5 Migration Guide for detailed migration instructions.
abusereportsacm.totaltlsapigateway.configurationscloudforceone.threateventsd1.databaseintel.indicatorfeedslogpush.edgeorigintlsclientauth.hostnamesqueues.consumersradar.bgprulesets.rulesschemavalidation.schemassnippetszerotrust.dlpzerotrust.networks
Features
New API Resources
abusereports– Abuse report managementabusereports.mitigations– Abuse report mitigation actionsai.tomarkdown– AI-powered markdown conversionaigateway.dynamicrouting– AI Gateway dynamic routing configurationaigateway.providerconfigs– AI Gateway provider configurationsaisearch– AI-powered search functionalityaisearch.instances– AI Search instance managementaisearch.tokens– AI Search authentication tokensalerting.silences– Alert silence managementbrandprotection.logomatches– Brand protection logo match detectionbrandprotection.logos– Brand protection logo managementbrandprotection.matches– Brand protection match resultsbrandprotection.queries– Brand protection query managementcloudforceone.binarystorage– CloudForce One binary storageconnectivity.directory– Connectivity directory servicesd1.database– D1 database managementdiagnostics.endpointhealthchecks– Endpoint health check diagnosticsfraud– Fraud detection and preventioniam.sso– IAM Single Sign-On configurationloadbalancers.monitorgroups– Load balancer monitor groupsorganizations– Organization managementorganizations.organizationprofile– Organization profile settingsorigintlsclientauth.hostnamecertificates– Origin TLS client auth hostname certificatesorigintlsclientauth.hostnames– Origin TLS client auth hostnamesorigintlsclientauth.zonecertificates– Origin TLS client auth zone certificatespipelines– Data pipeline managementpipelines.sinks– Pipeline sink configurationspipelines.streams– Pipeline stream configurationsqueues.subscriptions– Queue subscription managementr2datacatalog– R2 Data Catalog integrationr2datacatalog.credentials– R2 Data Catalog credentialsr2datacatalog.maintenanceconfigs– R2 Data Catalog maintenance configurationsr2datacatalog.namespaces– R2 Data Catalog namespacesradar.bots– Radar bot analyticsradar.ct– Radar certificate transparency dataradar.geolocations– Radar geolocation datarealtimekit.activesession– Real-time Kit active session managementrealtimekit.analytics– Real-time Kit analyticsrealtimekit.apps– Real-time Kit application managementrealtimekit.livestreams– Real-time Kit live streamingrealtimekit.meetings– Real-time Kit meeting managementrealtimekit.presets– Real-time Kit preset configurationsrealtimekit.recordings– Real-time Kit recording managementrealtimekit.sessions– Real-time Kit session managementrealtimekit.webhooks– Real-time Kit webhook configurationstokenvalidation.configuration– Token validation configurationtokenvalidation.rules– Token validation rulesworkers.beta– Workers beta features
New Endpoints (Existing Resources)
acm.totaltls
edit()update()
cloudforceone.threatevents
list()
contentscanning
create()get()update()
dns.records
scan_list()scan_review()scan_trigger()
intel.indicatorfeeds
create()delete()list()
leakedcredentialchecks.detections
get()
queues.consumers
list()
radar.ai
summary()timeseries()timeseries_groups()
radar.bgp
changes()snapshot()
workers.subdomains
delete()
zerotrust.networks
create()delete()edit()get()list()
General Fixes and Improvements
Type System & Compatibility
- Type inference improvements: Allow Pyright to properly infer TypedDict types within SequenceNotStr
- Type completeness: Add missing types to method arguments and response models
- Pydantic compatibility: Ensure compatibility with Pydantic versions prior to 2.8.0 when using additional fields
Request/Response Handling
- Multipart form data: Correctly handle sending multipart/form-data requests with JSON data
- Header handling: Do not send headers with default values set to omit
- GET request headers: Don’t send Content-Type header on GET requests
- Response body model accuracy: Broad improvements to the correctness of models
Parsing & Data Processing
- Discriminated unions: Correctly handle nested discriminated unions in response parsing
- Extra field types: Parse extra field types correctly
- Empty metadata: Ignore empty metadata fields during parsing
- Singularization rules: Update resource name singularization rules for better consistency
Source: Cloudflare




