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
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/albot-api-sdk-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v4
Expand All @@ -41,7 +41,7 @@ jobs:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v4
Expand All @@ -55,14 +55,18 @@ jobs:
run: ./scripts/build

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

- name: Upload tarball
if: github.repository == 'stainless-sdks/albot-api-sdk-typescript'
if: |-
github.repository == 'stainless-sdks/albot-api-sdk-typescript' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
Expand All @@ -74,7 +78,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/albot-api-sdk-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v4
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 == 'ALbot-developers/api-sdk-ts' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v6

- 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"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 42
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot%2Falbot-api-sdk-c95565309be86cb2be3d834f64e61ac856f60560348abc7aee04b8541fe771cc.yml
openapi_spec_hash: f5a9a8a910c9790d2130912d4a47ed3a
config_hash: bd0b9f9ae8c379a36142357e0bdfca6c
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot%2Falbot-api-sdk-dc42745ee5f76d795fe7d2f68916454fd5a0c46c528d0623287ef7a81caf1a95.yml
openapi_spec_hash: bff8fe1a3dd42ed873679606eb03dd7f
config_hash: 81730351b7e2595cd32ea3415adb0bee
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Changelog

## 0.1.0 (2026-03-11)

Full Changelog: [v0.0.1...v0.1.0](https://github.com/ALbot-developers/api-sdk-ts/compare/v0.0.1...v0.1.0)

### Features

* **api:** api update ([d93a99b](https://github.com/ALbot-developers/api-sdk-ts/commit/d93a99b7759e28a848fe16d069fae1488211e4d2))
* **api:** manual updates ([018f10e](https://github.com/ALbot-developers/api-sdk-ts/commit/018f10e675e172f5fd84a1b7b83a1027e9a2dc31))


### Bug Fixes

* **mcp:** correct code tool API endpoint ([45fa669](https://github.com/ALbot-developers/api-sdk-ts/commit/45fa6699978a95a9300b535228ba91df1b79db18))
* **mcp:** return correct lines on typescript errors ([429eece](https://github.com/ALbot-developers/api-sdk-ts/commit/429eeceb6cd0de1c1aaef40a51bf5a4e39990608))


### Chores

* **client:** fix logger property type ([2a005d2](https://github.com/ALbot-developers/api-sdk-ts/commit/2a005d2502504d74970ea6a0579cc100d3da7bea))
* configure new SDK language ([a108108](https://github.com/ALbot-developers/api-sdk-ts/commit/a1081087a3ad9181b73d52e43e28ac764ad6e8b5))
* **internal:** codegen related update ([209b699](https://github.com/ALbot-developers/api-sdk-ts/commit/209b699b7ce87326d4b2cd66cd79bd2121ad031b))
* **internal:** codegen related update ([87489a0](https://github.com/ALbot-developers/api-sdk-ts/commit/87489a0e64c9cf299fecb7f1460f864d10addef0))
* **internal:** upgrade eslint ([b5509c1](https://github.com/ALbot-developers/api-sdk-ts/commit/b5509c111c5074034dd994af1f7b99e56bf1472f))
* update SDK settings ([199e02f](https://github.com/ALbot-developers/api-sdk-ts/commit/199e02fec8a4d810ed4c1fe71ad61a624d93f135))
14 changes: 4 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ 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/albot-api-sdk-typescript.git
$ npm install git+ssh://git@github.com:ALbot-developers/api-sdk-ts.git
```

Alternatively, to link a local copy of the repo:

```sh
# Clone
$ git clone https://www.github.com/stainless-sdks/albot-api-sdk-typescript
$ cd albot-api-sdk-typescript
$ git clone https://www.github.com/ALbot-developers/api-sdk-ts
$ cd api-sdk-ts

# With yarn
$ yarn link
Expand All @@ -60,17 +60,11 @@ $ yarn link albot-api-sdk
# With pnpm
$ pnpm link --global
$ cd ../my-package
$ pnpm link -global albot-api-sdk
$ pnpm link --global albot-api-sdk
```

## Running tests

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

```sh
$ npx prism mock path/to/your/openapi.yml
```

```sh
$ yarn run test
```
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2025 Albot API SDK
Copyright 2026 Albot API SDK

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
24 changes: 13 additions & 11 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/albot-api-sdk-typescript.git
npm install git+ssh://git@github.com:ALbot-developers/api-sdk-ts.git
```

> [!NOTE]
Expand Down Expand Up @@ -60,15 +60,17 @@ a subclass of `APIError` will be thrown:

<!-- prettier-ignore -->
```ts
const urlAPIResponse = await client.oauth2.redirect({ redirect: 'REPLACE_ME' }).catch(async (err) => {
if (err instanceof AlbotAPISDK.APIError) {
console.log(err.status); // 400
console.log(err.name); // BadRequestError
console.log(err.headers); // {server: 'nginx', ...}
} else {
throw err;
}
});
const urlAPIResponse = await client.oauth2
.redirect({ redirect: 'REPLACE_ME' })
.catch(async (err) => {
if (err instanceof AlbotAPISDK.APIError) {
console.log(err.status); // 400
console.log(err.name); // BadRequestError
console.log(err.headers); // {server: 'nginx', ...}
} else {
throw err;
}
});
```

Error codes are as follows:
Expand Down Expand Up @@ -338,7 +340,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/albot-api-sdk-typescript/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/ALbot-developers/api-sdk-ts/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!"

17 changes: 14 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "albot-api-sdk",
"version": "0.0.1",
"version": "0.1.0",
"description": "The official TypeScript library for the Albot API SDK API",
"author": "Albot API SDK <>",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"type": "commonjs",
"repository": "github:stainless-sdks/albot-api-sdk-typescript",
"repository": "github:ALbot-developers/api-sdk-ts",
"license": "Apache-2.0",
"packageManager": "yarn@1.22.22",
"files": [
Expand Down Expand Up @@ -35,7 +35,7 @@
"@types/node": "^20.17.6",
"@typescript-eslint/eslint-plugin": "8.31.1",
"@typescript-eslint/parser": "8.31.1",
"eslint": "^9.20.1",
"eslint": "^9.39.1",
"eslint-plugin-prettier": "^5.4.1",
"eslint-plugin-unused-imports": "^4.1.4",
"iconv-lite": "^0.6.3",
Expand All @@ -50,6 +50,17 @@
"typescript": "5.8.3",
"typescript-eslint": "8.31.1"
},
"overrides": {
"minimatch": "^9.0.5"
},
"pnpm": {
"overrides": {
"minimatch": "^9.0.5"
}
},
"resolutions": {
"minimatch": "^9.0.5"
},
"exports": {
".": {
"import": "./dist/index.mjs",
Expand Down
64 changes: 64 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"packages": {
".": {}
},
"$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json",
"include-v-in-tag": true,
"include-component-in-tag": false,
"versioning": "prerelease",
"prerelease": true,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": false,
"pull-request-header": "Automated Release PR",
"pull-request-title-pattern": "release: ${version}",
"changelog-sections": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "revert",
"section": "Reverts"
},
{
"type": "chore",
"section": "Chores"
},
{
"type": "docs",
"section": "Documentation"
},
{
"type": "style",
"section": "Styles"
},
{
"type": "refactor",
"section": "Refactors"
},
{
"type": "test",
"section": "Tests",
"hidden": true
},
{
"type": "build",
"section": "Build System"
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": true
}
],
"release-type": "node",
"extra-files": ["src/version.ts", "README.md"]
}
41 changes: 0 additions & 41 deletions scripts/mock

This file was deleted.

Loading
Loading