Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.prism.log
.stdy.log
node_modules
yarn-error.log
codegen.log
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.44.0"
".": "0.45.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
24 changes: 24 additions & 0 deletions src/resources/browser-pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.44.0'; // x-release-please-version
export const VERSION = '0.45.0'; // x-release-please-version
2 changes: 2 additions & 0 deletions tests/api-resources/browser-pools.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Loading