diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 93e2be7..f61d46c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.69.0" + ".": "0.70.0" } diff --git a/.stats.yml b/.stats.yml index 4424fe7..316f1e8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 120 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-cde481b2f320ce48f83db84ae96226b0e7568146c9387c4fefebf286ecb0dd0a.yml -openapi_spec_hash: 6bd86d767290fcd7e2a6aae26dff5417 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-ab4e7c50c41fefd891648fa84ba0258986f192ba1bde9f42cbdf487f64c4cc27.yml +openapi_spec_hash: b4bcd6557f7045ecff30b01e02d28ac5 config_hash: 03c7e57f268c750e2415831662e95969 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a22e07..4d0c897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.70.0 (2026-06-22) + +Full Changelog: [v0.69.0...v0.70.0](https://github.com/kernel/kernel-node-sdk/compare/v0.69.0...v0.70.0) + +### Features + +* Align browser-pool timeout/viewport/fill-rate contract with implementation; reject save_changes on update ([c3fe382](https://github.com/kernel/kernel-node-sdk/commit/c3fe38247a404a040812508e21c1252c9c421279)) + ## 0.69.0 (2026-06-18) Full Changelog: [v0.68.0...v0.69.0](https://github.com/kernel/kernel-node-sdk/compare/v0.68.0...v0.69.0) diff --git a/package.json b/package.json index 78cc415..ed4c30b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onkernel/sdk", - "version": "0.69.0", + "version": "0.70.0", "description": "The official TypeScript library for the Kernel API", "author": "Kernel <>", "types": "dist/index.d.ts", diff --git a/src/resources/browser-pools.ts b/src/resources/browser-pools.ts index d403564..e4c0619 100644 --- a/src/resources/browser-pools.ts +++ b/src/resources/browser-pools.ts @@ -213,7 +213,9 @@ export namespace BrowserPool { extensions?: Array; /** - * Percentage of the pool to fill per minute. Defaults to 10%. + * Percentage of the pool to fill per minute. Defaults to 10. The cap is 25 for + * most organizations but can be raised per-organization, so only the lower bound + * is enforced here. */ fill_rate_per_minute?: number; @@ -263,7 +265,7 @@ export namespace BrowserPool { /** * Default idle timeout in seconds for browsers acquired from this pool before they - * are destroyed. Defaults to 600 seconds if not specified + * are destroyed. Defaults to 600 seconds. Minimum 10, maximum 259200 (72 hours). */ timeout_seconds?: number; @@ -439,7 +441,9 @@ export interface BrowserPoolCreateParams { extensions?: Array; /** - * Percentage of the pool to fill per minute. Defaults to 10%. + * Percentage of the pool to fill per minute. Defaults to 10. The cap is 25 for + * most organizations but can be raised per-organization, so only the lower bound + * is enforced here. */ fill_rate_per_minute?: number; @@ -489,7 +493,7 @@ export interface BrowserPoolCreateParams { /** * Default idle timeout in seconds for browsers acquired from this pool before they - * are destroyed. Defaults to 600 seconds if not specified + * are destroyed. Defaults to 600 seconds. Minimum 10, maximum 259200 (72 hours). */ timeout_seconds?: number; @@ -531,7 +535,9 @@ export interface BrowserPoolUpdateParams { extensions?: Array; /** - * Percentage of the pool to fill per minute. Defaults to 10%. + * Percentage of the pool to fill per minute. Defaults to 10. The cap is 25 for + * most organizations but can be raised per-organization, so only the lower bound + * is enforced here. */ fill_rate_per_minute?: number; @@ -588,7 +594,7 @@ export interface BrowserPoolUpdateParams { /** * Default idle timeout in seconds for browsers acquired from this pool before they - * are destroyed. Defaults to 600 seconds if not specified + * are destroyed. Defaults to 600 seconds. Minimum 10, maximum 259200 (72 hours). */ timeout_seconds?: number; diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 8666f8a..e18de32 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -79,18 +79,18 @@ export interface BrowserProfile { */ export interface BrowserViewport { /** - * Browser window height in pixels. + * Browser window height in pixels. Any positive integer is accepted. */ height: number; /** - * Browser window width in pixels. + * Browser window width in pixels. Any positive integer is accepted. */ width: number; /** - * Display refresh rate in Hz. If omitted, automatically determined from width and - * height. + * Display refresh rate in Hz. Any positive integer is accepted; if omitted, + * automatically determined from width and height. */ refresh_rate?: number; } diff --git a/src/version.ts b/src/version.ts index f88b6d2..9d083b8 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.69.0'; // x-release-please-version +export const VERSION = '0.70.0'; // x-release-please-version diff --git a/tests/api-resources/browser-pools.test.ts b/tests/api-resources/browser-pools.test.ts index 3d8e3eb..ff87070 100644 --- a/tests/api-resources/browser-pools.test.ts +++ b/tests/api-resources/browser-pools.test.ts @@ -38,7 +38,7 @@ describe('resource browserPools', () => { proxy_id: 'proxy_id', start_url: 'https://example.com', stealth: true, - timeout_seconds: 60, + timeout_seconds: 10, viewport: { height: 800, width: 1280,