@opencode/client 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/effect/api/api.d.ts +321 -344
- package/dist/effect/api.d.ts +1 -5
- package/dist/effect/client.d.ts +59 -69
- package/dist/effect/generated/client.d.ts +60 -70
- package/dist/effect/generated/client.js +53 -91
- package/dist/effect/index.d.ts +1 -1
- package/dist/effect/service.js +43 -32
- package/dist/promise/api.d.ts +0 -4
- package/dist/promise/client.d.ts +22 -39
- package/dist/promise/generated/client.d.ts +23 -40
- package/dist/promise/generated/client.js +117 -192
- package/dist/promise/generated/types.d.ts +1352 -1867
- package/dist/promise/generated/types.js +6 -3
- package/dist/promise/index.d.ts +1 -1
- package/dist/promise/service.js +40 -24
- package/dist/rpc-runtime.d.ts +0 -1
- package/dist/solid/data.d.ts +4 -4
- package/dist/solid/data.js +68 -42
- package/dist/solid/pty.js +0 -2
- package/package.json +4 -4
|
@@ -129,11 +129,8 @@ export function make(options) {
|
|
|
129
129
|
},
|
|
130
130
|
});
|
|
131
131
|
return {
|
|
132
|
-
health: {
|
|
133
|
-
get: (requestOptions) => request({ method: "GET", path: `/api/health`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions),
|
|
134
|
-
},
|
|
135
132
|
server: {
|
|
136
|
-
|
|
133
|
+
status: (requestOptions) => request({ method: "GET", path: `/api/status`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions),
|
|
137
134
|
},
|
|
138
135
|
location: {
|
|
139
136
|
get: (input, requestOptions) => request({
|
|
@@ -172,14 +169,6 @@ export function make(options) {
|
|
|
172
169
|
declaredStatuses: [400, 401],
|
|
173
170
|
empty: false,
|
|
174
171
|
}, requestOptions),
|
|
175
|
-
awaitActivation: (input, requestOptions) => request({
|
|
176
|
-
method: "POST",
|
|
177
|
-
path: `/api/plugin/await-activation`,
|
|
178
|
-
query: { location: input?.["location"] },
|
|
179
|
-
successStatus: 204,
|
|
180
|
-
declaredStatuses: [400, 401],
|
|
181
|
-
empty: true,
|
|
182
|
-
}, requestOptions),
|
|
183
172
|
check: (input, requestOptions) => request({
|
|
184
173
|
method: "POST",
|
|
185
174
|
path: `/api/plugin/check`,
|
|
@@ -204,7 +193,6 @@ export function make(options) {
|
|
|
204
193
|
method: "GET",
|
|
205
194
|
path: `/api/session`,
|
|
206
195
|
query: {
|
|
207
|
-
workspace: input?.["workspace"],
|
|
208
196
|
limit: input?.["limit"],
|
|
209
197
|
order: input?.["order"],
|
|
210
198
|
search: input?.["search"],
|
|
@@ -220,7 +208,7 @@ export function make(options) {
|
|
|
220
208
|
}, requestOptions),
|
|
221
209
|
stats: (input, requestOptions) => request({
|
|
222
210
|
method: "GET",
|
|
223
|
-
path: `/api/session/stats`,
|
|
211
|
+
path: `/api/experimental/session/stats`,
|
|
224
212
|
query: {
|
|
225
213
|
from: input?.["from"],
|
|
226
214
|
to: input?.["to"],
|
|
@@ -250,7 +238,7 @@ export function make(options) {
|
|
|
250
238
|
}, requestOptions).then((value) => value.data),
|
|
251
239
|
import: (input, requestOptions) => request({
|
|
252
240
|
method: "POST",
|
|
253
|
-
path: `/api/session/import`,
|
|
241
|
+
path: `/api/experimental/session/import`,
|
|
254
242
|
body: { info: input["info"], messages: input["messages"], location: input["location"] },
|
|
255
243
|
successStatus: 200,
|
|
256
244
|
declaredStatuses: [400, 401, 404, 409],
|
|
@@ -258,7 +246,7 @@ export function make(options) {
|
|
|
258
246
|
}, requestOptions).then((value) => value.data),
|
|
259
247
|
export: (input, requestOptions) => request({
|
|
260
248
|
method: "GET",
|
|
261
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/export`,
|
|
249
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/export`,
|
|
262
250
|
query: { sanitize: input["sanitize"] },
|
|
263
251
|
successStatus: 200,
|
|
264
252
|
declaredStatuses: [400, 401, 404, 500],
|
|
@@ -288,7 +276,7 @@ export function make(options) {
|
|
|
288
276
|
fork: (input, requestOptions) => request({
|
|
289
277
|
method: "POST",
|
|
290
278
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/fork`,
|
|
291
|
-
body: {
|
|
279
|
+
body: { before: input["before"] },
|
|
292
280
|
successStatus: 200,
|
|
293
281
|
declaredStatuses: [400, 401, 404],
|
|
294
282
|
empty: false,
|
|
@@ -309,10 +297,10 @@ export function make(options) {
|
|
|
309
297
|
declaredStatuses: [400, 401, 404],
|
|
310
298
|
empty: true,
|
|
311
299
|
}, requestOptions),
|
|
312
|
-
|
|
313
|
-
method: "
|
|
314
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}
|
|
315
|
-
body: { title: input["title"] },
|
|
300
|
+
update: (input, requestOptions) => request({
|
|
301
|
+
method: "PATCH",
|
|
302
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}`,
|
|
303
|
+
body: { title: input["title"], permissions: input["permissions"] },
|
|
316
304
|
successStatus: 204,
|
|
317
305
|
declaredStatuses: [400, 401, 404],
|
|
318
306
|
empty: true,
|
|
@@ -320,7 +308,7 @@ export function make(options) {
|
|
|
320
308
|
move: (input, requestOptions) => request({
|
|
321
309
|
method: "POST",
|
|
322
310
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/move`,
|
|
323
|
-
body: { directory: input["directory"],
|
|
311
|
+
body: { directory: input["directory"], delivery: input["delivery"] },
|
|
324
312
|
successStatus: 204,
|
|
325
313
|
declaredStatuses: [400, 401, 404],
|
|
326
314
|
empty: true,
|
|
@@ -346,7 +334,7 @@ export function make(options) {
|
|
|
346
334
|
method: "POST",
|
|
347
335
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/command`,
|
|
348
336
|
body: {
|
|
349
|
-
|
|
337
|
+
name: input["name"],
|
|
350
338
|
text: input["text"],
|
|
351
339
|
files: input["files"],
|
|
352
340
|
agents: input["agents"],
|
|
@@ -359,8 +347,8 @@ export function make(options) {
|
|
|
359
347
|
}, requestOptions),
|
|
360
348
|
skill: (input, requestOptions) => request({
|
|
361
349
|
method: "POST",
|
|
362
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/skill`,
|
|
363
|
-
body: { id: input["id"],
|
|
350
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/skill`,
|
|
351
|
+
body: { id: input["id"], resume: input["resume"] },
|
|
364
352
|
successStatus: 204,
|
|
365
353
|
declaredStatuses: [400, 401, 404],
|
|
366
354
|
empty: true,
|
|
@@ -398,7 +386,7 @@ export function make(options) {
|
|
|
398
386
|
}, requestOptions).then((value) => value.data),
|
|
399
387
|
wait: (input, requestOptions) => request({
|
|
400
388
|
method: "POST",
|
|
401
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/wait`,
|
|
389
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/wait`,
|
|
402
390
|
successStatus: 204,
|
|
403
391
|
declaredStatuses: [400, 401, 404, 503],
|
|
404
392
|
empty: true,
|
|
@@ -413,8 +401,8 @@ export function make(options) {
|
|
|
413
401
|
empty: false,
|
|
414
402
|
}, requestOptions).then((value) => value.data),
|
|
415
403
|
clear: (input, requestOptions) => request({
|
|
416
|
-
method: "
|
|
417
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/revert
|
|
404
|
+
method: "DELETE",
|
|
405
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/revert`,
|
|
418
406
|
successStatus: 204,
|
|
419
407
|
declaredStatuses: [400, 401, 404, 409, 500],
|
|
420
408
|
empty: true,
|
|
@@ -454,19 +442,13 @@ export function make(options) {
|
|
|
454
442
|
method: "DELETE",
|
|
455
443
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}`,
|
|
456
444
|
successStatus: 204,
|
|
457
|
-
declaredStatuses: [400, 401, 404
|
|
458
|
-
empty: true,
|
|
459
|
-
}, requestOptions),
|
|
460
|
-
steer: (input, requestOptions) => request({
|
|
461
|
-
method: "POST",
|
|
462
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}/steer`,
|
|
463
|
-
successStatus: 204,
|
|
464
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
445
|
+
declaredStatuses: [400, 401, 404],
|
|
465
446
|
empty: true,
|
|
466
447
|
}, requestOptions),
|
|
467
|
-
|
|
468
|
-
method: "
|
|
469
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}
|
|
448
|
+
update: (input, requestOptions) => request({
|
|
449
|
+
method: "PATCH",
|
|
450
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}`,
|
|
451
|
+
body: { delivery: input["delivery"] },
|
|
470
452
|
successStatus: 204,
|
|
471
453
|
declaredStatuses: [400, 401, 404, 409],
|
|
472
454
|
empty: true,
|
|
@@ -476,14 +458,14 @@ export function make(options) {
|
|
|
476
458
|
entry: {
|
|
477
459
|
list: (input, requestOptions) => request({
|
|
478
460
|
method: "GET",
|
|
479
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/instructions/entries`,
|
|
461
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries`,
|
|
480
462
|
successStatus: 200,
|
|
481
463
|
declaredStatuses: [400, 401, 404],
|
|
482
464
|
empty: false,
|
|
483
465
|
}, requestOptions).then((value) => value.data),
|
|
484
466
|
put: (input, requestOptions) => request({
|
|
485
467
|
method: "PUT",
|
|
486
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
468
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
487
469
|
body: { value: input["value"] },
|
|
488
470
|
successStatus: 204,
|
|
489
471
|
declaredStatuses: [400, 401, 404, 413],
|
|
@@ -491,7 +473,7 @@ export function make(options) {
|
|
|
491
473
|
}, requestOptions),
|
|
492
474
|
remove: (input, requestOptions) => request({
|
|
493
475
|
method: "DELETE",
|
|
494
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
476
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
495
477
|
successStatus: 204,
|
|
496
478
|
declaredStatuses: [400, 401, 404],
|
|
497
479
|
empty: true,
|
|
@@ -517,7 +499,7 @@ export function make(options) {
|
|
|
517
499
|
interrupt: (input, requestOptions) => request({
|
|
518
500
|
method: "POST",
|
|
519
501
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/interrupt`,
|
|
520
|
-
query: {
|
|
502
|
+
query: { resume: input["resume"] },
|
|
521
503
|
successStatus: 200,
|
|
522
504
|
declaredStatuses: [400, 401, 404],
|
|
523
505
|
empty: false,
|
|
@@ -529,13 +511,54 @@ export function make(options) {
|
|
|
529
511
|
declaredStatuses: [400, 401, 404],
|
|
530
512
|
empty: true,
|
|
531
513
|
}, requestOptions),
|
|
532
|
-
message:
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
514
|
+
message: {
|
|
515
|
+
get: (input, requestOptions) => request({
|
|
516
|
+
method: "GET",
|
|
517
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/message/${encodeURIComponent(input.messageID)}`,
|
|
518
|
+
successStatus: 200,
|
|
519
|
+
declaredStatuses: [400, 401, 404],
|
|
520
|
+
empty: false,
|
|
521
|
+
}, requestOptions).then((value) => value.data),
|
|
522
|
+
},
|
|
523
|
+
form: {
|
|
524
|
+
list: (input, requestOptions) => request({
|
|
525
|
+
method: "GET",
|
|
526
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form`,
|
|
527
|
+
successStatus: 200,
|
|
528
|
+
declaredStatuses: [400, 401, 404],
|
|
529
|
+
empty: false,
|
|
530
|
+
}, requestOptions).then((value) => value.data),
|
|
531
|
+
create: (input, requestOptions) => request({
|
|
532
|
+
method: "POST",
|
|
533
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form`,
|
|
534
|
+
body: { id: input["id"], title: input["title"], metadata: input["metadata"], fields: input["fields"] },
|
|
535
|
+
successStatus: 200,
|
|
536
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
537
|
+
empty: false,
|
|
538
|
+
}, requestOptions).then((value) => value.data),
|
|
539
|
+
get: (input, requestOptions) => request({
|
|
540
|
+
method: "GET",
|
|
541
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
542
|
+
successStatus: 200,
|
|
543
|
+
declaredStatuses: [400, 401, 404],
|
|
544
|
+
empty: false,
|
|
545
|
+
}, requestOptions).then((value) => value.data),
|
|
546
|
+
reply: (input, requestOptions) => request({
|
|
547
|
+
method: "POST",
|
|
548
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/reply`,
|
|
549
|
+
body: { answer: input["answer"] },
|
|
550
|
+
successStatus: 204,
|
|
551
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
552
|
+
empty: true,
|
|
553
|
+
}, requestOptions),
|
|
554
|
+
cancel: (input, requestOptions) => request({
|
|
555
|
+
method: "DELETE",
|
|
556
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
557
|
+
successStatus: 204,
|
|
558
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
559
|
+
empty: true,
|
|
560
|
+
}, requestOptions),
|
|
561
|
+
},
|
|
539
562
|
environment: (input, requestOptions) => request({
|
|
540
563
|
method: "PUT",
|
|
541
564
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/environment`,
|
|
@@ -584,7 +607,7 @@ export function make(options) {
|
|
|
584
607
|
generate: {
|
|
585
608
|
text: (input, requestOptions) => request({
|
|
586
609
|
method: "POST",
|
|
587
|
-
path: `/api/generate`,
|
|
610
|
+
path: `/api/experimental/generate`,
|
|
588
611
|
body: { prompt: input["prompt"], model: input["model"] },
|
|
589
612
|
successStatus: 200,
|
|
590
613
|
declaredStatuses: [400, 401, 503],
|
|
@@ -623,7 +646,7 @@ export function make(options) {
|
|
|
623
646
|
path: `/api/integration/${encodeURIComponent(input.integrationID)}`,
|
|
624
647
|
query: { location: input["location"] },
|
|
625
648
|
successStatus: 200,
|
|
626
|
-
declaredStatuses: [400, 401],
|
|
649
|
+
declaredStatuses: [400, 401, 404],
|
|
627
650
|
empty: false,
|
|
628
651
|
}, requestOptions),
|
|
629
652
|
wellknown: {
|
|
@@ -644,7 +667,7 @@ export function make(options) {
|
|
|
644
667
|
query: { location: input["location"] },
|
|
645
668
|
body: { key: input["key"], answer: input["answer"], label: input["label"] },
|
|
646
669
|
successStatus: 204,
|
|
647
|
-
declaredStatuses: [400, 401],
|
|
670
|
+
declaredStatuses: [400, 401, 404],
|
|
648
671
|
empty: true,
|
|
649
672
|
}, requestOptions),
|
|
650
673
|
},
|
|
@@ -663,7 +686,7 @@ export function make(options) {
|
|
|
663
686
|
path: `/api/integration/${encodeURIComponent(input.integrationID)}/connect/oauth/${encodeURIComponent(input.attemptID)}`,
|
|
664
687
|
query: { location: input["location"] },
|
|
665
688
|
successStatus: 200,
|
|
666
|
-
declaredStatuses: [400, 401],
|
|
689
|
+
declaredStatuses: [400, 401, 404],
|
|
667
690
|
empty: false,
|
|
668
691
|
}, requestOptions),
|
|
669
692
|
complete: (input, requestOptions) => request({
|
|
@@ -672,7 +695,7 @@ export function make(options) {
|
|
|
672
695
|
query: { location: input["location"] },
|
|
673
696
|
body: { code: input["code"] },
|
|
674
697
|
successStatus: 204,
|
|
675
|
-
declaredStatuses: [400, 401],
|
|
698
|
+
declaredStatuses: [400, 401, 404],
|
|
676
699
|
empty: true,
|
|
677
700
|
}, requestOptions),
|
|
678
701
|
cancel: (input, requestOptions) => request({
|
|
@@ -691,7 +714,7 @@ export function make(options) {
|
|
|
691
714
|
query: { location: input["location"] },
|
|
692
715
|
body: { methodID: input["methodID"], label: input["label"] },
|
|
693
716
|
successStatus: 200,
|
|
694
|
-
declaredStatuses: [400, 401],
|
|
717
|
+
declaredStatuses: [400, 401, 404],
|
|
695
718
|
empty: false,
|
|
696
719
|
}, requestOptions),
|
|
697
720
|
status: (input, requestOptions) => request({
|
|
@@ -699,7 +722,7 @@ export function make(options) {
|
|
|
699
722
|
path: `/api/integration/${encodeURIComponent(input.integrationID)}/connect/command/${encodeURIComponent(input.attemptID)}`,
|
|
700
723
|
query: { location: input["location"] },
|
|
701
724
|
successStatus: 200,
|
|
702
|
-
declaredStatuses: [400, 401],
|
|
725
|
+
declaredStatuses: [400, 401, 404],
|
|
703
726
|
empty: false,
|
|
704
727
|
}, requestOptions),
|
|
705
728
|
cancel: (input, requestOptions) => request({
|
|
@@ -723,7 +746,7 @@ export function make(options) {
|
|
|
723
746
|
}, requestOptions),
|
|
724
747
|
add: (input, requestOptions) => request({
|
|
725
748
|
method: "PUT",
|
|
726
|
-
path: `/api/mcp/${encodeURIComponent(input.server)}`,
|
|
749
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}`,
|
|
727
750
|
query: { location: input["location"] },
|
|
728
751
|
body: { config: input["config"] },
|
|
729
752
|
successStatus: 204,
|
|
@@ -732,7 +755,7 @@ export function make(options) {
|
|
|
732
755
|
}, requestOptions),
|
|
733
756
|
remove: (input, requestOptions) => request({
|
|
734
757
|
method: "DELETE",
|
|
735
|
-
path: `/api/mcp/${encodeURIComponent(input.server)}`,
|
|
758
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}`,
|
|
736
759
|
query: { location: input["location"] },
|
|
737
760
|
successStatus: 204,
|
|
738
761
|
declaredStatuses: [400, 401, 404],
|
|
@@ -740,7 +763,7 @@ export function make(options) {
|
|
|
740
763
|
}, requestOptions),
|
|
741
764
|
connect: (input, requestOptions) => request({
|
|
742
765
|
method: "POST",
|
|
743
|
-
path: `/api/mcp/${encodeURIComponent(input.server)}/connect`,
|
|
766
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}/connect`,
|
|
744
767
|
query: { location: input["location"] },
|
|
745
768
|
successStatus: 204,
|
|
746
769
|
declaredStatuses: [400, 401, 404],
|
|
@@ -748,7 +771,7 @@ export function make(options) {
|
|
|
748
771
|
}, requestOptions),
|
|
749
772
|
disconnect: (input, requestOptions) => request({
|
|
750
773
|
method: "POST",
|
|
751
|
-
path: `/api/mcp/${encodeURIComponent(input.server)}/disconnect`,
|
|
774
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}/disconnect`,
|
|
752
775
|
query: { location: input["location"] },
|
|
753
776
|
successStatus: 204,
|
|
754
777
|
declaredStatuses: [400, 401, 404],
|
|
@@ -769,7 +792,6 @@ export function make(options) {
|
|
|
769
792
|
update: (input, requestOptions) => request({
|
|
770
793
|
method: "PATCH",
|
|
771
794
|
path: `/api/credential/${encodeURIComponent(input.credentialID)}`,
|
|
772
|
-
query: { location: input["location"] },
|
|
773
795
|
body: { label: input["label"] },
|
|
774
796
|
successStatus: 204,
|
|
775
797
|
declaredStatuses: [400, 401],
|
|
@@ -778,7 +800,6 @@ export function make(options) {
|
|
|
778
800
|
activate: (input, requestOptions) => request({
|
|
779
801
|
method: "POST",
|
|
780
802
|
path: `/api/credential/${encodeURIComponent(input.credentialID)}/activate`,
|
|
781
|
-
query: { location: input["location"] },
|
|
782
803
|
successStatus: 204,
|
|
783
804
|
declaredStatuses: [400, 401],
|
|
784
805
|
empty: true,
|
|
@@ -786,7 +807,6 @@ export function make(options) {
|
|
|
786
807
|
remove: (input, requestOptions) => request({
|
|
787
808
|
method: "DELETE",
|
|
788
809
|
path: `/api/credential/${encodeURIComponent(input.credentialID)}`,
|
|
789
|
-
query: { location: input["location"] },
|
|
790
810
|
successStatus: 204,
|
|
791
811
|
declaredStatuses: [400, 401],
|
|
792
812
|
empty: true,
|
|
@@ -807,69 +827,15 @@ export function make(options) {
|
|
|
807
827
|
declaredStatuses: [400, 401, 404],
|
|
808
828
|
empty: false,
|
|
809
829
|
}, requestOptions),
|
|
810
|
-
current: (input, requestOptions) => request({
|
|
811
|
-
method: "GET",
|
|
812
|
-
path: `/api/project/current`,
|
|
813
|
-
query: { location: input?.["location"] },
|
|
814
|
-
successStatus: 200,
|
|
815
|
-
declaredStatuses: [400, 401],
|
|
816
|
-
empty: false,
|
|
817
|
-
}, requestOptions),
|
|
818
830
|
},
|
|
819
831
|
form: {
|
|
820
|
-
request: {
|
|
821
|
-
list: (input, requestOptions) => request({
|
|
822
|
-
method: "GET",
|
|
823
|
-
path: `/api/form/request`,
|
|
824
|
-
query: { location: input?.["location"] },
|
|
825
|
-
successStatus: 200,
|
|
826
|
-
declaredStatuses: [400, 401],
|
|
827
|
-
empty: false,
|
|
828
|
-
}, requestOptions),
|
|
829
|
-
},
|
|
830
832
|
list: (input, requestOptions) => request({
|
|
831
833
|
method: "GET",
|
|
832
|
-
path: `/api/
|
|
833
|
-
|
|
834
|
-
declaredStatuses: [400, 401, 404],
|
|
835
|
-
empty: false,
|
|
836
|
-
}, requestOptions).then((value) => value.data),
|
|
837
|
-
create: (input, requestOptions) => request({
|
|
838
|
-
method: "POST",
|
|
839
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form`,
|
|
840
|
-
body: { id: input["id"], title: input["title"], metadata: input["metadata"], fields: input["fields"] },
|
|
841
|
-
successStatus: 200,
|
|
842
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
843
|
-
empty: false,
|
|
844
|
-
}, requestOptions).then((value) => value.data),
|
|
845
|
-
get: (input, requestOptions) => request({
|
|
846
|
-
method: "GET",
|
|
847
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
848
|
-
successStatus: 200,
|
|
849
|
-
declaredStatuses: [400, 401, 404],
|
|
850
|
-
empty: false,
|
|
851
|
-
}, requestOptions).then((value) => value.data),
|
|
852
|
-
state: (input, requestOptions) => request({
|
|
853
|
-
method: "GET",
|
|
854
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/state`,
|
|
834
|
+
path: `/api/form`,
|
|
835
|
+
query: { location: input?.["location"] },
|
|
855
836
|
successStatus: 200,
|
|
856
|
-
declaredStatuses: [400, 401
|
|
837
|
+
declaredStatuses: [400, 401],
|
|
857
838
|
empty: false,
|
|
858
|
-
}, requestOptions).then((value) => value.data),
|
|
859
|
-
reply: (input, requestOptions) => request({
|
|
860
|
-
method: "POST",
|
|
861
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/reply`,
|
|
862
|
-
body: { answer: input["answer"] },
|
|
863
|
-
successStatus: 204,
|
|
864
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
865
|
-
empty: true,
|
|
866
|
-
}, requestOptions),
|
|
867
|
-
cancel: (input, requestOptions) => request({
|
|
868
|
-
method: "POST",
|
|
869
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/cancel`,
|
|
870
|
-
successStatus: 204,
|
|
871
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
872
|
-
empty: true,
|
|
873
839
|
}, requestOptions),
|
|
874
840
|
},
|
|
875
841
|
permission: {
|
|
@@ -933,15 +899,7 @@ export function make(options) {
|
|
|
933
899
|
reply: (input, requestOptions) => request({
|
|
934
900
|
method: "POST",
|
|
935
901
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/permission/${encodeURIComponent(input.requestID)}/reply`,
|
|
936
|
-
body: {
|
|
937
|
-
successStatus: 204,
|
|
938
|
-
declaredStatuses: [400, 401, 404],
|
|
939
|
-
empty: true,
|
|
940
|
-
}, requestOptions),
|
|
941
|
-
rules: (input, requestOptions) => request({
|
|
942
|
-
method: "PUT",
|
|
943
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/permission/rules`,
|
|
944
|
-
body: { permissions: input["permissions"] },
|
|
902
|
+
body: { decision: input["decision"], message: input["message"] },
|
|
945
903
|
successStatus: 204,
|
|
946
904
|
declaredStatuses: [400, 401, 404],
|
|
947
905
|
empty: true,
|
|
@@ -1185,15 +1143,6 @@ export function make(options) {
|
|
|
1185
1143
|
declaredStatuses: [400, 401, 404],
|
|
1186
1144
|
empty: false,
|
|
1187
1145
|
}, requestOptions),
|
|
1188
|
-
timeout: (input, requestOptions) => request({
|
|
1189
|
-
method: "PATCH",
|
|
1190
|
-
path: `/api/shell/${encodeURIComponent(input.id)}/timeout`,
|
|
1191
|
-
query: { location: input["location"] },
|
|
1192
|
-
body: { timeout: input["timeout"] },
|
|
1193
|
-
successStatus: 200,
|
|
1194
|
-
declaredStatuses: [400, 401, 404],
|
|
1195
|
-
empty: false,
|
|
1196
|
-
}, requestOptions),
|
|
1197
1146
|
output: (input, requestOptions) => request({
|
|
1198
1147
|
method: "GET",
|
|
1199
1148
|
path: `/api/shell/${encodeURIComponent(input.id)}/output`,
|
|
@@ -1207,7 +1156,7 @@ export function make(options) {
|
|
|
1207
1156
|
path: `/api/shell/${encodeURIComponent(input.id)}`,
|
|
1208
1157
|
query: { location: input["location"] },
|
|
1209
1158
|
successStatus: 204,
|
|
1210
|
-
declaredStatuses: [400, 401
|
|
1159
|
+
declaredStatuses: [400, 401],
|
|
1211
1160
|
empty: true,
|
|
1212
1161
|
}, requestOptions),
|
|
1213
1162
|
},
|
|
@@ -1225,61 +1174,42 @@ export function make(options) {
|
|
|
1225
1174
|
list: (input, requestOptions) => request({
|
|
1226
1175
|
method: "GET",
|
|
1227
1176
|
path: `/api/worktree`,
|
|
1228
|
-
query: {
|
|
1177
|
+
query: { projectID: input["projectID"] },
|
|
1229
1178
|
successStatus: 200,
|
|
1230
|
-
declaredStatuses: [400, 401],
|
|
1179
|
+
declaredStatuses: [400, 401, 404],
|
|
1231
1180
|
empty: false,
|
|
1232
1181
|
}, requestOptions),
|
|
1233
1182
|
create: (input, requestOptions) => request({
|
|
1234
1183
|
method: "POST",
|
|
1235
1184
|
path: `/api/worktree`,
|
|
1236
|
-
query: { location: input?.["location"] },
|
|
1237
1185
|
body: {
|
|
1238
|
-
|
|
1239
|
-
from: input
|
|
1240
|
-
branch: input
|
|
1241
|
-
directory: input
|
|
1242
|
-
name: input
|
|
1186
|
+
projectID: input["projectID"],
|
|
1187
|
+
from: input["from"],
|
|
1188
|
+
branch: input["branch"],
|
|
1189
|
+
directory: input["directory"],
|
|
1190
|
+
name: input["name"],
|
|
1243
1191
|
},
|
|
1244
1192
|
successStatus: 200,
|
|
1245
|
-
declaredStatuses: [400, 401],
|
|
1193
|
+
declaredStatuses: [400, 401, 404],
|
|
1246
1194
|
empty: false,
|
|
1247
1195
|
}, requestOptions),
|
|
1248
1196
|
remove: (input, requestOptions) => request({
|
|
1249
1197
|
method: "DELETE",
|
|
1250
1198
|
path: `/api/worktree`,
|
|
1251
|
-
|
|
1252
|
-
body: { directory: input["directory"], force: input["force"] },
|
|
1199
|
+
body: { projectID: input["projectID"], directory: input["directory"], force: input["force"] },
|
|
1253
1200
|
successStatus: 204,
|
|
1254
|
-
declaredStatuses: [400, 401],
|
|
1201
|
+
declaredStatuses: [400, 401, 404],
|
|
1255
1202
|
empty: true,
|
|
1256
1203
|
}, requestOptions),
|
|
1257
1204
|
refresh: (input, requestOptions) => request({
|
|
1258
1205
|
method: "POST",
|
|
1259
1206
|
path: `/api/worktree/refresh`,
|
|
1260
|
-
|
|
1207
|
+
body: { projectID: input["projectID"] },
|
|
1261
1208
|
successStatus: 204,
|
|
1262
|
-
declaredStatuses: [400, 401],
|
|
1209
|
+
declaredStatuses: [400, 401, 404],
|
|
1263
1210
|
empty: true,
|
|
1264
1211
|
}, requestOptions),
|
|
1265
1212
|
},
|
|
1266
|
-
workspace: {
|
|
1267
|
-
create: (input, requestOptions) => request({
|
|
1268
|
-
method: "POST",
|
|
1269
|
-
path: `/api/workspace`,
|
|
1270
|
-
body: { id: input["id"], provider: input["provider"] },
|
|
1271
|
-
successStatus: 200,
|
|
1272
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
1273
|
-
empty: false,
|
|
1274
|
-
}, requestOptions).then((value) => value.data),
|
|
1275
|
-
destroy: (input, requestOptions) => request({
|
|
1276
|
-
method: "DELETE",
|
|
1277
|
-
path: `/api/workspace/${encodeURIComponent(input.workspaceID)}`,
|
|
1278
|
-
successStatus: 200,
|
|
1279
|
-
declaredStatuses: [400, 401, 500],
|
|
1280
|
-
empty: false,
|
|
1281
|
-
}, requestOptions),
|
|
1282
|
-
},
|
|
1283
1213
|
vcs: {
|
|
1284
1214
|
get: (input, requestOptions) => request({
|
|
1285
1215
|
method: "GET",
|
|
@@ -1305,14 +1235,16 @@ export function make(options) {
|
|
|
1305
1235
|
declaredStatuses: [400, 401],
|
|
1306
1236
|
empty: false,
|
|
1307
1237
|
}, requestOptions),
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1238
|
+
branch: {
|
|
1239
|
+
list: (input, requestOptions) => request({
|
|
1240
|
+
method: "GET",
|
|
1241
|
+
path: `/api/vcs/branch`,
|
|
1242
|
+
query: { location: input?.["location"], search: input?.["search"], limit: input?.["limit"] },
|
|
1243
|
+
successStatus: 200,
|
|
1244
|
+
declaredStatuses: [400, 401],
|
|
1245
|
+
empty: false,
|
|
1246
|
+
}, requestOptions),
|
|
1247
|
+
},
|
|
1316
1248
|
diff: (input, requestOptions) => request({
|
|
1317
1249
|
method: "GET",
|
|
1318
1250
|
path: `/api/vcs/diff`,
|
|
@@ -1380,22 +1312,15 @@ export function make(options) {
|
|
|
1380
1312
|
declaredStatuses: [400, 401],
|
|
1381
1313
|
empty: false,
|
|
1382
1314
|
}, requestOptions),
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
path: `/api/config/preferences`,
|
|
1386
|
-
successStatus: 200,
|
|
1387
|
-
declaredStatuses: [400, 401],
|
|
1388
|
-
empty: false,
|
|
1389
|
-
}, requestOptions),
|
|
1390
|
-
updatePreferences: (input, requestOptions) => request({
|
|
1315
|
+
shells: (requestOptions) => request({ method: "GET", path: `/api/config/shell`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions),
|
|
1316
|
+
update: (input, requestOptions) => request({
|
|
1391
1317
|
method: "PATCH",
|
|
1392
|
-
path: `/api/config
|
|
1393
|
-
body: { shell: input
|
|
1394
|
-
successStatus:
|
|
1318
|
+
path: `/api/experimental/config`,
|
|
1319
|
+
body: { shell: input["shell"] },
|
|
1320
|
+
successStatus: 204,
|
|
1395
1321
|
declaredStatuses: [400, 401],
|
|
1396
|
-
empty:
|
|
1322
|
+
empty: true,
|
|
1397
1323
|
}, requestOptions),
|
|
1398
|
-
shells: (requestOptions) => request({ method: "GET", path: `/api/config/shell`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions),
|
|
1399
1324
|
},
|
|
1400
1325
|
};
|
|
1401
1326
|
}
|