@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.
Files changed (44) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts.map +1 -1
  4. package/client.js +7 -0
  5. package/client.js.map +1 -1
  6. package/client.mjs +7 -0
  7. package/client.mjs.map +1 -1
  8. package/core/streaming.js.map +1 -1
  9. package/core/streaming.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/auth/connections.d.mts +8 -0
  12. package/resources/auth/connections.d.mts.map +1 -1
  13. package/resources/auth/connections.d.ts +8 -0
  14. package/resources/auth/connections.d.ts.map +1 -1
  15. package/resources/browser-pools.d.mts +32 -28
  16. package/resources/browser-pools.d.mts.map +1 -1
  17. package/resources/browser-pools.d.ts +32 -28
  18. package/resources/browser-pools.d.ts.map +1 -1
  19. package/resources/browsers/browsers.d.mts +56 -35
  20. package/resources/browsers/browsers.d.mts.map +1 -1
  21. package/resources/browsers/browsers.d.ts +56 -35
  22. package/resources/browsers/browsers.d.ts.map +1 -1
  23. package/resources/browsers/browsers.js.map +1 -1
  24. package/resources/browsers/browsers.mjs.map +1 -1
  25. package/resources/invocations.d.mts +11 -7
  26. package/resources/invocations.d.mts.map +1 -1
  27. package/resources/invocations.d.ts +11 -7
  28. package/resources/invocations.d.ts.map +1 -1
  29. package/resources/shared.d.mts +21 -7
  30. package/resources/shared.d.mts.map +1 -1
  31. package/resources/shared.d.ts +21 -7
  32. package/resources/shared.d.ts.map +1 -1
  33. package/src/client.ts +9 -1
  34. package/src/core/streaming.ts +2 -2
  35. package/src/resources/auth/connections.ts +10 -0
  36. package/src/resources/browser-pools.ts +33 -28
  37. package/src/resources/browsers/browsers.ts +61 -35
  38. package/src/resources/invocations.ts +12 -7
  39. package/src/resources/shared.ts +19 -7
  40. package/src/version.ts +1 -1
  41. package/version.d.mts +1 -1
  42. package/version.d.ts +1 -1
  43. package/version.js +1 -1
  44. 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). Only specific viewport configurations are
319
- * supported. The server will reject unsupported combinations. Supported
320
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
321
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
322
- * be automatically determined from the width and height if they match a supported
323
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
324
- * live view browser
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). Only specific viewport configurations are
395
- * supported. The server will reject unsupported combinations. Supported
396
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
397
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
398
- * be automatically determined from the width and height if they match a supported
399
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
400
- * live view browser
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). Only specific viewport configurations are
471
- * supported. The server will reject unsupported combinations. Supported
472
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
473
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
474
- * be automatically determined from the width and height if they match a supported
475
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
476
- * live view browser
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). Only specific viewport configurations are
547
- * supported. The server will reject unsupported combinations. Supported
548
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
549
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
550
- * be automatically determined from the width and height if they match a supported
551
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
552
- * live view browser
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). Only specific viewport configurations are
617
- * supported. The server will reject unsupported combinations. Supported
618
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
619
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
620
- * be automatically determined from the width and height if they match a supported
621
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
622
- * live view browser
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). Only specific viewport configurations are
483
- * supported. The server will reject unsupported combinations. Supported
484
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
485
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
486
- * be automatically determined from the width and height if they match a supported
487
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
488
- * live view browser
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
  }
@@ -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). Only specific viewport configurations are
57
- * supported. The server will reject unsupported combinations. Supported
58
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
59
- * 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
60
- * be automatically determined from the width and height if they match a supported
61
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
62
- * live view browser
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.33.0'; // x-release-please-version
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.33.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.33.0";
1
+ export declare const VERSION = "0.35.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.33.0'; // x-release-please-version
4
+ exports.VERSION = '0.35.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.33.0'; // x-release-please-version
1
+ export const VERSION = '0.35.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map