@symbioticsec/sdk 0.0.1 → 0.0.8

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 (73) hide show
  1. package/package.json +30 -9
  2. package/dist/client.d.ts +0 -7
  3. package/dist/client.js +0 -25
  4. package/dist/gen/client/client.gen.d.ts +0 -2
  5. package/dist/gen/client/client.gen.js +0 -165
  6. package/dist/gen/client/index.d.ts +0 -7
  7. package/dist/gen/client/index.js +0 -5
  8. package/dist/gen/client/types.gen.d.ts +0 -127
  9. package/dist/gen/client/types.gen.js +0 -2
  10. package/dist/gen/client/utils.gen.d.ts +0 -38
  11. package/dist/gen/client/utils.gen.js +0 -226
  12. package/dist/gen/client.gen.d.ts +0 -12
  13. package/dist/gen/client.gen.js +0 -5
  14. package/dist/gen/core/auth.gen.d.ts +0 -18
  15. package/dist/gen/core/auth.gen.js +0 -14
  16. package/dist/gen/core/bodySerializer.gen.d.ts +0 -17
  17. package/dist/gen/core/bodySerializer.gen.js +0 -57
  18. package/dist/gen/core/params.gen.d.ts +0 -33
  19. package/dist/gen/core/params.gen.js +0 -89
  20. package/dist/gen/core/pathSerializer.gen.d.ts +0 -33
  21. package/dist/gen/core/pathSerializer.gen.js +0 -106
  22. package/dist/gen/core/queryKeySerializer.gen.d.ts +0 -18
  23. package/dist/gen/core/queryKeySerializer.gen.js +0 -93
  24. package/dist/gen/core/serverSentEvents.gen.d.ts +0 -59
  25. package/dist/gen/core/serverSentEvents.gen.js +0 -117
  26. package/dist/gen/core/types.gen.d.ts +0 -78
  27. package/dist/gen/core/types.gen.js +0 -2
  28. package/dist/gen/core/utils.gen.d.ts +0 -14
  29. package/dist/gen/core/utils.gen.js +0 -69
  30. package/dist/gen/sdk.gen.d.ts +0 -403
  31. package/dist/gen/sdk.gen.js +0 -881
  32. package/dist/gen/types.gen.d.ts +0 -3387
  33. package/dist/gen/types.gen.js +0 -2
  34. package/dist/index.d.ts +0 -10
  35. package/dist/index.js +0 -16
  36. package/dist/server.d.ts +0 -23
  37. package/dist/server.js +0 -94
  38. package/dist/v2/client.d.ts +0 -8
  39. package/dist/v2/client.js +0 -33
  40. package/dist/v2/gen/client/client.gen.d.ts +0 -2
  41. package/dist/v2/gen/client/client.gen.js +0 -232
  42. package/dist/v2/gen/client/index.d.ts +0 -8
  43. package/dist/v2/gen/client/index.js +0 -6
  44. package/dist/v2/gen/client/types.gen.d.ts +0 -117
  45. package/dist/v2/gen/client/types.gen.js +0 -2
  46. package/dist/v2/gen/client/utils.gen.d.ts +0 -33
  47. package/dist/v2/gen/client/utils.gen.js +0 -226
  48. package/dist/v2/gen/client.gen.d.ts +0 -12
  49. package/dist/v2/gen/client.gen.js +0 -3
  50. package/dist/v2/gen/core/auth.gen.d.ts +0 -18
  51. package/dist/v2/gen/core/auth.gen.js +0 -14
  52. package/dist/v2/gen/core/bodySerializer.gen.d.ts +0 -25
  53. package/dist/v2/gen/core/bodySerializer.gen.js +0 -57
  54. package/dist/v2/gen/core/params.gen.d.ts +0 -43
  55. package/dist/v2/gen/core/params.gen.js +0 -102
  56. package/dist/v2/gen/core/pathSerializer.gen.d.ts +0 -33
  57. package/dist/v2/gen/core/pathSerializer.gen.js +0 -106
  58. package/dist/v2/gen/core/queryKeySerializer.gen.d.ts +0 -18
  59. package/dist/v2/gen/core/queryKeySerializer.gen.js +0 -93
  60. package/dist/v2/gen/core/serverSentEvents.gen.d.ts +0 -71
  61. package/dist/v2/gen/core/serverSentEvents.gen.js +0 -133
  62. package/dist/v2/gen/core/types.gen.d.ts +0 -78
  63. package/dist/v2/gen/core/types.gen.js +0 -2
  64. package/dist/v2/gen/core/utils.gen.d.ts +0 -19
  65. package/dist/v2/gen/core/utils.gen.js +0 -87
  66. package/dist/v2/gen/sdk.gen.d.ts +0 -1307
  67. package/dist/v2/gen/sdk.gen.js +0 -2644
  68. package/dist/v2/gen/types.gen.d.ts +0 -4340
  69. package/dist/v2/gen/types.gen.js +0 -2
  70. package/dist/v2/index.d.ts +0 -10
  71. package/dist/v2/index.js +0 -16
  72. package/dist/v2/server.d.ts +0 -23
  73. package/dist/v2/server.js +0 -94
@@ -1,2644 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- import { client } from "./client.gen.js";
3
- import { buildClientParams } from "./client/index.js";
4
- class HeyApiClient {
5
- client;
6
- constructor(args) {
7
- this.client = args?.client ?? client;
8
- }
9
- }
10
- class HeyApiRegistry {
11
- defaultKey = "default";
12
- instances = new Map();
13
- get(key) {
14
- const instance = this.instances.get(key ?? this.defaultKey);
15
- if (!instance) {
16
- throw new Error(`No SDK client found. Create one with "new SymbioticClient()" to fix this error.`);
17
- }
18
- return instance;
19
- }
20
- set(value, key) {
21
- this.instances.set(key ?? this.defaultKey, value);
22
- }
23
- }
24
- export class Config extends HeyApiClient {
25
- /**
26
- * Get global configuration
27
- *
28
- * Retrieve the current global SymbioticCode configuration settings and preferences.
29
- */
30
- get(options) {
31
- return (options?.client ?? this.client).get({
32
- url: "/global/config",
33
- ...options,
34
- });
35
- }
36
- /**
37
- * Update global configuration
38
- *
39
- * Update global SymbioticCode configuration settings and preferences.
40
- */
41
- update(parameters, options) {
42
- const params = buildClientParams([parameters], [{ args: [{ key: "config", map: "body" }] }]);
43
- return (options?.client ?? this.client).patch({
44
- url: "/global/config",
45
- ...options,
46
- ...params,
47
- headers: {
48
- "Content-Type": "application/json",
49
- ...options?.headers,
50
- ...params.headers,
51
- },
52
- });
53
- }
54
- }
55
- export class Global extends HeyApiClient {
56
- /**
57
- * Get health
58
- *
59
- * Get health information about the SymbioticCode server.
60
- */
61
- health(options) {
62
- return (options?.client ?? this.client).get({
63
- url: "/global/health",
64
- ...options,
65
- });
66
- }
67
- /**
68
- * Get global events
69
- *
70
- * Subscribe to global events from the SymbioticCode system using server-sent events.
71
- */
72
- event(options) {
73
- return (options?.client ?? this.client).sse.get({
74
- url: "/global/event",
75
- ...options,
76
- });
77
- }
78
- /**
79
- * Dispose instance
80
- *
81
- * Clean up and dispose all SymbioticCode instances, releasing all resources.
82
- */
83
- dispose(options) {
84
- return (options?.client ?? this.client).post({
85
- url: "/global/dispose",
86
- ...options,
87
- });
88
- }
89
- _config;
90
- get config() {
91
- return (this._config ??= new Config({ client: this.client }));
92
- }
93
- }
94
- export class Auth extends HeyApiClient {
95
- /**
96
- * Remove auth credentials
97
- *
98
- * Remove authentication credentials
99
- */
100
- remove(parameters, options) {
101
- const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerID" }] }]);
102
- return (options?.client ?? this.client).delete({
103
- url: "/auth/{providerID}",
104
- ...options,
105
- ...params,
106
- });
107
- }
108
- /**
109
- * Set auth credentials
110
- *
111
- * Set authentication credentials
112
- */
113
- set(parameters, options) {
114
- const params = buildClientParams([parameters], [
115
- {
116
- args: [
117
- { in: "path", key: "providerID" },
118
- { key: "auth", map: "body" },
119
- ],
120
- },
121
- ]);
122
- return (options?.client ?? this.client).put({
123
- url: "/auth/{providerID}",
124
- ...options,
125
- ...params,
126
- headers: {
127
- "Content-Type": "application/json",
128
- ...options?.headers,
129
- ...params.headers,
130
- },
131
- });
132
- }
133
- }
134
- export class Project extends HeyApiClient {
135
- /**
136
- * List all projects
137
- *
138
- * Get a list of projects that have been opened with SymbioticCode.
139
- */
140
- list(parameters, options) {
141
- const params = buildClientParams([parameters], [
142
- {
143
- args: [
144
- { in: "query", key: "directory" },
145
- { in: "query", key: "workspace" },
146
- ],
147
- },
148
- ]);
149
- return (options?.client ?? this.client).get({
150
- url: "/project",
151
- ...options,
152
- ...params,
153
- });
154
- }
155
- /**
156
- * Get current project
157
- *
158
- * Retrieve the currently active project that SymbioticCode is working with.
159
- */
160
- current(parameters, options) {
161
- const params = buildClientParams([parameters], [
162
- {
163
- args: [
164
- { in: "query", key: "directory" },
165
- { in: "query", key: "workspace" },
166
- ],
167
- },
168
- ]);
169
- return (options?.client ?? this.client).get({
170
- url: "/project/current",
171
- ...options,
172
- ...params,
173
- });
174
- }
175
- /**
176
- * Initialize git repository
177
- *
178
- * Create a git repository for the current project and return the refreshed project info.
179
- */
180
- initGit(parameters, options) {
181
- const params = buildClientParams([parameters], [
182
- {
183
- args: [
184
- { in: "query", key: "directory" },
185
- { in: "query", key: "workspace" },
186
- ],
187
- },
188
- ]);
189
- return (options?.client ?? this.client).post({
190
- url: "/project/git/init",
191
- ...options,
192
- ...params,
193
- });
194
- }
195
- /**
196
- * Update project
197
- *
198
- * Update project properties such as name, icon, and commands.
199
- */
200
- update(parameters, options) {
201
- const params = buildClientParams([parameters], [
202
- {
203
- args: [
204
- { in: "path", key: "projectID" },
205
- { in: "query", key: "directory" },
206
- { in: "query", key: "workspace" },
207
- { in: "body", key: "name" },
208
- { in: "body", key: "icon" },
209
- { in: "body", key: "commands" },
210
- ],
211
- },
212
- ]);
213
- return (options?.client ?? this.client).patch({
214
- url: "/project/{projectID}",
215
- ...options,
216
- ...params,
217
- headers: {
218
- "Content-Type": "application/json",
219
- ...options?.headers,
220
- ...params.headers,
221
- },
222
- });
223
- }
224
- }
225
- export class Pty extends HeyApiClient {
226
- /**
227
- * List PTY sessions
228
- *
229
- * Get a list of all active pseudo-terminal (PTY) sessions managed by SymbioticCode.
230
- */
231
- list(parameters, options) {
232
- const params = buildClientParams([parameters], [
233
- {
234
- args: [
235
- { in: "query", key: "directory" },
236
- { in: "query", key: "workspace" },
237
- ],
238
- },
239
- ]);
240
- return (options?.client ?? this.client).get({
241
- url: "/pty",
242
- ...options,
243
- ...params,
244
- });
245
- }
246
- /**
247
- * Create PTY session
248
- *
249
- * Create a new pseudo-terminal (PTY) session for running shell commands and processes in SymbioticCode.
250
- */
251
- create(parameters, options) {
252
- const params = buildClientParams([parameters], [
253
- {
254
- args: [
255
- { in: "query", key: "directory" },
256
- { in: "query", key: "workspace" },
257
- { in: "body", key: "command" },
258
- { in: "body", key: "args" },
259
- { in: "body", key: "cwd" },
260
- { in: "body", key: "title" },
261
- { in: "body", key: "env" },
262
- ],
263
- },
264
- ]);
265
- return (options?.client ?? this.client).post({
266
- url: "/pty",
267
- ...options,
268
- ...params,
269
- headers: {
270
- "Content-Type": "application/json",
271
- ...options?.headers,
272
- ...params.headers,
273
- },
274
- });
275
- }
276
- /**
277
- * Remove PTY session
278
- *
279
- * Remove and terminate a specific pseudo-terminal (PTY) session.
280
- */
281
- remove(parameters, options) {
282
- const params = buildClientParams([parameters], [
283
- {
284
- args: [
285
- { in: "path", key: "ptyID" },
286
- { in: "query", key: "directory" },
287
- { in: "query", key: "workspace" },
288
- ],
289
- },
290
- ]);
291
- return (options?.client ?? this.client).delete({
292
- url: "/pty/{ptyID}",
293
- ...options,
294
- ...params,
295
- });
296
- }
297
- /**
298
- * Get PTY session
299
- *
300
- * Retrieve detailed information about a specific pseudo-terminal (PTY) session.
301
- */
302
- get(parameters, options) {
303
- const params = buildClientParams([parameters], [
304
- {
305
- args: [
306
- { in: "path", key: "ptyID" },
307
- { in: "query", key: "directory" },
308
- { in: "query", key: "workspace" },
309
- ],
310
- },
311
- ]);
312
- return (options?.client ?? this.client).get({
313
- url: "/pty/{ptyID}",
314
- ...options,
315
- ...params,
316
- });
317
- }
318
- /**
319
- * Update PTY session
320
- *
321
- * Update properties of an existing pseudo-terminal (PTY) session.
322
- */
323
- update(parameters, options) {
324
- const params = buildClientParams([parameters], [
325
- {
326
- args: [
327
- { in: "path", key: "ptyID" },
328
- { in: "query", key: "directory" },
329
- { in: "query", key: "workspace" },
330
- { in: "body", key: "title" },
331
- { in: "body", key: "size" },
332
- ],
333
- },
334
- ]);
335
- return (options?.client ?? this.client).put({
336
- url: "/pty/{ptyID}",
337
- ...options,
338
- ...params,
339
- headers: {
340
- "Content-Type": "application/json",
341
- ...options?.headers,
342
- ...params.headers,
343
- },
344
- });
345
- }
346
- /**
347
- * Connect to PTY session
348
- *
349
- * Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.
350
- */
351
- connect(parameters, options) {
352
- const params = buildClientParams([parameters], [
353
- {
354
- args: [
355
- { in: "path", key: "ptyID" },
356
- { in: "query", key: "directory" },
357
- { in: "query", key: "workspace" },
358
- ],
359
- },
360
- ]);
361
- return (options?.client ?? this.client).get({
362
- url: "/pty/{ptyID}/connect",
363
- ...options,
364
- ...params,
365
- });
366
- }
367
- }
368
- export class Config2 extends HeyApiClient {
369
- /**
370
- * Get configuration
371
- *
372
- * Retrieve the current SymbioticCode configuration settings and preferences.
373
- */
374
- get(parameters, options) {
375
- const params = buildClientParams([parameters], [
376
- {
377
- args: [
378
- { in: "query", key: "directory" },
379
- { in: "query", key: "workspace" },
380
- ],
381
- },
382
- ]);
383
- return (options?.client ?? this.client).get({
384
- url: "/config",
385
- ...options,
386
- ...params,
387
- });
388
- }
389
- /**
390
- * Update configuration
391
- *
392
- * Update SymbioticCode configuration settings and preferences.
393
- */
394
- update(parameters, options) {
395
- const params = buildClientParams([parameters], [
396
- {
397
- args: [
398
- { in: "query", key: "directory" },
399
- { in: "query", key: "workspace" },
400
- { key: "config", map: "body" },
401
- ],
402
- },
403
- ]);
404
- return (options?.client ?? this.client).patch({
405
- url: "/config",
406
- ...options,
407
- ...params,
408
- headers: {
409
- "Content-Type": "application/json",
410
- ...options?.headers,
411
- ...params.headers,
412
- },
413
- });
414
- }
415
- /**
416
- * List config providers
417
- *
418
- * Get a list of all configured AI providers and their default models in the SymbioticCode system.
419
- */
420
- providers(parameters, options) {
421
- const params = buildClientParams([parameters], [
422
- {
423
- args: [
424
- { in: "query", key: "directory" },
425
- { in: "query", key: "workspace" },
426
- ],
427
- },
428
- ]);
429
- return (options?.client ?? this.client).get({
430
- url: "/config/providers",
431
- ...options,
432
- ...params,
433
- });
434
- }
435
- }
436
- export class Tool extends HeyApiClient {
437
- /**
438
- * List tool IDs
439
- *
440
- * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
441
- */
442
- ids(parameters, options) {
443
- const params = buildClientParams([parameters], [
444
- {
445
- args: [
446
- { in: "query", key: "directory" },
447
- { in: "query", key: "workspace" },
448
- ],
449
- },
450
- ]);
451
- return (options?.client ?? this.client).get({
452
- url: "/experimental/tool/ids",
453
- ...options,
454
- ...params,
455
- });
456
- }
457
- /**
458
- * List tools
459
- *
460
- * Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
461
- */
462
- list(parameters, options) {
463
- const params = buildClientParams([parameters], [
464
- {
465
- args: [
466
- { in: "query", key: "directory" },
467
- { in: "query", key: "workspace" },
468
- { in: "query", key: "provider" },
469
- { in: "query", key: "model" },
470
- ],
471
- },
472
- ]);
473
- return (options?.client ?? this.client).get({
474
- url: "/experimental/tool",
475
- ...options,
476
- ...params,
477
- });
478
- }
479
- }
480
- export class Workspace extends HeyApiClient {
481
- /**
482
- * List workspaces
483
- *
484
- * List all workspaces.
485
- */
486
- list(parameters, options) {
487
- const params = buildClientParams([parameters], [
488
- {
489
- args: [
490
- { in: "query", key: "directory" },
491
- { in: "query", key: "workspace" },
492
- ],
493
- },
494
- ]);
495
- return (options?.client ?? this.client).get({
496
- url: "/experimental/workspace",
497
- ...options,
498
- ...params,
499
- });
500
- }
501
- /**
502
- * Create workspace
503
- *
504
- * Create a workspace for the current project.
505
- */
506
- create(parameters, options) {
507
- const params = buildClientParams([parameters], [
508
- {
509
- args: [
510
- { in: "query", key: "directory" },
511
- { in: "query", key: "workspace" },
512
- { in: "body", key: "id" },
513
- { in: "body", key: "type" },
514
- { in: "body", key: "branch" },
515
- { in: "body", key: "extra" },
516
- ],
517
- },
518
- ]);
519
- return (options?.client ?? this.client).post({
520
- url: "/experimental/workspace",
521
- ...options,
522
- ...params,
523
- headers: {
524
- "Content-Type": "application/json",
525
- ...options?.headers,
526
- ...params.headers,
527
- },
528
- });
529
- }
530
- /**
531
- * Remove workspace
532
- *
533
- * Remove an existing workspace.
534
- */
535
- remove(parameters, options) {
536
- const params = buildClientParams([parameters], [
537
- {
538
- args: [
539
- { in: "path", key: "id" },
540
- { in: "query", key: "directory" },
541
- { in: "query", key: "workspace" },
542
- ],
543
- },
544
- ]);
545
- return (options?.client ?? this.client).delete({
546
- url: "/experimental/workspace/{id}",
547
- ...options,
548
- ...params,
549
- });
550
- }
551
- }
552
- export class Session extends HeyApiClient {
553
- /**
554
- * List sessions
555
- *
556
- * Get a list of all SymbioticCode sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
557
- */
558
- list(parameters, options) {
559
- const params = buildClientParams([parameters], [
560
- {
561
- args: [
562
- { in: "query", key: "directory" },
563
- { in: "query", key: "workspace" },
564
- { in: "query", key: "roots" },
565
- { in: "query", key: "start" },
566
- { in: "query", key: "cursor" },
567
- { in: "query", key: "search" },
568
- { in: "query", key: "limit" },
569
- { in: "query", key: "archived" },
570
- ],
571
- },
572
- ]);
573
- return (options?.client ?? this.client).get({
574
- url: "/experimental/session",
575
- ...options,
576
- ...params,
577
- });
578
- }
579
- }
580
- export class Resource extends HeyApiClient {
581
- /**
582
- * Get MCP resources
583
- *
584
- * Get all available MCP resources from connected servers. Optionally filter by name.
585
- */
586
- list(parameters, options) {
587
- const params = buildClientParams([parameters], [
588
- {
589
- args: [
590
- { in: "query", key: "directory" },
591
- { in: "query", key: "workspace" },
592
- ],
593
- },
594
- ]);
595
- return (options?.client ?? this.client).get({
596
- url: "/experimental/resource",
597
- ...options,
598
- ...params,
599
- });
600
- }
601
- }
602
- export class Experimental extends HeyApiClient {
603
- _workspace;
604
- get workspace() {
605
- return (this._workspace ??= new Workspace({ client: this.client }));
606
- }
607
- _session;
608
- get session() {
609
- return (this._session ??= new Session({ client: this.client }));
610
- }
611
- _resource;
612
- get resource() {
613
- return (this._resource ??= new Resource({ client: this.client }));
614
- }
615
- }
616
- export class Worktree extends HeyApiClient {
617
- /**
618
- * Remove worktree
619
- *
620
- * Remove a git worktree and delete its branch.
621
- */
622
- remove(parameters, options) {
623
- const params = buildClientParams([parameters], [
624
- {
625
- args: [
626
- { in: "query", key: "directory" },
627
- { in: "query", key: "workspace" },
628
- { key: "worktreeRemoveInput", map: "body" },
629
- ],
630
- },
631
- ]);
632
- return (options?.client ?? this.client).delete({
633
- url: "/experimental/worktree",
634
- ...options,
635
- ...params,
636
- headers: {
637
- "Content-Type": "application/json",
638
- ...options?.headers,
639
- ...params.headers,
640
- },
641
- });
642
- }
643
- /**
644
- * List worktrees
645
- *
646
- * List all sandbox worktrees for the current project.
647
- */
648
- list(parameters, options) {
649
- const params = buildClientParams([parameters], [
650
- {
651
- args: [
652
- { in: "query", key: "directory" },
653
- { in: "query", key: "workspace" },
654
- ],
655
- },
656
- ]);
657
- return (options?.client ?? this.client).get({
658
- url: "/experimental/worktree",
659
- ...options,
660
- ...params,
661
- });
662
- }
663
- /**
664
- * Create worktree
665
- *
666
- * Create a new git worktree for the current project and run any configured startup scripts.
667
- */
668
- create(parameters, options) {
669
- const params = buildClientParams([parameters], [
670
- {
671
- args: [
672
- { in: "query", key: "directory" },
673
- { in: "query", key: "workspace" },
674
- { key: "worktreeCreateInput", map: "body" },
675
- ],
676
- },
677
- ]);
678
- return (options?.client ?? this.client).post({
679
- url: "/experimental/worktree",
680
- ...options,
681
- ...params,
682
- headers: {
683
- "Content-Type": "application/json",
684
- ...options?.headers,
685
- ...params.headers,
686
- },
687
- });
688
- }
689
- /**
690
- * Reset worktree
691
- *
692
- * Reset a worktree branch to the primary default branch.
693
- */
694
- reset(parameters, options) {
695
- const params = buildClientParams([parameters], [
696
- {
697
- args: [
698
- { in: "query", key: "directory" },
699
- { in: "query", key: "workspace" },
700
- { key: "worktreeResetInput", map: "body" },
701
- ],
702
- },
703
- ]);
704
- return (options?.client ?? this.client).post({
705
- url: "/experimental/worktree/reset",
706
- ...options,
707
- ...params,
708
- headers: {
709
- "Content-Type": "application/json",
710
- ...options?.headers,
711
- ...params.headers,
712
- },
713
- });
714
- }
715
- }
716
- export class Session2 extends HeyApiClient {
717
- /**
718
- * List sessions
719
- *
720
- * Get a list of all SymbioticCode sessions, sorted by most recently updated.
721
- */
722
- list(parameters, options) {
723
- const params = buildClientParams([parameters], [
724
- {
725
- args: [
726
- { in: "query", key: "directory" },
727
- { in: "query", key: "workspace" },
728
- { in: "query", key: "roots" },
729
- { in: "query", key: "start" },
730
- { in: "query", key: "search" },
731
- { in: "query", key: "limit" },
732
- ],
733
- },
734
- ]);
735
- return (options?.client ?? this.client).get({
736
- url: "/session",
737
- ...options,
738
- ...params,
739
- });
740
- }
741
- /**
742
- * Create session
743
- *
744
- * Create a new SymbioticCode session for interacting with AI assistants and managing conversations.
745
- */
746
- create(parameters, options) {
747
- const params = buildClientParams([parameters], [
748
- {
749
- args: [
750
- { in: "query", key: "directory" },
751
- { in: "query", key: "workspace" },
752
- { in: "body", key: "parentID" },
753
- { in: "body", key: "title" },
754
- { in: "body", key: "permission" },
755
- { in: "body", key: "workspaceID" },
756
- ],
757
- },
758
- ]);
759
- return (options?.client ?? this.client).post({
760
- url: "/session",
761
- ...options,
762
- ...params,
763
- headers: {
764
- "Content-Type": "application/json",
765
- ...options?.headers,
766
- ...params.headers,
767
- },
768
- });
769
- }
770
- /**
771
- * Get session status
772
- *
773
- * Retrieve the current status of all sessions, including active, idle, and completed states.
774
- */
775
- status(parameters, options) {
776
- const params = buildClientParams([parameters], [
777
- {
778
- args: [
779
- { in: "query", key: "directory" },
780
- { in: "query", key: "workspace" },
781
- ],
782
- },
783
- ]);
784
- return (options?.client ?? this.client).get({
785
- url: "/session/status",
786
- ...options,
787
- ...params,
788
- });
789
- }
790
- /**
791
- * Delete session
792
- *
793
- * Delete a SymbioticCode session and permanently remove all associated data, including messages and history.
794
- */
795
- delete(parameters, options) {
796
- const params = buildClientParams([parameters], [
797
- {
798
- args: [
799
- { in: "path", key: "sessionID" },
800
- { in: "query", key: "directory" },
801
- { in: "query", key: "workspace" },
802
- ],
803
- },
804
- ]);
805
- return (options?.client ?? this.client).delete({
806
- url: "/session/{sessionID}",
807
- ...options,
808
- ...params,
809
- });
810
- }
811
- /**
812
- * Get session
813
- *
814
- * Retrieve detailed information about a specific SymbioticCode session.
815
- */
816
- get(parameters, options) {
817
- const params = buildClientParams([parameters], [
818
- {
819
- args: [
820
- { in: "path", key: "sessionID" },
821
- { in: "query", key: "directory" },
822
- { in: "query", key: "workspace" },
823
- ],
824
- },
825
- ]);
826
- return (options?.client ?? this.client).get({
827
- url: "/session/{sessionID}",
828
- ...options,
829
- ...params,
830
- });
831
- }
832
- /**
833
- * Update session
834
- *
835
- * Update properties of an existing SymbioticCode session, such as title or other metadata.
836
- */
837
- update(parameters, options) {
838
- const params = buildClientParams([parameters], [
839
- {
840
- args: [
841
- { in: "path", key: "sessionID" },
842
- { in: "query", key: "directory" },
843
- { in: "query", key: "workspace" },
844
- { in: "body", key: "title" },
845
- { in: "body", key: "time" },
846
- ],
847
- },
848
- ]);
849
- return (options?.client ?? this.client).patch({
850
- url: "/session/{sessionID}",
851
- ...options,
852
- ...params,
853
- headers: {
854
- "Content-Type": "application/json",
855
- ...options?.headers,
856
- ...params.headers,
857
- },
858
- });
859
- }
860
- /**
861
- * Get session children
862
- *
863
- * Retrieve all child sessions that were forked from the specified parent session in SymbioticCode.
864
- */
865
- children(parameters, options) {
866
- const params = buildClientParams([parameters], [
867
- {
868
- args: [
869
- { in: "path", key: "sessionID" },
870
- { in: "query", key: "directory" },
871
- { in: "query", key: "workspace" },
872
- ],
873
- },
874
- ]);
875
- return (options?.client ?? this.client).get({
876
- url: "/session/{sessionID}/children",
877
- ...options,
878
- ...params,
879
- });
880
- }
881
- /**
882
- * Get session todos
883
- *
884
- * Retrieve the todo list associated with a specific SymbioticCode session, showing tasks and action items.
885
- */
886
- todo(parameters, options) {
887
- const params = buildClientParams([parameters], [
888
- {
889
- args: [
890
- { in: "path", key: "sessionID" },
891
- { in: "query", key: "directory" },
892
- { in: "query", key: "workspace" },
893
- ],
894
- },
895
- ]);
896
- return (options?.client ?? this.client).get({
897
- url: "/session/{sessionID}/todo",
898
- ...options,
899
- ...params,
900
- });
901
- }
902
- /**
903
- * Initialize session
904
- *
905
- * Analyze the current application and create an AGENTS.md file with project-specific agent configurations.
906
- */
907
- init(parameters, options) {
908
- const params = buildClientParams([parameters], [
909
- {
910
- args: [
911
- { in: "path", key: "sessionID" },
912
- { in: "query", key: "directory" },
913
- { in: "query", key: "workspace" },
914
- { in: "body", key: "modelID" },
915
- { in: "body", key: "providerID" },
916
- { in: "body", key: "messageID" },
917
- ],
918
- },
919
- ]);
920
- return (options?.client ?? this.client).post({
921
- url: "/session/{sessionID}/init",
922
- ...options,
923
- ...params,
924
- headers: {
925
- "Content-Type": "application/json",
926
- ...options?.headers,
927
- ...params.headers,
928
- },
929
- });
930
- }
931
- /**
932
- * Fork session
933
- *
934
- * Create a new session by forking an existing session at a specific message point.
935
- */
936
- fork(parameters, options) {
937
- const params = buildClientParams([parameters], [
938
- {
939
- args: [
940
- { in: "path", key: "sessionID" },
941
- { in: "query", key: "directory" },
942
- { in: "query", key: "workspace" },
943
- { in: "body", key: "messageID" },
944
- ],
945
- },
946
- ]);
947
- return (options?.client ?? this.client).post({
948
- url: "/session/{sessionID}/fork",
949
- ...options,
950
- ...params,
951
- headers: {
952
- "Content-Type": "application/json",
953
- ...options?.headers,
954
- ...params.headers,
955
- },
956
- });
957
- }
958
- /**
959
- * Abort session
960
- *
961
- * Abort an active session and stop any ongoing AI processing or command execution.
962
- */
963
- abort(parameters, options) {
964
- const params = buildClientParams([parameters], [
965
- {
966
- args: [
967
- { in: "path", key: "sessionID" },
968
- { in: "query", key: "directory" },
969
- { in: "query", key: "workspace" },
970
- ],
971
- },
972
- ]);
973
- return (options?.client ?? this.client).post({
974
- url: "/session/{sessionID}/abort",
975
- ...options,
976
- ...params,
977
- });
978
- }
979
- /**
980
- * Unshare session
981
- *
982
- * Remove the shareable link for a session, making it private again.
983
- */
984
- unshare(parameters, options) {
985
- const params = buildClientParams([parameters], [
986
- {
987
- args: [
988
- { in: "path", key: "sessionID" },
989
- { in: "query", key: "directory" },
990
- { in: "query", key: "workspace" },
991
- ],
992
- },
993
- ]);
994
- return (options?.client ?? this.client).delete({
995
- url: "/session/{sessionID}/share",
996
- ...options,
997
- ...params,
998
- });
999
- }
1000
- /**
1001
- * Share session
1002
- *
1003
- * Create a shareable link for a session, allowing others to view the conversation.
1004
- */
1005
- share(parameters, options) {
1006
- const params = buildClientParams([parameters], [
1007
- {
1008
- args: [
1009
- { in: "path", key: "sessionID" },
1010
- { in: "query", key: "directory" },
1011
- { in: "query", key: "workspace" },
1012
- ],
1013
- },
1014
- ]);
1015
- return (options?.client ?? this.client).post({
1016
- url: "/session/{sessionID}/share",
1017
- ...options,
1018
- ...params,
1019
- });
1020
- }
1021
- /**
1022
- * Get message diff
1023
- *
1024
- * Get the file changes (diff) that resulted from a specific user message in the session.
1025
- */
1026
- diff(parameters, options) {
1027
- const params = buildClientParams([parameters], [
1028
- {
1029
- args: [
1030
- { in: "path", key: "sessionID" },
1031
- { in: "query", key: "directory" },
1032
- { in: "query", key: "workspace" },
1033
- { in: "query", key: "messageID" },
1034
- ],
1035
- },
1036
- ]);
1037
- return (options?.client ?? this.client).get({
1038
- url: "/session/{sessionID}/diff",
1039
- ...options,
1040
- ...params,
1041
- });
1042
- }
1043
- /**
1044
- * Summarize session
1045
- *
1046
- * Generate a concise summary of the session using AI compaction to preserve key information.
1047
- */
1048
- summarize(parameters, options) {
1049
- const params = buildClientParams([parameters], [
1050
- {
1051
- args: [
1052
- { in: "path", key: "sessionID" },
1053
- { in: "query", key: "directory" },
1054
- { in: "query", key: "workspace" },
1055
- { in: "body", key: "providerID" },
1056
- { in: "body", key: "modelID" },
1057
- { in: "body", key: "auto" },
1058
- ],
1059
- },
1060
- ]);
1061
- return (options?.client ?? this.client).post({
1062
- url: "/session/{sessionID}/summarize",
1063
- ...options,
1064
- ...params,
1065
- headers: {
1066
- "Content-Type": "application/json",
1067
- ...options?.headers,
1068
- ...params.headers,
1069
- },
1070
- });
1071
- }
1072
- /**
1073
- * Get session messages
1074
- *
1075
- * Retrieve all messages in a session, including user prompts and AI responses.
1076
- */
1077
- messages(parameters, options) {
1078
- const params = buildClientParams([parameters], [
1079
- {
1080
- args: [
1081
- { in: "path", key: "sessionID" },
1082
- { in: "query", key: "directory" },
1083
- { in: "query", key: "workspace" },
1084
- { in: "query", key: "limit" },
1085
- { in: "query", key: "before" },
1086
- ],
1087
- },
1088
- ]);
1089
- return (options?.client ?? this.client).get({
1090
- url: "/session/{sessionID}/message",
1091
- ...options,
1092
- ...params,
1093
- });
1094
- }
1095
- /**
1096
- * Send message
1097
- *
1098
- * Create and send a new message to a session, streaming the AI response.
1099
- */
1100
- prompt(parameters, options) {
1101
- const params = buildClientParams([parameters], [
1102
- {
1103
- args: [
1104
- { in: "path", key: "sessionID" },
1105
- { in: "query", key: "directory" },
1106
- { in: "query", key: "workspace" },
1107
- { in: "body", key: "messageID" },
1108
- { in: "body", key: "model" },
1109
- { in: "body", key: "agent" },
1110
- { in: "body", key: "noReply" },
1111
- { in: "body", key: "tools" },
1112
- { in: "body", key: "format" },
1113
- { in: "body", key: "system" },
1114
- { in: "body", key: "variant" },
1115
- { in: "body", key: "parts" },
1116
- ],
1117
- },
1118
- ]);
1119
- return (options?.client ?? this.client).post({
1120
- url: "/session/{sessionID}/message",
1121
- ...options,
1122
- ...params,
1123
- headers: {
1124
- "Content-Type": "application/json",
1125
- ...options?.headers,
1126
- ...params.headers,
1127
- },
1128
- });
1129
- }
1130
- /**
1131
- * Delete message
1132
- *
1133
- * Permanently delete a specific message (and all of its parts) from a session. This does not revert any file changes that may have been made while processing the message.
1134
- */
1135
- deleteMessage(parameters, options) {
1136
- const params = buildClientParams([parameters], [
1137
- {
1138
- args: [
1139
- { in: "path", key: "sessionID" },
1140
- { in: "path", key: "messageID" },
1141
- { in: "query", key: "directory" },
1142
- { in: "query", key: "workspace" },
1143
- ],
1144
- },
1145
- ]);
1146
- return (options?.client ?? this.client).delete({
1147
- url: "/session/{sessionID}/message/{messageID}",
1148
- ...options,
1149
- ...params,
1150
- });
1151
- }
1152
- /**
1153
- * Get message
1154
- *
1155
- * Retrieve a specific message from a session by its message ID.
1156
- */
1157
- message(parameters, options) {
1158
- const params = buildClientParams([parameters], [
1159
- {
1160
- args: [
1161
- { in: "path", key: "sessionID" },
1162
- { in: "path", key: "messageID" },
1163
- { in: "query", key: "directory" },
1164
- { in: "query", key: "workspace" },
1165
- ],
1166
- },
1167
- ]);
1168
- return (options?.client ?? this.client).get({
1169
- url: "/session/{sessionID}/message/{messageID}",
1170
- ...options,
1171
- ...params,
1172
- });
1173
- }
1174
- /**
1175
- * Send async message
1176
- *
1177
- * Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
1178
- */
1179
- promptAsync(parameters, options) {
1180
- const params = buildClientParams([parameters], [
1181
- {
1182
- args: [
1183
- { in: "path", key: "sessionID" },
1184
- { in: "query", key: "directory" },
1185
- { in: "query", key: "workspace" },
1186
- { in: "body", key: "messageID" },
1187
- { in: "body", key: "model" },
1188
- { in: "body", key: "agent" },
1189
- { in: "body", key: "noReply" },
1190
- { in: "body", key: "tools" },
1191
- { in: "body", key: "format" },
1192
- { in: "body", key: "system" },
1193
- { in: "body", key: "variant" },
1194
- { in: "body", key: "parts" },
1195
- ],
1196
- },
1197
- ]);
1198
- return (options?.client ?? this.client).post({
1199
- url: "/session/{sessionID}/prompt_async",
1200
- ...options,
1201
- ...params,
1202
- headers: {
1203
- "Content-Type": "application/json",
1204
- ...options?.headers,
1205
- ...params.headers,
1206
- },
1207
- });
1208
- }
1209
- /**
1210
- * Send command
1211
- *
1212
- * Send a new command to a session for execution by the AI assistant.
1213
- */
1214
- command(parameters, options) {
1215
- const params = buildClientParams([parameters], [
1216
- {
1217
- args: [
1218
- { in: "path", key: "sessionID" },
1219
- { in: "query", key: "directory" },
1220
- { in: "query", key: "workspace" },
1221
- { in: "body", key: "messageID" },
1222
- { in: "body", key: "agent" },
1223
- { in: "body", key: "model" },
1224
- { in: "body", key: "arguments" },
1225
- { in: "body", key: "command" },
1226
- { in: "body", key: "variant" },
1227
- { in: "body", key: "parts" },
1228
- ],
1229
- },
1230
- ]);
1231
- return (options?.client ?? this.client).post({
1232
- url: "/session/{sessionID}/command",
1233
- ...options,
1234
- ...params,
1235
- headers: {
1236
- "Content-Type": "application/json",
1237
- ...options?.headers,
1238
- ...params.headers,
1239
- },
1240
- });
1241
- }
1242
- /**
1243
- * Run shell command
1244
- *
1245
- * Execute a shell command within the session context and return the AI's response.
1246
- */
1247
- shell(parameters, options) {
1248
- const params = buildClientParams([parameters], [
1249
- {
1250
- args: [
1251
- { in: "path", key: "sessionID" },
1252
- { in: "query", key: "directory" },
1253
- { in: "query", key: "workspace" },
1254
- { in: "body", key: "agent" },
1255
- { in: "body", key: "model" },
1256
- { in: "body", key: "command" },
1257
- ],
1258
- },
1259
- ]);
1260
- return (options?.client ?? this.client).post({
1261
- url: "/session/{sessionID}/shell",
1262
- ...options,
1263
- ...params,
1264
- headers: {
1265
- "Content-Type": "application/json",
1266
- ...options?.headers,
1267
- ...params.headers,
1268
- },
1269
- });
1270
- }
1271
- /**
1272
- * Revert message
1273
- *
1274
- * Revert a specific message in a session, undoing its effects and restoring the previous state.
1275
- */
1276
- revert(parameters, options) {
1277
- const params = buildClientParams([parameters], [
1278
- {
1279
- args: [
1280
- { in: "path", key: "sessionID" },
1281
- { in: "query", key: "directory" },
1282
- { in: "query", key: "workspace" },
1283
- { in: "body", key: "messageID" },
1284
- { in: "body", key: "partID" },
1285
- ],
1286
- },
1287
- ]);
1288
- return (options?.client ?? this.client).post({
1289
- url: "/session/{sessionID}/revert",
1290
- ...options,
1291
- ...params,
1292
- headers: {
1293
- "Content-Type": "application/json",
1294
- ...options?.headers,
1295
- ...params.headers,
1296
- },
1297
- });
1298
- }
1299
- /**
1300
- * Restore reverted messages
1301
- *
1302
- * Restore all previously reverted messages in a session.
1303
- */
1304
- unrevert(parameters, options) {
1305
- const params = buildClientParams([parameters], [
1306
- {
1307
- args: [
1308
- { in: "path", key: "sessionID" },
1309
- { in: "query", key: "directory" },
1310
- { in: "query", key: "workspace" },
1311
- ],
1312
- },
1313
- ]);
1314
- return (options?.client ?? this.client).post({
1315
- url: "/session/{sessionID}/unrevert",
1316
- ...options,
1317
- ...params,
1318
- });
1319
- }
1320
- }
1321
- export class Part extends HeyApiClient {
1322
- /**
1323
- * Delete a part from a message
1324
- */
1325
- delete(parameters, options) {
1326
- const params = buildClientParams([parameters], [
1327
- {
1328
- args: [
1329
- { in: "path", key: "sessionID" },
1330
- { in: "path", key: "messageID" },
1331
- { in: "path", key: "partID" },
1332
- { in: "query", key: "directory" },
1333
- { in: "query", key: "workspace" },
1334
- ],
1335
- },
1336
- ]);
1337
- return (options?.client ?? this.client).delete({
1338
- url: "/session/{sessionID}/message/{messageID}/part/{partID}",
1339
- ...options,
1340
- ...params,
1341
- });
1342
- }
1343
- /**
1344
- * Update a part in a message
1345
- */
1346
- update(parameters, options) {
1347
- const params = buildClientParams([parameters], [
1348
- {
1349
- args: [
1350
- { in: "path", key: "sessionID" },
1351
- { in: "path", key: "messageID" },
1352
- { in: "path", key: "partID" },
1353
- { in: "query", key: "directory" },
1354
- { in: "query", key: "workspace" },
1355
- { key: "part", map: "body" },
1356
- ],
1357
- },
1358
- ]);
1359
- return (options?.client ?? this.client).patch({
1360
- url: "/session/{sessionID}/message/{messageID}/part/{partID}",
1361
- ...options,
1362
- ...params,
1363
- headers: {
1364
- "Content-Type": "application/json",
1365
- ...options?.headers,
1366
- ...params.headers,
1367
- },
1368
- });
1369
- }
1370
- }
1371
- export class Permission extends HeyApiClient {
1372
- /**
1373
- * Respond to permission
1374
- *
1375
- * Approve or deny a permission request from the AI assistant.
1376
- *
1377
- * @deprecated
1378
- */
1379
- respond(parameters, options) {
1380
- const params = buildClientParams([parameters], [
1381
- {
1382
- args: [
1383
- { in: "path", key: "sessionID" },
1384
- { in: "path", key: "permissionID" },
1385
- { in: "query", key: "directory" },
1386
- { in: "query", key: "workspace" },
1387
- { in: "body", key: "response" },
1388
- ],
1389
- },
1390
- ]);
1391
- return (options?.client ?? this.client).post({
1392
- url: "/session/{sessionID}/permissions/{permissionID}",
1393
- ...options,
1394
- ...params,
1395
- headers: {
1396
- "Content-Type": "application/json",
1397
- ...options?.headers,
1398
- ...params.headers,
1399
- },
1400
- });
1401
- }
1402
- /**
1403
- * Respond to permission request
1404
- *
1405
- * Approve or deny a permission request from the AI assistant.
1406
- */
1407
- reply(parameters, options) {
1408
- const params = buildClientParams([parameters], [
1409
- {
1410
- args: [
1411
- { in: "path", key: "requestID" },
1412
- { in: "query", key: "directory" },
1413
- { in: "query", key: "workspace" },
1414
- { in: "body", key: "reply" },
1415
- { in: "body", key: "message" },
1416
- ],
1417
- },
1418
- ]);
1419
- return (options?.client ?? this.client).post({
1420
- url: "/permission/{requestID}/reply",
1421
- ...options,
1422
- ...params,
1423
- headers: {
1424
- "Content-Type": "application/json",
1425
- ...options?.headers,
1426
- ...params.headers,
1427
- },
1428
- });
1429
- }
1430
- /**
1431
- * List pending permissions
1432
- *
1433
- * Get all pending permission requests across all sessions.
1434
- */
1435
- list(parameters, options) {
1436
- const params = buildClientParams([parameters], [
1437
- {
1438
- args: [
1439
- { in: "query", key: "directory" },
1440
- { in: "query", key: "workspace" },
1441
- ],
1442
- },
1443
- ]);
1444
- return (options?.client ?? this.client).get({
1445
- url: "/permission",
1446
- ...options,
1447
- ...params,
1448
- });
1449
- }
1450
- }
1451
- export class Question extends HeyApiClient {
1452
- /**
1453
- * List pending questions
1454
- *
1455
- * Get all pending question requests across all sessions.
1456
- */
1457
- list(parameters, options) {
1458
- const params = buildClientParams([parameters], [
1459
- {
1460
- args: [
1461
- { in: "query", key: "directory" },
1462
- { in: "query", key: "workspace" },
1463
- ],
1464
- },
1465
- ]);
1466
- return (options?.client ?? this.client).get({
1467
- url: "/question",
1468
- ...options,
1469
- ...params,
1470
- });
1471
- }
1472
- /**
1473
- * Reply to question request
1474
- *
1475
- * Provide answers to a question request from the AI assistant.
1476
- */
1477
- reply(parameters, options) {
1478
- const params = buildClientParams([parameters], [
1479
- {
1480
- args: [
1481
- { in: "path", key: "requestID" },
1482
- { in: "query", key: "directory" },
1483
- { in: "query", key: "workspace" },
1484
- { in: "body", key: "answers" },
1485
- ],
1486
- },
1487
- ]);
1488
- return (options?.client ?? this.client).post({
1489
- url: "/question/{requestID}/reply",
1490
- ...options,
1491
- ...params,
1492
- headers: {
1493
- "Content-Type": "application/json",
1494
- ...options?.headers,
1495
- ...params.headers,
1496
- },
1497
- });
1498
- }
1499
- /**
1500
- * Reject question request
1501
- *
1502
- * Reject a question request from the AI assistant.
1503
- */
1504
- reject(parameters, options) {
1505
- const params = buildClientParams([parameters], [
1506
- {
1507
- args: [
1508
- { in: "path", key: "requestID" },
1509
- { in: "query", key: "directory" },
1510
- { in: "query", key: "workspace" },
1511
- ],
1512
- },
1513
- ]);
1514
- return (options?.client ?? this.client).post({
1515
- url: "/question/{requestID}/reject",
1516
- ...options,
1517
- ...params,
1518
- });
1519
- }
1520
- }
1521
- export class Oauth extends HeyApiClient {
1522
- /**
1523
- * OAuth authorize
1524
- *
1525
- * Initiate OAuth authorization for a specific AI provider to get an authorization URL.
1526
- */
1527
- authorize(parameters, options) {
1528
- const params = buildClientParams([parameters], [
1529
- {
1530
- args: [
1531
- { in: "path", key: "providerID" },
1532
- { in: "query", key: "directory" },
1533
- { in: "query", key: "workspace" },
1534
- { in: "body", key: "method" },
1535
- { in: "body", key: "inputs" },
1536
- ],
1537
- },
1538
- ]);
1539
- return (options?.client ?? this.client).post({
1540
- url: "/provider/{providerID}/oauth/authorize",
1541
- ...options,
1542
- ...params,
1543
- headers: {
1544
- "Content-Type": "application/json",
1545
- ...options?.headers,
1546
- ...params.headers,
1547
- },
1548
- });
1549
- }
1550
- /**
1551
- * OAuth callback
1552
- *
1553
- * Handle the OAuth callback from a provider after user authorization.
1554
- */
1555
- callback(parameters, options) {
1556
- const params = buildClientParams([parameters], [
1557
- {
1558
- args: [
1559
- { in: "path", key: "providerID" },
1560
- { in: "query", key: "directory" },
1561
- { in: "query", key: "workspace" },
1562
- { in: "body", key: "method" },
1563
- { in: "body", key: "code" },
1564
- ],
1565
- },
1566
- ]);
1567
- return (options?.client ?? this.client).post({
1568
- url: "/provider/{providerID}/oauth/callback",
1569
- ...options,
1570
- ...params,
1571
- headers: {
1572
- "Content-Type": "application/json",
1573
- ...options?.headers,
1574
- ...params.headers,
1575
- },
1576
- });
1577
- }
1578
- }
1579
- export class Provider extends HeyApiClient {
1580
- /**
1581
- * List providers
1582
- *
1583
- * Get a list of all available AI providers, including both available and connected ones.
1584
- */
1585
- list(parameters, options) {
1586
- const params = buildClientParams([parameters], [
1587
- {
1588
- args: [
1589
- { in: "query", key: "directory" },
1590
- { in: "query", key: "workspace" },
1591
- ],
1592
- },
1593
- ]);
1594
- return (options?.client ?? this.client).get({
1595
- url: "/provider",
1596
- ...options,
1597
- ...params,
1598
- });
1599
- }
1600
- /**
1601
- * Get provider auth methods
1602
- *
1603
- * Retrieve available authentication methods for all AI providers.
1604
- */
1605
- auth(parameters, options) {
1606
- const params = buildClientParams([parameters], [
1607
- {
1608
- args: [
1609
- { in: "query", key: "directory" },
1610
- { in: "query", key: "workspace" },
1611
- ],
1612
- },
1613
- ]);
1614
- return (options?.client ?? this.client).get({
1615
- url: "/provider/auth",
1616
- ...options,
1617
- ...params,
1618
- });
1619
- }
1620
- _oauth;
1621
- get oauth() {
1622
- return (this._oauth ??= new Oauth({ client: this.client }));
1623
- }
1624
- }
1625
- export class Find extends HeyApiClient {
1626
- /**
1627
- * Find text
1628
- *
1629
- * Search for text patterns across files in the project using ripgrep.
1630
- */
1631
- text(parameters, options) {
1632
- const params = buildClientParams([parameters], [
1633
- {
1634
- args: [
1635
- { in: "query", key: "directory" },
1636
- { in: "query", key: "workspace" },
1637
- { in: "query", key: "pattern" },
1638
- ],
1639
- },
1640
- ]);
1641
- return (options?.client ?? this.client).get({
1642
- url: "/find",
1643
- ...options,
1644
- ...params,
1645
- });
1646
- }
1647
- /**
1648
- * Find files
1649
- *
1650
- * Search for files or directories by name or pattern in the project directory.
1651
- */
1652
- files(parameters, options) {
1653
- const params = buildClientParams([parameters], [
1654
- {
1655
- args: [
1656
- { in: "query", key: "directory" },
1657
- { in: "query", key: "workspace" },
1658
- { in: "query", key: "query" },
1659
- { in: "query", key: "dirs" },
1660
- { in: "query", key: "type" },
1661
- { in: "query", key: "limit" },
1662
- ],
1663
- },
1664
- ]);
1665
- return (options?.client ?? this.client).get({
1666
- url: "/find/file",
1667
- ...options,
1668
- ...params,
1669
- });
1670
- }
1671
- /**
1672
- * Find symbols
1673
- *
1674
- * Search for workspace symbols like functions, classes, and variables using LSP.
1675
- */
1676
- symbols(parameters, options) {
1677
- const params = buildClientParams([parameters], [
1678
- {
1679
- args: [
1680
- { in: "query", key: "directory" },
1681
- { in: "query", key: "workspace" },
1682
- { in: "query", key: "query" },
1683
- ],
1684
- },
1685
- ]);
1686
- return (options?.client ?? this.client).get({
1687
- url: "/find/symbol",
1688
- ...options,
1689
- ...params,
1690
- });
1691
- }
1692
- }
1693
- export class File extends HeyApiClient {
1694
- /**
1695
- * List files
1696
- *
1697
- * List files and directories in a specified path.
1698
- */
1699
- list(parameters, options) {
1700
- const params = buildClientParams([parameters], [
1701
- {
1702
- args: [
1703
- { in: "query", key: "directory" },
1704
- { in: "query", key: "workspace" },
1705
- { in: "query", key: "path" },
1706
- ],
1707
- },
1708
- ]);
1709
- return (options?.client ?? this.client).get({
1710
- url: "/file",
1711
- ...options,
1712
- ...params,
1713
- });
1714
- }
1715
- /**
1716
- * Read file
1717
- *
1718
- * Read the content of a specified file.
1719
- */
1720
- read(parameters, options) {
1721
- const params = buildClientParams([parameters], [
1722
- {
1723
- args: [
1724
- { in: "query", key: "directory" },
1725
- { in: "query", key: "workspace" },
1726
- { in: "query", key: "path" },
1727
- ],
1728
- },
1729
- ]);
1730
- return (options?.client ?? this.client).get({
1731
- url: "/file/content",
1732
- ...options,
1733
- ...params,
1734
- });
1735
- }
1736
- /**
1737
- * Get file status
1738
- *
1739
- * Get the git status of all files in the project.
1740
- */
1741
- status(parameters, options) {
1742
- const params = buildClientParams([parameters], [
1743
- {
1744
- args: [
1745
- { in: "query", key: "directory" },
1746
- { in: "query", key: "workspace" },
1747
- ],
1748
- },
1749
- ]);
1750
- return (options?.client ?? this.client).get({
1751
- url: "/file/status",
1752
- ...options,
1753
- ...params,
1754
- });
1755
- }
1756
- }
1757
- export class Auth2 extends HeyApiClient {
1758
- /**
1759
- * Remove MCP OAuth
1760
- *
1761
- * Remove OAuth credentials for an MCP server
1762
- */
1763
- remove(parameters, options) {
1764
- const params = buildClientParams([parameters], [
1765
- {
1766
- args: [
1767
- { in: "path", key: "name" },
1768
- { in: "query", key: "directory" },
1769
- { in: "query", key: "workspace" },
1770
- ],
1771
- },
1772
- ]);
1773
- return (options?.client ?? this.client).delete({
1774
- url: "/mcp/{name}/auth",
1775
- ...options,
1776
- ...params,
1777
- });
1778
- }
1779
- /**
1780
- * Start MCP OAuth
1781
- *
1782
- * Start OAuth authentication flow for a Model Context Protocol (MCP) server.
1783
- */
1784
- start(parameters, options) {
1785
- const params = buildClientParams([parameters], [
1786
- {
1787
- args: [
1788
- { in: "path", key: "name" },
1789
- { in: "query", key: "directory" },
1790
- { in: "query", key: "workspace" },
1791
- ],
1792
- },
1793
- ]);
1794
- return (options?.client ?? this.client).post({
1795
- url: "/mcp/{name}/auth",
1796
- ...options,
1797
- ...params,
1798
- });
1799
- }
1800
- /**
1801
- * Complete MCP OAuth
1802
- *
1803
- * Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
1804
- */
1805
- callback(parameters, options) {
1806
- const params = buildClientParams([parameters], [
1807
- {
1808
- args: [
1809
- { in: "path", key: "name" },
1810
- { in: "query", key: "directory" },
1811
- { in: "query", key: "workspace" },
1812
- { in: "body", key: "code" },
1813
- ],
1814
- },
1815
- ]);
1816
- return (options?.client ?? this.client).post({
1817
- url: "/mcp/{name}/auth/callback",
1818
- ...options,
1819
- ...params,
1820
- headers: {
1821
- "Content-Type": "application/json",
1822
- ...options?.headers,
1823
- ...params.headers,
1824
- },
1825
- });
1826
- }
1827
- /**
1828
- * Authenticate MCP OAuth
1829
- *
1830
- * Start OAuth flow and wait for callback (opens browser)
1831
- */
1832
- authenticate(parameters, options) {
1833
- const params = buildClientParams([parameters], [
1834
- {
1835
- args: [
1836
- { in: "path", key: "name" },
1837
- { in: "query", key: "directory" },
1838
- { in: "query", key: "workspace" },
1839
- ],
1840
- },
1841
- ]);
1842
- return (options?.client ?? this.client).post({
1843
- url: "/mcp/{name}/auth/authenticate",
1844
- ...options,
1845
- ...params,
1846
- });
1847
- }
1848
- }
1849
- export class Mcp extends HeyApiClient {
1850
- /**
1851
- * Get MCP status
1852
- *
1853
- * Get the status of all Model Context Protocol (MCP) servers.
1854
- */
1855
- status(parameters, options) {
1856
- const params = buildClientParams([parameters], [
1857
- {
1858
- args: [
1859
- { in: "query", key: "directory" },
1860
- { in: "query", key: "workspace" },
1861
- ],
1862
- },
1863
- ]);
1864
- return (options?.client ?? this.client).get({
1865
- url: "/mcp",
1866
- ...options,
1867
- ...params,
1868
- });
1869
- }
1870
- /**
1871
- * Add MCP server
1872
- *
1873
- * Dynamically add a new Model Context Protocol (MCP) server to the system.
1874
- */
1875
- add(parameters, options) {
1876
- const params = buildClientParams([parameters], [
1877
- {
1878
- args: [
1879
- { in: "query", key: "directory" },
1880
- { in: "query", key: "workspace" },
1881
- { in: "body", key: "name" },
1882
- { in: "body", key: "config" },
1883
- ],
1884
- },
1885
- ]);
1886
- return (options?.client ?? this.client).post({
1887
- url: "/mcp",
1888
- ...options,
1889
- ...params,
1890
- headers: {
1891
- "Content-Type": "application/json",
1892
- ...options?.headers,
1893
- ...params.headers,
1894
- },
1895
- });
1896
- }
1897
- /**
1898
- * Connect an MCP server
1899
- */
1900
- connect(parameters, options) {
1901
- const params = buildClientParams([parameters], [
1902
- {
1903
- args: [
1904
- { in: "path", key: "name" },
1905
- { in: "query", key: "directory" },
1906
- { in: "query", key: "workspace" },
1907
- ],
1908
- },
1909
- ]);
1910
- return (options?.client ?? this.client).post({
1911
- url: "/mcp/{name}/connect",
1912
- ...options,
1913
- ...params,
1914
- });
1915
- }
1916
- /**
1917
- * Disconnect an MCP server
1918
- */
1919
- disconnect(parameters, options) {
1920
- const params = buildClientParams([parameters], [
1921
- {
1922
- args: [
1923
- { in: "path", key: "name" },
1924
- { in: "query", key: "directory" },
1925
- { in: "query", key: "workspace" },
1926
- ],
1927
- },
1928
- ]);
1929
- return (options?.client ?? this.client).post({
1930
- url: "/mcp/{name}/disconnect",
1931
- ...options,
1932
- ...params,
1933
- });
1934
- }
1935
- _auth;
1936
- get auth() {
1937
- return (this._auth ??= new Auth2({ client: this.client }));
1938
- }
1939
- }
1940
- export class Control extends HeyApiClient {
1941
- /**
1942
- * Get next TUI request
1943
- *
1944
- * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
1945
- */
1946
- next(parameters, options) {
1947
- const params = buildClientParams([parameters], [
1948
- {
1949
- args: [
1950
- { in: "query", key: "directory" },
1951
- { in: "query", key: "workspace" },
1952
- ],
1953
- },
1954
- ]);
1955
- return (options?.client ?? this.client).get({
1956
- url: "/tui/control/next",
1957
- ...options,
1958
- ...params,
1959
- });
1960
- }
1961
- /**
1962
- * Submit TUI response
1963
- *
1964
- * Submit a response to the TUI request queue to complete a pending request.
1965
- */
1966
- response(parameters, options) {
1967
- const params = buildClientParams([parameters], [
1968
- {
1969
- args: [
1970
- { in: "query", key: "directory" },
1971
- { in: "query", key: "workspace" },
1972
- { key: "body", map: "body" },
1973
- ],
1974
- },
1975
- ]);
1976
- return (options?.client ?? this.client).post({
1977
- url: "/tui/control/response",
1978
- ...options,
1979
- ...params,
1980
- headers: {
1981
- "Content-Type": "application/json",
1982
- ...options?.headers,
1983
- ...params.headers,
1984
- },
1985
- });
1986
- }
1987
- }
1988
- export class Tui extends HeyApiClient {
1989
- /**
1990
- * Append TUI prompt
1991
- *
1992
- * Append prompt to the TUI
1993
- */
1994
- appendPrompt(parameters, options) {
1995
- const params = buildClientParams([parameters], [
1996
- {
1997
- args: [
1998
- { in: "query", key: "directory" },
1999
- { in: "query", key: "workspace" },
2000
- { in: "body", key: "text" },
2001
- ],
2002
- },
2003
- ]);
2004
- return (options?.client ?? this.client).post({
2005
- url: "/tui/append-prompt",
2006
- ...options,
2007
- ...params,
2008
- headers: {
2009
- "Content-Type": "application/json",
2010
- ...options?.headers,
2011
- ...params.headers,
2012
- },
2013
- });
2014
- }
2015
- /**
2016
- * Open help dialog
2017
- *
2018
- * Open the help dialog in the TUI to display user assistance information.
2019
- */
2020
- openHelp(parameters, options) {
2021
- const params = buildClientParams([parameters], [
2022
- {
2023
- args: [
2024
- { in: "query", key: "directory" },
2025
- { in: "query", key: "workspace" },
2026
- ],
2027
- },
2028
- ]);
2029
- return (options?.client ?? this.client).post({
2030
- url: "/tui/open-help",
2031
- ...options,
2032
- ...params,
2033
- });
2034
- }
2035
- /**
2036
- * Open sessions dialog
2037
- *
2038
- * Open the session dialog
2039
- */
2040
- openSessions(parameters, options) {
2041
- const params = buildClientParams([parameters], [
2042
- {
2043
- args: [
2044
- { in: "query", key: "directory" },
2045
- { in: "query", key: "workspace" },
2046
- ],
2047
- },
2048
- ]);
2049
- return (options?.client ?? this.client).post({
2050
- url: "/tui/open-sessions",
2051
- ...options,
2052
- ...params,
2053
- });
2054
- }
2055
- /**
2056
- * Open themes dialog
2057
- *
2058
- * Open the theme dialog
2059
- */
2060
- openThemes(parameters, options) {
2061
- const params = buildClientParams([parameters], [
2062
- {
2063
- args: [
2064
- { in: "query", key: "directory" },
2065
- { in: "query", key: "workspace" },
2066
- ],
2067
- },
2068
- ]);
2069
- return (options?.client ?? this.client).post({
2070
- url: "/tui/open-themes",
2071
- ...options,
2072
- ...params,
2073
- });
2074
- }
2075
- /**
2076
- * Open models dialog
2077
- *
2078
- * Open the model dialog
2079
- */
2080
- openModels(parameters, options) {
2081
- const params = buildClientParams([parameters], [
2082
- {
2083
- args: [
2084
- { in: "query", key: "directory" },
2085
- { in: "query", key: "workspace" },
2086
- ],
2087
- },
2088
- ]);
2089
- return (options?.client ?? this.client).post({
2090
- url: "/tui/open-models",
2091
- ...options,
2092
- ...params,
2093
- });
2094
- }
2095
- /**
2096
- * Submit TUI prompt
2097
- *
2098
- * Submit the prompt
2099
- */
2100
- submitPrompt(parameters, options) {
2101
- const params = buildClientParams([parameters], [
2102
- {
2103
- args: [
2104
- { in: "query", key: "directory" },
2105
- { in: "query", key: "workspace" },
2106
- ],
2107
- },
2108
- ]);
2109
- return (options?.client ?? this.client).post({
2110
- url: "/tui/submit-prompt",
2111
- ...options,
2112
- ...params,
2113
- });
2114
- }
2115
- /**
2116
- * Clear TUI prompt
2117
- *
2118
- * Clear the prompt
2119
- */
2120
- clearPrompt(parameters, options) {
2121
- const params = buildClientParams([parameters], [
2122
- {
2123
- args: [
2124
- { in: "query", key: "directory" },
2125
- { in: "query", key: "workspace" },
2126
- ],
2127
- },
2128
- ]);
2129
- return (options?.client ?? this.client).post({
2130
- url: "/tui/clear-prompt",
2131
- ...options,
2132
- ...params,
2133
- });
2134
- }
2135
- /**
2136
- * Execute TUI command
2137
- *
2138
- * Execute a TUI command (e.g. agent_cycle)
2139
- */
2140
- executeCommand(parameters, options) {
2141
- const params = buildClientParams([parameters], [
2142
- {
2143
- args: [
2144
- { in: "query", key: "directory" },
2145
- { in: "query", key: "workspace" },
2146
- { in: "body", key: "command" },
2147
- ],
2148
- },
2149
- ]);
2150
- return (options?.client ?? this.client).post({
2151
- url: "/tui/execute-command",
2152
- ...options,
2153
- ...params,
2154
- headers: {
2155
- "Content-Type": "application/json",
2156
- ...options?.headers,
2157
- ...params.headers,
2158
- },
2159
- });
2160
- }
2161
- /**
2162
- * Show TUI toast
2163
- *
2164
- * Show a toast notification in the TUI
2165
- */
2166
- showToast(parameters, options) {
2167
- const params = buildClientParams([parameters], [
2168
- {
2169
- args: [
2170
- { in: "query", key: "directory" },
2171
- { in: "query", key: "workspace" },
2172
- { in: "body", key: "title" },
2173
- { in: "body", key: "message" },
2174
- { in: "body", key: "variant" },
2175
- { in: "body", key: "duration" },
2176
- ],
2177
- },
2178
- ]);
2179
- return (options?.client ?? this.client).post({
2180
- url: "/tui/show-toast",
2181
- ...options,
2182
- ...params,
2183
- headers: {
2184
- "Content-Type": "application/json",
2185
- ...options?.headers,
2186
- ...params.headers,
2187
- },
2188
- });
2189
- }
2190
- /**
2191
- * Publish TUI event
2192
- *
2193
- * Publish a TUI event
2194
- */
2195
- publish(parameters, options) {
2196
- const params = buildClientParams([parameters], [
2197
- {
2198
- args: [
2199
- { in: "query", key: "directory" },
2200
- { in: "query", key: "workspace" },
2201
- { key: "body", map: "body" },
2202
- ],
2203
- },
2204
- ]);
2205
- return (options?.client ?? this.client).post({
2206
- url: "/tui/publish",
2207
- ...options,
2208
- ...params,
2209
- headers: {
2210
- "Content-Type": "application/json",
2211
- ...options?.headers,
2212
- ...params.headers,
2213
- },
2214
- });
2215
- }
2216
- /**
2217
- * Select session
2218
- *
2219
- * Navigate the TUI to display the specified session.
2220
- */
2221
- selectSession(parameters, options) {
2222
- const params = buildClientParams([parameters], [
2223
- {
2224
- args: [
2225
- { in: "query", key: "directory" },
2226
- { in: "query", key: "workspace" },
2227
- { in: "body", key: "sessionID" },
2228
- ],
2229
- },
2230
- ]);
2231
- return (options?.client ?? this.client).post({
2232
- url: "/tui/select-session",
2233
- ...options,
2234
- ...params,
2235
- headers: {
2236
- "Content-Type": "application/json",
2237
- ...options?.headers,
2238
- ...params.headers,
2239
- },
2240
- });
2241
- }
2242
- _control;
2243
- get control() {
2244
- return (this._control ??= new Control({ client: this.client }));
2245
- }
2246
- }
2247
- export class Guardrail extends HeyApiClient {
2248
- /**
2249
- * Get guardrails
2250
- *
2251
- * Retrieve the current guardrail state for this project.
2252
- */
2253
- get(parameters, options) {
2254
- const params = buildClientParams([parameters], [
2255
- {
2256
- args: [
2257
- { in: "query", key: "directory" },
2258
- { in: "query", key: "workspace" },
2259
- ],
2260
- },
2261
- ]);
2262
- return (options?.client ?? this.client).get({
2263
- url: "/guardrail",
2264
- ...options,
2265
- ...params,
2266
- });
2267
- }
2268
- /**
2269
- * Refresh guardrails
2270
- *
2271
- * Re-fetch guardrails from the Symbiotic backend API.
2272
- */
2273
- refresh(parameters, options) {
2274
- const params = buildClientParams([parameters], [
2275
- {
2276
- args: [
2277
- { in: "query", key: "directory" },
2278
- { in: "query", key: "workspace" },
2279
- ],
2280
- },
2281
- ]);
2282
- return (options?.client ?? this.client).post({
2283
- url: "/guardrail/refresh",
2284
- ...options,
2285
- ...params,
2286
- });
2287
- }
2288
- /**
2289
- * Clear guardrails
2290
- *
2291
- * Clear cached guardrails for the current project.
2292
- */
2293
- clear(parameters, options) {
2294
- const params = buildClientParams([parameters], [
2295
- {
2296
- args: [
2297
- { in: "query", key: "directory" },
2298
- { in: "query", key: "workspace" },
2299
- ],
2300
- },
2301
- ]);
2302
- return (options?.client ?? this.client).post({
2303
- url: "/guardrail/clear",
2304
- ...options,
2305
- ...params,
2306
- });
2307
- }
2308
- }
2309
- export class Instance extends HeyApiClient {
2310
- /**
2311
- * Dispose instance
2312
- *
2313
- * Clean up and dispose the current SymbioticCode instance, releasing all resources.
2314
- */
2315
- dispose(parameters, options) {
2316
- const params = buildClientParams([parameters], [
2317
- {
2318
- args: [
2319
- { in: "query", key: "directory" },
2320
- { in: "query", key: "workspace" },
2321
- ],
2322
- },
2323
- ]);
2324
- return (options?.client ?? this.client).post({
2325
- url: "/instance/dispose",
2326
- ...options,
2327
- ...params,
2328
- });
2329
- }
2330
- }
2331
- export class Path extends HeyApiClient {
2332
- /**
2333
- * Get paths
2334
- *
2335
- * Retrieve the current working directory and related path information for the SymbioticCode instance.
2336
- */
2337
- get(parameters, options) {
2338
- const params = buildClientParams([parameters], [
2339
- {
2340
- args: [
2341
- { in: "query", key: "directory" },
2342
- { in: "query", key: "workspace" },
2343
- ],
2344
- },
2345
- ]);
2346
- return (options?.client ?? this.client).get({
2347
- url: "/path",
2348
- ...options,
2349
- ...params,
2350
- });
2351
- }
2352
- }
2353
- export class Vcs extends HeyApiClient {
2354
- /**
2355
- * Get VCS info
2356
- *
2357
- * Retrieve version control system (VCS) information for the current project, such as git branch.
2358
- */
2359
- get(parameters, options) {
2360
- const params = buildClientParams([parameters], [
2361
- {
2362
- args: [
2363
- { in: "query", key: "directory" },
2364
- { in: "query", key: "workspace" },
2365
- ],
2366
- },
2367
- ]);
2368
- return (options?.client ?? this.client).get({
2369
- url: "/vcs",
2370
- ...options,
2371
- ...params,
2372
- });
2373
- }
2374
- }
2375
- export class Command extends HeyApiClient {
2376
- /**
2377
- * List commands
2378
- *
2379
- * Get a list of all available commands in the SymbioticCode system.
2380
- */
2381
- list(parameters, options) {
2382
- const params = buildClientParams([parameters], [
2383
- {
2384
- args: [
2385
- { in: "query", key: "directory" },
2386
- { in: "query", key: "workspace" },
2387
- ],
2388
- },
2389
- ]);
2390
- return (options?.client ?? this.client).get({
2391
- url: "/command",
2392
- ...options,
2393
- ...params,
2394
- });
2395
- }
2396
- }
2397
- export class App extends HeyApiClient {
2398
- /**
2399
- * Write log
2400
- *
2401
- * Write a log entry to the server logs with specified level and metadata.
2402
- */
2403
- log(parameters, options) {
2404
- const params = buildClientParams([parameters], [
2405
- {
2406
- args: [
2407
- { in: "query", key: "directory" },
2408
- { in: "query", key: "workspace" },
2409
- { in: "body", key: "service" },
2410
- { in: "body", key: "level" },
2411
- { in: "body", key: "message" },
2412
- { in: "body", key: "extra" },
2413
- ],
2414
- },
2415
- ]);
2416
- return (options?.client ?? this.client).post({
2417
- url: "/log",
2418
- ...options,
2419
- ...params,
2420
- headers: {
2421
- "Content-Type": "application/json",
2422
- ...options?.headers,
2423
- ...params.headers,
2424
- },
2425
- });
2426
- }
2427
- /**
2428
- * List agents
2429
- *
2430
- * Get a list of all available AI agents in the SymbioticCode system.
2431
- */
2432
- agents(parameters, options) {
2433
- const params = buildClientParams([parameters], [
2434
- {
2435
- args: [
2436
- { in: "query", key: "directory" },
2437
- { in: "query", key: "workspace" },
2438
- ],
2439
- },
2440
- ]);
2441
- return (options?.client ?? this.client).get({
2442
- url: "/agent",
2443
- ...options,
2444
- ...params,
2445
- });
2446
- }
2447
- /**
2448
- * List skills
2449
- *
2450
- * Get a list of all available skills in the SymbioticCode system.
2451
- */
2452
- skills(parameters, options) {
2453
- const params = buildClientParams([parameters], [
2454
- {
2455
- args: [
2456
- { in: "query", key: "directory" },
2457
- { in: "query", key: "workspace" },
2458
- ],
2459
- },
2460
- ]);
2461
- return (options?.client ?? this.client).get({
2462
- url: "/skill",
2463
- ...options,
2464
- ...params,
2465
- });
2466
- }
2467
- }
2468
- export class Lsp extends HeyApiClient {
2469
- /**
2470
- * Get LSP status
2471
- *
2472
- * Get LSP server status
2473
- */
2474
- status(parameters, options) {
2475
- const params = buildClientParams([parameters], [
2476
- {
2477
- args: [
2478
- { in: "query", key: "directory" },
2479
- { in: "query", key: "workspace" },
2480
- ],
2481
- },
2482
- ]);
2483
- return (options?.client ?? this.client).get({
2484
- url: "/lsp",
2485
- ...options,
2486
- ...params,
2487
- });
2488
- }
2489
- }
2490
- export class Formatter extends HeyApiClient {
2491
- /**
2492
- * Get formatter status
2493
- *
2494
- * Get formatter status
2495
- */
2496
- status(parameters, options) {
2497
- const params = buildClientParams([parameters], [
2498
- {
2499
- args: [
2500
- { in: "query", key: "directory" },
2501
- { in: "query", key: "workspace" },
2502
- ],
2503
- },
2504
- ]);
2505
- return (options?.client ?? this.client).get({
2506
- url: "/formatter",
2507
- ...options,
2508
- ...params,
2509
- });
2510
- }
2511
- }
2512
- export class Event extends HeyApiClient {
2513
- /**
2514
- * Subscribe to events
2515
- *
2516
- * Get events
2517
- */
2518
- subscribe(parameters, options) {
2519
- const params = buildClientParams([parameters], [
2520
- {
2521
- args: [
2522
- { in: "query", key: "directory" },
2523
- { in: "query", key: "workspace" },
2524
- ],
2525
- },
2526
- ]);
2527
- return (options?.client ?? this.client).sse.get({
2528
- url: "/event",
2529
- ...options,
2530
- ...params,
2531
- });
2532
- }
2533
- }
2534
- export class SymbioticClient extends HeyApiClient {
2535
- static __registry = new HeyApiRegistry();
2536
- constructor(args) {
2537
- super(args);
2538
- SymbioticClient.__registry.set(this, args?.key);
2539
- }
2540
- _global;
2541
- get global() {
2542
- return (this._global ??= new Global({ client: this.client }));
2543
- }
2544
- _auth;
2545
- get auth() {
2546
- return (this._auth ??= new Auth({ client: this.client }));
2547
- }
2548
- _project;
2549
- get project() {
2550
- return (this._project ??= new Project({ client: this.client }));
2551
- }
2552
- _pty;
2553
- get pty() {
2554
- return (this._pty ??= new Pty({ client: this.client }));
2555
- }
2556
- _config;
2557
- get config() {
2558
- return (this._config ??= new Config2({ client: this.client }));
2559
- }
2560
- _tool;
2561
- get tool() {
2562
- return (this._tool ??= new Tool({ client: this.client }));
2563
- }
2564
- _experimental;
2565
- get experimental() {
2566
- return (this._experimental ??= new Experimental({ client: this.client }));
2567
- }
2568
- _worktree;
2569
- get worktree() {
2570
- return (this._worktree ??= new Worktree({ client: this.client }));
2571
- }
2572
- _session;
2573
- get session() {
2574
- return (this._session ??= new Session2({ client: this.client }));
2575
- }
2576
- _part;
2577
- get part() {
2578
- return (this._part ??= new Part({ client: this.client }));
2579
- }
2580
- _permission;
2581
- get permission() {
2582
- return (this._permission ??= new Permission({ client: this.client }));
2583
- }
2584
- _question;
2585
- get question() {
2586
- return (this._question ??= new Question({ client: this.client }));
2587
- }
2588
- _provider;
2589
- get provider() {
2590
- return (this._provider ??= new Provider({ client: this.client }));
2591
- }
2592
- _find;
2593
- get find() {
2594
- return (this._find ??= new Find({ client: this.client }));
2595
- }
2596
- _file;
2597
- get file() {
2598
- return (this._file ??= new File({ client: this.client }));
2599
- }
2600
- _mcp;
2601
- get mcp() {
2602
- return (this._mcp ??= new Mcp({ client: this.client }));
2603
- }
2604
- _tui;
2605
- get tui() {
2606
- return (this._tui ??= new Tui({ client: this.client }));
2607
- }
2608
- _guardrail;
2609
- get guardrail() {
2610
- return (this._guardrail ??= new Guardrail({ client: this.client }));
2611
- }
2612
- _instance;
2613
- get instance() {
2614
- return (this._instance ??= new Instance({ client: this.client }));
2615
- }
2616
- _path;
2617
- get path() {
2618
- return (this._path ??= new Path({ client: this.client }));
2619
- }
2620
- _vcs;
2621
- get vcs() {
2622
- return (this._vcs ??= new Vcs({ client: this.client }));
2623
- }
2624
- _command;
2625
- get command() {
2626
- return (this._command ??= new Command({ client: this.client }));
2627
- }
2628
- _app;
2629
- get app() {
2630
- return (this._app ??= new App({ client: this.client }));
2631
- }
2632
- _lsp;
2633
- get lsp() {
2634
- return (this._lsp ??= new Lsp({ client: this.client }));
2635
- }
2636
- _formatter;
2637
- get formatter() {
2638
- return (this._formatter ??= new Formatter({ client: this.client }));
2639
- }
2640
- _event;
2641
- get event() {
2642
- return (this._event ??= new Event({ client: this.client }));
2643
- }
2644
- }