@onkernel/sdk 0.33.0 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -176,13 +176,13 @@ export declare namespace BrowserPool {
176
176
  timeout_seconds?: number;
177
177
  /**
178
178
  * Initial browser window size in pixels with optional refresh rate. If omitted,
179
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
180
- * supported. The server will reject unsupported combinations. Supported
181
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
182
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
183
- * be automatically determined from the width and height if they match a supported
184
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
185
- * live view browser
179
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
180
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
181
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
182
+ * Viewports outside this list may exhibit unstable live view or recording
183
+ * behavior. If refresh_rate is not provided, it will be automatically determined
184
+ * based on the resolution (higher resolutions use lower refresh rates to keep
185
+ * bandwidth reasonable).
186
186
  */
187
187
  viewport?: Shared.BrowserViewport;
188
188
  }
@@ -241,13 +241,13 @@ export interface BrowserPoolAcquireResponse {
241
241
  proxy_id?: string;
242
242
  /**
243
243
  * Initial browser window size in pixels with optional refresh rate. If omitted,
244
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
245
- * supported. The server will reject unsupported combinations. Supported
246
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
247
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
248
- * be automatically determined from the width and height if they match a supported
249
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
250
- * live view browser
244
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
245
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
246
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
247
+ * Viewports outside this list may exhibit unstable live view or recording
248
+ * behavior. If refresh_rate is not provided, it will be automatically determined
249
+ * based on the resolution (higher resolutions use lower refresh rates to keep
250
+ * bandwidth reasonable).
251
251
  */
252
252
  viewport?: Shared.BrowserViewport;
253
253
  }
@@ -302,13 +302,13 @@ export interface BrowserPoolCreateParams {
302
302
  timeout_seconds?: number;
303
303
  /**
304
304
  * Initial browser window size in pixels with optional refresh rate. If omitted,
305
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
306
- * supported. The server will reject unsupported combinations. Supported
307
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
308
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
309
- * be automatically determined from the width and height if they match a supported
310
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
311
- * live view browser
305
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
306
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
307
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
308
+ * Viewports outside this list may exhibit unstable live view or recording
309
+ * behavior. If refresh_rate is not provided, it will be automatically determined
310
+ * based on the resolution (higher resolutions use lower refresh rates to keep
311
+ * bandwidth reasonable).
312
312
  */
313
313
  viewport?: Shared.BrowserViewport;
314
314
  }
@@ -368,13 +368,13 @@ export interface BrowserPoolUpdateParams {
368
368
  timeout_seconds?: number;
369
369
  /**
370
370
  * Initial browser window size in pixels with optional refresh rate. If omitted,
371
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
372
- * supported. The server will reject unsupported combinations. Supported
373
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
374
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
375
- * be automatically determined from the width and height if they match a supported
376
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
377
- * live view browser
371
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
372
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
373
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
374
+ * Viewports outside this list may exhibit unstable live view or recording
375
+ * behavior. If refresh_rate is not provided, it will be automatically determined
376
+ * based on the resolution (higher resolutions use lower refresh rates to keep
377
+ * bandwidth reasonable).
378
378
  */
379
379
  viewport?: Shared.BrowserViewport;
380
380
  }
@@ -176,13 +176,13 @@ export declare namespace BrowserPool {
176
176
  timeout_seconds?: number;
177
177
  /**
178
178
  * Initial browser window size in pixels with optional refresh rate. If omitted,
179
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
180
- * supported. The server will reject unsupported combinations. Supported
181
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
182
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
183
- * be automatically determined from the width and height if they match a supported
184
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
185
- * live view browser
179
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
180
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
181
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
182
+ * Viewports outside this list may exhibit unstable live view or recording
183
+ * behavior. If refresh_rate is not provided, it will be automatically determined
184
+ * based on the resolution (higher resolutions use lower refresh rates to keep
185
+ * bandwidth reasonable).
186
186
  */
187
187
  viewport?: Shared.BrowserViewport;
188
188
  }
@@ -241,13 +241,13 @@ export interface BrowserPoolAcquireResponse {
241
241
  proxy_id?: string;
242
242
  /**
243
243
  * Initial browser window size in pixels with optional refresh rate. If omitted,
244
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
245
- * supported. The server will reject unsupported combinations. Supported
246
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
247
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
248
- * be automatically determined from the width and height if they match a supported
249
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
250
- * live view browser
244
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
245
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
246
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
247
+ * Viewports outside this list may exhibit unstable live view or recording
248
+ * behavior. If refresh_rate is not provided, it will be automatically determined
249
+ * based on the resolution (higher resolutions use lower refresh rates to keep
250
+ * bandwidth reasonable).
251
251
  */
252
252
  viewport?: Shared.BrowserViewport;
253
253
  }
@@ -302,13 +302,13 @@ export interface BrowserPoolCreateParams {
302
302
  timeout_seconds?: number;
303
303
  /**
304
304
  * Initial browser window size in pixels with optional refresh rate. If omitted,
305
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
306
- * supported. The server will reject unsupported combinations. Supported
307
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
308
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
309
- * be automatically determined from the width and height if they match a supported
310
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
311
- * live view browser
305
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
306
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
307
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
308
+ * Viewports outside this list may exhibit unstable live view or recording
309
+ * behavior. If refresh_rate is not provided, it will be automatically determined
310
+ * based on the resolution (higher resolutions use lower refresh rates to keep
311
+ * bandwidth reasonable).
312
312
  */
313
313
  viewport?: Shared.BrowserViewport;
314
314
  }
@@ -368,13 +368,13 @@ export interface BrowserPoolUpdateParams {
368
368
  timeout_seconds?: number;
369
369
  /**
370
370
  * Initial browser window size in pixels with optional refresh rate. If omitted,
371
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
372
- * supported. The server will reject unsupported combinations. Supported
373
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
374
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
375
- * be automatically determined from the width and height if they match a supported
376
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
377
- * live view browser
371
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
372
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
373
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
374
+ * Viewports outside this list may exhibit unstable live view or recording
375
+ * behavior. If refresh_rate is not provided, it will be automatically determined
376
+ * based on the resolution (higher resolutions use lower refresh rates to keep
377
+ * bandwidth reasonable).
378
378
  */
379
379
  viewport?: Shared.BrowserViewport;
380
380
  }
@@ -192,13 +192,13 @@ export interface BrowserCreateResponse {
192
192
  proxy_id?: string;
193
193
  /**
194
194
  * Initial browser window size in pixels with optional refresh rate. If omitted,
195
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
196
- * supported. The server will reject unsupported combinations. Supported
197
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
198
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
199
- * be automatically determined from the width and height if they match a supported
200
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
201
- * live view browser
195
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
196
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
197
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
198
+ * Viewports outside this list may exhibit unstable live view or recording
199
+ * behavior. If refresh_rate is not provided, it will be automatically determined
200
+ * based on the resolution (higher resolutions use lower refresh rates to keep
201
+ * bandwidth reasonable).
202
202
  */
203
203
  viewport?: Shared.BrowserViewport;
204
204
  }
@@ -255,13 +255,13 @@ export interface BrowserRetrieveResponse {
255
255
  proxy_id?: string;
256
256
  /**
257
257
  * Initial browser window size in pixels with optional refresh rate. If omitted,
258
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
259
- * supported. The server will reject unsupported combinations. Supported
260
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
261
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
262
- * be automatically determined from the width and height if they match a supported
263
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
264
- * live view browser
258
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
259
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
260
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
261
+ * Viewports outside this list may exhibit unstable live view or recording
262
+ * behavior. If refresh_rate is not provided, it will be automatically determined
263
+ * based on the resolution (higher resolutions use lower refresh rates to keep
264
+ * bandwidth reasonable).
265
265
  */
266
266
  viewport?: Shared.BrowserViewport;
267
267
  }
@@ -318,13 +318,13 @@ export interface BrowserUpdateResponse {
318
318
  proxy_id?: string;
319
319
  /**
320
320
  * Initial browser window size in pixels with optional refresh rate. If omitted,
321
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
322
- * supported. The server will reject unsupported combinations. Supported
323
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
324
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
325
- * be automatically determined from the width and height if they match a supported
326
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
327
- * live view browser
321
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
322
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
323
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
324
+ * Viewports outside this list may exhibit unstable live view or recording
325
+ * behavior. If refresh_rate is not provided, it will be automatically determined
326
+ * based on the resolution (higher resolutions use lower refresh rates to keep
327
+ * bandwidth reasonable).
328
328
  */
329
329
  viewport?: Shared.BrowserViewport;
330
330
  }
@@ -381,13 +381,13 @@ export interface BrowserListResponse {
381
381
  proxy_id?: string;
382
382
  /**
383
383
  * Initial browser window size in pixels with optional refresh rate. If omitted,
384
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
385
- * supported. The server will reject unsupported combinations. Supported
386
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
387
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
388
- * be automatically determined from the width and height if they match a supported
389
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
390
- * live view browser
384
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
385
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
386
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
387
+ * Viewports outside this list may exhibit unstable live view or recording
388
+ * behavior. If refresh_rate is not provided, it will be automatically determined
389
+ * based on the resolution (higher resolutions use lower refresh rates to keep
390
+ * bandwidth reasonable).
391
391
  */
392
392
  viewport?: Shared.BrowserViewport;
393
393
  }
@@ -441,13 +441,13 @@ export interface BrowserCreateParams {
441
441
  timeout_seconds?: number;
442
442
  /**
443
443
  * Initial browser window size in pixels with optional refresh rate. If omitted,
444
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
445
- * supported. The server will reject unsupported combinations. Supported
446
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
447
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
448
- * be automatically determined from the width and height if they match a supported
449
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
450
- * live view browser
444
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
445
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
446
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
447
+ * Viewports outside this list may exhibit unstable live view or recording
448
+ * behavior. If refresh_rate is not provided, it will be automatically determined
449
+ * based on the resolution (higher resolutions use lower refresh rates to keep
450
+ * bandwidth reasonable).
451
451
  */
452
452
  viewport?: Shared.BrowserViewport;
453
453
  }
@@ -192,13 +192,13 @@ export interface BrowserCreateResponse {
192
192
  proxy_id?: string;
193
193
  /**
194
194
  * Initial browser window size in pixels with optional refresh rate. If omitted,
195
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
196
- * supported. The server will reject unsupported combinations. Supported
197
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
198
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
199
- * be automatically determined from the width and height if they match a supported
200
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
201
- * live view browser
195
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
196
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
197
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
198
+ * Viewports outside this list may exhibit unstable live view or recording
199
+ * behavior. If refresh_rate is not provided, it will be automatically determined
200
+ * based on the resolution (higher resolutions use lower refresh rates to keep
201
+ * bandwidth reasonable).
202
202
  */
203
203
  viewport?: Shared.BrowserViewport;
204
204
  }
@@ -255,13 +255,13 @@ export interface BrowserRetrieveResponse {
255
255
  proxy_id?: string;
256
256
  /**
257
257
  * Initial browser window size in pixels with optional refresh rate. If omitted,
258
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
259
- * supported. The server will reject unsupported combinations. Supported
260
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
261
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
262
- * be automatically determined from the width and height if they match a supported
263
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
264
- * live view browser
258
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
259
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
260
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
261
+ * Viewports outside this list may exhibit unstable live view or recording
262
+ * behavior. If refresh_rate is not provided, it will be automatically determined
263
+ * based on the resolution (higher resolutions use lower refresh rates to keep
264
+ * bandwidth reasonable).
265
265
  */
266
266
  viewport?: Shared.BrowserViewport;
267
267
  }
@@ -318,13 +318,13 @@ export interface BrowserUpdateResponse {
318
318
  proxy_id?: string;
319
319
  /**
320
320
  * Initial browser window size in pixels with optional refresh rate. If omitted,
321
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
322
- * supported. The server will reject unsupported combinations. Supported
323
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
324
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
325
- * be automatically determined from the width and height if they match a supported
326
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
327
- * live view browser
321
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
322
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
323
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
324
+ * Viewports outside this list may exhibit unstable live view or recording
325
+ * behavior. If refresh_rate is not provided, it will be automatically determined
326
+ * based on the resolution (higher resolutions use lower refresh rates to keep
327
+ * bandwidth reasonable).
328
328
  */
329
329
  viewport?: Shared.BrowserViewport;
330
330
  }
@@ -381,13 +381,13 @@ export interface BrowserListResponse {
381
381
  proxy_id?: string;
382
382
  /**
383
383
  * Initial browser window size in pixels with optional refresh rate. If omitted,
384
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
385
- * supported. The server will reject unsupported combinations. Supported
386
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
387
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
388
- * be automatically determined from the width and height if they match a supported
389
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
390
- * live view browser
384
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
385
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
386
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
387
+ * Viewports outside this list may exhibit unstable live view or recording
388
+ * behavior. If refresh_rate is not provided, it will be automatically determined
389
+ * based on the resolution (higher resolutions use lower refresh rates to keep
390
+ * bandwidth reasonable).
391
391
  */
392
392
  viewport?: Shared.BrowserViewport;
393
393
  }
@@ -441,13 +441,13 @@ export interface BrowserCreateParams {
441
441
  timeout_seconds?: number;
442
442
  /**
443
443
  * Initial browser window size in pixels with optional refresh rate. If omitted,
444
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
445
- * supported. The server will reject unsupported combinations. Supported
446
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
447
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
448
- * be automatically determined from the width and height if they match a supported
449
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
450
- * live view browser
444
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
445
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
446
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
447
+ * Viewports outside this list may exhibit unstable live view or recording
448
+ * behavior. If refresh_rate is not provided, it will be automatically determined
449
+ * based on the resolution (higher resolutions use lower refresh rates to keep
450
+ * bandwidth reasonable).
451
451
  */
452
452
  viewport?: Shared.BrowserViewport;
453
453
  }
@@ -364,13 +364,13 @@ export declare namespace InvocationListBrowsersResponse {
364
364
  proxy_id?: string;
365
365
  /**
366
366
  * Initial browser window size in pixels with optional refresh rate. If omitted,
367
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
368
- * supported. The server will reject unsupported combinations. Supported
369
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
370
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
371
- * be automatically determined from the width and height if they match a supported
372
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
373
- * live view browser
367
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
368
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
369
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
370
+ * Viewports outside this list may exhibit unstable live view or recording
371
+ * behavior. If refresh_rate is not provided, it will be automatically determined
372
+ * based on the resolution (higher resolutions use lower refresh rates to keep
373
+ * bandwidth reasonable).
374
374
  */
375
375
  viewport?: Shared.BrowserViewport;
376
376
  }
@@ -364,13 +364,13 @@ export declare namespace InvocationListBrowsersResponse {
364
364
  proxy_id?: string;
365
365
  /**
366
366
  * Initial browser window size in pixels with optional refresh rate. If omitted,
367
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
368
- * supported. The server will reject unsupported combinations. Supported
369
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
370
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
371
- * be automatically determined from the width and height if they match a supported
372
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
373
- * live view browser
367
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
368
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
369
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
370
+ * Viewports outside this list may exhibit unstable live view or recording
371
+ * behavior. If refresh_rate is not provided, it will be automatically determined
372
+ * based on the resolution (higher resolutions use lower refresh rates to keep
373
+ * bandwidth reasonable).
374
374
  */
375
375
  viewport?: Shared.BrowserViewport;
376
376
  }
@@ -6,6 +6,20 @@ export interface AppAction {
6
6
  * Name of the action
7
7
  */
8
8
  name: string;
9
+ /**
10
+ * JSON Schema (draft-07) describing the expected input payload. Null if schema
11
+ * could not be automatically generated.
12
+ */
13
+ input_schema?: {
14
+ [key: string]: unknown;
15
+ } | null;
16
+ /**
17
+ * JSON Schema (draft-07) describing the expected output payload. Null if schema
18
+ * could not be automatically generated.
19
+ */
20
+ output_schema?: {
21
+ [key: string]: unknown;
22
+ } | null;
9
23
  }
10
24
  /**
11
25
  * Extension selection for the browser session. Provide either id or name of an
@@ -45,13 +59,13 @@ export interface BrowserProfile {
45
59
  }
46
60
  /**
47
61
  * Initial browser window size in pixels with optional refresh rate. If omitted,
48
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
49
- * supported. The server will reject unsupported combinations. Supported
50
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
51
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
52
- * be automatically determined from the width and height if they match a supported
53
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
54
- * live view browser
62
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
63
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
64
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
65
+ * Viewports outside this list may exhibit unstable live view or recording
66
+ * behavior. If refresh_rate is not provided, it will be automatically determined
67
+ * based on the resolution (higher resolutions use lower refresh rates to keep
68
+ * bandwidth reasonable).
55
69
  */
56
70
  export interface BrowserViewport {
57
71
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;A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AAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAE7B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;IAEvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -6,6 +6,20 @@ export interface AppAction {
6
6
  * Name of the action
7
7
  */
8
8
  name: string;
9
+ /**
10
+ * JSON Schema (draft-07) describing the expected input payload. Null if schema
11
+ * could not be automatically generated.
12
+ */
13
+ input_schema?: {
14
+ [key: string]: unknown;
15
+ } | null;
16
+ /**
17
+ * JSON Schema (draft-07) describing the expected output payload. Null if schema
18
+ * could not be automatically generated.
19
+ */
20
+ output_schema?: {
21
+ [key: string]: unknown;
22
+ } | null;
9
23
  }
10
24
  /**
11
25
  * Extension selection for the browser session. Provide either id or name of an
@@ -45,13 +59,13 @@ export interface BrowserProfile {
45
59
  }
46
60
  /**
47
61
  * Initial browser window size in pixels with optional refresh rate. If omitted,
48
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
49
- * supported. The server will reject unsupported combinations. Supported
50
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
51
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
52
- * be automatically determined from the width and height if they match a supported
53
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
54
- * live view browser
62
+ * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
63
+ * but the following configurations are known-good and fully tested: 2560x1440@10,
64
+ * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
65
+ * Viewports outside this list may exhibit unstable live view or recording
66
+ * behavior. If refresh_rate is not provided, it will be automatically determined
67
+ * based on the resolution (higher resolutions use lower refresh rates to keep
68
+ * bandwidth reasonable).
55
69
  */
56
70
  export interface BrowserViewport {
57
71
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,UAAU,CAAC;IAElB;;OAEG;IACH,KAAK,EAAE,OAAO,CAA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;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,UAAU,CAAC;IAElB;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAE7B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;IAEvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB"}
package/src/client.ts CHANGED
@@ -581,7 +581,7 @@ export class Kernel {
581
581
  loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
582
582
 
583
583
  const errText = await response.text().catch((err: any) => castToError(err).message);
584
- const errJSON = safeJSON(errText);
584
+ const errJSON = safeJSON(errText) as any;
585
585
  const errMessage = errJSON ? undefined : errText;
586
586
 
587
587
  loggerFor(this).debug(
@@ -854,6 +854,14 @@ export class Kernel {
854
854
  (Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
855
855
  ) {
856
856
  return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
857
+ } else if (
858
+ typeof body === 'object' &&
859
+ headers.values.get('content-type') === 'application/x-www-form-urlencoded'
860
+ ) {
861
+ return {
862
+ bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
863
+ body: this.stringifyQuery(body as Record<string, unknown>),
864
+ };
857
865
  } else {
858
866
  return this.#encoder({ body, headers });
859
867
  }
@@ -46,7 +46,7 @@ export class Stream<Item> implements AsyncIterable<Item> {
46
46
  try {
47
47
  for await (const sse of _iterSSEMessages(response, controller)) {
48
48
  try {
49
- yield JSON.parse(sse.data);
49
+ yield JSON.parse(sse.data) as Item;
50
50
  } catch (e) {
51
51
  logger.error(`Could not parse message into JSON:`, sse.data);
52
52
  logger.error(`From chunk:`, sse.raw);
@@ -102,7 +102,7 @@ export class Stream<Item> implements AsyncIterable<Item> {
102
102
  try {
103
103
  for await (const line of iterLines()) {
104
104
  if (done) continue;
105
- if (line) yield JSON.parse(line);
105
+ if (line) yield JSON.parse(line) as Item;
106
106
  }
107
107
  done = true;
108
108
  } catch (e) {