Skip to content

Commit 7860190

Browse files
feat: Allow arbitrary viewport dimensions
1 parent 1adbca7 commit 7860190

5 files changed

Lines changed: 79 additions & 79 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: 100
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-b7d469021adcd1493f74dad38746ffa3817dcf86a0a12561a88eb554824e3ffb.yml
3-
openapi_spec_hash: 4134c95bf3012dca38797ca56d62395b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-47ee6a2b624baddb41a681feff758bf1893cd3d65edf3ab51219ebe4d942932b.yml
3+
openapi_spec_hash: 76178c41ede593e76bfacb176057d2f0
44
config_hash: 27c0ea01aeb797a1767af139851c5b66

src/resources/browser-pools.ts

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,13 @@ export namespace BrowserPool {
240240

241241
/**
242242
* Initial browser window size in pixels with optional refresh rate. If omitted,
243-
* image defaults apply (1920x1080@25). Only specific viewport configurations are
244-
* supported. The server will reject unsupported combinations. Supported
245-
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
246-
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
247-
* be automatically determined from the width and height if they match a supported
248-
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
249-
* live view browser
243+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
244+
* but the following configurations are known-good and fully tested: 2560x1440@10,
245+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
246+
* Viewports outside this list may exhibit unstable live view or recording
247+
* behavior. If refresh_rate is not provided, it will be automatically determined
248+
* based on the resolution (higher resolutions use lower refresh rates to keep
249+
* bandwidth reasonable).
250250
*/
251251
viewport?: Shared.BrowserViewport;
252252
}
@@ -319,13 +319,13 @@ export interface BrowserPoolAcquireResponse {
319319

320320
/**
321321
* Initial browser window size in pixels with optional refresh rate. If omitted,
322-
* image defaults apply (1920x1080@25). Only specific viewport configurations are
323-
* supported. The server will reject unsupported combinations. Supported
324-
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
325-
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
326-
* be automatically determined from the width and height if they match a supported
327-
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
328-
* live view browser
322+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
323+
* but the following configurations are known-good and fully tested: 2560x1440@10,
324+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
325+
* Viewports outside this list may exhibit unstable live view or recording
326+
* behavior. If refresh_rate is not provided, it will be automatically determined
327+
* based on the resolution (higher resolutions use lower refresh rates to keep
328+
* bandwidth reasonable).
329329
*/
330330
viewport?: Shared.BrowserViewport;
331331
}
@@ -391,13 +391,13 @@ export interface BrowserPoolCreateParams {
391391

392392
/**
393393
* Initial browser window size in pixels with optional refresh rate. If omitted,
394-
* image defaults apply (1920x1080@25). Only specific viewport configurations are
395-
* supported. The server will reject unsupported combinations. Supported
396-
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
397-
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
398-
* be automatically determined from the width and height if they match a supported
399-
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
400-
* live view browser
394+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
395+
* but the following configurations are known-good and fully tested: 2560x1440@10,
396+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
397+
* Viewports outside this list may exhibit unstable live view or recording
398+
* behavior. If refresh_rate is not provided, it will be automatically determined
399+
* based on the resolution (higher resolutions use lower refresh rates to keep
400+
* bandwidth reasonable).
401401
*/
402402
viewport?: Shared.BrowserViewport;
403403
}
@@ -469,13 +469,13 @@ export interface BrowserPoolUpdateParams {
469469

470470
/**
471471
* Initial browser window size in pixels with optional refresh rate. If omitted,
472-
* image defaults apply (1920x1080@25). Only specific viewport configurations are
473-
* supported. The server will reject unsupported combinations. Supported
474-
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
475-
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
476-
* be automatically determined from the width and height if they match a supported
477-
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
478-
* live view browser
472+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
473+
* but the following configurations are known-good and fully tested: 2560x1440@10,
474+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
475+
* Viewports outside this list may exhibit unstable live view or recording
476+
* behavior. If refresh_rate is not provided, it will be automatically determined
477+
* based on the resolution (higher resolutions use lower refresh rates to keep
478+
* bandwidth reasonable).
479479
*/
480480
viewport?: Shared.BrowserViewport;
481481
}

src/resources/browsers/browsers.ts

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,13 @@ export interface BrowserCreateResponse {
315315

316316
/**
317317
* Initial browser window size in pixels with optional refresh rate. If omitted,
318-
* image defaults apply (1920x1080@25). Only specific viewport configurations are
319-
* supported. The server will reject unsupported combinations. Supported
320-
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
321-
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
322-
* be automatically determined from the width and height if they match a supported
323-
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
324-
* live view browser
318+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
319+
* but the following configurations are known-good and fully tested: 2560x1440@10,
320+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
321+
* Viewports outside this list may exhibit unstable live view or recording
322+
* behavior. If refresh_rate is not provided, it will be automatically determined
323+
* based on the resolution (higher resolutions use lower refresh rates to keep
324+
* bandwidth reasonable).
325325
*/
326326
viewport?: Shared.BrowserViewport;
327327
}
@@ -391,13 +391,13 @@ export interface BrowserRetrieveResponse {
391391

392392
/**
393393
* Initial browser window size in pixels with optional refresh rate. If omitted,
394-
* image defaults apply (1920x1080@25). Only specific viewport configurations are
395-
* supported. The server will reject unsupported combinations. Supported
396-
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
397-
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
398-
* be automatically determined from the width and height if they match a supported
399-
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
400-
* live view browser
394+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
395+
* but the following configurations are known-good and fully tested: 2560x1440@10,
396+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
397+
* Viewports outside this list may exhibit unstable live view or recording
398+
* behavior. If refresh_rate is not provided, it will be automatically determined
399+
* based on the resolution (higher resolutions use lower refresh rates to keep
400+
* bandwidth reasonable).
401401
*/
402402
viewport?: Shared.BrowserViewport;
403403
}
@@ -467,13 +467,13 @@ export interface BrowserUpdateResponse {
467467

468468
/**
469469
* Initial browser window size in pixels with optional refresh rate. If omitted,
470-
* image defaults apply (1920x1080@25). Only specific viewport configurations are
471-
* supported. The server will reject unsupported combinations. Supported
472-
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
473-
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
474-
* be automatically determined from the width and height if they match a supported
475-
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
476-
* live view browser
470+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
471+
* but the following configurations are known-good and fully tested: 2560x1440@10,
472+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
473+
* Viewports outside this list may exhibit unstable live view or recording
474+
* behavior. If refresh_rate is not provided, it will be automatically determined
475+
* based on the resolution (higher resolutions use lower refresh rates to keep
476+
* bandwidth reasonable).
477477
*/
478478
viewport?: Shared.BrowserViewport;
479479
}
@@ -543,13 +543,13 @@ export interface BrowserListResponse {
543543

544544
/**
545545
* Initial browser window size in pixels with optional refresh rate. If omitted,
546-
* image defaults apply (1920x1080@25). Only specific viewport configurations are
547-
* supported. The server will reject unsupported combinations. Supported
548-
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
549-
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
550-
* be automatically determined from the width and height if they match a supported
551-
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
552-
* live view browser
546+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
547+
* but the following configurations are known-good and fully tested: 2560x1440@10,
548+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
549+
* Viewports outside this list may exhibit unstable live view or recording
550+
* behavior. If refresh_rate is not provided, it will be automatically determined
551+
* based on the resolution (higher resolutions use lower refresh rates to keep
552+
* bandwidth reasonable).
553553
*/
554554
viewport?: Shared.BrowserViewport;
555555
}
@@ -613,13 +613,13 @@ export interface BrowserCreateParams {
613613

614614
/**
615615
* Initial browser window size in pixels with optional refresh rate. If omitted,
616-
* image defaults apply (1920x1080@25). Only specific viewport configurations are
617-
* supported. The server will reject unsupported combinations. Supported
618-
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
619-
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
620-
* be automatically determined from the width and height if they match a supported
621-
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
622-
* live view browser
616+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
617+
* but the following configurations are known-good and fully tested: 2560x1440@10,
618+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
619+
* Viewports outside this list may exhibit unstable live view or recording
620+
* behavior. If refresh_rate is not provided, it will be automatically determined
621+
* based on the resolution (higher resolutions use lower refresh rates to keep
622+
* bandwidth reasonable).
623623
*/
624624
viewport?: Shared.BrowserViewport;
625625
}

src/resources/invocations.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -479,13 +479,13 @@ export namespace InvocationListBrowsersResponse {
479479

480480
/**
481481
* Initial browser window size in pixels with optional refresh rate. If omitted,
482-
* image defaults apply (1920x1080@25). Only specific viewport configurations are
483-
* supported. The server will reject unsupported combinations. Supported
484-
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
485-
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
486-
* be automatically determined from the width and height if they match a supported
487-
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
488-
* live view browser
482+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
483+
* but the following configurations are known-good and fully tested: 2560x1440@10,
484+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
485+
* Viewports outside this list may exhibit unstable live view or recording
486+
* behavior. If refresh_rate is not provided, it will be automatically determined
487+
* based on the resolution (higher resolutions use lower refresh rates to keep
488+
* bandwidth reasonable).
489489
*/
490490
viewport?: Shared.BrowserViewport;
491491
}

src/resources/shared.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ export interface BrowserProfile {
5353

5454
/**
5555
* Initial browser window size in pixels with optional refresh rate. If omitted,
56-
* image defaults apply (1920x1080@25). Only specific viewport configurations are
57-
* supported. The server will reject unsupported combinations. Supported
58-
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
59-
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
60-
* be automatically determined from the width and height if they match a supported
61-
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
62-
* live view browser
56+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
57+
* but the following configurations are known-good and fully tested: 2560x1440@10,
58+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
59+
* Viewports outside this list may exhibit unstable live view or recording
60+
* behavior. If refresh_rate is not provided, it will be automatically determined
61+
* based on the resolution (higher resolutions use lower refresh rates to keep
62+
* bandwidth reasonable).
6363
*/
6464
export interface BrowserViewport {
6565
/**

0 commit comments

Comments
 (0)