diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f910f1a..192d2cd 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.73.0" + ".": "0.74.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 9118082..a2cf046 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 125 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-55409ab573762d8bc010fb34c885651ca858a97d4353b4776b7aafeaaa313257.yml -openapi_spec_hash: 0cf678d80f2a2b73fb9ec82d05c8cc0a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-ea36e417a5dbc80a7dab65b38bd6c892520929d31363e626a3341436d697a17c.yml +openapi_spec_hash: fb15f771cbf9c937a4674f23f9a56050 config_hash: 06186eb40e0058a2a87ac251fc07415d diff --git a/CHANGELOG.md b/CHANGELOG.md index e185c22..22001a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.74.0 (2026-07-02) + +Full Changelog: [v0.73.0...v0.74.0](https://github.com/kernel/kernel-go-sdk/compare/v0.73.0...v0.74.0) + +### Features + +* Add tablet and mobile viewport presets to pool dashboard ([eec3e1e](https://github.com/kernel/kernel-go-sdk/commit/eec3e1ee4b4a4386d25c260840d279d3afcd9895)) + ## 0.73.0 (2026-07-01) Full Changelog: [v0.72.0...v0.73.0](https://github.com/kernel/kernel-go-sdk/compare/v0.72.0...v0.73.0) diff --git a/README.md b/README.md index c445429..c2828e6 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Or to pin the version: ```sh -go get -u 'github.com/kernel/kernel-go-sdk@v0.73.0' +go get -u 'github.com/kernel/kernel-go-sdk@v0.74.0' ``` diff --git a/aliases.go b/aliases.go index 4e4c322..e09b33c 100644 --- a/aliases.go +++ b/aliases.go @@ -44,14 +44,14 @@ type BrowserProfileParam = shared.BrowserProfileParam // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, -// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended -// presets use one of these resolutions with refresh rates 60, 30, 25, or 10: -// 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, -// 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. -// 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). +// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For +// GPU images, recommended presets use one of these resolutions with refresh rates +// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, +// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, +// 768x1024, 800x1600. 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 @@ -60,14 +60,14 @@ type BrowserViewport = shared.BrowserViewport // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, -// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended -// presets use one of these resolutions with refresh rates 60, 30, 25, or 10: -// 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, -// 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. -// 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). +// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For +// GPU images, recommended presets use one of these resolutions with refresh rates +// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, +// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, +// 768x1024, 800x1600. 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 diff --git a/browser.go b/browser.go index d88b84f..9d20b5e 100644 --- a/browser.go +++ b/browser.go @@ -292,14 +292,14 @@ type BrowserNewResponse struct { // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, - // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended - // presets use one of these resolutions with refresh rates 60, 30, 25, or 10: - // 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, - // 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. - // 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). + // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For + // GPU images, recommended presets use one of these resolutions with refresh rates + // 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, + // 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, + // 768x1024, 800x1600. 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 { @@ -392,14 +392,14 @@ type BrowserGetResponse struct { // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, - // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended - // presets use one of these resolutions with refresh rates 60, 30, 25, or 10: - // 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, - // 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. - // 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). + // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For + // GPU images, recommended presets use one of these resolutions with refresh rates + // 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, + // 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, + // 768x1024, 800x1600. 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 { @@ -492,14 +492,14 @@ type BrowserUpdateResponse struct { // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, - // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended - // presets use one of these resolutions with refresh rates 60, 30, 25, or 10: - // 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, - // 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. - // 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). + // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For + // GPU images, recommended presets use one of these resolutions with refresh rates + // 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, + // 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, + // 768x1024, 800x1600. 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 { @@ -592,14 +592,14 @@ type BrowserListResponse struct { // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, - // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended - // presets use one of these resolutions with refresh rates 60, 30, 25, or 10: - // 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, - // 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. - // 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). + // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For + // GPU images, recommended presets use one of these resolutions with refresh rates + // 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, + // 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, + // 768x1024, 800x1600. 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 { @@ -720,14 +720,14 @@ type BrowserNewParams struct { // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, - // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended - // presets use one of these resolutions with refresh rates 60, 30, 25, or 10: - // 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, - // 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. - // 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). + // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For + // GPU images, recommended presets use one of these resolutions with refresh rates + // 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, + // 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, + // 768x1024, 800x1600. 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 } diff --git a/browserpool.go b/browserpool.go index 651a721..26a187a 100644 --- a/browserpool.go +++ b/browserpool.go @@ -240,14 +240,14 @@ type BrowserPoolBrowserPoolConfig struct { // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, - // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended - // presets use one of these resolutions with refresh rates 60, 30, 25, or 10: - // 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, - // 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. - // 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). + // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For + // GPU images, recommended presets use one of these resolutions with refresh rates + // 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, + // 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, + // 768x1024, 800x1600. 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 { @@ -358,14 +358,14 @@ type BrowserPoolAcquireResponse struct { // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, - // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended - // presets use one of these resolutions with refresh rates 60, 30, 25, or 10: - // 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, - // 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. - // 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). + // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For + // GPU images, recommended presets use one of these resolutions with refresh rates + // 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, + // 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, + // 768x1024, 800x1600. 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 { @@ -451,14 +451,14 @@ type BrowserPoolNewParams struct { // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, - // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended - // presets use one of these resolutions with refresh rates 60, 30, 25, or 10: - // 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, - // 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. - // 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). + // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For + // GPU images, recommended presets use one of these resolutions with refresh rates + // 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, + // 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, + // 768x1024, 800x1600. 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 } @@ -546,14 +546,14 @@ type BrowserPoolUpdateParams struct { // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, - // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended - // presets use one of these resolutions with refresh rates 60, 30, 25, or 10: - // 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, - // 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. - // 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). + // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For + // GPU images, recommended presets use one of these resolutions with refresh rates + // 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, + // 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, + // 768x1024, 800x1600. 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 } diff --git a/internal/version.go b/internal/version.go index 2b13c16..ae7994e 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.73.0" // x-release-please-version +const PackageVersion = "0.74.0" // x-release-please-version diff --git a/invocation.go b/invocation.go index d10d7bf..9855eeb 100644 --- a/invocation.go +++ b/invocation.go @@ -593,14 +593,14 @@ type InvocationListBrowsersResponseBrowser struct { // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, - // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended - // presets use one of these resolutions with refresh rates 60, 30, 25, or 10: - // 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, - // 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. - // 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). + // 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For + // GPU images, recommended presets use one of these resolutions with refresh rates + // 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, + // 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, + // 768x1024, 800x1600. 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 { diff --git a/shared/shared.go b/shared/shared.go index 2d07e6d..88d6140 100644 --- a/shared/shared.go +++ b/shared/shared.go @@ -122,14 +122,14 @@ func (r *BrowserProfileParam) UnmarshalJSON(data []byte) error { // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, -// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended -// presets use one of these resolutions with refresh rates 60, 30, 25, or 10: -// 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, -// 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. -// 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). +// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For +// GPU images, recommended presets use one of these resolutions with refresh rates +// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, +// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, +// 768x1024, 800x1600. 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). type BrowserViewport struct { // Browser window height in pixels. Any positive integer is accepted. Height int64 `json:"height" api:"required"` @@ -167,14 +167,14 @@ func (r BrowserViewport) ToParam() BrowserViewportParam { // image defaults apply (1920x1080@25). For GPU images, the default is // 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted. // Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25, -// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended -// presets use one of these resolutions with refresh rates 60, 30, 25, or 10: -// 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768, -// 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600. -// 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). +// 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For +// GPU images, recommended presets use one of these resolutions with refresh rates +// 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, +// 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, +// 768x1024, 800x1600. 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). // // The properties Height, Width are required. type BrowserViewportParam struct {