Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
70eaf21
feat(api): OpenAPI spec update via Stainless API (#12)
stainless-app[bot] Apr 23, 2024
39d7ac0
feat(api): OpenAPI spec update via Stainless API (#14)
stainless-app[bot] May 7, 2024
9d62f64
chore: rebuild project due to oas spec rename (#15)
stainless-app[bot] May 7, 2024
df79224
chore: rebuild project due to codegen change (#16)
stainless-app[bot] Nov 4, 2024
036b17d
chore: rebuild project due to codegen change (#18)
stainless-app[bot] Nov 12, 2024
c8a77bf
chore: rebuild project due to codegen change (#19)
stainless-app[bot] Nov 15, 2024
424c10e
chore: rebuild project due to codegen change (#20)
stainless-app[bot] Nov 15, 2024
31e045e
chore: rebuild project due to codegen change (#21)
stainless-app[bot] Nov 18, 2024
0331bba
docs: remove suggestion to use `npm` call out (#22)
stainless-app[bot] Nov 20, 2024
487943a
chore: remove redundant word in comment (#23)
stainless-app[bot] Nov 20, 2024
987a383
chore(internal): codegen related update (#24)
stainless-app[bot] Nov 28, 2024
23917bf
wip (#25)
stainless-app[bot] Dec 10, 2024
eeae75a
chore(types): nicer error class types + jsdocs (#26)
stainless-app[bot] Dec 11, 2024
694c674
chore(internal): codegen related update (#27)
stainless-app[bot] Mar 4, 2025
3565f73
feat: add SKIP_BREW env var to ./scripts/bootstrap (#28)
stainless-app[bot] Mar 11, 2025
e18ddd3
feat(client): accept RFC6838 JSON content types (#29)
stainless-app[bot] Mar 11, 2025
de5ba3f
chore(internal): remove extra empty newlines (#30)
stainless-app[bot] Mar 14, 2025
af90af8
fix(exports): ensure resource imports don't require /index (#31)
stainless-app[bot] Mar 14, 2025
b97f68a
chore(exports): cleaner resource index imports (#32)
stainless-app[bot] Mar 20, 2025
2282a64
chore(exports): stop using path fallbacks (#33)
stainless-app[bot] Mar 20, 2025
4a5837e
fix: avoid type error in certain environments (#34)
stainless-app[bot] Mar 22, 2025
41b19e9
codegen metadata
stainless-app[bot] Mar 27, 2025
633b99a
fix(internal): work around https://github.com/vercel/next.js/issues/7…
stainless-app[bot] Mar 28, 2025
b0e7faa
fix(client): send `X-Stainless-Timeout` in seconds (#36)
stainless-app[bot] Apr 3, 2025
bff89be
chore(internal): add aliases for Record and Array (#37)
stainless-app[bot] Apr 3, 2025
837d599
fix(api): improve type resolution when importing as a package (#38)
stainless-app[bot] Apr 4, 2025
9a32b34
fix(mcp): remove unused tools.ts (#39)
stainless-app[bot] Apr 5, 2025
50475c4
chore(tests): improve enum examples (#40)
stainless-app[bot] Apr 9, 2025
c1939ed
codegen metadata
stainless-app[bot] Apr 10, 2025
730ed99
chore(internal): upload builds and expand CI branch coverage
stainless-app[bot] Apr 10, 2025
94b6670
chore(internal): reduce CI branch coverage
stainless-app[bot] Apr 10, 2025
0924cf6
chore(client): minor internal fixes
stainless-app[bot] Apr 15, 2025
959262c
chore(ci): add timeout thresholds for CI jobs
stainless-app[bot] Apr 23, 2025
618a3aa
chore(internal): codegen related update
stainless-app[bot] Apr 24, 2025
4016e99
chore(ci): only use depot for staging repos
stainless-app[bot] Apr 24, 2025
9d4ca9a
docs(readme): fix typo
stainless-app[bot] May 1, 2025
202d49b
chore(ci): bump node version for release workflows
stainless-app[bot] May 7, 2025
c89ae8d
docs: add examples to tsdocs
stainless-app[bot] May 7, 2025
2966ec5
chore(docs): grammar improvements
stainless-app[bot] May 22, 2025
2a38060
chore: improve publish-npm script --latest tag logic
stainless-app[bot] May 28, 2025
cb12043
chore(docs): use top-level-await in example snippets
stainless-app[bot] Jun 4, 2025
9fcc1d6
fix: publish script — handle NPM errors correctly
stainless-app[bot] Jun 14, 2025
eef6cdc
chore(internal): make base APIResource abstract
stainless-app[bot] Jun 14, 2025
d3cec19
feat(client): add support for endpoint-specific base URLs
stainless-app[bot] Jun 17, 2025
554bc43
chore(ci): enable for pull requests
stainless-app[bot] Jun 17, 2025
affc927
refactor(types): replace Record with mapped types
stainless-app[bot] Jun 24, 2025
2683b03
fix(ci): release-doctor — report correct token name
stainless-app[bot] Jun 27, 2025
411abab
chore(ci): only run for pushes and fork pull requests
stainless-app[bot] Jun 28, 2025
d5641f8
chore: mention unit type in timeout docs
stainless-app[bot] Jul 3, 2025
1bebaad
fix(client): don't send `Content-Type` for bodyless methods
stainless-app[bot] Jul 3, 2025
8ea868a
chore: make some internal functions async
stainless-app[bot] Jul 10, 2025
9650bfb
feat: clean up environment call outs
stainless-app[bot] Jul 15, 2025
11a7948
chore(internal): remove redundant imports config
stainless-app[bot] Jul 30, 2025
151270b
chore(internal): move publish config
stainless-app[bot] Aug 7, 2025
15c1948
chore: update @stainless-api/prism-cli to v5.15.0
stainless-app[bot] Aug 9, 2025
ca84bfc
chore(internal): update comment in script
stainless-app[bot] Aug 9, 2025
fc9ab23
chore(deps): update dependency node-fetch to v2.6.13
stainless-app[bot] Aug 16, 2025
846300a
chore(internal): formatting change
stainless-app[bot] Aug 16, 2025
695a63b
chore: update CI script
stainless-app[bot] Aug 23, 2025
eb696f7
chore: ci build action
stainless-app[bot] Sep 6, 2025
8abc12e
fix: coerce nullable values to undefined
stainless-app[bot] Sep 9, 2025
16353ab
chore: do not install brew dependencies in ./scripts/bootstrap by def…
stainless-app[bot] Sep 20, 2025
17f089f
perf: faster formatting
stainless-app[bot] Sep 26, 2025
accffdb
chore(internal): remove deprecated `compilerOptions.baseUrl` from tsc…
stainless-app[bot] Sep 26, 2025
d3f62b4
chore(internal): fix incremental formatting in some cases
stainless-app[bot] Sep 27, 2025
51d8020
chore(internal): codegen related update
stainless-app[bot] Sep 27, 2025
638db23
chore(internal): ignore .eslintcache
stainless-app[bot] Sep 27, 2025
34ca6c3
chore(internal): remove .eslintcache
stainless-app[bot] Oct 7, 2025
c3fd8cd
chore(internal): use npm pack for build uploads
stainless-app[bot] Oct 7, 2025
39e09fb
fix(mcp): return correct lines on typescript errors
stainless-app[bot] Dec 6, 2025
a0eff02
chore(internal): codegen related update
stainless-app[bot] Dec 6, 2025
2175f4a
fix(mcp): correct code tool API endpoint
stainless-app[bot] Dec 6, 2025
59ebea3
chore(internal): codegen related update
stainless-app[bot] Dec 6, 2025
ceb4f95
chore(internal): codegen related update
stainless-app[bot] Jan 6, 2026
db72364
chore: break long lines in snippets into multiline
stainless-app[bot] Jan 7, 2026
bab57e2
chore: fix typo in descriptions
stainless-app[bot] Jan 14, 2026
725bccb
chore(internal): upgrade babel, qs, js-yaml
stainless-app[bot] Jan 15, 2026
1b1a007
chore(internal): update `actions/checkout` version
stainless-app[bot] Jan 17, 2026
26b60fa
chore(ci): upgrade `actions/github-script`
stainless-app[bot] Jan 24, 2026
2146bde
chore(client): do not parse responses with empty content-length
stainless-app[bot] Feb 3, 2026
ec98593
chore: update mock server docs
stainless-app[bot] Feb 20, 2026
87e0ce7
fix(docs/contributing): correct pnpm link command
stainless-app[bot] Feb 24, 2026
9b1e546
chore(internal): move stringifyQuery implementation to internal function
stainless-app[bot] Feb 27, 2026
ad7909c
chore(internal): codegen related update
stainless-app[bot] Mar 6, 2026
c86bbfc
chore(test): do not count install time for mock server timeout
stainless-app[bot] Mar 6, 2026
2795477
chore(ci): skip uploading artifacts on stainless-internal branches
stainless-app[bot] Mar 7, 2026
194604e
chore: update placeholder string
stainless-app[bot] Mar 7, 2026
48d3a76
fix(client): preserve URL params already embedded in path
stainless-app[bot] Mar 7, 2026
454a3b2
chore(internal): tweak CI branches
stainless-app[bot] Mar 17, 2026
31ba293
refactor(tests): switch from prism to steady
stainless-app[bot] Mar 20, 2026
b5d7d9f
chore(tests): bump steady to v0.19.4
stainless-app[bot] Mar 21, 2026
f72c552
chore(tests): bump steady to v0.19.5
stainless-app[bot] Mar 21, 2026
ad82170
chore(internal): update gitignore
stainless-app[bot] Mar 24, 2026
ca75a49
chore(tests): bump steady to v0.19.6
stainless-app[bot] Mar 24, 2026
70b2d9e
chore(ci): skip lint on metadata-only changes
stainless-app[bot] Mar 25, 2026
ad262cf
chore(tests): bump steady to v0.19.7
stainless-app[bot] Mar 25, 2026
d2be5a4
chore(internal): update multipart form array serialization
stainless-app[bot] Mar 27, 2026
30bf325
chore(tests): bump steady to v0.20.1
stainless-app[bot] Apr 1, 2026
7f5ab97
chore(tests): bump steady to v0.20.2
stainless-app[bot] Apr 1, 2026
007bf40
chore(internal): codegen related update
stainless-app[bot] Apr 9, 2026
c2857cd
docs: update examples
stainless-app[bot] Apr 11, 2026
eceb8f0
chore(tests): bump steady to v0.22.1
stainless-app[bot] Apr 18, 2026
e6a079e
chore(internal): more robust bootstrap script
stainless-app[bot] Apr 23, 2026
73cd33f
feat: support setting headers via env
stainless-app[bot] Apr 28, 2026
a687197
codegen metadata
stainless-app[bot] Apr 30, 2026
3ab81f9
codegen metadata
stainless-app[bot] May 1, 2026
7dd6889
ci: pin GitHub Actions to commit SHAs
stainless-app[bot] May 13, 2026
a0c5ab4
feat(stlc): configurable CI runner and private-production-repo suppor…
stainless-app[bot] Jul 18, 2026
aa3015a
release: 0.1.0-alpha.3
stainless-app[bot] Jul 18, 2026
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
19 changes: 0 additions & 19 deletions .devcontainer/Dockerfile

This file was deleted.

25 changes: 10 additions & 15 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Debian",
"build": {
"dockerfile": "Dockerfile"
"name": "Development",
"image": "mcr.microsoft.com/devcontainers/typescript-node:latest",
"features": {
"ghcr.io/devcontainers/features/node:1": {}
},
"postCreateCommand": "yarn install",
"customizations": {
"vscode": {
"extensions": ["esbenp.prettier-vscode"]
}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
90 changes: 77 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,93 @@ name: CI
on:
push:
branches:
- main
- '**'
- '!integrated/**'
- '!stl-preview-head/**'
- '!stl-preview-base/**'
- '!generated'
- '!codegen/**'
- 'codegen/stl/**'
pull_request:
branches:
- main
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ubuntu-latest


runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && '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@v4
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '18'

- name: Install dependencies
run: |
yarn install
- name: Bootstrap
run: ./scripts/bootstrap

- name: Check types
run: |
yarn build
run: ./scripts/lint

build:
timeout-minutes: 5
name: build
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && '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')
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '18'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Check build
run: ./scripts/build

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

- name: Upload tarball
if: |-
github.repository == 'stainless-sdks/maisa-node' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh
test:
timeout-minutes: 10
name: test
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '20'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Run tests
run: ./scripts/test
6 changes: 3 additions & 3 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
runs-on: ubuntu-latest

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

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: '18'
node-version: '20'

- name: Install dependencies
run: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Release Doctor
on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
Expand All @@ -10,10 +12,11 @@ jobs:
if: github.repository == 'maisaai/node-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

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

- name: Check release environment
run: |
bash ./bin/check-release-environment
env:
NPM_TOKEN: ${{ secrets.MAISA_NPM_TOKEN || secrets.NPM_TOKEN }}

7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
.prism.log
.stdy.log
node_modules
yarn-error.log
codegen.log
Brewfile.lock.json
dist
/deno
dist-deno
/*.tgz
.idea/
.eslintcache

2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CHANGELOG.md
/ecosystem-tests
/ecosystem-tests/*/**
/node_modules
/deno

Expand Down
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.2"
".": "0.1.0-alpha.3"
}
5 changes: 4 additions & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
configured_endpoints: 15
configured_endpoints: 13
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/maisa/maisa-d1dd8e6736faa244dcf5cd516d0e2463cb22f1aba163ab329430582d7bd0d8c7.yml
openapi_spec_hash: 67e2baafe7455c2a734ac0b0ea699719
config_hash: d6a8d922bf8b98716e3f55b9c829cd45
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
brew "node"
Loading
Loading