Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
82ca15e
chore: sync shared codegen files from staging-next
rotem-cloud Jun 3, 2026
eda74c9
chore(acm): update codegen output
rotem-cloud Jun 3, 2026
1d760ad
chore(addressing): update codegen output
rotem-cloud Jun 3, 2026
b2b40bb
chore(ai): update codegen output
rotem-cloud Jun 3, 2026
d0efa14
feat(ai_audit): add ai_audit resource
rotem-cloud Jun 3, 2026
d4fd61d
chore(aisearch): update codegen output
rotem-cloud Jun 3, 2026
1ed70ec
chore(api_gateway): update codegen output
rotem-cloud Jun 3, 2026
7e3d4f7
feat(billing): update codegen output
rotem-cloud Jun 3, 2026
7c891e8
chore(browser_rendering): update codegen output
rotem-cloud Jun 3, 2026
f5629c2
chore(certificate_authorities): update codegen output
rotem-cloud Jun 3, 2026
c014ae3
chore(client_certificates): update codegen output
rotem-cloud Jun 3, 2026
a461a15
chore(cloudforce_one): update codegen output
rotem-cloud Jun 3, 2026
820bf1f
chore(custom_certificates): update codegen output
rotem-cloud Jun 3, 2026
1a65a8d
feat(custom_csrs): add custom_csrs resource
rotem-cloud Jun 3, 2026
a7fcbad
feat(dls): add dls resource
rotem-cloud Jun 3, 2026
ee98647
chore(dns_firewall): update codegen output
rotem-cloud Jun 3, 2026
872b610
feat(email_security): update codegen output
rotem-cloud Jun 3, 2026
2775ec1
chore(email_sending): update codegen output
rotem-cloud Jun 3, 2026
a295ea7
chore(hostnames): update codegen output
rotem-cloud Jun 3, 2026
dcd6c23
chore(images): update codegen output
rotem-cloud Jun 3, 2026
9e20f98
chore(intel): update codegen output
rotem-cloud Jun 3, 2026
2e22a13
chore(keyless_certificates): update codegen output
rotem-cloud Jun 3, 2026
1c61523
chore(kv): update codegen output
rotem-cloud Jun 3, 2026
e6f19df
chore(magic_transit): update codegen output
rotem-cloud Jun 3, 2026
bbaf331
feat(organizations): update codegen output
rotem-cloud Jun 3, 2026
2db4fd8
chore(origin_ca_certificates): update codegen output
rotem-cloud Jun 3, 2026
18e69ef
chore(pages): update codegen output
rotem-cloud Jun 3, 2026
54d77a0
chore(pipelines): update codegen output
rotem-cloud Jun 3, 2026
4ecdcba
chore(radar): update codegen output
rotem-cloud Jun 3, 2026
e9b1086
feat(realtime_kit): update codegen output
rotem-cloud Jun 3, 2026
fb10919
chore(resource_sharing): update codegen output
rotem-cloud Jun 3, 2026
c1c6173
feat(secrets_store): update codegen output
rotem-cloud Jun 3, 2026
2fda51f
chore(snippets): update codegen output
rotem-cloud Jun 3, 2026
2482db5
chore(spectrum): update codegen output
rotem-cloud Jun 3, 2026
112e002
chore(ssl): update codegen output
rotem-cloud Jun 3, 2026
5925d38
feat(workers): update codegen output
rotem-cloud Jun 3, 2026
27f97c7
chore(workers_for_platforms): update codegen output
rotem-cloud Jun 3, 2026
8fdc5dd
chore(workflows): update codegen output
rotem-cloud Jun 3, 2026
fc596ad
feat(zero_trust): update codegen output
rotem-cloud Jun 3, 2026
6add91d
chore(zones): update codegen output
rotem-cloud Jun 3, 2026
923e0c4
chore: remove files deleted on staging-next
rotem-cloud Jun 3, 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
  •  
  •  
  •  
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
with:
version: '0.10.2'

Expand All @@ -48,10 +48,10 @@ jobs:
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
with:
version: '0.10.2'

Expand All @@ -66,7 +66,7 @@ jobs:
github.repository == 'stainless-sdks/cloudflare-python' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v8
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: core.setOutput('github_token', await core.getIDToken());

Expand All @@ -86,10 +86,10 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
with:
version: '0.10.2'

Expand All @@ -110,10 +110,10 @@ jobs:
if: github.repository == 'cloudflare/cloudflare-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
with:
version: '0.10.2'
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/detect-breaking-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
run: |
echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV

- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# Ensure we can check out the pull request base in the script below.
fetch-depth: ${{ env.FETCH_DEPTH }}

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
with:
version: '0.10.2'
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
with:
version: '0.9.13'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: github.repository == 'cloudflare/cloudflare-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Check release environment
run: |
Expand Down
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 2277
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
openapi_spec_hash: c0d553c22ef1e807dd815f71023050f4
config_hash: 245f966442f3af14c23b79cbfdf06161
configured_endpoints: 2304
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-b841673c088e755bc04d2a0852e97ef3bb7d3c60d13bf9c0ac6f631d38fa5e5b.yml
openapi_spec_hash: d9813b2d4243b7d9fa43c5c9e8bc996f
config_hash: bbf9427136a35ea3704b605309480336
6 changes: 6 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ from cloudflare.types import (

# [CustomCertificates](src/cloudflare/resources/custom_certificates/api.md)

# [CustomCsrs](src/cloudflare/resources/custom_csrs/api.md)

# [CustomHostnames](src/cloudflare/resources/custom_hostnames/api.md)

# [CustomNameservers](src/cloudflare/resources/custom_nameservers/api.md)
Expand Down Expand Up @@ -117,6 +119,8 @@ from cloudflare.types import (

# [Addressing](src/cloudflare/resources/addressing/api.md)

# [DLS](src/cloudflare/resources/dls/api.md)

# [AuditLogs](src/cloudflare/resources/audit_logs/api.md)

# [Billing](src/cloudflare/resources/billing/api.md)
Expand Down Expand Up @@ -229,6 +233,8 @@ from cloudflare.types import (

# [AI](src/cloudflare/resources/ai/api.md)

# [AIAudit](src/cloudflare/resources/ai_audit/api.md)

# [AISearch](src/cloudflare/resources/aisearch/api.md)

# [SecurityCenter](src/cloudflare/resources/security_center/api.md)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ show_error_codes = true
#
# We also exclude our `tests` as mypy doesn't always infer
# types correctly and Pyright will still catch any type errors.
exclude = ['src/cloudflare/_files.py', '_dev/.*.py', 'tests/.*', 'src/cloudflare/resources/zero_trust/identity_providers\.py', 'src/cloudflare/resources/zero_trust/access/applications/applications\.py', 'src/cloudflare/resources/workers/ai\.py', 'src/cloudflare/resources/magic_transit/apps\.py']
exclude = ["src/cloudflare/_files.py", "_dev/.*.py", "tests/.*", "src/cloudflare/resources/zero_trust/identity_providers\\.py", "src/cloudflare/resources/zero_trust/access/applications/applications\\.py", "src/cloudflare/resources/workers/ai\\.py", "src/cloudflare/resources/magic_transit/apps\\.py"]

strict_equality = true
implicit_reexport = true
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

cd "$(dirname "$0")/.."

if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "${SKIP_BREW:-}" != "1" ] && [ -t 0 ]; then
brew bundle check >/dev/null 2>&1 || {
echo -n "==> Install Homebrew dependencies? (y/N): "
read -r response
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def _build_request(
f"Expected query input to be a dictionary for multipart requests but got {type(json_data)} instead."
)

if options.multipart_syntax == 'json':
if options.multipart_syntax == "json":
json_data = cast("Mapping[str, object]", json_data)
if is_mapping_t(files):
files = {
Expand Down
Loading
Loading