diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 535c4a7..774b0bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: lint: timeout-minutes: 10 name: lint - runs-on: ${{ github.repository == 'stainless-sdks/browserbase-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -37,7 +37,7 @@ jobs: build: timeout-minutes: 5 name: build - runs-on: ${{ github.repository == 'stainless-sdks/browserbase-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} 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 @@ -77,7 +77,7 @@ jobs: test: timeout-minutes: 10 name: test - runs-on: ${{ github.repository == 'stainless-sdks/browserbase-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7731f20..9a61761 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.16.0" + ".": "2.17.0" } diff --git a/.stats.yml b/.stats.yml index 1ac83c1..fe2b5d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 38 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/browserbase-98cc68ad9afa71355baf2b31f305a5e2f3a315fd311c96659405eff96b8f2b1e.yml -openapi_spec_hash: 71dfbc1021a33dd7fc9d82844965b1b3 -config_hash: 6209a285dd5980f5c418fe6575723aef +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/browserbase-9ab1245807a367839f2cfe57a7e9609459282dc073ee4c7e0497e129166843be.yml +openapi_spec_hash: 1f01c7cc4211cd41908d00eaa249b62d +config_hash: 12a5eb5ac818623045ae77075ee3dd53 diff --git a/CHANGELOG.md b/CHANGELOG.md index 90b28d0..ffe2fe6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 2.17.0 (2026-07-18) + +Full Changelog: [v2.16.0...v2.17.0](https://github.com/browserbase/sdk-node/compare/v2.16.0...v2.17.0) + +### Features + +* name session-create timeout param for SDK codegen ([78f6fab](https://github.com/browserbase/sdk-node/commit/78f6fab50f0e4998f06a3e9e303a7a85663e8089)) +* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([27b689b](https://github.com/browserbase/sdk-node/commit/27b689b3998e15cbe654f0fc90e1e9c3aecc5899)) + ## 2.16.0 (2026-07-14) Full Changelog: [v2.15.0...v2.16.0](https://github.com/browserbase/sdk-node/compare/v2.15.0...v2.16.0) diff --git a/package-lock.json b/package-lock.json index 494fec1..53e0aad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@browserbasehq/sdk", - "version": "2.16.0", + "version": "2.17.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@browserbasehq/sdk", - "version": "2.16.0", + "version": "2.17.0", "dependencies": { "@types/node": "^18.11.18", "@types/node-fetch": "^2.6.4", diff --git a/package.json b/package.json index 7733df7..342b6a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@browserbasehq/sdk", - "version": "2.16.0", + "version": "2.17.0", "description": "The official Node.js library for the Browserbase API", "author": "Browserbase ", "license": "Apache-2.0", diff --git a/src/resources/sessions/sessions.ts b/src/resources/sessions/sessions.ts index 3a9e979..8245c89 100644 --- a/src/resources/sessions/sessions.ts +++ b/src/resources/sessions/sessions.ts @@ -24,16 +24,17 @@ export class Sessions extends APIResource { /** * Create a Session */ - create(body?: SessionCreateParams, options?: Core.RequestOptions): Core.APIPromise; + create(params?: SessionCreateParams, options?: Core.RequestOptions): Core.APIPromise; create(options?: Core.RequestOptions): Core.APIPromise; create( - body: SessionCreateParams | Core.RequestOptions = {}, + params: SessionCreateParams | Core.RequestOptions = {}, options?: Core.RequestOptions, ): Core.APIPromise { - if (isRequestOptions(body)) { - return this.create({}, body); + if (isRequestOptions(params)) { + return this.create({}, params); } - return this._client.post('/v1/sessions', { body, ...options }); + const { api_timeout, ...body } = params; + return this._client.post('/v1/sessions', { body: { timeout: api_timeout, ...body }, ...options }); } /** @@ -230,7 +231,7 @@ export interface SessionCreateParams { * Duration in seconds after which the session will automatically end. Defaults to * the Project's `defaultTimeout`. */ - timeout?: number; + api_timeout?: number; /** * Arbitrary user metadata to attach to the session. To learn more about user diff --git a/src/version.ts b/src/version.ts index f9cc5c1..acffe37 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '2.16.0'; // x-release-please-version +export const VERSION = '2.17.0'; // x-release-please-version diff --git a/tests/api-resources/sessions/sessions.test.ts b/tests/api-resources/sessions/sessions.test.ts index 3f0d171..ce8cd41 100644 --- a/tests/api-resources/sessions/sessions.test.ts +++ b/tests/api-resources/sessions/sessions.test.ts @@ -64,7 +64,7 @@ describe('resource sessions', () => { ], proxySettings: { caCertificates: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'] }, region: 'us-west-2', - timeout: 60, + api_timeout: 60, userMetadata: { foo: 'bar' }, }, { path: '/_stainless_unknown_path' },