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
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.33.0"
".": "0.34.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: 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-47ee6a2b624baddb41a681feff758bf1893cd3d65edf3ab51219ebe4d942932b.yml
openapi_spec_hash: 76178c41ede593e76bfacb176057d2f0
config_hash: 27c0ea01aeb797a1767af139851c5b66
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.34.0 (2026-02-13)

Full Changelog: [v0.33.0...v0.34.0](https://github.com/kernel/kernel-go-sdk/compare/v0.33.0...v0.34.0)

### Features

* Add error_code field to ManagedAuthSession and related components ([09fcbf2](https://github.com/kernel/kernel-go-sdk/commit/09fcbf20f9dfc15b1b279089a9c7e1ff7f6967fc))
* Allow arbitrary viewport dimensions ([7460146](https://github.com/kernel/kernel-go-sdk/commit/746014666e64ce99d97e5eb44986e6360b93b5e1))

## 0.33.0 (2026-02-11)

Full Changelog: [v0.32.0...v0.33.0](https://github.com/kernel/kernel-go-sdk/compare/v0.32.0...v0.33.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/kernel/kernel-go-sdk@v0.33.0'
go get -u 'github.com/kernel/kernel-go-sdk@v0.34.0'
```

<!-- x-release-please-end -->
Expand Down
28 changes: 14 additions & 14 deletions aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,25 @@ type BrowserProfile = shared.BrowserProfile
type BrowserProfileParam = shared.BrowserProfileParam

// 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).
//
// This is an alias to an internal type.
type BrowserViewport = shared.BrowserViewport

// 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).
//
// This is an alias to an internal type.
type BrowserViewportParam = shared.BrowserViewportParam
Expand Down
9 changes: 9 additions & 0 deletions authconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ type ManagedAuth struct {
Credential ManagedAuthCredential `json:"credential"`
// Fields awaiting input (present when flow_step=awaiting_input)
DiscoveredFields []ManagedAuthDiscoveredField `json:"discovered_fields,nullable"`
// Machine-readable error code (present when flow_status=failed)
ErrorCode string `json:"error_code,nullable"`
// Error message (present when flow_status=failed)
ErrorMessage string `json:"error_message,nullable"`
// Instructions for external action (present when
Expand Down Expand Up @@ -301,6 +303,7 @@ type ManagedAuth struct {
CanReauthReason respjson.Field
Credential respjson.Field
DiscoveredFields respjson.Field
ErrorCode respjson.Field
ErrorMessage respjson.Field
ExternalActionMessage respjson.Field
FlowExpiresAt respjson.Field
Expand Down Expand Up @@ -648,6 +651,8 @@ type AuthConnectionFollowResponseUnion struct {
// This field is from variant [AuthConnectionFollowResponseManagedAuthState].
DiscoveredFields []AuthConnectionFollowResponseManagedAuthStateDiscoveredField `json:"discovered_fields"`
// This field is from variant [AuthConnectionFollowResponseManagedAuthState].
ErrorCode string `json:"error_code"`
// This field is from variant [AuthConnectionFollowResponseManagedAuthState].
ErrorMessage string `json:"error_message"`
// This field is from variant [AuthConnectionFollowResponseManagedAuthState].
ExternalActionMessage string `json:"external_action_message"`
Expand All @@ -673,6 +678,7 @@ type AuthConnectionFollowResponseUnion struct {
FlowStep respjson.Field
Timestamp respjson.Field
DiscoveredFields respjson.Field
ErrorCode respjson.Field
ErrorMessage respjson.Field
ExternalActionMessage respjson.Field
FlowType respjson.Field
Expand Down Expand Up @@ -756,6 +762,8 @@ type AuthConnectionFollowResponseManagedAuthState struct {
Timestamp time.Time `json:"timestamp,required" format:"date-time"`
// Fields awaiting input (present when flow_step=AWAITING_INPUT).
DiscoveredFields []AuthConnectionFollowResponseManagedAuthStateDiscoveredField `json:"discovered_fields"`
// Machine-readable error code (present when flow_status=FAILED).
ErrorCode string `json:"error_code"`
// Error message (present when flow_status=FAILED).
ErrorMessage string `json:"error_message"`
// Instructions for external action (present when
Expand Down Expand Up @@ -786,6 +794,7 @@ type AuthConnectionFollowResponseManagedAuthState struct {
FlowStep respjson.Field
Timestamp respjson.Field
DiscoveredFields respjson.Field
ErrorCode respjson.Field
ErrorMessage respjson.Field
ExternalActionMessage respjson.Field
FlowType respjson.Field
Expand Down
70 changes: 35 additions & 35 deletions browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@ type BrowserNewResponse struct {
// ID of the proxy associated with this browser session, if any.
ProxyID string `json:"proxy_id"`
// 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 `json:"viewport"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Expand Down Expand Up @@ -323,13 +323,13 @@ type BrowserGetResponse struct {
// ID of the proxy associated with this browser session, if any.
ProxyID string `json:"proxy_id"`
// 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 `json:"viewport"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Expand Down Expand Up @@ -386,13 +386,13 @@ type BrowserUpdateResponse struct {
// ID of the proxy associated with this browser session, if any.
ProxyID string `json:"proxy_id"`
// 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 `json:"viewport"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Expand Down Expand Up @@ -449,13 +449,13 @@ type BrowserListResponse struct {
// ID of the proxy associated with this browser session, if any.
ProxyID string `json:"proxy_id"`
// 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 `json:"viewport"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Expand Down Expand Up @@ -513,13 +513,13 @@ type BrowserNewParams struct {
// Profiles must be created beforehand.
Profile shared.BrowserProfileParam `json:"profile,omitzero"`
// 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.BrowserViewportParam `json:"viewport,omitzero"`
paramObj
}
Expand Down
56 changes: 28 additions & 28 deletions browserpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ type BrowserPoolBrowserPoolConfig struct {
// are destroyed. Defaults to 600 seconds if not specified
TimeoutSeconds int64 `json:"timeout_seconds"`
// 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 `json:"viewport"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Expand Down Expand Up @@ -257,13 +257,13 @@ type BrowserPoolAcquireResponse struct {
// ID of the proxy associated with this browser session, if any.
ProxyID string `json:"proxy_id"`
// 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 `json:"viewport"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Expand Down Expand Up @@ -321,13 +321,13 @@ type BrowserPoolNewParams struct {
// Profiles must be created beforehand.
Profile shared.BrowserProfileParam `json:"profile,omitzero"`
// 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.BrowserViewportParam `json:"viewport,omitzero"`
paramObj
}
Expand Down Expand Up @@ -373,13 +373,13 @@ type BrowserPoolUpdateParams struct {
// Profiles must be created beforehand.
Profile shared.BrowserProfileParam `json:"profile,omitzero"`
// 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.BrowserViewportParam `json:"viewport,omitzero"`
paramObj
}
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "0.33.0" // x-release-please-version
const PackageVersion = "0.34.0" // x-release-please-version
Loading