Repository navigation
5.11.0 (2026-12-01)
Full Changelog: v5.10.0...v5.11.0
This release adds the Analytics Engine SQL, Workers Observability issues and agent
traces, Zero Trust regions and trust settings, Firewall payload logging, and Zone OHTTP
gateway APIs, plus new methods across AI Gateway, Realtime Kit, Workers for Platforms,
and Zero Trust devices. It also changes pagination for several list() methods, makes
Worker script content.get() return the script as a string, and removes or renames a
number of request and response fields. Review the breaking changes before upgrading.
See the v5.11.0 Migration Guide for upgrade examples.
Breaking Changes
- cloudforce_one:
client.cloudforce_one.threat_events.bulk_create_relationships()has been removed, along with
theThreatEventBulkCreateRelationshipsParamsandThreatEventBulkCreateRelationshipsResponsetypes.
client.cloudforce_one.threat_signals.articles.list()andthreat_signals.search.search()now takefeed_idas a
list of strings instead of a single string. - pagination: the following
list()methods now returnSyncV4PagePaginationArrayinstead ofSyncSinglePage:
client.hostnames.settings.tls,client.keyless_certificates,client.mtls_certificates,
client.origin_tls_client_auth(and itshostname_certificatesandzone_certificatessub-resources),
client.pages.projects.domains,client.queues, andclient.zero_trust.networks.virtual_networks.
client.tenants.accounts.list()now returnsSyncSinglePage[AccountListResponse]instead of
SyncV4PagePaginationArray[AccountListResponse], and itspageandper_pageparameters were removed. - zero_trust:
client.zero_trust.devices.deployment_groups.list()is no longer paginated and now returns
DeploymentGroupListResponse(aList[DeploymentGroup]) instead ofSyncV4PagePaginationArray[DeploymentGroup].
Thenetworkparameter was removed fromclient.zero_trust.networks.subnets.warp.edit(). - workers:
client.workers.scripts.content.get()and
client.workers_for_platforms.dispatch.namespaces.scripts.content.get()now return the script source asstr
instead ofBinaryAPIResponse. - web3:
client.web3.hostnames.ipfs_universal_paths.content_lists.entries.list()now returnsEntryListResponse
instead ofOptional[EntryListResponse]. - turnstile: the
regionparameter was removed fromclient.turnstile.widgets.update(); a widget's region can
only be set when it is created. The unuseddirection,filter,order,page, andper_pageparameters were
removed fromclient.turnstile.widgets.create(). - accounts: the
typeparameter was removed fromclient.accounts.update(). - alerting: the
urlandsecretparameters were removed fromclient.alerting.destinations.webhooks.update(). - calls: the
keyfield ofTURNCreateResponse(client.calls.turn.create()) was renamed tosecret. - dns:
foundation_dnswas removed fromclient.dns.settings.zone.edit()andclient.dns.settings.account.edit()
(zone_defaults) parameters and from theirget()andedit()responses. - stream:
client.stream.webhooks.update()now takes a singlenotification_urlparameter, replacing
body_notification_url_1andbody_notification_url_2. - security_txt:
contactandexpiresare now required inclient.security_txt.update()and are no longer
optional inSecurityTXTGetResponse. - ssl:
CertificatePackCreateResponse(client.ssl.certificate_packs.create()) no longer includes
certificates,cloudflare_branding,dcv_delegation_records,primary_certificate,validation_errors, or
validation_records, and theCertificate,CertificateGeoRestrictions,DCVDelegationRecord,
ValidationError, andValidationRecordclasses were removed from that module. Use
client.ssl.certificate_packs.get()for the full certificate pack. - custom_hostnames:
custom_certificateandcustom_keywere removed from thesslobject in custom hostname
create, edit, get, and list responses (and the certificate pack certificate update response). - network_interconnects:
accountandownerwere removed from the physical and GCP partner interconnect
bodies inclient.network_interconnects.interconnectscreate, get, and list responses. - origin_ca_certificates: the
limitandoffsetparameters were removed from
client.origin_ca_certificates.list().csr,hostnames,request_type, andrequested_validityare now
optional onOriginCACertificate. - realtime_kit:
client.realtime_kit.active_session.kick_participants()now requiresparticipant_ids, and the
custom_participant_idsparameter was removed; the kicked participant entries in its response no longer include
created_at,updated_at,email,name, orpicture. Recording storage configuration unions (meetings and
recordings) were restructured to add acloudflarestorage type, so the numbered...StorageConfigUnionMemberN
classes now refer to different providers. - url_scanner:
CD,CW,GD,GU,HT,LR,MA, andMMare no longer acceptedcountryvalues in
client.url_scanner.scans.create(). - pipelines:
per_pageinclient.pipelines.list()is now a number instead of a string. - zero_trust:
environmentinclient.zero_trust.casb.applications.list()is now
Literal["fedramp", "standard"]instead ofstr. - zones:
ZoneHold.include_subdomains(client.zones.holds) is nowOptional[bool]instead ofOptional[str]. - response models:
CustomTrustStore.updated_at(client.acm.custom_trust_store),
Config.hide_original_ip(client.google_tag_gateway.config),ASN.confidence_level
(client.radar.entities.asns.get()), and theendfield of workflow instance steps are now optional.
Event.event_detailsinclient.zero_trust.risk_scoring.get()is nowOptional[Dict[str, object]]. - union types: union members were renumbered where new variants were added in the middle of a union:
client.cloudforce_one.threat_events.list()searchfilters (newnotInandcontainsAnyoperators) and
client.workflows.versions.graph()nodes (newstep_runnerandstep_dynamicnodes). Code that imports the numbered
...UnionMemberNclasses must be updated; code that passes plain dicts or matches ontypeis unaffected.
Features
- analytics_engine: add top-level
client.analytics_enginewithsql.query() - workers: add
client.workers.observability.issues(and itsautomationssub-resource) and
client.workers.observability.agents.traces - zero_trust: add
client.zero_trust.regionswithupdate(),list(),delete(), andget() - zero_trust: add
client.zero_trust.organizations.trust_settingswithupdate(),delete(),get(), and
replace() - zero_trust: add
client.zero_trust.devices.override_codes.create()and
client.zero_trust.tunnels.cloudflared.configurations.delete() - firewall: add
client.firewall.payload_loggingwithupdate(),delete(), andget() - zones: add
client.zones.ohttp_gatewaywithcreate(),delete(), andget(), and theavifzone setting - security_center: add
client.security_center.statewithupdate()andget() - addressing: add
client.addressing.address_maps.zoneswithupdate()anddelete() - alerting: add
client.alerting.policies.test()andclient.alerting.policies.emailwithdetails()and
unsubscribe() - browser_rendering: add
client.browser_rendering.scriptwithcreate()andexecute() - custom_pages: add
client.custom_pages.preview_tokens.create() - ai_gateway: add
eligibility(),get_eligibility(), andlimits()toclient.ai_gateway.billing.topup - containers: add
client.containers.usage() - email_security: add
client.email_security.submissions.create() - network_interconnects: add
client.network_interconnects.interconnects.loa_default_name() - realtime_kit: add
active_session.mute_participants()andmute_all_participants(),
apps.get_app_by_id()andupdate_app_by_id(),livestreams.get_livestream_session_details_for_meeting()and
get_livestream_sessions_for_session(),meetings.replace_participant()andrevoke_participant_token(), and
webhooks.get_all_webhooks(); recording storage now supports thecloudflarestorage type - workers_for_platforms: add
update()andedit()toclient.workers_for_platforms.dispatch.namespaces - workers: add the
worker_loaderbinding type - resource_tagging: add
app_library_applicationtagged resources
New Resources
Analytics Engine (client.analytics_engine)
sql.query()
Workers Observability Issues (client.workers.observability.issues)
update(),list(),add(),get(),group(),notify(),occurrences(),remove(),summary(), and
ungroup()automations.create(),automations.update(),automations.list(),automations.delete(), and
automations.get()
Workers Observability Agents (client.workers.observability.agents)
traces.list(),traces.events(), andtraces.get()
Zero Trust Regions (client.zero_trust.regions)
update(),list(),delete(), andget()
Zero Trust Organization Trust Settings (client.zero_trust.organizations.trust_settings)
update(),delete(),get(), andreplace()
Firewall Payload Logging (client.firewall.payload_logging)
update(),delete(), andget()
Zone OHTTP Gateway (client.zones.ohttp_gateway)
create(),delete(), andget()
Chores
- internal: pin a stable Node.js runtime for pyright type checks (
pyright[nodejs]dev dependency)