Skip to content

Commit c67ce2c

Browse files
release: 1.9.0 (#719)
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent daae454 commit c67ce2c

14 files changed

Lines changed: 148 additions & 14 deletions

File tree

.release-please-manifest.json

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

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 117
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-8704a652545c3831c8b7e246ec17f1a626b59911eb5701ddc922ca6cae1c8d57.yml
3-
openapi_spec_hash: e609bc5ed3fdce498bc7d16921bbba5e
4-
config_hash: eb28692edd68a6ae95cf92af931c9976
1+
configured_endpoints: 118
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-dd0f43e15cb67179deaf86f83ae04c6fae4ff858ee33e82a3b89231566cdc5bb.yml
3+
openapi_spec_hash: 569176c1c4f48efd25a44fa526fad9d1
4+
config_hash: cbda3692cb48ab8582a0df1674b9e5c8

CHANGELOG.md

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

3+
## 1.9.0 (2026-02-25)
4+
5+
Full Changelog: [v1.8.1...v1.9.0](https://github.com/runloopai/api-client-ts/compare/v1.8.1...v1.9.0)
6+
7+
### Features
8+
9+
* Add AI gateway and MCP gateway flags to network policy create ([#7638](https://github.com/runloopai/api-client-ts/issues/7638)) ([5542b72](https://github.com/runloopai/api-client-ts/commit/5542b727869a411b7828c2779f5f683e4c35f3ea))
10+
11+
12+
### Bug Fixes
13+
14+
* **docs/contributing:** correct pnpm link command ([df98444](https://github.com/runloopai/api-client-ts/commit/df98444d096ae0fb8d737476ebb506122e3426b8))
15+
* **internal:** skip tests that depend on mock server ([284aac3](https://github.com/runloopai/api-client-ts/commit/284aac38f7f281f096ebb2bd4e5605df0db77a71))
16+
* workflow issues for npm stable tag and docs tar ([#721](https://github.com/runloopai/api-client-ts/issues/721)) ([2c5e7a4](https://github.com/runloopai/api-client-ts/commit/2c5e7a40f2b1cbcb73bb3ec17e2f4dd6e6e2ed6d))
17+
18+
19+
### Chores
20+
21+
* Add archive method to stainless ([#7537](https://github.com/runloopai/api-client-ts/issues/7537)) ([b68ac03](https://github.com/runloopai/api-client-ts/commit/b68ac035f2d72bee47c2790c8c814e15e4ea4a1e))
22+
* allow specifying smoketests jest filter to workflow ([#722](https://github.com/runloopai/api-client-ts/issues/722)) ([b9d117b](https://github.com/runloopai/api-client-ts/commit/b9d117b23b5da12b38d7bc5e138079cedb40622b))
23+
* **documentation:** fixed bug in doc publishing ([#720](https://github.com/runloopai/api-client-ts/issues/720)) ([1eeb486](https://github.com/runloopai/api-client-ts/commit/1eeb486190d5184e7a9b8c363b68893c5492bf57))
24+
* **scenarios:** make scenario status enum instead of string ([#7552](https://github.com/runloopai/api-client-ts/issues/7552)) ([c5b244c](https://github.com/runloopai/api-client-ts/commit/c5b244ce0f502984420758c63e7a7c55760026f8))
25+
* update mock server docs ([875216d](https://github.com/runloopai/api-client-ts/commit/875216d63a50d030df6d5d3233a364a61b1b82b1))
26+
327
## 1.8.1 (2026-02-19)
428

529
Full Changelog: [v1.8.0...v1.8.1](https://github.com/runloopai/api-client-ts/compare/v1.8.0...v1.8.1)

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ $ yarn link @runloop/api-client
6060
# With pnpm
6161
$ pnpm link --global
6262
$ cd ../my-package
63-
$ pnpm link -global @runloop/api-client
63+
$ pnpm link --global @runloop/api-client
6464
```
6565

6666
## Running tests
6767

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

7070
```sh
71-
$ npx prism mock path/to/your/openapi.yml
71+
$ ./scripts/mock
7272
```
7373

7474
```sh

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ Methods:
245245
- <code title="get /v1/scenarios/{id}">client.scenarios.<a href="./src/resources/scenarios/scenarios.ts">retrieve</a>(id) -> ScenarioView</code>
246246
- <code title="post /v1/scenarios/{id}">client.scenarios.<a href="./src/resources/scenarios/scenarios.ts">update</a>(id, { ...params }) -> ScenarioView</code>
247247
- <code title="get /v1/scenarios">client.scenarios.<a href="./src/resources/scenarios/scenarios.ts">list</a>({ ...params }) -> ScenarioViewsScenariosCursorIDPage</code>
248+
- <code title="post /v1/scenarios/{id}/archive">client.scenarios.<a href="./src/resources/scenarios/scenarios.ts">archive</a>(id) -> ScenarioView</code>
248249
- <code title="get /v1/scenarios/list_public">client.scenarios.<a href="./src/resources/scenarios/scenarios.ts">listPublic</a>({ ...params }) -> ScenarioViewsScenariosCursorIDPage</code>
249250
- <code title="post /v1/scenarios/start_run">client.scenarios.<a href="./src/resources/scenarios/scenarios.ts">startRun</a>({ ...params }) -> ScenarioRunView</code>
250251

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@runloop/api-client",
3-
"version": "1.8.1",
3+
"version": "1.9.0",
44
"description": "The official TypeScript library for the Runloop API",
55
"author": "Runloop <support@runloop.ai>",
66
"types": "dist/sdk.d.ts",

src/resources/devboxes/devboxes.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,12 @@ export interface TunnelView {
10241024
*/
10251025
create_time_ms: number;
10261026

1027+
/**
1028+
* When true, HTTP traffic through the tunnel counts as activity for idle lifecycle
1029+
* policies, resetting the idle timer.
1030+
*/
1031+
http_keep_alive: boolean;
1032+
10271033
/**
10281034
* The encrypted tunnel key used to construct the tunnel URL. URL format:
10291035
* https://{port}-{tunnel_key}.tunnel.runloop.{domain}
@@ -1221,6 +1227,12 @@ export namespace DevboxCreateParams {
12211227
* Authentication mode for the tunnel. Defaults to 'public' if not specified.
12221228
*/
12231229
auth_mode?: 'open' | 'authenticated' | null;
1230+
1231+
/**
1232+
* When true, HTTP traffic through the tunnel counts as activity for idle lifecycle
1233+
* policies, resetting the idle timer. Defaults to true if not specified.
1234+
*/
1235+
http_keep_alive?: boolean | null;
12241236
}
12251237
}
12261238

@@ -1271,6 +1283,12 @@ export interface DevboxEnableTunnelParams {
12711283
* Authentication mode for the tunnel. Defaults to 'public' if not specified.
12721284
*/
12731285
auth_mode?: 'open' | 'authenticated' | null;
1286+
1287+
/**
1288+
* When true, HTTP traffic through the tunnel counts as activity for idle lifecycle
1289+
* policies, resetting the idle timer. Defaults to true if not specified.
1290+
*/
1291+
http_keep_alive?: boolean | null;
12741292
}
12751293

12761294
/**

src/resources/network-policies.ts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ export interface NetworkPolicyCreateParameters {
8888
*/
8989
name: string;
9090

91+
/**
92+
* (Optional) If true, allows devbox egress to the AI credential gateway for
93+
* credential proxying. Defaults to false.
94+
*/
95+
allow_ai_gateway?: boolean | null;
96+
9197
/**
9298
* (Optional) If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults
9399
* to false.
@@ -101,6 +107,12 @@ export interface NetworkPolicyCreateParameters {
101107
*/
102108
allow_devbox_to_devbox?: boolean | null;
103109

110+
/**
111+
* (Optional) If true, allows devbox egress to the MCP hub for MCP server access.
112+
* Defaults to false.
113+
*/
114+
allow_mcp_gateway?: boolean | null;
115+
104116
/**
105117
* (Optional) DNS-based allow list with wildcard support. Examples: ['github.com',
106118
* '*.npmjs.org'].
@@ -138,6 +150,11 @@ export interface NetworkPolicyListView {
138150
* Parameters for updating an existing NetworkPolicy. All fields are optional.
139151
*/
140152
export interface NetworkPolicyUpdateParameters {
153+
/**
154+
* If true, allows devbox egress to the AI credential gateway.
155+
*/
156+
allow_ai_gateway?: boolean | null;
157+
141158
/**
142159
* If true, all egress traffic is allowed (ALLOW_ALL policy).
143160
*/
@@ -148,6 +165,11 @@ export interface NetworkPolicyUpdateParameters {
148165
*/
149166
allow_devbox_to_devbox?: boolean | null;
150167

168+
/**
169+
* If true, allows devbox egress to the MCP hub.
170+
*/
171+
allow_mcp_gateway?: boolean | null;
172+
151173
/**
152174
* Updated DNS-based allow list with wildcard support. Examples: ['github.com',
153175
* '*.npmjs.org'].
@@ -206,6 +228,12 @@ export namespace NetworkPolicyView {
206228
* The egress rules for this policy.
207229
*/
208230
export interface Egress {
231+
/**
232+
* If true, allows devbox egress to the AI credential gateway for credential
233+
* proxying.
234+
*/
235+
allow_ai_gateway: boolean;
236+
209237
/**
210238
* If true, all egress traffic is allowed and other fields are ignored. Used for
211239
* ALLOW_ALL policies.
@@ -217,6 +245,11 @@ export namespace NetworkPolicyView {
217245
*/
218246
allow_devbox_to_devbox: boolean;
219247

248+
/**
249+
* If true, allows devbox egress to the MCP hub for MCP server access.
250+
*/
251+
allow_mcp_gateway: boolean;
252+
220253
/**
221254
* DNS-based allow list with wildcard support. Examples: ['github.com',
222255
* '*.npmjs.org', 'api.openai.com']. Empty list with allow_all=false means no
@@ -233,6 +266,12 @@ export interface NetworkPolicyCreateParams {
233266
*/
234267
name: string;
235268

269+
/**
270+
* (Optional) If true, allows devbox egress to the AI credential gateway for
271+
* credential proxying. Defaults to false.
272+
*/
273+
allow_ai_gateway?: boolean | null;
274+
236275
/**
237276
* (Optional) If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults
238277
* to false.
@@ -246,6 +285,12 @@ export interface NetworkPolicyCreateParams {
246285
*/
247286
allow_devbox_to_devbox?: boolean | null;
248287

288+
/**
289+
* (Optional) If true, allows devbox egress to the MCP hub for MCP server access.
290+
* Defaults to false.
291+
*/
292+
allow_mcp_gateway?: boolean | null;
293+
249294
/**
250295
* (Optional) DNS-based allow list with wildcard support. Examples: ['github.com',
251296
* '*.npmjs.org'].
@@ -259,6 +304,11 @@ export interface NetworkPolicyCreateParams {
259304
}
260305

261306
export interface NetworkPolicyUpdateParams {
307+
/**
308+
* If true, allows devbox egress to the AI credential gateway.
309+
*/
310+
allow_ai_gateway?: boolean | null;
311+
262312
/**
263313
* If true, all egress traffic is allowed (ALLOW_ALL policy).
264314
*/
@@ -269,6 +319,11 @@ export interface NetworkPolicyUpdateParams {
269319
*/
270320
allow_devbox_to_devbox?: boolean | null;
271321

322+
/**
323+
* If true, allows devbox egress to the MCP hub.
324+
*/
325+
allow_mcp_gateway?: boolean | null;
326+
272327
/**
273328
* Updated DNS-based allow list with wildcard support. Examples: ['github.com',
274329
* '*.npmjs.org'].

src/resources/scenarios/scenarios.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ export class Scenarios extends APIResource {
8888
});
8989
}
9090

91+
/**
92+
* Archive a previously created Scenario. The scenario will no longer appear in
93+
* list endpoints but can still be retrieved by ID.
94+
*/
95+
archive(id: string, options?: Core.RequestOptions): Core.APIPromise<ScenarioView> {
96+
return this._client.post(`/v1/scenarios/${id}/archive`, options);
97+
}
98+
9199
/**
92100
* List all public scenarios matching filter.
93101
*/
@@ -422,9 +430,10 @@ export interface ScenarioView {
422430
scoring_contract: ScoringContract;
423431

424432
/**
425-
* The state of the scenario.
433+
* Whether the scenario is active or archived. Archived scenarios are excluded from
434+
* listings and cannot be updated.
426435
*/
427-
status: string;
436+
status: 'active' | 'archived';
428437

429438
/**
430439
* The Environment in which the Scenario is run.

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '1.8.1'; // x-release-please-version
1+
export const VERSION = '1.9.0'; // x-release-please-version

0 commit comments

Comments
 (0)