@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.
- package/CHANGELOG.md +16 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +7 -0
- package/client.js.map +1 -1
- package/client.mjs +7 -0
- package/client.mjs.map +1 -1
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth/connections.d.mts +8 -0
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +8 -0
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/browser-pools.d.mts +28 -28
- package/resources/browser-pools.d.ts +28 -28
- package/resources/browsers/browsers.d.mts +35 -35
- package/resources/browsers/browsers.d.ts +35 -35
- package/resources/invocations.d.mts +7 -7
- package/resources/invocations.d.ts +7 -7
- package/resources/shared.d.mts +21 -7
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +21 -7
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +9 -1
- package/src/core/streaming.ts +2 -2
- package/src/resources/auth/connections.ts +10 -0
- package/src/resources/browser-pools.ts +28 -28
- package/src/resources/browsers/browsers.ts +35 -35
- package/src/resources/invocations.ts +7 -7
- package/src/resources/shared.ts +19 -7
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -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).
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
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).
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
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).
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
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).
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
*
|
|
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).
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
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).
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
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).
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
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).
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
*
|
|
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).
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
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).
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
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).
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
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).
|
|
385
|
-
*
|
|
386
|
-
*
|
|
387
|
-
*
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
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).
|
|
445
|
-
*
|
|
446
|
-
*
|
|
447
|
-
*
|
|
448
|
-
*
|
|
449
|
-
*
|
|
450
|
-
*
|
|
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).
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
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).
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
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).
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
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).
|
|
385
|
-
*
|
|
386
|
-
*
|
|
387
|
-
*
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
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).
|
|
445
|
-
*
|
|
446
|
-
*
|
|
447
|
-
*
|
|
448
|
-
*
|
|
449
|
-
*
|
|
450
|
-
*
|
|
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).
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
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).
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
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
|
}
|
package/resources/shared.d.mts
CHANGED
|
@@ -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).
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
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;
|
|
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;IAEb;;;OAGG;IACH,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAEjD;;;OAGG;IACH,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CACnD;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,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/resources/shared.d.ts
CHANGED
|
@@ -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).
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
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;
|
|
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;IAEb;;;OAGG;IACH,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAEjD;;;OAGG;IACH,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CACnD;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,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
|
}
|
package/src/core/streaming.ts
CHANGED
|
@@ -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) {
|