Skip to content

Commit 7c8a464

Browse files
feat: [wip] Browser pools polish pass
1 parent f3fdc89 commit 7c8a464

File tree

4 files changed

+49
-49
lines changed

4 files changed

+49
-49
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: 74
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-cbef7e4fef29ad40af5c767aceb762ee68811c2287f255c05d2ee44a9a9247a2.yml
3-
openapi_spec_hash: 467e61e072773ec9f2d49c7dd3de8c2f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-3a68acd8c46e121c66be5b4c30bb4e962967840ca0f31070905baa39635fbc2d.yml
3+
openapi_spec_hash: 9453963fbb01de3e0afb462b16cdf115
44
config_hash: 6dbe88d2ba9df1ec46cedbfdb7d00000

src/resources/browser-pools.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,11 @@ export interface BrowserPoolRequest {
266266

267267
/**
268268
* Initial browser window size in pixels with optional refresh rate. If omitted,
269-
* image defaults apply (commonly 1024x768@60). Only specific viewport
270-
* configurations are supported. The server will reject unsupported combinations.
271-
* Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
272-
* 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
273-
* be automatically determined from the width and height if they match a supported
269+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
270+
* supported. The server will reject unsupported combinations. Supported
271+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
272+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
273+
* automatically determined from the width and height if they match a supported
274274
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
275275
* live view browser
276276
*/
@@ -284,7 +284,7 @@ export interface BrowserPoolRequest {
284284
export interface BrowserPoolUpdateRequest extends BrowserPoolRequest {
285285
/**
286286
* Whether to discard all idle browsers and rebuild the pool immediately. Defaults
287-
* to true.
287+
* to false.
288288
*/
289289
discard_all_idle?: boolean;
290290
}
@@ -356,11 +356,11 @@ export interface BrowserPoolAcquireResponse {
356356

357357
/**
358358
* Initial browser window size in pixels with optional refresh rate. If omitted,
359-
* image defaults apply (commonly 1024x768@60). Only specific viewport
360-
* configurations are supported. The server will reject unsupported combinations.
361-
* Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
362-
* 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
363-
* be automatically determined from the width and height if they match a supported
359+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
360+
* supported. The server will reject unsupported combinations. Supported
361+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
362+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
363+
* automatically determined from the width and height if they match a supported
364364
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
365365
* live view browser
366366
*/
@@ -426,11 +426,11 @@ export interface BrowserPoolCreateParams {
426426

427427
/**
428428
* Initial browser window size in pixels with optional refresh rate. If omitted,
429-
* image defaults apply (commonly 1024x768@60). Only specific viewport
430-
* configurations are supported. The server will reject unsupported combinations.
431-
* Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
432-
* 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
433-
* be automatically determined from the width and height if they match a supported
429+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
430+
* supported. The server will reject unsupported combinations. Supported
431+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
432+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
433+
* automatically determined from the width and height if they match a supported
434434
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
435435
* live view browser
436436
*/
@@ -445,7 +445,7 @@ export interface BrowserPoolUpdateParams {
445445

446446
/**
447447
* Whether to discard all idle browsers and rebuild the pool immediately. Defaults
448-
* to true.
448+
* to false.
449449
*/
450450
discard_all_idle?: boolean;
451451

@@ -502,11 +502,11 @@ export interface BrowserPoolUpdateParams {
502502

503503
/**
504504
* Initial browser window size in pixels with optional refresh rate. If omitted,
505-
* image defaults apply (commonly 1024x768@60). Only specific viewport
506-
* configurations are supported. The server will reject unsupported combinations.
507-
* Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
508-
* 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
509-
* be automatically determined from the width and height if they match a supported
505+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
506+
* supported. The server will reject unsupported combinations. Supported
507+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
508+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
509+
* automatically determined from the width and height if they match a supported
510510
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
511511
* live view browser
512512
*/

src/resources/browsers/browsers.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,11 @@ export interface BrowserCreateResponse {
293293

294294
/**
295295
* Initial browser window size in pixels with optional refresh rate. If omitted,
296-
* image defaults apply (commonly 1024x768@60). Only specific viewport
297-
* configurations are supported. The server will reject unsupported combinations.
298-
* Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
299-
* 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
300-
* be automatically determined from the width and height if they match a supported
296+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
297+
* supported. The server will reject unsupported combinations. Supported
298+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
299+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
300+
* automatically determined from the width and height if they match a supported
301301
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
302302
* live view browser
303303
*/
@@ -369,11 +369,11 @@ export interface BrowserRetrieveResponse {
369369

370370
/**
371371
* Initial browser window size in pixels with optional refresh rate. If omitted,
372-
* image defaults apply (commonly 1024x768@60). Only specific viewport
373-
* configurations are supported. The server will reject unsupported combinations.
374-
* Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
375-
* 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
376-
* be automatically determined from the width and height if they match a supported
372+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
373+
* supported. The server will reject unsupported combinations. Supported
374+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
375+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
376+
* automatically determined from the width and height if they match a supported
377377
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
378378
* live view browser
379379
*/
@@ -445,11 +445,11 @@ export interface BrowserListResponse {
445445

446446
/**
447447
* Initial browser window size in pixels with optional refresh rate. If omitted,
448-
* image defaults apply (commonly 1024x768@60). Only specific viewport
449-
* configurations are supported. The server will reject unsupported combinations.
450-
* Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
451-
* 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
452-
* be automatically determined from the width and height if they match a supported
448+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
449+
* supported. The server will reject unsupported combinations. Supported
450+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
451+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
452+
* automatically determined from the width and height if they match a supported
453453
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
454454
* live view browser
455455
*/
@@ -515,11 +515,11 @@ export interface BrowserCreateParams {
515515

516516
/**
517517
* Initial browser window size in pixels with optional refresh rate. If omitted,
518-
* image defaults apply (commonly 1024x768@60). Only specific viewport
519-
* configurations are supported. The server will reject unsupported combinations.
520-
* Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
521-
* 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
522-
* be automatically determined from the width and height if they match a supported
518+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
519+
* supported. The server will reject unsupported combinations. Supported
520+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
521+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
522+
* automatically determined from the width and height if they match a supported
523523
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
524524
* live view browser
525525
*/

src/resources/shared.ts

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

5454
/**
5555
* Initial browser window size in pixels with optional refresh rate. If omitted,
56-
* image defaults apply (commonly 1024x768@60). Only specific viewport
57-
* configurations are supported. The server will reject unsupported combinations.
58-
* Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
59-
* 1440x900@25, 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
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+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
60+
* automatically determined from the width and height if they match a supported
6161
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
6262
* live view browser
6363
*/

0 commit comments

Comments
 (0)