@synsci/sdk 1.1.145 → 1.2.2

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.
@@ -13,7 +13,7 @@ class HeyApiRegistry {
13
13
  get(key) {
14
14
  const instance = this.instances.get(key ?? this.defaultKey);
15
15
  if (!instance) {
16
- throw new Error(`No SDK client found. Create one with "new SynSciClient()" to fix this error.`);
16
+ throw new Error(`No SDK client found. Create one with "new OpenScienceClient()" to fix this error.`);
17
17
  }
18
18
  return instance;
19
19
  }
@@ -25,7 +25,7 @@ export class Config extends HeyApiClient {
25
25
  /**
26
26
  * Get global configuration
27
27
  *
28
- * Retrieve the current global SynSci configuration settings and preferences.
28
+ * Retrieve the current global OpenScience configuration settings and preferences.
29
29
  */
30
30
  get(options) {
31
31
  return (options?.client ?? this.client).get({
@@ -36,7 +36,7 @@ export class Config extends HeyApiClient {
36
36
  /**
37
37
  * Update global configuration
38
38
  *
39
- * Update global SynSci configuration settings and preferences.
39
+ * Update global OpenScience configuration settings and preferences.
40
40
  */
41
41
  update(parameters, options) {
42
42
  const params = buildClientParams([parameters], [{ args: [{ key: "config", map: "body" }] }]);
@@ -56,7 +56,7 @@ export class Global extends HeyApiClient {
56
56
  /**
57
57
  * Get health
58
58
  *
59
- * Get health information about the SynSci server.
59
+ * Get health information about the OpenScience server.
60
60
  */
61
61
  health(options) {
62
62
  return (options?.client ?? this.client).get({
@@ -67,7 +67,7 @@ export class Global extends HeyApiClient {
67
67
  /**
68
68
  * Get global events
69
69
  *
70
- * Subscribe to global events from the SynSci system using server-sent events.
70
+ * Subscribe to global events from the OpenScience system using server-sent events.
71
71
  */
72
72
  event(options) {
73
73
  return (options?.client ?? this.client).sse.get({
@@ -125,7 +125,7 @@ export class Global extends HeyApiClient {
125
125
  /**
126
126
  * Dispose instance
127
127
  *
128
- * Clean up and dispose all SynSci instances, releasing all resources.
128
+ * Clean up and dispose all OpenScience instances, releasing all resources.
129
129
  */
130
130
  dispose(options) {
131
131
  return (options?.client ?? this.client).post({
@@ -136,7 +136,7 @@ export class Global extends HeyApiClient {
136
136
  /**
137
137
  * Sync account services
138
138
  *
139
- * Refresh SynSci account services and reload local provider/config state.
139
+ * Refresh OpenScience account services and reload local provider/config state.
140
140
  */
141
141
  sync(options) {
142
142
  return (options?.client ?? this.client).post({
@@ -193,7 +193,7 @@ export class Account extends HeyApiClient {
193
193
  /**
194
194
  * Get account
195
195
  *
196
- * Get synced SynSci account and billing summary.
196
+ * Get synced OpenScience account and billing summary.
197
197
  */
198
198
  get(options) {
199
199
  return (options?.client ?? this.client).get({
@@ -237,6 +237,527 @@ export class Account extends HeyApiClient {
237
237
  return (this._billingMode ??= new BillingMode({ client: this.client }));
238
238
  }
239
239
  }
240
+ export class Credentials extends HeyApiClient {
241
+ /**
242
+ * List credential services
243
+ *
244
+ * List external-service credential slots and which fields are set (never values).
245
+ */
246
+ list(options) {
247
+ return (options?.client ?? this.client).get({
248
+ url: "/settings/credentials",
249
+ ...options,
250
+ });
251
+ }
252
+ /**
253
+ * Remove service credential
254
+ *
255
+ * Delete all stored secrets for a service.
256
+ */
257
+ remove(parameters, options) {
258
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
259
+ return (options?.client ?? this.client).delete({
260
+ url: "/settings/credentials/{id}",
261
+ ...options,
262
+ ...params,
263
+ });
264
+ }
265
+ /**
266
+ * Save service credential
267
+ *
268
+ * Encrypt and persist one or more secret fields for a service. Empty values are ignored.
269
+ */
270
+ set(parameters, options) {
271
+ const params = buildClientParams([parameters], [
272
+ {
273
+ args: [
274
+ { in: "path", key: "id" },
275
+ { in: "body", key: "label" },
276
+ { in: "body", key: "fields" },
277
+ ],
278
+ },
279
+ ]);
280
+ return (options?.client ?? this.client).put({
281
+ url: "/settings/credentials/{id}",
282
+ ...options,
283
+ ...params,
284
+ headers: {
285
+ "Content-Type": "application/json",
286
+ ...options?.headers,
287
+ ...params.headers,
288
+ },
289
+ });
290
+ }
291
+ }
292
+ export class Storage extends HeyApiClient {
293
+ /**
294
+ * Get storage usage
295
+ *
296
+ * Real on-disk sizes for the OpenScience data directory and its top-level entries.
297
+ */
298
+ usage(options) {
299
+ return (options?.client ?? this.client).get({
300
+ url: "/settings/storage",
301
+ ...options,
302
+ });
303
+ }
304
+ /**
305
+ * Reset data location
306
+ *
307
+ * Remove the data-location pointer so the default location is used on next launch.
308
+ */
309
+ resetLocation(options) {
310
+ return (options?.client ?? this.client).delete({
311
+ url: "/settings/storage/location",
312
+ ...options,
313
+ });
314
+ }
315
+ /**
316
+ * Change data location
317
+ *
318
+ * Copy the data directory to a new absolute path and record a pointer honoured on next launch. Requires restart.
319
+ */
320
+ relocate(parameters, options) {
321
+ const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "path" }] }]);
322
+ return (options?.client ?? this.client).post({
323
+ url: "/settings/storage/location",
324
+ ...options,
325
+ ...params,
326
+ headers: {
327
+ "Content-Type": "application/json",
328
+ ...options?.headers,
329
+ ...params.headers,
330
+ },
331
+ });
332
+ }
333
+ }
334
+ export class Provider extends HeyApiClient {
335
+ /**
336
+ * Disconnect a GPU provider
337
+ */
338
+ disconnect(parameters, options) {
339
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
340
+ return (options?.client ?? this.client).delete({
341
+ url: "/settings/compute/provider/{id}",
342
+ ...options,
343
+ ...params,
344
+ });
345
+ }
346
+ /**
347
+ * Connect or update a GPU provider (BYOK)
348
+ */
349
+ connect(parameters, options) {
350
+ const params = buildClientParams([parameters], [
351
+ {
352
+ args: [
353
+ { in: "path", key: "id" },
354
+ { in: "body", key: "key" },
355
+ ],
356
+ },
357
+ ]);
358
+ return (options?.client ?? this.client).post({
359
+ url: "/settings/compute/provider/{id}",
360
+ ...options,
361
+ ...params,
362
+ headers: {
363
+ "Content-Type": "application/json",
364
+ ...options?.headers,
365
+ ...params.headers,
366
+ },
367
+ });
368
+ }
369
+ }
370
+ export class Ssh extends HeyApiClient {
371
+ /**
372
+ * Add SSH host
373
+ */
374
+ add(parameters, options) {
375
+ const params = buildClientParams([parameters], [
376
+ {
377
+ args: [
378
+ { in: "body", key: "label" },
379
+ { in: "body", key: "host" },
380
+ { in: "body", key: "user" },
381
+ { in: "body", key: "port" },
382
+ ],
383
+ },
384
+ ]);
385
+ return (options?.client ?? this.client).post({
386
+ url: "/settings/compute/ssh",
387
+ ...options,
388
+ ...params,
389
+ headers: {
390
+ "Content-Type": "application/json",
391
+ ...options?.headers,
392
+ ...params.headers,
393
+ },
394
+ });
395
+ }
396
+ /**
397
+ * Remove SSH host
398
+ */
399
+ remove(parameters, options) {
400
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
401
+ return (options?.client ?? this.client).delete({
402
+ url: "/settings/compute/ssh/{id}",
403
+ ...options,
404
+ ...params,
405
+ });
406
+ }
407
+ }
408
+ export class Endpoint extends HeyApiClient {
409
+ /**
410
+ * Add model endpoint
411
+ */
412
+ add(parameters, options) {
413
+ const params = buildClientParams([parameters], [
414
+ {
415
+ args: [
416
+ { in: "body", key: "label" },
417
+ { in: "body", key: "url" },
418
+ { in: "body", key: "kind" },
419
+ ],
420
+ },
421
+ ]);
422
+ return (options?.client ?? this.client).post({
423
+ url: "/settings/compute/endpoint",
424
+ ...options,
425
+ ...params,
426
+ headers: {
427
+ "Content-Type": "application/json",
428
+ ...options?.headers,
429
+ ...params.headers,
430
+ },
431
+ });
432
+ }
433
+ /**
434
+ * Remove model endpoint
435
+ */
436
+ remove(parameters, options) {
437
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
438
+ return (options?.client ?? this.client).delete({
439
+ url: "/settings/compute/endpoint/{id}",
440
+ ...options,
441
+ ...params,
442
+ });
443
+ }
444
+ }
445
+ export class Compute extends HeyApiClient {
446
+ /**
447
+ * Get compute settings
448
+ */
449
+ get(options) {
450
+ return (options?.client ?? this.client).get({
451
+ url: "/settings/compute",
452
+ ...options,
453
+ });
454
+ }
455
+ _provider;
456
+ get provider() {
457
+ return (this._provider ??= new Provider({ client: this.client }));
458
+ }
459
+ _ssh;
460
+ get ssh() {
461
+ return (this._ssh ??= new Ssh({ client: this.client }));
462
+ }
463
+ _endpoint;
464
+ get endpoint() {
465
+ return (this._endpoint ??= new Endpoint({ client: this.client }));
466
+ }
467
+ }
468
+ export class Permissions extends HeyApiClient {
469
+ /**
470
+ * Get registry write permissions
471
+ */
472
+ get(options) {
473
+ return (options?.client ?? this.client).get({
474
+ url: "/settings/permissions",
475
+ ...options,
476
+ });
477
+ }
478
+ /**
479
+ * Set a registry write permission scope
480
+ */
481
+ set(parameters, options) {
482
+ const params = buildClientParams([parameters], [
483
+ {
484
+ args: [
485
+ { in: "path", key: "action" },
486
+ { in: "body", key: "scope" },
487
+ ],
488
+ },
489
+ ]);
490
+ return (options?.client ?? this.client).put({
491
+ url: "/settings/permissions/{action}",
492
+ ...options,
493
+ ...params,
494
+ headers: {
495
+ "Content-Type": "application/json",
496
+ ...options?.headers,
497
+ ...params.headers,
498
+ },
499
+ });
500
+ }
501
+ /**
502
+ * Revoke all registry write permissions
503
+ */
504
+ revokeAll(parameters, options) {
505
+ const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "actions" }] }]);
506
+ return (options?.client ?? this.client).post({
507
+ url: "/settings/permissions/revoke-all",
508
+ ...options,
509
+ ...params,
510
+ headers: {
511
+ "Content-Type": "application/json",
512
+ ...options?.headers,
513
+ ...params.headers,
514
+ },
515
+ });
516
+ }
517
+ }
518
+ export class Preferences extends HeyApiClient {
519
+ /**
520
+ * Get settings preferences
521
+ */
522
+ get(options) {
523
+ return (options?.client ?? this.client).get({
524
+ url: "/settings/preferences",
525
+ ...options,
526
+ });
527
+ }
528
+ /**
529
+ * Update settings preferences
530
+ */
531
+ update(parameters, options) {
532
+ const params = buildClientParams([parameters], [
533
+ {
534
+ args: [
535
+ { in: "body", key: "reasoning_effort" },
536
+ { in: "body", key: "intent" },
537
+ { in: "body", key: "extra_budget_usd" },
538
+ ],
539
+ },
540
+ ]);
541
+ return (options?.client ?? this.client).patch({
542
+ url: "/settings/preferences",
543
+ ...options,
544
+ ...params,
545
+ headers: {
546
+ "Content-Type": "application/json",
547
+ ...options?.headers,
548
+ ...params.headers,
549
+ },
550
+ });
551
+ }
552
+ }
553
+ export class Billing extends HeyApiClient {
554
+ /**
555
+ * Get billing spend toggles + wallet status
556
+ */
557
+ get(options) {
558
+ return (options?.client ?? this.client).get({
559
+ url: "/settings/billing",
560
+ ...options,
561
+ });
562
+ }
563
+ /**
564
+ * Update billing spend toggles (managed vs BYOK)
565
+ */
566
+ update(parameters, options) {
567
+ const params = buildClientParams([parameters], [
568
+ {
569
+ args: [
570
+ { in: "body", key: "llm" },
571
+ { in: "body", key: "compute" },
572
+ ],
573
+ },
574
+ ]);
575
+ return (options?.client ?? this.client).put({
576
+ url: "/settings/billing",
577
+ ...options,
578
+ ...params,
579
+ headers: {
580
+ "Content-Type": "application/json",
581
+ ...options?.headers,
582
+ ...params.headers,
583
+ },
584
+ });
585
+ }
586
+ }
587
+ export class Skills extends HeyApiClient {
588
+ /**
589
+ * Install skill from git
590
+ *
591
+ * Install skill(s) from a public git repository URL. Runs the local-first fetch and multi-layer security review, writes surviving skills to the installed-skills store, then invalidates the skill cache.
592
+ */
593
+ install(parameters, options) {
594
+ const params = buildClientParams([parameters], [
595
+ {
596
+ args: [
597
+ { in: "query", key: "directory" },
598
+ { in: "body", key: "url" },
599
+ { in: "body", key: "skipClassifier" },
600
+ ],
601
+ },
602
+ ]);
603
+ return (options?.client ?? this.client).post({
604
+ url: "/settings/skills/install",
605
+ ...options,
606
+ ...params,
607
+ headers: {
608
+ "Content-Type": "application/json",
609
+ ...options?.headers,
610
+ ...params.headers,
611
+ },
612
+ });
613
+ }
614
+ }
615
+ export class Memory extends HeyApiClient {
616
+ /**
617
+ * Get memory
618
+ *
619
+ * Get the saved memory document for a scope (global or project).
620
+ */
621
+ get(parameters, options) {
622
+ const params = buildClientParams([parameters], [
623
+ {
624
+ args: [
625
+ { in: "query", key: "directory" },
626
+ { in: "query", key: "scope" },
627
+ ],
628
+ },
629
+ ]);
630
+ return (options?.client ?? this.client).get({
631
+ url: "/settings/memory",
632
+ ...options,
633
+ ...params,
634
+ });
635
+ }
636
+ /**
637
+ * Set memory
638
+ *
639
+ * Replace the saved memory document for a scope (global or project).
640
+ */
641
+ set(parameters, options) {
642
+ const params = buildClientParams([parameters], [
643
+ {
644
+ args: [
645
+ { in: "query", key: "directory" },
646
+ { in: "query", key: "scope" },
647
+ { in: "body", key: "enabled" },
648
+ { in: "body", key: "categories" },
649
+ ],
650
+ },
651
+ ]);
652
+ return (options?.client ?? this.client).put({
653
+ url: "/settings/memory",
654
+ ...options,
655
+ ...params,
656
+ headers: {
657
+ "Content-Type": "application/json",
658
+ ...options?.headers,
659
+ ...params.headers,
660
+ },
661
+ });
662
+ }
663
+ }
664
+ export class Network extends HeyApiClient {
665
+ /**
666
+ * Get network allow-list
667
+ *
668
+ * Get the domain allow-list catalog and the saved allow-list state.
669
+ */
670
+ get(parameters, options) {
671
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
672
+ return (options?.client ?? this.client).get({
673
+ url: "/settings/network",
674
+ ...options,
675
+ ...params,
676
+ });
677
+ }
678
+ /**
679
+ * Set network allow-list
680
+ *
681
+ * Persist the domain allow-list state (enabled groups + custom domains).
682
+ */
683
+ set(parameters, options) {
684
+ const params = buildClientParams([parameters], [
685
+ {
686
+ args: [
687
+ { in: "query", key: "directory" },
688
+ { in: "body", key: "allowlistEnabled" },
689
+ { in: "body", key: "enabled" },
690
+ { in: "body", key: "custom" },
691
+ ],
692
+ },
693
+ ]);
694
+ return (options?.client ?? this.client).put({
695
+ url: "/settings/network",
696
+ ...options,
697
+ ...params,
698
+ headers: {
699
+ "Content-Type": "application/json",
700
+ ...options?.headers,
701
+ ...params.headers,
702
+ },
703
+ });
704
+ }
705
+ }
706
+ export class Usage extends HeyApiClient {
707
+ /**
708
+ * Local usage summary
709
+ */
710
+ get(parameters, options) {
711
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
712
+ return (options?.client ?? this.client).get({
713
+ url: "/settings/usage",
714
+ ...options,
715
+ ...params,
716
+ });
717
+ }
718
+ }
719
+ export class Settings extends HeyApiClient {
720
+ _credentials;
721
+ get credentials() {
722
+ return (this._credentials ??= new Credentials({ client: this.client }));
723
+ }
724
+ _storage;
725
+ get storage() {
726
+ return (this._storage ??= new Storage({ client: this.client }));
727
+ }
728
+ _compute;
729
+ get compute() {
730
+ return (this._compute ??= new Compute({ client: this.client }));
731
+ }
732
+ _permissions;
733
+ get permissions() {
734
+ return (this._permissions ??= new Permissions({ client: this.client }));
735
+ }
736
+ _preferences;
737
+ get preferences() {
738
+ return (this._preferences ??= new Preferences({ client: this.client }));
739
+ }
740
+ _billing;
741
+ get billing() {
742
+ return (this._billing ??= new Billing({ client: this.client }));
743
+ }
744
+ _skills;
745
+ get skills() {
746
+ return (this._skills ??= new Skills({ client: this.client }));
747
+ }
748
+ _memory;
749
+ get memory() {
750
+ return (this._memory ??= new Memory({ client: this.client }));
751
+ }
752
+ _network;
753
+ get network() {
754
+ return (this._network ??= new Network({ client: this.client }));
755
+ }
756
+ _usage;
757
+ get usage() {
758
+ return (this._usage ??= new Usage({ client: this.client }));
759
+ }
760
+ }
240
761
  export class Auth extends HeyApiClient {
241
762
  /**
242
763
  * Remove auth credentials
@@ -281,7 +802,7 @@ export class Project extends HeyApiClient {
281
802
  /**
282
803
  * List all projects
283
804
  *
284
- * Get a list of projects that have been opened with SynSci.
805
+ * Get a list of projects that have been opened with OpenScience.
285
806
  */
286
807
  list(parameters, options) {
287
808
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
@@ -294,7 +815,7 @@ export class Project extends HeyApiClient {
294
815
  /**
295
816
  * Get current project
296
817
  *
297
- * Retrieve the currently active project that SynSci is working with.
818
+ * Retrieve the currently active project that OpenScience is working with.
298
819
  */
299
820
  current(parameters, options) {
300
821
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
@@ -337,7 +858,7 @@ export class Pty extends HeyApiClient {
337
858
  /**
338
859
  * List PTY sessions
339
860
  *
340
- * Get a list of all active pseudo-terminal (PTY) sessions managed by SynSci.
861
+ * Get a list of all active pseudo-terminal (PTY) sessions managed by OpenScience.
341
862
  */
342
863
  list(parameters, options) {
343
864
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
@@ -468,7 +989,7 @@ export class Config2 extends HeyApiClient {
468
989
  /**
469
990
  * Get configuration
470
991
  *
471
- * Retrieve the current SynSci configuration settings and preferences.
992
+ * Retrieve the current OpenScience configuration settings and preferences.
472
993
  */
473
994
  get(parameters, options) {
474
995
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
@@ -481,7 +1002,7 @@ export class Config2 extends HeyApiClient {
481
1002
  /**
482
1003
  * Update configuration
483
1004
  *
484
- * Update SynSci configuration settings and preferences.
1005
+ * Update OpenScience configuration settings and preferences.
485
1006
  */
486
1007
  update(parameters, options) {
487
1008
  const params = buildClientParams([parameters], [
@@ -668,7 +1189,7 @@ export class Session extends HeyApiClient {
668
1189
  /**
669
1190
  * List sessions
670
1191
  *
671
- * Get a list of all SynSci sessions, sorted by most recently updated.
1192
+ * Get a list of all OpenScience sessions, sorted by most recently updated.
672
1193
  */
673
1194
  list(parameters, options) {
674
1195
  const params = buildClientParams([parameters], [
@@ -691,7 +1212,7 @@ export class Session extends HeyApiClient {
691
1212
  /**
692
1213
  * Create session
693
1214
  *
694
- * Create a new SynSci session for interacting with AI assistants and managing conversations.
1215
+ * Create a new OpenScience session for interacting with AI assistants and managing conversations.
695
1216
  */
696
1217
  create(parameters, options) {
697
1218
  const params = buildClientParams([parameters], [
@@ -751,7 +1272,7 @@ export class Session extends HeyApiClient {
751
1272
  /**
752
1273
  * Get session
753
1274
  *
754
- * Retrieve detailed information about a specific SynSci session.
1275
+ * Retrieve detailed information about a specific OpenScience session.
755
1276
  */
756
1277
  get(parameters, options) {
757
1278
  const params = buildClientParams([parameters], [
@@ -998,6 +1519,7 @@ export class Session extends HeyApiClient {
998
1519
  { in: "body", key: "system" },
999
1520
  { in: "body", key: "variant" },
1000
1521
  { in: "body", key: "tier" },
1522
+ { in: "body", key: "fast" },
1001
1523
  { in: "body", key: "parts" },
1002
1524
  ],
1003
1525
  },
@@ -1053,6 +1575,7 @@ export class Session extends HeyApiClient {
1053
1575
  { in: "body", key: "system" },
1054
1576
  { in: "body", key: "variant" },
1055
1577
  { in: "body", key: "tier" },
1578
+ { in: "body", key: "fast" },
1056
1579
  { in: "body", key: "parts" },
1057
1580
  ],
1058
1581
  },
@@ -1411,7 +1934,7 @@ export class Oauth extends HeyApiClient {
1411
1934
  });
1412
1935
  }
1413
1936
  }
1414
- export class Provider extends HeyApiClient {
1937
+ export class Provider2 extends HeyApiClient {
1415
1938
  /**
1416
1939
  * List providers
1417
1940
  *
@@ -1812,263 +2335,11 @@ export class Mcp extends HeyApiClient {
1812
2335
  return (this._auth ??= new Auth2({ client: this.client }));
1813
2336
  }
1814
2337
  }
1815
- export class Control extends HeyApiClient {
1816
- /**
1817
- * Get next TUI request
1818
- *
1819
- * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
1820
- */
1821
- next(parameters, options) {
1822
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1823
- return (options?.client ?? this.client).get({
1824
- url: "/tui/control/next",
1825
- ...options,
1826
- ...params,
1827
- });
1828
- }
1829
- /**
1830
- * Submit TUI response
1831
- *
1832
- * Submit a response to the TUI request queue to complete a pending request.
1833
- */
1834
- response(parameters, options) {
1835
- const params = buildClientParams([parameters], [
1836
- {
1837
- args: [
1838
- { in: "query", key: "directory" },
1839
- { key: "body", map: "body" },
1840
- ],
1841
- },
1842
- ]);
1843
- return (options?.client ?? this.client).post({
1844
- url: "/tui/control/response",
1845
- ...options,
1846
- ...params,
1847
- headers: {
1848
- "Content-Type": "application/json",
1849
- ...options?.headers,
1850
- ...params.headers,
1851
- },
1852
- });
1853
- }
1854
- }
1855
- export class Tui extends HeyApiClient {
1856
- /**
1857
- * Append TUI prompt
1858
- *
1859
- * Append prompt to the TUI
1860
- */
1861
- appendPrompt(parameters, options) {
1862
- const params = buildClientParams([parameters], [
1863
- {
1864
- args: [
1865
- { in: "query", key: "directory" },
1866
- { in: "body", key: "text" },
1867
- ],
1868
- },
1869
- ]);
1870
- return (options?.client ?? this.client).post({
1871
- url: "/tui/append-prompt",
1872
- ...options,
1873
- ...params,
1874
- headers: {
1875
- "Content-Type": "application/json",
1876
- ...options?.headers,
1877
- ...params.headers,
1878
- },
1879
- });
1880
- }
1881
- /**
1882
- * Open help dialog
1883
- *
1884
- * Open the help dialog in the TUI to display user assistance information.
1885
- */
1886
- openHelp(parameters, options) {
1887
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1888
- return (options?.client ?? this.client).post({
1889
- url: "/tui/open-help",
1890
- ...options,
1891
- ...params,
1892
- });
1893
- }
1894
- /**
1895
- * Open sessions dialog
1896
- *
1897
- * Open the session dialog
1898
- */
1899
- openSessions(parameters, options) {
1900
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1901
- return (options?.client ?? this.client).post({
1902
- url: "/tui/open-sessions",
1903
- ...options,
1904
- ...params,
1905
- });
1906
- }
1907
- /**
1908
- * Open themes dialog
1909
- *
1910
- * Open the theme dialog
1911
- */
1912
- openThemes(parameters, options) {
1913
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1914
- return (options?.client ?? this.client).post({
1915
- url: "/tui/open-themes",
1916
- ...options,
1917
- ...params,
1918
- });
1919
- }
1920
- /**
1921
- * Open models dialog
1922
- *
1923
- * Open the model dialog
1924
- */
1925
- openModels(parameters, options) {
1926
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1927
- return (options?.client ?? this.client).post({
1928
- url: "/tui/open-models",
1929
- ...options,
1930
- ...params,
1931
- });
1932
- }
1933
- /**
1934
- * Submit TUI prompt
1935
- *
1936
- * Submit the prompt
1937
- */
1938
- submitPrompt(parameters, options) {
1939
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1940
- return (options?.client ?? this.client).post({
1941
- url: "/tui/submit-prompt",
1942
- ...options,
1943
- ...params,
1944
- });
1945
- }
1946
- /**
1947
- * Clear TUI prompt
1948
- *
1949
- * Clear the prompt
1950
- */
1951
- clearPrompt(parameters, options) {
1952
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1953
- return (options?.client ?? this.client).post({
1954
- url: "/tui/clear-prompt",
1955
- ...options,
1956
- ...params,
1957
- });
1958
- }
1959
- /**
1960
- * Execute TUI command
1961
- *
1962
- * Execute a TUI command (e.g. agent_cycle)
1963
- */
1964
- executeCommand(parameters, options) {
1965
- const params = buildClientParams([parameters], [
1966
- {
1967
- args: [
1968
- { in: "query", key: "directory" },
1969
- { in: "body", key: "command" },
1970
- ],
1971
- },
1972
- ]);
1973
- return (options?.client ?? this.client).post({
1974
- url: "/tui/execute-command",
1975
- ...options,
1976
- ...params,
1977
- headers: {
1978
- "Content-Type": "application/json",
1979
- ...options?.headers,
1980
- ...params.headers,
1981
- },
1982
- });
1983
- }
1984
- /**
1985
- * Show TUI toast
1986
- *
1987
- * Show a toast notification in the TUI
1988
- */
1989
- showToast(parameters, options) {
1990
- const params = buildClientParams([parameters], [
1991
- {
1992
- args: [
1993
- { in: "query", key: "directory" },
1994
- { in: "body", key: "title" },
1995
- { in: "body", key: "message" },
1996
- { in: "body", key: "variant" },
1997
- { in: "body", key: "duration" },
1998
- ],
1999
- },
2000
- ]);
2001
- return (options?.client ?? this.client).post({
2002
- url: "/tui/show-toast",
2003
- ...options,
2004
- ...params,
2005
- headers: {
2006
- "Content-Type": "application/json",
2007
- ...options?.headers,
2008
- ...params.headers,
2009
- },
2010
- });
2011
- }
2012
- /**
2013
- * Publish TUI event
2014
- *
2015
- * Publish a TUI event
2016
- */
2017
- publish(parameters, options) {
2018
- const params = buildClientParams([parameters], [
2019
- {
2020
- args: [
2021
- { in: "query", key: "directory" },
2022
- { key: "body", map: "body" },
2023
- ],
2024
- },
2025
- ]);
2026
- return (options?.client ?? this.client).post({
2027
- url: "/tui/publish",
2028
- ...options,
2029
- ...params,
2030
- headers: {
2031
- "Content-Type": "application/json",
2032
- ...options?.headers,
2033
- ...params.headers,
2034
- },
2035
- });
2036
- }
2037
- /**
2038
- * Select session
2039
- *
2040
- * Navigate the TUI to display the specified session.
2041
- */
2042
- selectSession(parameters, options) {
2043
- const params = buildClientParams([parameters], [
2044
- {
2045
- args: [
2046
- { in: "query", key: "directory" },
2047
- { in: "body", key: "sessionID" },
2048
- ],
2049
- },
2050
- ]);
2051
- return (options?.client ?? this.client).post({
2052
- url: "/tui/select-session",
2053
- ...options,
2054
- ...params,
2055
- headers: {
2056
- "Content-Type": "application/json",
2057
- ...options?.headers,
2058
- ...params.headers,
2059
- },
2060
- });
2061
- }
2062
- _control;
2063
- get control() {
2064
- return (this._control ??= new Control({ client: this.client }));
2065
- }
2066
- }
2067
2338
  export class Instance extends HeyApiClient {
2068
2339
  /**
2069
2340
  * Dispose instance
2070
2341
  *
2071
- * Clean up and dispose the current SynSci instance, releasing all resources.
2342
+ * Clean up and dispose the current OpenScience instance, releasing all resources.
2072
2343
  */
2073
2344
  dispose(parameters, options) {
2074
2345
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
@@ -2083,7 +2354,7 @@ export class Path extends HeyApiClient {
2083
2354
  /**
2084
2355
  * Get paths
2085
2356
  *
2086
- * Retrieve the current working directory and related path information for the SynSci instance.
2357
+ * Retrieve the current working directory and related path information for the OpenScience instance.
2087
2358
  */
2088
2359
  get(parameters, options) {
2089
2360
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
@@ -2113,7 +2384,7 @@ export class Command extends HeyApiClient {
2113
2384
  /**
2114
2385
  * List commands
2115
2386
  *
2116
- * Get a list of all available commands in the SynSci system.
2387
+ * Get a list of all available commands in the OpenScience system.
2117
2388
  */
2118
2389
  list(parameters, options) {
2119
2390
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
@@ -2204,7 +2475,7 @@ export class App extends HeyApiClient {
2204
2475
  /**
2205
2476
  * List agents
2206
2477
  *
2207
- * Get a list of all available AI agents in the SynSci system.
2478
+ * Get a list of all available AI agents in the OpenScience system.
2208
2479
  */
2209
2480
  agents(parameters, options) {
2210
2481
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
@@ -2217,7 +2488,7 @@ export class App extends HeyApiClient {
2217
2488
  /**
2218
2489
  * List skills
2219
2490
  *
2220
- * Get a list of all available skills in the SynSci system.
2491
+ * Get a list of all available skills in the OpenScience system.
2221
2492
  */
2222
2493
  skills(parameters, options) {
2223
2494
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
@@ -2277,11 +2548,11 @@ export class Event extends HeyApiClient {
2277
2548
  });
2278
2549
  }
2279
2550
  }
2280
- export class SynSciClient extends HeyApiClient {
2551
+ export class OpenScienceClient extends HeyApiClient {
2281
2552
  static __registry = new HeyApiRegistry();
2282
2553
  constructor(args) {
2283
2554
  super(args);
2284
- SynSciClient.__registry.set(this, args?.key);
2555
+ OpenScienceClient.__registry.set(this, args?.key);
2285
2556
  }
2286
2557
  _global;
2287
2558
  get global() {
@@ -2291,6 +2562,10 @@ export class SynSciClient extends HeyApiClient {
2291
2562
  get account() {
2292
2563
  return (this._account ??= new Account({ client: this.client }));
2293
2564
  }
2565
+ _settings;
2566
+ get settings() {
2567
+ return (this._settings ??= new Settings({ client: this.client }));
2568
+ }
2294
2569
  _auth;
2295
2570
  get auth() {
2296
2571
  return (this._auth ??= new Auth({ client: this.client }));
@@ -2337,7 +2612,7 @@ export class SynSciClient extends HeyApiClient {
2337
2612
  }
2338
2613
  _provider;
2339
2614
  get provider() {
2340
- return (this._provider ??= new Provider({ client: this.client }));
2615
+ return (this._provider ??= new Provider2({ client: this.client }));
2341
2616
  }
2342
2617
  _find;
2343
2618
  get find() {
@@ -2351,10 +2626,6 @@ export class SynSciClient extends HeyApiClient {
2351
2626
  get mcp() {
2352
2627
  return (this._mcp ??= new Mcp({ client: this.client }));
2353
2628
  }
2354
- _tui;
2355
- get tui() {
2356
- return (this._tui ??= new Tui({ client: this.client }));
2357
- }
2358
2629
  _instance;
2359
2630
  get instance() {
2360
2631
  return (this._instance ??= new Instance({ client: this.client }));