Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"extensions": [
"ms-python.python"
],
"settings": {
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"python.pythonPath": ".venv/bin/python",
"python.defaultInterpreterPath": ".venv/bin/python",
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "5.10.0"
".": "5.11.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 2790
configured_endpoints: 2852
144 changes: 144 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,149 @@
# Changelog

## 5.11.0 (2026-12-01)

Full Changelog: [v5.10.0...v5.11.0](https://github.com/cloudflare/cloudflare-python/compare/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](./docs/migration-guides/v5.11.0-migration-guide.md) for upgrade examples.

### Breaking Changes

* **cloudforce_one:** `client.cloudforce_one.threat_events.bulk_create_relationships()` has been removed, along with
the `ThreatEventBulkCreateRelationshipsParams` and `ThreatEventBulkCreateRelationshipsResponse` types.
`client.cloudforce_one.threat_signals.articles.list()` and `threat_signals.search.search()` now take `feed_id` as a
list of strings instead of a single string.
* **pagination:** the following `list()` methods now return `SyncV4PagePaginationArray` instead of `SyncSinglePage`:
`client.hostnames.settings.tls`, `client.keyless_certificates`, `client.mtls_certificates`,
`client.origin_tls_client_auth` (and its `hostname_certificates` and `zone_certificates` sub-resources),
`client.pages.projects.domains`, `client.queues`, and `client.zero_trust.networks.virtual_networks`.
`client.tenants.accounts.list()` now returns `SyncSinglePage[AccountListResponse]` instead of
`SyncV4PagePaginationArray[AccountListResponse]`, and its `page` and `per_page` parameters were removed.
* **zero_trust:** `client.zero_trust.devices.deployment_groups.list()` is no longer paginated and now returns
`DeploymentGroupListResponse` (a `List[DeploymentGroup]`) instead of `SyncV4PagePaginationArray[DeploymentGroup]`.
The `network` parameter was removed from `client.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 as `str`
instead of `BinaryAPIResponse`.
* **web3:** `client.web3.hostnames.ipfs_universal_paths.content_lists.entries.list()` now returns `EntryListResponse`
instead of `Optional[EntryListResponse]`.
* **turnstile:** the `region` parameter was removed from `client.turnstile.widgets.update()`; a widget's region can
only be set when it is created. The unused `direction`, `filter`, `order`, `page`, and `per_page` parameters were
removed from `client.turnstile.widgets.create()`.
* **accounts:** the `type` parameter was removed from `client.accounts.update()`.
* **alerting:** the `url` and `secret` parameters were removed from `client.alerting.destinations.webhooks.update()`.
* **calls:** the `key` field of `TURNCreateResponse` (`client.calls.turn.create()`) was renamed to `secret`.
* **dns:** `foundation_dns` was removed from `client.dns.settings.zone.edit()` and `client.dns.settings.account.edit()`
(`zone_defaults`) parameters and from their `get()` and `edit()` responses.
* **stream:** `client.stream.webhooks.update()` now takes a single `notification_url` parameter, replacing
`body_notification_url_1` and `body_notification_url_2`.
* **security_txt:** `contact` and `expires` are now required in `client.security_txt.update()` and are no longer
optional in `SecurityTXTGetResponse`.
* **ssl:** `CertificatePackCreateResponse` (`client.ssl.certificate_packs.create()`) no longer includes
`certificates`, `cloudflare_branding`, `dcv_delegation_records`, `primary_certificate`, `validation_errors`, or
`validation_records`, and the `Certificate`, `CertificateGeoRestrictions`, `DCVDelegationRecord`,
`ValidationError`, and `ValidationRecord` classes were removed from that module. Use
`client.ssl.certificate_packs.get()` for the full certificate pack.
* **custom_hostnames:** `custom_certificate` and `custom_key` were removed from the `ssl` object in custom hostname
create, edit, get, and list responses (and the certificate pack certificate update response).
* **network_interconnects:** `account` and `owner` were removed from the physical and GCP partner interconnect
bodies in `client.network_interconnects.interconnects` create, get, and list responses.
* **origin_ca_certificates:** the `limit` and `offset` parameters were removed from
`client.origin_ca_certificates.list()`. `csr`, `hostnames`, `request_type`, and `requested_validity` are now
optional on `OriginCACertificate`.
* **realtime_kit:** `client.realtime_kit.active_session.kick_participants()` now requires `participant_ids`, and the
`custom_participant_ids` parameter was removed; the kicked participant entries in its response no longer include
`created_at`, `updated_at`, `email`, `name`, or `picture`. Recording storage configuration unions (meetings and
recordings) were restructured to add a `cloudflare` storage type, so the numbered `...StorageConfigUnionMemberN`
classes now refer to different providers.
* **url_scanner:** `CD`, `CW`, `GD`, `GU`, `HT`, `LR`, `MA`, and `MM` are no longer accepted `country` values in
`client.url_scanner.scans.create()`.
* **pipelines:** `per_page` in `client.pipelines.list()` is now a number instead of a string.
* **zero_trust:** `environment` in `client.zero_trust.casb.applications.list()` is now
`Literal["fedramp", "standard"]` instead of `str`.
* **zones:** `ZoneHold.include_subdomains` (`client.zones.holds`) is now `Optional[bool]` instead of `Optional[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 the `end` field of workflow instance steps are now optional.
`Event.event_details` in `client.zero_trust.risk_scoring.get()` is now `Optional[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()` `search` filters (new `notIn` and `containsAny` operators) and
`client.workflows.versions.graph()` nodes (new `step_runner` and `step_dynamic` nodes). Code that imports the numbered
`...UnionMemberN` classes must be updated; code that passes plain dicts or matches on `type` is unaffected.

### Features

* **analytics_engine:** add top-level `client.analytics_engine` with `sql.query()`
* **workers:** add `client.workers.observability.issues` (and its `automations` sub-resource) and
`client.workers.observability.agents.traces`
* **zero_trust:** add `client.zero_trust.regions` with `update()`, `list()`, `delete()`, and `get()`
* **zero_trust:** add `client.zero_trust.organizations.trust_settings` with `update()`, `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_logging` with `update()`, `delete()`, and `get()`
* **zones:** add `client.zones.ohttp_gateway` with `create()`, `delete()`, and `get()`, and the `avif` zone setting
* **security_center:** add `client.security_center.state` with `update()` and `get()`
* **addressing:** add `client.addressing.address_maps.zones` with `update()` and `delete()`
* **alerting:** add `client.alerting.policies.test()` and `client.alerting.policies.email` with `details()` and
`unsubscribe()`
* **browser_rendering:** add `client.browser_rendering.script` with `create()` and `execute()`
* **custom_pages:** add `client.custom_pages.preview_tokens.create()`
* **ai_gateway:** add `eligibility()`, `get_eligibility()`, and `limits()` to `client.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()` and `mute_all_participants()`,
`apps.get_app_by_id()` and `update_app_by_id()`, `livestreams.get_livestream_session_details_for_meeting()` and
`get_livestream_sessions_for_session()`, `meetings.replace_participant()` and `revoke_participant_token()`, and
`webhooks.get_all_webhooks()`; recording storage now supports the `cloudflare` storage type
* **workers_for_platforms:** add `update()` and `edit()` to `client.workers_for_platforms.dispatch.namespaces`
* **workers:** add the `worker_loader` binding type
* **resource_tagging:** add `app_library_application` tagged 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()`, and `traces.get()`

**Zero Trust Regions** (`client.zero_trust.regions`)

- `update()`, `list()`, `delete()`, and `get()`

**Zero Trust Organization Trust Settings** (`client.zero_trust.organizations.trust_settings`)

- `update()`, `delete()`, `get()`, and `replace()`

**Firewall Payload Logging** (`client.firewall.payload_logging`)

- `update()`, `delete()`, and `get()`

**Zone OHTTP Gateway** (`client.zones.ohttp_gateway`)

- `create()`, `delete()`, and `get()`

### Chores

* **internal:** pin a stable Node.js runtime for pyright type checks (`pyright[nodejs]` dev dependency)

## 5.10.0 (2026-11-05)

Full Changelog: [v5.9.0...v5.10.0](https://github.com/cloudflare/cloudflare-python/compare/v5.9.0...v5.10.0)
Expand Down
14 changes: 14 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,20 @@ Methods:
- <code title="post /accounts/{account_id}/analytics/query/data-security/findings/summary">client.analytics_query.data_security.findings.<a href="./src/cloudflare/resources/analytics_query/data_security/findings.py">summary</a>(\*, account_id, \*\*<a href="src/cloudflare/types/analytics_query/data_security/finding_summary_params.py">params</a>) -> <a href="./src/cloudflare/types/analytics_query/data_security/finding_summary_response.py">FindingSummaryResponse</a></code>
- <code title="post /accounts/{account_id}/analytics/query/data-security/findings/timeseries">client.analytics_query.data_security.findings.<a href="./src/cloudflare/resources/analytics_query/data_security/findings.py">timeseries</a>(\*, account_id, \*\*<a href="src/cloudflare/types/analytics_query/data_security/finding_timeseries_params.py">params</a>) -> <a href="./src/cloudflare/types/analytics_query/data_security/finding_timeseries_response.py">FindingTimeseriesResponse</a></code>

# AnalyticsEngine

## Sql

Types:

```python
from cloudflare.types.analytics_engine import SqlQueryResponse
```

Methods:

- <code title="post /accounts/{account_id}/analytics_engine/sql">client.analytics_engine.sql.<a href="./src/cloudflare/resources/analytics_engine/sql.py">query</a>(\*, account_id, \*\*<a href="src/cloudflare/types/analytics_engine/sql_query_params.py">params</a>) -> <a href="./src/cloudflare/types/analytics_engine/sql_query_response.py">SqlQueryResponse</a></code>

# [Argo](src/cloudflare/resources/argo/api.md)

# [CertificateAuthorities](src/cloudflare/resources/certificate_authorities/api.md)
Expand Down
Loading
Loading