From 5f25f6357f113566506d2f7b167e09511810a8c1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 19:08:24 +0000 Subject: [PATCH 1/4] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5ad6924..f6e3d87 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 119 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-e66c3f8aedccc39104386a3ec619f3fdcef7e8b00d9e5aa82e414a1b387351c2.yml -openapi_spec_hash: afeddf18ebc3da1521b3e6f6739411fa +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-663f08b43eda6383b99ab0f3b1cd049d62f22c81daf149d8e84ff18f53c84c89.yml +openapi_spec_hash: 29ea250251cc14d70e3f8f737ebc1466 config_hash: 80eef1b592110714ea55cd26c470fabb From 5320bdeec70aa344ccdf2c7f601574c655a8eac1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 19:42:21 +0000 Subject: [PATCH 2/4] docs(api): correct project-scoping descriptions in OpenAPI spec --- .stats.yml | 4 +-- src/resources/auth/connections.ts | 40 +++++++++++++++--------------- src/resources/browser-pools.ts | 14 +++++------ src/resources/browsers/browsers.ts | 4 +-- src/resources/credentials.ts | 3 +-- src/resources/extensions.ts | 2 +- src/resources/proxies.ts | 6 ++--- 7 files changed, 36 insertions(+), 37 deletions(-) diff --git a/.stats.yml b/.stats.yml index f6e3d87..1d17b2b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 119 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-663f08b43eda6383b99ab0f3b1cd049d62f22c81daf149d8e84ff18f53c84c89.yml -openapi_spec_hash: 29ea250251cc14d70e3f8f737ebc1466 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-c6458d9c6cb5d7e3d8309c79b69eba3a22269e0ecc0bdafbaee00fde4b302e99.yml +openapi_spec_hash: ee77b293c4bda91c1a32cfdd12b8739e config_hash: 80eef1b592110714ea55cd26c470fabb diff --git a/src/resources/auth/connections.ts b/src/resources/auth/connections.ts index 1c338de..3ddd508 100644 --- a/src/resources/auth/connections.ts +++ b/src/resources/auth/connections.ts @@ -699,8 +699,8 @@ export interface ManagedAuthCreateRequest { login_url?: string; /** - * Proxy selection. Provide either id or name. The proxy must belong to the - * caller's org. + * Proxy selection. Provide either id or name. The proxy must be in the same + * project as the resource referencing it. */ proxy?: ManagedAuthCreateRequest.Proxy; @@ -748,8 +748,8 @@ export namespace ManagedAuthCreateRequest { } /** - * Proxy selection. Provide either id or name. The proxy must belong to the - * caller's org. + * Proxy selection. Provide either id or name. The proxy must be in the same + * project as the resource referencing it. */ export interface Proxy { /** @@ -812,8 +812,8 @@ export interface ManagedAuthUpdateRequest { login_url?: string; /** - * Proxy selection. Provide either id or name. The proxy must belong to the - * caller's org. + * Proxy selection. Provide either id or name. The proxy must be in the same + * project as the resource referencing it. */ proxy?: ManagedAuthUpdateRequest.Proxy; @@ -859,8 +859,8 @@ export namespace ManagedAuthUpdateRequest { } /** - * Proxy selection. Provide either id or name. The proxy must belong to the - * caller's org. + * Proxy selection. Provide either id or name. The proxy must be in the same + * project as the resource referencing it. */ export interface Proxy { /** @@ -1215,8 +1215,8 @@ export interface ConnectionCreateParams { login_url?: string; /** - * Proxy selection. Provide either id or name. The proxy must belong to the - * caller's org. + * Proxy selection. Provide either id or name. The proxy must be in the same + * project as the resource referencing it. */ proxy?: ConnectionCreateParams.Proxy; @@ -1264,8 +1264,8 @@ export namespace ConnectionCreateParams { } /** - * Proxy selection. Provide either id or name. The proxy must belong to the - * caller's org. + * Proxy selection. Provide either id or name. The proxy must be in the same + * project as the resource referencing it. */ export interface Proxy { /** @@ -1325,8 +1325,8 @@ export interface ConnectionUpdateParams { login_url?: string; /** - * Proxy selection. Provide either id or name. The proxy must belong to the - * caller's org. + * Proxy selection. Provide either id or name. The proxy must be in the same + * project as the resource referencing it. */ proxy?: ConnectionUpdateParams.Proxy; @@ -1372,8 +1372,8 @@ export namespace ConnectionUpdateParams { } /** - * Proxy selection. Provide either id or name. The proxy must belong to the - * caller's org. + * Proxy selection. Provide either id or name. The proxy must be in the same + * project as the resource referencing it. */ export interface Proxy { /** @@ -1402,8 +1402,8 @@ export interface ConnectionListParams extends OffsetPaginationParams { export interface ConnectionLoginParams { /** - * Proxy selection. Provide either id or name. The proxy must belong to the - * caller's org. + * Proxy selection. Provide either id or name. The proxy must be in the same + * project as the resource referencing it. */ proxy?: ConnectionLoginParams.Proxy; @@ -1416,8 +1416,8 @@ export interface ConnectionLoginParams { export namespace ConnectionLoginParams { /** - * Proxy selection. Provide either id or name. The proxy must belong to the - * caller's org. + * Proxy selection. Provide either id or name. The proxy must be in the same + * project as the resource referencing it. */ export interface Proxy { /** diff --git a/src/resources/browser-pools.ts b/src/resources/browser-pools.ts index 4b8ba39..a22174d 100644 --- a/src/resources/browser-pools.ts +++ b/src/resources/browser-pools.ts @@ -57,7 +57,7 @@ export class BrowserPools extends APIResource { } /** - * List browser pools owned by the caller's organization. + * List browser pools in the resolved project. * * @example * ```ts @@ -241,8 +241,8 @@ export namespace BrowserPool { profile?: Shared.BrowserProfile; /** - * Optional proxy to associate to the browser session. Must reference a proxy - * belonging to the caller's org. + * Optional proxy to associate to the browser session. Must reference a proxy in + * the same project as the browser session. */ proxy_id?: string; @@ -467,8 +467,8 @@ export interface BrowserPoolCreateParams { profile?: Shared.BrowserProfile; /** - * Optional proxy to associate to the browser session. Must reference a proxy - * belonging to the caller's org. + * Optional proxy to associate to the browser session. Must reference a proxy in + * the same project as the browser session. */ proxy_id?: string; @@ -559,8 +559,8 @@ export interface BrowserPoolUpdateParams { profile?: Shared.BrowserProfile; /** - * Optional proxy to associate to the browser session. Must reference a proxy - * belonging to the caller's org. + * Optional proxy to associate to the browser session. Must reference a proxy in + * the same project as the browser session. */ proxy_id?: string; diff --git a/src/resources/browsers/browsers.ts b/src/resources/browsers/browsers.ts index 26fdfe9..351f8f9 100644 --- a/src/resources/browsers/browsers.ts +++ b/src/resources/browsers/browsers.ts @@ -941,8 +941,8 @@ export interface BrowserCreateParams { profile?: Shared.BrowserProfile; /** - * Optional proxy to associate to the browser session. Must reference a proxy - * belonging to the caller's org. + * Optional proxy to associate to the browser session. Must reference a proxy in + * the same project as the browser session. */ proxy_id?: string; diff --git a/src/resources/credentials.ts b/src/resources/credentials.ts index ef80c0d..cd64d5e 100644 --- a/src/resources/credentials.ts +++ b/src/resources/credentials.ts @@ -60,8 +60,7 @@ export class Credentials extends APIResource { } /** - * List credentials owned by the caller's organization. Credential values are not - * returned. + * List credentials in the resolved project. Credential values are not returned. * * @example * ```ts diff --git a/src/resources/extensions.ts b/src/resources/extensions.ts index e12233e..0afbdd5 100644 --- a/src/resources/extensions.ts +++ b/src/resources/extensions.ts @@ -14,7 +14,7 @@ import { path } from '../internal/utils/path'; */ export class Extensions extends APIResource { /** - * List extensions owned by the caller's organization. + * List extensions in the resolved project. * * @example * ```ts diff --git a/src/resources/proxies.ts b/src/resources/proxies.ts index 833ae00..274a050 100644 --- a/src/resources/proxies.ts +++ b/src/resources/proxies.ts @@ -12,21 +12,21 @@ import { path } from '../internal/utils/path'; */ export class Proxies extends APIResource { /** - * Create a new proxy configuration for the caller's organization. + * Create a new proxy configuration in the resolved project. */ create(body: ProxyCreateParams, options?: RequestOptions): APIPromise { return this._client.post('/proxies', { body, ...options }); } /** - * Retrieve a proxy belonging to the caller's organization by ID. + * Retrieve a proxy in the resolved project by ID. */ retrieve(id: string, options?: RequestOptions): APIPromise { return this._client.get(path`/proxies/${id}`, options); } /** - * List proxies owned by the caller's organization. + * List proxies in the resolved project. */ list( query: ProxyListParams | null | undefined = {}, From 2de4df21f6d2d2dd570bed37c4da34b2df34cf83 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 21:01:05 +0000 Subject: [PATCH 3/4] feat: Add project_id SDK client option mapped to X-Kernel-Project-Id --- .stats.yml | 4 ++-- src/client.ts | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1d17b2b..a164009 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 119 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-c6458d9c6cb5d7e3d8309c79b69eba3a22269e0ecc0bdafbaee00fde4b302e99.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-51549f813f3002e18c6ca8d850cc0c7932828d511c151e0412c73b6798d19e30.yml openapi_spec_hash: ee77b293c4bda91c1a32cfdd12b8739e -config_hash: 80eef1b592110714ea55cd26c470fabb +config_hash: 57567e00b41af47cef1b78e51b747aa0 diff --git a/src/client.ts b/src/client.ts index a396c79..8a94d12 100644 --- a/src/client.ts +++ b/src/client.ts @@ -175,6 +175,8 @@ export interface ClientOptions { */ apiKey?: string | undefined; + projectID?: string | null | undefined; + /** * Specifies the environment to use for the API. * @@ -258,6 +260,7 @@ export interface ClientOptions { */ export class Kernel { apiKey: string; + projectID: string | null; baseURL: string; maxRetries: number; @@ -277,6 +280,7 @@ export class Kernel { * API Client for interfacing with the Kernel API. * * @param {string | undefined} [opts.apiKey=process.env['KERNEL_API_KEY'] ?? undefined] + * @param {string | null | undefined} [opts.projectID] * @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API. * @param {string} [opts.baseURL=process.env['KERNEL_BASE_URL'] ?? https://api.onkernel.com/] - Override the default base URL for the API. * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out. @@ -289,6 +293,7 @@ export class Kernel { constructor({ baseURL = readEnv('KERNEL_BASE_URL'), apiKey = readEnv('KERNEL_API_KEY'), + projectID = null, ...opts }: ClientOptions = {}) { // Check for Bun runtime in a way that avoids type errors if Bun is not defined @@ -311,6 +316,7 @@ export class Kernel { const options: ClientOptions = { apiKey, + projectID, ...opts, baseURL, environment: opts.environment ?? 'production', @@ -358,6 +364,7 @@ export class Kernel { this._options = options; this.apiKey = apiKey; + this.projectID = projectID; } /** @@ -375,6 +382,7 @@ export class Kernel { fetch: this.rawFetch, fetchOptions: this.fetchOptions, apiKey: this.apiKey, + projectID: this.projectID, ...options, }); client.browserRouteCache = this.browserRouteCache; @@ -851,6 +859,7 @@ export class Kernel { 'X-Stainless-Retry-Count': String(retryCount), ...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}), ...getPlatformHeaders(), + 'X-Kernel-Project-Id': this.projectID, }, await this.authHeaders(options), this._options.defaultHeaders, From a36a6e68bc236a86873a6b7243fd236195c2dcc5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 21:45:55 +0000 Subject: [PATCH 4/4] release: 0.67.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7b24d85..94994d4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.66.0" + ".": "0.67.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index f03865d..cd0a696 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.67.0 (2026-06-11) + +Full Changelog: [v0.66.0...v0.67.0](https://github.com/kernel/kernel-node-sdk/compare/v0.66.0...v0.67.0) + +### Features + +* Add project_id SDK client option mapped to X-Kernel-Project-Id ([2de4df2](https://github.com/kernel/kernel-node-sdk/commit/2de4df21f6d2d2dd570bed37c4da34b2df34cf83)) + + +### Documentation + +* **api:** correct project-scoping descriptions in OpenAPI spec ([5320bde](https://github.com/kernel/kernel-node-sdk/commit/5320bdeec70aa344ccdf2c7f601574c655a8eac1)) + ## 0.66.0 (2026-06-10) Full Changelog: [v0.65.0...v0.66.0](https://github.com/kernel/kernel-node-sdk/compare/v0.65.0...v0.66.0) diff --git a/package.json b/package.json index 76c2e9b..e2856f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onkernel/sdk", - "version": "0.66.0", + "version": "0.67.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 9826986..ed32717 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.66.0'; // x-release-please-version +export const VERSION = '0.67.0'; // x-release-please-version