@opencode-ai/sdk 0.0.0-snapshot-node-pty-202602201113 → 0.0.0-snapshot-spawn-server-logs-202603052132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/{src/v2 → v2}/gen/sdk.gen.d.ts +176 -19
  2. package/dist/{src/v2 → v2}/gen/sdk.gen.js +464 -57
  3. package/dist/{src/v2 → v2}/gen/types.gen.d.ts +301 -409
  4. package/package.json +9 -30
  5. package/dist/tsconfig.tsbuildinfo +0 -1
  6. /package/dist/{src/client.d.ts → client.d.ts} +0 -0
  7. /package/dist/{src/client.js → client.js} +0 -0
  8. /package/dist/{src/gen → gen}/client/client.gen.d.ts +0 -0
  9. /package/dist/{src/gen → gen}/client/client.gen.js +0 -0
  10. /package/dist/{src/gen → gen}/client/index.d.ts +0 -0
  11. /package/dist/{src/gen → gen}/client/index.js +0 -0
  12. /package/dist/{src/gen → gen}/client/types.gen.d.ts +0 -0
  13. /package/dist/{src/gen → gen}/client/types.gen.js +0 -0
  14. /package/dist/{src/gen → gen}/client/utils.gen.d.ts +0 -0
  15. /package/dist/{src/gen → gen}/client/utils.gen.js +0 -0
  16. /package/dist/{src/gen → gen}/client.gen.d.ts +0 -0
  17. /package/dist/{src/gen → gen}/client.gen.js +0 -0
  18. /package/dist/{src/gen → gen}/core/auth.gen.d.ts +0 -0
  19. /package/dist/{src/gen → gen}/core/auth.gen.js +0 -0
  20. /package/dist/{src/gen → gen}/core/bodySerializer.gen.d.ts +0 -0
  21. /package/dist/{src/gen → gen}/core/bodySerializer.gen.js +0 -0
  22. /package/dist/{src/gen → gen}/core/params.gen.d.ts +0 -0
  23. /package/dist/{src/gen → gen}/core/params.gen.js +0 -0
  24. /package/dist/{src/gen → gen}/core/pathSerializer.gen.d.ts +0 -0
  25. /package/dist/{src/gen → gen}/core/pathSerializer.gen.js +0 -0
  26. /package/dist/{src/gen → gen}/core/queryKeySerializer.gen.d.ts +0 -0
  27. /package/dist/{src/gen → gen}/core/queryKeySerializer.gen.js +0 -0
  28. /package/dist/{src/gen → gen}/core/serverSentEvents.gen.d.ts +0 -0
  29. /package/dist/{src/gen → gen}/core/serverSentEvents.gen.js +0 -0
  30. /package/dist/{src/gen → gen}/core/types.gen.d.ts +0 -0
  31. /package/dist/{src/gen → gen}/core/types.gen.js +0 -0
  32. /package/dist/{src/gen → gen}/core/utils.gen.d.ts +0 -0
  33. /package/dist/{src/gen → gen}/core/utils.gen.js +0 -0
  34. /package/dist/{src/gen → gen}/sdk.gen.d.ts +0 -0
  35. /package/dist/{src/gen → gen}/sdk.gen.js +0 -0
  36. /package/dist/{src/gen → gen}/types.gen.d.ts +0 -0
  37. /package/dist/{src/gen → gen}/types.gen.js +0 -0
  38. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
  39. /package/dist/{src/index.js → index.js} +0 -0
  40. /package/dist/{src/server.d.ts → server.d.ts} +0 -0
  41. /package/dist/{src/server.js → server.js} +0 -0
  42. /package/dist/{src/v2 → v2}/client.d.ts +0 -0
  43. /package/dist/{src/v2 → v2}/client.js +0 -0
  44. /package/dist/{src/v2 → v2}/gen/client/client.gen.d.ts +0 -0
  45. /package/dist/{src/v2 → v2}/gen/client/client.gen.js +0 -0
  46. /package/dist/{src/v2 → v2}/gen/client/index.d.ts +0 -0
  47. /package/dist/{src/v2 → v2}/gen/client/index.js +0 -0
  48. /package/dist/{src/v2 → v2}/gen/client/types.gen.d.ts +0 -0
  49. /package/dist/{src/v2 → v2}/gen/client/types.gen.js +0 -0
  50. /package/dist/{src/v2 → v2}/gen/client/utils.gen.d.ts +0 -0
  51. /package/dist/{src/v2 → v2}/gen/client/utils.gen.js +0 -0
  52. /package/dist/{src/v2 → v2}/gen/client.gen.d.ts +0 -0
  53. /package/dist/{src/v2 → v2}/gen/client.gen.js +0 -0
  54. /package/dist/{src/v2 → v2}/gen/core/auth.gen.d.ts +0 -0
  55. /package/dist/{src/v2 → v2}/gen/core/auth.gen.js +0 -0
  56. /package/dist/{src/v2 → v2}/gen/core/bodySerializer.gen.d.ts +0 -0
  57. /package/dist/{src/v2 → v2}/gen/core/bodySerializer.gen.js +0 -0
  58. /package/dist/{src/v2 → v2}/gen/core/params.gen.d.ts +0 -0
  59. /package/dist/{src/v2 → v2}/gen/core/params.gen.js +0 -0
  60. /package/dist/{src/v2 → v2}/gen/core/pathSerializer.gen.d.ts +0 -0
  61. /package/dist/{src/v2 → v2}/gen/core/pathSerializer.gen.js +0 -0
  62. /package/dist/{src/v2 → v2}/gen/core/queryKeySerializer.gen.d.ts +0 -0
  63. /package/dist/{src/v2 → v2}/gen/core/queryKeySerializer.gen.js +0 -0
  64. /package/dist/{src/v2 → v2}/gen/core/serverSentEvents.gen.d.ts +0 -0
  65. /package/dist/{src/v2 → v2}/gen/core/serverSentEvents.gen.js +0 -0
  66. /package/dist/{src/v2 → v2}/gen/core/types.gen.d.ts +0 -0
  67. /package/dist/{src/v2 → v2}/gen/core/types.gen.js +0 -0
  68. /package/dist/{src/v2 → v2}/gen/core/utils.gen.d.ts +0 -0
  69. /package/dist/{src/v2 → v2}/gen/core/utils.gen.js +0 -0
  70. /package/dist/{src/v2 → v2}/gen/types.gen.js +0 -0
  71. /package/dist/{src/v2 → v2}/index.d.ts +0 -0
  72. /package/dist/{src/v2 → v2}/index.js +0 -0
  73. /package/dist/{src/v2 → v2}/server.d.ts +0 -0
  74. /package/dist/{src/v2 → v2}/server.js +0 -0
@@ -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], [{ args: [{ in: "query", key: "directory" }] }]);
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], [{ args: [{ in: "query", key: "directory" }] }]);
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], [{ args: [{ in: "query", key: "directory" }] }]);
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], [{ args: [{ in: "query", key: "directory" }] }]);
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], [{ args: [{ in: "query", key: "directory" }] }]);
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], [{ args: [{ in: "query", key: "directory" }] }]);
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
  ],
@@ -407,6 +457,142 @@ export class Tool extends HeyApiClient {
407
457
  });
408
458
  }
409
459
  }
460
+ export class Workspace extends HeyApiClient {
461
+ /**
462
+ * List workspaces
463
+ *
464
+ * List all workspaces.
465
+ */
466
+ list(parameters, options) {
467
+ const params = buildClientParams([parameters], [
468
+ {
469
+ args: [
470
+ { in: "query", key: "directory" },
471
+ { in: "query", key: "workspace" },
472
+ ],
473
+ },
474
+ ]);
475
+ return (options?.client ?? this.client).get({
476
+ url: "/experimental/workspace",
477
+ ...options,
478
+ ...params,
479
+ });
480
+ }
481
+ /**
482
+ * Create workspace
483
+ *
484
+ * Create a workspace for the current project.
485
+ */
486
+ create(parameters, options) {
487
+ const params = buildClientParams([parameters], [
488
+ {
489
+ args: [
490
+ { in: "query", key: "directory" },
491
+ { in: "query", key: "workspace" },
492
+ { in: "body", key: "id" },
493
+ { in: "body", key: "type" },
494
+ { in: "body", key: "branch" },
495
+ { in: "body", key: "extra" },
496
+ ],
497
+ },
498
+ ]);
499
+ return (options?.client ?? this.client).post({
500
+ url: "/experimental/workspace",
501
+ ...options,
502
+ ...params,
503
+ headers: {
504
+ "Content-Type": "application/json",
505
+ ...options?.headers,
506
+ ...params.headers,
507
+ },
508
+ });
509
+ }
510
+ /**
511
+ * Remove workspace
512
+ *
513
+ * Remove an existing workspace.
514
+ */
515
+ remove(parameters, options) {
516
+ const params = buildClientParams([parameters], [
517
+ {
518
+ args: [
519
+ { in: "path", key: "id" },
520
+ { in: "query", key: "directory" },
521
+ { in: "query", key: "workspace" },
522
+ ],
523
+ },
524
+ ]);
525
+ return (options?.client ?? this.client).delete({
526
+ url: "/experimental/workspace/{id}",
527
+ ...options,
528
+ ...params,
529
+ });
530
+ }
531
+ }
532
+ export class Session extends HeyApiClient {
533
+ /**
534
+ * List sessions
535
+ *
536
+ * Get a list of all OpenCode sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
537
+ */
538
+ list(parameters, options) {
539
+ const params = buildClientParams([parameters], [
540
+ {
541
+ args: [
542
+ { in: "query", key: "directory" },
543
+ { in: "query", key: "workspace" },
544
+ { in: "query", key: "roots" },
545
+ { in: "query", key: "start" },
546
+ { in: "query", key: "cursor" },
547
+ { in: "query", key: "search" },
548
+ { in: "query", key: "limit" },
549
+ { in: "query", key: "archived" },
550
+ ],
551
+ },
552
+ ]);
553
+ return (options?.client ?? this.client).get({
554
+ url: "/experimental/session",
555
+ ...options,
556
+ ...params,
557
+ });
558
+ }
559
+ }
560
+ export class Resource extends HeyApiClient {
561
+ /**
562
+ * Get MCP resources
563
+ *
564
+ * Get all available MCP resources from connected servers. Optionally filter by name.
565
+ */
566
+ list(parameters, options) {
567
+ const params = buildClientParams([parameters], [
568
+ {
569
+ args: [
570
+ { in: "query", key: "directory" },
571
+ { in: "query", key: "workspace" },
572
+ ],
573
+ },
574
+ ]);
575
+ return (options?.client ?? this.client).get({
576
+ url: "/experimental/resource",
577
+ ...options,
578
+ ...params,
579
+ });
580
+ }
581
+ }
582
+ export class Experimental extends HeyApiClient {
583
+ _workspace;
584
+ get workspace() {
585
+ return (this._workspace ??= new Workspace({ client: this.client }));
586
+ }
587
+ _session;
588
+ get session() {
589
+ return (this._session ??= new Session({ client: this.client }));
590
+ }
591
+ _resource;
592
+ get resource() {
593
+ return (this._resource ??= new Resource({ client: this.client }));
594
+ }
595
+ }
410
596
  export class Worktree extends HeyApiClient {
411
597
  /**
412
598
  * Remove worktree
@@ -418,6 +604,7 @@ export class Worktree extends HeyApiClient {
418
604
  {
419
605
  args: [
420
606
  { in: "query", key: "directory" },
607
+ { in: "query", key: "workspace" },
421
608
  { key: "worktreeRemoveInput", map: "body" },
422
609
  ],
423
610
  },
@@ -439,7 +626,14 @@ export class Worktree extends HeyApiClient {
439
626
  * List all sandbox worktrees for the current project.
440
627
  */
441
628
  list(parameters, options) {
442
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
629
+ const params = buildClientParams([parameters], [
630
+ {
631
+ args: [
632
+ { in: "query", key: "directory" },
633
+ { in: "query", key: "workspace" },
634
+ ],
635
+ },
636
+ ]);
443
637
  return (options?.client ?? this.client).get({
444
638
  url: "/experimental/worktree",
445
639
  ...options,
@@ -456,6 +650,7 @@ export class Worktree extends HeyApiClient {
456
650
  {
457
651
  args: [
458
652
  { in: "query", key: "directory" },
653
+ { in: "query", key: "workspace" },
459
654
  { key: "worktreeCreateInput", map: "body" },
460
655
  ],
461
656
  },
@@ -481,6 +676,7 @@ export class Worktree extends HeyApiClient {
481
676
  {
482
677
  args: [
483
678
  { in: "query", key: "directory" },
679
+ { in: "query", key: "workspace" },
484
680
  { key: "worktreeResetInput", map: "body" },
485
681
  ],
486
682
  },
@@ -497,28 +693,7 @@ export class Worktree extends HeyApiClient {
497
693
  });
498
694
  }
499
695
  }
500
- export class Resource extends HeyApiClient {
501
- /**
502
- * Get MCP resources
503
- *
504
- * Get all available MCP resources from connected servers. Optionally filter by name.
505
- */
506
- list(parameters, options) {
507
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
508
- return (options?.client ?? this.client).get({
509
- url: "/experimental/resource",
510
- ...options,
511
- ...params,
512
- });
513
- }
514
- }
515
- export class Experimental extends HeyApiClient {
516
- _resource;
517
- get resource() {
518
- return (this._resource ??= new Resource({ client: this.client }));
519
- }
520
- }
521
- export class Session extends HeyApiClient {
696
+ export class Session2 extends HeyApiClient {
522
697
  /**
523
698
  * List sessions
524
699
  *
@@ -529,6 +704,7 @@ export class Session extends HeyApiClient {
529
704
  {
530
705
  args: [
531
706
  { in: "query", key: "directory" },
707
+ { in: "query", key: "workspace" },
532
708
  { in: "query", key: "roots" },
533
709
  { in: "query", key: "start" },
534
710
  { in: "query", key: "search" },
@@ -552,6 +728,7 @@ export class Session extends HeyApiClient {
552
728
  {
553
729
  args: [
554
730
  { in: "query", key: "directory" },
731
+ { in: "query", key: "workspace" },
555
732
  { in: "body", key: "parentID" },
556
733
  { in: "body", key: "title" },
557
734
  { in: "body", key: "permission" },
@@ -575,7 +752,14 @@ export class Session extends HeyApiClient {
575
752
  * Retrieve the current status of all sessions, including active, idle, and completed states.
576
753
  */
577
754
  status(parameters, options) {
578
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
755
+ const params = buildClientParams([parameters], [
756
+ {
757
+ args: [
758
+ { in: "query", key: "directory" },
759
+ { in: "query", key: "workspace" },
760
+ ],
761
+ },
762
+ ]);
579
763
  return (options?.client ?? this.client).get({
580
764
  url: "/session/status",
581
765
  ...options,
@@ -593,6 +777,7 @@ export class Session extends HeyApiClient {
593
777
  args: [
594
778
  { in: "path", key: "sessionID" },
595
779
  { in: "query", key: "directory" },
780
+ { in: "query", key: "workspace" },
596
781
  ],
597
782
  },
598
783
  ]);
@@ -613,6 +798,7 @@ export class Session extends HeyApiClient {
613
798
  args: [
614
799
  { in: "path", key: "sessionID" },
615
800
  { in: "query", key: "directory" },
801
+ { in: "query", key: "workspace" },
616
802
  ],
617
803
  },
618
804
  ]);
@@ -633,6 +819,7 @@ export class Session extends HeyApiClient {
633
819
  args: [
634
820
  { in: "path", key: "sessionID" },
635
821
  { in: "query", key: "directory" },
822
+ { in: "query", key: "workspace" },
636
823
  { in: "body", key: "title" },
637
824
  { in: "body", key: "time" },
638
825
  ],
@@ -660,6 +847,7 @@ export class Session extends HeyApiClient {
660
847
  args: [
661
848
  { in: "path", key: "sessionID" },
662
849
  { in: "query", key: "directory" },
850
+ { in: "query", key: "workspace" },
663
851
  ],
664
852
  },
665
853
  ]);
@@ -680,6 +868,7 @@ export class Session extends HeyApiClient {
680
868
  args: [
681
869
  { in: "path", key: "sessionID" },
682
870
  { in: "query", key: "directory" },
871
+ { in: "query", key: "workspace" },
683
872
  ],
684
873
  },
685
874
  ]);
@@ -700,6 +889,7 @@ export class Session extends HeyApiClient {
700
889
  args: [
701
890
  { in: "path", key: "sessionID" },
702
891
  { in: "query", key: "directory" },
892
+ { in: "query", key: "workspace" },
703
893
  { in: "body", key: "modelID" },
704
894
  { in: "body", key: "providerID" },
705
895
  { in: "body", key: "messageID" },
@@ -728,6 +918,7 @@ export class Session extends HeyApiClient {
728
918
  args: [
729
919
  { in: "path", key: "sessionID" },
730
920
  { in: "query", key: "directory" },
921
+ { in: "query", key: "workspace" },
731
922
  { in: "body", key: "messageID" },
732
923
  ],
733
924
  },
@@ -754,6 +945,7 @@ export class Session extends HeyApiClient {
754
945
  args: [
755
946
  { in: "path", key: "sessionID" },
756
947
  { in: "query", key: "directory" },
948
+ { in: "query", key: "workspace" },
757
949
  ],
758
950
  },
759
951
  ]);
@@ -774,6 +966,7 @@ export class Session extends HeyApiClient {
774
966
  args: [
775
967
  { in: "path", key: "sessionID" },
776
968
  { in: "query", key: "directory" },
969
+ { in: "query", key: "workspace" },
777
970
  ],
778
971
  },
779
972
  ]);
@@ -794,6 +987,7 @@ export class Session extends HeyApiClient {
794
987
  args: [
795
988
  { in: "path", key: "sessionID" },
796
989
  { in: "query", key: "directory" },
990
+ { in: "query", key: "workspace" },
797
991
  ],
798
992
  },
799
993
  ]);
@@ -814,6 +1008,7 @@ export class Session extends HeyApiClient {
814
1008
  args: [
815
1009
  { in: "path", key: "sessionID" },
816
1010
  { in: "query", key: "directory" },
1011
+ { in: "query", key: "workspace" },
817
1012
  { in: "query", key: "messageID" },
818
1013
  ],
819
1014
  },
@@ -835,6 +1030,7 @@ export class Session extends HeyApiClient {
835
1030
  args: [
836
1031
  { in: "path", key: "sessionID" },
837
1032
  { in: "query", key: "directory" },
1033
+ { in: "query", key: "workspace" },
838
1034
  { in: "body", key: "providerID" },
839
1035
  { in: "body", key: "modelID" },
840
1036
  { in: "body", key: "auto" },
@@ -863,6 +1059,7 @@ export class Session extends HeyApiClient {
863
1059
  args: [
864
1060
  { in: "path", key: "sessionID" },
865
1061
  { in: "query", key: "directory" },
1062
+ { in: "query", key: "workspace" },
866
1063
  { in: "query", key: "limit" },
867
1064
  ],
868
1065
  },
@@ -884,6 +1081,7 @@ export class Session extends HeyApiClient {
884
1081
  args: [
885
1082
  { in: "path", key: "sessionID" },
886
1083
  { in: "query", key: "directory" },
1084
+ { in: "query", key: "workspace" },
887
1085
  { in: "body", key: "messageID" },
888
1086
  { in: "body", key: "model" },
889
1087
  { in: "body", key: "agent" },
@@ -907,6 +1105,28 @@ export class Session extends HeyApiClient {
907
1105
  },
908
1106
  });
909
1107
  }
1108
+ /**
1109
+ * Delete message
1110
+ *
1111
+ * 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.
1112
+ */
1113
+ deleteMessage(parameters, options) {
1114
+ const params = buildClientParams([parameters], [
1115
+ {
1116
+ args: [
1117
+ { in: "path", key: "sessionID" },
1118
+ { in: "path", key: "messageID" },
1119
+ { in: "query", key: "directory" },
1120
+ { in: "query", key: "workspace" },
1121
+ ],
1122
+ },
1123
+ ]);
1124
+ return (options?.client ?? this.client).delete({
1125
+ url: "/session/{sessionID}/message/{messageID}",
1126
+ ...options,
1127
+ ...params,
1128
+ });
1129
+ }
910
1130
  /**
911
1131
  * Get message
912
1132
  *
@@ -919,6 +1139,7 @@ export class Session extends HeyApiClient {
919
1139
  { in: "path", key: "sessionID" },
920
1140
  { in: "path", key: "messageID" },
921
1141
  { in: "query", key: "directory" },
1142
+ { in: "query", key: "workspace" },
922
1143
  ],
923
1144
  },
924
1145
  ]);
@@ -939,6 +1160,7 @@ export class Session extends HeyApiClient {
939
1160
  args: [
940
1161
  { in: "path", key: "sessionID" },
941
1162
  { in: "query", key: "directory" },
1163
+ { in: "query", key: "workspace" },
942
1164
  { in: "body", key: "messageID" },
943
1165
  { in: "body", key: "model" },
944
1166
  { in: "body", key: "agent" },
@@ -973,6 +1195,7 @@ export class Session extends HeyApiClient {
973
1195
  args: [
974
1196
  { in: "path", key: "sessionID" },
975
1197
  { in: "query", key: "directory" },
1198
+ { in: "query", key: "workspace" },
976
1199
  { in: "body", key: "messageID" },
977
1200
  { in: "body", key: "agent" },
978
1201
  { in: "body", key: "model" },
@@ -1005,6 +1228,7 @@ export class Session extends HeyApiClient {
1005
1228
  args: [
1006
1229
  { in: "path", key: "sessionID" },
1007
1230
  { in: "query", key: "directory" },
1231
+ { in: "query", key: "workspace" },
1008
1232
  { in: "body", key: "agent" },
1009
1233
  { in: "body", key: "model" },
1010
1234
  { in: "body", key: "command" },
@@ -1033,6 +1257,7 @@ export class Session extends HeyApiClient {
1033
1257
  args: [
1034
1258
  { in: "path", key: "sessionID" },
1035
1259
  { in: "query", key: "directory" },
1260
+ { in: "query", key: "workspace" },
1036
1261
  { in: "body", key: "messageID" },
1037
1262
  { in: "body", key: "partID" },
1038
1263
  ],
@@ -1060,6 +1285,7 @@ export class Session extends HeyApiClient {
1060
1285
  args: [
1061
1286
  { in: "path", key: "sessionID" },
1062
1287
  { in: "query", key: "directory" },
1288
+ { in: "query", key: "workspace" },
1063
1289
  ],
1064
1290
  },
1065
1291
  ]);
@@ -1082,6 +1308,7 @@ export class Part extends HeyApiClient {
1082
1308
  { in: "path", key: "messageID" },
1083
1309
  { in: "path", key: "partID" },
1084
1310
  { in: "query", key: "directory" },
1311
+ { in: "query", key: "workspace" },
1085
1312
  ],
1086
1313
  },
1087
1314
  ]);
@@ -1102,6 +1329,7 @@ export class Part extends HeyApiClient {
1102
1329
  { in: "path", key: "messageID" },
1103
1330
  { in: "path", key: "partID" },
1104
1331
  { in: "query", key: "directory" },
1332
+ { in: "query", key: "workspace" },
1105
1333
  { key: "part", map: "body" },
1106
1334
  ],
1107
1335
  },
@@ -1133,6 +1361,7 @@ export class Permission extends HeyApiClient {
1133
1361
  { in: "path", key: "sessionID" },
1134
1362
  { in: "path", key: "permissionID" },
1135
1363
  { in: "query", key: "directory" },
1364
+ { in: "query", key: "workspace" },
1136
1365
  { in: "body", key: "response" },
1137
1366
  ],
1138
1367
  },
@@ -1159,6 +1388,7 @@ export class Permission extends HeyApiClient {
1159
1388
  args: [
1160
1389
  { in: "path", key: "requestID" },
1161
1390
  { in: "query", key: "directory" },
1391
+ { in: "query", key: "workspace" },
1162
1392
  { in: "body", key: "reply" },
1163
1393
  { in: "body", key: "message" },
1164
1394
  ],
@@ -1181,7 +1411,14 @@ export class Permission extends HeyApiClient {
1181
1411
  * Get all pending permission requests across all sessions.
1182
1412
  */
1183
1413
  list(parameters, options) {
1184
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1414
+ const params = buildClientParams([parameters], [
1415
+ {
1416
+ args: [
1417
+ { in: "query", key: "directory" },
1418
+ { in: "query", key: "workspace" },
1419
+ ],
1420
+ },
1421
+ ]);
1185
1422
  return (options?.client ?? this.client).get({
1186
1423
  url: "/permission",
1187
1424
  ...options,
@@ -1196,7 +1433,14 @@ export class Question extends HeyApiClient {
1196
1433
  * Get all pending question requests across all sessions.
1197
1434
  */
1198
1435
  list(parameters, options) {
1199
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1436
+ const params = buildClientParams([parameters], [
1437
+ {
1438
+ args: [
1439
+ { in: "query", key: "directory" },
1440
+ { in: "query", key: "workspace" },
1441
+ ],
1442
+ },
1443
+ ]);
1200
1444
  return (options?.client ?? this.client).get({
1201
1445
  url: "/question",
1202
1446
  ...options,
@@ -1214,6 +1458,7 @@ export class Question extends HeyApiClient {
1214
1458
  args: [
1215
1459
  { in: "path", key: "requestID" },
1216
1460
  { in: "query", key: "directory" },
1461
+ { in: "query", key: "workspace" },
1217
1462
  { in: "body", key: "answers" },
1218
1463
  ],
1219
1464
  },
@@ -1240,6 +1485,7 @@ export class Question extends HeyApiClient {
1240
1485
  args: [
1241
1486
  { in: "path", key: "requestID" },
1242
1487
  { in: "query", key: "directory" },
1488
+ { in: "query", key: "workspace" },
1243
1489
  ],
1244
1490
  },
1245
1491
  ]);
@@ -1262,6 +1508,7 @@ export class Oauth extends HeyApiClient {
1262
1508
  args: [
1263
1509
  { in: "path", key: "providerID" },
1264
1510
  { in: "query", key: "directory" },
1511
+ { in: "query", key: "workspace" },
1265
1512
  { in: "body", key: "method" },
1266
1513
  ],
1267
1514
  },
@@ -1288,6 +1535,7 @@ export class Oauth extends HeyApiClient {
1288
1535
  args: [
1289
1536
  { in: "path", key: "providerID" },
1290
1537
  { in: "query", key: "directory" },
1538
+ { in: "query", key: "workspace" },
1291
1539
  { in: "body", key: "method" },
1292
1540
  { in: "body", key: "code" },
1293
1541
  ],
@@ -1312,7 +1560,14 @@ export class Provider extends HeyApiClient {
1312
1560
  * Get a list of all available AI providers, including both available and connected ones.
1313
1561
  */
1314
1562
  list(parameters, options) {
1315
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1563
+ const params = buildClientParams([parameters], [
1564
+ {
1565
+ args: [
1566
+ { in: "query", key: "directory" },
1567
+ { in: "query", key: "workspace" },
1568
+ ],
1569
+ },
1570
+ ]);
1316
1571
  return (options?.client ?? this.client).get({
1317
1572
  url: "/provider",
1318
1573
  ...options,
@@ -1325,7 +1580,14 @@ export class Provider extends HeyApiClient {
1325
1580
  * Retrieve available authentication methods for all AI providers.
1326
1581
  */
1327
1582
  auth(parameters, options) {
1328
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1583
+ const params = buildClientParams([parameters], [
1584
+ {
1585
+ args: [
1586
+ { in: "query", key: "directory" },
1587
+ { in: "query", key: "workspace" },
1588
+ ],
1589
+ },
1590
+ ]);
1329
1591
  return (options?.client ?? this.client).get({
1330
1592
  url: "/provider/auth",
1331
1593
  ...options,
@@ -1348,6 +1610,7 @@ export class Find extends HeyApiClient {
1348
1610
  {
1349
1611
  args: [
1350
1612
  { in: "query", key: "directory" },
1613
+ { in: "query", key: "workspace" },
1351
1614
  { in: "query", key: "pattern" },
1352
1615
  ],
1353
1616
  },
@@ -1368,6 +1631,7 @@ export class Find extends HeyApiClient {
1368
1631
  {
1369
1632
  args: [
1370
1633
  { in: "query", key: "directory" },
1634
+ { in: "query", key: "workspace" },
1371
1635
  { in: "query", key: "query" },
1372
1636
  { in: "query", key: "dirs" },
1373
1637
  { in: "query", key: "type" },
@@ -1391,6 +1655,7 @@ export class Find extends HeyApiClient {
1391
1655
  {
1392
1656
  args: [
1393
1657
  { in: "query", key: "directory" },
1658
+ { in: "query", key: "workspace" },
1394
1659
  { in: "query", key: "query" },
1395
1660
  ],
1396
1661
  },
@@ -1413,6 +1678,7 @@ export class File extends HeyApiClient {
1413
1678
  {
1414
1679
  args: [
1415
1680
  { in: "query", key: "directory" },
1681
+ { in: "query", key: "workspace" },
1416
1682
  { in: "query", key: "path" },
1417
1683
  ],
1418
1684
  },
@@ -1433,6 +1699,7 @@ export class File extends HeyApiClient {
1433
1699
  {
1434
1700
  args: [
1435
1701
  { in: "query", key: "directory" },
1702
+ { in: "query", key: "workspace" },
1436
1703
  { in: "query", key: "path" },
1437
1704
  ],
1438
1705
  },
@@ -1449,7 +1716,14 @@ export class File extends HeyApiClient {
1449
1716
  * Get the git status of all files in the project.
1450
1717
  */
1451
1718
  status(parameters, options) {
1452
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1719
+ const params = buildClientParams([parameters], [
1720
+ {
1721
+ args: [
1722
+ { in: "query", key: "directory" },
1723
+ { in: "query", key: "workspace" },
1724
+ ],
1725
+ },
1726
+ ]);
1453
1727
  return (options?.client ?? this.client).get({
1454
1728
  url: "/file/status",
1455
1729
  ...options,
@@ -1469,6 +1743,7 @@ export class Auth2 extends HeyApiClient {
1469
1743
  args: [
1470
1744
  { in: "path", key: "name" },
1471
1745
  { in: "query", key: "directory" },
1746
+ { in: "query", key: "workspace" },
1472
1747
  ],
1473
1748
  },
1474
1749
  ]);
@@ -1489,6 +1764,7 @@ export class Auth2 extends HeyApiClient {
1489
1764
  args: [
1490
1765
  { in: "path", key: "name" },
1491
1766
  { in: "query", key: "directory" },
1767
+ { in: "query", key: "workspace" },
1492
1768
  ],
1493
1769
  },
1494
1770
  ]);
@@ -1509,6 +1785,7 @@ export class Auth2 extends HeyApiClient {
1509
1785
  args: [
1510
1786
  { in: "path", key: "name" },
1511
1787
  { in: "query", key: "directory" },
1788
+ { in: "query", key: "workspace" },
1512
1789
  { in: "body", key: "code" },
1513
1790
  ],
1514
1791
  },
@@ -1535,6 +1812,7 @@ export class Auth2 extends HeyApiClient {
1535
1812
  args: [
1536
1813
  { in: "path", key: "name" },
1537
1814
  { in: "query", key: "directory" },
1815
+ { in: "query", key: "workspace" },
1538
1816
  ],
1539
1817
  },
1540
1818
  ]);
@@ -1552,7 +1830,14 @@ export class Mcp extends HeyApiClient {
1552
1830
  * Get the status of all Model Context Protocol (MCP) servers.
1553
1831
  */
1554
1832
  status(parameters, options) {
1555
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1833
+ const params = buildClientParams([parameters], [
1834
+ {
1835
+ args: [
1836
+ { in: "query", key: "directory" },
1837
+ { in: "query", key: "workspace" },
1838
+ ],
1839
+ },
1840
+ ]);
1556
1841
  return (options?.client ?? this.client).get({
1557
1842
  url: "/mcp",
1558
1843
  ...options,
@@ -1569,6 +1854,7 @@ export class Mcp extends HeyApiClient {
1569
1854
  {
1570
1855
  args: [
1571
1856
  { in: "query", key: "directory" },
1857
+ { in: "query", key: "workspace" },
1572
1858
  { in: "body", key: "name" },
1573
1859
  { in: "body", key: "config" },
1574
1860
  ],
@@ -1594,6 +1880,7 @@ export class Mcp extends HeyApiClient {
1594
1880
  args: [
1595
1881
  { in: "path", key: "name" },
1596
1882
  { in: "query", key: "directory" },
1883
+ { in: "query", key: "workspace" },
1597
1884
  ],
1598
1885
  },
1599
1886
  ]);
@@ -1612,6 +1899,7 @@ export class Mcp extends HeyApiClient {
1612
1899
  args: [
1613
1900
  { in: "path", key: "name" },
1614
1901
  { in: "query", key: "directory" },
1902
+ { in: "query", key: "workspace" },
1615
1903
  ],
1616
1904
  },
1617
1905
  ]);
@@ -1633,7 +1921,14 @@ export class Control extends HeyApiClient {
1633
1921
  * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
1634
1922
  */
1635
1923
  next(parameters, options) {
1636
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1924
+ const params = buildClientParams([parameters], [
1925
+ {
1926
+ args: [
1927
+ { in: "query", key: "directory" },
1928
+ { in: "query", key: "workspace" },
1929
+ ],
1930
+ },
1931
+ ]);
1637
1932
  return (options?.client ?? this.client).get({
1638
1933
  url: "/tui/control/next",
1639
1934
  ...options,
@@ -1650,6 +1945,7 @@ export class Control extends HeyApiClient {
1650
1945
  {
1651
1946
  args: [
1652
1947
  { in: "query", key: "directory" },
1948
+ { in: "query", key: "workspace" },
1653
1949
  { key: "body", map: "body" },
1654
1950
  ],
1655
1951
  },
@@ -1677,6 +1973,7 @@ export class Tui extends HeyApiClient {
1677
1973
  {
1678
1974
  args: [
1679
1975
  { in: "query", key: "directory" },
1976
+ { in: "query", key: "workspace" },
1680
1977
  { in: "body", key: "text" },
1681
1978
  ],
1682
1979
  },
@@ -1698,7 +1995,14 @@ export class Tui extends HeyApiClient {
1698
1995
  * Open the help dialog in the TUI to display user assistance information.
1699
1996
  */
1700
1997
  openHelp(parameters, options) {
1701
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1998
+ const params = buildClientParams([parameters], [
1999
+ {
2000
+ args: [
2001
+ { in: "query", key: "directory" },
2002
+ { in: "query", key: "workspace" },
2003
+ ],
2004
+ },
2005
+ ]);
1702
2006
  return (options?.client ?? this.client).post({
1703
2007
  url: "/tui/open-help",
1704
2008
  ...options,
@@ -1711,7 +2015,14 @@ export class Tui extends HeyApiClient {
1711
2015
  * Open the session dialog
1712
2016
  */
1713
2017
  openSessions(parameters, options) {
1714
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2018
+ const params = buildClientParams([parameters], [
2019
+ {
2020
+ args: [
2021
+ { in: "query", key: "directory" },
2022
+ { in: "query", key: "workspace" },
2023
+ ],
2024
+ },
2025
+ ]);
1715
2026
  return (options?.client ?? this.client).post({
1716
2027
  url: "/tui/open-sessions",
1717
2028
  ...options,
@@ -1724,7 +2035,14 @@ export class Tui extends HeyApiClient {
1724
2035
  * Open the theme dialog
1725
2036
  */
1726
2037
  openThemes(parameters, options) {
1727
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2038
+ const params = buildClientParams([parameters], [
2039
+ {
2040
+ args: [
2041
+ { in: "query", key: "directory" },
2042
+ { in: "query", key: "workspace" },
2043
+ ],
2044
+ },
2045
+ ]);
1728
2046
  return (options?.client ?? this.client).post({
1729
2047
  url: "/tui/open-themes",
1730
2048
  ...options,
@@ -1737,7 +2055,14 @@ export class Tui extends HeyApiClient {
1737
2055
  * Open the model dialog
1738
2056
  */
1739
2057
  openModels(parameters, options) {
1740
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2058
+ const params = buildClientParams([parameters], [
2059
+ {
2060
+ args: [
2061
+ { in: "query", key: "directory" },
2062
+ { in: "query", key: "workspace" },
2063
+ ],
2064
+ },
2065
+ ]);
1741
2066
  return (options?.client ?? this.client).post({
1742
2067
  url: "/tui/open-models",
1743
2068
  ...options,
@@ -1750,7 +2075,14 @@ export class Tui extends HeyApiClient {
1750
2075
  * Submit the prompt
1751
2076
  */
1752
2077
  submitPrompt(parameters, options) {
1753
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2078
+ const params = buildClientParams([parameters], [
2079
+ {
2080
+ args: [
2081
+ { in: "query", key: "directory" },
2082
+ { in: "query", key: "workspace" },
2083
+ ],
2084
+ },
2085
+ ]);
1754
2086
  return (options?.client ?? this.client).post({
1755
2087
  url: "/tui/submit-prompt",
1756
2088
  ...options,
@@ -1763,7 +2095,14 @@ export class Tui extends HeyApiClient {
1763
2095
  * Clear the prompt
1764
2096
  */
1765
2097
  clearPrompt(parameters, options) {
1766
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2098
+ const params = buildClientParams([parameters], [
2099
+ {
2100
+ args: [
2101
+ { in: "query", key: "directory" },
2102
+ { in: "query", key: "workspace" },
2103
+ ],
2104
+ },
2105
+ ]);
1767
2106
  return (options?.client ?? this.client).post({
1768
2107
  url: "/tui/clear-prompt",
1769
2108
  ...options,
@@ -1780,6 +2119,7 @@ export class Tui extends HeyApiClient {
1780
2119
  {
1781
2120
  args: [
1782
2121
  { in: "query", key: "directory" },
2122
+ { in: "query", key: "workspace" },
1783
2123
  { in: "body", key: "command" },
1784
2124
  ],
1785
2125
  },
@@ -1805,6 +2145,7 @@ export class Tui extends HeyApiClient {
1805
2145
  {
1806
2146
  args: [
1807
2147
  { in: "query", key: "directory" },
2148
+ { in: "query", key: "workspace" },
1808
2149
  { in: "body", key: "title" },
1809
2150
  { in: "body", key: "message" },
1810
2151
  { in: "body", key: "variant" },
@@ -1833,6 +2174,7 @@ export class Tui extends HeyApiClient {
1833
2174
  {
1834
2175
  args: [
1835
2176
  { in: "query", key: "directory" },
2177
+ { in: "query", key: "workspace" },
1836
2178
  { key: "body", map: "body" },
1837
2179
  ],
1838
2180
  },
@@ -1858,6 +2200,7 @@ export class Tui extends HeyApiClient {
1858
2200
  {
1859
2201
  args: [
1860
2202
  { in: "query", key: "directory" },
2203
+ { in: "query", key: "workspace" },
1861
2204
  { in: "body", key: "sessionID" },
1862
2205
  ],
1863
2206
  },
@@ -1885,7 +2228,14 @@ export class Instance extends HeyApiClient {
1885
2228
  * Clean up and dispose the current OpenCode instance, releasing all resources.
1886
2229
  */
1887
2230
  dispose(parameters, options) {
1888
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2231
+ const params = buildClientParams([parameters], [
2232
+ {
2233
+ args: [
2234
+ { in: "query", key: "directory" },
2235
+ { in: "query", key: "workspace" },
2236
+ ],
2237
+ },
2238
+ ]);
1889
2239
  return (options?.client ?? this.client).post({
1890
2240
  url: "/instance/dispose",
1891
2241
  ...options,
@@ -1900,7 +2250,14 @@ export class Path extends HeyApiClient {
1900
2250
  * Retrieve the current working directory and related path information for the OpenCode instance.
1901
2251
  */
1902
2252
  get(parameters, options) {
1903
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2253
+ const params = buildClientParams([parameters], [
2254
+ {
2255
+ args: [
2256
+ { in: "query", key: "directory" },
2257
+ { in: "query", key: "workspace" },
2258
+ ],
2259
+ },
2260
+ ]);
1904
2261
  return (options?.client ?? this.client).get({
1905
2262
  url: "/path",
1906
2263
  ...options,
@@ -1915,7 +2272,14 @@ export class Vcs extends HeyApiClient {
1915
2272
  * Retrieve version control system (VCS) information for the current project, such as git branch.
1916
2273
  */
1917
2274
  get(parameters, options) {
1918
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2275
+ const params = buildClientParams([parameters], [
2276
+ {
2277
+ args: [
2278
+ { in: "query", key: "directory" },
2279
+ { in: "query", key: "workspace" },
2280
+ ],
2281
+ },
2282
+ ]);
1919
2283
  return (options?.client ?? this.client).get({
1920
2284
  url: "/vcs",
1921
2285
  ...options,
@@ -1930,7 +2294,14 @@ export class Command extends HeyApiClient {
1930
2294
  * Get a list of all available commands in the OpenCode system.
1931
2295
  */
1932
2296
  list(parameters, options) {
1933
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2297
+ const params = buildClientParams([parameters], [
2298
+ {
2299
+ args: [
2300
+ { in: "query", key: "directory" },
2301
+ { in: "query", key: "workspace" },
2302
+ ],
2303
+ },
2304
+ ]);
1934
2305
  return (options?.client ?? this.client).get({
1935
2306
  url: "/command",
1936
2307
  ...options,
@@ -1949,6 +2320,7 @@ export class App extends HeyApiClient {
1949
2320
  {
1950
2321
  args: [
1951
2322
  { in: "query", key: "directory" },
2323
+ { in: "query", key: "workspace" },
1952
2324
  { in: "body", key: "service" },
1953
2325
  { in: "body", key: "level" },
1954
2326
  { in: "body", key: "message" },
@@ -1973,7 +2345,14 @@ export class App extends HeyApiClient {
1973
2345
  * Get a list of all available AI agents in the OpenCode system.
1974
2346
  */
1975
2347
  agents(parameters, options) {
1976
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2348
+ const params = buildClientParams([parameters], [
2349
+ {
2350
+ args: [
2351
+ { in: "query", key: "directory" },
2352
+ { in: "query", key: "workspace" },
2353
+ ],
2354
+ },
2355
+ ]);
1977
2356
  return (options?.client ?? this.client).get({
1978
2357
  url: "/agent",
1979
2358
  ...options,
@@ -1986,7 +2365,14 @@ export class App extends HeyApiClient {
1986
2365
  * Get a list of all available skills in the OpenCode system.
1987
2366
  */
1988
2367
  skills(parameters, options) {
1989
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2368
+ const params = buildClientParams([parameters], [
2369
+ {
2370
+ args: [
2371
+ { in: "query", key: "directory" },
2372
+ { in: "query", key: "workspace" },
2373
+ ],
2374
+ },
2375
+ ]);
1990
2376
  return (options?.client ?? this.client).get({
1991
2377
  url: "/skill",
1992
2378
  ...options,
@@ -2001,7 +2387,14 @@ export class Lsp extends HeyApiClient {
2001
2387
  * Get LSP server status
2002
2388
  */
2003
2389
  status(parameters, options) {
2004
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2390
+ const params = buildClientParams([parameters], [
2391
+ {
2392
+ args: [
2393
+ { in: "query", key: "directory" },
2394
+ { in: "query", key: "workspace" },
2395
+ ],
2396
+ },
2397
+ ]);
2005
2398
  return (options?.client ?? this.client).get({
2006
2399
  url: "/lsp",
2007
2400
  ...options,
@@ -2016,7 +2409,14 @@ export class Formatter extends HeyApiClient {
2016
2409
  * Get formatter status
2017
2410
  */
2018
2411
  status(parameters, options) {
2019
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2412
+ const params = buildClientParams([parameters], [
2413
+ {
2414
+ args: [
2415
+ { in: "query", key: "directory" },
2416
+ { in: "query", key: "workspace" },
2417
+ ],
2418
+ },
2419
+ ]);
2020
2420
  return (options?.client ?? this.client).get({
2021
2421
  url: "/formatter",
2022
2422
  ...options,
@@ -2031,7 +2431,14 @@ export class Event extends HeyApiClient {
2031
2431
  * Get events
2032
2432
  */
2033
2433
  subscribe(parameters, options) {
2034
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2434
+ const params = buildClientParams([parameters], [
2435
+ {
2436
+ args: [
2437
+ { in: "query", key: "directory" },
2438
+ { in: "query", key: "workspace" },
2439
+ ],
2440
+ },
2441
+ ]);
2035
2442
  return (options?.client ?? this.client).sse.get({
2036
2443
  url: "/event",
2037
2444
  ...options,
@@ -2069,17 +2476,17 @@ export class OpencodeClient extends HeyApiClient {
2069
2476
  get tool() {
2070
2477
  return (this._tool ??= new Tool({ client: this.client }));
2071
2478
  }
2072
- _worktree;
2073
- get worktree() {
2074
- return (this._worktree ??= new Worktree({ client: this.client }));
2075
- }
2076
2479
  _experimental;
2077
2480
  get experimental() {
2078
2481
  return (this._experimental ??= new Experimental({ client: this.client }));
2079
2482
  }
2483
+ _worktree;
2484
+ get worktree() {
2485
+ return (this._worktree ??= new Worktree({ client: this.client }));
2486
+ }
2080
2487
  _session;
2081
2488
  get session() {
2082
- return (this._session ??= new Session({ client: this.client }));
2489
+ return (this._session ??= new Session2({ client: this.client }));
2083
2490
  }
2084
2491
  _part;
2085
2492
  get part() {