Skip to content

Commit 693e4f6

Browse files
feat: Add GPU viewport presets and GPU encoder defaults
1 parent b9911dd commit 693e4f6

File tree

5 files changed

+79
-35
lines changed

5 files changed

+79
-35
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-e6936890166ce5b11abaccd511a43a8807e2abf96c1f542d4f8d94655ef27d1f.yml
3-
openapi_spec_hash: 0146ecaea96d8136ef4a35cd04aacf22
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-95bb1cbe27cbed0339067fa133590e675b99cda4a9c04fad802a5b14563eb572.yml
3+
openapi_spec_hash: 3a24e61711eedb9ea7bb7589a7df956f
44
config_hash: cff4d43372b6fa66b64e2d4150f6aa76

src/resources/browser-pools.ts

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,13 @@ export namespace BrowserPool {
243243

244244
/**
245245
* Initial browser window size in pixels with optional refresh rate. If omitted,
246-
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
247-
* but the following configurations are known-good and fully tested: 2560x1440@10,
248-
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
246+
* image defaults apply (1920x1080@25). For GPU images, the default is
247+
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
248+
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
249+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
250+
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
251+
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
252+
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
249253
* Viewports outside this list may exhibit unstable live view or recording
250254
* behavior. If refresh_rate is not provided, it will be automatically determined
251255
* based on the resolution (higher resolutions use lower refresh rates to keep
@@ -342,9 +346,13 @@ export interface BrowserPoolAcquireResponse {
342346

343347
/**
344348
* Initial browser window size in pixels with optional refresh rate. If omitted,
345-
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
346-
* but the following configurations are known-good and fully tested: 2560x1440@10,
347-
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
349+
* image defaults apply (1920x1080@25). For GPU images, the default is
350+
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
351+
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
352+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
353+
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
354+
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
355+
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
348356
* Viewports outside this list may exhibit unstable live view or recording
349357
* behavior. If refresh_rate is not provided, it will be automatically determined
350358
* based on the resolution (higher resolutions use lower refresh rates to keep
@@ -414,9 +422,13 @@ export interface BrowserPoolCreateParams {
414422

415423
/**
416424
* Initial browser window size in pixels with optional refresh rate. If omitted,
417-
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
418-
* but the following configurations are known-good and fully tested: 2560x1440@10,
419-
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
425+
* image defaults apply (1920x1080@25). For GPU images, the default is
426+
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
427+
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
428+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
429+
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
430+
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
431+
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
420432
* Viewports outside this list may exhibit unstable live view or recording
421433
* behavior. If refresh_rate is not provided, it will be automatically determined
422434
* based on the resolution (higher resolutions use lower refresh rates to keep
@@ -492,9 +504,13 @@ export interface BrowserPoolUpdateParams {
492504

493505
/**
494506
* Initial browser window size in pixels with optional refresh rate. If omitted,
495-
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
496-
* but the following configurations are known-good and fully tested: 2560x1440@10,
497-
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
507+
* image defaults apply (1920x1080@25). For GPU images, the default is
508+
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
509+
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
510+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
511+
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
512+
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
513+
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
498514
* Viewports outside this list may exhibit unstable live view or recording
499515
* behavior. If refresh_rate is not provided, it will be automatically determined
500516
* based on the resolution (higher resolutions use lower refresh rates to keep

src/resources/browsers/browsers.ts

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,13 @@ export interface BrowserCreateResponse {
367367

368368
/**
369369
* Initial browser window size in pixels with optional refresh rate. If omitted,
370-
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
371-
* but the following configurations are known-good and fully tested: 2560x1440@10,
372-
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
370+
* image defaults apply (1920x1080@25). For GPU images, the default is
371+
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
372+
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
373+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
374+
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
375+
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
376+
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
373377
* Viewports outside this list may exhibit unstable live view or recording
374378
* behavior. If refresh_rate is not provided, it will be automatically determined
375379
* based on the resolution (higher resolutions use lower refresh rates to keep
@@ -463,9 +467,13 @@ export interface BrowserRetrieveResponse {
463467

464468
/**
465469
* Initial browser window size in pixels with optional refresh rate. If omitted,
466-
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
467-
* but the following configurations are known-good and fully tested: 2560x1440@10,
468-
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
470+
* image defaults apply (1920x1080@25). For GPU images, the default is
471+
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
472+
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
473+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
474+
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
475+
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
476+
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
469477
* Viewports outside this list may exhibit unstable live view or recording
470478
* behavior. If refresh_rate is not provided, it will be automatically determined
471479
* based on the resolution (higher resolutions use lower refresh rates to keep
@@ -559,9 +567,13 @@ export interface BrowserUpdateResponse {
559567

560568
/**
561569
* Initial browser window size in pixels with optional refresh rate. If omitted,
562-
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
563-
* but the following configurations are known-good and fully tested: 2560x1440@10,
564-
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
570+
* image defaults apply (1920x1080@25). For GPU images, the default is
571+
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
572+
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
573+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
574+
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
575+
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
576+
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
565577
* Viewports outside this list may exhibit unstable live view or recording
566578
* behavior. If refresh_rate is not provided, it will be automatically determined
567579
* based on the resolution (higher resolutions use lower refresh rates to keep
@@ -655,9 +667,13 @@ export interface BrowserListResponse {
655667

656668
/**
657669
* Initial browser window size in pixels with optional refresh rate. If omitted,
658-
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
659-
* but the following configurations are known-good and fully tested: 2560x1440@10,
660-
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
670+
* image defaults apply (1920x1080@25). For GPU images, the default is
671+
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
672+
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
673+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
674+
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
675+
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
676+
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
661677
* Viewports outside this list may exhibit unstable live view or recording
662678
* behavior. If refresh_rate is not provided, it will be automatically determined
663679
* based on the resolution (higher resolutions use lower refresh rates to keep
@@ -731,9 +747,13 @@ export interface BrowserCreateParams {
731747

732748
/**
733749
* Initial browser window size in pixels with optional refresh rate. If omitted,
734-
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
735-
* but the following configurations are known-good and fully tested: 2560x1440@10,
736-
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
750+
* image defaults apply (1920x1080@25). For GPU images, the default is
751+
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
752+
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
753+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
754+
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
755+
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
756+
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
737757
* Viewports outside this list may exhibit unstable live view or recording
738758
* behavior. If refresh_rate is not provided, it will be automatically determined
739759
* based on the resolution (higher resolutions use lower refresh rates to keep

src/resources/invocations.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,13 @@ export namespace InvocationListBrowsersResponse {
502502

503503
/**
504504
* Initial browser window size in pixels with optional refresh rate. If omitted,
505-
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
506-
* but the following configurations are known-good and fully tested: 2560x1440@10,
507-
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
505+
* image defaults apply (1920x1080@25). For GPU images, the default is
506+
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
507+
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
508+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
509+
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
510+
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
511+
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
508512
* Viewports outside this list may exhibit unstable live view or recording
509513
* behavior. If refresh_rate is not provided, it will be automatically determined
510514
* based on the resolution (higher resolutions use lower refresh rates to keep

src/resources/shared.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,13 @@ export interface BrowserProfile {
6565

6666
/**
6767
* Initial browser window size in pixels with optional refresh rate. If omitted,
68-
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
69-
* but the following configurations are known-good and fully tested: 2560x1440@10,
70-
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
68+
* image defaults apply (1920x1080@25). For GPU images, the default is
69+
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
70+
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
71+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
72+
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
73+
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
74+
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
7175
* Viewports outside this list may exhibit unstable live view or recording
7276
* behavior. If refresh_rate is not provided, it will be automatically determined
7377
* based on the resolution (higher resolutions use lower refresh rates to keep

0 commit comments

Comments
 (0)