@opencode/protocol 2.3.2 → 2.4.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.
@@ -211,6 +211,9 @@ export declare const ExperimentalGroup: import("effect/http-api/HttpApiGroup").H
211
211
  readonly type: import("effect/Schema").tag<"code">;
212
212
  readonly code: import("effect/Schema").String;
213
213
  readonly args: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, never, never>;
214
+ }>, import("effect/Schema").Struct<{
215
+ readonly type: import("effect/Schema").tag<"shell">;
216
+ readonly command: import("effect/Schema").NonEmptyString;
214
217
  }>]>;
215
218
  readonly expires: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
216
219
  readonly sessionID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
@@ -269,6 +272,9 @@ export declare const ExperimentalGroup: import("effect/http-api/HttpApiGroup").H
269
272
  readonly type: import("effect/Schema").tag<"code">;
270
273
  readonly code: import("effect/Schema").String;
271
274
  readonly args: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, never, never>;
275
+ }>, import("effect/Schema").Struct<{
276
+ type: import("effect/Schema").tag<"shell">;
277
+ command: import("effect/Schema").NonEmptyString;
272
278
  }>]>;
273
279
  readonly expires: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
274
280
  readonly status: import("effect/Schema").Literals<readonly ["active", "paused", "done"]>;
@@ -341,6 +347,9 @@ export declare const ExperimentalGroup: import("effect/http-api/HttpApiGroup").H
341
347
  readonly type: import("effect/Schema").tag<"code">;
342
348
  readonly code: import("effect/Schema").String;
343
349
  readonly args: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, never, never>;
350
+ }>, import("effect/Schema").Struct<{
351
+ type: import("effect/Schema").tag<"shell">;
352
+ command: import("effect/Schema").NonEmptyString;
344
353
  }>]>;
345
354
  readonly expires: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
346
355
  readonly status: import("effect/Schema").Literals<readonly ["active", "paused", "done"]>;
@@ -410,6 +419,9 @@ export declare const ExperimentalGroup: import("effect/http-api/HttpApiGroup").H
410
419
  readonly type: import("effect/Schema").tag<"code">;
411
420
  readonly code: import("effect/Schema").String;
412
421
  readonly args: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, never, never>;
422
+ }>, import("effect/Schema").Struct<{
423
+ type: import("effect/Schema").tag<"shell">;
424
+ command: import("effect/Schema").NonEmptyString;
413
425
  }>]>;
414
426
  readonly expires: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
415
427
  readonly status: import("effect/Schema").Literals<readonly ["active", "paused", "done"]>;
@@ -478,6 +490,9 @@ export declare const ExperimentalGroup: import("effect/http-api/HttpApiGroup").H
478
490
  readonly type: import("effect/Schema").tag<"code">;
479
491
  readonly code: import("effect/Schema").String;
480
492
  readonly args: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, never, never>;
493
+ }>, import("effect/Schema").Struct<{
494
+ type: import("effect/Schema").tag<"shell">;
495
+ command: import("effect/Schema").NonEmptyString;
481
496
  }>]>;
482
497
  readonly expires: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
483
498
  readonly status: import("effect/Schema").Literals<readonly ["active", "paused", "done"]>;
@@ -546,6 +561,9 @@ export declare const ExperimentalGroup: import("effect/http-api/HttpApiGroup").H
546
561
  readonly type: import("effect/Schema").tag<"code">;
547
562
  readonly code: import("effect/Schema").String;
548
563
  readonly args: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, never, never>;
564
+ }>, import("effect/Schema").Struct<{
565
+ type: import("effect/Schema").tag<"shell">;
566
+ command: import("effect/Schema").NonEmptyString;
549
567
  }>]>;
550
568
  readonly expires: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
551
569
  readonly status: import("effect/Schema").Literals<readonly ["active", "paused", "done"]>;
@@ -561,12 +579,16 @@ export declare const ExperimentalGroup: import("effect/http-api/HttpApiGroup").H
561
579
  }>;
562
580
  }>;
563
581
  }>>, import("effect/Schema").toCodecJson<typeof import("../errors.js").ForbiddenError | typeof import("../errors.js").AutomationNotFoundError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"blob.get", "GET", "/api/experimental/blob/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
564
- id: import("effect/Schema").brand<import("effect/Schema").String, "Blob.ID">;
565
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Uint8Array>, import("effect/Schema").toCodecJson<typeof import("../errors.js").BlobNotFoundError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"job.list", "GET", "/api/experimental/job", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
582
+ id: import("effect/Schema").brand<import("effect/Schema").String, "Blob.ID"> & {
583
+ create: () => string & import("effect/Brand").Brand<"Blob.ID">;
584
+ };
585
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Uint8Array>, import("effect/Schema").toCodecJson<typeof import("../errors.js").BlobNotFoundError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"job.cancel", "POST", "/api/experimental/job/:id/cancel", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
586
+ id: import("effect/Schema").String;
587
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, never, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"job.list", "GET", "/api/experimental/job", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
566
588
  readonly sessionID: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
567
589
  create: () => string & import("effect/Brand").Brand<"SessionID">;
568
590
  }>;
569
- readonly kind: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["shell", "subagent", "image", "codemode"]>>;
591
+ readonly kind: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["shell", "subagent", "image", "video", "codemode"]>>;
570
592
  readonly status: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>>;
571
593
  readonly descendants: import("effect/Schema").optional<import("effect/Schema").decodeTo<import("effect/Schema").Boolean, import("effect/Schema").Literals<readonly ["true", "false"]>, never, never>>;
572
594
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -615,6 +637,19 @@ export declare const ExperimentalGroup: import("effect/http-api/HttpApiGroup").H
615
637
  readonly kind: import("effect/Schema").tag<"image">;
616
638
  readonly path: import("effect/Schema").String;
617
639
  readonly model: import("effect/Schema").String;
640
+ }>, import("effect/Schema").Struct<{
641
+ readonly id: import("effect/Schema").String;
642
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
643
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
644
+ };
645
+ readonly status: import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>;
646
+ readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
647
+ readonly time: import("effect/Schema").Struct<{
648
+ readonly started: import("effect/Schema").Finite;
649
+ readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Finite>>, import("effect/Schema").optionalKey<import("effect/Schema").Finite>, never, never>;
650
+ }>;
651
+ readonly kind: import("effect/Schema").tag<"video">;
652
+ readonly path: import("effect/Schema").String;
618
653
  }>, import("effect/Schema").Struct<{
619
654
  readonly id: import("effect/Schema").String;
620
655
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
@@ -628,7 +663,41 @@ export declare const ExperimentalGroup: import("effect/http-api/HttpApiGroup").H
628
663
  }>;
629
664
  readonly kind: import("effect/Schema").tag<"codemode">;
630
665
  }>]>>;
631
- }>>, import("effect/Schema").toCodecJson<typeof import("../errors.js").InvalidRequestError | typeof import("../errors.js").SessionNotFoundError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"media.get", "GET", "/api/experimental/media/:hash", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
666
+ }>>, import("effect/Schema").toCodecJson<typeof import("../errors.js").InvalidRequestError | typeof import("../errors.js").SessionNotFoundError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"machine.add", "POST", "/api/experimental/machine", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
667
+ readonly name: import("effect/Schema").String;
668
+ readonly reach: import("effect/Schema").$Array<import("effect/Schema").Struct<{
669
+ readonly type: import("effect/Schema").Literal<"url">;
670
+ readonly url: import("effect/Schema").String;
671
+ }>>;
672
+ readonly replace: import("effect/Schema").optional<import("effect/Schema").Boolean>;
673
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
674
+ readonly data: import("effect/Schema").Struct<{
675
+ readonly name: import("effect/Schema").String;
676
+ readonly join: import("effect/Schema").String;
677
+ readonly expires: import("effect/Schema").Int;
678
+ readonly reach: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
679
+ readonly type: import("effect/Schema").Literal<"url">;
680
+ readonly url: import("effect/Schema").String;
681
+ }>, import("effect/Schema").Struct<{
682
+ readonly type: import("effect/Schema").Literal<"iroh">;
683
+ }>]>>;
684
+ }>;
685
+ }>>, import("effect/Schema").toCodecJson<typeof import("../errors.js").InvalidRequestError | typeof import("../errors.js").ConflictError | typeof import("../errors.js").ForbiddenError | typeof import("../errors.js").MachineNotFoundError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"machine.link", "GET", "/api/experimental/machine/link", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Boolean>, never, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"machine.list", "GET", "/api/experimental/machine", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
686
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
687
+ readonly id: import("effect/Schema").String;
688
+ readonly online: import("effect/Schema").Boolean;
689
+ readonly paired: import("effect/Schema").Boolean;
690
+ readonly os: import("effect/Schema").optionalKey<import("effect/Schema").String>;
691
+ readonly arch: import("effect/Schema").optionalKey<import("effect/Schema").String>;
692
+ readonly connection: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
693
+ readonly kind: import("effect/Schema").Literals<readonly ["websocket", "iroh"]>;
694
+ readonly path: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["direct", "relayed"]>>;
695
+ readonly rtt: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
696
+ }>>;
697
+ }>>;
698
+ }>>, import("effect/Schema").toCodecJson<typeof import("../errors.js").ForbiddenError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"machine.remove", "DELETE", "/api/experimental/machine/:name", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
699
+ name: import("effect/Schema").String;
700
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("../errors.js").ForbiddenError | typeof import("../errors.js").MachineNotFoundError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"media.get", "GET", "/api/experimental/media/:hash", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
632
701
  hash: import("effect/Schema").String;
633
702
  }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Uint8Array>, import("effect/Schema").toCodecJson<typeof import("../errors.js").InvalidRequestError | typeof import("../errors.js").FileNotFoundError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"persistentPty.connect", "GET", "/api/experimental/persistent-pty/:ptyID/connect", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
634
703
  ptyID: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
@@ -2,7 +2,8 @@ import { ArtifactEndpoints } from "./artifact.js";
2
2
  import { BlobGetEndpoint } from "./blob.js";
3
3
  import { AutomationEndpoints } from "./automation.js";
4
4
  import { JobEndpoints } from "./job.js";
5
+ import { MachineEndpoints } from "./machine.js";
5
6
  import { MediaGetEndpoint } from "./media.js";
6
7
  import { PersistentPtyGroup } from "./persistent-pty.js";
7
8
  /** `server.experimental`: routes under /api/experimental, without compatibility guarantees. */
8
- export const ExperimentalGroup = PersistentPtyGroup.add(MediaGetEndpoint, BlobGetEndpoint, ...AutomationEndpoints, ...ArtifactEndpoints, ...JobEndpoints);
9
+ export const ExperimentalGroup = PersistentPtyGroup.add(MediaGetEndpoint, BlobGetEndpoint, ...AutomationEndpoints, ...ArtifactEndpoints, ...JobEndpoints, ...MachineEndpoints);
@@ -1,7 +1,7 @@
1
1
  import { Generate } from "@opencode/schema/generate";
2
2
  import { Schema } from "effect";
3
3
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
4
- import { ForbiddenError, VideoNotFoundError, InvalidRequestError, LocationNotFoundError, ModelNotFoundError, ProviderNotFoundError, ProviderRequestError, ServiceUnavailableError, UnsupportedModelError } from "../errors.js";
4
+ import { VideoNotFoundError, InvalidRequestError, LocationNotFoundError, ModelNotFoundError, ProviderNotFoundError, ProviderRequestError, ServiceUnavailableError, UnsupportedModelError } from "../errors.js";
5
5
  export declare const GenerateGroup: HttpApiGroup.HttpApiGroup<"server.generate", HttpApiEndpoint.HttpApiEndpoint<"generate.decisions", "POST", "/api/experimental/generate/decisions", never, never, Schema.toCodecJson<Schema.Struct<{
6
6
  readonly model: Schema.Struct<{
7
7
  readonly id: Schema.brand<Schema.String, "Model.ID">;
@@ -296,7 +296,7 @@ export declare const GenerateGroup: HttpApiGroup.HttpApiGroup<"server.generate",
296
296
  };
297
297
  readonly status: Schema.Literal<"running">;
298
298
  }>;
299
- }>>, Schema.toCodecJson<typeof LocationNotFoundError | typeof InvalidRequestError | typeof ServiceUnavailableError | typeof ProviderNotFoundError | typeof ForbiddenError | typeof ModelNotFoundError | typeof UnsupportedModelError | typeof ProviderRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"generate.video.get", "GET", "/api/experimental/generate/video/:id", Schema.toCodecStringTree<Schema.Struct<{
299
+ }>>, Schema.toCodecJson<typeof LocationNotFoundError | typeof InvalidRequestError | typeof ServiceUnavailableError | typeof ProviderNotFoundError | typeof ModelNotFoundError | typeof UnsupportedModelError | typeof ProviderRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"generate.video.get", "GET", "/api/experimental/generate/video/:id", Schema.toCodecStringTree<Schema.Struct<{
300
300
  id: Schema.brand<Schema.String, "Generate.VideoID"> & {
301
301
  create: () => string & import("effect/Brand").Brand<"Generate.VideoID">;
302
302
  };
@@ -312,10 +312,11 @@ export declare const GenerateGroup: HttpApiGroup.HttpApiGroup<"server.generate",
312
312
  };
313
313
  readonly status: Schema.Literal<"completed">;
314
314
  readonly blobs: Schema.$Array<Schema.Struct<{
315
- readonly id: Schema.brand<Schema.String, "Blob.ID">;
315
+ readonly id: Schema.brand<Schema.String, "Blob.ID"> & {
316
+ create: () => string & import("effect/Brand").Brand<"Blob.ID">;
317
+ };
316
318
  readonly mime: Schema.String;
317
319
  readonly bytes: Schema.Finite;
318
- readonly expiresAt: Schema.Finite;
319
320
  }>>;
320
321
  }>, Schema.Struct<{
321
322
  readonly id: Schema.brand<Schema.String, "Generate.VideoID"> & {
@@ -325,4 +326,4 @@ export declare const GenerateGroup: HttpApiGroup.HttpApiGroup<"server.generate",
325
326
  readonly error: Schema.String;
326
327
  readonly reason: Schema.Literals<readonly ["failed", "cancelled", "expired", "unknown"]>;
327
328
  }>]>;
328
- }>>, Schema.toCodecJson<typeof LocationNotFoundError | typeof ForbiddenError | typeof VideoNotFoundError>, never, never>, false>;
329
+ }>>, Schema.toCodecJson<typeof LocationNotFoundError | typeof VideoNotFoundError>, never, never>, false>;
@@ -2,7 +2,7 @@ import { Generate } from "@opencode/schema/generate";
2
2
  import { Model } from "@opencode/schema/model";
3
3
  import { Schema } from "effect";
4
4
  import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api";
5
- import { ForbiddenError, VideoNotFoundError, InvalidRequestError, LocationNotFoundError, ModelNotFoundError, ProviderNotFoundError, ProviderRequestError, ServiceUnavailableError, UnsupportedModelError, } from "../errors.js";
5
+ import { VideoNotFoundError, InvalidRequestError, LocationNotFoundError, ModelNotFoundError, ProviderNotFoundError, ProviderRequestError, ServiceUnavailableError, UnsupportedModelError, } from "../errors.js";
6
6
  const errors = [
7
7
  InvalidRequestError,
8
8
  ProviderNotFoundError,
@@ -47,20 +47,20 @@ export const GenerateGroup = HttpApiGroup.make("server.generate")
47
47
  .add(HttpApiEndpoint.post("generate.video.create", "/api/experimental/generate/video", {
48
48
  payload: Generate.VideoRequest,
49
49
  success: Schema.Struct({ data: Generate.VideoRunning }).annotate({ identifier: "GenerateVideoCreateResponse" }),
50
- error: [...errors, ForbiddenError],
50
+ error: errors,
51
51
  }).annotateMerge(OpenApi.annotations({
52
52
  identifier: "experimental.generate.video.create",
53
53
  summary: "Create a video generation",
54
- description: "Submit a video job to a video model using the server's base configuration and return its ID once the provider accepted it. The server polls the job and stores the finished video as a blob for 7 days; read the job with GET /api/experimental/generate/video/:id and the video with GET /api/experimental/blob/:id. Behind the video_generate flag. Experimental: may change without compatibility guarantees.",
54
+ description: "Submit a video job to a video model using the server's base configuration and return its ID once the provider accepted it. The server polls the job and stores the finished videos as blobs; read the job with GET /api/experimental/generate/video/:id and the video with GET /api/experimental/blob/:id. Experimental: may change without compatibility guarantees.",
55
55
  })))
56
56
  .add(HttpApiEndpoint.get("generate.video.get", "/api/experimental/generate/video/:id", {
57
57
  params: { id: Generate.VideoID },
58
58
  success: Schema.Struct({ data: Generate.VideoJob }).annotate({ identifier: "GenerateVideoGetResponse" }),
59
- error: [VideoNotFoundError, ForbiddenError, LocationNotFoundError],
59
+ error: [VideoNotFoundError, LocationNotFoundError],
60
60
  }).annotateMerge(OpenApi.annotations({
61
61
  identifier: "experimental.generate.video.get",
62
62
  summary: "Read a video generation",
63
- description: "Read a video job: running, completed with the video's blob, or error with a reason. Jobs are kept in memory, so a server restart forgets them; a finished video's blob stays readable. Behind the video_generate flag. Experimental: may change without compatibility guarantees.",
63
+ description: "Read a video job: running, completed with its videos' blobs, or error with a reason. Jobs survive a server restart, which resumes polling running ones. A job is not found 24 hours after it finished, or once none of its blobs remain. Experimental: may change without compatibility guarantees.",
64
64
  })))
65
65
  .add(HttpApiEndpoint.post("generate.decisions", "/api/experimental/generate/decisions", {
66
66
  payload: Generate.DecisionRequest,
@@ -1,11 +1,11 @@
1
1
  import { Schema } from "effect";
2
- import { HttpApiEndpoint } from "effect/http-api";
2
+ import { HttpApiEndpoint, HttpApiSchema } from "effect/http-api";
3
3
  import { InvalidRequestError, SessionNotFoundError } from "../errors.js";
4
4
  export declare const ListQuery: Schema.Struct<{
5
5
  readonly sessionID: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
6
6
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7
7
  }>;
8
- readonly kind: Schema.optional<Schema.Literals<readonly ["shell", "subagent", "image", "codemode"]>>;
8
+ readonly kind: Schema.optional<Schema.Literals<readonly ["shell", "subagent", "image", "video", "codemode"]>>;
9
9
  readonly status: Schema.optional<Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>>;
10
10
  readonly descendants: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
11
11
  }>;
@@ -15,7 +15,7 @@ export declare const JobEndpoints: readonly [HttpApiEndpoint.HttpApiEndpoint<"jo
15
15
  readonly sessionID: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
16
16
  create: () => string & import("effect/Brand").Brand<"SessionID">;
17
17
  }>;
18
- readonly kind: Schema.optional<Schema.Literals<readonly ["shell", "subagent", "image", "codemode"]>>;
18
+ readonly kind: Schema.optional<Schema.Literals<readonly ["shell", "subagent", "image", "video", "codemode"]>>;
19
19
  readonly status: Schema.optional<Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>>;
20
20
  readonly descendants: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
21
21
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -64,6 +64,19 @@ export declare const JobEndpoints: readonly [HttpApiEndpoint.HttpApiEndpoint<"jo
64
64
  readonly kind: Schema.tag<"image">;
65
65
  readonly path: Schema.String;
66
66
  readonly model: Schema.String;
67
+ }>, Schema.Struct<{
68
+ readonly id: Schema.String;
69
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
70
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
71
+ };
72
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
73
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
74
+ readonly time: Schema.Struct<{
75
+ readonly started: Schema.Finite;
76
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
77
+ }>;
78
+ readonly kind: Schema.tag<"video">;
79
+ readonly path: Schema.String;
67
80
  }>, Schema.Struct<{
68
81
  readonly id: Schema.String;
69
82
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -77,4 +90,6 @@ export declare const JobEndpoints: readonly [HttpApiEndpoint.HttpApiEndpoint<"jo
77
90
  }>;
78
91
  readonly kind: Schema.tag<"codemode">;
79
92
  }>]>>;
80
- }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof SessionNotFoundError>, never, never>];
93
+ }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof SessionNotFoundError>, never, never>, HttpApiEndpoint.HttpApiEndpoint<"job.cancel", "POST", "/api/experimental/job/:id/cancel", Schema.toCodecStringTree<Schema.Struct<{
94
+ id: Schema.String;
95
+ }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never>];
@@ -1,7 +1,7 @@
1
1
  import { Job } from "@opencode/schema/job";
2
2
  import { Session } from "@opencode/schema/session";
3
3
  import { Schema, SchemaGetter } from "effect";
4
- import { HttpApiEndpoint, OpenApi } from "effect/http-api";
4
+ import { HttpApiEndpoint, HttpApiSchema, OpenApi } from "effect/http-api";
5
5
  import { InvalidRequestError, SessionNotFoundError } from "../errors.js";
6
6
  const BooleanFromString = Schema.Literals(["true", "false"]).pipe(Schema.decodeTo(Schema.Boolean, {
7
7
  decode: SchemaGetter.transform((value) => value === "true"),
@@ -33,4 +33,13 @@ export const JobEndpoints = [
33
33
  description: "List active and unconsumed background jobs, optionally filtered by owning session, descendants, or kind. Experimental: may change without compatibility guarantees.",
34
34
  transform: (operation) => ({ ...operation, tags: ["experimental"] }),
35
35
  })),
36
+ HttpApiEndpoint.post("job.cancel", "/api/experimental/job/:id/cancel", {
37
+ params: { id: Schema.String },
38
+ success: HttpApiSchema.NoContent,
39
+ }).annotateMerge(OpenApi.annotations({
40
+ identifier: "experimental.job.cancel",
41
+ summary: "Cancel background job",
42
+ description: "Cancel a running background job, interrupting the work it started. Cancelling a job that already finished does nothing. Experimental: may change without compatibility guarantees.",
43
+ transform: (operation) => ({ ...operation, tags: ["experimental"] }),
44
+ })),
36
45
  ];
@@ -0,0 +1,100 @@
1
+ import { Schema } from "effect";
2
+ import { HttpApiEndpoint, HttpApiSchema } from "effect/http-api";
3
+ import { ConflictError, ForbiddenError, InvalidRequestError, MachineNotFoundError } from "../errors.js";
4
+ export declare const MACHINE_LINK_PATH = "/api/experimental/machine/link";
5
+ export declare const MachineInfo: Schema.Struct<{
6
+ readonly id: Schema.String;
7
+ readonly online: Schema.Boolean;
8
+ readonly paired: Schema.Boolean;
9
+ readonly os: Schema.optionalKey<Schema.String>;
10
+ readonly arch: Schema.optionalKey<Schema.String>;
11
+ readonly connection: Schema.optionalKey<Schema.Struct<{
12
+ readonly kind: Schema.Literals<readonly ["websocket", "iroh"]>;
13
+ readonly path: Schema.optionalKey<Schema.Literals<readonly ["direct", "relayed"]>>;
14
+ /** Round-trip time in milliseconds. */
15
+ readonly rtt: Schema.optionalKey<Schema.Number>;
16
+ }>>;
17
+ }>;
18
+ export type MachineInfo = typeof MachineInfo.Type;
19
+ export declare const MachineReach: Schema.Struct<{
20
+ readonly type: Schema.Literal<"url">;
21
+ readonly url: Schema.String;
22
+ }>;
23
+ export type MachineReach = typeof MachineReach.Type;
24
+ export declare const MachineAddPayload: Schema.Struct<{
25
+ readonly name: Schema.String;
26
+ readonly reach: Schema.$Array<Schema.Struct<{
27
+ readonly type: Schema.Literal<"url">;
28
+ readonly url: Schema.String;
29
+ }>>;
30
+ readonly replace: Schema.optional<Schema.Boolean>;
31
+ }>;
32
+ export type MachineAddPayload = typeof MachineAddPayload.Type;
33
+ export declare const MachineInvite: Schema.Struct<{
34
+ readonly name: Schema.String;
35
+ readonly join: Schema.String;
36
+ readonly expires: Schema.Int;
37
+ readonly reach: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
38
+ readonly type: Schema.Literal<"url">;
39
+ readonly url: Schema.String;
40
+ }>, Schema.Struct<{
41
+ readonly type: Schema.Literal<"iroh">;
42
+ }>]>>;
43
+ }>;
44
+ export type MachineInvite = typeof MachineInvite.Type;
45
+ /**
46
+ * Whether a request asks to become a WebSocket, the one request the machine link serves and the one the server lets in
47
+ * without its password: a GET with `Upgrade: websocket` and `upgrade` among its `Connection` tokens.
48
+ */
49
+ export declare function isWebSocketUpgrade(request: {
50
+ readonly method: string;
51
+ readonly headers: Readonly<Record<string, string | undefined>>;
52
+ }): boolean;
53
+ /**
54
+ * The same, for code that runs before the router has matched a route: the path is the request's own, up to its query,
55
+ * compared as it was sent. A URL parser would resolve `..` and a leading `//host` to this path, and the router would not.
56
+ */
57
+ export declare function isMachineLinkUpgrade(request: {
58
+ readonly method: string;
59
+ readonly url: string;
60
+ readonly headers: Readonly<Record<string, string | undefined>>;
61
+ }): boolean;
62
+ /** Lives in the `server.experimental` group (see `groups/experimental.ts`). */
63
+ export declare const MachineLinkEndpoint: HttpApiEndpoint.HttpApiEndpoint<"machine.link", "GET", "/api/experimental/machine/link", never, never, never, never, Schema.toCodecJson<Schema.Boolean>, never, never, never>;
64
+ /** Lives in the `server.experimental` group (see `groups/experimental.ts`). */
65
+ export declare const MachineEndpoints: readonly [HttpApiEndpoint.HttpApiEndpoint<"machine.link", "GET", "/api/experimental/machine/link", never, never, never, never, Schema.toCodecJson<Schema.Boolean>, never, never, never>, HttpApiEndpoint.HttpApiEndpoint<"machine.list", "GET", "/api/experimental/machine", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
66
+ readonly data: Schema.$Array<Schema.Struct<{
67
+ readonly id: Schema.String;
68
+ readonly online: Schema.Boolean;
69
+ readonly paired: Schema.Boolean;
70
+ readonly os: Schema.optionalKey<Schema.String>;
71
+ readonly arch: Schema.optionalKey<Schema.String>;
72
+ readonly connection: Schema.optionalKey<Schema.Struct<{
73
+ readonly kind: Schema.Literals<readonly ["websocket", "iroh"]>;
74
+ readonly path: Schema.optionalKey<Schema.Literals<readonly ["direct", "relayed"]>>;
75
+ /** Round-trip time in milliseconds. */
76
+ readonly rtt: Schema.optionalKey<Schema.Number>;
77
+ }>>;
78
+ }>>;
79
+ }>>, Schema.toCodecJson<typeof ForbiddenError>, never, never>, HttpApiEndpoint.HttpApiEndpoint<"machine.add", "POST", "/api/experimental/machine", never, never, Schema.toCodecJson<Schema.Struct<{
80
+ readonly name: Schema.String;
81
+ readonly reach: Schema.$Array<Schema.Struct<{
82
+ readonly type: Schema.Literal<"url">;
83
+ readonly url: Schema.String;
84
+ }>>;
85
+ readonly replace: Schema.optional<Schema.Boolean>;
86
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
87
+ readonly data: Schema.Struct<{
88
+ readonly name: Schema.String;
89
+ readonly join: Schema.String;
90
+ readonly expires: Schema.Int;
91
+ readonly reach: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
92
+ readonly type: Schema.Literal<"url">;
93
+ readonly url: Schema.String;
94
+ }>, Schema.Struct<{
95
+ readonly type: Schema.Literal<"iroh">;
96
+ }>]>>;
97
+ }>;
98
+ }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof ConflictError | typeof ForbiddenError | typeof MachineNotFoundError>, never, never>, HttpApiEndpoint.HttpApiEndpoint<"machine.remove", "DELETE", "/api/experimental/machine/:name", Schema.toCodecStringTree<Schema.Struct<{
99
+ name: Schema.String;
100
+ }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ForbiddenError | typeof MachineNotFoundError>, never, never>];
@@ -0,0 +1,82 @@
1
+ import { Schema } from "effect";
2
+ import { HttpApiEndpoint, HttpApiSchema, OpenApi } from "effect/http-api";
3
+ import { ConflictError, ForbiddenError, InvalidRequestError, MachineNotFoundError } from "../errors.js";
4
+ export const MACHINE_LINK_PATH = "/api/experimental/machine/link";
5
+ const EXPERIMENTAL = "Behind the machines flag. Experimental: may change without compatibility guarantees.";
6
+ const annotations = (identifier, summary, description) => OpenApi.annotations({
7
+ identifier: `experimental.machine.${identifier}`,
8
+ summary,
9
+ description: `${description} ${EXPERIMENTAL}`,
10
+ transform: (operation) => ({ ...operation, tags: ["experimental"] }),
11
+ });
12
+ export const MachineInfo = Schema.Struct({
13
+ id: Schema.String,
14
+ online: Schema.Boolean,
15
+ paired: Schema.Boolean,
16
+ os: Schema.optionalKey(Schema.String),
17
+ arch: Schema.optionalKey(Schema.String),
18
+ connection: Schema.optionalKey(Schema.Struct({
19
+ kind: Schema.Literals(["websocket", "iroh"]),
20
+ path: Schema.optionalKey(Schema.Literals(["direct", "relayed"])),
21
+ /** Round-trip time in milliseconds. */
22
+ rtt: Schema.optionalKey(Schema.Number),
23
+ })),
24
+ }).annotate({ identifier: "Machine.Info" });
25
+ export const MachineReach = Schema.Struct({
26
+ type: Schema.Literal("url"),
27
+ url: Schema.String,
28
+ }).annotate({ identifier: "Machine.Reach" });
29
+ export const MachineAddPayload = Schema.Struct({
30
+ name: Schema.String,
31
+ reach: Schema.Array(MachineReach),
32
+ replace: Schema.optional(Schema.Boolean),
33
+ }).annotate({ identifier: "Machine.AddPayload" });
34
+ export const MachineInvite = Schema.Struct({
35
+ name: Schema.String,
36
+ join: Schema.String,
37
+ expires: Schema.Int,
38
+ reach: Schema.Array(Schema.Union([MachineReach, Schema.Struct({ type: Schema.Literal("iroh") })])),
39
+ }).annotate({ identifier: "Machine.Invite" });
40
+ /**
41
+ * Whether a request asks to become a WebSocket, the one request the machine link serves and the one the server lets in
42
+ * without its password: a GET with `Upgrade: websocket` and `upgrade` among its `Connection` tokens.
43
+ */
44
+ export function isWebSocketUpgrade(request) {
45
+ return (request.method === "GET" &&
46
+ request.headers.upgrade?.toLowerCase() === "websocket" &&
47
+ (request.headers.connection ?? "").split(",").some((token) => token.trim().toLowerCase() === "upgrade"));
48
+ }
49
+ /**
50
+ * The same, for code that runs before the router has matched a route: the path is the request's own, up to its query,
51
+ * compared as it was sent. A URL parser would resolve `..` and a leading `//host` to this path, and the router would not.
52
+ */
53
+ export function isMachineLinkUpgrade(request) {
54
+ return request.url.split("?", 1)[0] === MACHINE_LINK_PATH && isWebSocketUpgrade(request);
55
+ }
56
+ /** Lives in the `server.experimental` group (see `groups/experimental.ts`). */
57
+ export const MachineLinkEndpoint = HttpApiEndpoint.get("machine.link", MACHINE_LINK_PATH, {
58
+ success: Schema.Boolean,
59
+ }).annotateMerge(OpenApi.annotations({
60
+ identifier: "experimental.machine.link",
61
+ summary: "Connect a machine",
62
+ description: "Upgrade to a WebSocket that carries a machine's link to this server: binary messages only, each at most 65,535 bytes. It takes no server password. The link's own handshake, which starts with the machine's first message, is the only way in: it admits a key this server has paired or a valid join string, and closes the socket on anything else without saying why. Behind the machines flag; without it the route does not exist. Experimental: may change without compatibility guarantees.",
63
+ transform: (operation) => ({ ...operation, "x-websocket": true, tags: ["experimental"] }),
64
+ }));
65
+ /** Lives in the `server.experimental` group (see `groups/experimental.ts`). */
66
+ export const MachineEndpoints = [
67
+ MachineLinkEndpoint,
68
+ HttpApiEndpoint.get("machine.list", "/api/experimental/machine", {
69
+ success: Schema.Struct({ data: Schema.Array(MachineInfo) }),
70
+ error: [ForbiddenError],
71
+ }).annotateMerge(annotations("list", "List machines", "List known machines and whether each is paired and online.")),
72
+ HttpApiEndpoint.post("machine.add", "/api/experimental/machine", {
73
+ payload: MachineAddPayload,
74
+ success: Schema.Struct({ data: MachineInvite }),
75
+ error: [InvalidRequestError, ForbiddenError, MachineNotFoundError, ConflictError],
76
+ }).annotateMerge(annotations("add", "Add or invite a machine", "Add a machine by name if it does not exist, then create a single-use join string carrying the given reach addresses.")),
77
+ HttpApiEndpoint.delete("machine.remove", "/api/experimental/machine/:name", {
78
+ params: { name: Schema.String },
79
+ success: HttpApiSchema.NoContent,
80
+ error: [ForbiddenError, MachineNotFoundError],
81
+ }).annotateMerge(annotations("remove", "Remove a machine", "Forget a machine by name, closing any live link and revoking its key.")),
82
+ ];
@@ -187,6 +187,27 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
187
187
  readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
188
188
  }>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
189
189
  }>>;
190
+ readonly experimental: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
191
+ readonly speed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
192
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
193
+ readonly id: Schema.String;
194
+ readonly faster: Schema.Boolean;
195
+ }>>>, Schema.optionalKey<Schema.Struct<{
196
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
197
+ readonly id: Schema.String;
198
+ readonly faster: Schema.Boolean;
199
+ }>>, never, never>;
200
+ }>>>, Schema.optionalKey<Schema.Struct<{
201
+ readonly speed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
202
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
203
+ readonly id: Schema.String;
204
+ readonly faster: Schema.Boolean;
205
+ }>>>, Schema.optionalKey<Schema.Struct<{
206
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
207
+ readonly id: Schema.String;
208
+ readonly faster: Schema.Boolean;
209
+ }>>, never, never>;
210
+ }>>, never, never>;
190
211
  readonly time: Schema.Struct<{
191
212
  readonly released: Schema.Finite;
192
213
  }>;
@@ -430,6 +451,27 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
430
451
  readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
431
452
  }>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
432
453
  }>>;
454
+ readonly experimental: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
455
+ readonly speed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
456
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
457
+ readonly id: Schema.String;
458
+ readonly faster: Schema.Boolean;
459
+ }>>>, Schema.optionalKey<Schema.Struct<{
460
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
461
+ readonly id: Schema.String;
462
+ readonly faster: Schema.Boolean;
463
+ }>>, never, never>;
464
+ }>>>, Schema.optionalKey<Schema.Struct<{
465
+ readonly speed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
466
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
467
+ readonly id: Schema.String;
468
+ readonly faster: Schema.Boolean;
469
+ }>>>, Schema.optionalKey<Schema.Struct<{
470
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
471
+ readonly id: Schema.String;
472
+ readonly faster: Schema.Boolean;
473
+ }>>, never, never>;
474
+ }>>, never, never>;
433
475
  readonly time: Schema.Struct<{
434
476
  readonly released: Schema.Finite;
435
477
  }>;
@@ -117,7 +117,7 @@ export const makeSessionGroup = (sessionLocationMiddleware, formLocationMiddlewa
117
117
  payload: Schema.Struct({
118
118
  id: Session.ID.pipe(Schema.optional),
119
119
  parentID: Session.ID.pipe(Schema.optional).annotate({
120
- description: "Set parentID to create a subagent session at the parent's location; set agent to choose its agent (otherwise it uses the default) and start it with session.prompt. After each completed round, the child sends a `<subagent>` report to the parent's inbox and wakes the parent unless it has a staged revert.",
120
+ description: "Set parentID to create a subagent session at the parent's location; set agent to choose its agent (otherwise it uses the default) and start it with session.prompt. After each completed round, the child sends a `<background-result kind=\"subagent\">` report to the parent's inbox and wakes the parent unless it has a staged revert.",
121
121
  }),
122
122
  title: Schema.String.pipe(Schema.optional),
123
123
  agent: Agent.ID.pipe(Schema.optional),
@@ -4,6 +4,8 @@ import { InvalidRequestError, LocationNotFoundError, ServiceUnavailableError } f
4
4
  export declare const VoiceTransportType: Schema.Literals<readonly ["webrtc", "websocket"]>;
5
5
  export declare const VoiceModel: Schema.Struct<{
6
6
  readonly model: Schema.String;
7
+ readonly name: Schema.String;
8
+ readonly engine: Schema.String;
7
9
  readonly provider: Schema.String;
8
10
  readonly transports: Schema.$Array<Schema.Literals<readonly ["webrtc", "websocket"]>>;
9
11
  readonly available: Schema.Boolean;
@@ -46,6 +48,8 @@ export declare const VoiceGroup: HttpApiGroup.HttpApiGroup<"server.voice", HttpA
46
48
  readonly data: Schema.Struct<{
47
49
  readonly models: Schema.$Array<Schema.Struct<{
48
50
  readonly model: Schema.String;
51
+ readonly name: Schema.String;
52
+ readonly engine: Schema.String;
49
53
  readonly provider: Schema.String;
50
54
  readonly transports: Schema.$Array<Schema.Literals<readonly ["webrtc", "websocket"]>>;
51
55
  readonly available: Schema.Boolean;
@@ -6,6 +6,8 @@ export const VoiceTransportType = Schema.Literals(["webrtc", "websocket"]).annot
6
6
  });
7
7
  export const VoiceModel = Schema.Struct({
8
8
  model: Schema.String,
9
+ name: Schema.String,
10
+ engine: Schema.String,
9
11
  provider: Schema.String,
10
12
  transports: Schema.Array(VoiceTransportType),
11
13
  available: Schema.Boolean,