Up to [cvs.NetBSD.org] / pkgsrc / net / py-cloudflare
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-cloudflare: updated to 5.10.0 5.10.0 This release adds the K2 streaming, Monetization, Zero Trust CWS, and Billing Spend Policies APIs, plus Zero Trust Access user populations and MFA catalog resources. It also removes the Magic Cloud Networking and Tenant Custom Nameservers resources and changes several pagination and response types. Review the breaking changes before upgrading.
py-cloudflare: updated to 5.6.0
5.6.0 (2026-07-22)
Breaking Changes
* **accounts:** The `create()` and `get()` methods have been removed from `client.accounts.subscriptions`. The `SubscriptionCreateParams` type is no longer available.
* **acm:** The `CertificateAuthority` type has been removed from `cloudflare.types.acm`.
* **certificate_authorities:** The `HostnameAssociation` type has been removed from `cloudflare.types.certificate_authorities`.
* **cloudforce_one:** The `indicator_types` sub-resource has been removed from `client.cloudforce_one.threat_events`. Use the new `client.cloudforce_one.threat_events.indicators.types` resource instead.
* **hyperdrive:** The pagination type for `client.hyperdrive.configs.list()` changed from `SyncSinglePage` to `SyncV4PagePaginationArray`. Code that relied on single-page iteration semantics may need adjustment.
* **load_balancers:** All methods on `client.load_balancers` now use a polymorphic `/{account_or_zone}/{account_or_zone_id}/load_balancers` endpoint pattern instead of the previous `/zones/{zone_id}/load_balancers`. Method signatures now accept either `account_id` or `zone_id`.
* **moq:** The `rotate()` method and `TokenRotateResponse` type have been removed from `client.moq.relays.tokens`. Use the new `create()`, `list()`, and `delete()` methods instead.
* **mtls_certificates:** The `MTLSCertificate` type has been replaced with `MTLSCertificateGetResponse`, `MTLSCertificateListResponse`, and `MTLSCertificateDeleteResponse`. The return types of `list()`, `delete()`, and `get()` have changed accordingly.
* **custom_certificates:** The `Status` type has been removed from `cloudflare.types.custom_certificates`.
* **ssl:** The `Host`, `Status`, and `ValidationMethod` types have been removed from `cloudflare.types.ssl`. The `hosts` parameter on `client.ssl.certificate_packs.create()` changed from `SequenceNotStr[Host]` to `SequenceNotStr[str]`.
* **zero_trust:** The `setup_flows` sub-resource has been removed from `client.zero_trust.casb.applications`. The `get()` method endpoint changed from `/accounts/{account_id}/one/applications/{slug}` to `/accounts/{account_id}/one/applications/{application_id}`.
Features
* **analytics_query:** add analytics_query resource with `summary()`, `timeseries()`, and `top_n()` methods, plus `data_security.content_findings` and `data_security.findings` sub-resources
* **ai_audit:** add `client.ai_audit.robots` resource with `bulk_get()` and `get()` methods
* **cloudforce_one:** add extensive threat_events sub-resources: `aggregate`, `graphql`, `graph`, `queries`, `relationships`, `indicators` (with `aggregate`, `types`, `by_dataset`), `tags` (with `categories`, `indicators`), `target_industries`, `categories`, and `datasets`
* **magic_transit:** add `client.magic_transit.connectors.interrupts` resource with `create()` and `list()` methods
* **moq:** add `create()`, `list()`, and `delete()` methods to `client.moq.relays.tokens`
* **registrar_sandbox:** add registrar_sandbox resource with `check()`, `search()`, and sub-resources for `registrations`, `registration_status`, and `update_status`
* **zero_trust:** add `client.zero_trust.casb.applications.auth_methods` resource with `list()` method
* **zero_trust:** add comprehensive CASB posture management: `client.zero_trust.casb.posture` with sub-resources for `findings` (list, export, ignore, unignore, tune/reset severity), `finding_types`, `content`, `exports`, `remediations`, and `webhooks`
py-cloudflare: updated to 5.5.0 5.5.0 (2026-07-10) Breaking Changes * **ssl:** The `recommendations` sub-resource has been removed. `client.ssl.recommendations.get()` and the `RecommendationGetResponse` type are no longer available. * **email_routing:** The `list` method has been removed from `client.email_routing.rules`. Only `create`, `update`, `delete`, and `get` remain. The `RuleListParams` type has been removed. * **zero_trust:** The `UserPolicyCheckGeo` type has been removed from `cloudflare.types.zero_trust.access.applications`. The geo information is now inlined as `UserIdentityGeo` within `UserPolicyCheckListResponse`. * **zero_trust:** The pagination type for `client.zero_trust.devices.ip_profiles.list()` changed from `SyncSinglePage` to `SyncV4PagePaginationArray`. Code that relied on single-page iteration semantics may need adjustment. * **aisearch:** The `SourceParamsWebCrawlerStoreOptions` type and the `store_options` field on `SourceParamsWebCrawler` have been removed from instance create/update params and responses. The `parse_type` enum value `"feed-rss"` has been removed (only `"sitemap"` and `"crawl"` remain). The `search_query` field on `InstanceSearchResponse` and `NamespaceSearchResponse` changed from required `str` to `Optional[str]`. A new required `query_kind` field (`Literal["text", "image", "multimodal"]`) has been added to search responses. * **zero_trust:** In `Organization` and related params, `MfaSSHPivKeyRequirements` has been renamed to `MfaPivKeyRequirements`, the `mfa_ssh_piv_key_requirements` field has been renamed to `mfa_piv_key_requirements`, and the `allowed_authenticators` enum value `"ssh_piv_key"` has been changed to `"piv_key"`. Features * **email_auth:** add email_auth resource * **moq:** add moq resource * **logs:** add log_explorer sub-resource with query, datasets, and available datasets * **email_security:** add bulk message operations to investigate * **aisearch:** add multimodal support with image_url content parts and new `@cf/qwen/qwen3-vl-embedding-2b` embedding model * **zero_trust:** add Worker destination types (`WorkerDestination`, `PreviewWorkerDestination`, `AllWorkersDestination`, `AllPreviewWorkersDestination`) to Access applications and `eager_redirect_cookie_setting` field to self-hosted applications * **magic_transit:** add `primary` and `site_id` fields to connector create/edit params * **rulesets:** add `Vary` cache settings with `ActionParametersVary`, `ActionParametersVaryDefault`, and `ActionParametersVaryHeaders` types * **cloudforce_one:** `threat_events.datasets.list()` now accepts optional params * **email_security:** add `expected_disposition` param to `investigate.move.create()` and `investigate.move.bulk()` * **email_routing:** add `support_subaddress` field to `Settings` response type * **zero_trust:** add `max_ttl_secs` field to `GatewayConfigurationSettings` and new `MaxTTL` type to gateway `Location` for DNS TTL cap control * **zero_trust:** add `GlobalAcceleration` type to default and custom device policy settings * **accounts:** add `category` field to `PermissionGroupGetResponse` and `PermissionGroupListResponse` for account and user tokens
py-cloudflare: updated to 4.3.1 4.3.1 Bug Fixes * **api:** Update zone subscription paths 4.3.0 Features * **api:** Add IAM User Groups and AutoRAG * **api:** Add new bulk deletion endpoint for ZT infra targets
py-cloudflare: updated to 4.1.0 4.1.0 (2025-03-18) Features * **ai_gateway:** add urls support * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** api update * **api:** manual updates * **api:** manual updates * **api:** manual updates * **api:** manual updates * **api:** rename browsing_rendering to browser_rendering * **browser_rendering:** move methods to top level * **browsing_rendering:** add support for subresources * **cloudforce_one:** fix scans model * **dns_settings:** fix hierarchy * **dns:** split account and zone DNS settings * **internal:** group browser rendering * **magic_cloud_networking:** add endpoint mappings * **radar:** add compromised credential endpoints * **radar:** add DNS endpoint * **threat_events:** fix create endpoint * **threat_events:** shuffle endpoints from POST => PATCH * **vpc_flows:** add token support * **waiting_rooms:** add account level list API * **workers:** add in secrets endpoints * **workflows:** add `bulk` support Bug Fixes * **api:** missing union discriminator naming * **ci:** ensure pip is always available * **ci:** remove publishing patch * **internal:** remove port scans pending path fixes * **r2_custom_domain:** update path placeholders to de-duplicate internal values * **workers_for_platforms:** remove cyclic import due to model Chores * **docs:** update client docstring * **internal:** bump rye to 0.44.0 * **internal:** codegen related update * **internal:** codegen related update * **internal:** codegen related update * **internal:** codegen related update * **internal:** mark VPC and PDF as initialisms * **internal:** remove extra empty newlines * **internal:** remove unused http client options forwarding Documentation * update URLs from stainlessapi.com to stainless.com
Fix PLIST after py-setuptools update; bump depends and revision
py-*: remove unused tool dependency py-setuptools includes the py-wheel functionality nowadays
py-cloudflare: added version 2.18.1 Python wrapper for the Cloudflare v4 API.