@kilocode/sdk 7.0.46 → 7.0.47
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.
- package/dist/v2/gen/sdk.gen.d.ts +164 -1
- package/dist/v2/gen/sdk.gen.js +453 -33
- package/dist/v2/gen/types.gen.d.ts +284 -14
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -138,7 +138,14 @@ export class Project extends HeyApiClient {
|
|
|
138
138
|
* Get a list of projects that have been opened with OpenCode.
|
|
139
139
|
*/
|
|
140
140
|
list(parameters, options) {
|
|
141
|
-
const params = buildClientParams([parameters], [
|
|
141
|
+
const params = buildClientParams([parameters], [
|
|
142
|
+
{
|
|
143
|
+
args: [
|
|
144
|
+
{ in: "query", key: "directory" },
|
|
145
|
+
{ in: "query", key: "workspace" },
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
]);
|
|
142
149
|
return (options?.client ?? this.client).get({
|
|
143
150
|
url: "/project",
|
|
144
151
|
...options,
|
|
@@ -151,7 +158,14 @@ export class Project extends HeyApiClient {
|
|
|
151
158
|
* Retrieve the currently active project that OpenCode is working with.
|
|
152
159
|
*/
|
|
153
160
|
current(parameters, options) {
|
|
154
|
-
const params = buildClientParams([parameters], [
|
|
161
|
+
const params = buildClientParams([parameters], [
|
|
162
|
+
{
|
|
163
|
+
args: [
|
|
164
|
+
{ in: "query", key: "directory" },
|
|
165
|
+
{ in: "query", key: "workspace" },
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
]);
|
|
155
169
|
return (options?.client ?? this.client).get({
|
|
156
170
|
url: "/project/current",
|
|
157
171
|
...options,
|
|
@@ -169,6 +183,7 @@ export class Project extends HeyApiClient {
|
|
|
169
183
|
args: [
|
|
170
184
|
{ in: "path", key: "projectID" },
|
|
171
185
|
{ in: "query", key: "directory" },
|
|
186
|
+
{ in: "query", key: "workspace" },
|
|
172
187
|
{ in: "body", key: "name" },
|
|
173
188
|
{ in: "body", key: "icon" },
|
|
174
189
|
{ in: "body", key: "commands" },
|
|
@@ -194,7 +209,14 @@ export class Pty extends HeyApiClient {
|
|
|
194
209
|
* Get a list of all active pseudo-terminal (PTY) sessions managed by OpenCode.
|
|
195
210
|
*/
|
|
196
211
|
list(parameters, options) {
|
|
197
|
-
const params = buildClientParams([parameters], [
|
|
212
|
+
const params = buildClientParams([parameters], [
|
|
213
|
+
{
|
|
214
|
+
args: [
|
|
215
|
+
{ in: "query", key: "directory" },
|
|
216
|
+
{ in: "query", key: "workspace" },
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
]);
|
|
198
220
|
return (options?.client ?? this.client).get({
|
|
199
221
|
url: "/pty",
|
|
200
222
|
...options,
|
|
@@ -211,6 +233,7 @@ export class Pty extends HeyApiClient {
|
|
|
211
233
|
{
|
|
212
234
|
args: [
|
|
213
235
|
{ in: "query", key: "directory" },
|
|
236
|
+
{ in: "query", key: "workspace" },
|
|
214
237
|
{ in: "body", key: "command" },
|
|
215
238
|
{ in: "body", key: "args" },
|
|
216
239
|
{ in: "body", key: "cwd" },
|
|
@@ -241,6 +264,7 @@ export class Pty extends HeyApiClient {
|
|
|
241
264
|
args: [
|
|
242
265
|
{ in: "path", key: "ptyID" },
|
|
243
266
|
{ in: "query", key: "directory" },
|
|
267
|
+
{ in: "query", key: "workspace" },
|
|
244
268
|
],
|
|
245
269
|
},
|
|
246
270
|
]);
|
|
@@ -261,6 +285,7 @@ export class Pty extends HeyApiClient {
|
|
|
261
285
|
args: [
|
|
262
286
|
{ in: "path", key: "ptyID" },
|
|
263
287
|
{ in: "query", key: "directory" },
|
|
288
|
+
{ in: "query", key: "workspace" },
|
|
264
289
|
],
|
|
265
290
|
},
|
|
266
291
|
]);
|
|
@@ -281,6 +306,7 @@ export class Pty extends HeyApiClient {
|
|
|
281
306
|
args: [
|
|
282
307
|
{ in: "path", key: "ptyID" },
|
|
283
308
|
{ in: "query", key: "directory" },
|
|
309
|
+
{ in: "query", key: "workspace" },
|
|
284
310
|
{ in: "body", key: "title" },
|
|
285
311
|
{ in: "body", key: "size" },
|
|
286
312
|
],
|
|
@@ -308,6 +334,7 @@ export class Pty extends HeyApiClient {
|
|
|
308
334
|
args: [
|
|
309
335
|
{ in: "path", key: "ptyID" },
|
|
310
336
|
{ in: "query", key: "directory" },
|
|
337
|
+
{ in: "query", key: "workspace" },
|
|
311
338
|
],
|
|
312
339
|
},
|
|
313
340
|
]);
|
|
@@ -325,7 +352,14 @@ export class Config2 extends HeyApiClient {
|
|
|
325
352
|
* Retrieve the current OpenCode configuration settings and preferences.
|
|
326
353
|
*/
|
|
327
354
|
get(parameters, options) {
|
|
328
|
-
const params = buildClientParams([parameters], [
|
|
355
|
+
const params = buildClientParams([parameters], [
|
|
356
|
+
{
|
|
357
|
+
args: [
|
|
358
|
+
{ in: "query", key: "directory" },
|
|
359
|
+
{ in: "query", key: "workspace" },
|
|
360
|
+
],
|
|
361
|
+
},
|
|
362
|
+
]);
|
|
329
363
|
return (options?.client ?? this.client).get({
|
|
330
364
|
url: "/config",
|
|
331
365
|
...options,
|
|
@@ -342,6 +376,7 @@ export class Config2 extends HeyApiClient {
|
|
|
342
376
|
{
|
|
343
377
|
args: [
|
|
344
378
|
{ in: "query", key: "directory" },
|
|
379
|
+
{ in: "query", key: "workspace" },
|
|
345
380
|
{ key: "config", map: "body" },
|
|
346
381
|
],
|
|
347
382
|
},
|
|
@@ -363,7 +398,14 @@ export class Config2 extends HeyApiClient {
|
|
|
363
398
|
* Get a list of all configured AI providers and their default models.
|
|
364
399
|
*/
|
|
365
400
|
providers(parameters, options) {
|
|
366
|
-
const params = buildClientParams([parameters], [
|
|
401
|
+
const params = buildClientParams([parameters], [
|
|
402
|
+
{
|
|
403
|
+
args: [
|
|
404
|
+
{ in: "query", key: "directory" },
|
|
405
|
+
{ in: "query", key: "workspace" },
|
|
406
|
+
],
|
|
407
|
+
},
|
|
408
|
+
]);
|
|
367
409
|
return (options?.client ?? this.client).get({
|
|
368
410
|
url: "/config/providers",
|
|
369
411
|
...options,
|
|
@@ -378,7 +420,14 @@ export class Tool extends HeyApiClient {
|
|
|
378
420
|
* Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
|
|
379
421
|
*/
|
|
380
422
|
ids(parameters, options) {
|
|
381
|
-
const params = buildClientParams([parameters], [
|
|
423
|
+
const params = buildClientParams([parameters], [
|
|
424
|
+
{
|
|
425
|
+
args: [
|
|
426
|
+
{ in: "query", key: "directory" },
|
|
427
|
+
{ in: "query", key: "workspace" },
|
|
428
|
+
],
|
|
429
|
+
},
|
|
430
|
+
]);
|
|
382
431
|
return (options?.client ?? this.client).get({
|
|
383
432
|
url: "/experimental/tool/ids",
|
|
384
433
|
...options,
|
|
@@ -395,6 +444,7 @@ export class Tool extends HeyApiClient {
|
|
|
395
444
|
{
|
|
396
445
|
args: [
|
|
397
446
|
{ in: "query", key: "directory" },
|
|
447
|
+
{ in: "query", key: "workspace" },
|
|
398
448
|
{ in: "query", key: "provider" },
|
|
399
449
|
{ in: "query", key: "model" },
|
|
400
450
|
],
|
|
@@ -418,6 +468,7 @@ export class Worktree extends HeyApiClient {
|
|
|
418
468
|
{
|
|
419
469
|
args: [
|
|
420
470
|
{ in: "query", key: "directory" },
|
|
471
|
+
{ in: "query", key: "workspace" },
|
|
421
472
|
{ key: "worktreeRemoveInput", map: "body" },
|
|
422
473
|
],
|
|
423
474
|
},
|
|
@@ -439,7 +490,14 @@ export class Worktree extends HeyApiClient {
|
|
|
439
490
|
* List all sandbox worktrees for the current project.
|
|
440
491
|
*/
|
|
441
492
|
list(parameters, options) {
|
|
442
|
-
const params = buildClientParams([parameters], [
|
|
493
|
+
const params = buildClientParams([parameters], [
|
|
494
|
+
{
|
|
495
|
+
args: [
|
|
496
|
+
{ in: "query", key: "directory" },
|
|
497
|
+
{ in: "query", key: "workspace" },
|
|
498
|
+
],
|
|
499
|
+
},
|
|
500
|
+
]);
|
|
443
501
|
return (options?.client ?? this.client).get({
|
|
444
502
|
url: "/experimental/worktree",
|
|
445
503
|
...options,
|
|
@@ -456,6 +514,7 @@ export class Worktree extends HeyApiClient {
|
|
|
456
514
|
{
|
|
457
515
|
args: [
|
|
458
516
|
{ in: "query", key: "directory" },
|
|
517
|
+
{ in: "query", key: "workspace" },
|
|
459
518
|
{ key: "worktreeCreateInput", map: "body" },
|
|
460
519
|
],
|
|
461
520
|
},
|
|
@@ -481,6 +540,7 @@ export class Worktree extends HeyApiClient {
|
|
|
481
540
|
{
|
|
482
541
|
args: [
|
|
483
542
|
{ in: "query", key: "directory" },
|
|
543
|
+
{ in: "query", key: "workspace" },
|
|
484
544
|
{ key: "worktreeResetInput", map: "body" },
|
|
485
545
|
],
|
|
486
546
|
},
|
|
@@ -506,6 +566,7 @@ export class Worktree extends HeyApiClient {
|
|
|
506
566
|
{
|
|
507
567
|
args: [
|
|
508
568
|
{ in: "query", key: "directory" },
|
|
569
|
+
{ in: "query", key: "workspace" },
|
|
509
570
|
{ in: "query", key: "base" },
|
|
510
571
|
],
|
|
511
572
|
},
|
|
@@ -516,6 +577,120 @@ export class Worktree extends HeyApiClient {
|
|
|
516
577
|
...params,
|
|
517
578
|
});
|
|
518
579
|
}
|
|
580
|
+
/**
|
|
581
|
+
* Get worktree diff summary
|
|
582
|
+
*
|
|
583
|
+
* Get lightweight file diff metadata for a worktree compared to its base branch.
|
|
584
|
+
*/
|
|
585
|
+
diffSummary(parameters, options) {
|
|
586
|
+
const params = buildClientParams([parameters], [
|
|
587
|
+
{
|
|
588
|
+
args: [
|
|
589
|
+
{ in: "query", key: "directory" },
|
|
590
|
+
{ in: "query", key: "workspace" },
|
|
591
|
+
{ in: "query", key: "base" },
|
|
592
|
+
],
|
|
593
|
+
},
|
|
594
|
+
]);
|
|
595
|
+
return (options?.client ?? this.client).get({
|
|
596
|
+
url: "/experimental/worktree/diff/summary",
|
|
597
|
+
...options,
|
|
598
|
+
...params,
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Get worktree diff detail
|
|
603
|
+
*
|
|
604
|
+
* Get full diff contents for one worktree file compared to its base branch.
|
|
605
|
+
*/
|
|
606
|
+
diffFile(parameters, options) {
|
|
607
|
+
const params = buildClientParams([parameters], [
|
|
608
|
+
{
|
|
609
|
+
args: [
|
|
610
|
+
{ in: "query", key: "directory" },
|
|
611
|
+
{ in: "query", key: "workspace" },
|
|
612
|
+
{ in: "query", key: "base" },
|
|
613
|
+
{ in: "query", key: "file" },
|
|
614
|
+
],
|
|
615
|
+
},
|
|
616
|
+
]);
|
|
617
|
+
return (options?.client ?? this.client).get({
|
|
618
|
+
url: "/experimental/worktree/diff/file",
|
|
619
|
+
...options,
|
|
620
|
+
...params,
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
export class Workspace extends HeyApiClient {
|
|
625
|
+
/**
|
|
626
|
+
* Remove workspace
|
|
627
|
+
*
|
|
628
|
+
* Remove an existing workspace.
|
|
629
|
+
*/
|
|
630
|
+
remove(parameters, options) {
|
|
631
|
+
const params = buildClientParams([parameters], [
|
|
632
|
+
{
|
|
633
|
+
args: [
|
|
634
|
+
{ in: "path", key: "id" },
|
|
635
|
+
{ in: "query", key: "directory" },
|
|
636
|
+
{ in: "query", key: "workspace" },
|
|
637
|
+
],
|
|
638
|
+
},
|
|
639
|
+
]);
|
|
640
|
+
return (options?.client ?? this.client).delete({
|
|
641
|
+
url: "/experimental/workspace/{id}",
|
|
642
|
+
...options,
|
|
643
|
+
...params,
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Create workspace
|
|
648
|
+
*
|
|
649
|
+
* Create a workspace for the current project.
|
|
650
|
+
*/
|
|
651
|
+
create(parameters, options) {
|
|
652
|
+
const params = buildClientParams([parameters], [
|
|
653
|
+
{
|
|
654
|
+
args: [
|
|
655
|
+
{ in: "path", key: "id" },
|
|
656
|
+
{ in: "query", key: "directory" },
|
|
657
|
+
{ in: "query", key: "workspace" },
|
|
658
|
+
{ in: "body", key: "branch" },
|
|
659
|
+
{ in: "body", key: "config" },
|
|
660
|
+
],
|
|
661
|
+
},
|
|
662
|
+
]);
|
|
663
|
+
return (options?.client ?? this.client).post({
|
|
664
|
+
url: "/experimental/workspace/{id}",
|
|
665
|
+
...options,
|
|
666
|
+
...params,
|
|
667
|
+
headers: {
|
|
668
|
+
"Content-Type": "application/json",
|
|
669
|
+
...options?.headers,
|
|
670
|
+
...params.headers,
|
|
671
|
+
},
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* List workspaces
|
|
676
|
+
*
|
|
677
|
+
* List all workspaces.
|
|
678
|
+
*/
|
|
679
|
+
list(parameters, options) {
|
|
680
|
+
const params = buildClientParams([parameters], [
|
|
681
|
+
{
|
|
682
|
+
args: [
|
|
683
|
+
{ in: "query", key: "directory" },
|
|
684
|
+
{ in: "query", key: "workspace" },
|
|
685
|
+
],
|
|
686
|
+
},
|
|
687
|
+
]);
|
|
688
|
+
return (options?.client ?? this.client).get({
|
|
689
|
+
url: "/experimental/workspace",
|
|
690
|
+
...options,
|
|
691
|
+
...params,
|
|
692
|
+
});
|
|
693
|
+
}
|
|
519
694
|
}
|
|
520
695
|
export class Session extends HeyApiClient {
|
|
521
696
|
/**
|
|
@@ -528,6 +703,7 @@ export class Session extends HeyApiClient {
|
|
|
528
703
|
{
|
|
529
704
|
args: [
|
|
530
705
|
{ in: "query", key: "directory" },
|
|
706
|
+
{ in: "query", key: "workspace" },
|
|
531
707
|
{ in: "query", key: "roots" },
|
|
532
708
|
{ in: "query", key: "start" },
|
|
533
709
|
{ in: "query", key: "cursor" },
|
|
@@ -551,7 +727,14 @@ export class Resource extends HeyApiClient {
|
|
|
551
727
|
* Get all available MCP resources from connected servers. Optionally filter by name.
|
|
552
728
|
*/
|
|
553
729
|
list(parameters, options) {
|
|
554
|
-
const params = buildClientParams([parameters], [
|
|
730
|
+
const params = buildClientParams([parameters], [
|
|
731
|
+
{
|
|
732
|
+
args: [
|
|
733
|
+
{ in: "query", key: "directory" },
|
|
734
|
+
{ in: "query", key: "workspace" },
|
|
735
|
+
],
|
|
736
|
+
},
|
|
737
|
+
]);
|
|
555
738
|
return (options?.client ?? this.client).get({
|
|
556
739
|
url: "/experimental/resource",
|
|
557
740
|
...options,
|
|
@@ -560,6 +743,10 @@ export class Resource extends HeyApiClient {
|
|
|
560
743
|
}
|
|
561
744
|
}
|
|
562
745
|
export class Experimental extends HeyApiClient {
|
|
746
|
+
_workspace;
|
|
747
|
+
get workspace() {
|
|
748
|
+
return (this._workspace ??= new Workspace({ client: this.client }));
|
|
749
|
+
}
|
|
563
750
|
_session;
|
|
564
751
|
get session() {
|
|
565
752
|
return (this._session ??= new Session({ client: this.client }));
|
|
@@ -580,6 +767,7 @@ export class Session2 extends HeyApiClient {
|
|
|
580
767
|
{
|
|
581
768
|
args: [
|
|
582
769
|
{ in: "query", key: "directory" },
|
|
770
|
+
{ in: "query", key: "workspace" },
|
|
583
771
|
{ in: "query", key: "roots" },
|
|
584
772
|
{ in: "query", key: "start" },
|
|
585
773
|
{ in: "query", key: "search" },
|
|
@@ -603,6 +791,7 @@ export class Session2 extends HeyApiClient {
|
|
|
603
791
|
{
|
|
604
792
|
args: [
|
|
605
793
|
{ in: "query", key: "directory" },
|
|
794
|
+
{ in: "query", key: "workspace" },
|
|
606
795
|
{ in: "body", key: "parentID" },
|
|
607
796
|
{ in: "body", key: "title" },
|
|
608
797
|
{ in: "body", key: "permission" },
|
|
@@ -627,7 +816,14 @@ export class Session2 extends HeyApiClient {
|
|
|
627
816
|
* Retrieve the current status of all sessions, including active, idle, and completed states.
|
|
628
817
|
*/
|
|
629
818
|
status(parameters, options) {
|
|
630
|
-
const params = buildClientParams([parameters], [
|
|
819
|
+
const params = buildClientParams([parameters], [
|
|
820
|
+
{
|
|
821
|
+
args: [
|
|
822
|
+
{ in: "query", key: "directory" },
|
|
823
|
+
{ in: "query", key: "workspace" },
|
|
824
|
+
],
|
|
825
|
+
},
|
|
826
|
+
]);
|
|
631
827
|
return (options?.client ?? this.client).get({
|
|
632
828
|
url: "/session/status",
|
|
633
829
|
...options,
|
|
@@ -645,6 +841,7 @@ export class Session2 extends HeyApiClient {
|
|
|
645
841
|
args: [
|
|
646
842
|
{ in: "path", key: "sessionID" },
|
|
647
843
|
{ in: "query", key: "directory" },
|
|
844
|
+
{ in: "query", key: "workspace" },
|
|
648
845
|
],
|
|
649
846
|
},
|
|
650
847
|
]);
|
|
@@ -665,6 +862,7 @@ export class Session2 extends HeyApiClient {
|
|
|
665
862
|
args: [
|
|
666
863
|
{ in: "path", key: "sessionID" },
|
|
667
864
|
{ in: "query", key: "directory" },
|
|
865
|
+
{ in: "query", key: "workspace" },
|
|
668
866
|
],
|
|
669
867
|
},
|
|
670
868
|
]);
|
|
@@ -685,6 +883,7 @@ export class Session2 extends HeyApiClient {
|
|
|
685
883
|
args: [
|
|
686
884
|
{ in: "path", key: "sessionID" },
|
|
687
885
|
{ in: "query", key: "directory" },
|
|
886
|
+
{ in: "query", key: "workspace" },
|
|
688
887
|
{ in: "body", key: "title" },
|
|
689
888
|
{ in: "body", key: "time" },
|
|
690
889
|
],
|
|
@@ -712,6 +911,7 @@ export class Session2 extends HeyApiClient {
|
|
|
712
911
|
args: [
|
|
713
912
|
{ in: "path", key: "sessionID" },
|
|
714
913
|
{ in: "query", key: "directory" },
|
|
914
|
+
{ in: "query", key: "workspace" },
|
|
715
915
|
],
|
|
716
916
|
},
|
|
717
917
|
]);
|
|
@@ -732,6 +932,7 @@ export class Session2 extends HeyApiClient {
|
|
|
732
932
|
args: [
|
|
733
933
|
{ in: "path", key: "sessionID" },
|
|
734
934
|
{ in: "query", key: "directory" },
|
|
935
|
+
{ in: "query", key: "workspace" },
|
|
735
936
|
],
|
|
736
937
|
},
|
|
737
938
|
]);
|
|
@@ -752,6 +953,7 @@ export class Session2 extends HeyApiClient {
|
|
|
752
953
|
args: [
|
|
753
954
|
{ in: "path", key: "sessionID" },
|
|
754
955
|
{ in: "query", key: "directory" },
|
|
956
|
+
{ in: "query", key: "workspace" },
|
|
755
957
|
{ in: "body", key: "modelID" },
|
|
756
958
|
{ in: "body", key: "providerID" },
|
|
757
959
|
{ in: "body", key: "messageID" },
|
|
@@ -780,6 +982,7 @@ export class Session2 extends HeyApiClient {
|
|
|
780
982
|
args: [
|
|
781
983
|
{ in: "path", key: "sessionID" },
|
|
782
984
|
{ in: "query", key: "directory" },
|
|
985
|
+
{ in: "query", key: "workspace" },
|
|
783
986
|
{ in: "body", key: "messageID" },
|
|
784
987
|
],
|
|
785
988
|
},
|
|
@@ -806,6 +1009,7 @@ export class Session2 extends HeyApiClient {
|
|
|
806
1009
|
args: [
|
|
807
1010
|
{ in: "path", key: "sessionID" },
|
|
808
1011
|
{ in: "query", key: "directory" },
|
|
1012
|
+
{ in: "query", key: "workspace" },
|
|
809
1013
|
],
|
|
810
1014
|
},
|
|
811
1015
|
]);
|
|
@@ -826,6 +1030,7 @@ export class Session2 extends HeyApiClient {
|
|
|
826
1030
|
args: [
|
|
827
1031
|
{ in: "path", key: "sessionID" },
|
|
828
1032
|
{ in: "query", key: "directory" },
|
|
1033
|
+
{ in: "query", key: "workspace" },
|
|
829
1034
|
],
|
|
830
1035
|
},
|
|
831
1036
|
]);
|
|
@@ -846,6 +1051,7 @@ export class Session2 extends HeyApiClient {
|
|
|
846
1051
|
args: [
|
|
847
1052
|
{ in: "path", key: "sessionID" },
|
|
848
1053
|
{ in: "query", key: "directory" },
|
|
1054
|
+
{ in: "query", key: "workspace" },
|
|
849
1055
|
],
|
|
850
1056
|
},
|
|
851
1057
|
]);
|
|
@@ -866,6 +1072,7 @@ export class Session2 extends HeyApiClient {
|
|
|
866
1072
|
args: [
|
|
867
1073
|
{ in: "path", key: "sessionID" },
|
|
868
1074
|
{ in: "query", key: "directory" },
|
|
1075
|
+
{ in: "query", key: "workspace" },
|
|
869
1076
|
{ in: "query", key: "messageID" },
|
|
870
1077
|
],
|
|
871
1078
|
},
|
|
@@ -887,6 +1094,7 @@ export class Session2 extends HeyApiClient {
|
|
|
887
1094
|
args: [
|
|
888
1095
|
{ in: "path", key: "sessionID" },
|
|
889
1096
|
{ in: "query", key: "directory" },
|
|
1097
|
+
{ in: "query", key: "workspace" },
|
|
890
1098
|
{ in: "body", key: "providerID" },
|
|
891
1099
|
{ in: "body", key: "modelID" },
|
|
892
1100
|
{ in: "body", key: "auto" },
|
|
@@ -915,6 +1123,7 @@ export class Session2 extends HeyApiClient {
|
|
|
915
1123
|
args: [
|
|
916
1124
|
{ in: "path", key: "sessionID" },
|
|
917
1125
|
{ in: "query", key: "directory" },
|
|
1126
|
+
{ in: "query", key: "workspace" },
|
|
918
1127
|
{ in: "query", key: "limit" },
|
|
919
1128
|
],
|
|
920
1129
|
},
|
|
@@ -936,6 +1145,7 @@ export class Session2 extends HeyApiClient {
|
|
|
936
1145
|
args: [
|
|
937
1146
|
{ in: "path", key: "sessionID" },
|
|
938
1147
|
{ in: "query", key: "directory" },
|
|
1148
|
+
{ in: "query", key: "workspace" },
|
|
939
1149
|
{ in: "body", key: "messageID" },
|
|
940
1150
|
{ in: "body", key: "model" },
|
|
941
1151
|
{ in: "body", key: "agent" },
|
|
@@ -972,6 +1182,7 @@ export class Session2 extends HeyApiClient {
|
|
|
972
1182
|
{ in: "path", key: "sessionID" },
|
|
973
1183
|
{ in: "path", key: "messageID" },
|
|
974
1184
|
{ in: "query", key: "directory" },
|
|
1185
|
+
{ in: "query", key: "workspace" },
|
|
975
1186
|
],
|
|
976
1187
|
},
|
|
977
1188
|
]);
|
|
@@ -993,6 +1204,7 @@ export class Session2 extends HeyApiClient {
|
|
|
993
1204
|
{ in: "path", key: "sessionID" },
|
|
994
1205
|
{ in: "path", key: "messageID" },
|
|
995
1206
|
{ in: "query", key: "directory" },
|
|
1207
|
+
{ in: "query", key: "workspace" },
|
|
996
1208
|
],
|
|
997
1209
|
},
|
|
998
1210
|
]);
|
|
@@ -1013,6 +1225,7 @@ export class Session2 extends HeyApiClient {
|
|
|
1013
1225
|
args: [
|
|
1014
1226
|
{ in: "path", key: "sessionID" },
|
|
1015
1227
|
{ in: "query", key: "directory" },
|
|
1228
|
+
{ in: "query", key: "workspace" },
|
|
1016
1229
|
{ in: "body", key: "messageID" },
|
|
1017
1230
|
{ in: "body", key: "model" },
|
|
1018
1231
|
{ in: "body", key: "agent" },
|
|
@@ -1048,6 +1261,7 @@ export class Session2 extends HeyApiClient {
|
|
|
1048
1261
|
args: [
|
|
1049
1262
|
{ in: "path", key: "sessionID" },
|
|
1050
1263
|
{ in: "query", key: "directory" },
|
|
1264
|
+
{ in: "query", key: "workspace" },
|
|
1051
1265
|
{ in: "body", key: "messageID" },
|
|
1052
1266
|
{ in: "body", key: "agent" },
|
|
1053
1267
|
{ in: "body", key: "model" },
|
|
@@ -1080,6 +1294,7 @@ export class Session2 extends HeyApiClient {
|
|
|
1080
1294
|
args: [
|
|
1081
1295
|
{ in: "path", key: "sessionID" },
|
|
1082
1296
|
{ in: "query", key: "directory" },
|
|
1297
|
+
{ in: "query", key: "workspace" },
|
|
1083
1298
|
{ in: "body", key: "agent" },
|
|
1084
1299
|
{ in: "body", key: "model" },
|
|
1085
1300
|
{ in: "body", key: "command" },
|
|
@@ -1108,6 +1323,7 @@ export class Session2 extends HeyApiClient {
|
|
|
1108
1323
|
args: [
|
|
1109
1324
|
{ in: "path", key: "sessionID" },
|
|
1110
1325
|
{ in: "query", key: "directory" },
|
|
1326
|
+
{ in: "query", key: "workspace" },
|
|
1111
1327
|
{ in: "body", key: "messageID" },
|
|
1112
1328
|
{ in: "body", key: "partID" },
|
|
1113
1329
|
],
|
|
@@ -1135,6 +1351,7 @@ export class Session2 extends HeyApiClient {
|
|
|
1135
1351
|
args: [
|
|
1136
1352
|
{ in: "path", key: "sessionID" },
|
|
1137
1353
|
{ in: "query", key: "directory" },
|
|
1354
|
+
{ in: "query", key: "workspace" },
|
|
1138
1355
|
],
|
|
1139
1356
|
},
|
|
1140
1357
|
]);
|
|
@@ -1157,6 +1374,7 @@ export class Part extends HeyApiClient {
|
|
|
1157
1374
|
{ in: "path", key: "messageID" },
|
|
1158
1375
|
{ in: "path", key: "partID" },
|
|
1159
1376
|
{ in: "query", key: "directory" },
|
|
1377
|
+
{ in: "query", key: "workspace" },
|
|
1160
1378
|
],
|
|
1161
1379
|
},
|
|
1162
1380
|
]);
|
|
@@ -1177,6 +1395,7 @@ export class Part extends HeyApiClient {
|
|
|
1177
1395
|
{ in: "path", key: "messageID" },
|
|
1178
1396
|
{ in: "path", key: "partID" },
|
|
1179
1397
|
{ in: "query", key: "directory" },
|
|
1398
|
+
{ in: "query", key: "workspace" },
|
|
1180
1399
|
{ key: "part", map: "body" },
|
|
1181
1400
|
],
|
|
1182
1401
|
},
|
|
@@ -1208,6 +1427,7 @@ export class Permission extends HeyApiClient {
|
|
|
1208
1427
|
{ in: "path", key: "sessionID" },
|
|
1209
1428
|
{ in: "path", key: "permissionID" },
|
|
1210
1429
|
{ in: "query", key: "directory" },
|
|
1430
|
+
{ in: "query", key: "workspace" },
|
|
1211
1431
|
{ in: "body", key: "response" },
|
|
1212
1432
|
],
|
|
1213
1433
|
},
|
|
@@ -1234,6 +1454,7 @@ export class Permission extends HeyApiClient {
|
|
|
1234
1454
|
args: [
|
|
1235
1455
|
{ in: "path", key: "requestID" },
|
|
1236
1456
|
{ in: "query", key: "directory" },
|
|
1457
|
+
{ in: "query", key: "workspace" },
|
|
1237
1458
|
{ in: "body", key: "reply" },
|
|
1238
1459
|
{ in: "body", key: "message" },
|
|
1239
1460
|
],
|
|
@@ -1256,7 +1477,14 @@ export class Permission extends HeyApiClient {
|
|
|
1256
1477
|
* Get all pending permission requests across all sessions.
|
|
1257
1478
|
*/
|
|
1258
1479
|
list(parameters, options) {
|
|
1259
|
-
const params = buildClientParams([parameters], [
|
|
1480
|
+
const params = buildClientParams([parameters], [
|
|
1481
|
+
{
|
|
1482
|
+
args: [
|
|
1483
|
+
{ in: "query", key: "directory" },
|
|
1484
|
+
{ in: "query", key: "workspace" },
|
|
1485
|
+
],
|
|
1486
|
+
},
|
|
1487
|
+
]);
|
|
1260
1488
|
return (options?.client ?? this.client).get({
|
|
1261
1489
|
url: "/permission",
|
|
1262
1490
|
...options,
|
|
@@ -1271,7 +1499,14 @@ export class Question extends HeyApiClient {
|
|
|
1271
1499
|
* Get all pending question requests across all sessions.
|
|
1272
1500
|
*/
|
|
1273
1501
|
list(parameters, options) {
|
|
1274
|
-
const params = buildClientParams([parameters], [
|
|
1502
|
+
const params = buildClientParams([parameters], [
|
|
1503
|
+
{
|
|
1504
|
+
args: [
|
|
1505
|
+
{ in: "query", key: "directory" },
|
|
1506
|
+
{ in: "query", key: "workspace" },
|
|
1507
|
+
],
|
|
1508
|
+
},
|
|
1509
|
+
]);
|
|
1275
1510
|
return (options?.client ?? this.client).get({
|
|
1276
1511
|
url: "/question",
|
|
1277
1512
|
...options,
|
|
@@ -1289,6 +1524,7 @@ export class Question extends HeyApiClient {
|
|
|
1289
1524
|
args: [
|
|
1290
1525
|
{ in: "path", key: "requestID" },
|
|
1291
1526
|
{ in: "query", key: "directory" },
|
|
1527
|
+
{ in: "query", key: "workspace" },
|
|
1292
1528
|
{ in: "body", key: "answers" },
|
|
1293
1529
|
],
|
|
1294
1530
|
},
|
|
@@ -1315,6 +1551,7 @@ export class Question extends HeyApiClient {
|
|
|
1315
1551
|
args: [
|
|
1316
1552
|
{ in: "path", key: "requestID" },
|
|
1317
1553
|
{ in: "query", key: "directory" },
|
|
1554
|
+
{ in: "query", key: "workspace" },
|
|
1318
1555
|
],
|
|
1319
1556
|
},
|
|
1320
1557
|
]);
|
|
@@ -1337,6 +1574,7 @@ export class Oauth extends HeyApiClient {
|
|
|
1337
1574
|
args: [
|
|
1338
1575
|
{ in: "path", key: "providerID" },
|
|
1339
1576
|
{ in: "query", key: "directory" },
|
|
1577
|
+
{ in: "query", key: "workspace" },
|
|
1340
1578
|
{ in: "body", key: "method" },
|
|
1341
1579
|
],
|
|
1342
1580
|
},
|
|
@@ -1363,6 +1601,7 @@ export class Oauth extends HeyApiClient {
|
|
|
1363
1601
|
args: [
|
|
1364
1602
|
{ in: "path", key: "providerID" },
|
|
1365
1603
|
{ in: "query", key: "directory" },
|
|
1604
|
+
{ in: "query", key: "workspace" },
|
|
1366
1605
|
{ in: "body", key: "method" },
|
|
1367
1606
|
{ in: "body", key: "code" },
|
|
1368
1607
|
],
|
|
@@ -1387,7 +1626,14 @@ export class Provider extends HeyApiClient {
|
|
|
1387
1626
|
* Get a list of all available AI providers, including both available and connected ones.
|
|
1388
1627
|
*/
|
|
1389
1628
|
list(parameters, options) {
|
|
1390
|
-
const params = buildClientParams([parameters], [
|
|
1629
|
+
const params = buildClientParams([parameters], [
|
|
1630
|
+
{
|
|
1631
|
+
args: [
|
|
1632
|
+
{ in: "query", key: "directory" },
|
|
1633
|
+
{ in: "query", key: "workspace" },
|
|
1634
|
+
],
|
|
1635
|
+
},
|
|
1636
|
+
]);
|
|
1391
1637
|
return (options?.client ?? this.client).get({
|
|
1392
1638
|
url: "/provider",
|
|
1393
1639
|
...options,
|
|
@@ -1400,7 +1646,14 @@ export class Provider extends HeyApiClient {
|
|
|
1400
1646
|
* Retrieve available authentication methods for all AI providers.
|
|
1401
1647
|
*/
|
|
1402
1648
|
auth(parameters, options) {
|
|
1403
|
-
const params = buildClientParams([parameters], [
|
|
1649
|
+
const params = buildClientParams([parameters], [
|
|
1650
|
+
{
|
|
1651
|
+
args: [
|
|
1652
|
+
{ in: "query", key: "directory" },
|
|
1653
|
+
{ in: "query", key: "workspace" },
|
|
1654
|
+
],
|
|
1655
|
+
},
|
|
1656
|
+
]);
|
|
1404
1657
|
return (options?.client ?? this.client).get({
|
|
1405
1658
|
url: "/provider/auth",
|
|
1406
1659
|
...options,
|
|
@@ -1423,6 +1676,7 @@ export class Telemetry extends HeyApiClient {
|
|
|
1423
1676
|
{
|
|
1424
1677
|
args: [
|
|
1425
1678
|
{ in: "query", key: "directory" },
|
|
1679
|
+
{ in: "query", key: "workspace" },
|
|
1426
1680
|
{ in: "body", key: "event" },
|
|
1427
1681
|
{ in: "body", key: "properties" },
|
|
1428
1682
|
],
|
|
@@ -1451,6 +1705,7 @@ export class CommitMessage extends HeyApiClient {
|
|
|
1451
1705
|
{
|
|
1452
1706
|
args: [
|
|
1453
1707
|
{ in: "query", key: "directory" },
|
|
1708
|
+
{ in: "query", key: "workspace" },
|
|
1454
1709
|
{ in: "body", key: "path" },
|
|
1455
1710
|
{ in: "body", key: "selectedFiles" },
|
|
1456
1711
|
{ in: "body", key: "previousMessage" },
|
|
@@ -1480,6 +1735,7 @@ export class EnhancePrompt extends HeyApiClient {
|
|
|
1480
1735
|
{
|
|
1481
1736
|
args: [
|
|
1482
1737
|
{ in: "query", key: "directory" },
|
|
1738
|
+
{ in: "query", key: "workspace" },
|
|
1483
1739
|
{ in: "body", key: "text" },
|
|
1484
1740
|
],
|
|
1485
1741
|
},
|
|
@@ -1507,6 +1763,7 @@ export class Organization extends HeyApiClient {
|
|
|
1507
1763
|
{
|
|
1508
1764
|
args: [
|
|
1509
1765
|
{ in: "query", key: "directory" },
|
|
1766
|
+
{ in: "query", key: "workspace" },
|
|
1510
1767
|
{ in: "body", key: "organizationId" },
|
|
1511
1768
|
],
|
|
1512
1769
|
},
|
|
@@ -1535,6 +1792,7 @@ export class Session3 extends HeyApiClient {
|
|
|
1535
1792
|
args: [
|
|
1536
1793
|
{ in: "path", key: "id" },
|
|
1537
1794
|
{ in: "query", key: "directory" },
|
|
1795
|
+
{ in: "query", key: "workspace" },
|
|
1538
1796
|
],
|
|
1539
1797
|
},
|
|
1540
1798
|
]);
|
|
@@ -1554,6 +1812,7 @@ export class Session3 extends HeyApiClient {
|
|
|
1554
1812
|
{
|
|
1555
1813
|
args: [
|
|
1556
1814
|
{ in: "query", key: "directory" },
|
|
1815
|
+
{ in: "query", key: "workspace" },
|
|
1557
1816
|
{ in: "body", key: "sessionId" },
|
|
1558
1817
|
],
|
|
1559
1818
|
},
|
|
@@ -1583,7 +1842,14 @@ export class Kilo extends HeyApiClient {
|
|
|
1583
1842
|
* Fetch user profile and organizations from Kilo Gateway
|
|
1584
1843
|
*/
|
|
1585
1844
|
profile(parameters, options) {
|
|
1586
|
-
const params = buildClientParams([parameters], [
|
|
1845
|
+
const params = buildClientParams([parameters], [
|
|
1846
|
+
{
|
|
1847
|
+
args: [
|
|
1848
|
+
{ in: "query", key: "directory" },
|
|
1849
|
+
{ in: "query", key: "workspace" },
|
|
1850
|
+
],
|
|
1851
|
+
},
|
|
1852
|
+
]);
|
|
1587
1853
|
return (options?.client ?? this.client).get({
|
|
1588
1854
|
url: "/kilo/profile",
|
|
1589
1855
|
...options,
|
|
@@ -1600,6 +1866,7 @@ export class Kilo extends HeyApiClient {
|
|
|
1600
1866
|
{
|
|
1601
1867
|
args: [
|
|
1602
1868
|
{ in: "query", key: "directory" },
|
|
1869
|
+
{ in: "query", key: "workspace" },
|
|
1603
1870
|
{ in: "body", key: "prefix" },
|
|
1604
1871
|
{ in: "body", key: "suffix" },
|
|
1605
1872
|
{ in: "body", key: "model" },
|
|
@@ -1625,7 +1892,14 @@ export class Kilo extends HeyApiClient {
|
|
|
1625
1892
|
* Fetch notifications from Kilo Gateway for CLI display
|
|
1626
1893
|
*/
|
|
1627
1894
|
notifications(parameters, options) {
|
|
1628
|
-
const params = buildClientParams([parameters], [
|
|
1895
|
+
const params = buildClientParams([parameters], [
|
|
1896
|
+
{
|
|
1897
|
+
args: [
|
|
1898
|
+
{ in: "query", key: "directory" },
|
|
1899
|
+
{ in: "query", key: "workspace" },
|
|
1900
|
+
],
|
|
1901
|
+
},
|
|
1902
|
+
]);
|
|
1629
1903
|
return (options?.client ?? this.client).get({
|
|
1630
1904
|
url: "/kilo/notifications",
|
|
1631
1905
|
...options,
|
|
@@ -1642,6 +1916,7 @@ export class Kilo extends HeyApiClient {
|
|
|
1642
1916
|
{
|
|
1643
1917
|
args: [
|
|
1644
1918
|
{ in: "query", key: "directory" },
|
|
1919
|
+
{ in: "query", key: "workspace" },
|
|
1645
1920
|
{ in: "query", key: "cursor" },
|
|
1646
1921
|
{ in: "query", key: "limit" },
|
|
1647
1922
|
{ in: "query", key: "gitUrl" },
|
|
@@ -1674,6 +1949,7 @@ export class Find extends HeyApiClient {
|
|
|
1674
1949
|
{
|
|
1675
1950
|
args: [
|
|
1676
1951
|
{ in: "query", key: "directory" },
|
|
1952
|
+
{ in: "query", key: "workspace" },
|
|
1677
1953
|
{ in: "query", key: "pattern" },
|
|
1678
1954
|
],
|
|
1679
1955
|
},
|
|
@@ -1694,6 +1970,7 @@ export class Find extends HeyApiClient {
|
|
|
1694
1970
|
{
|
|
1695
1971
|
args: [
|
|
1696
1972
|
{ in: "query", key: "directory" },
|
|
1973
|
+
{ in: "query", key: "workspace" },
|
|
1697
1974
|
{ in: "query", key: "query" },
|
|
1698
1975
|
{ in: "query", key: "dirs" },
|
|
1699
1976
|
{ in: "query", key: "type" },
|
|
@@ -1717,6 +1994,7 @@ export class Find extends HeyApiClient {
|
|
|
1717
1994
|
{
|
|
1718
1995
|
args: [
|
|
1719
1996
|
{ in: "query", key: "directory" },
|
|
1997
|
+
{ in: "query", key: "workspace" },
|
|
1720
1998
|
{ in: "query", key: "query" },
|
|
1721
1999
|
],
|
|
1722
2000
|
},
|
|
@@ -1739,6 +2017,7 @@ export class File extends HeyApiClient {
|
|
|
1739
2017
|
{
|
|
1740
2018
|
args: [
|
|
1741
2019
|
{ in: "query", key: "directory" },
|
|
2020
|
+
{ in: "query", key: "workspace" },
|
|
1742
2021
|
{ in: "query", key: "path" },
|
|
1743
2022
|
],
|
|
1744
2023
|
},
|
|
@@ -1759,6 +2038,7 @@ export class File extends HeyApiClient {
|
|
|
1759
2038
|
{
|
|
1760
2039
|
args: [
|
|
1761
2040
|
{ in: "query", key: "directory" },
|
|
2041
|
+
{ in: "query", key: "workspace" },
|
|
1762
2042
|
{ in: "query", key: "path" },
|
|
1763
2043
|
],
|
|
1764
2044
|
},
|
|
@@ -1775,7 +2055,14 @@ export class File extends HeyApiClient {
|
|
|
1775
2055
|
* Get the git status of all files in the project.
|
|
1776
2056
|
*/
|
|
1777
2057
|
status(parameters, options) {
|
|
1778
|
-
const params = buildClientParams([parameters], [
|
|
2058
|
+
const params = buildClientParams([parameters], [
|
|
2059
|
+
{
|
|
2060
|
+
args: [
|
|
2061
|
+
{ in: "query", key: "directory" },
|
|
2062
|
+
{ in: "query", key: "workspace" },
|
|
2063
|
+
],
|
|
2064
|
+
},
|
|
2065
|
+
]);
|
|
1779
2066
|
return (options?.client ?? this.client).get({
|
|
1780
2067
|
url: "/file/status",
|
|
1781
2068
|
...options,
|
|
@@ -1795,6 +2082,7 @@ export class Auth2 extends HeyApiClient {
|
|
|
1795
2082
|
args: [
|
|
1796
2083
|
{ in: "path", key: "name" },
|
|
1797
2084
|
{ in: "query", key: "directory" },
|
|
2085
|
+
{ in: "query", key: "workspace" },
|
|
1798
2086
|
],
|
|
1799
2087
|
},
|
|
1800
2088
|
]);
|
|
@@ -1815,6 +2103,7 @@ export class Auth2 extends HeyApiClient {
|
|
|
1815
2103
|
args: [
|
|
1816
2104
|
{ in: "path", key: "name" },
|
|
1817
2105
|
{ in: "query", key: "directory" },
|
|
2106
|
+
{ in: "query", key: "workspace" },
|
|
1818
2107
|
],
|
|
1819
2108
|
},
|
|
1820
2109
|
]);
|
|
@@ -1835,6 +2124,7 @@ export class Auth2 extends HeyApiClient {
|
|
|
1835
2124
|
args: [
|
|
1836
2125
|
{ in: "path", key: "name" },
|
|
1837
2126
|
{ in: "query", key: "directory" },
|
|
2127
|
+
{ in: "query", key: "workspace" },
|
|
1838
2128
|
{ in: "body", key: "code" },
|
|
1839
2129
|
],
|
|
1840
2130
|
},
|
|
@@ -1861,6 +2151,7 @@ export class Auth2 extends HeyApiClient {
|
|
|
1861
2151
|
args: [
|
|
1862
2152
|
{ in: "path", key: "name" },
|
|
1863
2153
|
{ in: "query", key: "directory" },
|
|
2154
|
+
{ in: "query", key: "workspace" },
|
|
1864
2155
|
],
|
|
1865
2156
|
},
|
|
1866
2157
|
]);
|
|
@@ -1878,7 +2169,14 @@ export class Mcp extends HeyApiClient {
|
|
|
1878
2169
|
* Get the status of all Model Context Protocol (MCP) servers.
|
|
1879
2170
|
*/
|
|
1880
2171
|
status(parameters, options) {
|
|
1881
|
-
const params = buildClientParams([parameters], [
|
|
2172
|
+
const params = buildClientParams([parameters], [
|
|
2173
|
+
{
|
|
2174
|
+
args: [
|
|
2175
|
+
{ in: "query", key: "directory" },
|
|
2176
|
+
{ in: "query", key: "workspace" },
|
|
2177
|
+
],
|
|
2178
|
+
},
|
|
2179
|
+
]);
|
|
1882
2180
|
return (options?.client ?? this.client).get({
|
|
1883
2181
|
url: "/mcp",
|
|
1884
2182
|
...options,
|
|
@@ -1895,6 +2193,7 @@ export class Mcp extends HeyApiClient {
|
|
|
1895
2193
|
{
|
|
1896
2194
|
args: [
|
|
1897
2195
|
{ in: "query", key: "directory" },
|
|
2196
|
+
{ in: "query", key: "workspace" },
|
|
1898
2197
|
{ in: "body", key: "name" },
|
|
1899
2198
|
{ in: "body", key: "config" },
|
|
1900
2199
|
],
|
|
@@ -1920,6 +2219,7 @@ export class Mcp extends HeyApiClient {
|
|
|
1920
2219
|
args: [
|
|
1921
2220
|
{ in: "path", key: "name" },
|
|
1922
2221
|
{ in: "query", key: "directory" },
|
|
2222
|
+
{ in: "query", key: "workspace" },
|
|
1923
2223
|
],
|
|
1924
2224
|
},
|
|
1925
2225
|
]);
|
|
@@ -1938,6 +2238,7 @@ export class Mcp extends HeyApiClient {
|
|
|
1938
2238
|
args: [
|
|
1939
2239
|
{ in: "path", key: "name" },
|
|
1940
2240
|
{ in: "query", key: "directory" },
|
|
2241
|
+
{ in: "query", key: "workspace" },
|
|
1941
2242
|
],
|
|
1942
2243
|
},
|
|
1943
2244
|
]);
|
|
@@ -1959,7 +2260,14 @@ export class Control extends HeyApiClient {
|
|
|
1959
2260
|
* Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
|
|
1960
2261
|
*/
|
|
1961
2262
|
next(parameters, options) {
|
|
1962
|
-
const params = buildClientParams([parameters], [
|
|
2263
|
+
const params = buildClientParams([parameters], [
|
|
2264
|
+
{
|
|
2265
|
+
args: [
|
|
2266
|
+
{ in: "query", key: "directory" },
|
|
2267
|
+
{ in: "query", key: "workspace" },
|
|
2268
|
+
],
|
|
2269
|
+
},
|
|
2270
|
+
]);
|
|
1963
2271
|
return (options?.client ?? this.client).get({
|
|
1964
2272
|
url: "/tui/control/next",
|
|
1965
2273
|
...options,
|
|
@@ -1976,6 +2284,7 @@ export class Control extends HeyApiClient {
|
|
|
1976
2284
|
{
|
|
1977
2285
|
args: [
|
|
1978
2286
|
{ in: "query", key: "directory" },
|
|
2287
|
+
{ in: "query", key: "workspace" },
|
|
1979
2288
|
{ key: "body", map: "body" },
|
|
1980
2289
|
],
|
|
1981
2290
|
},
|
|
@@ -2003,6 +2312,7 @@ export class Tui extends HeyApiClient {
|
|
|
2003
2312
|
{
|
|
2004
2313
|
args: [
|
|
2005
2314
|
{ in: "query", key: "directory" },
|
|
2315
|
+
{ in: "query", key: "workspace" },
|
|
2006
2316
|
{ in: "body", key: "text" },
|
|
2007
2317
|
],
|
|
2008
2318
|
},
|
|
@@ -2024,7 +2334,14 @@ export class Tui extends HeyApiClient {
|
|
|
2024
2334
|
* Open the help dialog in the TUI to display user assistance information.
|
|
2025
2335
|
*/
|
|
2026
2336
|
openHelp(parameters, options) {
|
|
2027
|
-
const params = buildClientParams([parameters], [
|
|
2337
|
+
const params = buildClientParams([parameters], [
|
|
2338
|
+
{
|
|
2339
|
+
args: [
|
|
2340
|
+
{ in: "query", key: "directory" },
|
|
2341
|
+
{ in: "query", key: "workspace" },
|
|
2342
|
+
],
|
|
2343
|
+
},
|
|
2344
|
+
]);
|
|
2028
2345
|
return (options?.client ?? this.client).post({
|
|
2029
2346
|
url: "/tui/open-help",
|
|
2030
2347
|
...options,
|
|
@@ -2037,7 +2354,14 @@ export class Tui extends HeyApiClient {
|
|
|
2037
2354
|
* Open the session dialog
|
|
2038
2355
|
*/
|
|
2039
2356
|
openSessions(parameters, options) {
|
|
2040
|
-
const params = buildClientParams([parameters], [
|
|
2357
|
+
const params = buildClientParams([parameters], [
|
|
2358
|
+
{
|
|
2359
|
+
args: [
|
|
2360
|
+
{ in: "query", key: "directory" },
|
|
2361
|
+
{ in: "query", key: "workspace" },
|
|
2362
|
+
],
|
|
2363
|
+
},
|
|
2364
|
+
]);
|
|
2041
2365
|
return (options?.client ?? this.client).post({
|
|
2042
2366
|
url: "/tui/open-sessions",
|
|
2043
2367
|
...options,
|
|
@@ -2050,7 +2374,14 @@ export class Tui extends HeyApiClient {
|
|
|
2050
2374
|
* Open the theme dialog
|
|
2051
2375
|
*/
|
|
2052
2376
|
openThemes(parameters, options) {
|
|
2053
|
-
const params = buildClientParams([parameters], [
|
|
2377
|
+
const params = buildClientParams([parameters], [
|
|
2378
|
+
{
|
|
2379
|
+
args: [
|
|
2380
|
+
{ in: "query", key: "directory" },
|
|
2381
|
+
{ in: "query", key: "workspace" },
|
|
2382
|
+
],
|
|
2383
|
+
},
|
|
2384
|
+
]);
|
|
2054
2385
|
return (options?.client ?? this.client).post({
|
|
2055
2386
|
url: "/tui/open-themes",
|
|
2056
2387
|
...options,
|
|
@@ -2063,7 +2394,14 @@ export class Tui extends HeyApiClient {
|
|
|
2063
2394
|
* Open the model dialog
|
|
2064
2395
|
*/
|
|
2065
2396
|
openModels(parameters, options) {
|
|
2066
|
-
const params = buildClientParams([parameters], [
|
|
2397
|
+
const params = buildClientParams([parameters], [
|
|
2398
|
+
{
|
|
2399
|
+
args: [
|
|
2400
|
+
{ in: "query", key: "directory" },
|
|
2401
|
+
{ in: "query", key: "workspace" },
|
|
2402
|
+
],
|
|
2403
|
+
},
|
|
2404
|
+
]);
|
|
2067
2405
|
return (options?.client ?? this.client).post({
|
|
2068
2406
|
url: "/tui/open-models",
|
|
2069
2407
|
...options,
|
|
@@ -2076,7 +2414,14 @@ export class Tui extends HeyApiClient {
|
|
|
2076
2414
|
* Submit the prompt
|
|
2077
2415
|
*/
|
|
2078
2416
|
submitPrompt(parameters, options) {
|
|
2079
|
-
const params = buildClientParams([parameters], [
|
|
2417
|
+
const params = buildClientParams([parameters], [
|
|
2418
|
+
{
|
|
2419
|
+
args: [
|
|
2420
|
+
{ in: "query", key: "directory" },
|
|
2421
|
+
{ in: "query", key: "workspace" },
|
|
2422
|
+
],
|
|
2423
|
+
},
|
|
2424
|
+
]);
|
|
2080
2425
|
return (options?.client ?? this.client).post({
|
|
2081
2426
|
url: "/tui/submit-prompt",
|
|
2082
2427
|
...options,
|
|
@@ -2089,7 +2434,14 @@ export class Tui extends HeyApiClient {
|
|
|
2089
2434
|
* Clear the prompt
|
|
2090
2435
|
*/
|
|
2091
2436
|
clearPrompt(parameters, options) {
|
|
2092
|
-
const params = buildClientParams([parameters], [
|
|
2437
|
+
const params = buildClientParams([parameters], [
|
|
2438
|
+
{
|
|
2439
|
+
args: [
|
|
2440
|
+
{ in: "query", key: "directory" },
|
|
2441
|
+
{ in: "query", key: "workspace" },
|
|
2442
|
+
],
|
|
2443
|
+
},
|
|
2444
|
+
]);
|
|
2093
2445
|
return (options?.client ?? this.client).post({
|
|
2094
2446
|
url: "/tui/clear-prompt",
|
|
2095
2447
|
...options,
|
|
@@ -2106,6 +2458,7 @@ export class Tui extends HeyApiClient {
|
|
|
2106
2458
|
{
|
|
2107
2459
|
args: [
|
|
2108
2460
|
{ in: "query", key: "directory" },
|
|
2461
|
+
{ in: "query", key: "workspace" },
|
|
2109
2462
|
{ in: "body", key: "command" },
|
|
2110
2463
|
],
|
|
2111
2464
|
},
|
|
@@ -2131,6 +2484,7 @@ export class Tui extends HeyApiClient {
|
|
|
2131
2484
|
{
|
|
2132
2485
|
args: [
|
|
2133
2486
|
{ in: "query", key: "directory" },
|
|
2487
|
+
{ in: "query", key: "workspace" },
|
|
2134
2488
|
{ in: "body", key: "title" },
|
|
2135
2489
|
{ in: "body", key: "message" },
|
|
2136
2490
|
{ in: "body", key: "variant" },
|
|
@@ -2159,6 +2513,7 @@ export class Tui extends HeyApiClient {
|
|
|
2159
2513
|
{
|
|
2160
2514
|
args: [
|
|
2161
2515
|
{ in: "query", key: "directory" },
|
|
2516
|
+
{ in: "query", key: "workspace" },
|
|
2162
2517
|
{ key: "body", map: "body" },
|
|
2163
2518
|
],
|
|
2164
2519
|
},
|
|
@@ -2184,6 +2539,7 @@ export class Tui extends HeyApiClient {
|
|
|
2184
2539
|
{
|
|
2185
2540
|
args: [
|
|
2186
2541
|
{ in: "query", key: "directory" },
|
|
2542
|
+
{ in: "query", key: "workspace" },
|
|
2187
2543
|
{ in: "body", key: "sessionID" },
|
|
2188
2544
|
],
|
|
2189
2545
|
},
|
|
@@ -2211,7 +2567,14 @@ export class Instance extends HeyApiClient {
|
|
|
2211
2567
|
* Clean up and dispose the current OpenCode instance, releasing all resources.
|
|
2212
2568
|
*/
|
|
2213
2569
|
dispose(parameters, options) {
|
|
2214
|
-
const params = buildClientParams([parameters], [
|
|
2570
|
+
const params = buildClientParams([parameters], [
|
|
2571
|
+
{
|
|
2572
|
+
args: [
|
|
2573
|
+
{ in: "query", key: "directory" },
|
|
2574
|
+
{ in: "query", key: "workspace" },
|
|
2575
|
+
],
|
|
2576
|
+
},
|
|
2577
|
+
]);
|
|
2215
2578
|
return (options?.client ?? this.client).post({
|
|
2216
2579
|
url: "/instance/dispose",
|
|
2217
2580
|
...options,
|
|
@@ -2226,7 +2589,14 @@ export class Path extends HeyApiClient {
|
|
|
2226
2589
|
* Retrieve the current working directory and related path information for the OpenCode instance.
|
|
2227
2590
|
*/
|
|
2228
2591
|
get(parameters, options) {
|
|
2229
|
-
const params = buildClientParams([parameters], [
|
|
2592
|
+
const params = buildClientParams([parameters], [
|
|
2593
|
+
{
|
|
2594
|
+
args: [
|
|
2595
|
+
{ in: "query", key: "directory" },
|
|
2596
|
+
{ in: "query", key: "workspace" },
|
|
2597
|
+
],
|
|
2598
|
+
},
|
|
2599
|
+
]);
|
|
2230
2600
|
return (options?.client ?? this.client).get({
|
|
2231
2601
|
url: "/path",
|
|
2232
2602
|
...options,
|
|
@@ -2241,7 +2611,14 @@ export class Vcs extends HeyApiClient {
|
|
|
2241
2611
|
* Retrieve version control system (VCS) information for the current project, such as git branch.
|
|
2242
2612
|
*/
|
|
2243
2613
|
get(parameters, options) {
|
|
2244
|
-
const params = buildClientParams([parameters], [
|
|
2614
|
+
const params = buildClientParams([parameters], [
|
|
2615
|
+
{
|
|
2616
|
+
args: [
|
|
2617
|
+
{ in: "query", key: "directory" },
|
|
2618
|
+
{ in: "query", key: "workspace" },
|
|
2619
|
+
],
|
|
2620
|
+
},
|
|
2621
|
+
]);
|
|
2245
2622
|
return (options?.client ?? this.client).get({
|
|
2246
2623
|
url: "/vcs",
|
|
2247
2624
|
...options,
|
|
@@ -2256,7 +2633,14 @@ export class Command extends HeyApiClient {
|
|
|
2256
2633
|
* Get a list of all available commands in the OpenCode system.
|
|
2257
2634
|
*/
|
|
2258
2635
|
list(parameters, options) {
|
|
2259
|
-
const params = buildClientParams([parameters], [
|
|
2636
|
+
const params = buildClientParams([parameters], [
|
|
2637
|
+
{
|
|
2638
|
+
args: [
|
|
2639
|
+
{ in: "query", key: "directory" },
|
|
2640
|
+
{ in: "query", key: "workspace" },
|
|
2641
|
+
],
|
|
2642
|
+
},
|
|
2643
|
+
]);
|
|
2260
2644
|
return (options?.client ?? this.client).get({
|
|
2261
2645
|
url: "/command",
|
|
2262
2646
|
...options,
|
|
@@ -2275,6 +2659,7 @@ export class App extends HeyApiClient {
|
|
|
2275
2659
|
{
|
|
2276
2660
|
args: [
|
|
2277
2661
|
{ in: "query", key: "directory" },
|
|
2662
|
+
{ in: "query", key: "workspace" },
|
|
2278
2663
|
{ in: "body", key: "service" },
|
|
2279
2664
|
{ in: "body", key: "level" },
|
|
2280
2665
|
{ in: "body", key: "message" },
|
|
@@ -2299,7 +2684,14 @@ export class App extends HeyApiClient {
|
|
|
2299
2684
|
* Get a list of all available AI agents in the OpenCode system.
|
|
2300
2685
|
*/
|
|
2301
2686
|
agents(parameters, options) {
|
|
2302
|
-
const params = buildClientParams([parameters], [
|
|
2687
|
+
const params = buildClientParams([parameters], [
|
|
2688
|
+
{
|
|
2689
|
+
args: [
|
|
2690
|
+
{ in: "query", key: "directory" },
|
|
2691
|
+
{ in: "query", key: "workspace" },
|
|
2692
|
+
],
|
|
2693
|
+
},
|
|
2694
|
+
]);
|
|
2303
2695
|
return (options?.client ?? this.client).get({
|
|
2304
2696
|
url: "/agent",
|
|
2305
2697
|
...options,
|
|
@@ -2312,7 +2704,14 @@ export class App extends HeyApiClient {
|
|
|
2312
2704
|
* Get a list of all available skills in the OpenCode system.
|
|
2313
2705
|
*/
|
|
2314
2706
|
skills(parameters, options) {
|
|
2315
|
-
const params = buildClientParams([parameters], [
|
|
2707
|
+
const params = buildClientParams([parameters], [
|
|
2708
|
+
{
|
|
2709
|
+
args: [
|
|
2710
|
+
{ in: "query", key: "directory" },
|
|
2711
|
+
{ in: "query", key: "workspace" },
|
|
2712
|
+
],
|
|
2713
|
+
},
|
|
2714
|
+
]);
|
|
2316
2715
|
return (options?.client ?? this.client).get({
|
|
2317
2716
|
url: "/skill",
|
|
2318
2717
|
...options,
|
|
@@ -2327,7 +2726,14 @@ export class Lsp extends HeyApiClient {
|
|
|
2327
2726
|
* Get LSP server status
|
|
2328
2727
|
*/
|
|
2329
2728
|
status(parameters, options) {
|
|
2330
|
-
const params = buildClientParams([parameters], [
|
|
2729
|
+
const params = buildClientParams([parameters], [
|
|
2730
|
+
{
|
|
2731
|
+
args: [
|
|
2732
|
+
{ in: "query", key: "directory" },
|
|
2733
|
+
{ in: "query", key: "workspace" },
|
|
2734
|
+
],
|
|
2735
|
+
},
|
|
2736
|
+
]);
|
|
2331
2737
|
return (options?.client ?? this.client).get({
|
|
2332
2738
|
url: "/lsp",
|
|
2333
2739
|
...options,
|
|
@@ -2342,7 +2748,14 @@ export class Formatter extends HeyApiClient {
|
|
|
2342
2748
|
* Get formatter status
|
|
2343
2749
|
*/
|
|
2344
2750
|
status(parameters, options) {
|
|
2345
|
-
const params = buildClientParams([parameters], [
|
|
2751
|
+
const params = buildClientParams([parameters], [
|
|
2752
|
+
{
|
|
2753
|
+
args: [
|
|
2754
|
+
{ in: "query", key: "directory" },
|
|
2755
|
+
{ in: "query", key: "workspace" },
|
|
2756
|
+
],
|
|
2757
|
+
},
|
|
2758
|
+
]);
|
|
2346
2759
|
return (options?.client ?? this.client).get({
|
|
2347
2760
|
url: "/formatter",
|
|
2348
2761
|
...options,
|
|
@@ -2357,7 +2770,14 @@ export class Event extends HeyApiClient {
|
|
|
2357
2770
|
* Get events
|
|
2358
2771
|
*/
|
|
2359
2772
|
subscribe(parameters, options) {
|
|
2360
|
-
const params = buildClientParams([parameters], [
|
|
2773
|
+
const params = buildClientParams([parameters], [
|
|
2774
|
+
{
|
|
2775
|
+
args: [
|
|
2776
|
+
{ in: "query", key: "directory" },
|
|
2777
|
+
{ in: "query", key: "workspace" },
|
|
2778
|
+
],
|
|
2779
|
+
},
|
|
2780
|
+
]);
|
|
2361
2781
|
return (options?.client ?? this.client).sse.get({
|
|
2362
2782
|
url: "/event",
|
|
2363
2783
|
...options,
|