Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
894f36b
feat(api): parent build id
stainless-app[bot] Apr 21, 2025
df1c791
feat(api): use correct hashes
stainless-app[bot] Apr 21, 2025
54866aa
feat(api): manual updates
stainless-app[bot] Apr 22, 2025
f7b9d5d
chore(perf): faster base64 decoding
stainless-app[bot] Apr 23, 2025
7d94fbd
chore(ci): add timeout thresholds for CI jobs
stainless-app[bot] Apr 23, 2025
79c9751
chore(internal): codegen related update
stainless-app[bot] Apr 24, 2025
5cd101b
chore(ci): only use depot for staging repos
stainless-app[bot] Apr 24, 2025
021eac6
feat(api): configs
stainless-app[bot] Apr 24, 2025
056d6bf
feat(api): manual updates
stainless-app[bot] Apr 28, 2025
642780a
feat(api): rename api key
stainless-app[bot] Apr 28, 2025
c033a80
chore(internal): refactor utils
stainless-app[bot] Apr 29, 2025
41114a1
feat(api): manual updates
stainless-app[bot] Apr 30, 2025
118d1d1
feat(api): manual updates
stainless-app[bot] Apr 30, 2025
412d6bc
docs(readme): fix typo
stainless-app[bot] Apr 30, 2025
b7f0264
chore: bump go sdk version
stainless-app[bot] Apr 30, 2025
2c590eb
fix: update request schema for Postman webhook
stainless-app[bot] May 1, 2025
d9bd40e
chore(internal): codegen related update
stainless-app[bot] May 2, 2025
b41cddd
chore(internal): share typescript helpers
stainless-app[bot] May 2, 2025
77ebd7c
feat(api): enable macos publishing
stainless-app[bot] May 2, 2025
e7ec49d
feat(client): add withOptions helper
stainless-app[bot] May 7, 2025
8a3c07b
chore(client): drop support for EOL node versions
stainless-app[bot] May 7, 2025
4d180e0
fix(client): always overwrite when merging headers
stainless-app[bot] May 10, 2025
c089302
chore(package): remove engines
stainless-app[bot] May 13, 2025
2e583d1
feat(api): add build compare to v0
stainless-app[bot] May 13, 2025
0d3f5c2
codegen metadata
stainless-app[bot] May 13, 2025
0e3752e
release: 0.1.0-alpha.2
stainless-app[bot] May 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"postCreateCommand": "yarn install",
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode"
]
"extensions": ["esbenp.prettier-vscode"]
}
}
}
27 changes: 15 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
- next
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ubuntu-latest
runs-on: ${{ github.repository == 'stainless-sdks/stainless-v0-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Bootstrap
run: ./scripts/bootstrap
Expand All @@ -27,8 +28,9 @@ jobs:
run: ./scripts/lint

build:
timeout-minutes: 5
name: build
runs-on: ubuntu-latest
runs-on: ${{ github.repository == 'stainless-sdks/stainless-v0-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
permissions:
contents: read
id-token: write
Expand All @@ -38,7 +40,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Bootstrap
run: ./scripts/bootstrap
Expand All @@ -61,15 +63,16 @@ jobs:
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh
test:
timeout-minutes: 10
name: test
runs-on: ubuntu-latest
runs-on: ${{ github.repository == 'stainless-sdks/stainless-v0-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Bootstrap
run: ./scripts/bootstrap
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ jobs:
run: |
bash ./bin/check-release-environment
env:

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.1"
".": "0.1.0-alpha.2"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 8
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-9c4cbbd20ce1628e48129ad8e871b729c3f774c5d1ff4cbc560fca81db611d93.yml
openapi_spec_hash: e511d8f4716a56182b97d139eb89b68a
config_hash: 1bee02a0eeb902e1ea32aa032bc70f54
configured_endpoints: 15
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-6707704fb4cbc87d367d0813979036b8acbcc7f6eff62f7f5e8b9f016920d3ad.yml
openapi_spec_hash: 3af7623ae449e42f72c7319fa3f8e387
config_hash: 28c1ddd1e9bdba67e018459acdfafc5b
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# Changelog

## 0.1.0-alpha.2 (2025-05-13)

Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/stainless-api/stainless-api-typescript/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)

### Features

* **api:** add build compare to v0 ([2e583d1](https://github.com/stainless-api/stainless-api-typescript/commit/2e583d15ebcd52bfe43196fe58dac79f45761e08))
* **api:** configs ([021eac6](https://github.com/stainless-api/stainless-api-typescript/commit/021eac6182c5f01bf9dd2c31f5277fa6cd159a1b))
* **api:** enable macos publishing ([77ebd7c](https://github.com/stainless-api/stainless-api-typescript/commit/77ebd7c56b71f35e78921d3376b8daf568e39c50))
* **api:** manual updates ([118d1d1](https://github.com/stainless-api/stainless-api-typescript/commit/118d1d15878c6737307d4796535a74a8a5fab39a))
* **api:** manual updates ([41114a1](https://github.com/stainless-api/stainless-api-typescript/commit/41114a19b3bd85fc0cc5ba7a5655275f5ac97b99))
* **api:** manual updates ([056d6bf](https://github.com/stainless-api/stainless-api-typescript/commit/056d6bf0862e908fddabea49cee3ec4e35985060))
* **api:** manual updates ([54866aa](https://github.com/stainless-api/stainless-api-typescript/commit/54866aa84f9bf8e27acfc948b94175975af61551))
* **api:** parent build id ([894f36b](https://github.com/stainless-api/stainless-api-typescript/commit/894f36b21905f492a5354b0a1d87f3f30346fae4))
* **api:** rename api key ([642780a](https://github.com/stainless-api/stainless-api-typescript/commit/642780a0c31945be6b2186abf07bb24f6d2013c2))
* **api:** use correct hashes ([df1c791](https://github.com/stainless-api/stainless-api-typescript/commit/df1c791cc9fece7a26b60ea5f17a0b4a5772b289))
* **client:** add withOptions helper ([e7ec49d](https://github.com/stainless-api/stainless-api-typescript/commit/e7ec49d3c6f8fe87ad5d11c77da697e50fa9e9fb))


### Bug Fixes

* **client:** always overwrite when merging headers ([4d180e0](https://github.com/stainless-api/stainless-api-typescript/commit/4d180e0da23b27c22f8e8632a5f842448ac0cdc5))
* update request schema for Postman webhook ([2c590eb](https://github.com/stainless-api/stainless-api-typescript/commit/2c590eb86e83dcc54d30b3104a2e7de9299c35b6))


### Chores

* bump go sdk version ([b7f0264](https://github.com/stainless-api/stainless-api-typescript/commit/b7f02648ab3791d3a566a1d790b17d40dae10e9a))
* **ci:** add timeout thresholds for CI jobs ([7d94fbd](https://github.com/stainless-api/stainless-api-typescript/commit/7d94fbd1d7173a27d554ff6e4d033e8c76a45e35))
* **ci:** only use depot for staging repos ([5cd101b](https://github.com/stainless-api/stainless-api-typescript/commit/5cd101b5e1e8088d589f377a637f5a9dd2d6ac34))
* **client:** drop support for EOL node versions ([8a3c07b](https://github.com/stainless-api/stainless-api-typescript/commit/8a3c07bbf7a0e87abaf0ebf453b2ff33181bf197))
* **internal:** codegen related update ([d9bd40e](https://github.com/stainless-api/stainless-api-typescript/commit/d9bd40e22f070cbda2d5dad163c50dd1a3ecc369))
* **internal:** codegen related update ([79c9751](https://github.com/stainless-api/stainless-api-typescript/commit/79c9751e084e40662779c187eedc8720d2ddd291))
* **internal:** refactor utils ([c033a80](https://github.com/stainless-api/stainless-api-typescript/commit/c033a8026d5757a33ae4e4540e1aac51c861ed37))
* **internal:** share typescript helpers ([b41cddd](https://github.com/stainless-api/stainless-api-typescript/commit/b41cddd3715e545ad5917ac1328a81fd3ddbe5b1))
* **package:** remove engines ([c089302](https://github.com/stainless-api/stainless-api-typescript/commit/c08930299ad02892bd6a3714c76ac4969cbb78db))
* **perf:** faster base64 decoding ([f7b9d5d](https://github.com/stainless-api/stainless-api-typescript/commit/f7b9d5d50fff5205d247d3c5987ad000f08f4f6e))


### Documentation

* **readme:** fix typo ([412d6bc](https://github.com/stainless-api/stainless-api-typescript/commit/412d6bc1f9f1816ed3cffd6412572245ce9cc6f2))

## 0.1.0-alpha.1 (2025-04-21)

Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/stainless-api/stainless-api-typescript/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async function main() {
main();
```

Error codes are as followed:
Error codes are as follows:

| Status Code | Error Type |
| ----------- | -------------------------- |
Expand Down Expand Up @@ -362,7 +362,7 @@ TypeScript >= 4.9 is supported.
The following runtimes are supported:

- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
- Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
- Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
- Deno v1.28.0 or higher.
- Bun 1.0 or later.
- Cloudflare Workers.
Expand Down
38 changes: 38 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ Types:

- <code><a href="./src/resources/projects/projects.ts">ProjectRetrieveResponse</a></code>
- <code><a href="./src/resources/projects/projects.ts">ProjectUpdateResponse</a></code>
- <code><a href="./src/resources/projects/projects.ts">ProjectListResponse</a></code>

Methods:

- <code title="get /v0/projects/{projectName}">client.projects.<a href="./src/resources/projects/projects.ts">retrieve</a>(projectName) -> ProjectRetrieveResponse</code>
- <code title="patch /v0/projects/{projectName}">client.projects.<a href="./src/resources/projects/projects.ts">update</a>(projectName, { ...params }) -> ProjectUpdateResponse</code>
- <code title="get /v0/projects">client.projects.<a href="./src/resources/projects/projects.ts">list</a>({ ...params }) -> ProjectListResponse</code>

## Branches

Expand All @@ -21,19 +23,43 @@ Methods:
- <code title="post /v0/projects/{project}/branches">client.projects.branches.<a href="./src/resources/projects/branches.ts">create</a>(project, { ...params }) -> ProjectBranch</code>
- <code title="get /v0/projects/{project}/branches/{branch}">client.projects.branches.<a href="./src/resources/projects/branches.ts">retrieve</a>(branch, { ...params }) -> ProjectBranch</code>

## Configs

Types:

- <code><a href="./src/resources/projects/configs.ts">ConfigRetrieveResponse</a></code>
- <code><a href="./src/resources/projects/configs.ts">ConfigGuessResponse</a></code>

Methods:

- <code title="get /v0/projects/{project}/configs">client.projects.configs.<a href="./src/resources/projects/configs.ts">retrieve</a>(project, { ...params }) -> ConfigRetrieveResponse</code>
- <code title="post /v0/projects/{project}/configs/guess">client.projects.configs.<a href="./src/resources/projects/configs.ts">guess</a>(project, { ...params }) -> ConfigGuessResponse</code>

## Snippets

Types:

- <code><a href="./src/resources/projects/snippets.ts">SnippetCreateRequestResponse</a></code>

Methods:

- <code title="post /v0/projects/{projectName}/snippets/request">client.projects.snippets.<a href="./src/resources/projects/snippets.ts">createRequest</a>(projectName, { ...params }) -> SnippetCreateRequestResponse</code>

# Builds

Types:

- <code><a href="./src/resources/builds.ts">BuildObject</a></code>
- <code><a href="./src/resources/builds.ts">BuildTarget</a></code>
- <code><a href="./src/resources/builds.ts">BuildListResponse</a></code>
- <code><a href="./src/resources/builds.ts">BuildCompareResponse</a></code>

Methods:

- <code title="post /v0/builds">client.builds.<a href="./src/resources/builds.ts">create</a>({ ...params }) -> BuildObject</code>
- <code title="get /v0/builds/{buildId}">client.builds.<a href="./src/resources/builds.ts">retrieve</a>(buildID) -> BuildObject</code>
- <code title="get /v0/builds">client.builds.<a href="./src/resources/builds.ts">list</a>({ ...params }) -> BuildListResponse</code>
- <code title="post /v0/builds/compare">client.builds.<a href="./src/resources/builds.ts">compare</a>({ ...params }) -> BuildCompareResponse</code>

# BuildTargetOutputs

Expand All @@ -44,3 +70,15 @@ Types:
Methods:

- <code title="get /v0/build_target_outputs">client.buildTargetOutputs.<a href="./src/resources/build-target-outputs.ts">retrieve</a>({ ...params }) -> BuildTargetOutputRetrieveResponse</code>

# Orgs

Types:

- <code><a href="./src/resources/orgs.ts">OrgRetrieveResponse</a></code>
- <code><a href="./src/resources/orgs.ts">OrgListResponse</a></code>

Methods:

- <code title="get /v0/orgs/{orgName}">client.orgs.<a href="./src/resources/orgs.ts">retrieve</a>(orgName) -> OrgRetrieveResponse</code>
- <code title="get /v0/orgs">client.orgs.<a href="./src/resources/orgs.ts">list</a>() -> OrgListResponse</code>
18 changes: 7 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stainless-v0",
"version": "0.1.0-alpha.1",
"version": "0.1.0-alpha.2",
"description": "The official TypeScript library for the Stainless V0 API",
"author": "Stainless V0 <>",
"types": "dist/index.d.ts",
Expand All @@ -17,7 +17,7 @@
"test": "./scripts/test",
"build": "./scripts/build",
"prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
"format": "prettier --write --cache --cache-strategy metadata . !dist",
"format": "./scripts/format",
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build && ./scripts/utils/git-swap.sh; fi",
"tsn": "ts-node -r tsconfig-paths/register",
"lint": "./scripts/lint",
Expand All @@ -30,9 +30,9 @@
"@swc/jest": "^0.2.29",
"@types/jest": "^29.4.0",
"@types/node": "^20.17.6",
"typescript-eslint": "^8.24.0",
"@typescript-eslint/eslint-plugin": "^8.24.0",
"@typescript-eslint/parser": "^8.24.0",
"typescript-eslint": "8.31.1",
"@typescript-eslint/eslint-plugin": "8.31.1",
"@typescript-eslint/parser": "8.31.1",
"eslint": "^9.20.1",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-unused-imports": "^4.1.4",
Expand All @@ -42,17 +42,13 @@
"publint": "^0.2.12",
"ts-jest": "^29.1.0",
"ts-node": "^10.5.0",
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.3/tsc-multi.tgz",
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.4/tsc-multi-1.1.4.tgz",
"tsconfig-paths": "^4.0.0",
"typescript": "^4.8.2"
"typescript": "5.8.3"
},
"resolutions": {
"synckit": "0.8.8"
},
"browser": {
"./internal/shims/getBuiltinModule.mjs": "./internal/shims/nullGetBuiltinModule.mjs",
"./internal/shims/getBuiltinModule.js": "./internal/shims/nullGetBuiltinModule.js"
},
"imports": {
"stainless-v0": ".",
"stainless-v0/*": "./src/*"
Expand Down
5 changes: 1 addition & 4 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,5 @@
}
],
"release-type": "node",
"extra-files": [
"src/version.ts",
"README.md"
]
"extra-files": ["src/version.ts", "README.md"]
}
6 changes: 5 additions & 1 deletion scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ for file in LICENSE CHANGELOG.md; do
if [ -e "${file}" ]; then cp "${file}" dist; fi
done
if [ -e "bin/cli" ]; then
mkdir dist/bin
mkdir -p dist/bin
cp -p "bin/cli" dist/bin/;
fi
if [ -e "bin/migration-config.json" ]; then
mkdir -p dist/bin
cp -p "bin/migration-config.json" dist/bin/;
fi
# this converts the export map paths for the dist directory
# and does a few other minor things
node scripts/utils/make-dist-package-json.cjs > dist/package.json
Expand Down
4 changes: 4 additions & 0 deletions scripts/format
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ cd "$(dirname "$0")/.."

echo "==> Running eslint --fix"
./node_modules/.bin/eslint --fix .

echo "==> Running prettier --write"
# format things eslint didn't
./node_modules/.bin/prettier --write --cache --cache-strategy metadata . '!**/dist' '!**/*.ts' '!**/*.mts' '!**/*.cts' '!**/*.js' '!**/*.mjs' '!**/*.cjs'
Loading