@onkernel/sdk 0.42.1 → 0.44.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.
Files changed (64) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts.map +1 -1
  4. package/client.js +6 -5
  5. package/client.js.map +1 -1
  6. package/client.mjs +6 -5
  7. package/client.mjs.map +1 -1
  8. package/package.json +12 -1
  9. package/resources/auth/auth.d.mts +2 -2
  10. package/resources/auth/auth.d.mts.map +1 -1
  11. package/resources/auth/auth.d.ts +2 -2
  12. package/resources/auth/auth.d.ts.map +1 -1
  13. package/resources/auth/auth.js.map +1 -1
  14. package/resources/auth/auth.mjs.map +1 -1
  15. package/resources/auth/connections.d.mts +233 -7
  16. package/resources/auth/connections.d.mts.map +1 -1
  17. package/resources/auth/connections.d.ts +233 -7
  18. package/resources/auth/connections.d.ts.map +1 -1
  19. package/resources/auth/connections.js +14 -0
  20. package/resources/auth/connections.js.map +1 -1
  21. package/resources/auth/connections.mjs +14 -0
  22. package/resources/auth/connections.mjs.map +1 -1
  23. package/resources/auth/index.d.mts +1 -1
  24. package/resources/auth/index.d.mts.map +1 -1
  25. package/resources/auth/index.d.ts +1 -1
  26. package/resources/auth/index.d.ts.map +1 -1
  27. package/resources/auth/index.js.map +1 -1
  28. package/resources/auth/index.mjs.map +1 -1
  29. package/resources/browser-pools.d.mts +34 -13
  30. package/resources/browser-pools.d.mts.map +1 -1
  31. package/resources/browser-pools.d.ts +34 -13
  32. package/resources/browser-pools.d.ts.map +1 -1
  33. package/resources/browsers/browsers.d.mts +61 -21
  34. package/resources/browsers/browsers.d.mts.map +1 -1
  35. package/resources/browsers/browsers.d.ts +61 -21
  36. package/resources/browsers/browsers.d.ts.map +1 -1
  37. package/resources/browsers/browsers.js.map +1 -1
  38. package/resources/browsers/browsers.mjs.map +1 -1
  39. package/resources/browsers/computer.d.mts +28 -4
  40. package/resources/browsers/computer.d.mts.map +1 -1
  41. package/resources/browsers/computer.d.ts +28 -4
  42. package/resources/browsers/computer.d.ts.map +1 -1
  43. package/resources/invocations.d.mts +13 -4
  44. package/resources/invocations.d.mts.map +1 -1
  45. package/resources/invocations.d.ts +13 -4
  46. package/resources/invocations.d.ts.map +1 -1
  47. package/resources/shared.d.mts +7 -3
  48. package/resources/shared.d.mts.map +1 -1
  49. package/resources/shared.d.ts +7 -3
  50. package/resources/shared.d.ts.map +1 -1
  51. package/src/client.ts +6 -5
  52. package/src/resources/auth/auth.ts +4 -0
  53. package/src/resources/auth/connections.ts +273 -6
  54. package/src/resources/auth/index.ts +2 -0
  55. package/src/resources/browser-pools.ts +35 -13
  56. package/src/resources/browsers/browsers.ts +65 -21
  57. package/src/resources/browsers/computer.ts +32 -4
  58. package/src/resources/invocations.ts +14 -4
  59. package/src/resources/shared.ts +7 -3
  60. package/src/version.ts +1 -1
  61. package/version.d.mts +1 -1
  62. package/version.d.ts +1 -1
  63. package/version.js +1 -1
  64. package/version.mjs +1 -1
@@ -313,6 +313,11 @@ export interface BrowserCreateResponse {
313
313
  */
314
314
  timeout_seconds: number;
315
315
 
316
+ /**
317
+ * Websocket URL for WebDriver BiDi connections to the browser session
318
+ */
319
+ webdriver_ws_url: string;
320
+
316
321
  /**
317
322
  * Remote URL for live viewing the browser session. Only available for non-headless
318
323
  * browsers.
@@ -325,7 +330,8 @@ export interface BrowserCreateResponse {
325
330
  deleted_at?: string;
326
331
 
327
332
  /**
328
- * Whether the browser session has hardware-accelerated GPU rendering.
333
+ * Whether GPU acceleration is enabled for the browser session (only supported for
334
+ * headful sessions).
329
335
  */
330
336
  gpu?: boolean;
331
337
 
@@ -362,9 +368,13 @@ export interface BrowserCreateResponse {
362
368
 
363
369
  /**
364
370
  * Initial browser window size in pixels with optional refresh rate. If omitted,
365
- * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
366
- * but the following configurations are known-good and fully tested: 2560x1440@10,
367
- * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
371
+ * image defaults apply (1920x1080@25). For GPU images, the default is
372
+ * 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
373
+ * Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
374
+ * 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
375
+ * presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
376
+ * 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
377
+ * 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
368
378
  * Viewports outside this list may exhibit unstable live view or recording
369
379
  * behavior. If refresh_rate is not provided, it will be automatically determined
370
380
  * based on the resolution (higher resolutions use lower refresh rates to keep
@@ -404,6 +414,11 @@ export interface BrowserRetrieveResponse {
404
414
  */
405
415
  timeout_seconds: number;
406
416
 
417
+ /**
418
+ * Websocket URL for WebDriver BiDi connections to the browser session
419
+ */
420
+ webdriver_ws_url: string;
421
+
407
422
  /**
408
423
  * Remote URL for live viewing the browser session. Only available for non-headless
409
424
  * browsers.
@@ -416,7 +431,8 @@ export interface BrowserRetrieveResponse {
416
431
  deleted_at?: string;
417
432
 
418
433
  /**
419
- * Whether the browser session has hardware-accelerated GPU rendering.
434
+ * Whether GPU acceleration is enabled for the browser session (only supported for
435
+ * headful sessions).
420
436
  */
421
437
  gpu?: boolean;
422
438
 
@@ -453,9 +469,13 @@ export interface BrowserRetrieveResponse {
453
469
 
454
470
  /**
455
471
  * Initial browser window size in pixels with optional refresh rate. If omitted,
456
- * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
457
- * but the following configurations are known-good and fully tested: 2560x1440@10,
458
- * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
472
+ * image defaults apply (1920x1080@25). For GPU images, the default is
473
+ * 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
474
+ * Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
475
+ * 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
476
+ * presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
477
+ * 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
478
+ * 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
459
479
  * Viewports outside this list may exhibit unstable live view or recording
460
480
  * behavior. If refresh_rate is not provided, it will be automatically determined
461
481
  * based on the resolution (higher resolutions use lower refresh rates to keep
@@ -495,6 +515,11 @@ export interface BrowserUpdateResponse {
495
515
  */
496
516
  timeout_seconds: number;
497
517
 
518
+ /**
519
+ * Websocket URL for WebDriver BiDi connections to the browser session
520
+ */
521
+ webdriver_ws_url: string;
522
+
498
523
  /**
499
524
  * Remote URL for live viewing the browser session. Only available for non-headless
500
525
  * browsers.
@@ -507,7 +532,8 @@ export interface BrowserUpdateResponse {
507
532
  deleted_at?: string;
508
533
 
509
534
  /**
510
- * Whether the browser session has hardware-accelerated GPU rendering.
535
+ * Whether GPU acceleration is enabled for the browser session (only supported for
536
+ * headful sessions).
511
537
  */
512
538
  gpu?: boolean;
513
539
 
@@ -544,9 +570,13 @@ export interface BrowserUpdateResponse {
544
570
 
545
571
  /**
546
572
  * Initial browser window size in pixels with optional refresh rate. If omitted,
547
- * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
548
- * but the following configurations are known-good and fully tested: 2560x1440@10,
549
- * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
573
+ * image defaults apply (1920x1080@25). For GPU images, the default is
574
+ * 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
575
+ * Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
576
+ * 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
577
+ * presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
578
+ * 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
579
+ * 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
550
580
  * Viewports outside this list may exhibit unstable live view or recording
551
581
  * behavior. If refresh_rate is not provided, it will be automatically determined
552
582
  * based on the resolution (higher resolutions use lower refresh rates to keep
@@ -586,6 +616,11 @@ export interface BrowserListResponse {
586
616
  */
587
617
  timeout_seconds: number;
588
618
 
619
+ /**
620
+ * Websocket URL for WebDriver BiDi connections to the browser session
621
+ */
622
+ webdriver_ws_url: string;
623
+
589
624
  /**
590
625
  * Remote URL for live viewing the browser session. Only available for non-headless
591
626
  * browsers.
@@ -598,7 +633,8 @@ export interface BrowserListResponse {
598
633
  deleted_at?: string;
599
634
 
600
635
  /**
601
- * Whether the browser session has hardware-accelerated GPU rendering.
636
+ * Whether GPU acceleration is enabled for the browser session (only supported for
637
+ * headful sessions).
602
638
  */
603
639
  gpu?: boolean;
604
640
 
@@ -635,9 +671,13 @@ export interface BrowserListResponse {
635
671
 
636
672
  /**
637
673
  * Initial browser window size in pixels with optional refresh rate. If omitted,
638
- * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
639
- * but the following configurations are known-good and fully tested: 2560x1440@10,
640
- * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
674
+ * image defaults apply (1920x1080@25). For GPU images, the default is
675
+ * 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
676
+ * Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
677
+ * 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
678
+ * presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
679
+ * 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
680
+ * 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
641
681
  * Viewports outside this list may exhibit unstable live view or recording
642
682
  * behavior. If refresh_rate is not provided, it will be automatically determined
643
683
  * based on the resolution (higher resolutions use lower refresh rates to keep
@@ -653,8 +693,8 @@ export interface BrowserCreateParams {
653
693
  extensions?: Array<Shared.BrowserExtension>;
654
694
 
655
695
  /**
656
- * If true, launches a hardware-accelerated browser with GPU rendering. Requires
657
- * Start-Up or Enterprise plan.
696
+ * If true, enables GPU acceleration for the browser session. Requires Start-Up or
697
+ * Enterprise plan and headless=false.
658
698
  */
659
699
  gpu?: boolean;
660
700
 
@@ -711,9 +751,13 @@ export interface BrowserCreateParams {
711
751
 
712
752
  /**
713
753
  * Initial browser window size in pixels with optional refresh rate. If omitted,
714
- * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
715
- * but the following configurations are known-good and fully tested: 2560x1440@10,
716
- * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
754
+ * image defaults apply (1920x1080@25). For GPU images, the default is
755
+ * 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
756
+ * Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
757
+ * 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
758
+ * presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
759
+ * 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
760
+ * 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
717
761
  * Viewports outside this list may exhibit unstable live view or recording
718
762
  * behavior. If refresh_rate is not provided, it will be automatically determined
719
763
  * based on the resolution (higher resolutions use lower refresh rates to keep
@@ -353,11 +353,23 @@ export namespace ComputerBatchParams {
353
353
  */
354
354
  delay?: number;
355
355
 
356
+ /**
357
+ * Target total duration in milliseconds for the entire drag movement when
358
+ * smooth=true. Omit for automatic timing based on total path length.
359
+ */
360
+ duration_ms?: number;
361
+
356
362
  /**
357
363
  * Modifier keys to hold during the drag
358
364
  */
359
365
  hold_keys?: Array<string>;
360
366
 
367
+ /**
368
+ * Use human-like Bezier curves between path waypoints instead of linear
369
+ * interpolation. When true, steps_per_segment and step_delay_ms are ignored.
370
+ */
371
+ smooth?: boolean;
372
+
361
373
  /**
362
374
  * Delay in milliseconds between relative steps while dragging (not the initial
363
375
  * delay).
@@ -431,12 +443,14 @@ export namespace ComputerBatchParams {
431
443
  y: number;
432
444
 
433
445
  /**
434
- * Horizontal scroll amount. Positive scrolls right, negative scrolls left.
446
+ * Horizontal scroll amount in xdotool "wheel units." Positive scrolls right,
447
+ * negative scrolls left.
435
448
  */
436
449
  delta_x?: number;
437
450
 
438
451
  /**
439
- * Vertical scroll amount. Positive scrolls down, negative scrolls up.
452
+ * Vertical scroll amount in xdotool "wheel units." Positive scrolls down, negative
453
+ * scrolls up.
440
454
  */
441
455
  delta_y?: number;
442
456
 
@@ -554,11 +568,23 @@ export interface ComputerDragMouseParams {
554
568
  */
555
569
  delay?: number;
556
570
 
571
+ /**
572
+ * Target total duration in milliseconds for the entire drag movement when
573
+ * smooth=true. Omit for automatic timing based on total path length.
574
+ */
575
+ duration_ms?: number;
576
+
557
577
  /**
558
578
  * Modifier keys to hold during the drag
559
579
  */
560
580
  hold_keys?: Array<string>;
561
581
 
582
+ /**
583
+ * Use human-like Bezier curves between path waypoints instead of linear
584
+ * interpolation. When true, steps_per_segment and step_delay_ms are ignored.
585
+ */
586
+ smooth?: boolean;
587
+
562
588
  /**
563
589
  * Delay in milliseconds between relative steps while dragging (not the initial
564
590
  * delay).
@@ -632,12 +658,14 @@ export interface ComputerScrollParams {
632
658
  y: number;
633
659
 
634
660
  /**
635
- * Horizontal scroll amount. Positive scrolls right, negative scrolls left.
661
+ * Horizontal scroll amount in xdotool "wheel units." Positive scrolls right,
662
+ * negative scrolls left.
636
663
  */
637
664
  delta_x?: number;
638
665
 
639
666
  /**
640
- * Vertical scroll amount. Positive scrolls down, negative scrolls up.
667
+ * Vertical scroll amount in xdotool "wheel units." Positive scrolls down, negative
668
+ * scrolls up.
641
669
  */
642
670
  delta_y?: number;
643
671
 
@@ -448,6 +448,11 @@ export namespace InvocationListBrowsersResponse {
448
448
  */
449
449
  timeout_seconds: number;
450
450
 
451
+ /**
452
+ * Websocket URL for WebDriver BiDi connections to the browser session
453
+ */
454
+ webdriver_ws_url: string;
455
+
451
456
  /**
452
457
  * Remote URL for live viewing the browser session. Only available for non-headless
453
458
  * browsers.
@@ -460,7 +465,8 @@ export namespace InvocationListBrowsersResponse {
460
465
  deleted_at?: string;
461
466
 
462
467
  /**
463
- * Whether the browser session has hardware-accelerated GPU rendering.
468
+ * Whether GPU acceleration is enabled for the browser session (only supported for
469
+ * headful sessions).
464
470
  */
465
471
  gpu?: boolean;
466
472
 
@@ -497,9 +503,13 @@ export namespace InvocationListBrowsersResponse {
497
503
 
498
504
  /**
499
505
  * Initial browser window size in pixels with optional refresh rate. If omitted,
500
- * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
501
- * but the following configurations are known-good and fully tested: 2560x1440@10,
502
- * 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
506
+ * image defaults apply (1920x1080@25). For GPU images, the default is
507
+ * 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
508
+ * Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
509
+ * 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
510
+ * presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
511
+ * 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
512
+ * 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
503
513
  * Viewports outside this list may exhibit unstable live view or recording
504
514
  * behavior. If refresh_rate is not provided, it will be automatically determined
505
515
  * based on the resolution (higher resolutions use lower refresh rates to keep
@@ -65,9 +65,13 @@ export interface BrowserProfile {
65
65
 
66
66
  /**
67
67
  * Initial browser window size in pixels with optional refresh rate. If omitted,
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.
68
+ * image defaults apply (1920x1080@25). For GPU images, the default is
69
+ * 1920x1080@60. Arbitrary viewport dimensions and refresh rates are accepted.
70
+ * Known-good presets include: 2560x1440@10, 1920x1080@25, 1920x1200@25,
71
+ * 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60. For GPU images, recommended
72
+ * presets use one of these resolutions with refresh rates 60, 30, 25, or 10:
73
+ * 800x600, 960x720, 1024x576, 1024x768, 1152x648, 1200x800, 1280x720, 1368x768,
74
+ * 1440x900, 1600x900, 1920x1080, 1920x1200, 390x844, 360x250, 768x1024, 800x1600.
71
75
  * Viewports outside this list may exhibit unstable live view or recording
72
76
  * behavior. If refresh_rate is not provided, it will be automatically determined
73
77
  * based on the resolution (higher resolutions use lower refresh rates to keep
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.42.1'; // x-release-please-version
1
+ export const VERSION = '0.44.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.42.1";
1
+ export declare const VERSION = "0.44.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.42.1";
1
+ export declare const VERSION = "0.44.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.42.1'; // x-release-please-version
4
+ exports.VERSION = '0.44.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.42.1'; // x-release-please-version
1
+ export const VERSION = '0.44.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map