@synsci/sdk 2.0.23 → 2.0.24

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.
@@ -351,7 +351,7 @@ export class Storage extends HeyApiClient {
351
351
  /**
352
352
  * Get storage usage
353
353
  *
354
- * Real on-disk sizes for the OpenScience data directory and its top-level entries.
354
+ * Real on-disk sizes for the active OpenScience data directory and its top-level entries.
355
355
  */
356
356
  usage(options) {
357
357
  return (options?.client ?? this.client).get({
@@ -362,18 +362,15 @@ export class Storage extends HeyApiClient {
362
362
  /**
363
363
  * Reset data location
364
364
  *
365
- * Remove the data-location pointer so ~/.openscience is used on next launch.
365
+ * Reverse-migrate the active data into ~/.openscience, atomically switch every running process, and preserve the previous default as a timestamped backup.
366
366
  */
367
367
  resetLocation(options) {
368
- return (options?.client ?? this.client).delete({
369
- url: "/settings/storage/location",
370
- ...options,
371
- });
368
+ return (options?.client ?? this.client).delete({ url: "/settings/storage/location", ...options });
372
369
  }
373
370
  /**
374
371
  * Change data location
375
372
  *
376
- * Copy the data directory to a new absolute path and record a pointer honoured on next launch. Requires restart.
373
+ * Take a verified snapshot, drain active writers, atomically switch every running OpenScience process, and retain the source as a safety copy.
377
374
  */
378
375
  relocate(parameters, options) {
379
376
  const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "path" }] }]);
@@ -550,6 +547,8 @@ export class Ssh extends HeyApiClient {
550
547
  { in: "body", key: "port" },
551
548
  { in: "body", key: "scheduler" },
552
549
  { in: "body", key: "workdir" },
550
+ { in: "body", key: "notes" },
551
+ { in: "body", key: "concurrency" },
553
552
  ],
554
553
  },
555
554
  ]);
@@ -586,6 +585,29 @@ export class Ssh extends HeyApiClient {
586
585
  ...params,
587
586
  });
588
587
  }
588
+ /**
589
+ * Update SSH host notes
590
+ */
591
+ update(parameters, options) {
592
+ const params = buildClientParams([parameters], [
593
+ {
594
+ args: [
595
+ { in: "path", key: "id" },
596
+ { in: "body", key: "notes" },
597
+ ],
598
+ },
599
+ ]);
600
+ return (options?.client ?? this.client).patch({
601
+ url: "/settings/compute/ssh/{id}",
602
+ ...options,
603
+ ...params,
604
+ headers: {
605
+ "Content-Type": "application/json",
606
+ ...options?.headers,
607
+ ...params.headers,
608
+ },
609
+ });
610
+ }
589
611
  }
590
612
  export class Jobs extends HeyApiClient {
591
613
  /**
@@ -600,7 +622,7 @@ export class Jobs extends HeyApiClient {
600
622
  });
601
623
  }
602
624
  /**
603
- * Start a local compute job
625
+ * Start a compute job
604
626
  */
605
627
  start(parameters, options) {
606
628
  const params = buildClientParams([parameters], [
@@ -608,6 +630,7 @@ export class Jobs extends HeyApiClient {
608
630
  args: [
609
631
  { in: "query", key: "directory" },
610
632
  { in: "body", key: "name" },
633
+ { in: "body", key: "purpose" },
611
634
  { in: "body", key: "command" },
612
635
  { in: "body", key: "cwd" },
613
636
  { in: "body", key: "target" },
@@ -637,7 +660,7 @@ export class Jobs extends HeyApiClient {
637
660
  });
638
661
  }
639
662
  /**
640
- * Prepare an exact Modal run plan for approval
663
+ * Prepare an exact remote run plan for approval
641
664
  */
642
665
  plan(parameters, options) {
643
666
  const params = buildClientParams([parameters], [
@@ -645,6 +668,7 @@ export class Jobs extends HeyApiClient {
645
668
  args: [
646
669
  { in: "query", key: "directory" },
647
670
  { in: "body", key: "name" },
671
+ { in: "body", key: "purpose" },
648
672
  { in: "body", key: "command" },
649
673
  { in: "body", key: "cwd" },
650
674
  { in: "body", key: "target" },
@@ -721,7 +745,7 @@ export class Jobs extends HeyApiClient {
721
745
  });
722
746
  }
723
747
  /**
724
- * Retry delivery from a retained Modal resource
748
+ * Retry output delivery from a retained remote resource
725
749
  */
726
750
  retry(parameters, options) {
727
751
  const params = buildClientParams([parameters], [
@@ -738,6 +762,24 @@ export class Jobs extends HeyApiClient {
738
762
  ...params,
739
763
  });
740
764
  }
765
+ /**
766
+ * Release retained compute resources
767
+ */
768
+ release(parameters, options) {
769
+ const params = buildClientParams([parameters], [
770
+ {
771
+ args: [
772
+ { in: "path", key: "id" },
773
+ { in: "query", key: "directory" },
774
+ ],
775
+ },
776
+ ]);
777
+ return (options?.client ?? this.client).post({
778
+ url: "/settings/compute/jobs/{id}/release",
779
+ ...options,
780
+ ...params,
781
+ });
782
+ }
741
783
  /**
742
784
  * Cancel a compute job
743
785
  */
@@ -1085,7 +1127,7 @@ export class Trust extends HeyApiClient {
1085
1127
  /**
1086
1128
  * Inspect project trust
1087
1129
  *
1088
- * Inspect whether project-local code may execute. Project code is enabled by default and remains disabled only after an explicit revocation.
1130
+ * Inspect whether project-local code may execute. New and relocated projects are untrusted until their canonical root is explicitly approved.
1089
1131
  */
1090
1132
  get(parameters, options) {
1091
1133
  const params = buildClientParams([parameters], [
@@ -2008,6 +2050,7 @@ export class Session extends HeyApiClient {
2008
2050
  { in: "body", key: "agent" },
2009
2051
  { in: "body", key: "noReply" },
2010
2052
  { in: "body", key: "tools" },
2053
+ { in: "body", key: "effort" },
2011
2054
  { in: "body", key: "delegation" },
2012
2055
  { in: "body", key: "system" },
2013
2056
  { in: "body", key: "variant" },
@@ -2064,6 +2107,7 @@ export class Session extends HeyApiClient {
2064
2107
  { in: "body", key: "agent" },
2065
2108
  { in: "body", key: "noReply" },
2066
2109
  { in: "body", key: "tools" },
2110
+ { in: "body", key: "effort" },
2067
2111
  { in: "body", key: "delegation" },
2068
2112
  { in: "body", key: "system" },
2069
2113
  { in: "body", key: "variant" },
@@ -2354,6 +2398,77 @@ export class Permission extends HeyApiClient {
2354
2398
  return (this._standing ??= new Standing({ client: this.client }));
2355
2399
  }
2356
2400
  }
2401
+ export class Runtime extends HeyApiClient {
2402
+ /**
2403
+ * Start a research run
2404
+ *
2405
+ * Accepts a prompt and returns immediately while the Research agent continues in the background.
2406
+ */
2407
+ prompt(parameters, options) {
2408
+ const params = buildClientParams([parameters], [
2409
+ {
2410
+ args: [
2411
+ { in: "query", key: "directory" },
2412
+ { in: "body", key: "sessionID" },
2413
+ { in: "body", key: "message" },
2414
+ { in: "body", key: "effort" },
2415
+ ],
2416
+ },
2417
+ ]);
2418
+ return (options?.client ?? this.client).post({
2419
+ url: "/runtime/prompt",
2420
+ ...options,
2421
+ ...params,
2422
+ headers: {
2423
+ "Content-Type": "application/json",
2424
+ ...options?.headers,
2425
+ ...params.headers,
2426
+ },
2427
+ });
2428
+ }
2429
+ /**
2430
+ * Replay research run events
2431
+ *
2432
+ * Returns retained events strictly after the supplied per-session sequence cursor.
2433
+ */
2434
+ replay(parameters, options) {
2435
+ const params = buildClientParams([parameters], [
2436
+ {
2437
+ args: [
2438
+ { in: "query", key: "directory" },
2439
+ { in: "query", key: "sessionID" },
2440
+ { in: "query", key: "afterSequence" },
2441
+ ],
2442
+ },
2443
+ ]);
2444
+ return (options?.client ?? this.client).get({
2445
+ url: "/runtime/events/replay",
2446
+ ...options,
2447
+ ...params,
2448
+ });
2449
+ }
2450
+ /**
2451
+ * Subscribe to research run events
2452
+ *
2453
+ * Replays retained events after a cursor, then streams live events with SSE id fields equal to their sequence numbers.
2454
+ */
2455
+ subscribe(parameters, options) {
2456
+ const params = buildClientParams([parameters], [
2457
+ {
2458
+ args: [
2459
+ { in: "query", key: "directory" },
2460
+ { in: "query", key: "sessionID" },
2461
+ { in: "query", key: "afterSequence" },
2462
+ ],
2463
+ },
2464
+ ]);
2465
+ return (options?.client ?? this.client).sse.get({
2466
+ url: "/runtime/events",
2467
+ ...options,
2468
+ ...params,
2469
+ });
2470
+ }
2471
+ }
2357
2472
  export class Search extends HeyApiClient {
2358
2473
  /**
2359
2474
  * Search sessions, messages, and artifacts
@@ -2589,6 +2704,47 @@ export class Find extends HeyApiClient {
2589
2704
  });
2590
2705
  }
2591
2706
  }
2707
+ export class Trash extends HeyApiClient {
2708
+ /**
2709
+ * List recoverable source files
2710
+ *
2711
+ * List source and workspace files deleted by approved edit operations during the 30-day recovery window.
2712
+ */
2713
+ list(parameters, options) {
2714
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2715
+ return (options?.client ?? this.client).get({
2716
+ url: "/file/trash",
2717
+ ...options,
2718
+ ...params,
2719
+ });
2720
+ }
2721
+ /**
2722
+ * Restore a deleted source file
2723
+ *
2724
+ * Restore a source or workspace file during its 30-day recovery window without overwriting an existing path.
2725
+ */
2726
+ restore(parameters, options) {
2727
+ const params = buildClientParams([parameters], [
2728
+ {
2729
+ args: [
2730
+ { in: "path", key: "id" },
2731
+ { in: "query", key: "directory" },
2732
+ { in: "body", key: "sessionID" },
2733
+ ],
2734
+ },
2735
+ ]);
2736
+ return (options?.client ?? this.client).post({
2737
+ url: "/file/trash/{id}/restore",
2738
+ ...options,
2739
+ ...params,
2740
+ headers: {
2741
+ "Content-Type": "application/json",
2742
+ ...options?.headers,
2743
+ ...params.headers,
2744
+ },
2745
+ });
2746
+ }
2747
+ }
2592
2748
  export class Artifact extends HeyApiClient {
2593
2749
  /**
2594
2750
  * Save a file as a versioned artifact
@@ -2621,7 +2777,7 @@ export class Artifact extends HeyApiClient {
2621
2777
  }
2622
2778
  export class ArtifactStore extends HeyApiClient {
2623
2779
  /**
2624
- * List saved artifacts
2780
+ * List saved Results
2625
2781
  *
2626
2782
  * List active or recoverable trashed artifacts from this project's local artifact database.
2627
2783
  */
@@ -2641,7 +2797,7 @@ export class ArtifactStore extends HeyApiClient {
2641
2797
  });
2642
2798
  }
2643
2799
  /**
2644
- * Move a saved artifact to trash
2800
+ * Move a saved Result to trash
2645
2801
  *
2646
2802
  * Hide an artifact from active Files while retaining every version for 30 days.
2647
2803
  */
@@ -2661,9 +2817,9 @@ export class ArtifactStore extends HeyApiClient {
2661
2817
  });
2662
2818
  }
2663
2819
  /**
2664
- * Read one saved artifact record
2820
+ * Read one saved Result record
2665
2821
  *
2666
- * Read immutable version metadata and the current execution record for a saved artifact.
2822
+ * Read immutable version metadata and the current execution record for a saved Result.
2667
2823
  */
2668
2824
  get(parameters, options) {
2669
2825
  const params = buildClientParams([parameters], [
@@ -2681,7 +2837,7 @@ export class ArtifactStore extends HeyApiClient {
2681
2837
  });
2682
2838
  }
2683
2839
  /**
2684
- * Rename a saved artifact
2840
+ * Rename a saved Result
2685
2841
  *
2686
2842
  * Rename the artifact record without changing any immutable version bytes.
2687
2843
  */
@@ -3245,6 +3401,10 @@ export class File extends HeyApiClient {
3245
3401
  ...params,
3246
3402
  });
3247
3403
  }
3404
+ _trash;
3405
+ get trash() {
3406
+ return (this._trash ??= new Trash({ client: this.client }));
3407
+ }
3248
3408
  _artifact;
3249
3409
  get artifact() {
3250
3410
  return (this._artifact ??= new Artifact({ client: this.client }));
@@ -3263,6 +3423,303 @@ export class File extends HeyApiClient {
3263
3423
  }
3264
3424
  }
3265
3425
  export class Command extends HeyApiClient {
3426
+ /**
3427
+ * Stop a live shell command
3428
+ */
3429
+ stop(parameters, options) {
3430
+ const params = buildClientParams([parameters], [
3431
+ {
3432
+ args: [
3433
+ { in: "path", key: "commandID" },
3434
+ { in: "query", key: "directory" },
3435
+ { in: "body", key: "sessionID" },
3436
+ ],
3437
+ },
3438
+ ]);
3439
+ return (options?.client ?? this.client).post({
3440
+ url: "/kernels/commands/{commandID}/stop",
3441
+ ...options,
3442
+ ...params,
3443
+ headers: {
3444
+ "Content-Type": "application/json",
3445
+ ...options?.headers,
3446
+ ...params.headers,
3447
+ },
3448
+ });
3449
+ }
3450
+ }
3451
+ export class Kernels extends HeyApiClient {
3452
+ /**
3453
+ * Report live local runtime capacity
3454
+ */
3455
+ compute(parameters, options) {
3456
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
3457
+ return (options?.client ?? this.client).get({
3458
+ url: "/kernels/compute",
3459
+ ...options,
3460
+ ...params,
3461
+ });
3462
+ }
3463
+ /**
3464
+ * List live project shell commands
3465
+ */
3466
+ commands(parameters, options) {
3467
+ const params = buildClientParams([parameters], [
3468
+ {
3469
+ args: [
3470
+ { in: "query", key: "directory" },
3471
+ { in: "query", key: "sessionID" },
3472
+ ],
3473
+ },
3474
+ ]);
3475
+ return (options?.client ?? this.client).get({
3476
+ url: "/kernels/commands",
3477
+ ...options,
3478
+ ...params,
3479
+ });
3480
+ }
3481
+ /**
3482
+ * List session runtime records
3483
+ */
3484
+ list(parameters, options) {
3485
+ const params = buildClientParams([parameters], [
3486
+ {
3487
+ args: [
3488
+ { in: "query", key: "directory" },
3489
+ { in: "query", key: "sessionID" },
3490
+ ],
3491
+ },
3492
+ ]);
3493
+ return (options?.client ?? this.client).get({
3494
+ url: "/kernels",
3495
+ ...options,
3496
+ ...params,
3497
+ });
3498
+ }
3499
+ /**
3500
+ * Restart in a fresh runtime
3501
+ */
3502
+ restartById(parameters, options) {
3503
+ const params = buildClientParams([parameters], [
3504
+ {
3505
+ args: [
3506
+ { in: "path", key: "kernelID" },
3507
+ { in: "query", key: "directory" },
3508
+ { in: "body", key: "sessionID" },
3509
+ ],
3510
+ },
3511
+ ]);
3512
+ return (options?.client ?? this.client).post({
3513
+ url: "/kernels/{kernelID}/restart",
3514
+ ...options,
3515
+ ...params,
3516
+ headers: {
3517
+ "Content-Type": "application/json",
3518
+ ...options?.headers,
3519
+ ...params.headers,
3520
+ },
3521
+ });
3522
+ }
3523
+ /**
3524
+ * Stop a runtime process
3525
+ */
3526
+ stopById(parameters, options) {
3527
+ const params = buildClientParams([parameters], [
3528
+ {
3529
+ args: [
3530
+ { in: "path", key: "kernelID" },
3531
+ { in: "query", key: "directory" },
3532
+ { in: "body", key: "sessionID" },
3533
+ ],
3534
+ },
3535
+ ]);
3536
+ return (options?.client ?? this.client).post({
3537
+ url: "/kernels/{kernelID}/stop",
3538
+ ...options,
3539
+ ...params,
3540
+ headers: {
3541
+ "Content-Type": "application/json",
3542
+ ...options?.headers,
3543
+ ...params.headers,
3544
+ },
3545
+ });
3546
+ }
3547
+ /**
3548
+ * Interrupt a live runtime
3549
+ */
3550
+ interruptById(parameters, options) {
3551
+ const params = buildClientParams([parameters], [
3552
+ {
3553
+ args: [
3554
+ { in: "path", key: "kernelID" },
3555
+ { in: "query", key: "directory" },
3556
+ { in: "body", key: "sessionID" },
3557
+ ],
3558
+ },
3559
+ ]);
3560
+ return (options?.client ?? this.client).post({
3561
+ url: "/kernels/{kernelID}/interrupt",
3562
+ ...options,
3563
+ ...params,
3564
+ headers: {
3565
+ "Content-Type": "application/json",
3566
+ ...options?.headers,
3567
+ ...params.headers,
3568
+ },
3569
+ });
3570
+ }
3571
+ /**
3572
+ * Forget an inactive runtime record
3573
+ */
3574
+ delete(parameters, options) {
3575
+ const params = buildClientParams([parameters], [
3576
+ {
3577
+ args: [
3578
+ { in: "path", key: "kernelID" },
3579
+ { in: "query", key: "directory" },
3580
+ { in: "query", key: "sessionID" },
3581
+ ],
3582
+ },
3583
+ ]);
3584
+ return (options?.client ?? this.client).delete({
3585
+ url: "/kernels/{kernelID}",
3586
+ ...options,
3587
+ ...params,
3588
+ });
3589
+ }
3590
+ /**
3591
+ * Run Python or R code
3592
+ *
3593
+ * Run code in a long-lived project-scoped Python or R process. State persists until restart, stop, or idle expiry.
3594
+ */
3595
+ execute(parameters, options) {
3596
+ const params = buildClientParams([parameters], [
3597
+ {
3598
+ args: [
3599
+ { in: "query", key: "directory" },
3600
+ { in: "body", key: "sessionID" },
3601
+ { in: "body", key: "language" },
3602
+ { in: "body", key: "environment" },
3603
+ { in: "body", key: "source" },
3604
+ { in: "body", key: "code" },
3605
+ { in: "body", key: "timeout" },
3606
+ ],
3607
+ },
3608
+ ]);
3609
+ return (options?.client ?? this.client).post({
3610
+ url: "/kernels/execute",
3611
+ ...options,
3612
+ ...params,
3613
+ headers: {
3614
+ "Content-Type": "application/json",
3615
+ ...options?.headers,
3616
+ ...params.headers,
3617
+ },
3618
+ });
3619
+ }
3620
+ /**
3621
+ * Get runtime status
3622
+ */
3623
+ status(parameters, options) {
3624
+ const params = buildClientParams([parameters], [
3625
+ {
3626
+ args: [
3627
+ { in: "query", key: "directory" },
3628
+ { in: "query", key: "sessionID" },
3629
+ { in: "query", key: "language" },
3630
+ { in: "query", key: "environment" },
3631
+ ],
3632
+ },
3633
+ ]);
3634
+ return (options?.client ?? this.client).get({
3635
+ url: "/kernels/status",
3636
+ ...options,
3637
+ ...params,
3638
+ });
3639
+ }
3640
+ /**
3641
+ * Restart a runtime
3642
+ */
3643
+ restart(parameters, options) {
3644
+ const params = buildClientParams([parameters], [
3645
+ {
3646
+ args: [
3647
+ { in: "query", key: "directory" },
3648
+ { in: "body", key: "sessionID" },
3649
+ { in: "body", key: "language" },
3650
+ { in: "body", key: "environment" },
3651
+ ],
3652
+ },
3653
+ ]);
3654
+ return (options?.client ?? this.client).post({
3655
+ url: "/kernels/restart",
3656
+ ...options,
3657
+ ...params,
3658
+ headers: {
3659
+ "Content-Type": "application/json",
3660
+ ...options?.headers,
3661
+ ...params.headers,
3662
+ },
3663
+ });
3664
+ }
3665
+ /**
3666
+ * Stop a runtime
3667
+ */
3668
+ stop(parameters, options) {
3669
+ const params = buildClientParams([parameters], [
3670
+ {
3671
+ args: [
3672
+ { in: "query", key: "directory" },
3673
+ { in: "body", key: "sessionID" },
3674
+ { in: "body", key: "language" },
3675
+ { in: "body", key: "environment" },
3676
+ ],
3677
+ },
3678
+ ]);
3679
+ return (options?.client ?? this.client).post({
3680
+ url: "/kernels/stop",
3681
+ ...options,
3682
+ ...params,
3683
+ headers: {
3684
+ "Content-Type": "application/json",
3685
+ ...options?.headers,
3686
+ ...params.headers,
3687
+ },
3688
+ });
3689
+ }
3690
+ /**
3691
+ * Interrupt a running execution
3692
+ *
3693
+ * Stop the running execution while preserving process state when the runtime supports interruption.
3694
+ */
3695
+ interrupt(parameters, options) {
3696
+ const params = buildClientParams([parameters], [
3697
+ {
3698
+ args: [
3699
+ { in: "query", key: "directory" },
3700
+ { in: "body", key: "sessionID" },
3701
+ { in: "body", key: "language" },
3702
+ { in: "body", key: "environment" },
3703
+ ],
3704
+ },
3705
+ ]);
3706
+ return (options?.client ?? this.client).post({
3707
+ url: "/kernels/interrupt",
3708
+ ...options,
3709
+ ...params,
3710
+ headers: {
3711
+ "Content-Type": "application/json",
3712
+ ...options?.headers,
3713
+ ...params.headers,
3714
+ },
3715
+ });
3716
+ }
3717
+ _command;
3718
+ get command() {
3719
+ return (this._command ??= new Command({ client: this.client }));
3720
+ }
3721
+ }
3722
+ export class Command2 extends HeyApiClient {
3266
3723
  /**
3267
3724
  * Stop a live shell command
3268
3725
  */
@@ -3440,8 +3897,9 @@ export class Notebook extends HeyApiClient {
3440
3897
  args: [
3441
3898
  { in: "query", key: "directory" },
3442
3899
  { in: "body", key: "sessionID" },
3443
- { in: "body", key: "id" },
3444
3900
  { in: "body", key: "language" },
3901
+ { in: "body", key: "environment" },
3902
+ { in: "body", key: "id" },
3445
3903
  { in: "body", key: "code" },
3446
3904
  { in: "body", key: "timeout" },
3447
3905
  ],
@@ -3467,8 +3925,9 @@ export class Notebook extends HeyApiClient {
3467
3925
  args: [
3468
3926
  { in: "query", key: "directory" },
3469
3927
  { in: "query", key: "sessionID" },
3470
- { in: "query", key: "id" },
3471
3928
  { in: "query", key: "language" },
3929
+ { in: "query", key: "environment" },
3930
+ { in: "query", key: "id" },
3472
3931
  ],
3473
3932
  },
3474
3933
  ]);
@@ -3487,8 +3946,9 @@ export class Notebook extends HeyApiClient {
3487
3946
  args: [
3488
3947
  { in: "query", key: "directory" },
3489
3948
  { in: "body", key: "sessionID" },
3490
- { in: "body", key: "id" },
3491
3949
  { in: "body", key: "language" },
3950
+ { in: "body", key: "environment" },
3951
+ { in: "body", key: "id" },
3492
3952
  ],
3493
3953
  },
3494
3954
  ]);
@@ -3512,8 +3972,9 @@ export class Notebook extends HeyApiClient {
3512
3972
  args: [
3513
3973
  { in: "query", key: "directory" },
3514
3974
  { in: "body", key: "sessionID" },
3515
- { in: "body", key: "id" },
3516
3975
  { in: "body", key: "language" },
3976
+ { in: "body", key: "environment" },
3977
+ { in: "body", key: "id" },
3517
3978
  ],
3518
3979
  },
3519
3980
  ]);
@@ -3539,8 +4000,9 @@ export class Notebook extends HeyApiClient {
3539
4000
  args: [
3540
4001
  { in: "query", key: "directory" },
3541
4002
  { in: "body", key: "sessionID" },
3542
- { in: "body", key: "id" },
3543
4003
  { in: "body", key: "language" },
4004
+ { in: "body", key: "environment" },
4005
+ { in: "body", key: "id" },
3544
4006
  ],
3545
4007
  },
3546
4008
  ]);
@@ -3557,7 +4019,7 @@ export class Notebook extends HeyApiClient {
3557
4019
  }
3558
4020
  _command;
3559
4021
  get command() {
3560
- return (this._command ??= new Command({ client: this.client }));
4022
+ return (this._command ??= new Command2({ client: this.client }));
3561
4023
  }
3562
4024
  _kernel;
3563
4025
  get kernel() {
@@ -3692,6 +4154,26 @@ export class Provenance extends HeyApiClient {
3692
4154
  ...params,
3693
4155
  });
3694
4156
  }
4157
+ /**
4158
+ * List durable execution history
4159
+ *
4160
+ * Returns the ordered, project-scoped execution record used by Activity, including runtime identity, restarts, outputs, files, artifacts, and provenance.
4161
+ */
4162
+ executions(parameters, options) {
4163
+ const params = buildClientParams([parameters], [
4164
+ {
4165
+ args: [
4166
+ { in: "query", key: "directory" },
4167
+ { in: "query", key: "sessionID" },
4168
+ ],
4169
+ },
4170
+ ]);
4171
+ return (options?.client ?? this.client).get({
4172
+ url: "/provenance/executions",
4173
+ ...options,
4174
+ ...params,
4175
+ });
4176
+ }
3695
4177
  /**
3696
4178
  * Trace a provenance node
3697
4179
  */
@@ -4003,7 +4485,7 @@ export class Vcs extends HeyApiClient {
4003
4485
  });
4004
4486
  }
4005
4487
  }
4006
- export class Command2 extends HeyApiClient {
4488
+ export class Command3 extends HeyApiClient {
4007
4489
  /**
4008
4490
  * List commands
4009
4491
  *
@@ -4308,6 +4790,10 @@ export class OpenScienceClient extends HeyApiClient {
4308
4790
  get permission() {
4309
4791
  return (this._permission ??= new Permission({ client: this.client }));
4310
4792
  }
4793
+ _runtime;
4794
+ get runtime() {
4795
+ return (this._runtime ??= new Runtime({ client: this.client }));
4796
+ }
4311
4797
  _search;
4312
4798
  get search() {
4313
4799
  return (this._search ??= new Search({ client: this.client }));
@@ -4328,6 +4814,10 @@ export class OpenScienceClient extends HeyApiClient {
4328
4814
  get file() {
4329
4815
  return (this._file ??= new File({ client: this.client }));
4330
4816
  }
4817
+ _kernels;
4818
+ get kernels() {
4819
+ return (this._kernels ??= new Kernels({ client: this.client }));
4820
+ }
4331
4821
  _notebook;
4332
4822
  get notebook() {
4333
4823
  return (this._notebook ??= new Notebook({ client: this.client }));
@@ -4354,7 +4844,7 @@ export class OpenScienceClient extends HeyApiClient {
4354
4844
  }
4355
4845
  _command;
4356
4846
  get command() {
4357
- return (this._command ??= new Command2({ client: this.client }));
4847
+ return (this._command ??= new Command3({ client: this.client }));
4358
4848
  }
4359
4849
  _app;
4360
4850
  get app() {