Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
bb7b7b8
chore: sync shared codegen files from staging-next
musa-cf Apr 17, 2026
61ae69f
feat(abuse_reports): update generated types and methods
musa-cf Apr 17, 2026
2f2af75
feat(accounts): update generated types and methods
musa-cf Apr 17, 2026
d8104ee
feat(acm): update generated types and methods
musa-cf Apr 17, 2026
c757ba5
feat(addressing): update generated types and methods
musa-cf Apr 17, 2026
c8d5a84
feat(ai_gateway): update generated types and methods
musa-cf Apr 17, 2026
b7ff8f4
feat(aisearch): update generated types and methods
musa-cf Apr 17, 2026
5e6647d
feat(alerting): update generated types and methods
musa-cf Apr 17, 2026
352a544
feat(api_gateway): update generated types and methods
musa-cf Apr 17, 2026
069e3d1
feat(argo): update generated types and methods
musa-cf Apr 17, 2026
a33015c
feat(billing): update generated types and methods
musa-cf Apr 17, 2026
87570c2
feat(botnet_feed): update generated types and methods
musa-cf Apr 17, 2026
deb9bfc
feat(brand_protection): update generated types and methods
musa-cf Apr 17, 2026
03c87c3
feat(browser_rendering): update generated types and methods
musa-cf Apr 17, 2026
0aebb39
feat(cache): update generated types and methods
musa-cf Apr 17, 2026
bdda465
feat(calls): update generated types and methods
musa-cf Apr 17, 2026
6c547f2
feat(certificate_authorities): update generated types and methods
musa-cf Apr 17, 2026
d8fc035
feat(cloud_connector): update generated types and methods
musa-cf Apr 17, 2026
191bf4b
feat(cloudforce_one): update generated types and methods
musa-cf Apr 17, 2026
ca1d6d2
feat(connectivity): update generated types and methods
musa-cf Apr 17, 2026
71987d0
feat(content_scanning): update generated types and methods
musa-cf Apr 17, 2026
9e10c25
feat(custom_certificates): update generated types and methods
musa-cf Apr 17, 2026
5097baf
feat(custom_hostnames): update generated types and methods
musa-cf Apr 17, 2026
d7801b2
feat(d1): update generated types and methods
musa-cf Apr 17, 2026
dd9dc45
feat(diagnostics): update generated types and methods
musa-cf Apr 17, 2026
a11dee2
feat(dns): update generated types and methods
musa-cf Apr 17, 2026
be295a7
feat(dns_firewall): update generated types and methods
musa-cf Apr 17, 2026
5ed7ab2
feat(durable_objects): update generated types and methods
musa-cf Apr 17, 2026
316a3b0
feat(email_routing): update generated types and methods
musa-cf Apr 17, 2026
9e189e5
feat(email_security): update generated types and methods
musa-cf Apr 17, 2026
cd9cdde
feat(email_sending): update generated types and methods
musa-cf Apr 17, 2026
937aa80
feat(firewall): update generated types and methods
musa-cf Apr 17, 2026
86fe312
feat(google_tag_gateway): update generated types and methods
musa-cf Apr 17, 2026
33a9be1
feat(healthchecks): update generated types and methods
musa-cf Apr 17, 2026
7acc871
feat(hostnames): update generated types and methods
musa-cf Apr 17, 2026
63d8085
feat(hyperdrive): update generated types and methods
musa-cf Apr 17, 2026
28f60ab
feat(iam): update generated types and methods
musa-cf Apr 17, 2026
95e3af2
feat(images): update generated types and methods
musa-cf Apr 17, 2026
687bf99
feat(intel): update generated types and methods
musa-cf Apr 17, 2026
fccefbd
feat(kv): update generated types and methods
musa-cf Apr 17, 2026
ffdcb83
feat(leaked_credential_checks): update generated types and methods
musa-cf Apr 17, 2026
a77c864
feat(load_balancers): update generated types and methods
musa-cf Apr 17, 2026
b006349
feat(logpush): update generated types and methods
musa-cf Apr 17, 2026
d670d48
feat(logs): update generated types and methods
musa-cf Apr 17, 2026
43cfdad
feat(magic_cloud_networking): update generated types and methods
musa-cf Apr 17, 2026
868860b
feat(magic_network_monitoring): update generated types and methods
musa-cf Apr 17, 2026
9ed1208
feat(magic_transit): update generated types and methods
musa-cf Apr 17, 2026
24018ec
feat(mtls_certificates): update generated types and methods
musa-cf Apr 17, 2026
41f7ad4
feat(network_interconnects): update generated types and methods
musa-cf Apr 17, 2026
b378c7b
feat(organizations): update generated types and methods
musa-cf Apr 17, 2026
642de28
feat(origin_tls_client_auth): update generated types and methods
musa-cf Apr 17, 2026
b2238d5
feat(page_shield): update generated types and methods
musa-cf Apr 17, 2026
b18193e
feat(pages): update generated types and methods
musa-cf Apr 17, 2026
e3eb9a6
feat(pipelines): update generated types and methods
musa-cf Apr 17, 2026
a247d9b
feat(queues): update generated types and methods
musa-cf Apr 17, 2026
56957ac
feat(r2): update generated types and methods
musa-cf Apr 17, 2026
7b8e076
feat(r2_data_catalog): update generated types and methods
musa-cf Apr 17, 2026
4cfa1ce
feat(realtime_kit): update generated types and methods
musa-cf Apr 17, 2026
31e2a3e
feat(request_tracers): update generated types and methods
musa-cf Apr 17, 2026
457890b
feat(resource_sharing): update generated types and methods
musa-cf Apr 17, 2026
48e2e90
feat(resource_tagging): update generated types and methods
musa-cf Apr 17, 2026
235e7dc
feat(rules): update generated types and methods
musa-cf Apr 17, 2026
b96c59e
feat(rum): update generated types and methods
musa-cf Apr 17, 2026
8782ae0
feat(schema_validation): update generated types and methods
musa-cf Apr 17, 2026
cb21d25
feat(secrets_store): update generated types and methods
musa-cf Apr 17, 2026
3ce6375
feat(snippets): update generated types and methods
musa-cf Apr 17, 2026
7b5c34d
feat(spectrum): update generated types and methods
musa-cf Apr 17, 2026
139a796
feat(speed): update generated types and methods
musa-cf Apr 17, 2026
0728e37
feat(ssl): update generated types and methods
musa-cf Apr 17, 2026
b15e58c
feat(token_validation): update generated types and methods
musa-cf Apr 17, 2026
03fe8d7
feat(turnstile): update generated types and methods
musa-cf Apr 17, 2026
a5fd174
feat(url_scanner): update generated types and methods
musa-cf Apr 17, 2026
0f28133
feat(user): update generated types and methods
musa-cf Apr 17, 2026
0bc5c7f
feat(vectorize): update generated types and methods
musa-cf Apr 17, 2026
0f7ca7d
feat(vulnerability_scanner): update generated types and methods
musa-cf Apr 17, 2026
f6b3214
feat(waiting_rooms): update generated types and methods
musa-cf Apr 17, 2026
3f68dfa
feat(web3): update generated types and methods
musa-cf Apr 17, 2026
ffafd5d
feat(workers_for_platforms): update generated types and methods
musa-cf Apr 17, 2026
354ea78
feat(workflows): update generated types and methods
musa-cf Apr 17, 2026
a5950ae
feat(zaraz): update generated types and methods
musa-cf Apr 17, 2026
7776375
feat(zero_trust): update generated types and methods
musa-cf Apr 17, 2026
105f469
feat(zones): update generated types and methods
musa-cf Apr 17, 2026
5a22559
feat(ai): update generated types and methods
musa-cf Apr 17, 2026
9f00441
feat(radar): update generated types and methods
musa-cf Apr 17, 2026
fc9fb2f
feat(stream): update generated types and methods
musa-cf Apr 17, 2026
10c791e
feat(custom_pages): update generated types and methods
musa-cf Apr 17, 2026
ad8ffc4
feat(registrar): update generated types and methods
musa-cf Apr 17, 2026
441d30b
feat(workers): update generated types and methods
musa-cf Apr 17, 2026
3b7936f
feat(audit_logs): add audit_logs resource
musa-cf Apr 17, 2026
492dc26
chore: remove example for route that no longer exists
musa-cf Apr 17, 2026
9e30fdc
chore: exclude workers, registrar, custom_pages (pre-existing test fa…
musa-cf Apr 17, 2026
6b7efbc
fix(workers): make RunQueryParametersNeedleValue a BaseModel with arb…
musa-cf Apr 17, 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
  •  
  •  
  •  
31 changes: 18 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ name: CI

on:
push:
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
branches:
- '**'
- '!integrated/**'
- '!stl-preview-head/**'
- '!stl-preview-base/**'
- '!generated'
- '!codegen/**'
- 'codegen/stl/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
Expand All @@ -22,7 +24,7 @@ jobs:
timeout-minutes: 10
name: lint
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
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

Expand All @@ -41,7 +43,7 @@ jobs:
run: ./scripts/lint

build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
timeout-minutes: 10
name: build
permissions:
Expand All @@ -66,14 +68,18 @@ jobs:
run: rye build

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/cloudflare-python'
if: |-
github.repository == 'stainless-sdks/cloudflare-python' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v6
uses: actions/github-script@v8
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: github.repository == 'stainless-sdks/cloudflare-python'
if: |-
github.repository == 'stainless-sdks/cloudflare-python' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
Expand Down Expand Up @@ -106,7 +112,7 @@ jobs:
timeout-minutes: 10
name: examples
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.repository == 'cloudflare/cloudflare-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
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
Expand All @@ -128,5 +134,4 @@ jobs:
CLOUDFLARE_ZONE_ID: 0da42c8d2132a9ddaf714f9e7c920711
CLOUDFLARE_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }}
run: |
rye run python ./examples/ai/demo.py
rye run python ./examples/dns/record.py
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.prism.log
.stdy.log
_dev

__pycache__
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: 2126
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c51406afe7e9e2e80becb9d86c4d0b67cfe23a0d04fbfba973c2133da11be47f.yml
openapi_spec_hash: ebe782c4592c06e7e22eb0a725cc326e
config_hash: fab306f9c013d1ed01ed9c35c79f428b
configured_endpoints: 2184
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3d7d43f051a510c54ae71adb4b85cbb422565a40942cde4de0c3f8eb6ba8023b.yml
openapi_spec_hash: e85824f16c3ba923a34e514c06dac7cd
config_hash: a84b6a70b6374c30a50b477fe248eb3a
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ $ pip install ./path-to-wheel-file.whl
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```sh
# you will need npm installed
$ npx prism mock path/to/your/openapi.yml
$ ./scripts/mock
```

```sh
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ It is generated with [Stainless](https://www.stainless.com/).

Use the Cloudflare MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.

[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=cloudflare-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImNsb3VkZmxhcmUtbWNwIl19)
[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cloudflare-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22cloudflare-mcp%22%5D%7D)
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=cloudflare-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImNsb3VkZmxhcmUtbWNwIl0sImVudiI6eyJDTE9VREZMQVJFX0FQSV9UT0tFTiI6IlNuM2xaSlRCWDZra2c3T2RjQlVBeE9POTYzR0VJeUdRcW5GVE9GWVkiLCJDTE9VREZMQVJFX0FQSV9LRVkiOiIxNDRjOW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wIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cloudflare-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22cloudflare-mcp%22%5D%2C%22env%22%3A%7B%22CLOUDFLARE_API_TOKEN%22%3A%22Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY%22%2C%22CLOUDFLARE_API_KEY%22%3A%22144c9defac04969c7bfad8efaa8ea194%22%2C%22CLOUDFLARE_EMAIL%22%3A%22user%40example.com%22%2C%22CLOUDFLARE_API_USER_SERVICE_KEY%22%3A%22v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719%22%2C%22CLOUDFLARE_ACCOUNT_ID%22%3A%22f037e56e89293a057740de681ac9accp%22%2C%22CLOUDFLARE_ZONE_ID%22%3A%22f037e56e89293a057740de681ac9accp%22%7D%7D)

> Note: You may need to set environment variables in your MCP client.

Expand Down
Loading
Loading