@synsci/sdk 1.3.6-test.18.1 → 1.3.6-test.19.1

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.
@@ -406,6 +406,8 @@ export class Ssh extends HeyApiClient {
406
406
  { in: "body", key: "host" },
407
407
  { in: "body", key: "user" },
408
408
  { in: "body", key: "port" },
409
+ { in: "body", key: "scheduler" },
410
+ { in: "body", key: "workdir" },
409
411
  ],
410
412
  },
411
413
  ]);
@@ -420,6 +422,17 @@ export class Ssh extends HeyApiClient {
420
422
  },
421
423
  });
422
424
  }
425
+ /**
426
+ * Test an SSH compute host
427
+ */
428
+ test(parameters, options) {
429
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
430
+ return (options?.client ?? this.client).post({
431
+ url: "/settings/compute/ssh/{id}/test",
432
+ ...options,
433
+ ...params,
434
+ });
435
+ }
423
436
  /**
424
437
  * Remove SSH host
425
438
  */
@@ -469,6 +482,78 @@ export class Endpoint extends HeyApiClient {
469
482
  });
470
483
  }
471
484
  }
485
+ export class Jobs extends HeyApiClient {
486
+ /**
487
+ * List local and remote compute jobs
488
+ */
489
+ list(options) {
490
+ return (options?.client ?? this.client).get({
491
+ url: "/settings/compute/jobs",
492
+ ...options,
493
+ });
494
+ }
495
+ /**
496
+ * Start a local, SSH, Slurm, or PBS compute job
497
+ */
498
+ start(parameters, options) {
499
+ const params = buildClientParams([parameters], [
500
+ {
501
+ args: [
502
+ { in: "body", key: "name" },
503
+ { in: "body", key: "command" },
504
+ { in: "body", key: "cwd" },
505
+ { in: "body", key: "target" },
506
+ { in: "body", key: "resources" },
507
+ { in: "body", key: "modules" },
508
+ { in: "body", key: "container" },
509
+ { in: "body", key: "artifacts" },
510
+ { in: "body", key: "checkpoint" },
511
+ ],
512
+ },
513
+ ]);
514
+ return (options?.client ?? this.client).post({
515
+ url: "/settings/compute/jobs",
516
+ ...options,
517
+ ...params,
518
+ headers: {
519
+ "Content-Type": "application/json",
520
+ ...options?.headers,
521
+ ...params.headers,
522
+ },
523
+ });
524
+ }
525
+ /**
526
+ * Clear completed compute jobs
527
+ */
528
+ clear(options) {
529
+ return (options?.client ?? this.client).delete({
530
+ url: "/settings/compute/jobs/completed",
531
+ ...options,
532
+ });
533
+ }
534
+ /**
535
+ * Read a compute job log
536
+ */
537
+ log(parameters, options) {
538
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
539
+ return (options?.client ?? this.client).get({
540
+ url: "/settings/compute/jobs/{id}/log",
541
+ ...options,
542
+ ...params,
543
+ });
544
+ }
545
+ /**
546
+ * Cancel a compute job
547
+ */
548
+ cancel(parameters, options) {
549
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
550
+ return (options?.client ?? this.client).post({
551
+ url: "/settings/compute/jobs/{id}/cancel",
552
+ ...options,
553
+ ...params,
554
+ });
555
+ }
556
+ }
472
557
  export class Compute extends HeyApiClient {
473
558
  /**
474
559
  * Get compute settings
@@ -491,6 +576,10 @@ export class Compute extends HeyApiClient {
491
576
  get endpoint() {
492
577
  return (this._endpoint ??= new Endpoint({ client: this.client }));
493
578
  }
579
+ _jobs;
580
+ get jobs() {
581
+ return (this._jobs ??= new Jobs({ client: this.client }));
582
+ }
494
583
  }
495
584
  export class Permissions extends HeyApiClient {
496
585
  /**
@@ -2139,6 +2228,169 @@ export class File extends HeyApiClient {
2139
2228
  },
2140
2229
  });
2141
2230
  }
2231
+ /**
2232
+ * Inspect a scientific binary file
2233
+ *
2234
+ * Inspect BAM, CRAM, H5AD, or LOOM metadata with locally available scientific tools.
2235
+ */
2236
+ inspect(parameters, options) {
2237
+ const params = buildClientParams([parameters], [
2238
+ {
2239
+ args: [
2240
+ { in: "query", key: "directory" },
2241
+ { in: "query", key: "path" },
2242
+ ],
2243
+ },
2244
+ ]);
2245
+ return (options?.client ?? this.client).get({
2246
+ url: "/file/inspect",
2247
+ ...options,
2248
+ ...params,
2249
+ });
2250
+ }
2251
+ /**
2252
+ * Download a file
2253
+ *
2254
+ * Stream a project file without loading it into the JSON API as base64.
2255
+ */
2256
+ raw(parameters, options) {
2257
+ const params = buildClientParams([parameters], [
2258
+ {
2259
+ args: [
2260
+ { in: "query", key: "directory" },
2261
+ { in: "query", key: "path" },
2262
+ ],
2263
+ },
2264
+ ]);
2265
+ return (options?.client ?? this.client).get({
2266
+ url: "/file/raw",
2267
+ ...options,
2268
+ ...params,
2269
+ });
2270
+ }
2271
+ /**
2272
+ * List local research artifacts
2273
+ *
2274
+ * Discover notebooks, datasets, figures, reports, models, and scientific files in the project.
2275
+ */
2276
+ artifacts(parameters, options) {
2277
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2278
+ return (options?.client ?? this.client).get({
2279
+ url: "/file/artifacts",
2280
+ ...options,
2281
+ ...params,
2282
+ });
2283
+ }
2284
+ /**
2285
+ * Get local file provenance
2286
+ *
2287
+ * Read Git branch, dirty state, and latest commit metadata for a project file.
2288
+ */
2289
+ provenance(parameters, options) {
2290
+ const params = buildClientParams([parameters], [
2291
+ {
2292
+ args: [
2293
+ { in: "query", key: "directory" },
2294
+ { in: "query", key: "path" },
2295
+ ],
2296
+ },
2297
+ ]);
2298
+ return (options?.client ?? this.client).get({
2299
+ url: "/file/provenance",
2300
+ ...options,
2301
+ ...params,
2302
+ });
2303
+ }
2304
+ /**
2305
+ * Audit project reproducibility
2306
+ *
2307
+ * Check Git state, locked dependencies, environment specifications, notebook structure, and research artifacts.
2308
+ */
2309
+ reproducibility(parameters, options) {
2310
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2311
+ return (options?.client ?? this.client).get({
2312
+ url: "/file/reproducibility",
2313
+ ...options,
2314
+ ...params,
2315
+ });
2316
+ }
2317
+ /**
2318
+ * Create an artifact integrity manifest
2319
+ *
2320
+ * Hash every discovered research artifact and return a portable, deterministic manifest.
2321
+ */
2322
+ manifest(parameters, options) {
2323
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2324
+ return (options?.client ?? this.client).get({
2325
+ url: "/file/manifest",
2326
+ ...options,
2327
+ ...params,
2328
+ });
2329
+ }
2330
+ /**
2331
+ * Create a local scientific starter project
2332
+ *
2333
+ * Materialize a valid notebook, sample data, and README without external downloads.
2334
+ */
2335
+ starter(parameters, options) {
2336
+ const params = buildClientParams([parameters], [
2337
+ {
2338
+ args: [
2339
+ { in: "query", key: "directory" },
2340
+ { in: "body", key: "template" },
2341
+ ],
2342
+ },
2343
+ ]);
2344
+ return (options?.client ?? this.client).post({
2345
+ url: "/file/starters",
2346
+ ...options,
2347
+ ...params,
2348
+ headers: {
2349
+ "Content-Type": "application/json",
2350
+ ...options?.headers,
2351
+ ...params.headers,
2352
+ },
2353
+ });
2354
+ }
2355
+ /**
2356
+ * Inspect local publication export support
2357
+ *
2358
+ * Detect Pandoc and a PDF engine before offering report export formats.
2359
+ */
2360
+ publicationCapabilities(parameters, options) {
2361
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2362
+ return (options?.client ?? this.client).get({
2363
+ url: "/file/publication/capabilities",
2364
+ ...options,
2365
+ ...params,
2366
+ });
2367
+ }
2368
+ /**
2369
+ * Export a Markdown research report
2370
+ *
2371
+ * Create a timestamped HTML, PDF, DOCX, LaTeX, or PowerPoint publication artifact locally.
2372
+ */
2373
+ publication(parameters, options) {
2374
+ const params = buildClientParams([parameters], [
2375
+ {
2376
+ args: [
2377
+ { in: "query", key: "directory" },
2378
+ { in: "body", key: "path" },
2379
+ { in: "body", key: "format" },
2380
+ ],
2381
+ },
2382
+ ]);
2383
+ return (options?.client ?? this.client).post({
2384
+ url: "/file/publication",
2385
+ ...options,
2386
+ ...params,
2387
+ headers: {
2388
+ "Content-Type": "application/json",
2389
+ ...options?.headers,
2390
+ ...params.headers,
2391
+ },
2392
+ });
2393
+ }
2142
2394
  /**
2143
2395
  * Get file status
2144
2396
  *
@@ -2153,6 +2405,210 @@ export class File extends HeyApiClient {
2153
2405
  });
2154
2406
  }
2155
2407
  }
2408
+ export class Notebook extends HeyApiClient {
2409
+ /**
2410
+ * Execute a notebook cell
2411
+ *
2412
+ * Execute code in a persistent project-scoped Python or R kernel.
2413
+ */
2414
+ execute(parameters, options) {
2415
+ const params = buildClientParams([parameters], [
2416
+ {
2417
+ args: [
2418
+ { in: "query", key: "directory" },
2419
+ { in: "body", key: "id" },
2420
+ { in: "body", key: "language" },
2421
+ { in: "body", key: "code" },
2422
+ { in: "body", key: "timeout" },
2423
+ ],
2424
+ },
2425
+ ]);
2426
+ return (options?.client ?? this.client).post({
2427
+ url: "/notebook/execute",
2428
+ ...options,
2429
+ ...params,
2430
+ headers: {
2431
+ "Content-Type": "application/json",
2432
+ ...options?.headers,
2433
+ ...params.headers,
2434
+ },
2435
+ });
2436
+ }
2437
+ /**
2438
+ * Get notebook kernel status
2439
+ */
2440
+ status(parameters, options) {
2441
+ const params = buildClientParams([parameters], [
2442
+ {
2443
+ args: [
2444
+ { in: "query", key: "directory" },
2445
+ { in: "query", key: "id" },
2446
+ { in: "query", key: "language" },
2447
+ ],
2448
+ },
2449
+ ]);
2450
+ return (options?.client ?? this.client).get({
2451
+ url: "/notebook/status",
2452
+ ...options,
2453
+ ...params,
2454
+ });
2455
+ }
2456
+ /**
2457
+ * Restart a notebook kernel
2458
+ */
2459
+ restart(parameters, options) {
2460
+ const params = buildClientParams([parameters], [
2461
+ {
2462
+ args: [
2463
+ { in: "query", key: "directory" },
2464
+ { in: "body", key: "id" },
2465
+ { in: "body", key: "language" },
2466
+ ],
2467
+ },
2468
+ ]);
2469
+ return (options?.client ?? this.client).post({
2470
+ url: "/notebook/restart",
2471
+ ...options,
2472
+ ...params,
2473
+ headers: {
2474
+ "Content-Type": "application/json",
2475
+ ...options?.headers,
2476
+ ...params.headers,
2477
+ },
2478
+ });
2479
+ }
2480
+ /**
2481
+ * Interrupt a notebook kernel
2482
+ *
2483
+ * Stop the running cell and release its kernel. The next execution starts a fresh kernel.
2484
+ */
2485
+ interrupt(parameters, options) {
2486
+ const params = buildClientParams([parameters], [
2487
+ {
2488
+ args: [
2489
+ { in: "query", key: "directory" },
2490
+ { in: "body", key: "id" },
2491
+ { in: "body", key: "language" },
2492
+ ],
2493
+ },
2494
+ ]);
2495
+ return (options?.client ?? this.client).post({
2496
+ url: "/notebook/interrupt",
2497
+ ...options,
2498
+ ...params,
2499
+ headers: {
2500
+ "Content-Type": "application/json",
2501
+ ...options?.headers,
2502
+ ...params.headers,
2503
+ },
2504
+ });
2505
+ }
2506
+ }
2507
+ export class Provenance extends HeyApiClient {
2508
+ /**
2509
+ * List the project provenance graph
2510
+ *
2511
+ * Returns project-scoped artifacts, runs, sources, claims, reviewer findings, and typed edges.
2512
+ */
2513
+ list(parameters, options) {
2514
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2515
+ return (options?.client ?? this.client).get({
2516
+ url: "/provenance",
2517
+ ...options,
2518
+ ...params,
2519
+ });
2520
+ }
2521
+ /**
2522
+ * Record a project provenance node
2523
+ */
2524
+ record(parameters, options) {
2525
+ const params = buildClientParams([parameters], [
2526
+ {
2527
+ args: [
2528
+ { in: "query", key: "directory" },
2529
+ { in: "body", key: "kind" },
2530
+ { in: "body", key: "label" },
2531
+ { in: "body", key: "artifact_type" },
2532
+ { in: "body", key: "path" },
2533
+ { in: "body", key: "content_hash" },
2534
+ { in: "body", key: "size" },
2535
+ { in: "body", key: "tool" },
2536
+ { in: "body", key: "status" },
2537
+ { in: "body", key: "meta" },
2538
+ { in: "body", key: "derived_from" },
2539
+ { in: "body", key: "relation" },
2540
+ ],
2541
+ },
2542
+ ]);
2543
+ return (options?.client ?? this.client).post({
2544
+ url: "/provenance/nodes",
2545
+ ...options,
2546
+ ...params,
2547
+ headers: {
2548
+ "Content-Type": "application/json",
2549
+ ...options?.headers,
2550
+ ...params.headers,
2551
+ },
2552
+ });
2553
+ }
2554
+ /**
2555
+ * Record a reviewer finding
2556
+ */
2557
+ review(parameters, options) {
2558
+ const params = buildClientParams([parameters], [
2559
+ {
2560
+ args: [
2561
+ { in: "query", key: "directory" },
2562
+ { in: "body", key: "target" },
2563
+ { in: "body", key: "claim" },
2564
+ { in: "body", key: "issue" },
2565
+ { in: "body", key: "severity" },
2566
+ { in: "body", key: "evidence" },
2567
+ { in: "body", key: "verdict" },
2568
+ ],
2569
+ },
2570
+ ]);
2571
+ return (options?.client ?? this.client).post({
2572
+ url: "/provenance/reviews",
2573
+ ...options,
2574
+ ...params,
2575
+ headers: {
2576
+ "Content-Type": "application/json",
2577
+ ...options?.headers,
2578
+ ...params.headers,
2579
+ },
2580
+ });
2581
+ }
2582
+ /**
2583
+ * Export a project provenance audit
2584
+ */
2585
+ export(parameters, options) {
2586
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2587
+ return (options?.client ?? this.client).get({
2588
+ url: "/provenance/export",
2589
+ ...options,
2590
+ ...params,
2591
+ });
2592
+ }
2593
+ /**
2594
+ * Trace a provenance node
2595
+ */
2596
+ trace(parameters, options) {
2597
+ const params = buildClientParams([parameters], [
2598
+ {
2599
+ args: [
2600
+ { in: "path", key: "id" },
2601
+ { in: "query", key: "directory" },
2602
+ ],
2603
+ },
2604
+ ]);
2605
+ return (options?.client ?? this.client).get({
2606
+ url: "/provenance/{id}",
2607
+ ...options,
2608
+ ...params,
2609
+ });
2610
+ }
2611
+ }
2156
2612
  export class Config3 extends HeyApiClient {
2157
2613
  /**
2158
2614
  * Remove MCP server
@@ -2742,6 +3198,14 @@ export class OpenScienceClient extends HeyApiClient {
2742
3198
  get file() {
2743
3199
  return (this._file ??= new File({ client: this.client }));
2744
3200
  }
3201
+ _notebook;
3202
+ get notebook() {
3203
+ return (this._notebook ??= new Notebook({ client: this.client }));
3204
+ }
3205
+ _provenance;
3206
+ get provenance() {
3207
+ return (this._provenance ??= new Provenance({ client: this.client }));
3208
+ }
2745
3209
  _mcp;
2746
3210
  get mcp() {
2747
3211
  return (this._mcp ??= new Mcp({ client: this.client }));