From 0e536f09ab1a8b54da212d3f530602efb5df08cc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 24 Mar 2026 02:56:35 +0000 Subject: [PATCH 1/5] chore(internal): update gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 6fdf500..46ab1e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .prism.log +.stdy.log node_modules yarn-error.log codegen.log From 4417a7212f71689e8eb7f31e6fbd14a2b3388cc3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 25 Mar 2026 02:31:15 +0000 Subject: [PATCH 2/5] chore(ci): skip lint on metadata-only changes Note that we still want to run tests, as these depend on the metadata. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 129e87b..4234163 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: timeout-minutes: 10 name: lint runs-on: ${{ github.repository == 'stainless-sdks/kernel-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} - if: github.event_name == 'push' || github.event.pull_request.head.repo.fork + 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@v6 @@ -38,7 +38,7 @@ jobs: timeout-minutes: 5 name: build runs-on: ${{ github.repository == 'stainless-sdks/kernel-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} - if: github.event_name == 'push' || github.event.pull_request.head.repo.fork + 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 id-token: write From 4425fd17c82a65519212e2abc78fc5e0af432f87 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 26 Mar 2026 14:39:08 +0000 Subject: [PATCH 3/5] feat: [kernel-1008] browser pools add custom policy --- .stats.yml | 4 ++-- src/resources/browser-pools.ts | 24 +++++++++++++++++++++++ tests/api-resources/browser-pools.test.ts | 2 ++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index be60802..8a5c9d0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 104 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-bb2ac8e0d3a1c08e8afcbcbad7cb733d0f84bd22a8d233c1ec3100a01ee078ae.yml -openapi_spec_hash: a83f7d1c422c85d6dc6158af7afe1d09 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-aeb5ea5c2632fe7fd905d509bc6cbb06999d17c458ec44ffd713935ba5b848f9.yml +openapi_spec_hash: fef45a8569f1d3de04c86e95b1112665 config_hash: 16e4457a0bb26e98a335a1c2a572290a diff --git a/src/resources/browser-pools.ts b/src/resources/browser-pools.ts index adae577..83a8e93 100644 --- a/src/resources/browser-pools.ts +++ b/src/resources/browser-pools.ts @@ -190,6 +190,14 @@ export namespace BrowserPool { */ size: number; + /** + * Custom Chrome enterprise policy overrides applied to all browsers in this pool. + * Keys are Chrome enterprise policy names; values must match their expected types. + * Blocked: kernel-managed policies (extensions, proxy, CDP/automation). See + * https://chromeenterprise.google/policies/ + */ + chrome_policy?: { [key: string]: unknown }; + /** * List of browser extensions to load into the session. Provide each by id or name. */ @@ -370,6 +378,14 @@ export interface BrowserPoolCreateParams { */ size: number; + /** + * Custom Chrome enterprise policy overrides applied to all browsers in this pool. + * Keys are Chrome enterprise policy names; values must match their expected types. + * Blocked: kernel-managed policies (extensions, proxy, CDP/automation). See + * https://chromeenterprise.google/policies/ + */ + chrome_policy?: { [key: string]: unknown }; + /** * List of browser extensions to load into the session. Provide each by id or name. */ @@ -446,6 +462,14 @@ export interface BrowserPoolUpdateParams { */ size: number; + /** + * Custom Chrome enterprise policy overrides applied to all browsers in this pool. + * Keys are Chrome enterprise policy names; values must match their expected types. + * Blocked: kernel-managed policies (extensions, proxy, CDP/automation). See + * https://chromeenterprise.google/policies/ + */ + chrome_policy?: { [key: string]: unknown }; + /** * Whether to discard all idle browsers and rebuild the pool immediately. Defaults * to false. diff --git a/tests/api-resources/browser-pools.test.ts b/tests/api-resources/browser-pools.test.ts index a3239d7..4bc1157 100644 --- a/tests/api-resources/browser-pools.test.ts +++ b/tests/api-resources/browser-pools.test.ts @@ -24,6 +24,7 @@ describe('resource browserPools', () => { test.skip('create: required and optional params', async () => { const response = await client.browserPools.create({ size: 10, + chrome_policy: { foo: 'bar' }, extensions: [{ id: 'id', name: 'name' }], fill_rate_per_minute: 0, headless: false, @@ -73,6 +74,7 @@ describe('resource browserPools', () => { test.skip('update: required and optional params', async () => { const response = await client.browserPools.update('id_or_name', { size: 10, + chrome_policy: { foo: 'bar' }, discard_all_idle: false, extensions: [{ id: 'id', name: 'name' }], fill_rate_per_minute: 0, From 302cab1ffd51d805a819313dacff719e6268a738 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 28 Mar 2026 04:02:28 +0000 Subject: [PATCH 4/5] chore(internal): codegen related update --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 078f09a..e5e2a93 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1220,9 +1220,9 @@ baseline-browser-mapping@^2.9.0: integrity sha512-B0xUquLkiGLgHhpPBqvl7GWegWBUNuujQ6kXd/r1U38ElPT6Ok8KZ8e+FpUGEc2ZoRQUzq/aUnaKFc/svWUGSg== brace-expansion@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.2.tgz#54fc53237a613d854c7bd37463aad17df87214e7" - integrity sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ== + version "2.0.3" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.3.tgz#0493338bdd58e319b1039c67cf7ee439892c01d9" + integrity sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA== dependencies: balanced-match "^1.0.0" From f583be997c0c0e85438b97130c47ca53a0d6a31e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 28 Mar 2026 04:02:47 +0000 Subject: [PATCH 5/5] release: 0.45.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 15 +++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- src/version.ts | 2 +- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b470c2a..e564a44 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.44.0" + ".": "0.45.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 079c2d2..a966b8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 0.45.0 (2026-03-28) + +Full Changelog: [v0.44.0...v0.45.0](https://github.com/kernel/kernel-node-sdk/compare/v0.44.0...v0.45.0) + +### Features + +* [kernel-1008] browser pools add custom policy ([4425fd1](https://github.com/kernel/kernel-node-sdk/commit/4425fd17c82a65519212e2abc78fc5e0af432f87)) + + +### Chores + +* **ci:** skip lint on metadata-only changes ([4417a72](https://github.com/kernel/kernel-node-sdk/commit/4417a7212f71689e8eb7f31e6fbd14a2b3388cc3)) +* **internal:** codegen related update ([302cab1](https://github.com/kernel/kernel-node-sdk/commit/302cab1ffd51d805a819313dacff719e6268a738)) +* **internal:** update gitignore ([0e536f0](https://github.com/kernel/kernel-node-sdk/commit/0e536f09ab1a8b54da212d3f530602efb5df08cc)) + ## 0.44.0 (2026-03-20) Full Changelog: [v0.43.0...v0.44.0](https://github.com/kernel/kernel-node-sdk/compare/v0.43.0...v0.44.0) diff --git a/package-lock.json b/package-lock.json index dd614ae..93d8599 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@onkernel/sdk", - "version": "0.44.0", + "version": "0.45.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@onkernel/sdk", - "version": "0.44.0", + "version": "0.45.0", "license": "Apache-2.0", "devDependencies": { "@arethetypeswrong/cli": "^0.17.0", diff --git a/package.json b/package.json index de4caad..30c14f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onkernel/sdk", - "version": "0.44.0", + "version": "0.45.0", "description": "The official TypeScript library for the Kernel API", "author": "Kernel <>", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 6a69b90..27643a4 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.44.0'; // x-release-please-version +export const VERSION = '0.45.0'; // x-release-please-version