From 8ca1d5422ec00b6042ee742c5d306f1ef81d0503 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 03:18:29 +0000 Subject: [PATCH 1/4] chore(internal): avoid type checking errors with ts-reset --- src/client.ts | 2 +- src/core/streaming.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client.ts b/src/client.ts index 212b67c..d2807c2 100644 --- a/src/client.ts +++ b/src/client.ts @@ -581,7 +581,7 @@ export class Kernel { loggerFor(this).info(`${responseInfo} - ${retryMessage}`); const errText = await response.text().catch((err: any) => castToError(err).message); - const errJSON = safeJSON(errText); + const errJSON = safeJSON(errText) as any; const errMessage = errJSON ? undefined : errText; loggerFor(this).debug( diff --git a/src/core/streaming.ts b/src/core/streaming.ts index a24bcfe..85b7259 100644 --- a/src/core/streaming.ts +++ b/src/core/streaming.ts @@ -46,7 +46,7 @@ export class Stream implements AsyncIterable { try { for await (const sse of _iterSSEMessages(response, controller)) { try { - yield JSON.parse(sse.data); + yield JSON.parse(sse.data) as Item; } catch (e) { logger.error(`Could not parse message into JSON:`, sse.data); logger.error(`From chunk:`, sse.raw); @@ -102,7 +102,7 @@ export class Stream implements AsyncIterable { try { for await (const line of iterLines()) { if (done) continue; - if (line) yield JSON.parse(line); + if (line) yield JSON.parse(line) as Item; } done = true; } catch (e) { From 1adbca7f07a5f2b0af05fa5c4c3a284b68f36455 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 18:00:29 +0000 Subject: [PATCH 2/4] feat: Add error_code field to ManagedAuthSession and related components --- .stats.yml | 4 ++-- src/resources/auth/connections.ts | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 00007d6..f721821 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 100 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-82fd51be8dc9b6ad425425f9eb747dd337df494a030d03d37f101e2236c85548.yml -openapi_spec_hash: ab396816e2b7da9938d42ec5a41cc8e1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-b7d469021adcd1493f74dad38746ffa3817dcf86a0a12561a88eb554824e3ffb.yml +openapi_spec_hash: 4134c95bf3012dca38797ca56d62395b config_hash: 27c0ea01aeb797a1767af139851c5b66 diff --git a/src/resources/auth/connections.ts b/src/resources/auth/connections.ts index e6fdcba..6a41846 100644 --- a/src/resources/auth/connections.ts +++ b/src/resources/auth/connections.ts @@ -250,6 +250,11 @@ export interface ManagedAuth { */ discovered_fields?: Array | null; + /** + * Machine-readable error code (present when flow_status=failed) + */ + error_code?: string | null; + /** * Error message (present when flow_status=failed) */ @@ -648,6 +653,11 @@ export namespace ConnectionFollowResponse { */ discovered_fields?: Array; + /** + * Machine-readable error code (present when flow_status=FAILED). + */ + error_code?: string; + /** * Error message (present when flow_status=FAILED). */ From 7860190991d770a0299b188720e47e5eb2745626 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 13 Feb 2026 22:14:35 +0000 Subject: [PATCH 3/4] feat: Allow arbitrary viewport dimensions --- .stats.yml | 4 +- src/resources/browser-pools.ts | 56 ++++++++++++------------ src/resources/browsers/browsers.ts | 70 +++++++++++++++--------------- src/resources/invocations.ts | 14 +++--- src/resources/shared.ts | 14 +++--- 5 files changed, 79 insertions(+), 79 deletions(-) diff --git a/.stats.yml b/.stats.yml index f721821..264b8c9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 100 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-b7d469021adcd1493f74dad38746ffa3817dcf86a0a12561a88eb554824e3ffb.yml -openapi_spec_hash: 4134c95bf3012dca38797ca56d62395b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-47ee6a2b624baddb41a681feff758bf1893cd3d65edf3ab51219ebe4d942932b.yml +openapi_spec_hash: 76178c41ede593e76bfacb176057d2f0 config_hash: 27c0ea01aeb797a1767af139851c5b66 diff --git a/src/resources/browser-pools.ts b/src/resources/browser-pools.ts index ac2a128..6192e48 100644 --- a/src/resources/browser-pools.ts +++ b/src/resources/browser-pools.ts @@ -240,13 +240,13 @@ export namespace BrowserPool { /** * Initial browser window size in pixels with optional refresh rate. If omitted, - * image defaults apply (1920x1080@25). Only specific viewport configurations are - * supported. The server will reject unsupported combinations. Supported - * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, - * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will - * be automatically determined from the width and height if they match a supported - * configuration exactly. Note: Higher resolutions may affect the responsiveness of - * live view browser + * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted, + * but the following configurations are known-good and fully tested: 2560x1440@10, + * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. + * Viewports outside this list may exhibit unstable live view or recording + * behavior. If refresh_rate is not provided, it will be automatically determined + * based on the resolution (higher resolutions use lower refresh rates to keep + * bandwidth reasonable). */ viewport?: Shared.BrowserViewport; } @@ -319,13 +319,13 @@ export interface BrowserPoolAcquireResponse { /** * Initial browser window size in pixels with optional refresh rate. If omitted, - * image defaults apply (1920x1080@25). Only specific viewport configurations are - * supported. The server will reject unsupported combinations. Supported - * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, - * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will - * be automatically determined from the width and height if they match a supported - * configuration exactly. Note: Higher resolutions may affect the responsiveness of - * live view browser + * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted, + * but the following configurations are known-good and fully tested: 2560x1440@10, + * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. + * Viewports outside this list may exhibit unstable live view or recording + * behavior. If refresh_rate is not provided, it will be automatically determined + * based on the resolution (higher resolutions use lower refresh rates to keep + * bandwidth reasonable). */ viewport?: Shared.BrowserViewport; } @@ -391,13 +391,13 @@ export interface BrowserPoolCreateParams { /** * Initial browser window size in pixels with optional refresh rate. If omitted, - * image defaults apply (1920x1080@25). Only specific viewport configurations are - * supported. The server will reject unsupported combinations. Supported - * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, - * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will - * be automatically determined from the width and height if they match a supported - * configuration exactly. Note: Higher resolutions may affect the responsiveness of - * live view browser + * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted, + * but the following configurations are known-good and fully tested: 2560x1440@10, + * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. + * Viewports outside this list may exhibit unstable live view or recording + * behavior. If refresh_rate is not provided, it will be automatically determined + * based on the resolution (higher resolutions use lower refresh rates to keep + * bandwidth reasonable). */ viewport?: Shared.BrowserViewport; } @@ -469,13 +469,13 @@ export interface BrowserPoolUpdateParams { /** * Initial browser window size in pixels with optional refresh rate. If omitted, - * image defaults apply (1920x1080@25). Only specific viewport configurations are - * supported. The server will reject unsupported combinations. Supported - * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, - * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will - * be automatically determined from the width and height if they match a supported - * configuration exactly. Note: Higher resolutions may affect the responsiveness of - * live view browser + * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted, + * but the following configurations are known-good and fully tested: 2560x1440@10, + * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. + * Viewports outside this list may exhibit unstable live view or recording + * behavior. If refresh_rate is not provided, it will be automatically determined + * based on the resolution (higher resolutions use lower refresh rates to keep + * bandwidth reasonable). */ viewport?: Shared.BrowserViewport; } diff --git a/src/resources/browsers/browsers.ts b/src/resources/browsers/browsers.ts index c335cac..3a6f855 100644 --- a/src/resources/browsers/browsers.ts +++ b/src/resources/browsers/browsers.ts @@ -315,13 +315,13 @@ export interface BrowserCreateResponse { /** * Initial browser window size in pixels with optional refresh rate. If omitted, - * image defaults apply (1920x1080@25). Only specific viewport configurations are - * supported. The server will reject unsupported combinations. Supported - * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, - * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will - * be automatically determined from the width and height if they match a supported - * configuration exactly. Note: Higher resolutions may affect the responsiveness of - * live view browser + * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted, + * but the following configurations are known-good and fully tested: 2560x1440@10, + * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. + * Viewports outside this list may exhibit unstable live view or recording + * behavior. If refresh_rate is not provided, it will be automatically determined + * based on the resolution (higher resolutions use lower refresh rates to keep + * bandwidth reasonable). */ viewport?: Shared.BrowserViewport; } @@ -391,13 +391,13 @@ export interface BrowserRetrieveResponse { /** * Initial browser window size in pixels with optional refresh rate. If omitted, - * image defaults apply (1920x1080@25). Only specific viewport configurations are - * supported. The server will reject unsupported combinations. Supported - * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, - * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will - * be automatically determined from the width and height if they match a supported - * configuration exactly. Note: Higher resolutions may affect the responsiveness of - * live view browser + * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted, + * but the following configurations are known-good and fully tested: 2560x1440@10, + * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. + * Viewports outside this list may exhibit unstable live view or recording + * behavior. If refresh_rate is not provided, it will be automatically determined + * based on the resolution (higher resolutions use lower refresh rates to keep + * bandwidth reasonable). */ viewport?: Shared.BrowserViewport; } @@ -467,13 +467,13 @@ export interface BrowserUpdateResponse { /** * Initial browser window size in pixels with optional refresh rate. If omitted, - * image defaults apply (1920x1080@25). Only specific viewport configurations are - * supported. The server will reject unsupported combinations. Supported - * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, - * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will - * be automatically determined from the width and height if they match a supported - * configuration exactly. Note: Higher resolutions may affect the responsiveness of - * live view browser + * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted, + * but the following configurations are known-good and fully tested: 2560x1440@10, + * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. + * Viewports outside this list may exhibit unstable live view or recording + * behavior. If refresh_rate is not provided, it will be automatically determined + * based on the resolution (higher resolutions use lower refresh rates to keep + * bandwidth reasonable). */ viewport?: Shared.BrowserViewport; } @@ -543,13 +543,13 @@ export interface BrowserListResponse { /** * Initial browser window size in pixels with optional refresh rate. If omitted, - * image defaults apply (1920x1080@25). Only specific viewport configurations are - * supported. The server will reject unsupported combinations. Supported - * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, - * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will - * be automatically determined from the width and height if they match a supported - * configuration exactly. Note: Higher resolutions may affect the responsiveness of - * live view browser + * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted, + * but the following configurations are known-good and fully tested: 2560x1440@10, + * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. + * Viewports outside this list may exhibit unstable live view or recording + * behavior. If refresh_rate is not provided, it will be automatically determined + * based on the resolution (higher resolutions use lower refresh rates to keep + * bandwidth reasonable). */ viewport?: Shared.BrowserViewport; } @@ -613,13 +613,13 @@ export interface BrowserCreateParams { /** * Initial browser window size in pixels with optional refresh rate. If omitted, - * image defaults apply (1920x1080@25). Only specific viewport configurations are - * supported. The server will reject unsupported combinations. Supported - * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, - * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will - * be automatically determined from the width and height if they match a supported - * configuration exactly. Note: Higher resolutions may affect the responsiveness of - * live view browser + * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted, + * but the following configurations are known-good and fully tested: 2560x1440@10, + * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. + * Viewports outside this list may exhibit unstable live view or recording + * behavior. If refresh_rate is not provided, it will be automatically determined + * based on the resolution (higher resolutions use lower refresh rates to keep + * bandwidth reasonable). */ viewport?: Shared.BrowserViewport; } diff --git a/src/resources/invocations.ts b/src/resources/invocations.ts index d8883bb..edf604e 100644 --- a/src/resources/invocations.ts +++ b/src/resources/invocations.ts @@ -479,13 +479,13 @@ export namespace InvocationListBrowsersResponse { /** * Initial browser window size in pixels with optional refresh rate. If omitted, - * image defaults apply (1920x1080@25). Only specific viewport configurations are - * supported. The server will reject unsupported combinations. Supported - * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, - * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will - * be automatically determined from the width and height if they match a supported - * configuration exactly. Note: Higher resolutions may affect the responsiveness of - * live view browser + * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted, + * but the following configurations are known-good and fully tested: 2560x1440@10, + * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. + * Viewports outside this list may exhibit unstable live view or recording + * behavior. If refresh_rate is not provided, it will be automatically determined + * based on the resolution (higher resolutions use lower refresh rates to keep + * bandwidth reasonable). */ viewport?: Shared.BrowserViewport; } diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 600b53d..14f7905 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -53,13 +53,13 @@ export interface BrowserProfile { /** * Initial browser window size in pixels with optional refresh rate. If omitted, - * image defaults apply (1920x1080@25). Only specific viewport configurations are - * supported. The server will reject unsupported combinations. Supported - * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25, - * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will - * be automatically determined from the width and height if they match a supported - * configuration exactly. Note: Higher resolutions may affect the responsiveness of - * live view browser + * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted, + * but the following configurations are known-good and fully tested: 2560x1440@10, + * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. + * Viewports outside this list may exhibit unstable live view or recording + * behavior. If refresh_rate is not provided, it will be automatically determined + * based on the resolution (higher resolutions use lower refresh rates to keep + * bandwidth reasonable). */ export interface BrowserViewport { /** From c1cc1868e0a5e1ca1da553db95346d309af121af Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 13 Feb 2026 22:14:55 +0000 Subject: [PATCH 4/4] release: 0.34.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 14 ++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 53ecb86..8878352 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.33.0" + ".": "0.34.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index edf1d80..cbaafb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.34.0 (2026-02-13) + +Full Changelog: [v0.33.0...v0.34.0](https://github.com/kernel/kernel-node-sdk/compare/v0.33.0...v0.34.0) + +### Features + +* Add error_code field to ManagedAuthSession and related components ([1adbca7](https://github.com/kernel/kernel-node-sdk/commit/1adbca7f07a5f2b0af05fa5c4c3a284b68f36455)) +* Allow arbitrary viewport dimensions ([7860190](https://github.com/kernel/kernel-node-sdk/commit/7860190991d770a0299b188720e47e5eb2745626)) + + +### Chores + +* **internal:** avoid type checking errors with ts-reset ([8ca1d54](https://github.com/kernel/kernel-node-sdk/commit/8ca1d5422ec00b6042ee742c5d306f1ef81d0503)) + ## 0.33.0 (2026-02-11) Full Changelog: [v0.32.0...v0.33.0](https://github.com/kernel/kernel-node-sdk/compare/v0.32.0...v0.33.0) diff --git a/package.json b/package.json index 77382fa..91cf784 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onkernel/sdk", - "version": "0.33.0", + "version": "0.34.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 dc173dd..4819998 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.33.0'; // x-release-please-version +export const VERSION = '0.34.0'; // x-release-please-version