Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/cossistant-typescript' && '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
- 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: '20'

- name: Set up pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
with:
version: '10.30.1'

Expand All @@ -43,20 +43,20 @@ jobs:
timeout-minutes: 5
name: build
runs-on: ${{ github.repository == 'stainless-sdks/cossistant-typescript' && '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')
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
- 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: '20'

- name: Set up pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
with:
version: '10.30.1'

Expand All @@ -71,7 +71,7 @@ jobs:
github.repository == 'stainless-sdks/cossistant-typescript' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v8
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: core.setOutput('github_token', await core.getIDToken());

Expand All @@ -90,15 +90,15 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/cossistant-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v6
- 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: '20'

- name: Set up pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
with:
version: '10.30.1'

Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release Doctor
on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'cossistantcom/cossistant-typescript' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

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

- name: Check release environment
run: |
bash ./bin/check-release-environment
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.1.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 33
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cossistant%2Fcossistant-c900ffbc82ffd89019232262f32542bdbc0935402f81c6906c7e36758abf2870.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cossistant/cossistant-7b3d6ac4d210bf40edf7488d3289e8c01b599546238c7fe043693acf45024a8e.yml
openapi_spec_hash: 75ae8e41f479e15864261b5e2673d784
config_hash: f15a985c7bb8066e2c8b54b9c4aa4373
config_hash: d94c51c9ef5252aeac10435aa07f0240
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Changelog

## 0.1.0 (2026-05-19)

Full Changelog: [v0.0.1...v0.1.0](https://github.com/cossistantcom/cossistant-typescript/compare/v0.0.1...v0.1.0)

### Features

* support setting headers via env ([102db66](https://github.com/cossistantcom/cossistant-typescript/commit/102db66ce4341fca154436bfcde58f852bb3d81d))


### Bug Fixes

* **typescript:** upgrade tsc-multi so that it works with Node 26 ([af53a34](https://github.com/cossistantcom/cossistant-typescript/commit/af53a344ad9deeb1b81e363b5261885c484e3433))


### Chores

* **ci:** skip lint on metadata-only changes ([931d225](https://github.com/cossistantcom/cossistant-typescript/commit/931d225af0dd66e2acc341f382ea5580f65c5697))
* **format:** run eslint and prettier separately ([1139794](https://github.com/cossistantcom/cossistant-typescript/commit/11397940592836c54b0556f3e74c15275b53d131))
* **formatter:** run prettier and eslint separately ([dbfc894](https://github.com/cossistantcom/cossistant-typescript/commit/dbfc894689ce63c605e2650f72412ddf8cb0c886))
* **internal:** codegen related update ([3c55357](https://github.com/cossistantcom/cossistant-typescript/commit/3c553576f279b5b6470be3c89d5a26afe999e39e))
* **internal:** codegen related update ([4b96c7d](https://github.com/cossistantcom/cossistant-typescript/commit/4b96c7dd9cf0080171a96defec6c2a817871c60d))
* **internal:** more robust bootstrap script ([7c3294b](https://github.com/cossistantcom/cossistant-typescript/commit/7c3294b190164bb91f555f0e5407a73b79d44f62))
* redact api-key headers in debug logs ([7562285](https://github.com/cossistantcom/cossistant-typescript/commit/75622853c9d0cb169e1abf64a2e0cca94a608e62))
* **tests:** remove redundant File import ([faba521](https://github.com/cossistantcom/cossistant-typescript/commit/faba5212d8bfe2b866a3d7de44d57e9b258b2e07))
* update SDK settings ([8f90213](https://github.com/cossistantcom/cossistant-typescript/commit/8f90213a6b891c9848753b078aaf3a010e4c8bfc))
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ If you’d like to use the repository from source, you can either install from g
To install via git:

```sh
$ npm install git+ssh://git@github.com:stainless-sdks/cossistant-typescript.git
$ npm install git+ssh://git@github.com:cossistantcom/cossistant-typescript.git
```

Alternatively, to link a local copy of the repo:

```sh
# Clone
$ git clone https://www.github.com/stainless-sdks/cossistant-typescript
$ git clone https://www.github.com/cossistantcom/cossistant-typescript
$ cd cossistant-typescript

# With yarn
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ It is generated with [Stainless](https://www.stainless.com/).
## Installation

```sh
npm install git+ssh://git@github.com:stainless-sdks/cossistant-typescript.git
npm install git+ssh://git@github.com:cossistantcom/cossistant-typescript.git
```

> [!NOTE]
Expand Down Expand Up @@ -335,7 +335,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con

We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/cossistant-typescript/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/cossistantcom/cossistant-typescript/issues) with questions, bugs, or suggestions.

## Requirements

Expand Down
18 changes: 18 additions & 0 deletions bin/check-release-environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

errors=()

lenErrors=${#errors[@]}

if [[ lenErrors -gt 0 ]]; then
echo -e "Found the following errors in the release environment:\n"

for error in "${errors[@]}"; do
echo -e "- $error\n"
done

exit 1
fi

echo "The environment is ready to push releases!"

3 changes: 0 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @ts-check
import tseslint from 'typescript-eslint';
import unusedImports from 'eslint-plugin-unused-imports';
import prettier from 'eslint-plugin-prettier';

export default tseslint.config(
{
Expand All @@ -14,11 +13,9 @@ export default tseslint.config(
plugins: {
'@typescript-eslint': tseslint.plugin,
'unused-imports': unusedImports,
prettier,
},
rules: {
'no-unused-vars': 'off',
'prettier/prettier': 'error',
'unused-imports/no-unused-imports': 'error',
'no-restricted-imports': [
'error',
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "cossistant",
"version": "0.0.1",
"version": "0.1.0",
"description": "The official TypeScript library for the Cossistant API",
"author": "Cossistant <>",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"type": "commonjs",
"repository": "github:stainless-sdks/cossistant-typescript",
"repository": "github:cossistantcom/cossistant-typescript",
"license": "Apache-2.0",
"packageManager": "pnpm@10.30.1",
"files": [
Expand Down Expand Up @@ -36,15 +36,14 @@
"@typescript-eslint/eslint-plugin": "8.31.1",
"@typescript-eslint/parser": "8.31.1",
"eslint": "^9.39.1",
"eslint-plugin-prettier": "^5.4.1",
"eslint-plugin-unused-imports": "^4.1.4",
"iconv-lite": "^0.6.3",
"jest": "^29.4.0",
"prettier": "^3.0.0",
"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.9/tsc-multi.tgz",
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.11/tsc-multi.tgz",
"tsconfig-paths": "^4.0.0",
"tslib": "^2.8.1",
"typescript": "5.8.3",
Expand Down
Loading
Loading