@opencode/client 2.1.4 → 2.2.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/dist/chunks/{contract-hg9t2gnm.js → mcp-0e9xp5b3.js} +6 -6
- package/dist/chunks/{contract-15p82y03.js → mcp-15p82y03.js} +2 -2
- package/dist/chunks/{contract-w10x3kfx.js → mcp-4z60zgnr.js} +245 -112
- package/dist/chunks/mcp-60xe5cbf.js +4 -0
- package/dist/chunks/mcp-6mq2wh8y.js +33 -0
- package/dist/chunks/{contract-vwtmm97t.js → mcp-6v8v0sqq.js} +5 -5
- package/dist/chunks/{contract-2ny4vxct.js → mcp-8ye1ye6f.js} +2 -2
- package/dist/chunks/{contract-1x65x4hv.js → mcp-csehnca4.js} +101 -56
- package/dist/chunks/{contract-c46qzyff.js → mcp-cvg5j6d1.js} +10 -5
- package/dist/chunks/{contract-8bbb028w.js → mcp-gecjxyvt.js} +5 -1
- package/dist/chunks/{contract-skhp7hxc.js → mcp-kdshn947.js} +1 -1
- package/dist/chunks/{contract-9kmsh4jj.js → mcp-qhd5h5hk.js} +2 -2
- package/dist/chunks/{contract-ryy6kscr.js → mcp-ryy6kscr.js} +1 -1
- package/dist/chunks/{contract-s2hya144.js → mcp-yn2a71yh.js} +523 -325
- package/dist/contract.d.ts +1 -1
- package/dist/contract.js +3 -1
- package/dist/effect/api/api.d.ts +704 -355
- package/dist/effect/api.d.ts +1 -0
- package/dist/effect/client.d.ts +439 -218
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +374 -123
- package/dist/effect/generated/client.js +3 -3
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +2 -2
- package/dist/effect/service.js +6 -6
- package/dist/promise/api.d.ts +4 -0
- package/dist/promise/client.d.ts +209 -133
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +245 -134
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +22 -12
- package/dist/promise/generated/types.d.ts +1641 -3781
- package/dist/promise/generated/types.js +15 -5
- package/dist/promise/index.d.ts +1 -0
- package/dist/promise/index.js +24 -14
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.d.ts +2 -2
- package/dist/promise/service.js +7 -6
- package/dist/pty-handoff.js +4 -4
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.d.ts +7 -2
- package/dist/shared-events.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.d.ts +11 -1
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.js +16 -12
- package/dist/solid/pty.js +1 -1
- package/dist/solid/retention.d.ts +10 -0
- package/dist/solid/retention.js +6 -0
- package/dist/solid/usage.js +1 -1
- package/package.json +8 -7
- package/dist/chunks/contract-vmytr4q8.js +0 -4
- /package/dist/chunks/{contract-6mptkzbc.js → mcp-6mptkzbc.js} +0 -0
- /package/dist/chunks/{contract-8s2anffy.js → mcp-8s2anffy.js} +0 -0
- /package/dist/chunks/{contract-9rqn6x4v.js → mcp-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{contract-gne7h7mq.js → mcp-gne7h7mq.js} +0 -0
- /package/dist/chunks/{contract-m2eywc8w.js → mcp-m2eywc8w.js} +0 -0
- /package/dist/chunks/{contract-nwcpakzx.js → mcp-nwcpakzx.js} +0 -0
- /package/dist/chunks/{contract-qav6mfdz.js → mcp-qav6mfdz.js} +0 -0
- /package/dist/chunks/{contract-sxt88q69.js → mcp-sxt88q69.js} +0 -0
- /package/dist/chunks/{contract-ve4aws36.js → mcp-ve4aws36.js} +0 -0
- /package/dist/chunks/{contract-vyas3vgt.js → mcp-vyas3vgt.js} +0 -0
- /package/dist/chunks/{contract-xgnj2w4v.js → mcp-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{contract-y2etg5bs.js → mcp-y2etg5bs.js} +0 -0
- /package/dist/chunks/{contract-ydhz1zrh.js → mcp-ydhz1zrh.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mcp-nwcpakzx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./mcp-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/promise/generated/client.ts
|
|
9
9
|
var exports_client4 = {};
|
|
@@ -142,7 +142,7 @@ function make6(options) {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
|
-
|
|
145
|
+
const client = {
|
|
146
146
|
server: {
|
|
147
147
|
info: (requestOptions) => request({ method: "GET", path: `/api/info`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions),
|
|
148
148
|
pair: (requestOptions) => request({ method: "POST", path: `/api/pair`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions),
|
|
@@ -177,7 +177,7 @@ function make6(options) {
|
|
|
177
177
|
path: `/api/agent`,
|
|
178
178
|
query: { location: input?.["location"] },
|
|
179
179
|
successStatus: 200,
|
|
180
|
-
declaredStatuses: [400, 401, 404],
|
|
180
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
181
181
|
empty: false
|
|
182
182
|
}, requestOptions),
|
|
183
183
|
get: (input, requestOptions) => request({
|
|
@@ -198,6 +198,14 @@ function make6(options) {
|
|
|
198
198
|
declaredStatuses: [400, 401, 404],
|
|
199
199
|
empty: false
|
|
200
200
|
}, requestOptions),
|
|
201
|
+
gui: (input, requestOptions) => request({
|
|
202
|
+
method: "GET",
|
|
203
|
+
path: `/api/plugin/gui`,
|
|
204
|
+
query: { location: input["location"], id: input["id"] },
|
|
205
|
+
successStatus: 200,
|
|
206
|
+
declaredStatuses: [400, 401, 404],
|
|
207
|
+
empty: false
|
|
208
|
+
}, requestOptions),
|
|
201
209
|
check: (input, requestOptions) => request({
|
|
202
210
|
method: "POST",
|
|
203
211
|
path: `/api/plugin/check`,
|
|
@@ -236,20 +244,6 @@ function make6(options) {
|
|
|
236
244
|
declaredStatuses: [400, 401],
|
|
237
245
|
empty: false
|
|
238
246
|
}, requestOptions),
|
|
239
|
-
stats: (input, requestOptions) => request({
|
|
240
|
-
method: "GET",
|
|
241
|
-
path: `/api/experimental/session/stats`,
|
|
242
|
-
query: {
|
|
243
|
-
from: input?.["from"],
|
|
244
|
-
to: input?.["to"],
|
|
245
|
-
project: input?.["project"],
|
|
246
|
-
timezone: input?.["timezone"],
|
|
247
|
-
tools: input?.["tools"]
|
|
248
|
-
},
|
|
249
|
-
successStatus: 200,
|
|
250
|
-
declaredStatuses: [400, 401],
|
|
251
|
-
empty: false
|
|
252
|
-
}, requestOptions).then((value) => value.data),
|
|
253
247
|
create: (input, requestOptions) => request({
|
|
254
248
|
method: "POST",
|
|
255
249
|
path: `/api/session`,
|
|
@@ -267,22 +261,6 @@ function make6(options) {
|
|
|
267
261
|
declaredStatuses: [400, 401, 404],
|
|
268
262
|
empty: false
|
|
269
263
|
}, requestOptions).then((value) => value.data),
|
|
270
|
-
import: (input, requestOptions) => request({
|
|
271
|
-
method: "POST",
|
|
272
|
-
path: `/api/experimental/session/import`,
|
|
273
|
-
body: { info: input["info"], messages: input["messages"], location: input["location"] },
|
|
274
|
-
successStatus: 200,
|
|
275
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
276
|
-
empty: false
|
|
277
|
-
}, requestOptions).then((value) => value.data),
|
|
278
|
-
export: (input, requestOptions) => request({
|
|
279
|
-
method: "GET",
|
|
280
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/export`,
|
|
281
|
-
query: { sanitize: input["sanitize"] },
|
|
282
|
-
successStatus: 200,
|
|
283
|
-
declaredStatuses: [400, 401, 404, 500],
|
|
284
|
-
empty: false
|
|
285
|
-
}, requestOptions).then((value) => value.data),
|
|
286
264
|
active: (requestOptions) => request({
|
|
287
265
|
method: "GET",
|
|
288
266
|
path: `/api/session/active`,
|
|
@@ -381,14 +359,6 @@ function make6(options) {
|
|
|
381
359
|
declaredStatuses: [400, 401, 404, 500],
|
|
382
360
|
empty: true
|
|
383
361
|
}, requestOptions),
|
|
384
|
-
skill: (input, requestOptions) => request({
|
|
385
|
-
method: "POST",
|
|
386
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/skill`,
|
|
387
|
-
body: { id: input["id"], resume: input["resume"] },
|
|
388
|
-
successStatus: 204,
|
|
389
|
-
declaredStatuses: [400, 401, 404],
|
|
390
|
-
empty: true
|
|
391
|
-
}, requestOptions),
|
|
392
362
|
synthetic: (input, requestOptions) => request({
|
|
393
363
|
method: "POST",
|
|
394
364
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/synthetic`,
|
|
@@ -420,13 +390,6 @@ function make6(options) {
|
|
|
420
390
|
declaredStatuses: [400, 401, 404, 409],
|
|
421
391
|
empty: false
|
|
422
392
|
}, requestOptions).then((value) => value.data),
|
|
423
|
-
wait: (input, requestOptions) => request({
|
|
424
|
-
method: "POST",
|
|
425
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/wait`,
|
|
426
|
-
successStatus: 204,
|
|
427
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
428
|
-
empty: true
|
|
429
|
-
}, requestOptions),
|
|
430
393
|
revert: {
|
|
431
394
|
stage: (input, requestOptions) => request({
|
|
432
395
|
method: "POST",
|
|
@@ -490,32 +453,6 @@ function make6(options) {
|
|
|
490
453
|
empty: true
|
|
491
454
|
}, requestOptions)
|
|
492
455
|
},
|
|
493
|
-
instructions: {
|
|
494
|
-
entry: {
|
|
495
|
-
list: (input, requestOptions) => request({
|
|
496
|
-
method: "GET",
|
|
497
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries`,
|
|
498
|
-
successStatus: 200,
|
|
499
|
-
declaredStatuses: [400, 401, 404],
|
|
500
|
-
empty: false
|
|
501
|
-
}, requestOptions).then((value) => value.data),
|
|
502
|
-
put: (input, requestOptions) => request({
|
|
503
|
-
method: "PUT",
|
|
504
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
505
|
-
body: { value: input["value"] },
|
|
506
|
-
successStatus: 204,
|
|
507
|
-
declaredStatuses: [400, 401, 404, 413],
|
|
508
|
-
empty: true
|
|
509
|
-
}, requestOptions),
|
|
510
|
-
remove: (input, requestOptions) => request({
|
|
511
|
-
method: "DELETE",
|
|
512
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
513
|
-
successStatus: 204,
|
|
514
|
-
declaredStatuses: [400, 401, 404],
|
|
515
|
-
empty: true
|
|
516
|
-
}, requestOptions)
|
|
517
|
-
}
|
|
518
|
-
},
|
|
519
456
|
generate: (input, requestOptions) => request({
|
|
520
457
|
method: "POST",
|
|
521
458
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/generate`,
|
|
@@ -524,14 +461,6 @@ function make6(options) {
|
|
|
524
461
|
declaredStatuses: [400, 401, 404, 503],
|
|
525
462
|
empty: false
|
|
526
463
|
}, requestOptions).then((value) => value.data),
|
|
527
|
-
log: (input, requestOptions) => sse({
|
|
528
|
-
method: "GET",
|
|
529
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/log`,
|
|
530
|
-
query: { after: input["after"], follow: input["follow"] },
|
|
531
|
-
successStatus: 200,
|
|
532
|
-
declaredStatuses: [400, 401, 404],
|
|
533
|
-
empty: false
|
|
534
|
-
}, requestOptions),
|
|
535
464
|
interrupt: (input, requestOptions) => request({
|
|
536
465
|
method: "POST",
|
|
537
466
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/interrupt`,
|
|
@@ -574,44 +503,442 @@ function make6(options) {
|
|
|
574
503
|
}, requestOptions).then((value) => value.data),
|
|
575
504
|
get: (input, requestOptions) => request({
|
|
576
505
|
method: "GET",
|
|
577
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
506
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
507
|
+
successStatus: 200,
|
|
508
|
+
declaredStatuses: [400, 401, 404],
|
|
509
|
+
empty: false
|
|
510
|
+
}, requestOptions).then((value) => value.data),
|
|
511
|
+
reply: (input, requestOptions) => request({
|
|
512
|
+
method: "POST",
|
|
513
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/reply`,
|
|
514
|
+
body: { answer: input["answer"] },
|
|
515
|
+
successStatus: 204,
|
|
516
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
517
|
+
empty: true
|
|
518
|
+
}, requestOptions),
|
|
519
|
+
cancel: (input, requestOptions) => request({
|
|
520
|
+
method: "DELETE",
|
|
521
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
522
|
+
query: { message: input["message"] },
|
|
523
|
+
successStatus: 204,
|
|
524
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
525
|
+
empty: true
|
|
526
|
+
}, requestOptions)
|
|
527
|
+
},
|
|
528
|
+
environment: (input, requestOptions) => request({
|
|
529
|
+
method: "PUT",
|
|
530
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/environment`,
|
|
531
|
+
body: { variables: input["variables"] },
|
|
532
|
+
successStatus: 204,
|
|
533
|
+
declaredStatuses: [400, 401, 404],
|
|
534
|
+
empty: true
|
|
535
|
+
}, requestOptions),
|
|
536
|
+
view: (input, requestOptions) => request({
|
|
537
|
+
method: "POST",
|
|
538
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/view`,
|
|
539
|
+
body: { idle: input["idle"] },
|
|
540
|
+
successStatus: 204,
|
|
541
|
+
declaredStatuses: [400, 401, 404],
|
|
542
|
+
empty: true
|
|
543
|
+
}, requestOptions)
|
|
544
|
+
},
|
|
545
|
+
experimental: {
|
|
546
|
+
session: {
|
|
547
|
+
stats: (input, requestOptions) => request({
|
|
548
|
+
method: "GET",
|
|
549
|
+
path: `/api/experimental/session/stats`,
|
|
550
|
+
query: {
|
|
551
|
+
from: input?.["from"],
|
|
552
|
+
to: input?.["to"],
|
|
553
|
+
project: input?.["project"],
|
|
554
|
+
timezone: input?.["timezone"],
|
|
555
|
+
tools: input?.["tools"]
|
|
556
|
+
},
|
|
557
|
+
successStatus: 200,
|
|
558
|
+
declaredStatuses: [400, 401],
|
|
559
|
+
empty: false
|
|
560
|
+
}, requestOptions).then((value) => value.data),
|
|
561
|
+
import: (input, requestOptions) => request({
|
|
562
|
+
method: "POST",
|
|
563
|
+
path: `/api/experimental/session/import`,
|
|
564
|
+
body: { info: input["info"], messages: input["messages"], location: input["location"] },
|
|
565
|
+
successStatus: 200,
|
|
566
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
567
|
+
empty: false
|
|
568
|
+
}, requestOptions).then((value) => value.data),
|
|
569
|
+
export: (input, requestOptions) => request({
|
|
570
|
+
method: "GET",
|
|
571
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/export`,
|
|
572
|
+
query: { sanitize: input["sanitize"] },
|
|
573
|
+
successStatus: 200,
|
|
574
|
+
declaredStatuses: [400, 401, 404, 500],
|
|
575
|
+
empty: false
|
|
576
|
+
}, requestOptions).then((value) => value.data),
|
|
577
|
+
skill: (input, requestOptions) => request({
|
|
578
|
+
method: "POST",
|
|
579
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/skill`,
|
|
580
|
+
body: { id: input["id"], resume: input["resume"] },
|
|
581
|
+
successStatus: 204,
|
|
582
|
+
declaredStatuses: [400, 401, 404],
|
|
583
|
+
empty: true
|
|
584
|
+
}, requestOptions),
|
|
585
|
+
wait: (input, requestOptions) => request({
|
|
586
|
+
method: "POST",
|
|
587
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/wait`,
|
|
588
|
+
successStatus: 204,
|
|
589
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
590
|
+
empty: true
|
|
591
|
+
}, requestOptions),
|
|
592
|
+
instructions: {
|
|
593
|
+
entry: {
|
|
594
|
+
list: (input, requestOptions) => request({
|
|
595
|
+
method: "GET",
|
|
596
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries`,
|
|
597
|
+
successStatus: 200,
|
|
598
|
+
declaredStatuses: [400, 401, 404],
|
|
599
|
+
empty: false
|
|
600
|
+
}, requestOptions).then((value) => value.data),
|
|
601
|
+
put: (input, requestOptions) => request({
|
|
602
|
+
method: "PUT",
|
|
603
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
604
|
+
body: { value: input["value"] },
|
|
605
|
+
successStatus: 204,
|
|
606
|
+
declaredStatuses: [400, 401, 404, 413],
|
|
607
|
+
empty: true
|
|
608
|
+
}, requestOptions),
|
|
609
|
+
remove: (input, requestOptions) => request({
|
|
610
|
+
method: "DELETE",
|
|
611
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
612
|
+
successStatus: 204,
|
|
613
|
+
declaredStatuses: [400, 401, 404],
|
|
614
|
+
empty: true
|
|
615
|
+
}, requestOptions)
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
log: (input, requestOptions) => sse({
|
|
619
|
+
method: "GET",
|
|
620
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/log`,
|
|
621
|
+
query: { after: input["after"], follow: input["follow"] },
|
|
622
|
+
successStatus: 200,
|
|
623
|
+
declaredStatuses: [400, 401, 404],
|
|
624
|
+
empty: false
|
|
625
|
+
}, requestOptions)
|
|
626
|
+
},
|
|
627
|
+
generate: {
|
|
628
|
+
text: (input, requestOptions) => request({
|
|
629
|
+
method: "POST",
|
|
630
|
+
path: `/api/experimental/generate/text`,
|
|
631
|
+
body: { prompt: input["prompt"], model: input["model"] },
|
|
632
|
+
successStatus: 200,
|
|
633
|
+
declaredStatuses: [400, 401, 404, 422, 502, 503],
|
|
634
|
+
empty: false
|
|
635
|
+
}, requestOptions).then((value) => value.data),
|
|
636
|
+
image: (input, requestOptions) => request({
|
|
637
|
+
method: "POST",
|
|
638
|
+
path: `/api/experimental/generate/image`,
|
|
639
|
+
body: {
|
|
640
|
+
model: input["model"],
|
|
641
|
+
prompt: input["prompt"],
|
|
642
|
+
images: input["images"],
|
|
643
|
+
n: input["n"],
|
|
644
|
+
aspect: input["aspect"],
|
|
645
|
+
resolution: input["resolution"]
|
|
646
|
+
},
|
|
647
|
+
successStatus: 200,
|
|
648
|
+
declaredStatuses: [400, 401, 404, 422, 502, 503],
|
|
649
|
+
empty: false
|
|
650
|
+
}, requestOptions).then((value) => value.data),
|
|
651
|
+
decisions: (input, requestOptions) => request({
|
|
652
|
+
method: "POST",
|
|
653
|
+
path: `/api/experimental/generate/decisions`,
|
|
654
|
+
body: { model: input["model"], input: input["input"], questions: input["questions"] },
|
|
655
|
+
successStatus: 200,
|
|
656
|
+
declaredStatuses: [400, 401, 404, 422, 502, 503],
|
|
657
|
+
empty: false
|
|
658
|
+
}, requestOptions).then((value) => value.data)
|
|
659
|
+
},
|
|
660
|
+
voice: {
|
|
661
|
+
models: (requestOptions) => request({
|
|
662
|
+
method: "GET",
|
|
663
|
+
path: `/api/experimental/voice/models`,
|
|
664
|
+
successStatus: 200,
|
|
665
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
666
|
+
empty: false
|
|
667
|
+
}, requestOptions).then((value) => value.data),
|
|
668
|
+
session: (input, requestOptions) => request({
|
|
669
|
+
method: "POST",
|
|
670
|
+
path: `/api/experimental/voice/session`,
|
|
671
|
+
body: { model: input["model"], session: input["session"], transport: input["transport"] },
|
|
672
|
+
successStatus: 200,
|
|
673
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
674
|
+
empty: false
|
|
675
|
+
}, requestOptions).then((value) => value.data)
|
|
676
|
+
},
|
|
677
|
+
integration: {
|
|
678
|
+
wellknown: {
|
|
679
|
+
add: (input, requestOptions) => request({
|
|
680
|
+
method: "POST",
|
|
681
|
+
path: `/api/experimental/integration/wellknown`,
|
|
682
|
+
query: { location: input["location"] },
|
|
683
|
+
body: { url: input["url"] },
|
|
684
|
+
successStatus: 204,
|
|
685
|
+
declaredStatuses: [400, 401, 404],
|
|
686
|
+
empty: true
|
|
687
|
+
}, requestOptions)
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
mcp: {
|
|
691
|
+
add: (input, requestOptions) => request({
|
|
692
|
+
method: "PUT",
|
|
693
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}`,
|
|
694
|
+
query: { location: input["location"] },
|
|
695
|
+
body: { config: input["config"] },
|
|
696
|
+
successStatus: 204,
|
|
697
|
+
declaredStatuses: [400, 401, 404],
|
|
698
|
+
empty: true
|
|
699
|
+
}, requestOptions),
|
|
700
|
+
remove: (input, requestOptions) => request({
|
|
701
|
+
method: "DELETE",
|
|
702
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}`,
|
|
703
|
+
query: { location: input["location"] },
|
|
704
|
+
successStatus: 204,
|
|
705
|
+
declaredStatuses: [400, 401, 404],
|
|
706
|
+
empty: true
|
|
707
|
+
}, requestOptions),
|
|
708
|
+
connect: (input, requestOptions) => request({
|
|
709
|
+
method: "POST",
|
|
710
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}/connect`,
|
|
711
|
+
query: { location: input["location"] },
|
|
712
|
+
successStatus: 204,
|
|
713
|
+
declaredStatuses: [400, 401, 404],
|
|
714
|
+
empty: true
|
|
715
|
+
}, requestOptions),
|
|
716
|
+
disconnect: (input, requestOptions) => request({
|
|
717
|
+
method: "POST",
|
|
718
|
+
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}/disconnect`,
|
|
719
|
+
query: { location: input["location"] },
|
|
720
|
+
successStatus: 204,
|
|
721
|
+
declaredStatuses: [400, 401, 404],
|
|
722
|
+
empty: true
|
|
723
|
+
}, requestOptions),
|
|
724
|
+
client: {
|
|
725
|
+
token: (input, requestOptions) => request({
|
|
726
|
+
method: "POST",
|
|
727
|
+
path: `/api/experimental/client-mcp/token`,
|
|
728
|
+
query: { location: input["location"], name: input["name"] },
|
|
729
|
+
headers: { "x-opencode-ticket": input["x-opencode-ticket"] },
|
|
730
|
+
successStatus: 200,
|
|
731
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
732
|
+
empty: false
|
|
733
|
+
}, requestOptions)
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
file: {
|
|
737
|
+
write: (input, requestOptions) => request({
|
|
738
|
+
method: "POST",
|
|
739
|
+
path: `/api/experimental/fs/write`,
|
|
740
|
+
query: { location: input["location"], path: input["path"] },
|
|
741
|
+
body: input["payload"],
|
|
742
|
+
successStatus: 200,
|
|
743
|
+
declaredStatuses: [400, 401, 404],
|
|
744
|
+
empty: false,
|
|
745
|
+
binaryBody: true
|
|
746
|
+
}, requestOptions),
|
|
747
|
+
watch: (input, requestOptions) => request({
|
|
748
|
+
method: "POST",
|
|
749
|
+
path: `/api/experimental/fs/watch`,
|
|
750
|
+
query: { location: input["location"] },
|
|
751
|
+
body: { path: input["path"] },
|
|
752
|
+
successStatus: 204,
|
|
753
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
754
|
+
empty: true
|
|
755
|
+
}, requestOptions),
|
|
756
|
+
unwatch: (input, requestOptions) => request({
|
|
757
|
+
method: "DELETE",
|
|
758
|
+
path: `/api/experimental/fs/watch`,
|
|
759
|
+
query: { location: input["location"] },
|
|
760
|
+
body: { path: input["path"] },
|
|
761
|
+
successStatus: 204,
|
|
762
|
+
declaredStatuses: [400, 401, 404],
|
|
763
|
+
empty: true
|
|
764
|
+
}, requestOptions)
|
|
765
|
+
},
|
|
766
|
+
persistentPty: {
|
|
767
|
+
read: (input, requestOptions) => request({
|
|
768
|
+
method: "GET",
|
|
769
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/terminal/read`,
|
|
770
|
+
query: { lines: input["lines"] },
|
|
771
|
+
successStatus: 200,
|
|
772
|
+
declaredStatuses: [400, 401, 503],
|
|
773
|
+
empty: false
|
|
774
|
+
}, requestOptions).then((value) => value.data),
|
|
775
|
+
list: (input, requestOptions) => request({
|
|
776
|
+
method: "GET",
|
|
777
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/terminal`,
|
|
778
|
+
successStatus: 200,
|
|
779
|
+
declaredStatuses: [400, 401, 503],
|
|
780
|
+
empty: false
|
|
781
|
+
}, requestOptions).then((value) => value.data),
|
|
782
|
+
create: (input, requestOptions) => request({
|
|
783
|
+
method: "POST",
|
|
784
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/terminal`,
|
|
785
|
+
body: {
|
|
786
|
+
command: input["command"],
|
|
787
|
+
args: input["args"],
|
|
788
|
+
cwd: input["cwd"],
|
|
789
|
+
title: input["title"],
|
|
790
|
+
env: input["env"],
|
|
791
|
+
size: input["size"]
|
|
792
|
+
},
|
|
793
|
+
successStatus: 200,
|
|
794
|
+
declaredStatuses: [400, 401, 503],
|
|
795
|
+
empty: false
|
|
796
|
+
}, requestOptions).then((value) => value.data),
|
|
797
|
+
shutdown: (requestOptions) => request({
|
|
798
|
+
method: "POST",
|
|
799
|
+
path: `/api/experimental/persistent-pty/shutdown`,
|
|
800
|
+
successStatus: 204,
|
|
801
|
+
declaredStatuses: [400, 401, 503],
|
|
802
|
+
empty: true
|
|
803
|
+
}, requestOptions),
|
|
804
|
+
handoff: (requestOptions) => request({
|
|
805
|
+
method: "POST",
|
|
806
|
+
path: `/api/experimental/persistent-pty/handoff`,
|
|
807
|
+
successStatus: 200,
|
|
808
|
+
declaredStatuses: [400, 401, 503],
|
|
809
|
+
empty: false
|
|
810
|
+
}, requestOptions),
|
|
811
|
+
get: (input, requestOptions) => request({
|
|
812
|
+
method: "GET",
|
|
813
|
+
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
814
|
+
successStatus: 200,
|
|
815
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
816
|
+
empty: false
|
|
817
|
+
}, requestOptions).then((value) => value.data),
|
|
818
|
+
update: (input, requestOptions) => request({
|
|
819
|
+
method: "PUT",
|
|
820
|
+
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
821
|
+
body: { attachmentID: input["attachmentID"], size: input["size"] },
|
|
822
|
+
successStatus: 200,
|
|
823
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
824
|
+
empty: false
|
|
825
|
+
}, requestOptions).then((value) => value.data),
|
|
826
|
+
snapshot: (input, requestOptions) => request({
|
|
827
|
+
method: "GET",
|
|
828
|
+
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}/snapshot`,
|
|
829
|
+
successStatus: 200,
|
|
830
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
831
|
+
empty: false
|
|
832
|
+
}, requestOptions).then((value) => value.data),
|
|
833
|
+
remove: (input, requestOptions) => request({
|
|
834
|
+
method: "DELETE",
|
|
835
|
+
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
836
|
+
successStatus: 204,
|
|
837
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
838
|
+
empty: true
|
|
839
|
+
}, requestOptions),
|
|
840
|
+
connectToken: (input, requestOptions) => request({
|
|
841
|
+
method: "POST",
|
|
842
|
+
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}/connect-token`,
|
|
843
|
+
headers: { "x-opencode-ticket": input["x-opencode-ticket"] },
|
|
844
|
+
successStatus: 200,
|
|
845
|
+
declaredStatuses: [400, 401, 403, 404, 503],
|
|
846
|
+
empty: false
|
|
847
|
+
}, requestOptions).then((value) => value.data)
|
|
848
|
+
},
|
|
849
|
+
media: {
|
|
850
|
+
get: (input, requestOptions) => request({
|
|
851
|
+
method: "GET",
|
|
852
|
+
path: `/api/experimental/media/${encodeURIComponent(input.hash)}`,
|
|
853
|
+
successStatus: 200,
|
|
854
|
+
declaredStatuses: [400, 401, 404],
|
|
855
|
+
empty: false,
|
|
856
|
+
binary: true
|
|
857
|
+
}, requestOptions)
|
|
858
|
+
},
|
|
859
|
+
schedule: {
|
|
860
|
+
create: (input, requestOptions) => request({
|
|
861
|
+
method: "POST",
|
|
862
|
+
path: `/api/experimental/schedule`,
|
|
863
|
+
body: {
|
|
864
|
+
sessionID: input["sessionID"],
|
|
865
|
+
name: input["name"],
|
|
866
|
+
when: input["when"],
|
|
867
|
+
ends: input["ends"],
|
|
868
|
+
prompt: input["prompt"]
|
|
869
|
+
},
|
|
870
|
+
successStatus: 200,
|
|
871
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
872
|
+
empty: false
|
|
873
|
+
}, requestOptions).then((value) => value.data),
|
|
874
|
+
list: (input, requestOptions) => request({
|
|
875
|
+
method: "GET",
|
|
876
|
+
path: `/api/experimental/schedule`,
|
|
877
|
+
query: { sessionID: input["sessionID"] },
|
|
878
|
+
successStatus: 200,
|
|
879
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
880
|
+
empty: false
|
|
881
|
+
}, requestOptions).then((value) => value.data),
|
|
882
|
+
get: (input, requestOptions) => request({
|
|
883
|
+
method: "GET",
|
|
884
|
+
path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}`,
|
|
885
|
+
successStatus: 200,
|
|
886
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
887
|
+
empty: false
|
|
888
|
+
}, requestOptions).then((value) => value.data),
|
|
889
|
+
pause: (input, requestOptions) => request({
|
|
890
|
+
method: "POST",
|
|
891
|
+
path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}/pause`,
|
|
892
|
+
successStatus: 200,
|
|
893
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
894
|
+
empty: false
|
|
895
|
+
}, requestOptions).then((value) => value.data),
|
|
896
|
+
resume: (input, requestOptions) => request({
|
|
897
|
+
method: "POST",
|
|
898
|
+
path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}/resume`,
|
|
899
|
+
successStatus: 200,
|
|
900
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
901
|
+
empty: false
|
|
902
|
+
}, requestOptions).then((value) => value.data),
|
|
903
|
+
delete: (input, requestOptions) => request({
|
|
904
|
+
method: "DELETE",
|
|
905
|
+
path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}`,
|
|
906
|
+
successStatus: 204,
|
|
907
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
908
|
+
empty: true
|
|
909
|
+
}, requestOptions)
|
|
910
|
+
},
|
|
911
|
+
migration: {
|
|
912
|
+
v1: {
|
|
913
|
+
status: (requestOptions) => request({
|
|
914
|
+
method: "GET",
|
|
915
|
+
path: `/api/experimental/migration/v1`,
|
|
916
|
+
successStatus: 200,
|
|
917
|
+
declaredStatuses: [400, 401],
|
|
918
|
+
empty: false
|
|
919
|
+
}, requestOptions)
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
usage: {
|
|
923
|
+
limits: (input, requestOptions) => request({
|
|
924
|
+
method: "GET",
|
|
925
|
+
path: `/api/experimental/usage/limits`,
|
|
926
|
+
query: { location: input?.["location"] },
|
|
578
927
|
successStatus: 200,
|
|
579
|
-
declaredStatuses: [400, 401, 404],
|
|
928
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
580
929
|
empty: false
|
|
581
|
-
}, requestOptions)
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
empty: true
|
|
589
|
-
}, requestOptions),
|
|
590
|
-
cancel: (input, requestOptions) => request({
|
|
591
|
-
method: "DELETE",
|
|
592
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
593
|
-
query: { message: input["message"] },
|
|
930
|
+
}, requestOptions)
|
|
931
|
+
},
|
|
932
|
+
config: {
|
|
933
|
+
update: (input, requestOptions) => request({
|
|
934
|
+
method: "PATCH",
|
|
935
|
+
path: `/api/experimental/config`,
|
|
936
|
+
body: { shell: input["shell"] },
|
|
594
937
|
successStatus: 204,
|
|
595
|
-
declaredStatuses: [400, 401, 404
|
|
938
|
+
declaredStatuses: [400, 401, 404],
|
|
596
939
|
empty: true
|
|
597
940
|
}, requestOptions)
|
|
598
|
-
}
|
|
599
|
-
environment: (input, requestOptions) => request({
|
|
600
|
-
method: "PUT",
|
|
601
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/environment`,
|
|
602
|
-
body: { variables: input["variables"] },
|
|
603
|
-
successStatus: 204,
|
|
604
|
-
declaredStatuses: [400, 401, 404],
|
|
605
|
-
empty: true
|
|
606
|
-
}, requestOptions),
|
|
607
|
-
view: (input, requestOptions) => request({
|
|
608
|
-
method: "POST",
|
|
609
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/view`,
|
|
610
|
-
body: { idle: input["idle"] },
|
|
611
|
-
successStatus: 204,
|
|
612
|
-
declaredStatuses: [400, 401, 404],
|
|
613
|
-
empty: true
|
|
614
|
-
}, requestOptions)
|
|
941
|
+
}
|
|
615
942
|
},
|
|
616
943
|
message: {
|
|
617
944
|
list: (input, requestOptions) => request({
|
|
@@ -627,7 +954,7 @@ function make6(options) {
|
|
|
627
954
|
list: (input, requestOptions) => request({
|
|
628
955
|
method: "GET",
|
|
629
956
|
path: `/api/model`,
|
|
630
|
-
query: { location: input?.["location"] },
|
|
957
|
+
query: { location: input?.["location"], types: input?.["types"] },
|
|
631
958
|
successStatus: 200,
|
|
632
959
|
declaredStatuses: [400, 401, 404, 503],
|
|
633
960
|
empty: false
|
|
@@ -641,41 +968,6 @@ function make6(options) {
|
|
|
641
968
|
empty: false
|
|
642
969
|
}, requestOptions)
|
|
643
970
|
},
|
|
644
|
-
generate: {
|
|
645
|
-
text: (input, requestOptions) => request({
|
|
646
|
-
method: "POST",
|
|
647
|
-
path: `/api/experimental/generate`,
|
|
648
|
-
body: { prompt: input["prompt"], model: input["model"] },
|
|
649
|
-
successStatus: 200,
|
|
650
|
-
declaredStatuses: [400, 401, 404, 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
|
-
instructions: (input, requestOptions) => request({
|
|
671
|
-
method: "POST",
|
|
672
|
-
path: `/api/experimental/voice/session/${encodeURIComponent(input.sessionID)}/instructions`,
|
|
673
|
-
body: { instructions: input["instructions"] },
|
|
674
|
-
successStatus: 204,
|
|
675
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
676
|
-
empty: true
|
|
677
|
-
}, requestOptions)
|
|
678
|
-
},
|
|
679
971
|
provider: {
|
|
680
972
|
list: (input, requestOptions) => request({
|
|
681
973
|
method: "GET",
|
|
@@ -711,17 +1003,6 @@ function make6(options) {
|
|
|
711
1003
|
declaredStatuses: [400, 401, 404],
|
|
712
1004
|
empty: false
|
|
713
1005
|
}, requestOptions),
|
|
714
|
-
wellknown: {
|
|
715
|
-
add: (input, requestOptions) => request({
|
|
716
|
-
method: "POST",
|
|
717
|
-
path: `/api/experimental/integration/wellknown`,
|
|
718
|
-
query: { location: input["location"] },
|
|
719
|
-
body: { url: input["url"] },
|
|
720
|
-
successStatus: 204,
|
|
721
|
-
declaredStatuses: [400, 401, 404],
|
|
722
|
-
empty: true
|
|
723
|
-
}, requestOptions)
|
|
724
|
-
},
|
|
725
1006
|
connect: {
|
|
726
1007
|
key: (input, requestOptions) => request({
|
|
727
1008
|
method: "POST",
|
|
@@ -815,39 +1096,6 @@ function make6(options) {
|
|
|
815
1096
|
declaredStatuses: [400, 401, 404],
|
|
816
1097
|
empty: false
|
|
817
1098
|
}, requestOptions),
|
|
818
|
-
add: (input, requestOptions) => request({
|
|
819
|
-
method: "PUT",
|
|
820
|
-
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}`,
|
|
821
|
-
query: { location: input["location"] },
|
|
822
|
-
body: { config: input["config"] },
|
|
823
|
-
successStatus: 204,
|
|
824
|
-
declaredStatuses: [400, 401, 404],
|
|
825
|
-
empty: true
|
|
826
|
-
}, requestOptions),
|
|
827
|
-
remove: (input, requestOptions) => request({
|
|
828
|
-
method: "DELETE",
|
|
829
|
-
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}`,
|
|
830
|
-
query: { location: input["location"] },
|
|
831
|
-
successStatus: 204,
|
|
832
|
-
declaredStatuses: [400, 401, 404],
|
|
833
|
-
empty: true
|
|
834
|
-
}, requestOptions),
|
|
835
|
-
connect: (input, requestOptions) => request({
|
|
836
|
-
method: "POST",
|
|
837
|
-
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}/connect`,
|
|
838
|
-
query: { location: input["location"] },
|
|
839
|
-
successStatus: 204,
|
|
840
|
-
declaredStatuses: [400, 401, 404],
|
|
841
|
-
empty: true
|
|
842
|
-
}, requestOptions),
|
|
843
|
-
disconnect: (input, requestOptions) => request({
|
|
844
|
-
method: "POST",
|
|
845
|
-
path: `/api/experimental/mcp/${encodeURIComponent(input.server)}/disconnect`,
|
|
846
|
-
query: { location: input["location"] },
|
|
847
|
-
successStatus: 204,
|
|
848
|
-
declaredStatuses: [400, 401, 404],
|
|
849
|
-
empty: true
|
|
850
|
-
}, requestOptions),
|
|
851
1099
|
resource: {
|
|
852
1100
|
catalog: (input, requestOptions) => request({
|
|
853
1101
|
method: "GET",
|
|
@@ -857,17 +1105,6 @@ function make6(options) {
|
|
|
857
1105
|
declaredStatuses: [400, 401, 404],
|
|
858
1106
|
empty: false
|
|
859
1107
|
}, requestOptions)
|
|
860
|
-
},
|
|
861
|
-
client: {
|
|
862
|
-
token: (input, requestOptions) => request({
|
|
863
|
-
method: "POST",
|
|
864
|
-
path: `/api/experimental/client-mcp/token`,
|
|
865
|
-
query: { location: input["location"], name: input["name"] },
|
|
866
|
-
headers: { "x-opencode-ticket": input["x-opencode-ticket"] },
|
|
867
|
-
successStatus: 200,
|
|
868
|
-
declaredStatuses: [400, 401, 403, 404],
|
|
869
|
-
empty: false
|
|
870
|
-
}, requestOptions)
|
|
871
1108
|
}
|
|
872
1109
|
},
|
|
873
1110
|
credential: {
|
|
@@ -915,7 +1152,7 @@ function make6(options) {
|
|
|
915
1152
|
path: `/api/project`,
|
|
916
1153
|
query: { archived: input?.["archived"] },
|
|
917
1154
|
successStatus: 200,
|
|
918
|
-
declaredStatuses: [400, 401
|
|
1155
|
+
declaredStatuses: [400, 401],
|
|
919
1156
|
empty: false
|
|
920
1157
|
}, requestOptions),
|
|
921
1158
|
update: (input, requestOptions) => request({
|
|
@@ -974,7 +1211,7 @@ function make6(options) {
|
|
|
974
1211
|
method: "DELETE",
|
|
975
1212
|
path: `/api/permission/saved/${encodeURIComponent(input.id)}`,
|
|
976
1213
|
successStatus: 204,
|
|
977
|
-
declaredStatuses: [400, 401
|
|
1214
|
+
declaredStatuses: [400, 401],
|
|
978
1215
|
empty: true
|
|
979
1216
|
}, requestOptions)
|
|
980
1217
|
},
|
|
@@ -1042,16 +1279,6 @@ function make6(options) {
|
|
|
1042
1279
|
successStatus: 200,
|
|
1043
1280
|
declaredStatuses: [400, 401, 404],
|
|
1044
1281
|
empty: false
|
|
1045
|
-
}, requestOptions),
|
|
1046
|
-
write: (input, requestOptions) => request({
|
|
1047
|
-
method: "POST",
|
|
1048
|
-
path: `/api/experimental/fs/write`,
|
|
1049
|
-
query: { location: input["location"], path: input["path"] },
|
|
1050
|
-
body: input["payload"],
|
|
1051
|
-
successStatus: 200,
|
|
1052
|
-
declaredStatuses: [400, 401, 404],
|
|
1053
|
-
empty: false,
|
|
1054
|
-
binaryBody: true
|
|
1055
1282
|
}, requestOptions)
|
|
1056
1283
|
},
|
|
1057
1284
|
command: {
|
|
@@ -1086,7 +1313,14 @@ function make6(options) {
|
|
|
1086
1313
|
}, requestOptions)
|
|
1087
1314
|
},
|
|
1088
1315
|
event: {
|
|
1089
|
-
subscribe: (requestOptions) => sse({
|
|
1316
|
+
subscribe: (input, requestOptions) => sse({
|
|
1317
|
+
method: "GET",
|
|
1318
|
+
path: `/api/event`,
|
|
1319
|
+
query: { types: input?.["types"] },
|
|
1320
|
+
successStatus: 200,
|
|
1321
|
+
declaredStatuses: [400, 401],
|
|
1322
|
+
empty: false
|
|
1323
|
+
}, requestOptions)
|
|
1090
1324
|
},
|
|
1091
1325
|
pty: {
|
|
1092
1326
|
list: (input, requestOptions) => request({
|
|
@@ -1149,91 +1383,6 @@ function make6(options) {
|
|
|
1149
1383
|
}, requestOptions)
|
|
1150
1384
|
}
|
|
1151
1385
|
},
|
|
1152
|
-
experimental: {
|
|
1153
|
-
persistentPty: {
|
|
1154
|
-
read: (input, requestOptions) => request({
|
|
1155
|
-
method: "GET",
|
|
1156
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/terminal/read`,
|
|
1157
|
-
query: { lines: input["lines"] },
|
|
1158
|
-
successStatus: 200,
|
|
1159
|
-
declaredStatuses: [400, 401, 503],
|
|
1160
|
-
empty: false
|
|
1161
|
-
}, requestOptions).then((value) => value.data),
|
|
1162
|
-
list: (input, requestOptions) => request({
|
|
1163
|
-
method: "GET",
|
|
1164
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/terminal`,
|
|
1165
|
-
successStatus: 200,
|
|
1166
|
-
declaredStatuses: [400, 401, 503],
|
|
1167
|
-
empty: false
|
|
1168
|
-
}, requestOptions).then((value) => value.data),
|
|
1169
|
-
create: (input, requestOptions) => request({
|
|
1170
|
-
method: "POST",
|
|
1171
|
-
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/terminal`,
|
|
1172
|
-
body: {
|
|
1173
|
-
command: input["command"],
|
|
1174
|
-
args: input["args"],
|
|
1175
|
-
cwd: input["cwd"],
|
|
1176
|
-
title: input["title"],
|
|
1177
|
-
env: input["env"],
|
|
1178
|
-
size: input["size"]
|
|
1179
|
-
},
|
|
1180
|
-
successStatus: 200,
|
|
1181
|
-
declaredStatuses: [400, 401, 503],
|
|
1182
|
-
empty: false
|
|
1183
|
-
}, requestOptions).then((value) => value.data),
|
|
1184
|
-
shutdown: (requestOptions) => request({
|
|
1185
|
-
method: "POST",
|
|
1186
|
-
path: `/api/experimental/persistent-pty/shutdown`,
|
|
1187
|
-
successStatus: 204,
|
|
1188
|
-
declaredStatuses: [400, 401, 503],
|
|
1189
|
-
empty: true
|
|
1190
|
-
}, requestOptions),
|
|
1191
|
-
handoff: (requestOptions) => request({
|
|
1192
|
-
method: "POST",
|
|
1193
|
-
path: `/api/experimental/persistent-pty/handoff`,
|
|
1194
|
-
successStatus: 200,
|
|
1195
|
-
declaredStatuses: [400, 401, 503],
|
|
1196
|
-
empty: false
|
|
1197
|
-
}, requestOptions),
|
|
1198
|
-
get: (input, requestOptions) => request({
|
|
1199
|
-
method: "GET",
|
|
1200
|
-
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
1201
|
-
successStatus: 200,
|
|
1202
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
1203
|
-
empty: false
|
|
1204
|
-
}, requestOptions).then((value) => value.data),
|
|
1205
|
-
update: (input, requestOptions) => request({
|
|
1206
|
-
method: "PUT",
|
|
1207
|
-
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
1208
|
-
body: { attachmentID: input["attachmentID"], size: input["size"] },
|
|
1209
|
-
successStatus: 200,
|
|
1210
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
1211
|
-
empty: false
|
|
1212
|
-
}, requestOptions).then((value) => value.data),
|
|
1213
|
-
snapshot: (input, requestOptions) => request({
|
|
1214
|
-
method: "GET",
|
|
1215
|
-
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}/snapshot`,
|
|
1216
|
-
successStatus: 200,
|
|
1217
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
1218
|
-
empty: false
|
|
1219
|
-
}, requestOptions).then((value) => value.data),
|
|
1220
|
-
remove: (input, requestOptions) => request({
|
|
1221
|
-
method: "DELETE",
|
|
1222
|
-
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
1223
|
-
successStatus: 204,
|
|
1224
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
1225
|
-
empty: true
|
|
1226
|
-
}, requestOptions),
|
|
1227
|
-
connectToken: (input, requestOptions) => request({
|
|
1228
|
-
method: "POST",
|
|
1229
|
-
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}/connect-token`,
|
|
1230
|
-
headers: { "x-opencode-ticket": input["x-opencode-ticket"] },
|
|
1231
|
-
successStatus: 200,
|
|
1232
|
-
declaredStatuses: [400, 401, 403, 404, 503],
|
|
1233
|
-
empty: false
|
|
1234
|
-
}, requestOptions).then((value) => value.data)
|
|
1235
|
-
}
|
|
1236
|
-
},
|
|
1237
1386
|
shell: {
|
|
1238
1387
|
list: (input, requestOptions) => request({
|
|
1239
1388
|
method: "GET",
|
|
@@ -1378,7 +1527,13 @@ function make6(options) {
|
|
|
1378
1527
|
diff: (input, requestOptions) => request({
|
|
1379
1528
|
method: "GET",
|
|
1380
1529
|
path: `/api/vcs/diff`,
|
|
1381
|
-
query: {
|
|
1530
|
+
query: {
|
|
1531
|
+
location: input["location"],
|
|
1532
|
+
mode: input["mode"],
|
|
1533
|
+
base: input["base"],
|
|
1534
|
+
context: input["context"],
|
|
1535
|
+
untracked: input["untracked"]
|
|
1536
|
+
},
|
|
1382
1537
|
successStatus: 200,
|
|
1383
1538
|
declaredStatuses: [400, 401, 404, 503],
|
|
1384
1539
|
empty: false
|
|
@@ -1411,17 +1566,6 @@ function make6(options) {
|
|
|
1411
1566
|
}, requestOptions)
|
|
1412
1567
|
}
|
|
1413
1568
|
},
|
|
1414
|
-
migration: {
|
|
1415
|
-
v1: {
|
|
1416
|
-
status: (requestOptions) => request({
|
|
1417
|
-
method: "GET",
|
|
1418
|
-
path: `/api/experimental/migration/v1`,
|
|
1419
|
-
successStatus: 200,
|
|
1420
|
-
declaredStatuses: [400, 401],
|
|
1421
|
-
empty: false
|
|
1422
|
-
}, requestOptions)
|
|
1423
|
-
}
|
|
1424
|
-
},
|
|
1425
1569
|
websearch: {
|
|
1426
1570
|
providers: (input, requestOptions) => request({
|
|
1427
1571
|
method: "GET",
|
|
@@ -1456,17 +1600,71 @@ function make6(options) {
|
|
|
1456
1600
|
successStatus: 200,
|
|
1457
1601
|
declaredStatuses: [400, 401, 404],
|
|
1458
1602
|
empty: false
|
|
1459
|
-
}, requestOptions),
|
|
1460
|
-
update: (input, requestOptions) => request({
|
|
1461
|
-
method: "PATCH",
|
|
1462
|
-
path: `/api/experimental/config`,
|
|
1463
|
-
body: { shell: input["shell"] },
|
|
1464
|
-
successStatus: 204,
|
|
1465
|
-
declaredStatuses: [400, 401, 404],
|
|
1466
|
-
empty: true
|
|
1467
1603
|
}, requestOptions)
|
|
1468
1604
|
}
|
|
1469
1605
|
};
|
|
1606
|
+
return {
|
|
1607
|
+
...client,
|
|
1608
|
+
session: {
|
|
1609
|
+
...client.session,
|
|
1610
|
+
stats: client.experimental.session.stats,
|
|
1611
|
+
import: client.experimental.session.import,
|
|
1612
|
+
export: client.experimental.session.export,
|
|
1613
|
+
skill: client.experimental.session.skill,
|
|
1614
|
+
wait: client.experimental.session.wait,
|
|
1615
|
+
instructions: {
|
|
1616
|
+
entry: {
|
|
1617
|
+
list: client.experimental.session.instructions.entry.list,
|
|
1618
|
+
put: client.experimental.session.instructions.entry.put,
|
|
1619
|
+
remove: client.experimental.session.instructions.entry.remove
|
|
1620
|
+
}
|
|
1621
|
+
},
|
|
1622
|
+
log: client.experimental.session.log
|
|
1623
|
+
},
|
|
1624
|
+
generate: {
|
|
1625
|
+
text: client.experimental.generate.text,
|
|
1626
|
+
image: client.experimental.generate.image,
|
|
1627
|
+
decisions: client.experimental.generate.decisions
|
|
1628
|
+
},
|
|
1629
|
+
voice: {
|
|
1630
|
+
models: client.experimental.voice.models,
|
|
1631
|
+
session: client.experimental.voice.session
|
|
1632
|
+
},
|
|
1633
|
+
integration: {
|
|
1634
|
+
...client.integration,
|
|
1635
|
+
wellknown: {
|
|
1636
|
+
add: client.experimental.integration.wellknown.add
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
mcp: {
|
|
1640
|
+
...client.mcp,
|
|
1641
|
+
add: client.experimental.mcp.add,
|
|
1642
|
+
remove: client.experimental.mcp.remove,
|
|
1643
|
+
connect: client.experimental.mcp.connect,
|
|
1644
|
+
disconnect: client.experimental.mcp.disconnect,
|
|
1645
|
+
client: {
|
|
1646
|
+
token: client.experimental.mcp.client.token
|
|
1647
|
+
}
|
|
1648
|
+
},
|
|
1649
|
+
file: {
|
|
1650
|
+
...client.file,
|
|
1651
|
+
write: client.experimental.file.write,
|
|
1652
|
+
watch: client.experimental.file.watch,
|
|
1653
|
+
unwatch: client.experimental.file.unwatch
|
|
1654
|
+
},
|
|
1655
|
+
migration: {
|
|
1656
|
+
v1: {
|
|
1657
|
+
status: client.experimental.migration.v1.status
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1660
|
+
usage: {
|
|
1661
|
+
limits: client.experimental.usage.limits
|
|
1662
|
+
},
|
|
1663
|
+
config: {
|
|
1664
|
+
...client.config,
|
|
1665
|
+
update: client.experimental.config.update
|
|
1666
|
+
}
|
|
1667
|
+
};
|
|
1470
1668
|
}
|
|
1471
1669
|
function encodePath(value) {
|
|
1472
1670
|
return value.split("/").map(encodeURIComponent).join("/");
|