Skip to content

Commit c1000cb

Browse files
feat: Add tablet and mobile viewport presets to pool dashboard
1 parent 882e978 commit c1000cb

5 files changed

Lines changed: 90 additions & 90 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 125
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-55409ab573762d8bc010fb34c885651ca858a97d4353b4776b7aafeaaa313257.yml
3-
openapi_spec_hash: 0cf678d80f2a2b73fb9ec82d05c8cc0a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-ea36e417a5dbc80a7dab65b38bd6c892520929d31363e626a3341436d697a17c.yml
3+
openapi_spec_hash: fb15f771cbf9c937a4674f23f9a56050
44
config_hash: 06186eb40e0058a2a87ac251fc07415d

src/resources/browser-pools.ts

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,14 @@ export namespace BrowserPool {
282282
* image defaults apply (1920x1080@25). For GPU images, the default is
283283
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
284284
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
285-
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
286-
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
287-
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
288-
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
289-
* Viewports outside this list may exhibit unstable live view or recording
290-
* behavior. If refresh_rate is not provided, it will be automatically determined
291-
* based on the resolution (higher resolutions use lower refresh rates to keep
292-
* bandwidth reasonable).
285+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
286+
* GPU images, recommended presets use one of these resolutions with refresh rates
287+
* 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
288+
* 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
289+
* 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
290+
* or recording behavior. If refresh_rate is not provided, it will be automatically
291+
* determined based on the resolution (higher resolutions use lower refresh rates
292+
* to keep bandwidth reasonable).
293293
*/
294294
viewport?: Shared.BrowserViewport;
295295
}
@@ -438,14 +438,14 @@ export interface BrowserPoolAcquireResponse {
438438
* image defaults apply (1920x1080@25). For GPU images, the default is
439439
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
440440
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
441-
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
442-
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
443-
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
444-
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
445-
* Viewports outside this list may exhibit unstable live view or recording
446-
* behavior. If refresh_rate is not provided, it will be automatically determined
447-
* based on the resolution (higher resolutions use lower refresh rates to keep
448-
* bandwidth reasonable).
441+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
442+
* GPU images, recommended presets use one of these resolutions with refresh rates
443+
* 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
444+
* 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
445+
* 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
446+
* or recording behavior. If refresh_rate is not provided, it will be automatically
447+
* determined based on the resolution (higher resolutions use lower refresh rates
448+
* to keep bandwidth reasonable).
449449
*/
450450
viewport?: Shared.BrowserViewport;
451451
}
@@ -536,14 +536,14 @@ export interface BrowserPoolCreateParams {
536536
* image defaults apply (1920x1080@25). For GPU images, the default is
537537
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
538538
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
539-
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
540-
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
541-
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
542-
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
543-
* Viewports outside this list may exhibit unstable live view or recording
544-
* behavior. If refresh_rate is not provided, it will be automatically determined
545-
* based on the resolution (higher resolutions use lower refresh rates to keep
546-
* bandwidth reasonable).
539+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
540+
* GPU images, recommended presets use one of these resolutions with refresh rates
541+
* 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
542+
* 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
543+
* 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
544+
* or recording behavior. If refresh_rate is not provided, it will be automatically
545+
* determined based on the resolution (higher resolutions use lower refresh rates
546+
* to keep bandwidth reasonable).
547547
*/
548548
viewport?: Shared.BrowserViewport;
549549
}
@@ -663,14 +663,14 @@ export interface BrowserPoolUpdateParams {
663663
* image defaults apply (1920x1080@25). For GPU images, the default is
664664
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
665665
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
666-
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
667-
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
668-
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
669-
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
670-
* Viewports outside this list may exhibit unstable live view or recording
671-
* behavior. If refresh_rate is not provided, it will be automatically determined
672-
* based on the resolution (higher resolutions use lower refresh rates to keep
673-
* bandwidth reasonable).
666+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
667+
* GPU images, recommended presets use one of these resolutions with refresh rates
668+
* 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
669+
* 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
670+
* 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
671+
* or recording behavior. If refresh_rate is not provided, it will be automatically
672+
* determined based on the resolution (higher resolutions use lower refresh rates
673+
* to keep bandwidth reasonable).
674674
*/
675675
viewport?: Shared.BrowserViewport;
676676
}

src/resources/browsers/browsers.ts

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -459,14 +459,14 @@ export interface BrowserCreateResponse {
459459
* image defaults apply (1920x1080@25). For GPU images, the default is
460460
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
461461
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
462-
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
463-
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
464-
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
465-
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
466-
* Viewports outside this list may exhibit unstable live view or recording
467-
* behavior. If refresh_rate is not provided, it will be automatically determined
468-
* based on the resolution (higher resolutions use lower refresh rates to keep
469-
* bandwidth reasonable).
462+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
463+
* GPU images, recommended presets use one of these resolutions with refresh rates
464+
* 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
465+
* 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
466+
* 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
467+
* or recording behavior. If refresh_rate is not provided, it will be automatically
468+
* determined based on the resolution (higher resolutions use lower refresh rates
469+
* to keep bandwidth reasonable).
470470
*/
471471
viewport?: Shared.BrowserViewport;
472472
}
@@ -591,14 +591,14 @@ export interface BrowserRetrieveResponse {
591591
* image defaults apply (1920x1080@25). For GPU images, the default is
592592
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
593593
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
594-
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
595-
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
596-
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
597-
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
598-
* Viewports outside this list may exhibit unstable live view or recording
599-
* behavior. If refresh_rate is not provided, it will be automatically determined
600-
* based on the resolution (higher resolutions use lower refresh rates to keep
601-
* bandwidth reasonable).
594+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
595+
* GPU images, recommended presets use one of these resolutions with refresh rates
596+
* 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
597+
* 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
598+
* 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
599+
* or recording behavior. If refresh_rate is not provided, it will be automatically
600+
* determined based on the resolution (higher resolutions use lower refresh rates
601+
* to keep bandwidth reasonable).
602602
*/
603603
viewport?: Shared.BrowserViewport;
604604
}
@@ -723,14 +723,14 @@ export interface BrowserUpdateResponse {
723723
* image defaults apply (1920x1080@25). For GPU images, the default is
724724
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
725725
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
726-
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
727-
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
728-
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
729-
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
730-
* Viewports outside this list may exhibit unstable live view or recording
731-
* behavior. If refresh_rate is not provided, it will be automatically determined
732-
* based on the resolution (higher resolutions use lower refresh rates to keep
733-
* bandwidth reasonable).
726+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
727+
* GPU images, recommended presets use one of these resolutions with refresh rates
728+
* 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
729+
* 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
730+
* 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
731+
* or recording behavior. If refresh_rate is not provided, it will be automatically
732+
* determined based on the resolution (higher resolutions use lower refresh rates
733+
* to keep bandwidth reasonable).
734734
*/
735735
viewport?: Shared.BrowserViewport;
736736
}
@@ -855,14 +855,14 @@ export interface BrowserListResponse {
855855
* image defaults apply (1920x1080@25). For GPU images, the default is
856856
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
857857
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
858-
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
859-
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
860-
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
861-
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
862-
* Viewports outside this list may exhibit unstable live view or recording
863-
* behavior. If refresh_rate is not provided, it will be automatically determined
864-
* based on the resolution (higher resolutions use lower refresh rates to keep
865-
* bandwidth reasonable).
858+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
859+
* GPU images, recommended presets use one of these resolutions with refresh rates
860+
* 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
861+
* 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
862+
* 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
863+
* or recording behavior. If refresh_rate is not provided, it will be automatically
864+
* determined based on the resolution (higher resolutions use lower refresh rates
865+
* to keep bandwidth reasonable).
866866
*/
867867
viewport?: Shared.BrowserViewport;
868868
}
@@ -992,14 +992,14 @@ export interface BrowserCreateParams {
992992
* image defaults apply (1920x1080@25). For GPU images, the default is
993993
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
994994
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
995-
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
996-
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
997-
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
998-
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
999-
* Viewports outside this list may exhibit unstable live view or recording
1000-
* behavior. If refresh_rate is not provided, it will be automatically determined
1001-
* based on the resolution (higher resolutions use lower refresh rates to keep
1002-
* bandwidth reasonable).
995+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
996+
* GPU images, recommended presets use one of these resolutions with refresh rates
997+
* 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
998+
* 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
999+
* 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
1000+
* or recording behavior. If refresh_rate is not provided, it will be automatically
1001+
* determined based on the resolution (higher resolutions use lower refresh rates
1002+
* to keep bandwidth reasonable).
10031003
*/
10041004
viewport?: Shared.BrowserViewport;
10051005
}

src/resources/invocations.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -538,14 +538,14 @@ export namespace InvocationListBrowsersResponse {
538538
* image defaults apply (1920x1080@25). For GPU images, the default is
539539
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
540540
* Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
541-
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
542-
* presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
543-
* 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
544-
* 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
545-
* Viewports outside this list may exhibit unstable live view or recording
546-
* behavior. If refresh_rate is not provided, it will be automatically determined
547-
* based on the resolution (higher resolutions use lower refresh rates to keep
548-
* bandwidth reasonable).
541+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
542+
* GPU images, recommended presets use one of these resolutions with refresh rates
543+
* 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
544+
* 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
545+
* 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
546+
* or recording behavior. If refresh_rate is not provided, it will be automatically
547+
* determined based on the resolution (higher resolutions use lower refresh rates
548+
* to keep bandwidth reasonable).
549549
*/
550550
viewport?: Shared.BrowserViewport;
551551
}

src/resources/shared.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ export interface BrowserProfile {
6868
* image defaults apply (1920x1080@25). For GPU images, the default is
6969
* 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
7070
* 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.
75-
* Viewports outside this list may exhibit unstable live view or recording
76-
* behavior. If refresh_rate is not provided, it will be automatically determined
77-
* based on the resolution (higher resolutions use lower refresh rates to keep
78-
* bandwidth reasonable).
71+
* 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
72+
* GPU images, recommended presets use one of these resolutions with refresh rates
73+
* 60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
74+
* 1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
75+
* 768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
76+
* or recording behavior. If refresh_rate is not provided, it will be automatically
77+
* determined based on the resolution (higher resolutions use lower refresh rates
78+
* to keep bandwidth reasonable).
7979
*/
8080
export interface BrowserViewport {
8181
/**

0 commit comments

Comments
 (0)