@synsci/sdk 2.0.2-test.37.1 → 2.0.2-test.40.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.
@@ -21,6 +21,26 @@ class HeyApiRegistry {
21
21
  this.instances.set(key ?? this.defaultKey, value);
22
22
  }
23
23
  }
24
+ export class Project extends HeyApiClient {
25
+ /**
26
+ * Create project
27
+ *
28
+ * Create an app-managed project with an opaque identity. The server owns its local root; clients provide a display name, never a host path.
29
+ */
30
+ create(parameters, options) {
31
+ const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "name" }] }]);
32
+ return (options?.client ?? this.client).post({
33
+ url: "/global/project",
34
+ ...options,
35
+ ...params,
36
+ headers: {
37
+ "Content-Type": "application/json",
38
+ ...options?.headers,
39
+ ...params.headers,
40
+ },
41
+ });
42
+ }
43
+ }
24
44
  export class Config extends HeyApiClient {
25
45
  /**
26
46
  * Get global configuration
@@ -144,6 +164,10 @@ export class Global extends HeyApiClient {
144
164
  ...options,
145
165
  });
146
166
  }
167
+ _project;
168
+ get project() {
169
+ return (this._project ??= new Project({ client: this.client }));
170
+ }
147
171
  _config;
148
172
  get config() {
149
173
  return (this._config ??= new Config({ client: this.client }));
@@ -445,43 +469,6 @@ export class Ssh extends HeyApiClient {
445
469
  });
446
470
  }
447
471
  }
448
- export class Endpoint extends HeyApiClient {
449
- /**
450
- * Add model endpoint
451
- */
452
- add(parameters, options) {
453
- const params = buildClientParams([parameters], [
454
- {
455
- args: [
456
- { in: "body", key: "label" },
457
- { in: "body", key: "url" },
458
- { in: "body", key: "kind" },
459
- ],
460
- },
461
- ]);
462
- return (options?.client ?? this.client).post({
463
- url: "/settings/compute/endpoint",
464
- ...options,
465
- ...params,
466
- headers: {
467
- "Content-Type": "application/json",
468
- ...options?.headers,
469
- ...params.headers,
470
- },
471
- });
472
- }
473
- /**
474
- * Remove model endpoint
475
- */
476
- remove(parameters, options) {
477
- const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
478
- return (options?.client ?? this.client).delete({
479
- url: "/settings/compute/endpoint/{id}",
480
- ...options,
481
- ...params,
482
- });
483
- }
484
- }
485
472
  export class Jobs extends HeyApiClient {
486
473
  /**
487
474
  * List local and remote compute jobs
@@ -591,55 +578,28 @@ export class Compute extends HeyApiClient {
591
578
  get ssh() {
592
579
  return (this._ssh ??= new Ssh({ client: this.client }));
593
580
  }
594
- _endpoint;
595
- get endpoint() {
596
- return (this._endpoint ??= new Endpoint({ client: this.client }));
597
- }
598
581
  _jobs;
599
582
  get jobs() {
600
583
  return (this._jobs ??= new Jobs({ client: this.client }));
601
584
  }
602
585
  }
603
- export class Permissions extends HeyApiClient {
586
+ export class Review extends HeyApiClient {
604
587
  /**
605
- * Get registry write permissions
588
+ * Get reviewer preferences
606
589
  */
607
590
  get(options) {
608
591
  return (options?.client ?? this.client).get({
609
- url: "/settings/permissions",
592
+ url: "/settings/review",
610
593
  ...options,
611
594
  });
612
595
  }
613
596
  /**
614
- * Set a registry write permission scope
597
+ * Update reviewer preferences
615
598
  */
616
599
  set(parameters, options) {
617
- const params = buildClientParams([parameters], [
618
- {
619
- args: [
620
- { in: "path", key: "action" },
621
- { in: "body", key: "scope" },
622
- ],
623
- },
624
- ]);
600
+ const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "auto" }] }]);
625
601
  return (options?.client ?? this.client).put({
626
- url: "/settings/permissions/{action}",
627
- ...options,
628
- ...params,
629
- headers: {
630
- "Content-Type": "application/json",
631
- ...options?.headers,
632
- ...params.headers,
633
- },
634
- });
635
- }
636
- /**
637
- * Revoke all registry write permissions
638
- */
639
- revokeAll(parameters, options) {
640
- const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "actions" }] }]);
641
- return (options?.client ?? this.client).post({
642
- url: "/settings/permissions/revoke-all",
602
+ url: "/settings/review",
643
603
  ...options,
644
604
  ...params,
645
605
  headers: {
@@ -762,7 +722,7 @@ export class Memory extends HeyApiClient {
762
722
  /**
763
723
  * Get memory
764
724
  *
765
- * Get the saved memory document for a scope (global or project).
725
+ * Get the saved memory document for a scope (global or project), with its capacity gauge.
766
726
  */
767
727
  get(parameters, options) {
768
728
  const params = buildClientParams([parameters], [
@@ -792,6 +752,7 @@ export class Memory extends HeyApiClient {
792
752
  { in: "query", key: "scope" },
793
753
  { in: "body", key: "enabled" },
794
754
  { in: "body", key: "categories" },
755
+ { in: "body", key: "budget" },
795
756
  ],
796
757
  },
797
758
  ]);
@@ -806,6 +767,27 @@ export class Memory extends HeyApiClient {
806
767
  },
807
768
  });
808
769
  }
770
+ /**
771
+ * Search memory
772
+ *
773
+ * Full-text search (FTS5 BM25 keyword ranking with a recency tiebreak — not semantic) over saved memory notes and past session messages of the current project.
774
+ */
775
+ search(parameters, options) {
776
+ const params = buildClientParams([parameters], [
777
+ {
778
+ args: [
779
+ { in: "query", key: "directory" },
780
+ { in: "query", key: "q" },
781
+ { in: "query", key: "limit" },
782
+ ],
783
+ },
784
+ ]);
785
+ return (options?.client ?? this.client).get({
786
+ url: "/settings/memory/search",
787
+ ...options,
788
+ ...params,
789
+ });
790
+ }
809
791
  }
810
792
  export class Network extends HeyApiClient {
811
793
  /**
@@ -875,9 +857,9 @@ export class Settings extends HeyApiClient {
875
857
  get compute() {
876
858
  return (this._compute ??= new Compute({ client: this.client }));
877
859
  }
878
- _permissions;
879
- get permissions() {
880
- return (this._permissions ??= new Permissions({ client: this.client }));
860
+ _review;
861
+ get review() {
862
+ return (this._review ??= new Review({ client: this.client }));
881
863
  }
882
864
  _preferences;
883
865
  get preferences() {
@@ -996,7 +978,7 @@ export class Trust extends HeyApiClient {
996
978
  });
997
979
  }
998
980
  }
999
- export class Project extends HeyApiClient {
981
+ export class Project2 extends HeyApiClient {
1000
982
  /**
1001
983
  * List all projects
1002
984
  *
@@ -1389,9 +1371,9 @@ export class Experimental extends HeyApiClient {
1389
1371
  }
1390
1372
  export class Filesystem extends HeyApiClient {
1391
1373
  /**
1392
- * List session filesystem grants
1374
+ * List filesystem grants
1393
1375
  *
1394
- * List durable read-only and read-write filesystem grants for one session.
1376
+ * List durable read-only and read-write filesystem grants for the session and its project.
1395
1377
  */
1396
1378
  list(parameters, options) {
1397
1379
  const params = buildClientParams([parameters], [
@@ -1409,9 +1391,9 @@ export class Filesystem extends HeyApiClient {
1409
1391
  });
1410
1392
  }
1411
1393
  /**
1412
- * Grant session filesystem access
1394
+ * Grant filesystem access
1413
1395
  *
1414
- * Grant read-only or read-write access to a canonical filesystem path for one use or the session.
1396
+ * Grant read-only or read-write access to a canonical filesystem path for one use, the session, or every session in the project.
1415
1397
  */
1416
1398
  grant(parameters, options) {
1417
1399
  const params = buildClientParams([parameters], [
@@ -1437,9 +1419,9 @@ export class Filesystem extends HeyApiClient {
1437
1419
  });
1438
1420
  }
1439
1421
  /**
1440
- * Revoke session filesystem access
1422
+ * Revoke filesystem access
1441
1423
  *
1442
- * Revoke a filesystem grant and stop the session kernels so stale mounts cannot survive.
1424
+ * Revoke a filesystem grant across its whole scope and stop affected kernels so stale mounts cannot survive.
1443
1425
  */
1444
1426
  revoke(parameters, options) {
1445
1427
  const params = buildClientParams([parameters], [
@@ -1629,6 +1611,26 @@ export class Session extends HeyApiClient {
1629
1611
  ...params,
1630
1612
  });
1631
1613
  }
1614
+ /**
1615
+ * Run an independent reviewer pass
1616
+ *
1617
+ * Launches the reviewer directly on this session: session-level permission rules restore its provenance tools and it receives a structured context message. Returns immediately; the review streams into the session like any other turn.
1618
+ */
1619
+ review(parameters, options) {
1620
+ const params = buildClientParams([parameters], [
1621
+ {
1622
+ args: [
1623
+ { in: "path", key: "sessionID" },
1624
+ { in: "query", key: "directory" },
1625
+ ],
1626
+ },
1627
+ ]);
1628
+ return (options?.client ?? this.client).post({
1629
+ url: "/session/{sessionID}/review",
1630
+ ...options,
1631
+ ...params,
1632
+ });
1633
+ }
1632
1634
  /**
1633
1635
  * Initialize session
1634
1636
  *
@@ -2023,6 +2025,41 @@ export class Part extends HeyApiClient {
2023
2025
  });
2024
2026
  }
2025
2027
  }
2028
+ export class Standing extends HeyApiClient {
2029
+ /**
2030
+ * List standing approvals
2031
+ *
2032
+ * Standing permission approvals for this project plus the machine-wide ones.
2033
+ */
2034
+ list(parameters, options) {
2035
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2036
+ return (options?.client ?? this.client).get({
2037
+ url: "/permission/standing",
2038
+ ...options,
2039
+ ...params,
2040
+ });
2041
+ }
2042
+ /**
2043
+ * Revoke standing approval
2044
+ *
2045
+ * Remove one standing approval so the action prompts again.
2046
+ */
2047
+ revoke(parameters, options) {
2048
+ const params = buildClientParams([parameters], [
2049
+ {
2050
+ args: [
2051
+ { in: "path", key: "id" },
2052
+ { in: "query", key: "directory" },
2053
+ ],
2054
+ },
2055
+ ]);
2056
+ return (options?.client ?? this.client).delete({
2057
+ url: "/permission/standing/{id}",
2058
+ ...options,
2059
+ ...params,
2060
+ });
2061
+ }
2062
+ }
2026
2063
  export class Permission extends HeyApiClient {
2027
2064
  /**
2028
2065
  * Respond to permission
@@ -2093,6 +2130,32 @@ export class Permission extends HeyApiClient {
2093
2130
  ...params,
2094
2131
  });
2095
2132
  }
2133
+ _standing;
2134
+ get standing() {
2135
+ return (this._standing ??= new Standing({ client: this.client }));
2136
+ }
2137
+ }
2138
+ export class Search extends HeyApiClient {
2139
+ /**
2140
+ * Search sessions, messages, and artifacts
2141
+ *
2142
+ * Case-insensitive plain-text search across session titles, recent conversation text, and artifact files in the project.
2143
+ */
2144
+ query(parameters, options) {
2145
+ const params = buildClientParams([parameters], [
2146
+ {
2147
+ args: [
2148
+ { in: "query", key: "directory" },
2149
+ { in: "query", key: "q" },
2150
+ ],
2151
+ },
2152
+ ]);
2153
+ return (options?.client ?? this.client).get({
2154
+ url: "/search",
2155
+ ...options,
2156
+ ...params,
2157
+ });
2158
+ }
2096
2159
  }
2097
2160
  export class Question extends HeyApiClient {
2098
2161
  /**
@@ -2307,6 +2370,35 @@ export class Find extends HeyApiClient {
2307
2370
  });
2308
2371
  }
2309
2372
  }
2373
+ export class Artifact extends HeyApiClient {
2374
+ /**
2375
+ * Save a file as a versioned artifact
2376
+ *
2377
+ * Register a project file's current bytes as an immutable, durably retained artifact version with provenance.
2378
+ */
2379
+ save(parameters, options) {
2380
+ const params = buildClientParams([parameters], [
2381
+ {
2382
+ args: [
2383
+ { in: "query", key: "directory" },
2384
+ { in: "body", key: "path" },
2385
+ { in: "body", key: "sessionID" },
2386
+ { in: "body", key: "summary" },
2387
+ ],
2388
+ },
2389
+ ]);
2390
+ return (options?.client ?? this.client).post({
2391
+ url: "/file/artifact",
2392
+ ...options,
2393
+ ...params,
2394
+ headers: {
2395
+ "Content-Type": "application/json",
2396
+ ...options?.headers,
2397
+ ...params.headers,
2398
+ },
2399
+ });
2400
+ }
2401
+ }
2310
2402
  export class Annotations extends HeyApiClient {
2311
2403
  /**
2312
2404
  * List artifact annotations
@@ -2428,7 +2520,7 @@ export class Annotations extends HeyApiClient {
2428
2520
  }
2429
2521
  export class Reviews extends HeyApiClient {
2430
2522
  /**
2431
- * Read the current publication review
2523
+ * Read the current publication preflight
2432
2524
  *
2433
2525
  * Return the latest deterministic review report and whether it is stale for the current source bytes.
2434
2526
  */
@@ -2474,7 +2566,7 @@ export class Reviews extends HeyApiClient {
2474
2566
  });
2475
2567
  }
2476
2568
  /**
2477
- * List publication review history
2569
+ * List publication preflight history
2478
2570
  *
2479
2571
  * List prior deterministic review reports for every reviewed version of a manuscript.
2480
2572
  */
@@ -2523,7 +2615,7 @@ export class Reviews extends HeyApiClient {
2523
2615
  });
2524
2616
  }
2525
2617
  /**
2526
- * Finalize a publication review
2618
+ * Finalize a publication preflight
2527
2619
  *
2528
2620
  * Bind publication-ready state to the exact reviewed source hash after all blocking findings close.
2529
2621
  */
@@ -2667,7 +2759,14 @@ export class File extends HeyApiClient {
2667
2759
  * Discover notebooks, datasets, figures, reports, models, and scientific files in the project.
2668
2760
  */
2669
2761
  artifacts(parameters, options) {
2670
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2762
+ const params = buildClientParams([parameters], [
2763
+ {
2764
+ args: [
2765
+ { in: "query", key: "directory" },
2766
+ { in: "query", key: "sessionID" },
2767
+ ],
2768
+ },
2769
+ ]);
2671
2770
  return (options?.client ?? this.client).get({
2672
2771
  url: "/file/artifacts",
2673
2772
  ...options,
@@ -2695,6 +2794,27 @@ export class File extends HeyApiClient {
2695
2794
  ...params,
2696
2795
  });
2697
2796
  }
2797
+ /**
2798
+ * Trace artifact lineage
2799
+ *
2800
+ * Find the provenance runs and producing messages recorded for a project file.
2801
+ */
2802
+ lineage(parameters, options) {
2803
+ const params = buildClientParams([parameters], [
2804
+ {
2805
+ args: [
2806
+ { in: "query", key: "directory" },
2807
+ { in: "query", key: "path" },
2808
+ { in: "query", key: "sessionID" },
2809
+ ],
2810
+ },
2811
+ ]);
2812
+ return (options?.client ?? this.client).get({
2813
+ url: "/file/lineage",
2814
+ ...options,
2815
+ ...params,
2816
+ });
2817
+ }
2698
2818
  /**
2699
2819
  * Audit project reproducibility
2700
2820
  *
@@ -2800,6 +2920,10 @@ export class File extends HeyApiClient {
2800
2920
  ...params,
2801
2921
  });
2802
2922
  }
2923
+ _artifact;
2924
+ get artifact() {
2925
+ return (this._artifact ??= new Artifact({ client: this.client }));
2926
+ }
2803
2927
  _annotations;
2804
2928
  get annotations() {
2805
2929
  return (this._annotations ??= new Annotations({ client: this.client }));
@@ -3052,6 +3176,48 @@ export class Notebook extends HeyApiClient {
3052
3176
  return (this._kernel ??= new Kernel({ client: this.client }));
3053
3177
  }
3054
3178
  }
3179
+ export class Reviews2 extends HeyApiClient {
3180
+ /**
3181
+ * List reviewer findings with lifecycle status
3182
+ *
3183
+ * Every reviewer finding in the project. Refuting findings carry a derived status: open, addressed (a fix was recorded), or confirmed (a later reviewer pass verified the target).
3184
+ */
3185
+ list(parameters, options) {
3186
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
3187
+ return (options?.client ?? this.client).get({
3188
+ url: "/provenance/reviews",
3189
+ ...options,
3190
+ ...params,
3191
+ });
3192
+ }
3193
+ /**
3194
+ * Mark a reviewer finding as addressed
3195
+ *
3196
+ * Records an append-only resolution against a refuting finding. The finding is only confirmed closed once a later reviewer pass records a supports finding on the same target.
3197
+ */
3198
+ resolve(parameters, options) {
3199
+ const params = buildClientParams([parameters], [
3200
+ {
3201
+ args: [
3202
+ { in: "path", key: "id" },
3203
+ { in: "query", key: "directory" },
3204
+ { in: "body", key: "actor" },
3205
+ { in: "body", key: "reason" },
3206
+ ],
3207
+ },
3208
+ ]);
3209
+ return (options?.client ?? this.client).post({
3210
+ url: "/provenance/reviews/{id}/resolve",
3211
+ ...options,
3212
+ ...params,
3213
+ headers: {
3214
+ "Content-Type": "application/json",
3215
+ ...options?.headers,
3216
+ ...params.headers,
3217
+ },
3218
+ });
3219
+ }
3220
+ }
3055
3221
  export class Provenance extends HeyApiClient {
3056
3222
  /**
3057
3223
  * List the project provenance graph
@@ -3156,6 +3322,10 @@ export class Provenance extends HeyApiClient {
3156
3322
  ...params,
3157
3323
  });
3158
3324
  }
3325
+ _reviews;
3326
+ get reviews() {
3327
+ return (this._reviews ??= new Reviews2({ client: this.client }));
3328
+ }
3159
3329
  }
3160
3330
  export class Config3 extends HeyApiClient {
3161
3331
  /**
@@ -3696,7 +3866,7 @@ export class OpenScienceClient extends HeyApiClient {
3696
3866
  }
3697
3867
  _project;
3698
3868
  get project() {
3699
- return (this._project ??= new Project({ client: this.client }));
3869
+ return (this._project ??= new Project2({ client: this.client }));
3700
3870
  }
3701
3871
  _pty;
3702
3872
  get pty() {
@@ -3730,6 +3900,10 @@ export class OpenScienceClient extends HeyApiClient {
3730
3900
  get permission() {
3731
3901
  return (this._permission ??= new Permission({ client: this.client }));
3732
3902
  }
3903
+ _search;
3904
+ get search() {
3905
+ return (this._search ??= new Search({ client: this.client }));
3906
+ }
3733
3907
  _question;
3734
3908
  get question() {
3735
3909
  return (this._question ??= new Question({ client: this.client }));