@onkernel/sdk 0.43.0 → 0.45.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 (57) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/package.json +1 -1
  3. package/resources/auth/auth.d.mts +2 -2
  4. package/resources/auth/auth.d.mts.map +1 -1
  5. package/resources/auth/auth.d.ts +2 -2
  6. package/resources/auth/auth.d.ts.map +1 -1
  7. package/resources/auth/auth.js.map +1 -1
  8. package/resources/auth/auth.mjs.map +1 -1
  9. package/resources/auth/connections.d.mts +233 -7
  10. package/resources/auth/connections.d.mts.map +1 -1
  11. package/resources/auth/connections.d.ts +233 -7
  12. package/resources/auth/connections.d.ts.map +1 -1
  13. package/resources/auth/connections.js +14 -0
  14. package/resources/auth/connections.js.map +1 -1
  15. package/resources/auth/connections.mjs +14 -0
  16. package/resources/auth/connections.mjs.map +1 -1
  17. package/resources/auth/index.d.mts +1 -1
  18. package/resources/auth/index.d.mts.map +1 -1
  19. package/resources/auth/index.d.ts +1 -1
  20. package/resources/auth/index.d.ts.map +1 -1
  21. package/resources/auth/index.js.map +1 -1
  22. package/resources/auth/index.mjs.map +1 -1
  23. package/resources/browser-pools.d.mts +57 -13
  24. package/resources/browser-pools.d.mts.map +1 -1
  25. package/resources/browser-pools.d.ts +57 -13
  26. package/resources/browser-pools.d.ts.map +1 -1
  27. package/resources/browsers/browsers.d.mts +50 -21
  28. package/resources/browsers/browsers.d.mts.map +1 -1
  29. package/resources/browsers/browsers.d.ts +50 -21
  30. package/resources/browsers/browsers.d.ts.map +1 -1
  31. package/resources/browsers/browsers.js.map +1 -1
  32. package/resources/browsers/browsers.mjs.map +1 -1
  33. package/resources/browsers/computer.d.mts +28 -4
  34. package/resources/browsers/computer.d.mts.map +1 -1
  35. package/resources/browsers/computer.d.ts +28 -4
  36. package/resources/browsers/computer.d.ts.map +1 -1
  37. package/resources/invocations.d.mts +9 -4
  38. package/resources/invocations.d.mts.map +1 -1
  39. package/resources/invocations.d.ts +9 -4
  40. package/resources/invocations.d.ts.map +1 -1
  41. package/resources/shared.d.mts +7 -3
  42. package/resources/shared.d.mts.map +1 -1
  43. package/resources/shared.d.ts +7 -3
  44. package/resources/shared.d.ts.map +1 -1
  45. package/src/resources/auth/auth.ts +4 -0
  46. package/src/resources/auth/connections.ts +273 -6
  47. package/src/resources/auth/index.ts +2 -0
  48. package/src/resources/browser-pools.ts +54 -13
  49. package/src/resources/browsers/browsers.ts +51 -21
  50. package/src/resources/browsers/computer.ts +32 -4
  51. package/src/resources/invocations.ts +9 -4
  52. package/src/resources/shared.ts +7 -3
  53. package/src/version.ts +1 -1
  54. package/version.d.mts +1 -1
  55. package/version.d.ts +1 -1
  56. package/version.js +1 -1
  57. package/version.mjs +1 -1
@@ -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
 
@@ -465,7 +465,8 @@ export namespace InvocationListBrowsersResponse {
465
465
  deleted_at?: string;
466
466
 
467
467
  /**
468
- * 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).
469
470
  */
470
471
  gpu?: boolean;
471
472
 
@@ -502,9 +503,13 @@ export namespace InvocationListBrowsersResponse {
502
503
 
503
504
  /**
504
505
  * Initial browser window size in pixels with optional refresh rate. If omitted,
505
- * image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
506
- * but the following configurations are known-good and fully tested: 2560x1440@10,
507
- * 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.
508
513
  * Viewports outside this list may exhibit unstable live view or recording
509
514
  * behavior. If refresh_rate is not provided, it will be automatically determined
510
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.43.0'; // x-release-please-version
1
+ export const VERSION = '0.45.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.43.0";
1
+ export declare const VERSION = "0.45.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.43.0";
1
+ export declare const VERSION = "0.45.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.43.0'; // x-release-please-version
4
+ exports.VERSION = '0.45.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.43.0'; // x-release-please-version
1
+ export const VERSION = '0.45.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map