@onkernel/sdk 0.33.0 → 0.35.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 +24 -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 +32 -28
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +32 -28
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +56 -35
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +56 -35
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/invocations.d.mts +11 -7
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +11 -7
- package/resources/invocations.d.ts.map +1 -1
- 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 +33 -28
- package/src/resources/browsers/browsers.ts +61 -35
- package/src/resources/invocations.ts +12 -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
|
@@ -292,6 +292,11 @@ export interface BrowserCreateResponse {
|
|
|
292
292
|
*/
|
|
293
293
|
deleted_at?: string;
|
|
294
294
|
|
|
295
|
+
/**
|
|
296
|
+
* Whether the browser session has hardware-accelerated GPU rendering.
|
|
297
|
+
*/
|
|
298
|
+
gpu?: boolean;
|
|
299
|
+
|
|
295
300
|
/**
|
|
296
301
|
* Whether the browser session is running in kiosk mode.
|
|
297
302
|
*/
|
|
@@ -315,13 +320,13 @@ export interface BrowserCreateResponse {
|
|
|
315
320
|
|
|
316
321
|
/**
|
|
317
322
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
318
|
-
* image defaults apply (1920x1080@25).
|
|
319
|
-
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
323
|
+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
324
|
+
* but the following configurations are known-good and fully tested: 2560x1440@10,
|
|
325
|
+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
|
|
326
|
+
* Viewports outside this list may exhibit unstable live view or recording
|
|
327
|
+
* behavior. If refresh_rate is not provided, it will be automatically determined
|
|
328
|
+
* based on the resolution (higher resolutions use lower refresh rates to keep
|
|
329
|
+
* bandwidth reasonable).
|
|
325
330
|
*/
|
|
326
331
|
viewport?: Shared.BrowserViewport;
|
|
327
332
|
}
|
|
@@ -368,6 +373,11 @@ export interface BrowserRetrieveResponse {
|
|
|
368
373
|
*/
|
|
369
374
|
deleted_at?: string;
|
|
370
375
|
|
|
376
|
+
/**
|
|
377
|
+
* Whether the browser session has hardware-accelerated GPU rendering.
|
|
378
|
+
*/
|
|
379
|
+
gpu?: boolean;
|
|
380
|
+
|
|
371
381
|
/**
|
|
372
382
|
* Whether the browser session is running in kiosk mode.
|
|
373
383
|
*/
|
|
@@ -391,13 +401,13 @@ export interface BrowserRetrieveResponse {
|
|
|
391
401
|
|
|
392
402
|
/**
|
|
393
403
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
394
|
-
* image defaults apply (1920x1080@25).
|
|
395
|
-
*
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
*
|
|
399
|
-
*
|
|
400
|
-
*
|
|
404
|
+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
405
|
+
* but the following configurations are known-good and fully tested: 2560x1440@10,
|
|
406
|
+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
|
|
407
|
+
* Viewports outside this list may exhibit unstable live view or recording
|
|
408
|
+
* behavior. If refresh_rate is not provided, it will be automatically determined
|
|
409
|
+
* based on the resolution (higher resolutions use lower refresh rates to keep
|
|
410
|
+
* bandwidth reasonable).
|
|
401
411
|
*/
|
|
402
412
|
viewport?: Shared.BrowserViewport;
|
|
403
413
|
}
|
|
@@ -444,6 +454,11 @@ export interface BrowserUpdateResponse {
|
|
|
444
454
|
*/
|
|
445
455
|
deleted_at?: string;
|
|
446
456
|
|
|
457
|
+
/**
|
|
458
|
+
* Whether the browser session has hardware-accelerated GPU rendering.
|
|
459
|
+
*/
|
|
460
|
+
gpu?: boolean;
|
|
461
|
+
|
|
447
462
|
/**
|
|
448
463
|
* Whether the browser session is running in kiosk mode.
|
|
449
464
|
*/
|
|
@@ -467,13 +482,13 @@ export interface BrowserUpdateResponse {
|
|
|
467
482
|
|
|
468
483
|
/**
|
|
469
484
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
470
|
-
* image defaults apply (1920x1080@25).
|
|
471
|
-
*
|
|
472
|
-
*
|
|
473
|
-
*
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
*
|
|
485
|
+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
486
|
+
* but the following configurations are known-good and fully tested: 2560x1440@10,
|
|
487
|
+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
|
|
488
|
+
* Viewports outside this list may exhibit unstable live view or recording
|
|
489
|
+
* behavior. If refresh_rate is not provided, it will be automatically determined
|
|
490
|
+
* based on the resolution (higher resolutions use lower refresh rates to keep
|
|
491
|
+
* bandwidth reasonable).
|
|
477
492
|
*/
|
|
478
493
|
viewport?: Shared.BrowserViewport;
|
|
479
494
|
}
|
|
@@ -520,6 +535,11 @@ export interface BrowserListResponse {
|
|
|
520
535
|
*/
|
|
521
536
|
deleted_at?: string;
|
|
522
537
|
|
|
538
|
+
/**
|
|
539
|
+
* Whether the browser session has hardware-accelerated GPU rendering.
|
|
540
|
+
*/
|
|
541
|
+
gpu?: boolean;
|
|
542
|
+
|
|
523
543
|
/**
|
|
524
544
|
* Whether the browser session is running in kiosk mode.
|
|
525
545
|
*/
|
|
@@ -543,13 +563,13 @@ export interface BrowserListResponse {
|
|
|
543
563
|
|
|
544
564
|
/**
|
|
545
565
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
546
|
-
* image defaults apply (1920x1080@25).
|
|
547
|
-
*
|
|
548
|
-
*
|
|
549
|
-
*
|
|
550
|
-
*
|
|
551
|
-
*
|
|
552
|
-
*
|
|
566
|
+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
567
|
+
* but the following configurations are known-good and fully tested: 2560x1440@10,
|
|
568
|
+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
|
|
569
|
+
* Viewports outside this list may exhibit unstable live view or recording
|
|
570
|
+
* behavior. If refresh_rate is not provided, it will be automatically determined
|
|
571
|
+
* based on the resolution (higher resolutions use lower refresh rates to keep
|
|
572
|
+
* bandwidth reasonable).
|
|
553
573
|
*/
|
|
554
574
|
viewport?: Shared.BrowserViewport;
|
|
555
575
|
}
|
|
@@ -560,6 +580,12 @@ export interface BrowserCreateParams {
|
|
|
560
580
|
*/
|
|
561
581
|
extensions?: Array<Shared.BrowserExtension>;
|
|
562
582
|
|
|
583
|
+
/**
|
|
584
|
+
* If true, launches a hardware-accelerated browser with GPU rendering. Requires
|
|
585
|
+
* Start-Up or Enterprise plan.
|
|
586
|
+
*/
|
|
587
|
+
gpu?: boolean;
|
|
588
|
+
|
|
563
589
|
/**
|
|
564
590
|
* If true, launches the browser using a headless image (no VNC/GUI). Defaults to
|
|
565
591
|
* false.
|
|
@@ -613,13 +639,13 @@ export interface BrowserCreateParams {
|
|
|
613
639
|
|
|
614
640
|
/**
|
|
615
641
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
616
|
-
* image defaults apply (1920x1080@25).
|
|
617
|
-
*
|
|
618
|
-
*
|
|
619
|
-
*
|
|
620
|
-
*
|
|
621
|
-
*
|
|
622
|
-
*
|
|
642
|
+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
643
|
+
* but the following configurations are known-good and fully tested: 2560x1440@10,
|
|
644
|
+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
|
|
645
|
+
* Viewports outside this list may exhibit unstable live view or recording
|
|
646
|
+
* behavior. If refresh_rate is not provided, it will be automatically determined
|
|
647
|
+
* based on the resolution (higher resolutions use lower refresh rates to keep
|
|
648
|
+
* bandwidth reasonable).
|
|
623
649
|
*/
|
|
624
650
|
viewport?: Shared.BrowserViewport;
|
|
625
651
|
}
|
|
@@ -456,6 +456,11 @@ export namespace InvocationListBrowsersResponse {
|
|
|
456
456
|
*/
|
|
457
457
|
deleted_at?: string;
|
|
458
458
|
|
|
459
|
+
/**
|
|
460
|
+
* Whether the browser session has hardware-accelerated GPU rendering.
|
|
461
|
+
*/
|
|
462
|
+
gpu?: boolean;
|
|
463
|
+
|
|
459
464
|
/**
|
|
460
465
|
* Whether the browser session is running in kiosk mode.
|
|
461
466
|
*/
|
|
@@ -479,13 +484,13 @@ export namespace InvocationListBrowsersResponse {
|
|
|
479
484
|
|
|
480
485
|
/**
|
|
481
486
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
482
|
-
* image defaults apply (1920x1080@25).
|
|
483
|
-
*
|
|
484
|
-
*
|
|
485
|
-
*
|
|
486
|
-
*
|
|
487
|
-
*
|
|
488
|
-
*
|
|
487
|
+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
488
|
+
* but the following configurations are known-good and fully tested: 2560x1440@10,
|
|
489
|
+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
|
|
490
|
+
* Viewports outside this list may exhibit unstable live view or recording
|
|
491
|
+
* behavior. If refresh_rate is not provided, it will be automatically determined
|
|
492
|
+
* based on the resolution (higher resolutions use lower refresh rates to keep
|
|
493
|
+
* bandwidth reasonable).
|
|
489
494
|
*/
|
|
490
495
|
viewport?: Shared.BrowserViewport;
|
|
491
496
|
}
|
package/src/resources/shared.ts
CHANGED
|
@@ -8,6 +8,18 @@ export interface AppAction {
|
|
|
8
8
|
* Name of the action
|
|
9
9
|
*/
|
|
10
10
|
name: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* JSON Schema (draft-07) describing the expected input payload. Null if schema
|
|
14
|
+
* could not be automatically generated.
|
|
15
|
+
*/
|
|
16
|
+
input_schema?: { [key: string]: unknown } | null;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* JSON Schema (draft-07) describing the expected output payload. Null if schema
|
|
20
|
+
* could not be automatically generated.
|
|
21
|
+
*/
|
|
22
|
+
output_schema?: { [key: string]: unknown } | null;
|
|
11
23
|
}
|
|
12
24
|
|
|
13
25
|
/**
|
|
@@ -53,13 +65,13 @@ export interface BrowserProfile {
|
|
|
53
65
|
|
|
54
66
|
/**
|
|
55
67
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
56
|
-
* image defaults apply (1920x1080@25).
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
68
|
+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
69
|
+
* but the following configurations are known-good and fully tested: 2560x1440@10,
|
|
70
|
+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
|
|
71
|
+
* Viewports outside this list may exhibit unstable live view or recording
|
|
72
|
+
* behavior. If refresh_rate is not provided, it will be automatically determined
|
|
73
|
+
* based on the resolution (higher resolutions use lower refresh rates to keep
|
|
74
|
+
* bandwidth reasonable).
|
|
63
75
|
*/
|
|
64
76
|
export interface BrowserViewport {
|
|
65
77
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.35.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.35.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.35.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.35.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|