Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
86bdf98
chore(internal): codegen related update
stainless-app[bot] Jun 12, 2026
72eb205
chore(api): update composite API spec
stainless-app[bot] Jun 12, 2026
45260b9
chore(api): update composite API spec
stainless-app[bot] Jun 12, 2026
7677b4c
feat: feat(tenants): add tenants resource SDK mapping [PT-2567]
stainless-app[bot] Jun 12, 2026
5bb529c
feat: feat(ct_alerter): add CT alerting subscription endpoint mappings
stainless-app[bot] Jun 12, 2026
14409ae
codegen metadata
stainless-app[bot] Jun 12, 2026
04f9fee
codegen metadata
stainless-app[bot] Jun 13, 2026
2fcdb13
codegen metadata
stainless-app[bot] Jun 13, 2026
16d8e61
codegen metadata
stainless-app[bot] Jun 15, 2026
eeec39a
chore(api): update composite API spec
stainless-app[bot] Jun 15, 2026
b982ff3
feat: feat(ai_gateway): add custom_providers resource
stainless-app[bot] Jun 15, 2026
0ff89f9
chore(api): update composite API spec
stainless-app[bot] Jun 15, 2026
5d8e422
feat: feat(api): map ipsec_tunnels/psk, sites/app_policies and cf1_si…
stainless-app[bot] Jun 15, 2026
3e26c73
chore(api): update composite API spec
stainless-app[bot] Jun 15, 2026
3817b57
chore(api): update composite API spec
stainless-app[bot] Jun 15, 2026
05e802d
chore(api): update composite API spec
stainless-app[bot] Jun 15, 2026
656f973
chore(api): update composite API spec
stainless-app[bot] Jun 16, 2026
f94e4de
chore(api): update composite API spec
stainless-app[bot] Jun 16, 2026
c7202c9
chore(api): update composite API spec
stainless-app[bot] Jun 16, 2026
f8e14b9
codegen metadata
stainless-app[bot] Jun 16, 2026
25b2838
codegen metadata
stainless-app[bot] Jun 16, 2026
2b0e738
chore(api): update composite API spec
stainless-app[bot] Jun 16, 2026
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
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 2329
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-884b4b7d2d826afd303115f717021363d35e76d0819f4822e9faf6c577ea66ca.yml
openapi_spec_hash: 4fc7ac1b97d37c76f38db408ab2ed0cd
config_hash: 1fe0cc702fafe448e633d379a5633326
configured_endpoints: 2404
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-874436f83bd9c383144c69da47c4b767bb9c6f4f2bb4945af58cf3b6015f0f62.yml
openapi_spec_hash: beaf9a654991bf65d642e05c03460e4c
config_hash: 2f529580a17438fc62cd0b47db41b6f1
6 changes: 6 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ from cloudflare.types import (

# [Organizations](src/cloudflare/resources/organizations/api.md)

# [Tenants](src/cloudflare/resources/tenants/api.md)

# [OriginCACertificates](src/cloudflare/resources/origin_ca_certificates/api.md)

# [IPs](src/cloudflare/resources/ips/api.md)
Expand Down Expand Up @@ -191,6 +193,8 @@ from cloudflare.types import (

# [OriginPostQuantumEncryption](src/cloudflare/resources/origin_post_quantum_encryption/api.md)

# [OriginTLSComplianceModes](src/cloudflare/resources/origin_tls_compliance_modes/api.md)

# [GoogleTagGateway](src/cloudflare/resources/google_tag_gateway/api.md)

# [Zaraz](src/cloudflare/resources/zaraz/api.md)
Expand All @@ -211,6 +215,8 @@ from cloudflare.types import (

# [AIGateway](src/cloudflare/resources/ai_gateway/api.md)

# [Flagship](src/cloudflare/resources/flagship/api.md)

# [IAM](src/cloudflare/resources/iam/api.md)

# [CloudConnector](src/cloudflare/resources/cloud_connector/api.md)
Expand Down
125 changes: 125 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@
billing,
filters,
logpush,
tenants,
workers,
accounts,
aisearch,
alerting,
firewall,
flagship,
rulesets,
snippets,
spectrum,
Expand Down Expand Up @@ -149,6 +151,7 @@
leaked_credential_checks,
magic_network_monitoring,
tenant_custom_nameservers,
origin_tls_compliance_modes,
origin_post_quantum_encryption,
)
from .resources.ai.ai import AIResource, AsyncAIResource
Expand Down Expand Up @@ -182,11 +185,13 @@
from .resources.billing.billing import BillingResource, AsyncBillingResource
from .resources.filters.filters import FiltersResource, AsyncFiltersResource
from .resources.logpush.logpush import LogpushResource, AsyncLogpushResource
from .resources.tenants.tenants import TenantsResource, AsyncTenantsResource
from .resources.workers.workers import WorkersResource, AsyncWorkersResource
from .resources.accounts.accounts import AccountsResource, AsyncAccountsResource
from .resources.aisearch.aisearch import AISearchResource, AsyncAISearchResource
from .resources.alerting.alerting import AlertingResource, AsyncAlertingResource
from .resources.firewall.firewall import FirewallResource, AsyncFirewallResource
from .resources.flagship.flagship import FlagshipResource, AsyncFlagshipResource
from .resources.rulesets.rulesets import RulesetsResource, AsyncRulesetsResource
from .resources.snippets.snippets import SnippetsResource, AsyncSnippetsResource
from .resources.spectrum.spectrum import SpectrumResource, AsyncSpectrumResource
Expand Down Expand Up @@ -307,6 +312,10 @@
TenantCustomNameserversResource,
AsyncTenantCustomNameserversResource,
)
from .resources.origin_tls_compliance_modes.origin_tls_compliance_modes import (
OriginTLSComplianceModesResource,
AsyncOriginTLSComplianceModesResource,
)
from .resources.origin_post_quantum_encryption.origin_post_quantum_encryption import (
OriginPostQuantumEncryptionResource,
AsyncOriginPostQuantumEncryptionResource,
Expand Down Expand Up @@ -422,6 +431,12 @@ def organizations(self) -> OrganizationsResource:

return OrganizationsResource(self)

@cached_property
def tenants(self) -> TenantsResource:
from .resources.tenants import TenantsResource

return TenantsResource(self)

@cached_property
def origin_ca_certificates(self) -> OriginCACertificatesResource:
from .resources.origin_ca_certificates import OriginCACertificatesResource
Expand Down Expand Up @@ -896,6 +911,12 @@ def origin_post_quantum_encryption(self) -> OriginPostQuantumEncryptionResource:

return OriginPostQuantumEncryptionResource(self)

@cached_property
def origin_tls_compliance_modes(self) -> OriginTLSComplianceModesResource:
from .resources.origin_tls_compliance_modes import OriginTLSComplianceModesResource

return OriginTLSComplianceModesResource(self)

@cached_property
def google_tag_gateway(self) -> GoogleTagGatewayResource:
from .resources.google_tag_gateway import GoogleTagGatewayResource
Expand Down Expand Up @@ -956,6 +977,12 @@ def ai_gateway(self) -> AIGatewayResource:

return AIGatewayResource(self)

@cached_property
def flagship(self) -> FlagshipResource:
from .resources.flagship import FlagshipResource

return FlagshipResource(self)

@cached_property
def iam(self) -> IAMResource:
from .resources.iam import IAMResource
Expand Down Expand Up @@ -1356,6 +1383,12 @@ def organizations(self) -> AsyncOrganizationsResource:

return AsyncOrganizationsResource(self)

@cached_property
def tenants(self) -> AsyncTenantsResource:
from .resources.tenants import AsyncTenantsResource

return AsyncTenantsResource(self)

@cached_property
def origin_ca_certificates(self) -> AsyncOriginCACertificatesResource:
from .resources.origin_ca_certificates import AsyncOriginCACertificatesResource
Expand Down Expand Up @@ -1830,6 +1863,12 @@ def origin_post_quantum_encryption(self) -> AsyncOriginPostQuantumEncryptionReso

return AsyncOriginPostQuantumEncryptionResource(self)

@cached_property
def origin_tls_compliance_modes(self) -> AsyncOriginTLSComplianceModesResource:
from .resources.origin_tls_compliance_modes import AsyncOriginTLSComplianceModesResource

return AsyncOriginTLSComplianceModesResource(self)

@cached_property
def google_tag_gateway(self) -> AsyncGoogleTagGatewayResource:
from .resources.google_tag_gateway import AsyncGoogleTagGatewayResource
Expand Down Expand Up @@ -1890,6 +1929,12 @@ def ai_gateway(self) -> AsyncAIGatewayResource:

return AsyncAIGatewayResource(self)

@cached_property
def flagship(self) -> AsyncFlagshipResource:
from .resources.flagship import AsyncFlagshipResource

return AsyncFlagshipResource(self)

@cached_property
def iam(self) -> AsyncIAMResource:
from .resources.iam import AsyncIAMResource
Expand Down Expand Up @@ -2210,6 +2255,12 @@ def organizations(self) -> organizations.OrganizationsResourceWithRawResponse:

return OrganizationsResourceWithRawResponse(self._client.organizations)

@cached_property
def tenants(self) -> tenants.TenantsResourceWithRawResponse:
from .resources.tenants import TenantsResourceWithRawResponse

return TenantsResourceWithRawResponse(self._client.tenants)

@cached_property
def origin_ca_certificates(self) -> origin_ca_certificates.OriginCACertificatesResourceWithRawResponse:
from .resources.origin_ca_certificates import OriginCACertificatesResourceWithRawResponse
Expand Down Expand Up @@ -2686,6 +2737,14 @@ def origin_post_quantum_encryption(

return OriginPostQuantumEncryptionResourceWithRawResponse(self._client.origin_post_quantum_encryption)

@cached_property
def origin_tls_compliance_modes(
self,
) -> origin_tls_compliance_modes.OriginTLSComplianceModesResourceWithRawResponse:
from .resources.origin_tls_compliance_modes import OriginTLSComplianceModesResourceWithRawResponse

return OriginTLSComplianceModesResourceWithRawResponse(self._client.origin_tls_compliance_modes)

@cached_property
def google_tag_gateway(self) -> google_tag_gateway.GoogleTagGatewayResourceWithRawResponse:
from .resources.google_tag_gateway import GoogleTagGatewayResourceWithRawResponse
Expand Down Expand Up @@ -2746,6 +2805,12 @@ def ai_gateway(self) -> ai_gateway.AIGatewayResourceWithRawResponse:

return AIGatewayResourceWithRawResponse(self._client.ai_gateway)

@cached_property
def flagship(self) -> flagship.FlagshipResourceWithRawResponse:
from .resources.flagship import FlagshipResourceWithRawResponse

return FlagshipResourceWithRawResponse(self._client.flagship)

@cached_property
def iam(self) -> iam.IAMResourceWithRawResponse:
from .resources.iam import IAMResourceWithRawResponse
Expand Down Expand Up @@ -2891,6 +2956,12 @@ def organizations(self) -> organizations.AsyncOrganizationsResourceWithRawRespon

return AsyncOrganizationsResourceWithRawResponse(self._client.organizations)

@cached_property
def tenants(self) -> tenants.AsyncTenantsResourceWithRawResponse:
from .resources.tenants import AsyncTenantsResourceWithRawResponse

return AsyncTenantsResourceWithRawResponse(self._client.tenants)

@cached_property
def origin_ca_certificates(self) -> origin_ca_certificates.AsyncOriginCACertificatesResourceWithRawResponse:
from .resources.origin_ca_certificates import AsyncOriginCACertificatesResourceWithRawResponse
Expand Down Expand Up @@ -3369,6 +3440,14 @@ def origin_post_quantum_encryption(

return AsyncOriginPostQuantumEncryptionResourceWithRawResponse(self._client.origin_post_quantum_encryption)

@cached_property
def origin_tls_compliance_modes(
self,
) -> origin_tls_compliance_modes.AsyncOriginTLSComplianceModesResourceWithRawResponse:
from .resources.origin_tls_compliance_modes import AsyncOriginTLSComplianceModesResourceWithRawResponse

return AsyncOriginTLSComplianceModesResourceWithRawResponse(self._client.origin_tls_compliance_modes)

@cached_property
def google_tag_gateway(self) -> google_tag_gateway.AsyncGoogleTagGatewayResourceWithRawResponse:
from .resources.google_tag_gateway import AsyncGoogleTagGatewayResourceWithRawResponse
Expand Down Expand Up @@ -3429,6 +3508,12 @@ def ai_gateway(self) -> ai_gateway.AsyncAIGatewayResourceWithRawResponse:

return AsyncAIGatewayResourceWithRawResponse(self._client.ai_gateway)

@cached_property
def flagship(self) -> flagship.AsyncFlagshipResourceWithRawResponse:
from .resources.flagship import AsyncFlagshipResourceWithRawResponse

return AsyncFlagshipResourceWithRawResponse(self._client.flagship)

@cached_property
def iam(self) -> iam.AsyncIAMResourceWithRawResponse:
from .resources.iam import AsyncIAMResourceWithRawResponse
Expand Down Expand Up @@ -3574,6 +3659,12 @@ def organizations(self) -> organizations.OrganizationsResourceWithStreamingRespo

return OrganizationsResourceWithStreamingResponse(self._client.organizations)

@cached_property
def tenants(self) -> tenants.TenantsResourceWithStreamingResponse:
from .resources.tenants import TenantsResourceWithStreamingResponse

return TenantsResourceWithStreamingResponse(self._client.tenants)

@cached_property
def origin_ca_certificates(self) -> origin_ca_certificates.OriginCACertificatesResourceWithStreamingResponse:
from .resources.origin_ca_certificates import OriginCACertificatesResourceWithStreamingResponse
Expand Down Expand Up @@ -4052,6 +4143,14 @@ def origin_post_quantum_encryption(

return OriginPostQuantumEncryptionResourceWithStreamingResponse(self._client.origin_post_quantum_encryption)

@cached_property
def origin_tls_compliance_modes(
self,
) -> origin_tls_compliance_modes.OriginTLSComplianceModesResourceWithStreamingResponse:
from .resources.origin_tls_compliance_modes import OriginTLSComplianceModesResourceWithStreamingResponse

return OriginTLSComplianceModesResourceWithStreamingResponse(self._client.origin_tls_compliance_modes)

@cached_property
def google_tag_gateway(self) -> google_tag_gateway.GoogleTagGatewayResourceWithStreamingResponse:
from .resources.google_tag_gateway import GoogleTagGatewayResourceWithStreamingResponse
Expand Down Expand Up @@ -4112,6 +4211,12 @@ def ai_gateway(self) -> ai_gateway.AIGatewayResourceWithStreamingResponse:

return AIGatewayResourceWithStreamingResponse(self._client.ai_gateway)

@cached_property
def flagship(self) -> flagship.FlagshipResourceWithStreamingResponse:
from .resources.flagship import FlagshipResourceWithStreamingResponse

return FlagshipResourceWithStreamingResponse(self._client.flagship)

@cached_property
def iam(self) -> iam.IAMResourceWithStreamingResponse:
from .resources.iam import IAMResourceWithStreamingResponse
Expand Down Expand Up @@ -4257,6 +4362,12 @@ def organizations(self) -> organizations.AsyncOrganizationsResourceWithStreaming

return AsyncOrganizationsResourceWithStreamingResponse(self._client.organizations)

@cached_property
def tenants(self) -> tenants.AsyncTenantsResourceWithStreamingResponse:
from .resources.tenants import AsyncTenantsResourceWithStreamingResponse

return AsyncTenantsResourceWithStreamingResponse(self._client.tenants)

@cached_property
def origin_ca_certificates(self) -> origin_ca_certificates.AsyncOriginCACertificatesResourceWithStreamingResponse:
from .resources.origin_ca_certificates import AsyncOriginCACertificatesResourceWithStreamingResponse
Expand Down Expand Up @@ -4743,6 +4854,14 @@ def origin_post_quantum_encryption(
self._client.origin_post_quantum_encryption
)

@cached_property
def origin_tls_compliance_modes(
self,
) -> origin_tls_compliance_modes.AsyncOriginTLSComplianceModesResourceWithStreamingResponse:
from .resources.origin_tls_compliance_modes import AsyncOriginTLSComplianceModesResourceWithStreamingResponse

return AsyncOriginTLSComplianceModesResourceWithStreamingResponse(self._client.origin_tls_compliance_modes)

@cached_property
def google_tag_gateway(self) -> google_tag_gateway.AsyncGoogleTagGatewayResourceWithStreamingResponse:
from .resources.google_tag_gateway import AsyncGoogleTagGatewayResourceWithStreamingResponse
Expand Down Expand Up @@ -4803,6 +4922,12 @@ def ai_gateway(self) -> ai_gateway.AsyncAIGatewayResourceWithStreamingResponse:

return AsyncAIGatewayResourceWithStreamingResponse(self._client.ai_gateway)

@cached_property
def flagship(self) -> flagship.AsyncFlagshipResourceWithStreamingResponse:
from .resources.flagship import AsyncFlagshipResourceWithStreamingResponse

return AsyncFlagshipResourceWithStreamingResponse(self._client.flagship)

@cached_property
def iam(self) -> iam.AsyncIAMResourceWithStreamingResponse:
from .resources.iam import AsyncIAMResourceWithStreamingResponse
Expand Down
18 changes: 18 additions & 0 deletions src/cloudflare/resources/ai/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def list(
author: str | Omit = omit,
format: Literal["openrouter"] | Omit = omit,
hide_experimental: bool | Omit = omit,
include_deprecated: bool | Omit = omit,
page: int | Omit = omit,
per_page: int | Omit = omit,
search: str | Omit = omit,
Expand All @@ -85,6 +86,13 @@ def list(

hide_experimental: Filter to hide experimental models

include_deprecated: If true, include models whose planned_deprecation_date is in the past — but only
within a three-month grace window after that date. Models whose
planned_deprecation_date is more than three months in the past remain hidden
regardless of this flag. Future planned-deprecation dates are always included
regardless of this flag. Defaults to false, preserving the existing behavior of
hiding all past-dated deprecations.

search: Search

source: Filter by Source Id
Expand Down Expand Up @@ -114,6 +122,7 @@ def list(
"author": author,
"format": format,
"hide_experimental": hide_experimental,
"include_deprecated": include_deprecated,
"page": page,
"per_page": per_page,
"search": search,
Expand Down Expand Up @@ -158,6 +167,7 @@ def list(
author: str | Omit = omit,
format: Literal["openrouter"] | Omit = omit,
hide_experimental: bool | Omit = omit,
include_deprecated: bool | Omit = omit,
page: int | Omit = omit,
per_page: int | Omit = omit,
search: str | Omit = omit,
Expand All @@ -181,6 +191,13 @@ def list(

hide_experimental: Filter to hide experimental models

include_deprecated: If true, include models whose planned_deprecation_date is in the past — but only
within a three-month grace window after that date. Models whose
planned_deprecation_date is more than three months in the past remain hidden
regardless of this flag. Future planned-deprecation dates are always included
regardless of this flag. Defaults to false, preserving the existing behavior of
hiding all past-dated deprecations.

search: Search

source: Filter by Source Id
Expand Down Expand Up @@ -210,6 +227,7 @@ def list(
"author": author,
"format": format,
"hide_experimental": hide_experimental,
"include_deprecated": include_deprecated,
"page": page,
"per_page": per_page,
"search": search,
Expand Down
Loading
Loading