diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5f3243d..49f54a2 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.76.0" + ".": "0.76.1" } diff --git a/.stats.yml b/.stats.yml index 3f7dec3..c702819 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 125 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-ba32039d3975da7aa6d28e5184f0a44c9fbfe36ab7dbc71985d14e2ecc0867b9.yml -openapi_spec_hash: a9f32fc90c2add2ae85af828c298e35b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-db45aab5b114bc0848eab997c85bfc02a653be9f929f8d090ec24187462733ee.yml +openapi_spec_hash: 82f4282312699f8d54bec207e981efe8 config_hash: 06186eb40e0058a2a87ac251fc07415d diff --git a/CHANGELOG.md b/CHANGELOG.md index a8b606f..367d09b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.76.1 (2026-07-09) + +Full Changelog: [v0.76.0...v0.76.1](https://github.com/kernel/kernel-node-sdk/compare/v0.76.0...v0.76.1) + +### Documentation + +* **openapi:** describe unified concurrency limit, deprecate max_pooled_sessions (CUS-275) ([37d3e27](https://github.com/kernel/kernel-node-sdk/commit/37d3e277f98b068f23c5fc85e7b26269c254827c)) + ## 0.76.0 (2026-07-09) Full Changelog: [v0.75.0...v0.76.0](https://github.com/kernel/kernel-node-sdk/compare/v0.75.0...v0.76.0) diff --git a/package.json b/package.json index 7757d07..bc11462 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onkernel/sdk", - "version": "0.76.0", + "version": "0.76.1", "description": "The official TypeScript library for the Kernel API", "author": "Kernel <>", "types": "dist/index.d.ts", diff --git a/src/resources/organization/limits.ts b/src/resources/organization/limits.ts index 53f2f5c..f0948cb 100644 --- a/src/resources/organization/limits.ts +++ b/src/resources/organization/limits.ts @@ -9,8 +9,9 @@ import { RequestOptions } from '../../internal/request-options'; */ export class Limits extends APIResource { /** - * Get the organization's concurrent session ceiling and the default per-project - * concurrency cap applied to projects without an explicit override. + * Get the organization's concurrency limit — the maximum browsers running at once + * across on-demand sessions and browser pool reservations — and the default + * per-project concurrency cap applied to projects without an explicit override. */ retrieve(options?: RequestOptions): APIPromise { return this._client.get('/org/limits', options); @@ -19,8 +20,7 @@ export class Limits extends APIResource { /** * Set the default per-project concurrency cap applied to projects without an * explicit override. Set the value to 0 to remove the default; omit to leave it - * unchanged. The default cannot exceed the organization's concurrent session - * ceiling. + * unchanged. The default cannot exceed the organization's concurrency limit. */ update(body: LimitUpdateParams, options?: RequestOptions): APIPromise { return this._client.patch('/org/limits', { body, ...options }); @@ -29,7 +29,7 @@ export class Limits extends APIResource { export interface OrgLimits { /** - * Default maximum concurrent browser sessions applied to every project that has no + * Default maximum concurrent browsers applied to every project that has no * explicit per-project override. Null means no org-level default, so such projects * are uncapped (only the org-wide limit applies). Applies to existing and newly * created projects. @@ -37,8 +37,9 @@ export interface OrgLimits { default_project_max_concurrent_sessions?: number | null; /** - * The organization's effective concurrent browser session ceiling, from its plan - * or an override. Read-only and shared across all projects in the org; a + * The organization's effective concurrency limit — the maximum browsers running at + * once, covering both on-demand sessions and browser pool reservations — from its + * plan or an override. Read-only and shared across all projects in the org; a * per-project default cannot exceed it. */ max_concurrent_sessions?: number; @@ -46,18 +47,18 @@ export interface OrgLimits { export interface UpdateOrgLimitsRequest { /** - * Default maximum concurrent browser sessions for projects without an explicit - * override. Set to 0 to remove the default; omit to leave unchanged. Cannot exceed - * the organization's concurrent session ceiling. + * Default maximum concurrent browsers for projects without an explicit override. + * Set to 0 to remove the default; omit to leave unchanged. Cannot exceed the + * organization's concurrency limit. */ default_project_max_concurrent_sessions?: number | null; } export interface LimitUpdateParams { /** - * Default maximum concurrent browser sessions for projects without an explicit - * override. Set to 0 to remove the default; omit to leave unchanged. Cannot exceed - * the organization's concurrent session ceiling. + * Default maximum concurrent browsers for projects without an explicit override. + * Set to 0 to remove the default; omit to leave unchanged. Cannot exceed the + * organization's concurrency limit. */ default_project_max_concurrent_sessions?: number | null; } diff --git a/src/resources/projects/limits.ts b/src/resources/projects/limits.ts index 52ec16a..d1a3e53 100644 --- a/src/resources/projects/limits.ts +++ b/src/resources/projects/limits.ts @@ -49,14 +49,16 @@ export interface ProjectLimits { max_concurrent_invocations?: number | null; /** - * Maximum concurrent browser sessions for this project. Null means no - * project-level cap. + * Maximum concurrent browsers for this project, covering both on-demand sessions + * (`browsers.create()`) and browser pool reservations. Null means no project-level + * cap. */ max_concurrent_sessions?: number | null; /** - * Maximum pooled sessions capacity for this project. Null means no project-level - * cap. + * @deprecated Deprecated: pooled browsers now count toward + * `max_concurrent_sessions`. Always null once the unified concurrency limit is + * enabled for your organization. */ max_pooled_sessions?: number | null; } @@ -69,14 +71,16 @@ export interface UpdateProjectLimitsRequest { max_concurrent_invocations?: number | null; /** - * Maximum concurrent browser sessions for this project. Set to 0 to remove the - * cap; omit to leave unchanged. + * Maximum concurrent browsers for this project, covering both on-demand sessions + * and browser pool reservations. Set to 0 to remove the cap; omit to leave + * unchanged. */ max_concurrent_sessions?: number | null; /** - * Maximum pooled sessions capacity for this project. Set to 0 to remove the cap; - * omit to leave unchanged. + * @deprecated Deprecated: pooled browsers now count toward + * `max_concurrent_sessions`. Requests that set this field are rejected with a 400 + * once the unified concurrency limit is enabled for your organization. */ max_pooled_sessions?: number | null; } @@ -89,14 +93,16 @@ export interface LimitUpdateParams { max_concurrent_invocations?: number | null; /** - * Maximum concurrent browser sessions for this project. Set to 0 to remove the - * cap; omit to leave unchanged. + * Maximum concurrent browsers for this project, covering both on-demand sessions + * and browser pool reservations. Set to 0 to remove the cap; omit to leave + * unchanged. */ max_concurrent_sessions?: number | null; /** - * Maximum pooled sessions capacity for this project. Set to 0 to remove the cap; - * omit to leave unchanged. + * @deprecated Deprecated: pooled browsers now count toward + * `max_concurrent_sessions`. Requests that set this field are rejected with a 400 + * once the unified concurrency limit is enabled for your organization. */ max_pooled_sessions?: number | null; } diff --git a/src/version.ts b/src/version.ts index 2c80dbe..cf6494c 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.76.0'; // x-release-please-version +export const VERSION = '0.76.1'; // x-release-please-version