shuvcode 2.0.32-shuv.1 → 2.2.1-shuv.1
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/client/api.d.ts +4 -0
- package/client/client.d.ts +211 -122
- package/client/client.js +1 -1
- package/client/generated/client.d.ts +247 -123
- package/client/generated/client.js +576 -295
- package/client/generated/types.d.ts +1866 -5155
- package/client/generated/types.js +13 -7
- package/client/index.d.ts +1 -0
- package/client/index.js +7 -7
- package/client/service.d.ts +2 -2
- package/client/service.js +1 -1
- package/package.json +13 -13
|
@@ -136,7 +136,7 @@ export function make(options) {
|
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
138
|
});
|
|
139
|
-
|
|
139
|
+
const client = {
|
|
140
140
|
server: {
|
|
141
141
|
info: (requestOptions) => request({ method: "GET", path: `/api/info`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions),
|
|
142
142
|
pair: (requestOptions) => request({ method: "POST", path: `/api/pair`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions),
|
|
@@ -171,7 +171,7 @@ export function make(options) {
|
|
|
171
171
|
path: `/api/agent`,
|
|
172
172
|
query: { location: input?.["location"] },
|
|
173
173
|
successStatus: 200,
|
|
174
|
-
declaredStatuses: [400, 401, 404],
|
|
174
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
175
175
|
empty: false,
|
|
176
176
|
}, requestOptions),
|
|
177
177
|
get: (input, requestOptions) => request({
|
|
@@ -192,6 +192,14 @@ export function make(options) {
|
|
|
192
192
|
declaredStatuses: [400, 401, 404],
|
|
193
193
|
empty: false,
|
|
194
194
|
}, requestOptions),
|
|
195
|
+
gui: (input, requestOptions) => request({
|
|
196
|
+
method: "GET",
|
|
197
|
+
path: `/api/plugin/gui`,
|
|
198
|
+
query: { location: input["location"], id: input["id"] },
|
|
199
|
+
successStatus: 200,
|
|
200
|
+
declaredStatuses: [400, 401, 404],
|
|
201
|
+
empty: false,
|
|
202
|
+
}, requestOptions),
|
|
195
203
|
check: (input, requestOptions) => request({
|
|
196
204
|
method: "POST",
|
|
197
205
|
path: `/api/plugin/check`,
|
|
@@ -220,6 +228,7 @@ export function make(options) {
|
|
|
220
228
|
order: input?.["order"],
|
|
221
229
|
search: input?.["search"],
|
|
222
230
|
parentID: input?.["parentID"],
|
|
231
|
+
archived: input?.["archived"],
|
|
223
232
|
directory: input?.["directory"],
|
|
224
233
|
project: input?.["project"],
|
|
225
234
|
subpath: input?.["subpath"],
|
|
@@ -229,20 +238,6 @@ export function make(options) {
|
|
|
229
238
|
declaredStatuses: [400, 401],
|
|
230
239
|
empty: false,
|
|
231
240
|
}, requestOptions),
|
|
232
|
-
stats: (input, requestOptions) => request({
|
|
233
|
-
method: "GET",
|
|
234
|
-
path: `/api/experimental/session/stats`,
|
|
235
|
-
query: {
|
|
236
|
-
from: input?.["from"],
|
|
237
|
-
to: input?.["to"],
|
|
238
|
-
project: input?.["project"],
|
|
239
|
-
timezone: input?.["timezone"],
|
|
240
|
-
tools: input?.["tools"],
|
|
241
|
-
},
|
|
242
|
-
successStatus: 200,
|
|
243
|
-
declaredStatuses: [400, 401],
|
|
244
|
-
empty: false,
|
|
245
|
-
}, requestOptions).then((value) => value.data),
|
|
246
241
|
create: (input, requestOptions) => request({
|
|
247
242
|
method: "POST",
|
|
248
243
|
path: `/api/session`,
|
|
@@ -260,22 +255,6 @@ export function make(options) {
|
|
|
260
255
|
declaredStatuses: [400, 401, 404],
|
|
261
256
|
empty: false,
|
|
262
257
|
}, requestOptions).then((value) => value.data),
|
|
263
|
-
import: (input, requestOptions) => request({
|
|
264
|
-
method: "POST",
|
|
265
|
-
path: `/api/experimental/session/import`,
|
|
266
|
-
body: { info: input["info"], messages: input["messages"], location: input["location"] },
|
|
267
|
-
successStatus: 200,
|
|
268
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
269
|
-
empty: false,
|
|
270
|
-
}, requestOptions).then((value) => value.data),
|
|
271
|
-
export: (input, requestOptions) => request({
|
|
272
|
-
method: "GET",
|
|
273
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/export`,
|
|
274
|
-
query: { sanitize: input["sanitize"] },
|
|
275
|
-
successStatus: 200,
|
|
276
|
-
declaredStatuses: [400, 401, 404, 500],
|
|
277
|
-
empty: false,
|
|
278
|
-
}, requestOptions).then((value) => value.data),
|
|
279
258
|
active: (requestOptions) => request({
|
|
280
259
|
method: "GET",
|
|
281
260
|
path: `/api/session/active`,
|
|
@@ -324,7 +303,12 @@ export function make(options) {
|
|
|
324
303
|
update: (input, requestOptions) => request({
|
|
325
304
|
method: "PATCH",
|
|
326
305
|
path: `/api/session/${encodeURIComponent(input.sessionID)}`,
|
|
327
|
-
body: {
|
|
306
|
+
body: {
|
|
307
|
+
title: input["title"],
|
|
308
|
+
metadata: input["metadata"],
|
|
309
|
+
permissions: input["permissions"],
|
|
310
|
+
archived: input["archived"],
|
|
311
|
+
},
|
|
328
312
|
successStatus: 204,
|
|
329
313
|
declaredStatuses: [400, 401, 404],
|
|
330
314
|
empty: true,
|
|
@@ -369,14 +353,6 @@ export function make(options) {
|
|
|
369
353
|
declaredStatuses: [400, 401, 404, 500],
|
|
370
354
|
empty: true,
|
|
371
355
|
}, requestOptions),
|
|
372
|
-
skill: (input, requestOptions) => request({
|
|
373
|
-
method: "POST",
|
|
374
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/skill`,
|
|
375
|
-
body: { id: input["id"], resume: input["resume"] },
|
|
376
|
-
successStatus: 204,
|
|
377
|
-
declaredStatuses: [400, 401, 404],
|
|
378
|
-
empty: true,
|
|
379
|
-
}, requestOptions),
|
|
380
356
|
synthetic: (input, requestOptions) => request({
|
|
381
357
|
method: "POST",
|
|
382
358
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/synthetic`,
|
|
@@ -408,13 +384,6 @@ export function make(options) {
|
|
|
408
384
|
declaredStatuses: [400, 401, 404, 409],
|
|
409
385
|
empty: false,
|
|
410
386
|
}, requestOptions).then((value) => value.data),
|
|
411
|
-
wait: (input, requestOptions) => request({
|
|
412
|
-
method: "POST",
|
|
413
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/wait`,
|
|
414
|
-
successStatus: 204,
|
|
415
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
416
|
-
empty: true,
|
|
417
|
-
}, requestOptions),
|
|
418
387
|
revert: {
|
|
419
388
|
stage: (input, requestOptions) => request({
|
|
420
389
|
method: "POST",
|
|
@@ -478,32 +447,6 @@ export function make(options) {
|
|
|
478
447
|
empty: true,
|
|
479
448
|
}, requestOptions),
|
|
480
449
|
},
|
|
481
|
-
instructions: {
|
|
482
|
-
entry: {
|
|
483
|
-
list: (input, requestOptions) => request({
|
|
484
|
-
method: "GET",
|
|
485
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries`,
|
|
486
|
-
successStatus: 200,
|
|
487
|
-
declaredStatuses: [400, 401, 404],
|
|
488
|
-
empty: false,
|
|
489
|
-
}, requestOptions).then((value) => value.data),
|
|
490
|
-
put: (input, requestOptions) => request({
|
|
491
|
-
method: "PUT",
|
|
492
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
493
|
-
body: { value: input["value"] },
|
|
494
|
-
successStatus: 204,
|
|
495
|
-
declaredStatuses: [400, 401, 404, 413],
|
|
496
|
-
empty: true,
|
|
497
|
-
}, requestOptions),
|
|
498
|
-
remove: (input, requestOptions) => request({
|
|
499
|
-
method: "DELETE",
|
|
500
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
501
|
-
successStatus: 204,
|
|
502
|
-
declaredStatuses: [400, 401, 404],
|
|
503
|
-
empty: true,
|
|
504
|
-
}, requestOptions),
|
|
505
|
-
},
|
|
506
|
-
},
|
|
507
450
|
generate: (input, requestOptions) => request({
|
|
508
451
|
method: "POST",
|
|
509
452
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/generate`,
|
|
@@ -512,14 +455,6 @@ export function make(options) {
|
|
|
512
455
|
declaredStatuses: [400, 401, 404, 503],
|
|
513
456
|
empty: false,
|
|
514
457
|
}, requestOptions).then((value) => value.data),
|
|
515
|
-
log: (input, requestOptions) => sse({
|
|
516
|
-
method: "GET",
|
|
517
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/log`,
|
|
518
|
-
query: { after: input["after"], follow: input["follow"] },
|
|
519
|
-
successStatus: 200,
|
|
520
|
-
declaredStatuses: [400, 401, 404],
|
|
521
|
-
empty: false,
|
|
522
|
-
}, requestOptions),
|
|
523
458
|
interrupt: (input, requestOptions) => request({
|
|
524
459
|
method: "POST",
|
|
525
460
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/interrupt`,
|
|
@@ -560,46 +495,444 @@ export function make(options) {
|
|
|
560
495
|
declaredStatuses: [400, 401, 404, 409],
|
|
561
496
|
empty: false,
|
|
562
497
|
}, requestOptions).then((value) => value.data),
|
|
563
|
-
get: (input, requestOptions) => request({
|
|
564
|
-
method: "GET",
|
|
565
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
498
|
+
get: (input, requestOptions) => request({
|
|
499
|
+
method: "GET",
|
|
500
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
501
|
+
successStatus: 200,
|
|
502
|
+
declaredStatuses: [400, 401, 404],
|
|
503
|
+
empty: false,
|
|
504
|
+
}, requestOptions).then((value) => value.data),
|
|
505
|
+
reply: (input, requestOptions) => request({
|
|
506
|
+
method: "POST",
|
|
507
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/reply`,
|
|
508
|
+
body: { answer: input["answer"] },
|
|
509
|
+
successStatus: 204,
|
|
510
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
511
|
+
empty: true,
|
|
512
|
+
}, requestOptions),
|
|
513
|
+
cancel: (input, requestOptions) => request({
|
|
514
|
+
method: "DELETE",
|
|
515
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
516
|
+
query: { message: input["message"] },
|
|
517
|
+
successStatus: 204,
|
|
518
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
519
|
+
empty: true,
|
|
520
|
+
}, requestOptions),
|
|
521
|
+
},
|
|
522
|
+
environment: (input, requestOptions) => request({
|
|
523
|
+
method: "PUT",
|
|
524
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/environment`,
|
|
525
|
+
body: { variables: input["variables"] },
|
|
526
|
+
successStatus: 204,
|
|
527
|
+
declaredStatuses: [400, 401, 404],
|
|
528
|
+
empty: true,
|
|
529
|
+
}, requestOptions),
|
|
530
|
+
view: (input, requestOptions) => request({
|
|
531
|
+
method: "POST",
|
|
532
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/view`,
|
|
533
|
+
body: { idle: input["idle"] },
|
|
534
|
+
successStatus: 204,
|
|
535
|
+
declaredStatuses: [400, 401, 404],
|
|
536
|
+
empty: true,
|
|
537
|
+
}, requestOptions),
|
|
538
|
+
},
|
|
539
|
+
experimental: {
|
|
540
|
+
session: {
|
|
541
|
+
stats: (input, requestOptions) => request({
|
|
542
|
+
method: "GET",
|
|
543
|
+
path: `/api/experimental/session/stats`,
|
|
544
|
+
query: {
|
|
545
|
+
from: input?.["from"],
|
|
546
|
+
to: input?.["to"],
|
|
547
|
+
project: input?.["project"],
|
|
548
|
+
timezone: input?.["timezone"],
|
|
549
|
+
tools: input?.["tools"],
|
|
550
|
+
},
|
|
551
|
+
successStatus: 200,
|
|
552
|
+
declaredStatuses: [400, 401],
|
|
553
|
+
empty: false,
|
|
554
|
+
}, requestOptions).then((value) => value.data),
|
|
555
|
+
import: (input, requestOptions) => request({
|
|
556
|
+
method: "POST",
|
|
557
|
+
path: `/api/experimental/session/import`,
|
|
558
|
+
body: { info: input["info"], messages: input["messages"], location: input["location"] },
|
|
559
|
+
successStatus: 200,
|
|
560
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
561
|
+
empty: false,
|
|
562
|
+
}, requestOptions).then((value) => value.data),
|
|
563
|
+
export: (input, requestOptions) => request({
|
|
564
|
+
method: "GET",
|
|
565
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/export`,
|
|
566
|
+
query: { sanitize: input["sanitize"] },
|
|
567
|
+
successStatus: 200,
|
|
568
|
+
declaredStatuses: [400, 401, 404, 500],
|
|
569
|
+
empty: false,
|
|
570
|
+
}, requestOptions).then((value) => value.data),
|
|
571
|
+
skill: (input, requestOptions) => request({
|
|
572
|
+
method: "POST",
|
|
573
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/skill`,
|
|
574
|
+
body: { id: input["id"], resume: input["resume"] },
|
|
575
|
+
successStatus: 204,
|
|
576
|
+
declaredStatuses: [400, 401, 404],
|
|
577
|
+
empty: true,
|
|
578
|
+
}, requestOptions),
|
|
579
|
+
wait: (input, requestOptions) => request({
|
|
580
|
+
method: "POST",
|
|
581
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/wait`,
|
|
582
|
+
successStatus: 204,
|
|
583
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
584
|
+
empty: true,
|
|
585
|
+
}, requestOptions),
|
|
586
|
+
instructions: {
|
|
587
|
+
entry: {
|
|
588
|
+
list: (input, requestOptions) => request({
|
|
589
|
+
method: "GET",
|
|
590
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries`,
|
|
591
|
+
successStatus: 200,
|
|
592
|
+
declaredStatuses: [400, 401, 404],
|
|
593
|
+
empty: false,
|
|
594
|
+
}, requestOptions).then((value) => value.data),
|
|
595
|
+
put: (input, requestOptions) => request({
|
|
596
|
+
method: "PUT",
|
|
597
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
598
|
+
body: { value: input["value"] },
|
|
599
|
+
successStatus: 204,
|
|
600
|
+
declaredStatuses: [400, 401, 404, 413],
|
|
601
|
+
empty: true,
|
|
602
|
+
}, requestOptions),
|
|
603
|
+
remove: (input, requestOptions) => request({
|
|
604
|
+
method: "DELETE",
|
|
605
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
606
|
+
successStatus: 204,
|
|
607
|
+
declaredStatuses: [400, 401, 404],
|
|
608
|
+
empty: true,
|
|
609
|
+
}, requestOptions),
|
|
610
|
+
},
|
|
611
|
+
},
|
|
612
|
+
log: (input, requestOptions) => sse({
|
|
613
|
+
method: "GET",
|
|
614
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/log`,
|
|
615
|
+
query: { after: input["after"], follow: input["follow"] },
|
|
616
|
+
successStatus: 200,
|
|
617
|
+
declaredStatuses: [400, 401, 404],
|
|
618
|
+
empty: false,
|
|
619
|
+
}, requestOptions),
|
|
620
|
+
},
|
|
621
|
+
generate: {
|
|
622
|
+
text: (input, requestOptions) => request({
|
|
623
|
+
method: "POST",
|
|
624
|
+
path: `/api/experimental/generate/text`,
|
|
625
|
+
body: { prompt: input["prompt"], model: input["model"] },
|
|
626
|
+
successStatus: 200,
|
|
627
|
+
declaredStatuses: [400, 401, 404, 422, 502, 503],
|
|
628
|
+
empty: false,
|
|
629
|
+
}, requestOptions).then((value) => value.data),
|
|
630
|
+
image: (input, requestOptions) => request({
|
|
631
|
+
method: "POST",
|
|
632
|
+
path: `/api/experimental/generate/image`,
|
|
633
|
+
body: {
|
|
634
|
+
model: input["model"],
|
|
635
|
+
prompt: input["prompt"],
|
|
636
|
+
images: input["images"],
|
|
637
|
+
n: input["n"],
|
|
638
|
+
aspect: input["aspect"],
|
|
639
|
+
resolution: input["resolution"],
|
|
640
|
+
},
|
|
641
|
+
successStatus: 200,
|
|
642
|
+
declaredStatuses: [400, 401, 404, 422, 502, 503],
|
|
643
|
+
empty: false,
|
|
644
|
+
}, requestOptions).then((value) => value.data),
|
|
645
|
+
decisions: (input, requestOptions) => request({
|
|
646
|
+
method: "POST",
|
|
647
|
+
path: `/api/experimental/generate/decisions`,
|
|
648
|
+
body: { model: input["model"], input: input["input"], questions: input["questions"] },
|
|
649
|
+
successStatus: 200,
|
|
650
|
+
declaredStatuses: [400, 401, 404, 422, 502, 503],
|
|
651
|
+
empty: false,
|
|
652
|
+
}, requestOptions).then((value) => value.data),
|
|
653
|
+
},
|
|
654
|
+
voice: {
|
|
655
|
+
models: (requestOptions) => request({
|
|
656
|
+
method: "GET",
|
|
657
|
+
path: `/api/experimental/voice/models`,
|
|
658
|
+
successStatus: 200,
|
|
659
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
660
|
+
empty: false,
|
|
661
|
+
}, requestOptions).then((value) => value.data),
|
|
662
|
+
session: (input, requestOptions) => request({
|
|
663
|
+
method: "POST",
|
|
664
|
+
path: `/api/experimental/voice/session`,
|
|
665
|
+
body: { model: input["model"], session: input["session"], transport: input["transport"] },
|
|
666
|
+
successStatus: 200,
|
|
667
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
668
|
+
empty: false,
|
|
669
|
+
}, requestOptions).then((value) => value.data),
|
|
670
|
+
},
|
|
671
|
+
integration: {
|
|
672
|
+
wellknown: {
|
|
673
|
+
add: (input, requestOptions) => request({
|
|
674
|
+
method: "POST",
|
|
675
|
+
path: `/api/experimental/integration/wellknown`,
|
|
676
|
+
query: { location: input["location"] },
|
|
677
|
+
body: { url: input["url"] },
|
|
678
|
+
successStatus: 204,
|
|
679
|
+
declaredStatuses: [400, 401, 404],
|
|
680
|
+
empty: true,
|
|
681
|
+
}, requestOptions),
|
|
682
|
+
},
|
|
683
|
+
},
|
|
684
|
+
mcp: {
|
|
685
|
+
add: (input, requestOptions) => request({
|
|
686
|
+
method: "PUT",
|
|
687
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}`,
|
|
688
|
+
query: { location: input["location"] },
|
|
689
|
+
body: { config: input["config"] },
|
|
690
|
+
successStatus: 204,
|
|
691
|
+
declaredStatuses: [400, 401, 404],
|
|
692
|
+
empty: true,
|
|
693
|
+
}, requestOptions),
|
|
694
|
+
remove: (input, requestOptions) => request({
|
|
695
|
+
method: "DELETE",
|
|
696
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}`,
|
|
697
|
+
query: { location: input["location"] },
|
|
698
|
+
successStatus: 204,
|
|
699
|
+
declaredStatuses: [400, 401, 404],
|
|
700
|
+
empty: true,
|
|
701
|
+
}, requestOptions),
|
|
702
|
+
connect: (input, requestOptions) => request({
|
|
703
|
+
method: "POST",
|
|
704
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}/connect`,
|
|
705
|
+
query: { location: input["location"] },
|
|
706
|
+
successStatus: 204,
|
|
707
|
+
declaredStatuses: [400, 401, 404],
|
|
708
|
+
empty: true,
|
|
709
|
+
}, requestOptions),
|
|
710
|
+
disconnect: (input, requestOptions) => request({
|
|
711
|
+
method: "POST",
|
|
712
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}/disconnect`,
|
|
713
|
+
query: { location: input["location"] },
|
|
714
|
+
successStatus: 204,
|
|
715
|
+
declaredStatuses: [400, 401, 404],
|
|
716
|
+
empty: true,
|
|
717
|
+
}, requestOptions),
|
|
718
|
+
client: {
|
|
719
|
+
token: (input, requestOptions) => request({
|
|
720
|
+
method: "POST",
|
|
721
|
+
path: `/api/experimental/client-mcp/token`,
|
|
722
|
+
query: { location: input["location"], name: input["name"] },
|
|
723
|
+
headers: { "x-opencode-ticket": input["x-opencode-ticket"] },
|
|
724
|
+
successStatus: 200,
|
|
725
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
726
|
+
empty: false,
|
|
727
|
+
}, requestOptions),
|
|
728
|
+
},
|
|
729
|
+
},
|
|
730
|
+
file: {
|
|
731
|
+
write: (input, requestOptions) => request({
|
|
732
|
+
method: "POST",
|
|
733
|
+
path: `/api/experimental/fs/write`,
|
|
734
|
+
query: { location: input["location"], path: input["path"] },
|
|
735
|
+
body: input["payload"],
|
|
736
|
+
successStatus: 200,
|
|
737
|
+
declaredStatuses: [400, 401, 404],
|
|
738
|
+
empty: false,
|
|
739
|
+
binaryBody: true,
|
|
740
|
+
}, requestOptions),
|
|
741
|
+
watch: (input, requestOptions) => request({
|
|
742
|
+
method: "POST",
|
|
743
|
+
path: `/api/experimental/fs/watch`,
|
|
744
|
+
query: { location: input["location"] },
|
|
745
|
+
body: { path: input["path"] },
|
|
746
|
+
successStatus: 204,
|
|
747
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
748
|
+
empty: true,
|
|
749
|
+
}, requestOptions),
|
|
750
|
+
unwatch: (input, requestOptions) => request({
|
|
751
|
+
method: "DELETE",
|
|
752
|
+
path: `/api/experimental/fs/watch`,
|
|
753
|
+
query: { location: input["location"] },
|
|
754
|
+
body: { path: input["path"] },
|
|
755
|
+
successStatus: 204,
|
|
756
|
+
declaredStatuses: [400, 401, 404],
|
|
757
|
+
empty: true,
|
|
758
|
+
}, requestOptions),
|
|
759
|
+
},
|
|
760
|
+
persistentPty: {
|
|
761
|
+
read: (input, requestOptions) => request({
|
|
762
|
+
method: "GET",
|
|
763
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/terminal/read`,
|
|
764
|
+
query: { lines: input["lines"] },
|
|
765
|
+
successStatus: 200,
|
|
766
|
+
declaredStatuses: [400, 401, 503],
|
|
767
|
+
empty: false,
|
|
768
|
+
}, requestOptions).then((value) => value.data),
|
|
769
|
+
list: (input, requestOptions) => request({
|
|
770
|
+
method: "GET",
|
|
771
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/terminal`,
|
|
772
|
+
successStatus: 200,
|
|
773
|
+
declaredStatuses: [400, 401, 503],
|
|
774
|
+
empty: false,
|
|
775
|
+
}, requestOptions).then((value) => value.data),
|
|
776
|
+
create: (input, requestOptions) => request({
|
|
777
|
+
method: "POST",
|
|
778
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/terminal`,
|
|
779
|
+
body: {
|
|
780
|
+
command: input["command"],
|
|
781
|
+
args: input["args"],
|
|
782
|
+
cwd: input["cwd"],
|
|
783
|
+
title: input["title"],
|
|
784
|
+
env: input["env"],
|
|
785
|
+
size: input["size"],
|
|
786
|
+
},
|
|
787
|
+
successStatus: 200,
|
|
788
|
+
declaredStatuses: [400, 401, 503],
|
|
789
|
+
empty: false,
|
|
790
|
+
}, requestOptions).then((value) => value.data),
|
|
791
|
+
shutdown: (requestOptions) => request({
|
|
792
|
+
method: "POST",
|
|
793
|
+
path: `/api/experimental/persistent-pty/shutdown`,
|
|
794
|
+
successStatus: 204,
|
|
795
|
+
declaredStatuses: [400, 401, 503],
|
|
796
|
+
empty: true,
|
|
797
|
+
}, requestOptions),
|
|
798
|
+
handoff: (requestOptions) => request({
|
|
799
|
+
method: "POST",
|
|
800
|
+
path: `/api/experimental/persistent-pty/handoff`,
|
|
801
|
+
successStatus: 200,
|
|
802
|
+
declaredStatuses: [400, 401, 503],
|
|
803
|
+
empty: false,
|
|
804
|
+
}, requestOptions),
|
|
805
|
+
get: (input, requestOptions) => request({
|
|
806
|
+
method: "GET",
|
|
807
|
+
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
808
|
+
successStatus: 200,
|
|
809
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
810
|
+
empty: false,
|
|
811
|
+
}, requestOptions).then((value) => value.data),
|
|
812
|
+
update: (input, requestOptions) => request({
|
|
813
|
+
method: "PUT",
|
|
814
|
+
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
815
|
+
body: { attachmentID: input["attachmentID"], size: input["size"] },
|
|
816
|
+
successStatus: 200,
|
|
817
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
818
|
+
empty: false,
|
|
819
|
+
}, requestOptions).then((value) => value.data),
|
|
820
|
+
snapshot: (input, requestOptions) => request({
|
|
821
|
+
method: "GET",
|
|
822
|
+
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}/snapshot`,
|
|
823
|
+
successStatus: 200,
|
|
824
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
825
|
+
empty: false,
|
|
826
|
+
}, requestOptions).then((value) => value.data),
|
|
827
|
+
remove: (input, requestOptions) => request({
|
|
828
|
+
method: "DELETE",
|
|
829
|
+
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
830
|
+
successStatus: 204,
|
|
831
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
832
|
+
empty: true,
|
|
833
|
+
}, requestOptions),
|
|
834
|
+
connectToken: (input, requestOptions) => request({
|
|
835
|
+
method: "POST",
|
|
836
|
+
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}/connect-token`,
|
|
837
|
+
headers: { "x-opencode-ticket": input["x-opencode-ticket"] },
|
|
838
|
+
successStatus: 200,
|
|
839
|
+
declaredStatuses: [400, 401, 403, 404, 503],
|
|
840
|
+
empty: false,
|
|
841
|
+
}, requestOptions).then((value) => value.data),
|
|
842
|
+
},
|
|
843
|
+
media: {
|
|
844
|
+
get: (input, requestOptions) => request({
|
|
845
|
+
method: "GET",
|
|
846
|
+
path: `/api/experimental/media/${encodeURIComponent(input.hash)}`,
|
|
847
|
+
successStatus: 200,
|
|
848
|
+
declaredStatuses: [400, 401, 404],
|
|
849
|
+
empty: false,
|
|
850
|
+
binary: true,
|
|
851
|
+
}, requestOptions),
|
|
852
|
+
},
|
|
853
|
+
schedule: {
|
|
854
|
+
create: (input, requestOptions) => request({
|
|
855
|
+
method: "POST",
|
|
856
|
+
path: `/api/experimental/schedule`,
|
|
857
|
+
body: {
|
|
858
|
+
sessionID: input["sessionID"],
|
|
859
|
+
name: input["name"],
|
|
860
|
+
when: input["when"],
|
|
861
|
+
ends: input["ends"],
|
|
862
|
+
prompt: input["prompt"],
|
|
863
|
+
},
|
|
864
|
+
successStatus: 200,
|
|
865
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
866
|
+
empty: false,
|
|
867
|
+
}, requestOptions).then((value) => value.data),
|
|
868
|
+
list: (input, requestOptions) => request({
|
|
869
|
+
method: "GET",
|
|
870
|
+
path: `/api/experimental/schedule`,
|
|
871
|
+
query: { sessionID: input["sessionID"] },
|
|
872
|
+
successStatus: 200,
|
|
873
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
874
|
+
empty: false,
|
|
875
|
+
}, requestOptions).then((value) => value.data),
|
|
876
|
+
get: (input, requestOptions) => request({
|
|
877
|
+
method: "GET",
|
|
878
|
+
path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}`,
|
|
879
|
+
successStatus: 200,
|
|
880
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
881
|
+
empty: false,
|
|
882
|
+
}, requestOptions).then((value) => value.data),
|
|
883
|
+
pause: (input, requestOptions) => request({
|
|
884
|
+
method: "POST",
|
|
885
|
+
path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}/pause`,
|
|
886
|
+
successStatus: 200,
|
|
887
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
888
|
+
empty: false,
|
|
889
|
+
}, requestOptions).then((value) => value.data),
|
|
890
|
+
resume: (input, requestOptions) => request({
|
|
891
|
+
method: "POST",
|
|
892
|
+
path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}/resume`,
|
|
566
893
|
successStatus: 200,
|
|
567
|
-
declaredStatuses: [400, 401, 404],
|
|
894
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
568
895
|
empty: false,
|
|
569
896
|
}, requestOptions).then((value) => value.data),
|
|
570
|
-
|
|
571
|
-
method: "
|
|
572
|
-
path: `/api/
|
|
573
|
-
body: { answer: input["answer"] },
|
|
897
|
+
delete: (input, requestOptions) => request({
|
|
898
|
+
method: "DELETE",
|
|
899
|
+
path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}`,
|
|
574
900
|
successStatus: 204,
|
|
575
|
-
declaredStatuses: [400, 401,
|
|
901
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
576
902
|
empty: true,
|
|
577
903
|
}, requestOptions),
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
904
|
+
},
|
|
905
|
+
migration: {
|
|
906
|
+
v1: {
|
|
907
|
+
status: (requestOptions) => request({
|
|
908
|
+
method: "GET",
|
|
909
|
+
path: `/api/experimental/migration/v1`,
|
|
910
|
+
successStatus: 200,
|
|
911
|
+
declaredStatuses: [400, 401],
|
|
912
|
+
empty: false,
|
|
913
|
+
}, requestOptions),
|
|
914
|
+
},
|
|
915
|
+
},
|
|
916
|
+
usage: {
|
|
917
|
+
limits: (input, requestOptions) => request({
|
|
918
|
+
method: "GET",
|
|
919
|
+
path: `/api/experimental/usage/limits`,
|
|
920
|
+
query: { location: input?.["location"] },
|
|
921
|
+
successStatus: 200,
|
|
922
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
923
|
+
empty: false,
|
|
924
|
+
}, requestOptions),
|
|
925
|
+
},
|
|
926
|
+
config: {
|
|
927
|
+
update: (input, requestOptions) => request({
|
|
928
|
+
method: "PATCH",
|
|
929
|
+
path: `/api/experimental/config`,
|
|
930
|
+
body: { shell: input["shell"] },
|
|
582
931
|
successStatus: 204,
|
|
583
|
-
declaredStatuses: [400, 401, 404
|
|
932
|
+
declaredStatuses: [400, 401, 404],
|
|
584
933
|
empty: true,
|
|
585
934
|
}, requestOptions),
|
|
586
935
|
},
|
|
587
|
-
environment: (input, requestOptions) => request({
|
|
588
|
-
method: "PUT",
|
|
589
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/environment`,
|
|
590
|
-
body: { variables: input["variables"] },
|
|
591
|
-
successStatus: 204,
|
|
592
|
-
declaredStatuses: [400, 401, 404],
|
|
593
|
-
empty: true,
|
|
594
|
-
}, requestOptions),
|
|
595
|
-
view: (input, requestOptions) => request({
|
|
596
|
-
method: "POST",
|
|
597
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/view`,
|
|
598
|
-
body: { idle: input["idle"] },
|
|
599
|
-
successStatus: 204,
|
|
600
|
-
declaredStatuses: [400, 401, 404],
|
|
601
|
-
empty: true,
|
|
602
|
-
}, requestOptions),
|
|
603
936
|
},
|
|
604
937
|
message: {
|
|
605
938
|
list: (input, requestOptions) => request({
|
|
@@ -615,7 +948,7 @@ export function make(options) {
|
|
|
615
948
|
list: (input, requestOptions) => request({
|
|
616
949
|
method: "GET",
|
|
617
950
|
path: `/api/model`,
|
|
618
|
-
query: { location: input?.["location"] },
|
|
951
|
+
query: { location: input?.["location"], types: input?.["types"] },
|
|
619
952
|
successStatus: 200,
|
|
620
953
|
declaredStatuses: [400, 401, 404, 503],
|
|
621
954
|
empty: false,
|
|
@@ -629,26 +962,6 @@ export function make(options) {
|
|
|
629
962
|
empty: false,
|
|
630
963
|
}, requestOptions),
|
|
631
964
|
},
|
|
632
|
-
generate: {
|
|
633
|
-
text: (input, requestOptions) => request({
|
|
634
|
-
method: "POST",
|
|
635
|
-
path: `/api/experimental/generate`,
|
|
636
|
-
body: { prompt: input["prompt"], model: input["model"] },
|
|
637
|
-
successStatus: 200,
|
|
638
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
639
|
-
empty: false,
|
|
640
|
-
}, requestOptions).then((value) => value.data),
|
|
641
|
-
},
|
|
642
|
-
voice: {
|
|
643
|
-
session: (input, requestOptions) => request({
|
|
644
|
-
method: "POST",
|
|
645
|
-
path: `/api/experimental/voice/session`,
|
|
646
|
-
body: { model: input["model"], session: input["session"], transport: input["transport"] },
|
|
647
|
-
successStatus: 200,
|
|
648
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
649
|
-
empty: false,
|
|
650
|
-
}, requestOptions).then((value) => value.data),
|
|
651
|
-
},
|
|
652
965
|
provider: {
|
|
653
966
|
list: (input, requestOptions) => request({
|
|
654
967
|
method: "GET",
|
|
@@ -684,17 +997,6 @@ export function make(options) {
|
|
|
684
997
|
declaredStatuses: [400, 401, 404],
|
|
685
998
|
empty: false,
|
|
686
999
|
}, requestOptions),
|
|
687
|
-
wellknown: {
|
|
688
|
-
add: (input, requestOptions) => request({
|
|
689
|
-
method: "POST",
|
|
690
|
-
path: `/api/experimental/integration/wellknown`,
|
|
691
|
-
query: { location: input["location"] },
|
|
692
|
-
body: { url: input["url"] },
|
|
693
|
-
successStatus: 204,
|
|
694
|
-
declaredStatuses: [400, 401, 404],
|
|
695
|
-
empty: true,
|
|
696
|
-
}, requestOptions),
|
|
697
|
-
},
|
|
698
1000
|
connect: {
|
|
699
1001
|
key: (input, requestOptions) => request({
|
|
700
1002
|
method: "POST",
|
|
@@ -788,39 +1090,6 @@ export function make(options) {
|
|
|
788
1090
|
declaredStatuses: [400, 401, 404],
|
|
789
1091
|
empty: false,
|
|
790
1092
|
}, requestOptions),
|
|
791
|
-
add: (input, requestOptions) => request({
|
|
792
|
-
method: "PUT",
|
|
793
|
-
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}`,
|
|
794
|
-
query: { location: input["location"] },
|
|
795
|
-
body: { config: input["config"] },
|
|
796
|
-
successStatus: 204,
|
|
797
|
-
declaredStatuses: [400, 401, 404],
|
|
798
|
-
empty: true,
|
|
799
|
-
}, requestOptions),
|
|
800
|
-
remove: (input, requestOptions) => request({
|
|
801
|
-
method: "DELETE",
|
|
802
|
-
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}`,
|
|
803
|
-
query: { location: input["location"] },
|
|
804
|
-
successStatus: 204,
|
|
805
|
-
declaredStatuses: [400, 401, 404],
|
|
806
|
-
empty: true,
|
|
807
|
-
}, requestOptions),
|
|
808
|
-
connect: (input, requestOptions) => request({
|
|
809
|
-
method: "POST",
|
|
810
|
-
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}/connect`,
|
|
811
|
-
query: { location: input["location"] },
|
|
812
|
-
successStatus: 204,
|
|
813
|
-
declaredStatuses: [400, 401, 404],
|
|
814
|
-
empty: true,
|
|
815
|
-
}, requestOptions),
|
|
816
|
-
disconnect: (input, requestOptions) => request({
|
|
817
|
-
method: "POST",
|
|
818
|
-
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}/disconnect`,
|
|
819
|
-
query: { location: input["location"] },
|
|
820
|
-
successStatus: 204,
|
|
821
|
-
declaredStatuses: [400, 401, 404],
|
|
822
|
-
empty: true,
|
|
823
|
-
}, requestOptions),
|
|
824
1093
|
resource: {
|
|
825
1094
|
catalog: (input, requestOptions) => request({
|
|
826
1095
|
method: "GET",
|
|
@@ -877,7 +1146,7 @@ export function make(options) {
|
|
|
877
1146
|
path: `/api/project`,
|
|
878
1147
|
query: { archived: input?.["archived"] },
|
|
879
1148
|
successStatus: 200,
|
|
880
|
-
declaredStatuses: [400, 401
|
|
1149
|
+
declaredStatuses: [400, 401],
|
|
881
1150
|
empty: false,
|
|
882
1151
|
}, requestOptions),
|
|
883
1152
|
update: (input, requestOptions) => request({
|
|
@@ -924,11 +1193,19 @@ export function make(options) {
|
|
|
924
1193
|
declaredStatuses: [400, 401, 404],
|
|
925
1194
|
empty: false,
|
|
926
1195
|
}, requestOptions).then((value) => value.data),
|
|
1196
|
+
update: (input, requestOptions) => request({
|
|
1197
|
+
method: "PATCH",
|
|
1198
|
+
path: `/api/permission/saved/${encodeURIComponent(input.id)}`,
|
|
1199
|
+
body: { action: input["action"], resource: input["resource"] },
|
|
1200
|
+
successStatus: 200,
|
|
1201
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
1202
|
+
empty: false,
|
|
1203
|
+
}, requestOptions).then((value) => value.data),
|
|
927
1204
|
remove: (input, requestOptions) => request({
|
|
928
1205
|
method: "DELETE",
|
|
929
1206
|
path: `/api/permission/saved/${encodeURIComponent(input.id)}`,
|
|
930
1207
|
successStatus: 204,
|
|
931
|
-
declaredStatuses: [400, 401
|
|
1208
|
+
declaredStatuses: [400, 401],
|
|
932
1209
|
empty: true,
|
|
933
1210
|
}, requestOptions),
|
|
934
1211
|
},
|
|
@@ -997,16 +1274,6 @@ export function make(options) {
|
|
|
997
1274
|
declaredStatuses: [400, 401, 404],
|
|
998
1275
|
empty: false,
|
|
999
1276
|
}, requestOptions),
|
|
1000
|
-
write: (input, requestOptions) => request({
|
|
1001
|
-
method: "POST",
|
|
1002
|
-
path: `/api/experimental/fs/write`,
|
|
1003
|
-
query: { location: input["location"], path: input["path"] },
|
|
1004
|
-
body: input["payload"],
|
|
1005
|
-
successStatus: 200,
|
|
1006
|
-
declaredStatuses: [400, 401, 404],
|
|
1007
|
-
empty: false,
|
|
1008
|
-
binaryBody: true,
|
|
1009
|
-
}, requestOptions),
|
|
1010
1277
|
},
|
|
1011
1278
|
command: {
|
|
1012
1279
|
list: (input, requestOptions) => request({
|
|
@@ -1040,7 +1307,14 @@ export function make(options) {
|
|
|
1040
1307
|
}, requestOptions),
|
|
1041
1308
|
},
|
|
1042
1309
|
event: {
|
|
1043
|
-
subscribe: (requestOptions) => sse({
|
|
1310
|
+
subscribe: (input, requestOptions) => sse({
|
|
1311
|
+
method: "GET",
|
|
1312
|
+
path: `/api/event`,
|
|
1313
|
+
query: { types: input?.["types"] },
|
|
1314
|
+
successStatus: 200,
|
|
1315
|
+
declaredStatuses: [400, 401],
|
|
1316
|
+
empty: false,
|
|
1317
|
+
}, requestOptions),
|
|
1044
1318
|
},
|
|
1045
1319
|
pty: {
|
|
1046
1320
|
list: (input, requestOptions) => request({
|
|
@@ -1103,91 +1377,6 @@ export function make(options) {
|
|
|
1103
1377
|
}, requestOptions),
|
|
1104
1378
|
},
|
|
1105
1379
|
},
|
|
1106
|
-
experimental: {
|
|
1107
|
-
persistentPty: {
|
|
1108
|
-
read: (input, requestOptions) => request({
|
|
1109
|
-
method: "GET",
|
|
1110
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/terminal/read`,
|
|
1111
|
-
query: { lines: input["lines"] },
|
|
1112
|
-
successStatus: 200,
|
|
1113
|
-
declaredStatuses: [400, 401, 503],
|
|
1114
|
-
empty: false,
|
|
1115
|
-
}, requestOptions).then((value) => value.data),
|
|
1116
|
-
list: (input, requestOptions) => request({
|
|
1117
|
-
method: "GET",
|
|
1118
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/terminal`,
|
|
1119
|
-
successStatus: 200,
|
|
1120
|
-
declaredStatuses: [400, 401, 503],
|
|
1121
|
-
empty: false,
|
|
1122
|
-
}, requestOptions).then((value) => value.data),
|
|
1123
|
-
create: (input, requestOptions) => request({
|
|
1124
|
-
method: "POST",
|
|
1125
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/terminal`,
|
|
1126
|
-
body: {
|
|
1127
|
-
command: input["command"],
|
|
1128
|
-
args: input["args"],
|
|
1129
|
-
cwd: input["cwd"],
|
|
1130
|
-
title: input["title"],
|
|
1131
|
-
env: input["env"],
|
|
1132
|
-
size: input["size"],
|
|
1133
|
-
},
|
|
1134
|
-
successStatus: 200,
|
|
1135
|
-
declaredStatuses: [400, 401, 503],
|
|
1136
|
-
empty: false,
|
|
1137
|
-
}, requestOptions).then((value) => value.data),
|
|
1138
|
-
shutdown: (requestOptions) => request({
|
|
1139
|
-
method: "POST",
|
|
1140
|
-
path: `/api/experimental/persistent-pty/shutdown`,
|
|
1141
|
-
successStatus: 204,
|
|
1142
|
-
declaredStatuses: [400, 401, 503],
|
|
1143
|
-
empty: true,
|
|
1144
|
-
}, requestOptions),
|
|
1145
|
-
handoff: (requestOptions) => request({
|
|
1146
|
-
method: "POST",
|
|
1147
|
-
path: `/api/experimental/persistent-pty/handoff`,
|
|
1148
|
-
successStatus: 200,
|
|
1149
|
-
declaredStatuses: [400, 401, 503],
|
|
1150
|
-
empty: false,
|
|
1151
|
-
}, requestOptions),
|
|
1152
|
-
get: (input, requestOptions) => request({
|
|
1153
|
-
method: "GET",
|
|
1154
|
-
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
1155
|
-
successStatus: 200,
|
|
1156
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
1157
|
-
empty: false,
|
|
1158
|
-
}, requestOptions).then((value) => value.data),
|
|
1159
|
-
update: (input, requestOptions) => request({
|
|
1160
|
-
method: "PUT",
|
|
1161
|
-
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
1162
|
-
body: { attachmentID: input["attachmentID"], size: input["size"] },
|
|
1163
|
-
successStatus: 200,
|
|
1164
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
1165
|
-
empty: false,
|
|
1166
|
-
}, requestOptions).then((value) => value.data),
|
|
1167
|
-
snapshot: (input, requestOptions) => request({
|
|
1168
|
-
method: "GET",
|
|
1169
|
-
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}/snapshot`,
|
|
1170
|
-
successStatus: 200,
|
|
1171
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
1172
|
-
empty: false,
|
|
1173
|
-
}, requestOptions).then((value) => value.data),
|
|
1174
|
-
remove: (input, requestOptions) => request({
|
|
1175
|
-
method: "DELETE",
|
|
1176
|
-
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
1177
|
-
successStatus: 204,
|
|
1178
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
1179
|
-
empty: true,
|
|
1180
|
-
}, requestOptions),
|
|
1181
|
-
connectToken: (input, requestOptions) => request({
|
|
1182
|
-
method: "POST",
|
|
1183
|
-
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}/connect-token`,
|
|
1184
|
-
headers: { "x-opencode-ticket": input["x-opencode-ticket"] },
|
|
1185
|
-
successStatus: 200,
|
|
1186
|
-
declaredStatuses: [400, 401, 403, 404, 503],
|
|
1187
|
-
empty: false,
|
|
1188
|
-
}, requestOptions).then((value) => value.data),
|
|
1189
|
-
},
|
|
1190
|
-
},
|
|
1191
1380
|
shell: {
|
|
1192
1381
|
list: (input, requestOptions) => request({
|
|
1193
1382
|
method: "GET",
|
|
@@ -1332,13 +1521,27 @@ export function make(options) {
|
|
|
1332
1521
|
diff: (input, requestOptions) => request({
|
|
1333
1522
|
method: "GET",
|
|
1334
1523
|
path: `/api/vcs/diff`,
|
|
1335
|
-
query: {
|
|
1524
|
+
query: {
|
|
1525
|
+
location: input["location"],
|
|
1526
|
+
mode: input["mode"],
|
|
1527
|
+
base: input["base"],
|
|
1528
|
+
context: input["context"],
|
|
1529
|
+
untracked: input["untracked"],
|
|
1530
|
+
},
|
|
1336
1531
|
successStatus: 200,
|
|
1337
1532
|
declaredStatuses: [400, 401, 404, 503],
|
|
1338
1533
|
empty: false,
|
|
1339
1534
|
}, requestOptions),
|
|
1340
1535
|
},
|
|
1341
1536
|
debug: {
|
|
1537
|
+
heapDump: (input, requestOptions) => request({
|
|
1538
|
+
method: "POST",
|
|
1539
|
+
path: `/api/debug/heap-dump`,
|
|
1540
|
+
query: { directory: input?.["directory"] },
|
|
1541
|
+
successStatus: 200,
|
|
1542
|
+
declaredStatuses: [400, 401, 500],
|
|
1543
|
+
empty: false,
|
|
1544
|
+
}, requestOptions),
|
|
1342
1545
|
location: {
|
|
1343
1546
|
list: (requestOptions) => request({
|
|
1344
1547
|
method: "GET",
|
|
@@ -1357,17 +1560,6 @@ export function make(options) {
|
|
|
1357
1560
|
}, requestOptions),
|
|
1358
1561
|
},
|
|
1359
1562
|
},
|
|
1360
|
-
migration: {
|
|
1361
|
-
v1: {
|
|
1362
|
-
status: (requestOptions) => request({
|
|
1363
|
-
method: "GET",
|
|
1364
|
-
path: `/api/experimental/migration/v1`,
|
|
1365
|
-
successStatus: 200,
|
|
1366
|
-
declaredStatuses: [400, 401],
|
|
1367
|
-
empty: false,
|
|
1368
|
-
}, requestOptions),
|
|
1369
|
-
},
|
|
1370
|
-
},
|
|
1371
1563
|
websearch: {
|
|
1372
1564
|
providers: (input, requestOptions) => request({
|
|
1373
1565
|
method: "GET",
|
|
@@ -1403,14 +1595,103 @@ export function make(options) {
|
|
|
1403
1595
|
declaredStatuses: [400, 401, 404],
|
|
1404
1596
|
empty: false,
|
|
1405
1597
|
}, requestOptions),
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1598
|
+
},
|
|
1599
|
+
};
|
|
1600
|
+
return {
|
|
1601
|
+
...client,
|
|
1602
|
+
session: {
|
|
1603
|
+
...client.session,
|
|
1604
|
+
/** @deprecated Use `client.experimental.session.stats`. Removed in the next minor. */
|
|
1605
|
+
stats: client.experimental.session.stats,
|
|
1606
|
+
/** @deprecated Use `client.experimental.session.import`. Removed in the next minor. */
|
|
1607
|
+
import: client.experimental.session.import,
|
|
1608
|
+
/** @deprecated Use `client.experimental.session.export`. Removed in the next minor. */
|
|
1609
|
+
export: client.experimental.session.export,
|
|
1610
|
+
/** @deprecated Use `client.experimental.session.skill`. Removed in the next minor. */
|
|
1611
|
+
skill: client.experimental.session.skill,
|
|
1612
|
+
/** @deprecated Use `client.experimental.session.wait`. Removed in the next minor. */
|
|
1613
|
+
wait: client.experimental.session.wait,
|
|
1614
|
+
/** @deprecated Use `client.experimental.session.instructions`. Removed in the next minor. */
|
|
1615
|
+
instructions: {
|
|
1616
|
+
/** @deprecated Use `client.experimental.session.instructions.entry`. Removed in the next minor. */
|
|
1617
|
+
entry: {
|
|
1618
|
+
/** @deprecated Use `client.experimental.session.instructions.entry.list`. Removed in the next minor. */
|
|
1619
|
+
list: client.experimental.session.instructions.entry.list,
|
|
1620
|
+
/** @deprecated Use `client.experimental.session.instructions.entry.put`. Removed in the next minor. */
|
|
1621
|
+
put: client.experimental.session.instructions.entry.put,
|
|
1622
|
+
/** @deprecated Use `client.experimental.session.instructions.entry.remove`. Removed in the next minor. */
|
|
1623
|
+
remove: client.experimental.session.instructions.entry.remove,
|
|
1624
|
+
},
|
|
1625
|
+
},
|
|
1626
|
+
/** @deprecated Use `client.experimental.session.log`. Removed in the next minor. */
|
|
1627
|
+
log: client.experimental.session.log,
|
|
1628
|
+
},
|
|
1629
|
+
/** @deprecated Use `client.experimental.generate`. Removed in the next minor. */
|
|
1630
|
+
generate: {
|
|
1631
|
+
/** @deprecated Use `client.experimental.generate.text`. Removed in the next minor. */
|
|
1632
|
+
text: client.experimental.generate.text,
|
|
1633
|
+
/** @deprecated Use `client.experimental.generate.image`. Removed in the next minor. */
|
|
1634
|
+
image: client.experimental.generate.image,
|
|
1635
|
+
/** @deprecated Use `client.experimental.generate.decisions`. Removed in the next minor. */
|
|
1636
|
+
decisions: client.experimental.generate.decisions,
|
|
1637
|
+
},
|
|
1638
|
+
/** @deprecated Use `client.experimental.voice`. Removed in the next minor. */
|
|
1639
|
+
voice: {
|
|
1640
|
+
/** @deprecated Use `client.experimental.voice.models`. Removed in the next minor. */
|
|
1641
|
+
models: client.experimental.voice.models,
|
|
1642
|
+
/** @deprecated Use `client.experimental.voice.session`. Removed in the next minor. */
|
|
1643
|
+
session: client.experimental.voice.session,
|
|
1644
|
+
},
|
|
1645
|
+
integration: {
|
|
1646
|
+
...client.integration,
|
|
1647
|
+
/** @deprecated Use `client.experimental.integration.wellknown`. Removed in the next minor. */
|
|
1648
|
+
wellknown: {
|
|
1649
|
+
/** @deprecated Use `client.experimental.integration.wellknown.add`. Removed in the next minor. */
|
|
1650
|
+
add: client.experimental.integration.wellknown.add,
|
|
1651
|
+
},
|
|
1652
|
+
},
|
|
1653
|
+
mcp: {
|
|
1654
|
+
...client.mcp,
|
|
1655
|
+
/** @deprecated Use `client.experimental.mcp.add`. Removed in the next minor. */
|
|
1656
|
+
add: client.experimental.mcp.add,
|
|
1657
|
+
/** @deprecated Use `client.experimental.mcp.remove`. Removed in the next minor. */
|
|
1658
|
+
remove: client.experimental.mcp.remove,
|
|
1659
|
+
/** @deprecated Use `client.experimental.mcp.connect`. Removed in the next minor. */
|
|
1660
|
+
connect: client.experimental.mcp.connect,
|
|
1661
|
+
/** @deprecated Use `client.experimental.mcp.disconnect`. Removed in the next minor. */
|
|
1662
|
+
disconnect: client.experimental.mcp.disconnect,
|
|
1663
|
+
/** @deprecated Use `client.experimental.mcp.client`. Removed in the next minor. */
|
|
1664
|
+
client: {
|
|
1665
|
+
/** @deprecated Use `client.experimental.mcp.client.token`. Removed in the next minor. */
|
|
1666
|
+
token: client.experimental.mcp.client.token,
|
|
1667
|
+
},
|
|
1668
|
+
},
|
|
1669
|
+
file: {
|
|
1670
|
+
...client.file,
|
|
1671
|
+
/** @deprecated Use `client.experimental.file.write`. Removed in the next minor. */
|
|
1672
|
+
write: client.experimental.file.write,
|
|
1673
|
+
/** @deprecated Use `client.experimental.file.watch`. Removed in the next minor. */
|
|
1674
|
+
watch: client.experimental.file.watch,
|
|
1675
|
+
/** @deprecated Use `client.experimental.file.unwatch`. Removed in the next minor. */
|
|
1676
|
+
unwatch: client.experimental.file.unwatch,
|
|
1677
|
+
},
|
|
1678
|
+
/** @deprecated Use `client.experimental.migration`. Removed in the next minor. */
|
|
1679
|
+
migration: {
|
|
1680
|
+
/** @deprecated Use `client.experimental.migration.v1`. Removed in the next minor. */
|
|
1681
|
+
v1: {
|
|
1682
|
+
/** @deprecated Use `client.experimental.migration.v1.status`. Removed in the next minor. */
|
|
1683
|
+
status: client.experimental.migration.v1.status,
|
|
1684
|
+
},
|
|
1685
|
+
},
|
|
1686
|
+
/** @deprecated Use `client.experimental.usage`. Removed in the next minor. */
|
|
1687
|
+
usage: {
|
|
1688
|
+
/** @deprecated Use `client.experimental.usage.limits`. Removed in the next minor. */
|
|
1689
|
+
limits: client.experimental.usage.limits,
|
|
1690
|
+
},
|
|
1691
|
+
config: {
|
|
1692
|
+
...client.config,
|
|
1693
|
+
/** @deprecated Use `client.experimental.config.update`. Removed in the next minor. */
|
|
1694
|
+
update: client.experimental.config.update,
|
|
1414
1695
|
},
|
|
1415
1696
|
};
|
|
1416
1697
|
}
|