@matrix-ai/sdk 0.0.0-dev-202602240302 → 0.0.0-dev-202603070341
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 +173 -25
- package/dist/v2/gen/sdk.gen.js +469 -73
- package/dist/v2/gen/types.gen.d.ts +238 -409
- package/package.json +8 -29
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,13 +158,40 @@ 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,
|
|
158
172
|
...params,
|
|
159
173
|
});
|
|
160
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
|
+
}
|
|
161
195
|
/**
|
|
162
196
|
* Update project
|
|
163
197
|
*
|
|
@@ -169,6 +203,7 @@ export class Project extends HeyApiClient {
|
|
|
169
203
|
args: [
|
|
170
204
|
{ in: "path", key: "projectID" },
|
|
171
205
|
{ in: "query", key: "directory" },
|
|
206
|
+
{ in: "query", key: "workspace" },
|
|
172
207
|
{ in: "body", key: "name" },
|
|
173
208
|
{ in: "body", key: "icon" },
|
|
174
209
|
{ in: "body", key: "commands" },
|
|
@@ -194,7 +229,14 @@ export class Pty extends HeyApiClient {
|
|
|
194
229
|
* Get a list of all active pseudo-terminal (PTY) sessions managed by OpenCode.
|
|
195
230
|
*/
|
|
196
231
|
list(parameters, options) {
|
|
197
|
-
const params = buildClientParams([parameters], [
|
|
232
|
+
const params = buildClientParams([parameters], [
|
|
233
|
+
{
|
|
234
|
+
args: [
|
|
235
|
+
{ in: "query", key: "directory" },
|
|
236
|
+
{ in: "query", key: "workspace" },
|
|
237
|
+
],
|
|
238
|
+
},
|
|
239
|
+
]);
|
|
198
240
|
return (options?.client ?? this.client).get({
|
|
199
241
|
url: "/pty",
|
|
200
242
|
...options,
|
|
@@ -211,6 +253,7 @@ export class Pty extends HeyApiClient {
|
|
|
211
253
|
{
|
|
212
254
|
args: [
|
|
213
255
|
{ in: "query", key: "directory" },
|
|
256
|
+
{ in: "query", key: "workspace" },
|
|
214
257
|
{ in: "body", key: "command" },
|
|
215
258
|
{ in: "body", key: "args" },
|
|
216
259
|
{ in: "body", key: "cwd" },
|
|
@@ -241,6 +284,7 @@ export class Pty extends HeyApiClient {
|
|
|
241
284
|
args: [
|
|
242
285
|
{ in: "path", key: "ptyID" },
|
|
243
286
|
{ in: "query", key: "directory" },
|
|
287
|
+
{ in: "query", key: "workspace" },
|
|
244
288
|
],
|
|
245
289
|
},
|
|
246
290
|
]);
|
|
@@ -261,6 +305,7 @@ export class Pty extends HeyApiClient {
|
|
|
261
305
|
args: [
|
|
262
306
|
{ in: "path", key: "ptyID" },
|
|
263
307
|
{ in: "query", key: "directory" },
|
|
308
|
+
{ in: "query", key: "workspace" },
|
|
264
309
|
],
|
|
265
310
|
},
|
|
266
311
|
]);
|
|
@@ -281,6 +326,7 @@ export class Pty extends HeyApiClient {
|
|
|
281
326
|
args: [
|
|
282
327
|
{ in: "path", key: "ptyID" },
|
|
283
328
|
{ in: "query", key: "directory" },
|
|
329
|
+
{ in: "query", key: "workspace" },
|
|
284
330
|
{ in: "body", key: "title" },
|
|
285
331
|
{ in: "body", key: "size" },
|
|
286
332
|
],
|
|
@@ -308,6 +354,7 @@ export class Pty extends HeyApiClient {
|
|
|
308
354
|
args: [
|
|
309
355
|
{ in: "path", key: "ptyID" },
|
|
310
356
|
{ in: "query", key: "directory" },
|
|
357
|
+
{ in: "query", key: "workspace" },
|
|
311
358
|
],
|
|
312
359
|
},
|
|
313
360
|
]);
|
|
@@ -325,7 +372,14 @@ export class Config2 extends HeyApiClient {
|
|
|
325
372
|
* Retrieve the current OpenCode configuration settings and preferences.
|
|
326
373
|
*/
|
|
327
374
|
get(parameters, options) {
|
|
328
|
-
const params = buildClientParams([parameters], [
|
|
375
|
+
const params = buildClientParams([parameters], [
|
|
376
|
+
{
|
|
377
|
+
args: [
|
|
378
|
+
{ in: "query", key: "directory" },
|
|
379
|
+
{ in: "query", key: "workspace" },
|
|
380
|
+
],
|
|
381
|
+
},
|
|
382
|
+
]);
|
|
329
383
|
return (options?.client ?? this.client).get({
|
|
330
384
|
url: "/config",
|
|
331
385
|
...options,
|
|
@@ -342,6 +396,7 @@ export class Config2 extends HeyApiClient {
|
|
|
342
396
|
{
|
|
343
397
|
args: [
|
|
344
398
|
{ in: "query", key: "directory" },
|
|
399
|
+
{ in: "query", key: "workspace" },
|
|
345
400
|
{ key: "config", map: "body" },
|
|
346
401
|
],
|
|
347
402
|
},
|
|
@@ -363,7 +418,14 @@ export class Config2 extends HeyApiClient {
|
|
|
363
418
|
* Get a list of all configured AI providers and their default models.
|
|
364
419
|
*/
|
|
365
420
|
providers(parameters, options) {
|
|
366
|
-
const params = buildClientParams([parameters], [
|
|
421
|
+
const params = buildClientParams([parameters], [
|
|
422
|
+
{
|
|
423
|
+
args: [
|
|
424
|
+
{ in: "query", key: "directory" },
|
|
425
|
+
{ in: "query", key: "workspace" },
|
|
426
|
+
],
|
|
427
|
+
},
|
|
428
|
+
]);
|
|
367
429
|
return (options?.client ?? this.client).get({
|
|
368
430
|
url: "/config/providers",
|
|
369
431
|
...options,
|
|
@@ -378,7 +440,14 @@ export class Tool extends HeyApiClient {
|
|
|
378
440
|
* Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
|
|
379
441
|
*/
|
|
380
442
|
ids(parameters, options) {
|
|
381
|
-
const params = buildClientParams([parameters], [
|
|
443
|
+
const params = buildClientParams([parameters], [
|
|
444
|
+
{
|
|
445
|
+
args: [
|
|
446
|
+
{ in: "query", key: "directory" },
|
|
447
|
+
{ in: "query", key: "workspace" },
|
|
448
|
+
],
|
|
449
|
+
},
|
|
450
|
+
]);
|
|
382
451
|
return (options?.client ?? this.client).get({
|
|
383
452
|
url: "/experimental/tool/ids",
|
|
384
453
|
...options,
|
|
@@ -395,6 +464,7 @@ export class Tool extends HeyApiClient {
|
|
|
395
464
|
{
|
|
396
465
|
args: [
|
|
397
466
|
{ in: "query", key: "directory" },
|
|
467
|
+
{ in: "query", key: "workspace" },
|
|
398
468
|
{ in: "query", key: "provider" },
|
|
399
469
|
{ in: "query", key: "model" },
|
|
400
470
|
],
|
|
@@ -407,61 +477,47 @@ export class Tool extends HeyApiClient {
|
|
|
407
477
|
});
|
|
408
478
|
}
|
|
409
479
|
}
|
|
410
|
-
export class
|
|
480
|
+
export class Workspace extends HeyApiClient {
|
|
411
481
|
/**
|
|
412
|
-
*
|
|
482
|
+
* List workspaces
|
|
413
483
|
*
|
|
414
|
-
*
|
|
484
|
+
* List all workspaces.
|
|
415
485
|
*/
|
|
416
|
-
|
|
486
|
+
list(parameters, options) {
|
|
417
487
|
const params = buildClientParams([parameters], [
|
|
418
488
|
{
|
|
419
489
|
args: [
|
|
420
490
|
{ in: "query", key: "directory" },
|
|
421
|
-
{
|
|
491
|
+
{ in: "query", key: "workspace" },
|
|
422
492
|
],
|
|
423
493
|
},
|
|
424
494
|
]);
|
|
425
|
-
return (options?.client ?? this.client).delete({
|
|
426
|
-
url: "/experimental/worktree",
|
|
427
|
-
...options,
|
|
428
|
-
...params,
|
|
429
|
-
headers: {
|
|
430
|
-
"Content-Type": "application/json",
|
|
431
|
-
...options?.headers,
|
|
432
|
-
...params.headers,
|
|
433
|
-
},
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* List worktrees
|
|
438
|
-
*
|
|
439
|
-
* List all sandbox worktrees for the current project.
|
|
440
|
-
*/
|
|
441
|
-
list(parameters, options) {
|
|
442
|
-
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
|
|
443
495
|
return (options?.client ?? this.client).get({
|
|
444
|
-
url: "/experimental/
|
|
496
|
+
url: "/experimental/workspace",
|
|
445
497
|
...options,
|
|
446
498
|
...params,
|
|
447
499
|
});
|
|
448
500
|
}
|
|
449
501
|
/**
|
|
450
|
-
* Create
|
|
502
|
+
* Create workspace
|
|
451
503
|
*
|
|
452
|
-
* Create a
|
|
504
|
+
* Create a workspace for the current project.
|
|
453
505
|
*/
|
|
454
506
|
create(parameters, options) {
|
|
455
507
|
const params = buildClientParams([parameters], [
|
|
456
508
|
{
|
|
457
509
|
args: [
|
|
458
510
|
{ in: "query", key: "directory" },
|
|
459
|
-
{
|
|
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" },
|
|
460
516
|
],
|
|
461
517
|
},
|
|
462
518
|
]);
|
|
463
519
|
return (options?.client ?? this.client).post({
|
|
464
|
-
url: "/experimental/
|
|
520
|
+
url: "/experimental/workspace",
|
|
465
521
|
...options,
|
|
466
522
|
...params,
|
|
467
523
|
headers: {
|
|
@@ -472,28 +528,24 @@ export class Worktree extends HeyApiClient {
|
|
|
472
528
|
});
|
|
473
529
|
}
|
|
474
530
|
/**
|
|
475
|
-
*
|
|
531
|
+
* Remove workspace
|
|
476
532
|
*
|
|
477
|
-
*
|
|
533
|
+
* Remove an existing workspace.
|
|
478
534
|
*/
|
|
479
|
-
|
|
535
|
+
remove(parameters, options) {
|
|
480
536
|
const params = buildClientParams([parameters], [
|
|
481
537
|
{
|
|
482
538
|
args: [
|
|
539
|
+
{ in: "path", key: "id" },
|
|
483
540
|
{ in: "query", key: "directory" },
|
|
484
|
-
{
|
|
541
|
+
{ in: "query", key: "workspace" },
|
|
485
542
|
],
|
|
486
543
|
},
|
|
487
544
|
]);
|
|
488
|
-
return (options?.client ?? this.client).
|
|
489
|
-
url: "/experimental/
|
|
545
|
+
return (options?.client ?? this.client).delete({
|
|
546
|
+
url: "/experimental/workspace/{id}",
|
|
490
547
|
...options,
|
|
491
548
|
...params,
|
|
492
|
-
headers: {
|
|
493
|
-
"Content-Type": "application/json",
|
|
494
|
-
...options?.headers,
|
|
495
|
-
...params.headers,
|
|
496
|
-
},
|
|
497
549
|
});
|
|
498
550
|
}
|
|
499
551
|
}
|
|
@@ -508,6 +560,7 @@ export class Session extends HeyApiClient {
|
|
|
508
560
|
{
|
|
509
561
|
args: [
|
|
510
562
|
{ in: "query", key: "directory" },
|
|
563
|
+
{ in: "query", key: "workspace" },
|
|
511
564
|
{ in: "query", key: "roots" },
|
|
512
565
|
{ in: "query", key: "start" },
|
|
513
566
|
{ in: "query", key: "cursor" },
|
|
@@ -531,7 +584,14 @@ export class Resource extends HeyApiClient {
|
|
|
531
584
|
* Get all available MCP resources from connected servers. Optionally filter by name.
|
|
532
585
|
*/
|
|
533
586
|
list(parameters, options) {
|
|
534
|
-
const params = buildClientParams([parameters], [
|
|
587
|
+
const params = buildClientParams([parameters], [
|
|
588
|
+
{
|
|
589
|
+
args: [
|
|
590
|
+
{ in: "query", key: "directory" },
|
|
591
|
+
{ in: "query", key: "workspace" },
|
|
592
|
+
],
|
|
593
|
+
},
|
|
594
|
+
]);
|
|
535
595
|
return (options?.client ?? this.client).get({
|
|
536
596
|
url: "/experimental/resource",
|
|
537
597
|
...options,
|
|
@@ -540,6 +600,10 @@ export class Resource extends HeyApiClient {
|
|
|
540
600
|
}
|
|
541
601
|
}
|
|
542
602
|
export class Experimental extends HeyApiClient {
|
|
603
|
+
_workspace;
|
|
604
|
+
get workspace() {
|
|
605
|
+
return (this._workspace ??= new Workspace({ client: this.client }));
|
|
606
|
+
}
|
|
543
607
|
_session;
|
|
544
608
|
get session() {
|
|
545
609
|
return (this._session ??= new Session({ client: this.client }));
|
|
@@ -549,6 +613,106 @@ export class Experimental extends HeyApiClient {
|
|
|
549
613
|
return (this._resource ??= new Resource({ client: this.client }));
|
|
550
614
|
}
|
|
551
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
|
+
}
|
|
552
716
|
export class Session2 extends HeyApiClient {
|
|
553
717
|
/**
|
|
554
718
|
* List sessions
|
|
@@ -560,6 +724,7 @@ export class Session2 extends HeyApiClient {
|
|
|
560
724
|
{
|
|
561
725
|
args: [
|
|
562
726
|
{ in: "query", key: "directory" },
|
|
727
|
+
{ in: "query", key: "workspace" },
|
|
563
728
|
{ in: "query", key: "roots" },
|
|
564
729
|
{ in: "query", key: "start" },
|
|
565
730
|
{ in: "query", key: "search" },
|
|
@@ -583,6 +748,7 @@ export class Session2 extends HeyApiClient {
|
|
|
583
748
|
{
|
|
584
749
|
args: [
|
|
585
750
|
{ in: "query", key: "directory" },
|
|
751
|
+
{ in: "query", key: "workspace" },
|
|
586
752
|
{ in: "body", key: "parentID" },
|
|
587
753
|
{ in: "body", key: "title" },
|
|
588
754
|
{ in: "body", key: "permission" },
|
|
@@ -606,7 +772,14 @@ export class Session2 extends HeyApiClient {
|
|
|
606
772
|
* Retrieve the current status of all sessions, including active, idle, and completed states.
|
|
607
773
|
*/
|
|
608
774
|
status(parameters, options) {
|
|
609
|
-
const params = buildClientParams([parameters], [
|
|
775
|
+
const params = buildClientParams([parameters], [
|
|
776
|
+
{
|
|
777
|
+
args: [
|
|
778
|
+
{ in: "query", key: "directory" },
|
|
779
|
+
{ in: "query", key: "workspace" },
|
|
780
|
+
],
|
|
781
|
+
},
|
|
782
|
+
]);
|
|
610
783
|
return (options?.client ?? this.client).get({
|
|
611
784
|
url: "/session/status",
|
|
612
785
|
...options,
|
|
@@ -624,6 +797,7 @@ export class Session2 extends HeyApiClient {
|
|
|
624
797
|
args: [
|
|
625
798
|
{ in: "path", key: "sessionID" },
|
|
626
799
|
{ in: "query", key: "directory" },
|
|
800
|
+
{ in: "query", key: "workspace" },
|
|
627
801
|
],
|
|
628
802
|
},
|
|
629
803
|
]);
|
|
@@ -644,6 +818,7 @@ export class Session2 extends HeyApiClient {
|
|
|
644
818
|
args: [
|
|
645
819
|
{ in: "path", key: "sessionID" },
|
|
646
820
|
{ in: "query", key: "directory" },
|
|
821
|
+
{ in: "query", key: "workspace" },
|
|
647
822
|
],
|
|
648
823
|
},
|
|
649
824
|
]);
|
|
@@ -664,6 +839,7 @@ export class Session2 extends HeyApiClient {
|
|
|
664
839
|
args: [
|
|
665
840
|
{ in: "path", key: "sessionID" },
|
|
666
841
|
{ in: "query", key: "directory" },
|
|
842
|
+
{ in: "query", key: "workspace" },
|
|
667
843
|
{ in: "body", key: "title" },
|
|
668
844
|
{ in: "body", key: "time" },
|
|
669
845
|
],
|
|
@@ -691,6 +867,7 @@ export class Session2 extends HeyApiClient {
|
|
|
691
867
|
args: [
|
|
692
868
|
{ in: "path", key: "sessionID" },
|
|
693
869
|
{ in: "query", key: "directory" },
|
|
870
|
+
{ in: "query", key: "workspace" },
|
|
694
871
|
],
|
|
695
872
|
},
|
|
696
873
|
]);
|
|
@@ -711,6 +888,7 @@ export class Session2 extends HeyApiClient {
|
|
|
711
888
|
args: [
|
|
712
889
|
{ in: "path", key: "sessionID" },
|
|
713
890
|
{ in: "query", key: "directory" },
|
|
891
|
+
{ in: "query", key: "workspace" },
|
|
714
892
|
],
|
|
715
893
|
},
|
|
716
894
|
]);
|
|
@@ -731,6 +909,7 @@ export class Session2 extends HeyApiClient {
|
|
|
731
909
|
args: [
|
|
732
910
|
{ in: "path", key: "sessionID" },
|
|
733
911
|
{ in: "query", key: "directory" },
|
|
912
|
+
{ in: "query", key: "workspace" },
|
|
734
913
|
{ in: "body", key: "modelID" },
|
|
735
914
|
{ in: "body", key: "providerID" },
|
|
736
915
|
{ in: "body", key: "messageID" },
|
|
@@ -759,6 +938,7 @@ export class Session2 extends HeyApiClient {
|
|
|
759
938
|
args: [
|
|
760
939
|
{ in: "path", key: "sessionID" },
|
|
761
940
|
{ in: "query", key: "directory" },
|
|
941
|
+
{ in: "query", key: "workspace" },
|
|
762
942
|
{ in: "body", key: "messageID" },
|
|
763
943
|
],
|
|
764
944
|
},
|
|
@@ -785,6 +965,7 @@ export class Session2 extends HeyApiClient {
|
|
|
785
965
|
args: [
|
|
786
966
|
{ in: "path", key: "sessionID" },
|
|
787
967
|
{ in: "query", key: "directory" },
|
|
968
|
+
{ in: "query", key: "workspace" },
|
|
788
969
|
],
|
|
789
970
|
},
|
|
790
971
|
]);
|
|
@@ -805,6 +986,7 @@ export class Session2 extends HeyApiClient {
|
|
|
805
986
|
args: [
|
|
806
987
|
{ in: "path", key: "sessionID" },
|
|
807
988
|
{ in: "query", key: "directory" },
|
|
989
|
+
{ in: "query", key: "workspace" },
|
|
808
990
|
],
|
|
809
991
|
},
|
|
810
992
|
]);
|
|
@@ -825,6 +1007,7 @@ export class Session2 extends HeyApiClient {
|
|
|
825
1007
|
args: [
|
|
826
1008
|
{ in: "path", key: "sessionID" },
|
|
827
1009
|
{ in: "query", key: "directory" },
|
|
1010
|
+
{ in: "query", key: "workspace" },
|
|
828
1011
|
],
|
|
829
1012
|
},
|
|
830
1013
|
]);
|
|
@@ -845,6 +1028,7 @@ export class Session2 extends HeyApiClient {
|
|
|
845
1028
|
args: [
|
|
846
1029
|
{ in: "path", key: "sessionID" },
|
|
847
1030
|
{ in: "query", key: "directory" },
|
|
1031
|
+
{ in: "query", key: "workspace" },
|
|
848
1032
|
{ in: "query", key: "messageID" },
|
|
849
1033
|
],
|
|
850
1034
|
},
|
|
@@ -866,6 +1050,7 @@ export class Session2 extends HeyApiClient {
|
|
|
866
1050
|
args: [
|
|
867
1051
|
{ in: "path", key: "sessionID" },
|
|
868
1052
|
{ in: "query", key: "directory" },
|
|
1053
|
+
{ in: "query", key: "workspace" },
|
|
869
1054
|
{ in: "body", key: "providerID" },
|
|
870
1055
|
{ in: "body", key: "modelID" },
|
|
871
1056
|
{ in: "body", key: "auto" },
|
|
@@ -894,6 +1079,7 @@ export class Session2 extends HeyApiClient {
|
|
|
894
1079
|
args: [
|
|
895
1080
|
{ in: "path", key: "sessionID" },
|
|
896
1081
|
{ in: "query", key: "directory" },
|
|
1082
|
+
{ in: "query", key: "workspace" },
|
|
897
1083
|
{ in: "query", key: "limit" },
|
|
898
1084
|
],
|
|
899
1085
|
},
|
|
@@ -915,6 +1101,7 @@ export class Session2 extends HeyApiClient {
|
|
|
915
1101
|
args: [
|
|
916
1102
|
{ in: "path", key: "sessionID" },
|
|
917
1103
|
{ in: "query", key: "directory" },
|
|
1104
|
+
{ in: "query", key: "workspace" },
|
|
918
1105
|
{ in: "body", key: "messageID" },
|
|
919
1106
|
{ in: "body", key: "model" },
|
|
920
1107
|
{ in: "body", key: "agent" },
|
|
@@ -938,6 +1125,28 @@ export class Session2 extends HeyApiClient {
|
|
|
938
1125
|
},
|
|
939
1126
|
});
|
|
940
1127
|
}
|
|
1128
|
+
/**
|
|
1129
|
+
* Delete message
|
|
1130
|
+
*
|
|
1131
|
+
* 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.
|
|
1132
|
+
*/
|
|
1133
|
+
deleteMessage(parameters, options) {
|
|
1134
|
+
const params = buildClientParams([parameters], [
|
|
1135
|
+
{
|
|
1136
|
+
args: [
|
|
1137
|
+
{ in: "path", key: "sessionID" },
|
|
1138
|
+
{ in: "path", key: "messageID" },
|
|
1139
|
+
{ in: "query", key: "directory" },
|
|
1140
|
+
{ in: "query", key: "workspace" },
|
|
1141
|
+
],
|
|
1142
|
+
},
|
|
1143
|
+
]);
|
|
1144
|
+
return (options?.client ?? this.client).delete({
|
|
1145
|
+
url: "/session/{sessionID}/message/{messageID}",
|
|
1146
|
+
...options,
|
|
1147
|
+
...params,
|
|
1148
|
+
});
|
|
1149
|
+
}
|
|
941
1150
|
/**
|
|
942
1151
|
* Get message
|
|
943
1152
|
*
|
|
@@ -950,6 +1159,7 @@ export class Session2 extends HeyApiClient {
|
|
|
950
1159
|
{ in: "path", key: "sessionID" },
|
|
951
1160
|
{ in: "path", key: "messageID" },
|
|
952
1161
|
{ in: "query", key: "directory" },
|
|
1162
|
+
{ in: "query", key: "workspace" },
|
|
953
1163
|
],
|
|
954
1164
|
},
|
|
955
1165
|
]);
|
|
@@ -970,6 +1180,7 @@ export class Session2 extends HeyApiClient {
|
|
|
970
1180
|
args: [
|
|
971
1181
|
{ in: "path", key: "sessionID" },
|
|
972
1182
|
{ in: "query", key: "directory" },
|
|
1183
|
+
{ in: "query", key: "workspace" },
|
|
973
1184
|
{ in: "body", key: "messageID" },
|
|
974
1185
|
{ in: "body", key: "model" },
|
|
975
1186
|
{ in: "body", key: "agent" },
|
|
@@ -1004,6 +1215,7 @@ export class Session2 extends HeyApiClient {
|
|
|
1004
1215
|
args: [
|
|
1005
1216
|
{ in: "path", key: "sessionID" },
|
|
1006
1217
|
{ in: "query", key: "directory" },
|
|
1218
|
+
{ in: "query", key: "workspace" },
|
|
1007
1219
|
{ in: "body", key: "messageID" },
|
|
1008
1220
|
{ in: "body", key: "agent" },
|
|
1009
1221
|
{ in: "body", key: "model" },
|
|
@@ -1036,6 +1248,7 @@ export class Session2 extends HeyApiClient {
|
|
|
1036
1248
|
args: [
|
|
1037
1249
|
{ in: "path", key: "sessionID" },
|
|
1038
1250
|
{ in: "query", key: "directory" },
|
|
1251
|
+
{ in: "query", key: "workspace" },
|
|
1039
1252
|
{ in: "body", key: "agent" },
|
|
1040
1253
|
{ in: "body", key: "model" },
|
|
1041
1254
|
{ in: "body", key: "command" },
|
|
@@ -1064,6 +1277,7 @@ export class Session2 extends HeyApiClient {
|
|
|
1064
1277
|
args: [
|
|
1065
1278
|
{ in: "path", key: "sessionID" },
|
|
1066
1279
|
{ in: "query", key: "directory" },
|
|
1280
|
+
{ in: "query", key: "workspace" },
|
|
1067
1281
|
{ in: "body", key: "messageID" },
|
|
1068
1282
|
{ in: "body", key: "partID" },
|
|
1069
1283
|
],
|
|
@@ -1091,6 +1305,7 @@ export class Session2 extends HeyApiClient {
|
|
|
1091
1305
|
args: [
|
|
1092
1306
|
{ in: "path", key: "sessionID" },
|
|
1093
1307
|
{ in: "query", key: "directory" },
|
|
1308
|
+
{ in: "query", key: "workspace" },
|
|
1094
1309
|
],
|
|
1095
1310
|
},
|
|
1096
1311
|
]);
|
|
@@ -1113,6 +1328,7 @@ export class Part extends HeyApiClient {
|
|
|
1113
1328
|
{ in: "path", key: "messageID" },
|
|
1114
1329
|
{ in: "path", key: "partID" },
|
|
1115
1330
|
{ in: "query", key: "directory" },
|
|
1331
|
+
{ in: "query", key: "workspace" },
|
|
1116
1332
|
],
|
|
1117
1333
|
},
|
|
1118
1334
|
]);
|
|
@@ -1133,6 +1349,7 @@ export class Part extends HeyApiClient {
|
|
|
1133
1349
|
{ in: "path", key: "messageID" },
|
|
1134
1350
|
{ in: "path", key: "partID" },
|
|
1135
1351
|
{ in: "query", key: "directory" },
|
|
1352
|
+
{ in: "query", key: "workspace" },
|
|
1136
1353
|
{ key: "part", map: "body" },
|
|
1137
1354
|
],
|
|
1138
1355
|
},
|
|
@@ -1164,6 +1381,7 @@ export class Permission extends HeyApiClient {
|
|
|
1164
1381
|
{ in: "path", key: "sessionID" },
|
|
1165
1382
|
{ in: "path", key: "permissionID" },
|
|
1166
1383
|
{ in: "query", key: "directory" },
|
|
1384
|
+
{ in: "query", key: "workspace" },
|
|
1167
1385
|
{ in: "body", key: "response" },
|
|
1168
1386
|
],
|
|
1169
1387
|
},
|
|
@@ -1190,6 +1408,7 @@ export class Permission extends HeyApiClient {
|
|
|
1190
1408
|
args: [
|
|
1191
1409
|
{ in: "path", key: "requestID" },
|
|
1192
1410
|
{ in: "query", key: "directory" },
|
|
1411
|
+
{ in: "query", key: "workspace" },
|
|
1193
1412
|
{ in: "body", key: "reply" },
|
|
1194
1413
|
{ in: "body", key: "message" },
|
|
1195
1414
|
],
|
|
@@ -1212,7 +1431,14 @@ export class Permission extends HeyApiClient {
|
|
|
1212
1431
|
* Get all pending permission requests across all sessions.
|
|
1213
1432
|
*/
|
|
1214
1433
|
list(parameters, options) {
|
|
1215
|
-
const params = buildClientParams([parameters], [
|
|
1434
|
+
const params = buildClientParams([parameters], [
|
|
1435
|
+
{
|
|
1436
|
+
args: [
|
|
1437
|
+
{ in: "query", key: "directory" },
|
|
1438
|
+
{ in: "query", key: "workspace" },
|
|
1439
|
+
],
|
|
1440
|
+
},
|
|
1441
|
+
]);
|
|
1216
1442
|
return (options?.client ?? this.client).get({
|
|
1217
1443
|
url: "/permission",
|
|
1218
1444
|
...options,
|
|
@@ -1227,7 +1453,14 @@ export class Question extends HeyApiClient {
|
|
|
1227
1453
|
* Get all pending question requests across all sessions.
|
|
1228
1454
|
*/
|
|
1229
1455
|
list(parameters, options) {
|
|
1230
|
-
const params = buildClientParams([parameters], [
|
|
1456
|
+
const params = buildClientParams([parameters], [
|
|
1457
|
+
{
|
|
1458
|
+
args: [
|
|
1459
|
+
{ in: "query", key: "directory" },
|
|
1460
|
+
{ in: "query", key: "workspace" },
|
|
1461
|
+
],
|
|
1462
|
+
},
|
|
1463
|
+
]);
|
|
1231
1464
|
return (options?.client ?? this.client).get({
|
|
1232
1465
|
url: "/question",
|
|
1233
1466
|
...options,
|
|
@@ -1245,6 +1478,7 @@ export class Question extends HeyApiClient {
|
|
|
1245
1478
|
args: [
|
|
1246
1479
|
{ in: "path", key: "requestID" },
|
|
1247
1480
|
{ in: "query", key: "directory" },
|
|
1481
|
+
{ in: "query", key: "workspace" },
|
|
1248
1482
|
{ in: "body", key: "answers" },
|
|
1249
1483
|
],
|
|
1250
1484
|
},
|
|
@@ -1271,6 +1505,7 @@ export class Question extends HeyApiClient {
|
|
|
1271
1505
|
args: [
|
|
1272
1506
|
{ in: "path", key: "requestID" },
|
|
1273
1507
|
{ in: "query", key: "directory" },
|
|
1508
|
+
{ in: "query", key: "workspace" },
|
|
1274
1509
|
],
|
|
1275
1510
|
},
|
|
1276
1511
|
]);
|
|
@@ -1293,6 +1528,7 @@ export class Oauth extends HeyApiClient {
|
|
|
1293
1528
|
args: [
|
|
1294
1529
|
{ in: "path", key: "providerID" },
|
|
1295
1530
|
{ in: "query", key: "directory" },
|
|
1531
|
+
{ in: "query", key: "workspace" },
|
|
1296
1532
|
{ in: "body", key: "method" },
|
|
1297
1533
|
],
|
|
1298
1534
|
},
|
|
@@ -1319,6 +1555,7 @@ export class Oauth extends HeyApiClient {
|
|
|
1319
1555
|
args: [
|
|
1320
1556
|
{ in: "path", key: "providerID" },
|
|
1321
1557
|
{ in: "query", key: "directory" },
|
|
1558
|
+
{ in: "query", key: "workspace" },
|
|
1322
1559
|
{ in: "body", key: "method" },
|
|
1323
1560
|
{ in: "body", key: "code" },
|
|
1324
1561
|
],
|
|
@@ -1343,7 +1580,14 @@ export class Provider extends HeyApiClient {
|
|
|
1343
1580
|
* Get a list of all available AI providers, including both available and connected ones.
|
|
1344
1581
|
*/
|
|
1345
1582
|
list(parameters, options) {
|
|
1346
|
-
const params = buildClientParams([parameters], [
|
|
1583
|
+
const params = buildClientParams([parameters], [
|
|
1584
|
+
{
|
|
1585
|
+
args: [
|
|
1586
|
+
{ in: "query", key: "directory" },
|
|
1587
|
+
{ in: "query", key: "workspace" },
|
|
1588
|
+
],
|
|
1589
|
+
},
|
|
1590
|
+
]);
|
|
1347
1591
|
return (options?.client ?? this.client).get({
|
|
1348
1592
|
url: "/provider",
|
|
1349
1593
|
...options,
|
|
@@ -1356,7 +1600,14 @@ export class Provider extends HeyApiClient {
|
|
|
1356
1600
|
* Retrieve available authentication methods for all AI providers.
|
|
1357
1601
|
*/
|
|
1358
1602
|
auth(parameters, options) {
|
|
1359
|
-
const params = buildClientParams([parameters], [
|
|
1603
|
+
const params = buildClientParams([parameters], [
|
|
1604
|
+
{
|
|
1605
|
+
args: [
|
|
1606
|
+
{ in: "query", key: "directory" },
|
|
1607
|
+
{ in: "query", key: "workspace" },
|
|
1608
|
+
],
|
|
1609
|
+
},
|
|
1610
|
+
]);
|
|
1360
1611
|
return (options?.client ?? this.client).get({
|
|
1361
1612
|
url: "/provider/auth",
|
|
1362
1613
|
...options,
|
|
@@ -1379,6 +1630,7 @@ export class Find extends HeyApiClient {
|
|
|
1379
1630
|
{
|
|
1380
1631
|
args: [
|
|
1381
1632
|
{ in: "query", key: "directory" },
|
|
1633
|
+
{ in: "query", key: "workspace" },
|
|
1382
1634
|
{ in: "query", key: "pattern" },
|
|
1383
1635
|
],
|
|
1384
1636
|
},
|
|
@@ -1399,6 +1651,7 @@ export class Find extends HeyApiClient {
|
|
|
1399
1651
|
{
|
|
1400
1652
|
args: [
|
|
1401
1653
|
{ in: "query", key: "directory" },
|
|
1654
|
+
{ in: "query", key: "workspace" },
|
|
1402
1655
|
{ in: "query", key: "query" },
|
|
1403
1656
|
{ in: "query", key: "dirs" },
|
|
1404
1657
|
{ in: "query", key: "type" },
|
|
@@ -1422,6 +1675,7 @@ export class Find extends HeyApiClient {
|
|
|
1422
1675
|
{
|
|
1423
1676
|
args: [
|
|
1424
1677
|
{ in: "query", key: "directory" },
|
|
1678
|
+
{ in: "query", key: "workspace" },
|
|
1425
1679
|
{ in: "query", key: "query" },
|
|
1426
1680
|
],
|
|
1427
1681
|
},
|
|
@@ -1444,6 +1698,7 @@ export class File extends HeyApiClient {
|
|
|
1444
1698
|
{
|
|
1445
1699
|
args: [
|
|
1446
1700
|
{ in: "query", key: "directory" },
|
|
1701
|
+
{ in: "query", key: "workspace" },
|
|
1447
1702
|
{ in: "query", key: "path" },
|
|
1448
1703
|
],
|
|
1449
1704
|
},
|
|
@@ -1464,6 +1719,7 @@ export class File extends HeyApiClient {
|
|
|
1464
1719
|
{
|
|
1465
1720
|
args: [
|
|
1466
1721
|
{ in: "query", key: "directory" },
|
|
1722
|
+
{ in: "query", key: "workspace" },
|
|
1467
1723
|
{ in: "query", key: "path" },
|
|
1468
1724
|
],
|
|
1469
1725
|
},
|
|
@@ -1480,7 +1736,14 @@ export class File extends HeyApiClient {
|
|
|
1480
1736
|
* Get the git status of all files in the project.
|
|
1481
1737
|
*/
|
|
1482
1738
|
status(parameters, options) {
|
|
1483
|
-
const params = buildClientParams([parameters], [
|
|
1739
|
+
const params = buildClientParams([parameters], [
|
|
1740
|
+
{
|
|
1741
|
+
args: [
|
|
1742
|
+
{ in: "query", key: "directory" },
|
|
1743
|
+
{ in: "query", key: "workspace" },
|
|
1744
|
+
],
|
|
1745
|
+
},
|
|
1746
|
+
]);
|
|
1484
1747
|
return (options?.client ?? this.client).get({
|
|
1485
1748
|
url: "/file/status",
|
|
1486
1749
|
...options,
|
|
@@ -1500,6 +1763,7 @@ export class Auth2 extends HeyApiClient {
|
|
|
1500
1763
|
args: [
|
|
1501
1764
|
{ in: "path", key: "name" },
|
|
1502
1765
|
{ in: "query", key: "directory" },
|
|
1766
|
+
{ in: "query", key: "workspace" },
|
|
1503
1767
|
],
|
|
1504
1768
|
},
|
|
1505
1769
|
]);
|
|
@@ -1520,6 +1784,7 @@ export class Auth2 extends HeyApiClient {
|
|
|
1520
1784
|
args: [
|
|
1521
1785
|
{ in: "path", key: "name" },
|
|
1522
1786
|
{ in: "query", key: "directory" },
|
|
1787
|
+
{ in: "query", key: "workspace" },
|
|
1523
1788
|
],
|
|
1524
1789
|
},
|
|
1525
1790
|
]);
|
|
@@ -1540,6 +1805,7 @@ export class Auth2 extends HeyApiClient {
|
|
|
1540
1805
|
args: [
|
|
1541
1806
|
{ in: "path", key: "name" },
|
|
1542
1807
|
{ in: "query", key: "directory" },
|
|
1808
|
+
{ in: "query", key: "workspace" },
|
|
1543
1809
|
{ in: "body", key: "code" },
|
|
1544
1810
|
],
|
|
1545
1811
|
},
|
|
@@ -1566,6 +1832,7 @@ export class Auth2 extends HeyApiClient {
|
|
|
1566
1832
|
args: [
|
|
1567
1833
|
{ in: "path", key: "name" },
|
|
1568
1834
|
{ in: "query", key: "directory" },
|
|
1835
|
+
{ in: "query", key: "workspace" },
|
|
1569
1836
|
],
|
|
1570
1837
|
},
|
|
1571
1838
|
]);
|
|
@@ -1583,7 +1850,14 @@ export class Mcp extends HeyApiClient {
|
|
|
1583
1850
|
* Get the status of all Model Context Protocol (MCP) servers.
|
|
1584
1851
|
*/
|
|
1585
1852
|
status(parameters, options) {
|
|
1586
|
-
const params = buildClientParams([parameters], [
|
|
1853
|
+
const params = buildClientParams([parameters], [
|
|
1854
|
+
{
|
|
1855
|
+
args: [
|
|
1856
|
+
{ in: "query", key: "directory" },
|
|
1857
|
+
{ in: "query", key: "workspace" },
|
|
1858
|
+
],
|
|
1859
|
+
},
|
|
1860
|
+
]);
|
|
1587
1861
|
return (options?.client ?? this.client).get({
|
|
1588
1862
|
url: "/mcp",
|
|
1589
1863
|
...options,
|
|
@@ -1600,6 +1874,7 @@ export class Mcp extends HeyApiClient {
|
|
|
1600
1874
|
{
|
|
1601
1875
|
args: [
|
|
1602
1876
|
{ in: "query", key: "directory" },
|
|
1877
|
+
{ in: "query", key: "workspace" },
|
|
1603
1878
|
{ in: "body", key: "name" },
|
|
1604
1879
|
{ in: "body", key: "config" },
|
|
1605
1880
|
],
|
|
@@ -1625,6 +1900,7 @@ export class Mcp extends HeyApiClient {
|
|
|
1625
1900
|
args: [
|
|
1626
1901
|
{ in: "path", key: "name" },
|
|
1627
1902
|
{ in: "query", key: "directory" },
|
|
1903
|
+
{ in: "query", key: "workspace" },
|
|
1628
1904
|
],
|
|
1629
1905
|
},
|
|
1630
1906
|
]);
|
|
@@ -1643,6 +1919,7 @@ export class Mcp extends HeyApiClient {
|
|
|
1643
1919
|
args: [
|
|
1644
1920
|
{ in: "path", key: "name" },
|
|
1645
1921
|
{ in: "query", key: "directory" },
|
|
1922
|
+
{ in: "query", key: "workspace" },
|
|
1646
1923
|
],
|
|
1647
1924
|
},
|
|
1648
1925
|
]);
|
|
@@ -1664,7 +1941,14 @@ export class Control extends HeyApiClient {
|
|
|
1664
1941
|
* Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
|
|
1665
1942
|
*/
|
|
1666
1943
|
next(parameters, options) {
|
|
1667
|
-
const params = buildClientParams([parameters], [
|
|
1944
|
+
const params = buildClientParams([parameters], [
|
|
1945
|
+
{
|
|
1946
|
+
args: [
|
|
1947
|
+
{ in: "query", key: "directory" },
|
|
1948
|
+
{ in: "query", key: "workspace" },
|
|
1949
|
+
],
|
|
1950
|
+
},
|
|
1951
|
+
]);
|
|
1668
1952
|
return (options?.client ?? this.client).get({
|
|
1669
1953
|
url: "/tui/control/next",
|
|
1670
1954
|
...options,
|
|
@@ -1681,6 +1965,7 @@ export class Control extends HeyApiClient {
|
|
|
1681
1965
|
{
|
|
1682
1966
|
args: [
|
|
1683
1967
|
{ in: "query", key: "directory" },
|
|
1968
|
+
{ in: "query", key: "workspace" },
|
|
1684
1969
|
{ key: "body", map: "body" },
|
|
1685
1970
|
],
|
|
1686
1971
|
},
|
|
@@ -1708,6 +1993,7 @@ export class Tui extends HeyApiClient {
|
|
|
1708
1993
|
{
|
|
1709
1994
|
args: [
|
|
1710
1995
|
{ in: "query", key: "directory" },
|
|
1996
|
+
{ in: "query", key: "workspace" },
|
|
1711
1997
|
{ in: "body", key: "text" },
|
|
1712
1998
|
],
|
|
1713
1999
|
},
|
|
@@ -1729,7 +2015,14 @@ export class Tui extends HeyApiClient {
|
|
|
1729
2015
|
* Open the help dialog in the TUI to display user assistance information.
|
|
1730
2016
|
*/
|
|
1731
2017
|
openHelp(parameters, options) {
|
|
1732
|
-
const params = buildClientParams([parameters], [
|
|
2018
|
+
const params = buildClientParams([parameters], [
|
|
2019
|
+
{
|
|
2020
|
+
args: [
|
|
2021
|
+
{ in: "query", key: "directory" },
|
|
2022
|
+
{ in: "query", key: "workspace" },
|
|
2023
|
+
],
|
|
2024
|
+
},
|
|
2025
|
+
]);
|
|
1733
2026
|
return (options?.client ?? this.client).post({
|
|
1734
2027
|
url: "/tui/open-help",
|
|
1735
2028
|
...options,
|
|
@@ -1742,7 +2035,14 @@ export class Tui extends HeyApiClient {
|
|
|
1742
2035
|
* Open the session dialog
|
|
1743
2036
|
*/
|
|
1744
2037
|
openSessions(parameters, options) {
|
|
1745
|
-
const params = buildClientParams([parameters], [
|
|
2038
|
+
const params = buildClientParams([parameters], [
|
|
2039
|
+
{
|
|
2040
|
+
args: [
|
|
2041
|
+
{ in: "query", key: "directory" },
|
|
2042
|
+
{ in: "query", key: "workspace" },
|
|
2043
|
+
],
|
|
2044
|
+
},
|
|
2045
|
+
]);
|
|
1746
2046
|
return (options?.client ?? this.client).post({
|
|
1747
2047
|
url: "/tui/open-sessions",
|
|
1748
2048
|
...options,
|
|
@@ -1755,7 +2055,14 @@ export class Tui extends HeyApiClient {
|
|
|
1755
2055
|
* Open the theme dialog
|
|
1756
2056
|
*/
|
|
1757
2057
|
openThemes(parameters, options) {
|
|
1758
|
-
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
|
+
]);
|
|
1759
2066
|
return (options?.client ?? this.client).post({
|
|
1760
2067
|
url: "/tui/open-themes",
|
|
1761
2068
|
...options,
|
|
@@ -1768,7 +2075,14 @@ export class Tui extends HeyApiClient {
|
|
|
1768
2075
|
* Open the model dialog
|
|
1769
2076
|
*/
|
|
1770
2077
|
openModels(parameters, options) {
|
|
1771
|
-
const params = buildClientParams([parameters], [
|
|
2078
|
+
const params = buildClientParams([parameters], [
|
|
2079
|
+
{
|
|
2080
|
+
args: [
|
|
2081
|
+
{ in: "query", key: "directory" },
|
|
2082
|
+
{ in: "query", key: "workspace" },
|
|
2083
|
+
],
|
|
2084
|
+
},
|
|
2085
|
+
]);
|
|
1772
2086
|
return (options?.client ?? this.client).post({
|
|
1773
2087
|
url: "/tui/open-models",
|
|
1774
2088
|
...options,
|
|
@@ -1781,7 +2095,14 @@ export class Tui extends HeyApiClient {
|
|
|
1781
2095
|
* Submit the prompt
|
|
1782
2096
|
*/
|
|
1783
2097
|
submitPrompt(parameters, options) {
|
|
1784
|
-
const params = buildClientParams([parameters], [
|
|
2098
|
+
const params = buildClientParams([parameters], [
|
|
2099
|
+
{
|
|
2100
|
+
args: [
|
|
2101
|
+
{ in: "query", key: "directory" },
|
|
2102
|
+
{ in: "query", key: "workspace" },
|
|
2103
|
+
],
|
|
2104
|
+
},
|
|
2105
|
+
]);
|
|
1785
2106
|
return (options?.client ?? this.client).post({
|
|
1786
2107
|
url: "/tui/submit-prompt",
|
|
1787
2108
|
...options,
|
|
@@ -1794,7 +2115,14 @@ export class Tui extends HeyApiClient {
|
|
|
1794
2115
|
* Clear the prompt
|
|
1795
2116
|
*/
|
|
1796
2117
|
clearPrompt(parameters, options) {
|
|
1797
|
-
const params = buildClientParams([parameters], [
|
|
2118
|
+
const params = buildClientParams([parameters], [
|
|
2119
|
+
{
|
|
2120
|
+
args: [
|
|
2121
|
+
{ in: "query", key: "directory" },
|
|
2122
|
+
{ in: "query", key: "workspace" },
|
|
2123
|
+
],
|
|
2124
|
+
},
|
|
2125
|
+
]);
|
|
1798
2126
|
return (options?.client ?? this.client).post({
|
|
1799
2127
|
url: "/tui/clear-prompt",
|
|
1800
2128
|
...options,
|
|
@@ -1811,6 +2139,7 @@ export class Tui extends HeyApiClient {
|
|
|
1811
2139
|
{
|
|
1812
2140
|
args: [
|
|
1813
2141
|
{ in: "query", key: "directory" },
|
|
2142
|
+
{ in: "query", key: "workspace" },
|
|
1814
2143
|
{ in: "body", key: "command" },
|
|
1815
2144
|
],
|
|
1816
2145
|
},
|
|
@@ -1836,6 +2165,7 @@ export class Tui extends HeyApiClient {
|
|
|
1836
2165
|
{
|
|
1837
2166
|
args: [
|
|
1838
2167
|
{ in: "query", key: "directory" },
|
|
2168
|
+
{ in: "query", key: "workspace" },
|
|
1839
2169
|
{ in: "body", key: "title" },
|
|
1840
2170
|
{ in: "body", key: "message" },
|
|
1841
2171
|
{ in: "body", key: "variant" },
|
|
@@ -1864,6 +2194,7 @@ export class Tui extends HeyApiClient {
|
|
|
1864
2194
|
{
|
|
1865
2195
|
args: [
|
|
1866
2196
|
{ in: "query", key: "directory" },
|
|
2197
|
+
{ in: "query", key: "workspace" },
|
|
1867
2198
|
{ key: "body", map: "body" },
|
|
1868
2199
|
],
|
|
1869
2200
|
},
|
|
@@ -1889,6 +2220,7 @@ export class Tui extends HeyApiClient {
|
|
|
1889
2220
|
{
|
|
1890
2221
|
args: [
|
|
1891
2222
|
{ in: "query", key: "directory" },
|
|
2223
|
+
{ in: "query", key: "workspace" },
|
|
1892
2224
|
{ in: "body", key: "sessionID" },
|
|
1893
2225
|
],
|
|
1894
2226
|
},
|
|
@@ -1916,7 +2248,14 @@ export class Instance extends HeyApiClient {
|
|
|
1916
2248
|
* Clean up and dispose the current OpenCode instance, releasing all resources.
|
|
1917
2249
|
*/
|
|
1918
2250
|
dispose(parameters, options) {
|
|
1919
|
-
const params = buildClientParams([parameters], [
|
|
2251
|
+
const params = buildClientParams([parameters], [
|
|
2252
|
+
{
|
|
2253
|
+
args: [
|
|
2254
|
+
{ in: "query", key: "directory" },
|
|
2255
|
+
{ in: "query", key: "workspace" },
|
|
2256
|
+
],
|
|
2257
|
+
},
|
|
2258
|
+
]);
|
|
1920
2259
|
return (options?.client ?? this.client).post({
|
|
1921
2260
|
url: "/instance/dispose",
|
|
1922
2261
|
...options,
|
|
@@ -1931,7 +2270,14 @@ export class Path extends HeyApiClient {
|
|
|
1931
2270
|
* Retrieve the current working directory and related path information for the OpenCode instance.
|
|
1932
2271
|
*/
|
|
1933
2272
|
get(parameters, options) {
|
|
1934
|
-
const params = buildClientParams([parameters], [
|
|
2273
|
+
const params = buildClientParams([parameters], [
|
|
2274
|
+
{
|
|
2275
|
+
args: [
|
|
2276
|
+
{ in: "query", key: "directory" },
|
|
2277
|
+
{ in: "query", key: "workspace" },
|
|
2278
|
+
],
|
|
2279
|
+
},
|
|
2280
|
+
]);
|
|
1935
2281
|
return (options?.client ?? this.client).get({
|
|
1936
2282
|
url: "/path",
|
|
1937
2283
|
...options,
|
|
@@ -1946,7 +2292,14 @@ export class Vcs extends HeyApiClient {
|
|
|
1946
2292
|
* Retrieve version control system (VCS) information for the current project, such as git branch.
|
|
1947
2293
|
*/
|
|
1948
2294
|
get(parameters, options) {
|
|
1949
|
-
const params = buildClientParams([parameters], [
|
|
2295
|
+
const params = buildClientParams([parameters], [
|
|
2296
|
+
{
|
|
2297
|
+
args: [
|
|
2298
|
+
{ in: "query", key: "directory" },
|
|
2299
|
+
{ in: "query", key: "workspace" },
|
|
2300
|
+
],
|
|
2301
|
+
},
|
|
2302
|
+
]);
|
|
1950
2303
|
return (options?.client ?? this.client).get({
|
|
1951
2304
|
url: "/vcs",
|
|
1952
2305
|
...options,
|
|
@@ -1961,7 +2314,14 @@ export class Command extends HeyApiClient {
|
|
|
1961
2314
|
* Get a list of all available commands in the OpenCode system.
|
|
1962
2315
|
*/
|
|
1963
2316
|
list(parameters, options) {
|
|
1964
|
-
const params = buildClientParams([parameters], [
|
|
2317
|
+
const params = buildClientParams([parameters], [
|
|
2318
|
+
{
|
|
2319
|
+
args: [
|
|
2320
|
+
{ in: "query", key: "directory" },
|
|
2321
|
+
{ in: "query", key: "workspace" },
|
|
2322
|
+
],
|
|
2323
|
+
},
|
|
2324
|
+
]);
|
|
1965
2325
|
return (options?.client ?? this.client).get({
|
|
1966
2326
|
url: "/command",
|
|
1967
2327
|
...options,
|
|
@@ -1980,6 +2340,7 @@ export class App extends HeyApiClient {
|
|
|
1980
2340
|
{
|
|
1981
2341
|
args: [
|
|
1982
2342
|
{ in: "query", key: "directory" },
|
|
2343
|
+
{ in: "query", key: "workspace" },
|
|
1983
2344
|
{ in: "body", key: "service" },
|
|
1984
2345
|
{ in: "body", key: "level" },
|
|
1985
2346
|
{ in: "body", key: "message" },
|
|
@@ -2004,7 +2365,14 @@ export class App extends HeyApiClient {
|
|
|
2004
2365
|
* Get a list of all available AI agents in the OpenCode system.
|
|
2005
2366
|
*/
|
|
2006
2367
|
agents(parameters, options) {
|
|
2007
|
-
const params = buildClientParams([parameters], [
|
|
2368
|
+
const params = buildClientParams([parameters], [
|
|
2369
|
+
{
|
|
2370
|
+
args: [
|
|
2371
|
+
{ in: "query", key: "directory" },
|
|
2372
|
+
{ in: "query", key: "workspace" },
|
|
2373
|
+
],
|
|
2374
|
+
},
|
|
2375
|
+
]);
|
|
2008
2376
|
return (options?.client ?? this.client).get({
|
|
2009
2377
|
url: "/agent",
|
|
2010
2378
|
...options,
|
|
@@ -2017,7 +2385,14 @@ export class App extends HeyApiClient {
|
|
|
2017
2385
|
* Get a list of all available skills in the OpenCode system.
|
|
2018
2386
|
*/
|
|
2019
2387
|
skills(parameters, options) {
|
|
2020
|
-
const params = buildClientParams([parameters], [
|
|
2388
|
+
const params = buildClientParams([parameters], [
|
|
2389
|
+
{
|
|
2390
|
+
args: [
|
|
2391
|
+
{ in: "query", key: "directory" },
|
|
2392
|
+
{ in: "query", key: "workspace" },
|
|
2393
|
+
],
|
|
2394
|
+
},
|
|
2395
|
+
]);
|
|
2021
2396
|
return (options?.client ?? this.client).get({
|
|
2022
2397
|
url: "/skill",
|
|
2023
2398
|
...options,
|
|
@@ -2032,7 +2407,14 @@ export class Lsp extends HeyApiClient {
|
|
|
2032
2407
|
* Get LSP server status
|
|
2033
2408
|
*/
|
|
2034
2409
|
status(parameters, options) {
|
|
2035
|
-
const params = buildClientParams([parameters], [
|
|
2410
|
+
const params = buildClientParams([parameters], [
|
|
2411
|
+
{
|
|
2412
|
+
args: [
|
|
2413
|
+
{ in: "query", key: "directory" },
|
|
2414
|
+
{ in: "query", key: "workspace" },
|
|
2415
|
+
],
|
|
2416
|
+
},
|
|
2417
|
+
]);
|
|
2036
2418
|
return (options?.client ?? this.client).get({
|
|
2037
2419
|
url: "/lsp",
|
|
2038
2420
|
...options,
|
|
@@ -2047,7 +2429,14 @@ export class Formatter extends HeyApiClient {
|
|
|
2047
2429
|
* Get formatter status
|
|
2048
2430
|
*/
|
|
2049
2431
|
status(parameters, options) {
|
|
2050
|
-
const params = buildClientParams([parameters], [
|
|
2432
|
+
const params = buildClientParams([parameters], [
|
|
2433
|
+
{
|
|
2434
|
+
args: [
|
|
2435
|
+
{ in: "query", key: "directory" },
|
|
2436
|
+
{ in: "query", key: "workspace" },
|
|
2437
|
+
],
|
|
2438
|
+
},
|
|
2439
|
+
]);
|
|
2051
2440
|
return (options?.client ?? this.client).get({
|
|
2052
2441
|
url: "/formatter",
|
|
2053
2442
|
...options,
|
|
@@ -2062,7 +2451,14 @@ export class Event extends HeyApiClient {
|
|
|
2062
2451
|
* Get events
|
|
2063
2452
|
*/
|
|
2064
2453
|
subscribe(parameters, options) {
|
|
2065
|
-
const params = buildClientParams([parameters], [
|
|
2454
|
+
const params = buildClientParams([parameters], [
|
|
2455
|
+
{
|
|
2456
|
+
args: [
|
|
2457
|
+
{ in: "query", key: "directory" },
|
|
2458
|
+
{ in: "query", key: "workspace" },
|
|
2459
|
+
],
|
|
2460
|
+
},
|
|
2461
|
+
]);
|
|
2066
2462
|
return (options?.client ?? this.client).sse.get({
|
|
2067
2463
|
url: "/event",
|
|
2068
2464
|
...options,
|
|
@@ -2100,14 +2496,14 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
2100
2496
|
get tool() {
|
|
2101
2497
|
return (this._tool ??= new Tool({ client: this.client }));
|
|
2102
2498
|
}
|
|
2103
|
-
_worktree;
|
|
2104
|
-
get worktree() {
|
|
2105
|
-
return (this._worktree ??= new Worktree({ client: this.client }));
|
|
2106
|
-
}
|
|
2107
2499
|
_experimental;
|
|
2108
2500
|
get experimental() {
|
|
2109
2501
|
return (this._experimental ??= new Experimental({ client: this.client }));
|
|
2110
2502
|
}
|
|
2503
|
+
_worktree;
|
|
2504
|
+
get worktree() {
|
|
2505
|
+
return (this._worktree ??= new Worktree({ client: this.client }));
|
|
2506
|
+
}
|
|
2111
2507
|
_session;
|
|
2112
2508
|
get session() {
|
|
2113
2509
|
return (this._session ??= new Session2({ client: this.client }));
|