Skip to content

Commit 37971a0

Browse files
feat: Add tablet and mobile viewport presets to pool dashboard
1 parent 6ebd62a commit 37971a0

15 files changed

Lines changed: 132 additions & 132 deletions

.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/kernel/resources/browser_pools.py

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ def create(
136136
image defaults apply (1920x1080@25). For GPU images, the default is
137137
1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
138138
Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
139-
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
140-
presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
141-
800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
142-
1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
143-
Viewports outside this list may exhibit unstable live view or recording
144-
behavior. If refresh_rate is not provided, it will be automatically determined
145-
based on the resolution (higher resolutions use lower refresh rates to keep
146-
bandwidth reasonable).
139+
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
140+
GPU images, recommended presets use one of these resolutions with refresh rates
141+
60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
142+
1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
143+
768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
144+
or recording behavior. If refresh_rate is not provided, it will be automatically
145+
determined based on the resolution (higher resolutions use lower refresh rates
146+
to keep bandwidth reasonable).
147147
148148
extra_headers: Send extra headers
149149
@@ -295,14 +295,14 @@ def update(
295295
image defaults apply (1920x1080@25). For GPU images, the default is
296296
1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
297297
Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
298-
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
299-
presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
300-
800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
301-
1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
302-
Viewports outside this list may exhibit unstable live view or recording
303-
behavior. If refresh_rate is not provided, it will be automatically determined
304-
based on the resolution (higher resolutions use lower refresh rates to keep
305-
bandwidth reasonable).
298+
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
299+
GPU images, recommended presets use one of these resolutions with refresh rates
300+
60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
301+
1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
302+
768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
303+
or recording behavior. If refresh_rate is not provided, it will be automatically
304+
determined based on the resolution (higher resolutions use lower refresh rates
305+
to keep bandwidth reasonable).
306306
307307
extra_headers: Send extra headers
308308
@@ -684,14 +684,14 @@ async def create(
684684
image defaults apply (1920x1080@25). For GPU images, the default is
685685
1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
686686
Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
687-
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
688-
presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
689-
800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
690-
1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
691-
Viewports outside this list may exhibit unstable live view or recording
692-
behavior. If refresh_rate is not provided, it will be automatically determined
693-
based on the resolution (higher resolutions use lower refresh rates to keep
694-
bandwidth reasonable).
687+
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
688+
GPU images, recommended presets use one of these resolutions with refresh rates
689+
60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
690+
1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
691+
768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
692+
or recording behavior. If refresh_rate is not provided, it will be automatically
693+
determined based on the resolution (higher resolutions use lower refresh rates
694+
to keep bandwidth reasonable).
695695
696696
extra_headers: Send extra headers
697697
@@ -843,14 +843,14 @@ async def update(
843843
image defaults apply (1920x1080@25). For GPU images, the default is
844844
1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
845845
Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
846-
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
847-
presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
848-
800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
849-
1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
850-
Viewports outside this list may exhibit unstable live view or recording
851-
behavior. If refresh_rate is not provided, it will be automatically determined
852-
based on the resolution (higher resolutions use lower refresh rates to keep
853-
bandwidth reasonable).
846+
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
847+
GPU images, recommended presets use one of these resolutions with refresh rates
848+
60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
849+
1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
850+
768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
851+
or recording behavior. If refresh_rate is not provided, it will be automatically
852+
determined based on the resolution (higher resolutions use lower refresh rates
853+
to keep bandwidth reasonable).
854854
855855
extra_headers: Send extra headers
856856

src/kernel/resources/browsers/browsers.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,14 @@ def create(
246246
image defaults apply (1920x1080@25). For GPU images, the default is
247247
1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
248248
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.
253-
Viewports outside this list may exhibit unstable live view or recording
254-
behavior. If refresh_rate is not provided, it will be automatically determined
255-
based on the resolution (higher resolutions use lower refresh rates to keep
256-
bandwidth reasonable).
249+
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
250+
GPU images, recommended presets use one of these resolutions with refresh rates
251+
60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
252+
1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
253+
768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
254+
or recording behavior. If refresh_rate is not provided, it will be automatically
255+
determined based on the resolution (higher resolutions use lower refresh rates
256+
to keep bandwidth reasonable).
257257
258258
extra_headers: Send extra headers
259259
@@ -824,14 +824,14 @@ async def create(
824824
image defaults apply (1920x1080@25). For GPU images, the default is
825825
1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
826826
Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
827-
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
828-
presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
829-
800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
830-
1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
831-
Viewports outside this list may exhibit unstable live view or recording
832-
behavior. If refresh_rate is not provided, it will be automatically determined
833-
based on the resolution (higher resolutions use lower refresh rates to keep
834-
bandwidth reasonable).
827+
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
828+
GPU images, recommended presets use one of these resolutions with refresh rates
829+
60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
830+
1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
831+
768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
832+
or recording behavior. If refresh_rate is not provided, it will be automatically
833+
determined based on the resolution (higher resolutions use lower refresh rates
834+
to keep bandwidth reasonable).
835835
836836
extra_headers: Send extra headers
837837

src/kernel/types/browser_create_params.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ class BrowserCreateParams(TypedDict, total=False):
114114
image defaults apply (1920x1080@25). For GPU images, the default is
115115
1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
116116
Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
117-
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
118-
presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
119-
800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
120-
1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
121-
Viewports outside this list may exhibit unstable live view or recording
122-
behavior. If refresh_rate is not provided, it will be automatically determined
123-
based on the resolution (higher resolutions use lower refresh rates to keep
124-
bandwidth reasonable).
117+
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
118+
GPU images, recommended presets use one of these resolutions with refresh rates
119+
60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
120+
1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
121+
768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
122+
or recording behavior. If refresh_rate is not provided, it will be automatically
123+
determined based on the resolution (higher resolutions use lower refresh rates
124+
to keep bandwidth reasonable).
125125
"""
126126

127127

src/kernel/types/browser_create_response.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ class BrowserCreateResponse(BaseModel):
103103
image defaults apply (1920x1080@25). For GPU images, the default is
104104
1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
105105
Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
106-
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
107-
presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
108-
800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
109-
1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
110-
Viewports outside this list may exhibit unstable live view or recording
111-
behavior. If refresh_rate is not provided, it will be automatically determined
112-
based on the resolution (higher resolutions use lower refresh rates to keep
113-
bandwidth reasonable).
106+
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
107+
GPU images, recommended presets use one of these resolutions with refresh rates
108+
60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
109+
1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
110+
768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
111+
or recording behavior. If refresh_rate is not provided, it will be automatically
112+
determined based on the resolution (higher resolutions use lower refresh rates
113+
to keep bandwidth reasonable).
114114
"""

src/kernel/types/browser_list_response.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ class BrowserListResponse(BaseModel):
103103
image defaults apply (1920x1080@25). For GPU images, the default is
104104
1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
105105
Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
106-
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
107-
presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
108-
800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
109-
1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
110-
Viewports outside this list may exhibit unstable live view or recording
111-
behavior. If refresh_rate is not provided, it will be automatically determined
112-
based on the resolution (higher resolutions use lower refresh rates to keep
113-
bandwidth reasonable).
106+
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
107+
GPU images, recommended presets use one of these resolutions with refresh rates
108+
60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
109+
1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
110+
768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
111+
or recording behavior. If refresh_rate is not provided, it will be automatically
112+
determined based on the resolution (higher resolutions use lower refresh rates
113+
to keep bandwidth reasonable).
114114
"""

src/kernel/types/browser_pool.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ class BrowserPoolConfig(BaseModel):
117117
image defaults apply (1920x1080@25). For GPU images, the default is
118118
1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
119119
Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
120-
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
121-
presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
122-
800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
123-
1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
124-
Viewports outside this list may exhibit unstable live view or recording
125-
behavior. If refresh_rate is not provided, it will be automatically determined
126-
based on the resolution (higher resolutions use lower refresh rates to keep
127-
bandwidth reasonable).
120+
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
121+
GPU images, recommended presets use one of these resolutions with refresh rates
122+
60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
123+
1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
124+
768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
125+
or recording behavior. If refresh_rate is not provided, it will be automatically
126+
determined based on the resolution (higher resolutions use lower refresh rates
127+
to keep bandwidth reasonable).
128128
"""
129129

130130

src/kernel/types/browser_pool_acquire_response.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ class BrowserPoolAcquireResponse(BaseModel):
103103
image defaults apply (1920x1080@25). For GPU images, the default is
104104
1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
105105
Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
106-
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
107-
presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
108-
800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
109-
1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
110-
Viewports outside this list may exhibit unstable live view or recording
111-
behavior. If refresh_rate is not provided, it will be automatically determined
112-
based on the resolution (higher resolutions use lower refresh rates to keep
113-
bandwidth reasonable).
106+
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
107+
GPU images, recommended presets use one of these resolutions with refresh rates
108+
60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
109+
1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
110+
768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
111+
or recording behavior. If refresh_rate is not provided, it will be automatically
112+
determined based on the resolution (higher resolutions use lower refresh rates
113+
to keep bandwidth reasonable).
114114
"""

src/kernel/types/browser_pool_create_params.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ class BrowserPoolCreateParams(TypedDict, total=False):
9696
image defaults apply (1920x1080@25). For GPU images, the default is
9797
1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
9898
Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
99-
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
100-
presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
101-
800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
102-
1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
103-
Viewports outside this list may exhibit unstable live view or recording
104-
behavior. If refresh_rate is not provided, it will be automatically determined
105-
based on the resolution (higher resolutions use lower refresh rates to keep
106-
bandwidth reasonable).
99+
1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60, 768x1024@60, 390x844@60. For
100+
GPU images, recommended presets use one of these resolutions with refresh rates
101+
60, 30, 25, or 10: 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800,
102+
1280x720, 1368x768, 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250,
103+
768x1024, 800x1600. Viewports outside this list may exhibit unstable live view
104+
or recording behavior. If refresh_rate is not provided, it will be automatically
105+
determined based on the resolution (higher resolutions use lower refresh rates
106+
to keep bandwidth reasonable).
107107
"""
108108

109109

0 commit comments

Comments
 (0)