@opencode/client 2.0.2 → 2.0.4
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 +331 -345
- package/dist/effect/api.d.ts +1 -5
- package/dist/effect/client.d.ts +60 -69
- package/dist/effect/generated/client.d.ts +61 -70
- package/dist/effect/generated/client.js +58 -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 +23 -39
- package/dist/promise/generated/client.d.ts +24 -40
- package/dist/promise/generated/client.js +125 -192
- package/dist/promise/generated/types.d.ts +1421 -1872
- 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 +79 -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,
|
|
@@ -434,6 +422,14 @@ export function make(options) {
|
|
|
434
422
|
declaredStatuses: [400, 401, 404, 500],
|
|
435
423
|
empty: false,
|
|
436
424
|
}, requestOptions).then((value) => value.data),
|
|
425
|
+
diff: (input, requestOptions) => request({
|
|
426
|
+
method: "GET",
|
|
427
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/diff`,
|
|
428
|
+
query: { from: input["from"], to: input["to"], context: input["context"] },
|
|
429
|
+
successStatus: 200,
|
|
430
|
+
declaredStatuses: [400, 401, 404, 500],
|
|
431
|
+
empty: false,
|
|
432
|
+
}, requestOptions).then((value) => value.data),
|
|
437
433
|
inbox: {
|
|
438
434
|
list: (input, requestOptions) => request({
|
|
439
435
|
method: "GET",
|
|
@@ -446,19 +442,13 @@ export function make(options) {
|
|
|
446
442
|
method: "DELETE",
|
|
447
443
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}`,
|
|
448
444
|
successStatus: 204,
|
|
449
|
-
declaredStatuses: [400, 401, 404
|
|
450
|
-
empty: true,
|
|
451
|
-
}, requestOptions),
|
|
452
|
-
steer: (input, requestOptions) => request({
|
|
453
|
-
method: "POST",
|
|
454
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}/steer`,
|
|
455
|
-
successStatus: 204,
|
|
456
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
445
|
+
declaredStatuses: [400, 401, 404],
|
|
457
446
|
empty: true,
|
|
458
447
|
}, requestOptions),
|
|
459
|
-
|
|
460
|
-
method: "
|
|
461
|
-
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"] },
|
|
462
452
|
successStatus: 204,
|
|
463
453
|
declaredStatuses: [400, 401, 404, 409],
|
|
464
454
|
empty: true,
|
|
@@ -468,14 +458,14 @@ export function make(options) {
|
|
|
468
458
|
entry: {
|
|
469
459
|
list: (input, requestOptions) => request({
|
|
470
460
|
method: "GET",
|
|
471
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/instructions/entries`,
|
|
461
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries`,
|
|
472
462
|
successStatus: 200,
|
|
473
463
|
declaredStatuses: [400, 401, 404],
|
|
474
464
|
empty: false,
|
|
475
465
|
}, requestOptions).then((value) => value.data),
|
|
476
466
|
put: (input, requestOptions) => request({
|
|
477
467
|
method: "PUT",
|
|
478
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
468
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
479
469
|
body: { value: input["value"] },
|
|
480
470
|
successStatus: 204,
|
|
481
471
|
declaredStatuses: [400, 401, 404, 413],
|
|
@@ -483,7 +473,7 @@ export function make(options) {
|
|
|
483
473
|
}, requestOptions),
|
|
484
474
|
remove: (input, requestOptions) => request({
|
|
485
475
|
method: "DELETE",
|
|
486
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
476
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
487
477
|
successStatus: 204,
|
|
488
478
|
declaredStatuses: [400, 401, 404],
|
|
489
479
|
empty: true,
|
|
@@ -509,7 +499,7 @@ export function make(options) {
|
|
|
509
499
|
interrupt: (input, requestOptions) => request({
|
|
510
500
|
method: "POST",
|
|
511
501
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/interrupt`,
|
|
512
|
-
query: {
|
|
502
|
+
query: { resume: input["resume"] },
|
|
513
503
|
successStatus: 200,
|
|
514
504
|
declaredStatuses: [400, 401, 404],
|
|
515
505
|
empty: false,
|
|
@@ -521,13 +511,54 @@ export function make(options) {
|
|
|
521
511
|
declaredStatuses: [400, 401, 404],
|
|
522
512
|
empty: true,
|
|
523
513
|
}, requestOptions),
|
|
524
|
-
message:
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
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
|
+
},
|
|
531
562
|
environment: (input, requestOptions) => request({
|
|
532
563
|
method: "PUT",
|
|
533
564
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/environment`,
|
|
@@ -576,7 +607,7 @@ export function make(options) {
|
|
|
576
607
|
generate: {
|
|
577
608
|
text: (input, requestOptions) => request({
|
|
578
609
|
method: "POST",
|
|
579
|
-
path: `/api/generate`,
|
|
610
|
+
path: `/api/experimental/generate`,
|
|
580
611
|
body: { prompt: input["prompt"], model: input["model"] },
|
|
581
612
|
successStatus: 200,
|
|
582
613
|
declaredStatuses: [400, 401, 503],
|
|
@@ -615,7 +646,7 @@ export function make(options) {
|
|
|
615
646
|
path: `/api/integration/${encodeURIComponent(input.integrationID)}`,
|
|
616
647
|
query: { location: input["location"] },
|
|
617
648
|
successStatus: 200,
|
|
618
|
-
declaredStatuses: [400, 401],
|
|
649
|
+
declaredStatuses: [400, 401, 404],
|
|
619
650
|
empty: false,
|
|
620
651
|
}, requestOptions),
|
|
621
652
|
wellknown: {
|
|
@@ -636,7 +667,7 @@ export function make(options) {
|
|
|
636
667
|
query: { location: input["location"] },
|
|
637
668
|
body: { key: input["key"], answer: input["answer"], label: input["label"] },
|
|
638
669
|
successStatus: 204,
|
|
639
|
-
declaredStatuses: [400, 401],
|
|
670
|
+
declaredStatuses: [400, 401, 404],
|
|
640
671
|
empty: true,
|
|
641
672
|
}, requestOptions),
|
|
642
673
|
},
|
|
@@ -655,7 +686,7 @@ export function make(options) {
|
|
|
655
686
|
path: `/api/integration/${encodeURIComponent(input.integrationID)}/connect/oauth/${encodeURIComponent(input.attemptID)}`,
|
|
656
687
|
query: { location: input["location"] },
|
|
657
688
|
successStatus: 200,
|
|
658
|
-
declaredStatuses: [400, 401],
|
|
689
|
+
declaredStatuses: [400, 401, 404],
|
|
659
690
|
empty: false,
|
|
660
691
|
}, requestOptions),
|
|
661
692
|
complete: (input, requestOptions) => request({
|
|
@@ -664,7 +695,7 @@ export function make(options) {
|
|
|
664
695
|
query: { location: input["location"] },
|
|
665
696
|
body: { code: input["code"] },
|
|
666
697
|
successStatus: 204,
|
|
667
|
-
declaredStatuses: [400, 401],
|
|
698
|
+
declaredStatuses: [400, 401, 404],
|
|
668
699
|
empty: true,
|
|
669
700
|
}, requestOptions),
|
|
670
701
|
cancel: (input, requestOptions) => request({
|
|
@@ -683,7 +714,7 @@ export function make(options) {
|
|
|
683
714
|
query: { location: input["location"] },
|
|
684
715
|
body: { methodID: input["methodID"], label: input["label"] },
|
|
685
716
|
successStatus: 200,
|
|
686
|
-
declaredStatuses: [400, 401],
|
|
717
|
+
declaredStatuses: [400, 401, 404],
|
|
687
718
|
empty: false,
|
|
688
719
|
}, requestOptions),
|
|
689
720
|
status: (input, requestOptions) => request({
|
|
@@ -691,7 +722,7 @@ export function make(options) {
|
|
|
691
722
|
path: `/api/integration/${encodeURIComponent(input.integrationID)}/connect/command/${encodeURIComponent(input.attemptID)}`,
|
|
692
723
|
query: { location: input["location"] },
|
|
693
724
|
successStatus: 200,
|
|
694
|
-
declaredStatuses: [400, 401],
|
|
725
|
+
declaredStatuses: [400, 401, 404],
|
|
695
726
|
empty: false,
|
|
696
727
|
}, requestOptions),
|
|
697
728
|
cancel: (input, requestOptions) => request({
|
|
@@ -715,7 +746,7 @@ export function make(options) {
|
|
|
715
746
|
}, requestOptions),
|
|
716
747
|
add: (input, requestOptions) => request({
|
|
717
748
|
method: "PUT",
|
|
718
|
-
path: `/api/mcp/${encodeURIComponent(input.server)}`,
|
|
749
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}`,
|
|
719
750
|
query: { location: input["location"] },
|
|
720
751
|
body: { config: input["config"] },
|
|
721
752
|
successStatus: 204,
|
|
@@ -724,7 +755,7 @@ export function make(options) {
|
|
|
724
755
|
}, requestOptions),
|
|
725
756
|
remove: (input, requestOptions) => request({
|
|
726
757
|
method: "DELETE",
|
|
727
|
-
path: `/api/mcp/${encodeURIComponent(input.server)}`,
|
|
758
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}`,
|
|
728
759
|
query: { location: input["location"] },
|
|
729
760
|
successStatus: 204,
|
|
730
761
|
declaredStatuses: [400, 401, 404],
|
|
@@ -732,7 +763,7 @@ export function make(options) {
|
|
|
732
763
|
}, requestOptions),
|
|
733
764
|
connect: (input, requestOptions) => request({
|
|
734
765
|
method: "POST",
|
|
735
|
-
path: `/api/mcp/${encodeURIComponent(input.server)}/connect`,
|
|
766
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}/connect`,
|
|
736
767
|
query: { location: input["location"] },
|
|
737
768
|
successStatus: 204,
|
|
738
769
|
declaredStatuses: [400, 401, 404],
|
|
@@ -740,7 +771,7 @@ export function make(options) {
|
|
|
740
771
|
}, requestOptions),
|
|
741
772
|
disconnect: (input, requestOptions) => request({
|
|
742
773
|
method: "POST",
|
|
743
|
-
path: `/api/mcp/${encodeURIComponent(input.server)}/disconnect`,
|
|
774
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}/disconnect`,
|
|
744
775
|
query: { location: input["location"] },
|
|
745
776
|
successStatus: 204,
|
|
746
777
|
declaredStatuses: [400, 401, 404],
|
|
@@ -761,7 +792,6 @@ export function make(options) {
|
|
|
761
792
|
update: (input, requestOptions) => request({
|
|
762
793
|
method: "PATCH",
|
|
763
794
|
path: `/api/credential/${encodeURIComponent(input.credentialID)}`,
|
|
764
|
-
query: { location: input["location"] },
|
|
765
795
|
body: { label: input["label"] },
|
|
766
796
|
successStatus: 204,
|
|
767
797
|
declaredStatuses: [400, 401],
|
|
@@ -770,7 +800,6 @@ export function make(options) {
|
|
|
770
800
|
activate: (input, requestOptions) => request({
|
|
771
801
|
method: "POST",
|
|
772
802
|
path: `/api/credential/${encodeURIComponent(input.credentialID)}/activate`,
|
|
773
|
-
query: { location: input["location"] },
|
|
774
803
|
successStatus: 204,
|
|
775
804
|
declaredStatuses: [400, 401],
|
|
776
805
|
empty: true,
|
|
@@ -778,7 +807,6 @@ export function make(options) {
|
|
|
778
807
|
remove: (input, requestOptions) => request({
|
|
779
808
|
method: "DELETE",
|
|
780
809
|
path: `/api/credential/${encodeURIComponent(input.credentialID)}`,
|
|
781
|
-
query: { location: input["location"] },
|
|
782
810
|
successStatus: 204,
|
|
783
811
|
declaredStatuses: [400, 401],
|
|
784
812
|
empty: true,
|
|
@@ -799,69 +827,15 @@ export function make(options) {
|
|
|
799
827
|
declaredStatuses: [400, 401, 404],
|
|
800
828
|
empty: false,
|
|
801
829
|
}, requestOptions),
|
|
802
|
-
current: (input, requestOptions) => request({
|
|
803
|
-
method: "GET",
|
|
804
|
-
path: `/api/project/current`,
|
|
805
|
-
query: { location: input?.["location"] },
|
|
806
|
-
successStatus: 200,
|
|
807
|
-
declaredStatuses: [400, 401],
|
|
808
|
-
empty: false,
|
|
809
|
-
}, requestOptions),
|
|
810
830
|
},
|
|
811
831
|
form: {
|
|
812
|
-
request: {
|
|
813
|
-
list: (input, requestOptions) => request({
|
|
814
|
-
method: "GET",
|
|
815
|
-
path: `/api/form/request`,
|
|
816
|
-
query: { location: input?.["location"] },
|
|
817
|
-
successStatus: 200,
|
|
818
|
-
declaredStatuses: [400, 401],
|
|
819
|
-
empty: false,
|
|
820
|
-
}, requestOptions),
|
|
821
|
-
},
|
|
822
832
|
list: (input, requestOptions) => request({
|
|
823
833
|
method: "GET",
|
|
824
|
-
path: `/api/
|
|
825
|
-
|
|
826
|
-
declaredStatuses: [400, 401, 404],
|
|
827
|
-
empty: false,
|
|
828
|
-
}, requestOptions).then((value) => value.data),
|
|
829
|
-
create: (input, requestOptions) => request({
|
|
830
|
-
method: "POST",
|
|
831
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form`,
|
|
832
|
-
body: { id: input["id"], title: input["title"], metadata: input["metadata"], fields: input["fields"] },
|
|
833
|
-
successStatus: 200,
|
|
834
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
835
|
-
empty: false,
|
|
836
|
-
}, requestOptions).then((value) => value.data),
|
|
837
|
-
get: (input, requestOptions) => request({
|
|
838
|
-
method: "GET",
|
|
839
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
840
|
-
successStatus: 200,
|
|
841
|
-
declaredStatuses: [400, 401, 404],
|
|
842
|
-
empty: false,
|
|
843
|
-
}, requestOptions).then((value) => value.data),
|
|
844
|
-
state: (input, requestOptions) => request({
|
|
845
|
-
method: "GET",
|
|
846
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/state`,
|
|
834
|
+
path: `/api/form`,
|
|
835
|
+
query: { location: input?.["location"] },
|
|
847
836
|
successStatus: 200,
|
|
848
|
-
declaredStatuses: [400, 401
|
|
837
|
+
declaredStatuses: [400, 401],
|
|
849
838
|
empty: false,
|
|
850
|
-
}, requestOptions).then((value) => value.data),
|
|
851
|
-
reply: (input, requestOptions) => request({
|
|
852
|
-
method: "POST",
|
|
853
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/reply`,
|
|
854
|
-
body: { answer: input["answer"] },
|
|
855
|
-
successStatus: 204,
|
|
856
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
857
|
-
empty: true,
|
|
858
|
-
}, requestOptions),
|
|
859
|
-
cancel: (input, requestOptions) => request({
|
|
860
|
-
method: "POST",
|
|
861
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/cancel`,
|
|
862
|
-
successStatus: 204,
|
|
863
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
864
|
-
empty: true,
|
|
865
839
|
}, requestOptions),
|
|
866
840
|
},
|
|
867
841
|
permission: {
|
|
@@ -925,15 +899,7 @@ export function make(options) {
|
|
|
925
899
|
reply: (input, requestOptions) => request({
|
|
926
900
|
method: "POST",
|
|
927
901
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/permission/${encodeURIComponent(input.requestID)}/reply`,
|
|
928
|
-
body: {
|
|
929
|
-
successStatus: 204,
|
|
930
|
-
declaredStatuses: [400, 401, 404],
|
|
931
|
-
empty: true,
|
|
932
|
-
}, requestOptions),
|
|
933
|
-
rules: (input, requestOptions) => request({
|
|
934
|
-
method: "PUT",
|
|
935
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/permission/rules`,
|
|
936
|
-
body: { permissions: input["permissions"] },
|
|
902
|
+
body: { decision: input["decision"], message: input["message"] },
|
|
937
903
|
successStatus: 204,
|
|
938
904
|
declaredStatuses: [400, 401, 404],
|
|
939
905
|
empty: true,
|
|
@@ -1177,15 +1143,6 @@ export function make(options) {
|
|
|
1177
1143
|
declaredStatuses: [400, 401, 404],
|
|
1178
1144
|
empty: false,
|
|
1179
1145
|
}, requestOptions),
|
|
1180
|
-
timeout: (input, requestOptions) => request({
|
|
1181
|
-
method: "PATCH",
|
|
1182
|
-
path: `/api/shell/${encodeURIComponent(input.id)}/timeout`,
|
|
1183
|
-
query: { location: input["location"] },
|
|
1184
|
-
body: { timeout: input["timeout"] },
|
|
1185
|
-
successStatus: 200,
|
|
1186
|
-
declaredStatuses: [400, 401, 404],
|
|
1187
|
-
empty: false,
|
|
1188
|
-
}, requestOptions),
|
|
1189
1146
|
output: (input, requestOptions) => request({
|
|
1190
1147
|
method: "GET",
|
|
1191
1148
|
path: `/api/shell/${encodeURIComponent(input.id)}/output`,
|
|
@@ -1199,7 +1156,7 @@ export function make(options) {
|
|
|
1199
1156
|
path: `/api/shell/${encodeURIComponent(input.id)}`,
|
|
1200
1157
|
query: { location: input["location"] },
|
|
1201
1158
|
successStatus: 204,
|
|
1202
|
-
declaredStatuses: [400, 401
|
|
1159
|
+
declaredStatuses: [400, 401],
|
|
1203
1160
|
empty: true,
|
|
1204
1161
|
}, requestOptions),
|
|
1205
1162
|
},
|
|
@@ -1217,61 +1174,42 @@ export function make(options) {
|
|
|
1217
1174
|
list: (input, requestOptions) => request({
|
|
1218
1175
|
method: "GET",
|
|
1219
1176
|
path: `/api/worktree`,
|
|
1220
|
-
query: {
|
|
1177
|
+
query: { projectID: input["projectID"] },
|
|
1221
1178
|
successStatus: 200,
|
|
1222
|
-
declaredStatuses: [400, 401],
|
|
1179
|
+
declaredStatuses: [400, 401, 404],
|
|
1223
1180
|
empty: false,
|
|
1224
1181
|
}, requestOptions),
|
|
1225
1182
|
create: (input, requestOptions) => request({
|
|
1226
1183
|
method: "POST",
|
|
1227
1184
|
path: `/api/worktree`,
|
|
1228
|
-
query: { location: input?.["location"] },
|
|
1229
1185
|
body: {
|
|
1230
|
-
|
|
1231
|
-
from: input
|
|
1232
|
-
branch: input
|
|
1233
|
-
directory: input
|
|
1234
|
-
name: input
|
|
1186
|
+
projectID: input["projectID"],
|
|
1187
|
+
from: input["from"],
|
|
1188
|
+
branch: input["branch"],
|
|
1189
|
+
directory: input["directory"],
|
|
1190
|
+
name: input["name"],
|
|
1235
1191
|
},
|
|
1236
1192
|
successStatus: 200,
|
|
1237
|
-
declaredStatuses: [400, 401],
|
|
1193
|
+
declaredStatuses: [400, 401, 404],
|
|
1238
1194
|
empty: false,
|
|
1239
1195
|
}, requestOptions),
|
|
1240
1196
|
remove: (input, requestOptions) => request({
|
|
1241
1197
|
method: "DELETE",
|
|
1242
1198
|
path: `/api/worktree`,
|
|
1243
|
-
|
|
1244
|
-
body: { directory: input["directory"], force: input["force"] },
|
|
1199
|
+
body: { projectID: input["projectID"], directory: input["directory"], force: input["force"] },
|
|
1245
1200
|
successStatus: 204,
|
|
1246
|
-
declaredStatuses: [400, 401],
|
|
1201
|
+
declaredStatuses: [400, 401, 404],
|
|
1247
1202
|
empty: true,
|
|
1248
1203
|
}, requestOptions),
|
|
1249
1204
|
refresh: (input, requestOptions) => request({
|
|
1250
1205
|
method: "POST",
|
|
1251
1206
|
path: `/api/worktree/refresh`,
|
|
1252
|
-
|
|
1207
|
+
body: { projectID: input["projectID"] },
|
|
1253
1208
|
successStatus: 204,
|
|
1254
|
-
declaredStatuses: [400, 401],
|
|
1209
|
+
declaredStatuses: [400, 401, 404],
|
|
1255
1210
|
empty: true,
|
|
1256
1211
|
}, requestOptions),
|
|
1257
1212
|
},
|
|
1258
|
-
workspace: {
|
|
1259
|
-
create: (input, requestOptions) => request({
|
|
1260
|
-
method: "POST",
|
|
1261
|
-
path: `/api/workspace`,
|
|
1262
|
-
body: { id: input["id"], provider: input["provider"] },
|
|
1263
|
-
successStatus: 200,
|
|
1264
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
1265
|
-
empty: false,
|
|
1266
|
-
}, requestOptions).then((value) => value.data),
|
|
1267
|
-
destroy: (input, requestOptions) => request({
|
|
1268
|
-
method: "DELETE",
|
|
1269
|
-
path: `/api/workspace/${encodeURIComponent(input.workspaceID)}`,
|
|
1270
|
-
successStatus: 200,
|
|
1271
|
-
declaredStatuses: [400, 401, 500],
|
|
1272
|
-
empty: false,
|
|
1273
|
-
}, requestOptions),
|
|
1274
|
-
},
|
|
1275
1213
|
vcs: {
|
|
1276
1214
|
get: (input, requestOptions) => request({
|
|
1277
1215
|
method: "GET",
|
|
@@ -1297,14 +1235,16 @@ export function make(options) {
|
|
|
1297
1235
|
declaredStatuses: [400, 401],
|
|
1298
1236
|
empty: false,
|
|
1299
1237
|
}, requestOptions),
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
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
|
+
},
|
|
1308
1248
|
diff: (input, requestOptions) => request({
|
|
1309
1249
|
method: "GET",
|
|
1310
1250
|
path: `/api/vcs/diff`,
|
|
@@ -1372,22 +1312,15 @@ export function make(options) {
|
|
|
1372
1312
|
declaredStatuses: [400, 401],
|
|
1373
1313
|
empty: false,
|
|
1374
1314
|
}, requestOptions),
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
path: `/api/config/preferences`,
|
|
1378
|
-
successStatus: 200,
|
|
1379
|
-
declaredStatuses: [400, 401],
|
|
1380
|
-
empty: false,
|
|
1381
|
-
}, requestOptions),
|
|
1382
|
-
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({
|
|
1383
1317
|
method: "PATCH",
|
|
1384
|
-
path: `/api/config
|
|
1385
|
-
body: { shell: input
|
|
1386
|
-
successStatus:
|
|
1318
|
+
path: `/api/experimental/config`,
|
|
1319
|
+
body: { shell: input["shell"] },
|
|
1320
|
+
successStatus: 204,
|
|
1387
1321
|
declaredStatuses: [400, 401],
|
|
1388
|
-
empty:
|
|
1322
|
+
empty: true,
|
|
1389
1323
|
}, requestOptions),
|
|
1390
|
-
shells: (requestOptions) => request({ method: "GET", path: `/api/config/shell`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions),
|
|
1391
1324
|
},
|
|
1392
1325
|
};
|
|
1393
1326
|
}
|