Skip to content

Commit 31c2bcd

Browse files
release: 0.1.0-alpha.9 (#10)
* codegen metadata * chore(ci): only run for pushes and fork pull requests * chore(client): improve path param validation * feat(api): add staging environment * codegen metadata * chore(internal): codegen related update * feat(api): add proper pagination * release: 0.1.0-alpha.9 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent bf484e7 commit 31c2bcd

File tree

27 files changed

+508
-122
lines changed

27 files changed

+508
-122
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
timeout-minutes: 10
1818
name: lint
1919
runs-on: ${{ github.repository == 'stainless-sdks/stainless-v0-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2021
steps:
2122
- uses: actions/checkout@v4
2223

@@ -35,6 +36,7 @@ jobs:
3536
timeout-minutes: 5
3637
name: build
3738
runs-on: ${{ github.repository == 'stainless-sdks/stainless-v0-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
39+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
3840
permissions:
3941
contents: read
4042
id-token: write
@@ -70,6 +72,7 @@ jobs:
7072
timeout-minutes: 10
7173
name: test
7274
runs-on: ${{ github.repository == 'stainless-sdks/stainless-v0-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
75+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
7376
steps:
7477
- uses: actions/checkout@v4
7578

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.8"
2+
".": "0.1.0-alpha.9"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 17
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-0eed0c3c47bb630ed692f2de1c5228e3e1a29f52489851aecc0b9f9f3b5bce61.yml
33
openapi_spec_hash: c62aa08b1662b81b6ede9e298e4f1882
4-
config_hash: e98f7f125d7eb350114b570438cb368c
4+
config_hash: 90634c69edf6c56b14785217d1b0c0e0

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## 0.1.0-alpha.9 (2025-07-02)
4+
5+
Full Changelog: [v0.1.0-alpha.8...v0.1.0-alpha.9](https://github.com/stainless-api/stainless-api-typescript/compare/v0.1.0-alpha.8...v0.1.0-alpha.9)
6+
7+
### Features
8+
9+
* **api:** add proper pagination ([0cf6809](https://github.com/stainless-api/stainless-api-typescript/commit/0cf680917852d9757f157d38ee608039abff8f50))
10+
* **api:** add staging environment ([4b6d770](https://github.com/stainless-api/stainless-api-typescript/commit/4b6d77045a3b9c0683fb0fee8cdf900d34f53e27))
11+
12+
13+
### Chores
14+
15+
* **ci:** only run for pushes and fork pull requests ([9f9f180](https://github.com/stainless-api/stainless-api-typescript/commit/9f9f180c2fe3919de021486b7602550a085b6388))
16+
* **client:** improve path param validation ([b9f7c44](https://github.com/stainless-api/stainless-api-typescript/commit/b9f7c446279fa9f216c8d57d82c919f029275321))
17+
* **internal:** codegen related update ([3e3dc52](https://github.com/stainless-api/stainless-api-typescript/commit/3e3dc5259ed5f54d45635b084b3506d91c6692a2))
18+
319
## 0.1.0-alpha.8 (2025-06-27)
420

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import Stainless from '@stainless-api/sdk';
2424

2525
const client = new Stainless({
2626
apiKey: process.env['STAINLESS_API_KEY'], // This is the default and can be omitted
27+
environment: 'staging', // defaults to 'production'
2728
});
2829

2930
const buildObject = await client.builds.create({ project: 'project', revision: 'string' });
@@ -41,6 +42,7 @@ import Stainless from '@stainless-api/sdk';
4142

4243
const client = new Stainless({
4344
apiKey: process.env['STAINLESS_API_KEY'], // This is the default and can be omitted
45+
environment: 'staging', // defaults to 'production'
4446
});
4547

4648
const params: Stainless.BuildCreateParams = { project: 'project', revision: 'string' };

api.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Methods:
1212
- <code title="post /v0/projects">client.projects.<a href="./src/resources/projects/projects.ts">create</a>({ ...params }) -> ProjectCreateResponse</code>
1313
- <code title="get /v0/projects/{project}">client.projects.<a href="./src/resources/projects/projects.ts">retrieve</a>({ ...params }) -> ProjectRetrieveResponse</code>
1414
- <code title="patch /v0/projects/{project}">client.projects.<a href="./src/resources/projects/projects.ts">update</a>({ ...params }) -> ProjectUpdateResponse</code>
15-
- <code title="get /v0/projects">client.projects.<a href="./src/resources/projects/projects.ts">list</a>({ ...params }) -> ProjectListResponse</code>
15+
- <code title="get /v0/projects">client.projects.<a href="./src/resources/projects/projects.ts">list</a>({ ...params }) -> ProjectListResponsesList</code>
1616

1717
## Branches
1818

@@ -43,14 +43,13 @@ Types:
4343

4444
- <code><a href="./src/resources/builds/builds.ts">BuildObject</a></code>
4545
- <code><a href="./src/resources/builds/builds.ts">BuildTarget</a></code>
46-
- <code><a href="./src/resources/builds/builds.ts">BuildListResponse</a></code>
4746
- <code><a href="./src/resources/builds/builds.ts">BuildCompareResponse</a></code>
4847

4948
Methods:
5049

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

5655
## Diagnostics
@@ -61,7 +60,7 @@ Types:
6160

6261
Methods:
6362

64-
- <code title="get /v0/builds/{buildId}/diagnostics">client.builds.diagnostics.<a href="./src/resources/builds/diagnostics.ts">list</a>(buildID, { ...params }) -> DiagnosticListResponse</code>
63+
- <code title="get /v0/builds/{buildId}/diagnostics">client.builds.diagnostics.<a href="./src/resources/builds/diagnostics.ts">list</a>(buildID, { ...params }) -> DiagnosticListResponsesList</code>
6564

6665
## TargetOutputs
6766

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stainless-api/sdk",
3-
"version": "0.1.0-alpha.8",
3+
"version": "0.1.0-alpha.9",
44
"description": "The official TypeScript library for the Stainless API",
55
"author": "Stainless <>",
66
"types": "dist/index.d.ts",

packages/mcp-server/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ You can run the MCP Server directly via `npx`:
1111
```sh
1212
export STAINLESS_API_KEY="My API Key"
1313
export STAINLESS_PROJECT="example-project"
14+
export STAINLESS_ENVIRONMENT="production"
1415
npx -y @stainless-api/mcp@latest
1516
```
1617

@@ -29,7 +30,8 @@ For clients with a configuration JSON, it might look something like this:
2930
"args": ["-y", "@stainless-api/mcp", "--client=claude", "--tools=all"],
3031
"env": {
3132
"STAINLESS_API_KEY": "My API Key",
32-
"STAINLESS_PROJECT": "example-project"
33+
"STAINLESS_PROJECT": "example-project",
34+
"STAINLESS_ENVIRONMENT": "production"
3335
}
3436
}
3537
}

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stainless-api/mcp",
3-
"version": "0.1.0-alpha.8",
3+
"version": "0.1.0-alpha.9",
44
"description": "The official MCP Server for the Stainless API",
55
"author": "Stainless <>",
66
"types": "dist/index.d.ts",

packages/mcp-server/src/server.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export { endpoints } from './tools';
2626
export const server = new McpServer(
2727
{
2828
name: 'stainless_api_sdk_api',
29-
version: '0.1.0-alpha.8',
29+
version: '0.1.0-alpha.9',
3030
},
3131
{
3232
capabilities: {
@@ -67,7 +67,11 @@ export function init(params: {
6767

6868
const client =
6969
params.client ||
70-
new Stainless({ project: readEnv('STAINLESS_PROJECT'), defaultHeaders: { 'X-Stainless-MCP': 'true' } });
70+
new Stainless({
71+
project: readEnv('STAINLESS_PROJECT'),
72+
environment: (readEnv('STAINLESS_ENVIRONMENT') || undefined) as any,
73+
defaultHeaders: { 'X-Stainless-MCP': 'true' },
74+
});
7175

7276
server.setRequestHandler(ListToolsRequestSchema, async () => {
7377
return {

0 commit comments

Comments
 (0)