Skip to content

Commit d3ce557

Browse files
authored
Merge pull request #153 from openintegrations/release-please--branches--main--changes--next--components--sdk
release: 1.6.0
2 parents d9eab8e + 34e169f commit d3ce557

33 files changed

+6136
-4986
lines changed

.devcontainer/devcontainer.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"postCreateCommand": "yarn install",
1010
"customizations": {
1111
"vscode": {
12-
"extensions": [
13-
"esbenp.prettier-vscode"
14-
]
12+
"extensions": ["esbenp.prettier-vscode"]
1513
}
1614
}
1715
}

.github/workflows/ci.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
name: CI
22
on:
33
push:
4-
branches:
5-
- main
6-
pull_request:
7-
branches:
8-
- main
9-
- next
4+
branches-ignore:
5+
- 'generated'
6+
- 'codegen/**'
7+
- 'integrated/**'
8+
- 'stl-preview-head/**'
9+
- 'stl-preview-base/**'
1010

1111
jobs:
1212
lint:
1313
timeout-minutes: 10
1414
name: lint
15-
runs-on: ubuntu-latest
15+
runs-on: ${{ github.repository == 'stainless-sdks/openint-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
1616
steps:
1717
- uses: actions/checkout@v4
1818

1919
- name: Set up Node
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: '18'
22+
node-version: '20'
2323

2424
- name: Bootstrap
2525
run: ./scripts/bootstrap
@@ -30,7 +30,7 @@ jobs:
3030
build:
3131
timeout-minutes: 5
3232
name: build
33-
runs-on: ubuntu-latest
33+
runs-on: ${{ github.repository == 'stainless-sdks/openint-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
3434
permissions:
3535
contents: read
3636
id-token: write
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Node
4141
uses: actions/setup-node@v4
4242
with:
43-
node-version: '18'
43+
node-version: '20'
4444

4545
- name: Bootstrap
4646
run: ./scripts/bootstrap
@@ -65,14 +65,14 @@ jobs:
6565
test:
6666
timeout-minutes: 10
6767
name: test
68-
runs-on: ubuntu-latest
68+
runs-on: ${{ github.repository == 'stainless-sdks/openint-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
6969
steps:
7070
- uses: actions/checkout@v4
7171

7272
- name: Set up Node
7373
uses: actions/setup-node@v4
7474
with:
75-
node-version: '18'
75+
node-version: '20'
7676

7777
- name: Bootstrap
7878
run: ./scripts/bootstrap

.github/workflows/publish-npm.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Node
2020
uses: actions/setup-node@v3
2121
with:
22-
node-version: '18'
22+
node-version: '20'
2323

2424
- name: Install dependencies
2525
run: |

.github/workflows/release-doctor.yml

-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ jobs:
1919
bash ./bin/check-release-environment
2020
env:
2121
NPM_TOKEN: ${{ secrets.OPENINT_NPM_TOKEN || secrets.NPM_TOKEN }}
22-

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.5.0"
2+
".": "1.6.0"
33
}

.stats.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 10
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openint%2Fopenint-d866f2602e57f0c336aa8a4e065278521b6607ad4136c15971e3d2778576266f.yml
3-
openapi_spec_hash: 145b6d77b0841af35bb06456f28b4f14
4-
config_hash: a6e549521fa293498319c532d9cfa93f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openint%2Fopenint-21dd873c4f72eb1599c52a65f085d6ba34b6aa35632111ae1ac1f39b133e642d.yml
3+
openapi_spec_hash: 43cbfe71f732c90beb90f8d33bd285ec
4+
config_hash: 68f87c7c6066f017748605b799b1c902

CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## 1.6.0 (2025-05-07)
4+
5+
Full Changelog: [v1.5.0...v1.6.0](https://github.com/openintegrations/ts-sdk/compare/v1.5.0...v1.6.0)
6+
7+
### Features
8+
9+
* **api:** merging api key and customer token into single variable ([961d23a](https://github.com/openintegrations/ts-sdk/commit/961d23adfed71322eba3993fc1651e4343957361))
10+
* **client:** add withOptions helper ([b5f3ba5](https://github.com/openintegrations/ts-sdk/commit/b5f3ba5384fcc7a333a5caca00cda86eb7cde94c))
11+
* **docs:** updating documented docs for stainless ([d90bc7b](https://github.com/openintegrations/ts-sdk/commit/d90bc7bd24ea61a998d3079c3f84cb2ea33c274d))
12+
* **docs:** updating documented docs for stainless ([faa83db](https://github.com/openintegrations/ts-sdk/commit/faa83db141006a9f7337ac75652ecc0a1c2f4cad))
13+
* **docs:** updating documented docs for stainless ([8c53526](https://github.com/openintegrations/ts-sdk/commit/8c535260ccd141a967be63f6a9a5ebd02971e3f6))
14+
* **docs:** updating documented docs for stainless ([43667b3](https://github.com/openintegrations/ts-sdk/commit/43667b3dca008a8e36c71765799bda7cf0d38b30))
15+
16+
17+
### Chores
18+
19+
* **ci:** only use depot for staging repos ([f618f64](https://github.com/openintegrations/ts-sdk/commit/f618f64f705b8ac31a2b4289b31bc50f9bdba949))
20+
* **client:** drop support for EOL node versions ([85101e4](https://github.com/openintegrations/ts-sdk/commit/85101e49e9fd3d4040735f75111f45fe7a79c6db))
21+
* **internal:** codegen related update ([b25bfa6](https://github.com/openintegrations/ts-sdk/commit/b25bfa6e05ad445d5a001f48593b2be8a5285d2f))
22+
* **internal:** codegen related update ([ef19aea](https://github.com/openintegrations/ts-sdk/commit/ef19aea8d5a1c09131c73d397dee93906f4caaac))
23+
* **internal:** refactor utils ([bccab80](https://github.com/openintegrations/ts-sdk/commit/bccab80cfcdc997e88860dd2330f7dbd378f97e9))
24+
* **internal:** share typescript helpers ([62a47ce](https://github.com/openintegrations/ts-sdk/commit/62a47ce64118bc8f57e767102c55be72ab57c9e6))
25+
26+
27+
### Documentation
28+
29+
* **readme:** fix typo ([8a57cc3](https://github.com/openintegrations/ts-sdk/commit/8a57cc30d4a9012ce05d0dfaf8a7f6bb86e92749))
30+
331
## 1.5.0 (2025-04-23)
432

533
Full Changelog: [v1.4.2...v1.5.0](https://github.com/openintegrations/ts-sdk/compare/v1.4.2...v1.5.0)

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The full API of this library can be found in [api.md](api.md).
2323
import Openint from '@openint/sdk';
2424

2525
const client = new Openint({
26-
apiKey: process.env['OPENINT_API_KEY'], // This is the default and can be omitted
26+
token: process.env['OPENINT_API_KEY_OR_CUSTOMER_TOKEN'], // This is the default and can be omitted
2727
});
2828

2929
async function main() {
@@ -43,7 +43,7 @@ This library includes TypeScript definitions for all request params and response
4343
import Openint from '@openint/sdk';
4444

4545
const client = new Openint({
46-
apiKey: process.env['OPENINT_API_KEY'], // This is the default and can be omitted
46+
token: process.env['OPENINT_API_KEY_OR_CUSTOMER_TOKEN'], // This is the default and can be omitted
4747
});
4848

4949
async function main() {
@@ -78,7 +78,7 @@ async function main() {
7878
main();
7979
```
8080

81-
Error codes are as followed:
81+
Error codes are as follows:
8282

8383
| Status Code | Error Type |
8484
| ----------- | -------------------------- |
@@ -355,7 +355,7 @@ TypeScript >= 4.9 is supported.
355355
The following runtimes are supported:
356356

357357
- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
358-
- Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
358+
- Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
359359
- Deno v1.28.0 or higher.
360360
- Bun 1.0 or later.
361361
- Cloudflare Workers.

api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Methods:
2424
- <code title="get /viewer">client.<a href="./src/index.ts">getCurrentUser</a>() -> GetCurrentUserResponse</code>
2525
- <code title="get /connector-config">client.<a href="./src/index.ts">listConnectionConfigs</a>({ ...params }) -> ListConnectionConfigsResponsesOffsetPagination</code>
2626
- <code title="get /connection">client.<a href="./src/index.ts">listConnections</a>({ ...params }) -> ListConnectionsResponsesOffsetPagination</code>
27-
- <code title="get /connector">client.<a href="./src/index.ts">listConnectors</a>({ ...params }) -> ListConnectorsResponse</code>
27+
- <code title="get /connector">client.<a href="./src/index.ts">listConnectors</a>({ ...params }) -> ListConnectorsResponsesOffsetPagination</code>

package.json

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openint/sdk",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"description": "The official TypeScript library for the Openint API",
55
"author": "Openint <[email protected]>",
66
"types": "dist/index.d.ts",
@@ -17,7 +17,7 @@
1717
"test": "./scripts/test",
1818
"build": "./scripts/build",
1919
"prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
20-
"format": "prettier --write --cache --cache-strategy metadata . !dist",
20+
"format": "./scripts/format",
2121
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build && ./scripts/utils/git-swap.sh; fi",
2222
"tsn": "ts-node -r tsconfig-paths/register",
2323
"lint": "./scripts/lint",
@@ -30,9 +30,9 @@
3030
"@swc/jest": "^0.2.29",
3131
"@types/jest": "^29.4.0",
3232
"@types/node": "^20.17.6",
33-
"typescript-eslint": "^8.24.0",
34-
"@typescript-eslint/eslint-plugin": "^8.24.0",
35-
"@typescript-eslint/parser": "^8.24.0",
33+
"typescript-eslint": "8.31.1",
34+
"@typescript-eslint/eslint-plugin": "8.31.1",
35+
"@typescript-eslint/parser": "8.31.1",
3636
"eslint": "^9.20.1",
3737
"eslint-plugin-prettier": "^5.2.3",
3838
"eslint-plugin-unused-imports": "^4.1.4",
@@ -42,17 +42,13 @@
4242
"publint": "^0.2.12",
4343
"ts-jest": "^29.1.0",
4444
"ts-node": "^10.5.0",
45-
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.3/tsc-multi.tgz",
45+
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.4/tsc-multi-1.1.4.tgz",
4646
"tsconfig-paths": "^4.0.0",
47-
"typescript": "^4.8.2"
47+
"typescript": "5.8.3"
4848
},
4949
"resolutions": {
5050
"synckit": "0.8.8"
5151
},
52-
"browser": {
53-
"./internal/shims/getBuiltinModule.mjs": "./internal/shims/nullGetBuiltinModule.mjs",
54-
"./internal/shims/getBuiltinModule.js": "./internal/shims/nullGetBuiltinModule.js"
55-
},
5652
"imports": {
5753
"@openint/sdk": ".",
5854
"@openint/sdk/*": "./src/*"
@@ -72,5 +68,8 @@
7268
"import": "./dist/*.mjs",
7369
"require": "./dist/*.js"
7470
}
71+
},
72+
"engines": {
73+
"node": ">= 20"
7574
}
7675
}

release-please-config.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,5 @@
6060
}
6161
],
6262
"release-type": "node",
63-
"extra-files": [
64-
"src/version.ts",
65-
"README.md"
66-
]
63+
"extra-files": ["src/version.ts", "README.md"]
6764
}

scripts/build

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ for file in LICENSE CHANGELOG.md; do
1919
if [ -e "${file}" ]; then cp "${file}" dist; fi
2020
done
2121
if [ -e "bin/cli" ]; then
22-
mkdir dist/bin
22+
mkdir -p dist/bin
2323
cp -p "bin/cli" dist/bin/;
2424
fi
25+
if [ -e "bin/migration-config.json" ]; then
26+
mkdir -p dist/bin
27+
cp -p "bin/migration-config.json" dist/bin/;
28+
fi
2529
# this converts the export map paths for the dist directory
2630
# and does a few other minor things
2731
node scripts/utils/make-dist-package-json.cjs > dist/package.json

scripts/format

+4
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ cd "$(dirname "$0")/.."
66

77
echo "==> Running eslint --fix"
88
./node_modules/.bin/eslint --fix .
9+
10+
echo "==> Running prettier --write"
11+
# format things eslint didn't
12+
./node_modules/.bin/prettier --write --cache --cache-strategy metadata . '!**/dist' '!**/*.ts' '!**/*.mts' '!**/*.cts' '!**/*.js' '!**/*.mjs' '!**/*.cjs'

0 commit comments

Comments
 (0)