Skip to content

Commit 9cdf8ae

Browse files
feat(api): api update
1 parent f95e61c commit 9cdf8ae

2,048 files changed

Lines changed: 9505 additions & 497188 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.dockerignore‎

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Dependencies
2+
node_modules/
3+
**/node_modules/
4+
5+
# Build outputs
6+
dist/
7+
**/dist/
8+
9+
# Git
10+
.git/
11+
.gitignore
12+
13+
# CI/CD
14+
.github/
15+
.gitlab-ci.yml
16+
.travis.yml
17+
18+
# IDE
19+
.vscode/
20+
.idea/
21+
*.swp
22+
*.swo
23+
*~
24+
25+
# OS
26+
.DS_Store
27+
Thumbs.db
28+
29+
# Testing
30+
test/
31+
tests/
32+
__tests__/
33+
*.test.js
34+
*.spec.js
35+
coverage/
36+
.nyc_output/
37+
38+
# Logs
39+
*.log
40+
npm-debug.log*
41+
yarn-debug.log*
42+
yarn-error.log*
43+
44+
# Environment
45+
.env
46+
.env.*
47+
48+
# Temporary files
49+
*.tmp
50+
*.temp
51+
.cache/
52+
53+
# Examples and scripts
54+
examples/
55+
bin/
56+
57+
# Other packages (we only need mcp-server)
58+
packages/*/
59+
!packages/mcp-server/

‎.github/workflows/ci.yml‎

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: CI
22
on:
33
push:
4-
branches-ignore:
5-
- 'generated'
6-
- 'codegen/**'
7-
- 'integrated/**'
8-
- 'stl-preview-head/**'
9-
- 'stl-preview-base/**'
4+
branches:
5+
- '**'
6+
- '!integrated/**'
7+
- '!stl-preview-head/**'
8+
- '!stl-preview-base/**'
9+
- '!generated'
10+
- '!codegen/**'
11+
- 'codegen/stl/**'
1012
pull_request:
1113
branches-ignore:
1214
- 'stl-preview-head/**'
@@ -17,7 +19,7 @@ jobs:
1719
timeout-minutes: 10
1820
name: lint
1921
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
22+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2123
steps:
2224
- uses: actions/checkout@v6
2325

@@ -36,7 +38,7 @@ jobs:
3638
timeout-minutes: 5
3739
name: build
3840
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
39-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
41+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
4042
permissions:
4143
contents: read
4244
id-token: write
@@ -55,22 +57,28 @@ jobs:
5557
run: ./scripts/build
5658

5759
- name: Get GitHub OIDC Token
58-
if: github.repository == 'stainless-sdks/cloudflare-typescript'
60+
if: |-
61+
github.repository == 'stainless-sdks/cloudflare-typescript' &&
62+
!startsWith(github.ref, 'refs/heads/stl/')
5963
id: github-oidc
60-
uses: actions/github-script@v6
64+
uses: actions/github-script@v8
6165
with:
6266
script: core.setOutput('github_token', await core.getIDToken());
6367

6468
- name: Upload tarball
65-
if: github.repository == 'stainless-sdks/cloudflare-typescript'
69+
if: |-
70+
github.repository == 'stainless-sdks/cloudflare-typescript' &&
71+
!startsWith(github.ref, 'refs/heads/stl/')
6672
env:
6773
URL: https://pkg.stainless.com/s
6874
AUTH: ${{ steps.github-oidc.outputs.github_token }}
6975
SHA: ${{ github.sha }}
7076
run: ./scripts/utils/upload-artifact.sh
7177

7278
- name: Upload MCP Server tarball
73-
if: github.repository == 'stainless-sdks/cloudflare-typescript'
79+
if: |-
80+
github.repository == 'stainless-sdks/cloudflare-typescript' &&
81+
!startsWith(github.ref, 'refs/heads/stl/')
7482
env:
7583
URL: https://pkg.stainless.com/s?subpackage=mcp-server
7684
AUTH: ${{ steps.github-oidc.outputs.github_token }}

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.prism.log
2+
.stdy.log
23
node_modules
34
yarn-error.log
45
codegen.log

‎.stats.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 2163
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1fdcd9fd389587961f2c9ed6b84421d6a7e1ade192ed5d1bc55c0e38df703609.yml
3-
openapi_spec_hash: 7646ca86f28ccdb912eec98b51af78eb
4-
config_hash: aebbf0fc2e33e6126d43d201bfa58e25
1+
configured_endpoints: 24
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a7d63d679b368d1efc111f99dd47acae2b8b554254c75066fa201fa9cae1099d.yml
3+
openapi_spec_hash: 76a8167cd98ecf95fcba2d7adf7ad97c
4+
config_hash: 95239e8fc62638979bc21e538307bbe3

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ $ yarn link cloudflare
6060
# With pnpm
6161
$ pnpm link --global
6262
$ cd ../my-package
63-
$ pnpm link -—global cloudflare
63+
$ pnpm link --global cloudflare
6464
```
6565

6666
## Running tests
6767

6868
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
6969

7070
```sh
71-
$ npx prism mock path/to/your/openapi.yml
71+
$ ./scripts/mock
7272
```
7373

7474
```sh

0 commit comments

Comments
 (0)