@opencode-ai/protocol 0.0.0-next-15718 → 0.0.0-next-15747

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.
@@ -124,12 +124,12 @@ declare const CreatePayload: Schema.Struct<{
124
124
  }>]>>;
125
125
  }>;
126
126
  export type CreatePayload = typeof CreatePayload.Type;
127
- export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService, FormLocationId extends HttpApiMiddleware.AnyId, FormLocationService>(locationMiddleware: Context.Key<LocationId, LocationService>, formLocationMiddleware: Context.Key<FormLocationId, FormLocationService>) => HttpApiGroup.HttpApiGroup<"server.form", HttpApiEndpoint.HttpApiEndpoint<"form.request.list", "GET", "/api/form/request", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
127
+ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService, FormLocationId extends HttpApiMiddleware.AnyId, FormLocationService>(locationMiddleware: Context.Key<LocationId, LocationService>, formLocationMiddleware: Context.Key<FormLocationId, FormLocationService>) => HttpApiGroup.HttpApiGroup<"server.form", HttpApiEndpoint.HttpApiEndpoint<"form.request.list", "GET", "/api/form/request", never, Schema.toCodecStringTree<Schema.Struct<{
128
128
  readonly location: Schema.optional<Schema.Struct<{
129
129
  readonly directory: Schema.optional<Schema.String>;
130
130
  readonly workspace: Schema.optional<Schema.String>;
131
131
  }>>;
132
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
132
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
133
133
  readonly location: typeof Location.Info;
134
134
  readonly data: Schema.$Array<Schema.Struct<{
135
135
  readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
@@ -253,9 +253,9 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
253
253
  readonly title: Schema.String;
254
254
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
255
255
  }>>;
256
- }>>, HttpApiEndpoint.Json<never>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.list", "GET", "/api/session/:sessionID/form", HttpApiEndpoint.StringTree<Schema.Struct<{
256
+ }>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.list", "GET", "/api/session/:sessionID/form", Schema.toCodecStringTree<Schema.Struct<{
257
257
  sessionID: Schema.String;
258
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
258
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
259
259
  readonly data: Schema.$Array<Schema.Struct<{
260
260
  readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
261
261
  readonly type: Schema.Literal<"string">;
@@ -378,9 +378,9 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
378
378
  readonly title: Schema.String;
379
379
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
380
380
  }>>;
381
- }>>, HttpApiEndpoint.Json<typeof SessionNotFoundError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.create", "POST", "/api/session/:sessionID/form", HttpApiEndpoint.StringTree<Schema.Struct<{
381
+ }>>, Schema.toCodecJson<typeof SessionNotFoundError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.create", "POST", "/api/session/:sessionID/form", Schema.toCodecStringTree<Schema.Struct<{
382
382
  sessionID: Schema.String;
383
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
383
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
384
384
  readonly id: Schema.optional<Schema.brand<Schema.String, "Form.ID"> & {
385
385
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
386
386
  }>;
@@ -500,7 +500,7 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
500
500
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
501
501
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
502
502
  }>]>>;
503
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
503
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
504
504
  readonly data: Schema.Struct<{
505
505
  readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
506
506
  readonly type: Schema.Literal<"string">;
@@ -623,12 +623,12 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
623
623
  readonly title: Schema.String;
624
624
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
625
625
  }>;
626
- }>>, HttpApiEndpoint.Json<typeof InvalidRequestError | typeof ConflictError | typeof SessionNotFoundError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.get", "GET", "/api/session/:sessionID/form/:formID", HttpApiEndpoint.StringTree<Schema.Struct<{
626
+ }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof ConflictError | typeof SessionNotFoundError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.get", "GET", "/api/session/:sessionID/form/:formID", Schema.toCodecStringTree<Schema.Struct<{
627
627
  sessionID: Schema.String;
628
628
  formID: Schema.brand<Schema.String, "Form.ID"> & {
629
629
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
630
630
  };
631
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
631
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
632
632
  readonly data: Schema.Struct<{
633
633
  readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
634
634
  readonly type: Schema.Literal<"string">;
@@ -751,12 +751,12 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
751
751
  readonly title: Schema.String;
752
752
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
753
753
  }>;
754
- }>>, HttpApiEndpoint.Json<typeof SessionNotFoundError | typeof FormNotFoundError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.state", "GET", "/api/session/:sessionID/form/:formID/state", HttpApiEndpoint.StringTree<Schema.Struct<{
754
+ }>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof FormNotFoundError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.state", "GET", "/api/session/:sessionID/form/:formID/state", Schema.toCodecStringTree<Schema.Struct<{
755
755
  sessionID: Schema.String;
756
756
  formID: Schema.brand<Schema.String, "Form.ID"> & {
757
757
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
758
758
  };
759
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
759
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
760
760
  readonly data: Schema.Union<readonly [Schema.Struct<{
761
761
  readonly status: Schema.Literal<"pending">;
762
762
  }>, Schema.Struct<{
@@ -765,17 +765,17 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
765
765
  }>, Schema.Struct<{
766
766
  readonly status: Schema.Literal<"cancelled">;
767
767
  }>]>;
768
- }>>, HttpApiEndpoint.Json<typeof SessionNotFoundError | typeof FormNotFoundError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.reply", "POST", "/api/session/:sessionID/form/:formID/reply", HttpApiEndpoint.StringTree<Schema.Struct<{
768
+ }>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof FormNotFoundError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.reply", "POST", "/api/session/:sessionID/form/:formID/reply", Schema.toCodecStringTree<Schema.Struct<{
769
769
  sessionID: Schema.String;
770
770
  formID: Schema.brand<Schema.String, "Form.ID"> & {
771
771
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
772
772
  };
773
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
773
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
774
774
  readonly answer: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>;
775
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError | typeof FormNotFoundError | typeof FormAlreadySettledError | typeof FormInvalidAnswerError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.cancel", "POST", "/api/session/:sessionID/form/:formID/cancel", HttpApiEndpoint.StringTree<Schema.Struct<{
775
+ }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof FormNotFoundError | typeof FormAlreadySettledError | typeof FormInvalidAnswerError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.cancel", "POST", "/api/session/:sessionID/form/:formID/cancel", Schema.toCodecStringTree<Schema.Struct<{
776
776
  sessionID: Schema.String;
777
777
  formID: Schema.brand<Schema.String, "Form.ID"> & {
778
778
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
779
779
  };
780
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError | typeof FormNotFoundError | typeof FormAlreadySettledError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>>, false>;
780
+ }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof FormNotFoundError | typeof FormAlreadySettledError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>>, false>;
781
781
  export {};
@@ -1,24 +1,24 @@
1
1
  import { Location } from "@opencode-ai/schema/location";
2
2
  import { Schema } from "effect";
3
3
  import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
4
- export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", HttpApiEndpoint.HttpApiEndpoint<"fs.read", "GET", "/api/fs/read/*", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
4
+ export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", HttpApiEndpoint.HttpApiEndpoint<"fs.read", "GET", "/api/fs/read/*", never, Schema.toCodecStringTree<Schema.Struct<{
5
5
  readonly location: Schema.optional<Schema.Struct<{
6
6
  readonly directory: Schema.optional<Schema.String>;
7
7
  readonly workspace: Schema.optional<Schema.String>;
8
8
  }>>;
9
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Uint8Array>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.list", "GET", "/api/fs/list", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
9
+ }>>, never, never, Schema.toCodecJson<Schema.Uint8Array>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.list", "GET", "/api/fs/list", never, Schema.toCodecStringTree<Schema.Struct<{
10
10
  readonly path: Schema.optional<Schema.brand<Schema.String, "RelativePath">>;
11
11
  readonly location: Schema.optional<Schema.Struct<{
12
12
  readonly directory: Schema.optional<Schema.String>;
13
13
  readonly workspace: Schema.optional<Schema.String>;
14
14
  }>>;
15
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
15
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
16
16
  readonly location: typeof Location.Info;
17
17
  readonly data: Schema.$Array<Schema.Struct<{
18
18
  readonly path: Schema.brand<Schema.String, "RelativePath">;
19
19
  readonly type: Schema.Literals<readonly ["file", "directory"]>;
20
20
  }>>;
21
- }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.find", "GET", "/api/fs/find", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
21
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.find", "GET", "/api/fs/find", never, Schema.toCodecStringTree<Schema.Struct<{
22
22
  readonly query: Schema.String;
23
23
  readonly type: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["file", "directory"]>>>, Schema.optionalKey<Schema.Literals<readonly ["file", "directory"]>>, never, never>;
24
24
  readonly limit: Schema.optional<Schema.compose<Schema.Int, Schema.NumberFromString>>;
@@ -26,10 +26,10 @@ export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", Htt
26
26
  readonly directory: Schema.optional<Schema.String>;
27
27
  readonly workspace: Schema.optional<Schema.String>;
28
28
  }>>;
29
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
29
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
30
30
  readonly location: typeof Location.Info;
31
31
  readonly data: Schema.$Array<Schema.Struct<{
32
32
  readonly path: Schema.brand<Schema.String, "RelativePath">;
33
33
  readonly type: Schema.Literals<readonly ["file", "directory"]>;
34
34
  }>>;
35
- }>>, HttpApiEndpoint.Json<never>, never, never>, false>;
35
+ }>>, never, never, never>, false>;
@@ -1,12 +1,12 @@
1
1
  import { Schema } from "effect";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
3
3
  import { InvalidRequestError, ServiceUnavailableError } from "../errors.js";
4
- export declare const GenerateGroup: HttpApiGroup.HttpApiGroup<"server.generate", HttpApiEndpoint.HttpApiEndpoint<"generate.text", "POST", "/api/generate", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
4
+ export declare const GenerateGroup: HttpApiGroup.HttpApiGroup<"server.generate", HttpApiEndpoint.HttpApiEndpoint<"generate.text", "POST", "/api/generate", never, Schema.toCodecStringTree<Schema.Struct<{
5
5
  readonly location: Schema.optional<Schema.Struct<{
6
6
  readonly directory: Schema.optional<Schema.String>;
7
7
  readonly workspace: Schema.optional<Schema.String>;
8
8
  }>>;
9
- }>>, HttpApiEndpoint.Json<Schema.Struct<{
9
+ }>>, Schema.toCodecJson<Schema.Struct<{
10
10
  readonly prompt: Schema.String;
11
11
  readonly model: Schema.optional<Schema.Struct<{
12
12
  readonly id: Schema.brand<Schema.String, "Model.ID">;
@@ -31,8 +31,8 @@ export declare const GenerateGroup: HttpApiGroup.HttpApiGroup<"server.generate",
31
31
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
32
32
  };
33
33
  }>;
34
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
34
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
35
35
  readonly data: Schema.Struct<{
36
36
  readonly text: Schema.String;
37
37
  }>;
38
- }>>, HttpApiEndpoint.Json<typeof InvalidRequestError | typeof ServiceUnavailableError>, never, never>, false>;
38
+ }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof ServiceUnavailableError>, never, never>, false>;
@@ -16,12 +16,12 @@ export declare namespace ServiceStatus {
16
16
  }>;
17
17
  type StopResponse = typeof StopResponse.Type;
18
18
  }
19
- export declare const HealthGroup: HttpApiGroup.HttpApiGroup<"server.health", HttpApiEndpoint.HttpApiEndpoint<"health.get", "GET", "/api/health", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
19
+ export declare const HealthGroup: HttpApiGroup.HttpApiGroup<"server.health", HttpApiEndpoint.HttpApiEndpoint<"health.get", "GET", "/api/health", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
20
20
  readonly healthy: Schema.Literal<true>;
21
21
  readonly version: Schema.String;
22
22
  readonly pid: Schema.Int;
23
- }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"health.stop", "POST", "/api/service/stop", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
23
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"health.stop", "POST", "/api/service/stop", never, never, Schema.toCodecJson<Schema.Struct<{
24
24
  readonly instanceID: Schema.String;
25
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
25
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
26
26
  readonly accepted: Schema.Boolean;
27
- }>>, HttpApiEndpoint.Json<never>, never, never>, false>;
27
+ }>>, never, never, never>, false>;
@@ -3,12 +3,12 @@ import { Location } from "@opencode-ai/schema/location";
3
3
  import { Schema } from "effect";
4
4
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi";
5
5
  import { InvalidRequestError } from "../errors.js";
6
- export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integration", HttpApiEndpoint.HttpApiEndpoint<"integration.list", "GET", "/api/integration", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
6
+ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integration", HttpApiEndpoint.HttpApiEndpoint<"integration.list", "GET", "/api/integration", never, Schema.toCodecStringTree<Schema.Struct<{
7
7
  readonly location: Schema.optional<Schema.Struct<{
8
8
  readonly directory: Schema.optional<Schema.String>;
9
9
  readonly workspace: Schema.optional<Schema.String>;
10
10
  }>>;
11
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
11
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
12
12
  readonly location: typeof Location.Info;
13
13
  readonly data: Schema.$Array<Schema.Struct<{
14
14
  readonly id: Schema.brand<Schema.String, "Integration.ID">;
@@ -105,14 +105,14 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
105
105
  readonly name: Schema.String;
106
106
  }>]>>;
107
107
  }>>;
108
- }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.get", "GET", "/api/integration/:integrationID", HttpApiEndpoint.StringTree<Schema.Struct<{
108
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.get", "GET", "/api/integration/:integrationID", Schema.toCodecStringTree<Schema.Struct<{
109
109
  integrationID: Schema.brand<Schema.String, "Integration.ID">;
110
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
110
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
111
111
  readonly location: Schema.optional<Schema.Struct<{
112
112
  readonly directory: Schema.optional<Schema.String>;
113
113
  readonly workspace: Schema.optional<Schema.String>;
114
114
  }>>;
115
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
115
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
116
116
  readonly location: typeof Location.Info;
117
117
  readonly data: Schema.UndefinedOr<Schema.Struct<{
118
118
  readonly id: Schema.brand<Schema.String, "Integration.ID">;
@@ -209,48 +209,48 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
209
209
  readonly name: Schema.String;
210
210
  }>]>>;
211
211
  }>>;
212
- }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.wellknown.add", "POST", "/api/experimental/integration/wellknown", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
212
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.wellknown.add", "POST", "/api/experimental/integration/wellknown", never, Schema.toCodecStringTree<Schema.Struct<{
213
213
  readonly location: Schema.optional<Schema.Struct<{
214
214
  readonly directory: Schema.optional<Schema.String>;
215
215
  readonly workspace: Schema.optional<Schema.String>;
216
216
  }>>;
217
- }>>, HttpApiEndpoint.Json<Schema.Struct<{
217
+ }>>, Schema.toCodecJson<Schema.Struct<{
218
218
  readonly url: Schema.String;
219
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.connect.key", "POST", "/api/integration/:integrationID/connect/key", HttpApiEndpoint.StringTree<Schema.Struct<{
219
+ }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.connect.key", "POST", "/api/integration/:integrationID/connect/key", Schema.toCodecStringTree<Schema.Struct<{
220
220
  integrationID: Schema.brand<Schema.String, "Integration.ID">;
221
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
221
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
222
222
  readonly location: Schema.optional<Schema.Struct<{
223
223
  readonly directory: Schema.optional<Schema.String>;
224
224
  readonly workspace: Schema.optional<Schema.String>;
225
225
  }>>;
226
- }>>, HttpApiEndpoint.Json<Schema.Struct<{
226
+ }>>, Schema.toCodecJson<Schema.Struct<{
227
227
  readonly key: Schema.String;
228
228
  readonly label: Schema.optional<Schema.String>;
229
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.oauth.connect", "POST", "/api/integration/:integrationID/connect/oauth", HttpApiEndpoint.StringTree<Schema.Struct<{
229
+ }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.oauth.connect", "POST", "/api/integration/:integrationID/connect/oauth", Schema.toCodecStringTree<Schema.Struct<{
230
230
  integrationID: Schema.brand<Schema.String, "Integration.ID">;
231
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
231
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
232
232
  readonly location: Schema.optional<Schema.Struct<{
233
233
  readonly directory: Schema.optional<Schema.String>;
234
234
  readonly workspace: Schema.optional<Schema.String>;
235
235
  }>>;
236
- }>>, HttpApiEndpoint.Json<Schema.Struct<{
236
+ }>>, Schema.toCodecJson<Schema.Struct<{
237
237
  readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
238
238
  readonly inputs: Schema.$Record<Schema.String, Schema.String>;
239
239
  readonly label: Schema.optional<Schema.String>;
240
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
240
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
241
241
  readonly location: typeof Location.Info;
242
242
  readonly data: typeof Integration.Attempt;
243
- }>>, HttpApiEndpoint.Json<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.oauth.status", "GET", "/api/integration/:integrationID/connect/oauth/:attemptID", HttpApiEndpoint.StringTree<Schema.Struct<{
243
+ }>>, Schema.toCodecJson<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.oauth.status", "GET", "/api/integration/:integrationID/connect/oauth/:attemptID", Schema.toCodecStringTree<Schema.Struct<{
244
244
  integrationID: Schema.brand<Schema.String, "Integration.ID">;
245
245
  attemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & {
246
246
  create: () => string & import("effect/Brand").Brand<"Integration.AttemptID">;
247
247
  };
248
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
248
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
249
249
  readonly location: Schema.optional<Schema.Struct<{
250
250
  readonly directory: Schema.optional<Schema.String>;
251
251
  readonly workspace: Schema.optional<Schema.String>;
252
252
  }>>;
253
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
253
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
254
254
  readonly location: typeof Location.Info;
255
255
  readonly data: Schema.Union<readonly [Schema.Struct<{
256
256
  readonly status: Schema.Literal<"pending">;
@@ -278,39 +278,39 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
278
278
  readonly expires: Schema.Number;
279
279
  }>;
280
280
  }>]>;
281
- }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.oauth.complete", "POST", "/api/integration/:integrationID/connect/oauth/:attemptID/complete", HttpApiEndpoint.StringTree<Schema.Struct<{
281
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.oauth.complete", "POST", "/api/integration/:integrationID/connect/oauth/:attemptID/complete", Schema.toCodecStringTree<Schema.Struct<{
282
282
  integrationID: Schema.brand<Schema.String, "Integration.ID">;
283
283
  attemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & {
284
284
  create: () => string & import("effect/Brand").Brand<"Integration.AttemptID">;
285
285
  };
286
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
286
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
287
287
  readonly location: Schema.optional<Schema.Struct<{
288
288
  readonly directory: Schema.optional<Schema.String>;
289
289
  readonly workspace: Schema.optional<Schema.String>;
290
290
  }>>;
291
- }>>, HttpApiEndpoint.Json<Schema.Struct<{
291
+ }>>, Schema.toCodecJson<Schema.Struct<{
292
292
  readonly code: Schema.optional<Schema.String>;
293
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.oauth.cancel", "DELETE", "/api/integration/:integrationID/connect/oauth/:attemptID", HttpApiEndpoint.StringTree<Schema.Struct<{
293
+ }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.oauth.cancel", "DELETE", "/api/integration/:integrationID/connect/oauth/:attemptID", Schema.toCodecStringTree<Schema.Struct<{
294
294
  integrationID: Schema.brand<Schema.String, "Integration.ID">;
295
295
  attemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & {
296
296
  create: () => string & import("effect/Brand").Brand<"Integration.AttemptID">;
297
297
  };
298
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
298
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
299
299
  readonly location: Schema.optional<Schema.Struct<{
300
300
  readonly directory: Schema.optional<Schema.String>;
301
301
  readonly workspace: Schema.optional<Schema.String>;
302
302
  }>>;
303
- }>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.command.connect", "POST", "/api/integration/:integrationID/connect/command", HttpApiEndpoint.StringTree<Schema.Struct<{
303
+ }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.command.connect", "POST", "/api/integration/:integrationID/connect/command", Schema.toCodecStringTree<Schema.Struct<{
304
304
  integrationID: Schema.brand<Schema.String, "Integration.ID">;
305
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
305
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
306
306
  readonly location: Schema.optional<Schema.Struct<{
307
307
  readonly directory: Schema.optional<Schema.String>;
308
308
  readonly workspace: Schema.optional<Schema.String>;
309
309
  }>>;
310
- }>>, HttpApiEndpoint.Json<Schema.Struct<{
310
+ }>>, Schema.toCodecJson<Schema.Struct<{
311
311
  readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
312
312
  readonly label: Schema.optional<Schema.String>;
313
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
313
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
314
314
  readonly location: typeof Location.Info;
315
315
  readonly data: Schema.Struct<{
316
316
  readonly attemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & {
@@ -321,17 +321,17 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
321
321
  readonly expires: Schema.Number;
322
322
  }>;
323
323
  }>;
324
- }>>, HttpApiEndpoint.Json<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.command.status", "GET", "/api/integration/:integrationID/connect/command/:attemptID", HttpApiEndpoint.StringTree<Schema.Struct<{
324
+ }>>, Schema.toCodecJson<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.command.status", "GET", "/api/integration/:integrationID/connect/command/:attemptID", Schema.toCodecStringTree<Schema.Struct<{
325
325
  integrationID: Schema.brand<Schema.String, "Integration.ID">;
326
326
  attemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & {
327
327
  create: () => string & import("effect/Brand").Brand<"Integration.AttemptID">;
328
328
  };
329
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
329
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
330
330
  readonly location: Schema.optional<Schema.Struct<{
331
331
  readonly directory: Schema.optional<Schema.String>;
332
332
  readonly workspace: Schema.optional<Schema.String>;
333
333
  }>>;
334
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
334
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
335
335
  readonly location: typeof Location.Info;
336
336
  readonly data: Schema.Union<readonly [Schema.Struct<{
337
337
  readonly status: Schema.Literal<"pending">;
@@ -360,14 +360,14 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
360
360
  readonly expires: Schema.Number;
361
361
  }>;
362
362
  }>]>;
363
- }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.command.cancel", "DELETE", "/api/integration/:integrationID/connect/command/:attemptID", HttpApiEndpoint.StringTree<Schema.Struct<{
363
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.command.cancel", "DELETE", "/api/integration/:integrationID/connect/command/:attemptID", Schema.toCodecStringTree<Schema.Struct<{
364
364
  integrationID: Schema.brand<Schema.String, "Integration.ID">;
365
365
  attemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & {
366
366
  create: () => string & import("effect/Brand").Brand<"Integration.AttemptID">;
367
367
  };
368
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
368
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
369
369
  readonly location: Schema.optional<Schema.Struct<{
370
370
  readonly directory: Schema.optional<Schema.String>;
371
371
  readonly workspace: Schema.optional<Schema.String>;
372
372
  }>>;
373
- }>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<never>, never, never>, false>;
373
+ }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never>, false>;
@@ -8,9 +8,9 @@ export declare const LocationQuery: Schema.Struct<{
8
8
  }>>;
9
9
  }>;
10
10
  export declare const locationQueryOpenApi: import("effect/Context").Context<never>;
11
- export declare const LocationGroup: HttpApiGroup.HttpApiGroup<"server.location", HttpApiEndpoint.HttpApiEndpoint<"location.get", "GET", "/api/location", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
11
+ export declare const LocationGroup: HttpApiGroup.HttpApiGroup<"server.location", HttpApiEndpoint.HttpApiEndpoint<"location.get", "GET", "/api/location", never, Schema.toCodecStringTree<Schema.Struct<{
12
12
  readonly location: Schema.optional<Schema.Struct<{
13
13
  readonly directory: Schema.optional<Schema.String>;
14
14
  readonly workspace: Schema.optional<Schema.String>;
15
15
  }>>;
16
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<typeof Location.Info>, HttpApiEndpoint.Json<never>, never, never>, false>;
16
+ }>>, never, never, Schema.toCodecJson<typeof Location.Info>, never, never, never>, false>;
@@ -1,12 +1,12 @@
1
1
  import { Location } from "@opencode-ai/schema/location";
2
2
  import { Schema } from "effect";
3
3
  import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
4
- export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEndpoint.HttpApiEndpoint<"mcp.list", "GET", "/api/mcp", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
4
+ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEndpoint.HttpApiEndpoint<"mcp.list", "GET", "/api/mcp", never, Schema.toCodecStringTree<Schema.Struct<{
5
5
  readonly location: Schema.optional<Schema.Struct<{
6
6
  readonly directory: Schema.optional<Schema.String>;
7
7
  readonly workspace: Schema.optional<Schema.String>;
8
8
  }>>;
9
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
9
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
10
10
  readonly location: typeof Location.Info;
11
11
  readonly data: Schema.$Array<Schema.Struct<{
12
12
  readonly name: Schema.String;
@@ -27,12 +27,12 @@ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEn
27
27
  }>]>;
28
28
  readonly integrationID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Integration.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Integration.ID">>, never, never>;
29
29
  }>>;
30
- }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.resource.catalog", "GET", "/api/mcp/resource", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
30
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.resource.catalog", "GET", "/api/mcp/resource", never, Schema.toCodecStringTree<Schema.Struct<{
31
31
  readonly location: Schema.optional<Schema.Struct<{
32
32
  readonly directory: Schema.optional<Schema.String>;
33
33
  readonly workspace: Schema.optional<Schema.String>;
34
34
  }>>;
35
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
35
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
36
36
  readonly location: typeof Location.Info;
37
37
  readonly data: Schema.Struct<{
38
38
  readonly resources: Schema.$Array<Schema.Struct<{
@@ -50,4 +50,4 @@ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEn
50
50
  readonly mimeType: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
51
51
  }>>;
52
52
  }>;
53
- }>>, HttpApiEndpoint.Json<never>, never, never>, false>;
53
+ }>>, never, never, never>, false>;
@@ -6,16 +6,16 @@ export declare const SessionMessagesQuery: Schema.Struct<{
6
6
  readonly order: Schema.optional<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
7
7
  readonly cursor: Schema.optional<Schema.String>;
8
8
  }>;
9
- export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", HttpApiEndpoint.HttpApiEndpoint<"session.messages", "GET", "/api/session/:sessionID/message", HttpApiEndpoint.StringTree<Schema.Struct<{
9
+ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", HttpApiEndpoint.HttpApiEndpoint<"session.messages", "GET", "/api/session/:sessionID/message", Schema.toCodecStringTree<Schema.Struct<{
10
10
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11
11
  create: () => string & import("effect/Brand").Brand<"SessionID">;
12
12
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
13
13
  };
14
- }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
14
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
15
15
  readonly limit: Schema.optional<Schema.NumberFromString>;
16
16
  readonly order: Schema.optional<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
17
17
  readonly cursor: Schema.optional<Schema.String>;
18
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
18
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19
19
  readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
20
20
  readonly type: Schema.tag<"agent-switched">;
21
21
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
@@ -130,20 +130,20 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
130
130
  }> & {
131
131
  create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
132
132
  readonly data: string;
133
+ readonly source: Schema.Struct.ReadonlySide<{
134
+ readonly type: Schema.Literal<"inline">;
135
+ }, "Type"> | Schema.Struct.ReadonlySide<{
136
+ readonly type: Schema.Literal<"uri">;
137
+ readonly uri: Schema.String;
138
+ }, "Type">;
133
139
  readonly mime: string;
134
- readonly source: {
135
- readonly type: "inline";
136
- } | {
137
- readonly type: "uri";
138
- readonly uri: string;
139
- };
140
- readonly name?: string | undefined;
141
140
  readonly description?: string | undefined;
142
- readonly mention?: {
143
- readonly start: number;
144
- readonly end: number;
145
- readonly text: string;
146
- } | undefined;
141
+ readonly name?: string | undefined;
142
+ readonly mention?: Schema.Struct.ReadonlySide<{
143
+ readonly start: Schema.Finite;
144
+ readonly end: Schema.Finite;
145
+ readonly text: Schema.String;
146
+ }, "Type"> | undefined;
147
147
  };
148
148
  }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
149
149
  readonly data: Schema.String;
@@ -168,20 +168,20 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
168
168
  }> & {
169
169
  create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
170
170
  readonly data: string;
171
+ readonly source: Schema.Struct.ReadonlySide<{
172
+ readonly type: Schema.Literal<"inline">;
173
+ }, "Type"> | Schema.Struct.ReadonlySide<{
174
+ readonly type: Schema.Literal<"uri">;
175
+ readonly uri: Schema.String;
176
+ }, "Type">;
171
177
  readonly mime: string;
172
- readonly source: {
173
- readonly type: "inline";
174
- } | {
175
- readonly type: "uri";
176
- readonly uri: string;
177
- };
178
- readonly name?: string | undefined;
179
178
  readonly description?: string | undefined;
180
- readonly mention?: {
181
- readonly start: number;
182
- readonly end: number;
183
- readonly text: string;
184
- } | undefined;
179
+ readonly name?: string | undefined;
180
+ readonly mention?: Schema.Struct.ReadonlySide<{
181
+ readonly start: Schema.Finite;
182
+ readonly end: Schema.Finite;
183
+ readonly text: Schema.String;
184
+ }, "Type"> | undefined;
185
185
  };
186
186
  }>>, never, never>;
187
187
  readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
@@ -495,4 +495,4 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
495
495
  readonly previous: Schema.optional<Schema.String>;
496
496
  readonly next: Schema.optional<Schema.String>;
497
497
  }>;
498
- }>>, HttpApiEndpoint.Json<typeof UnknownError | typeof SessionNotFoundError | typeof InvalidCursorError>, never, never>, false>;
498
+ }>>, Schema.toCodecJson<typeof UnknownError | typeof SessionNotFoundError | typeof InvalidCursorError>, never, never>, false>;
@@ -3,12 +3,12 @@ import { Location } from "@opencode-ai/schema/location";
3
3
  import { Schema } from "effect";
4
4
  import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
5
5
  import { ServiceUnavailableError } from "../errors.js";
6
- export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpApiEndpoint.HttpApiEndpoint<"model.list", "GET", "/api/model", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
6
+ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpApiEndpoint.HttpApiEndpoint<"model.list", "GET", "/api/model", never, Schema.toCodecStringTree<Schema.Struct<{
7
7
  readonly location: Schema.optional<Schema.Struct<{
8
8
  readonly directory: Schema.optional<Schema.String>;
9
9
  readonly workspace: Schema.optional<Schema.String>;
10
10
  }>>;
11
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
11
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
12
12
  readonly location: typeof Location.Info;
13
13
  readonly data: Schema.$Array<Schema.Struct<{
14
14
  readonly capabilities: Schema.Struct<{
@@ -100,12 +100,12 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
100
100
  };
101
101
  };
102
102
  }>;
103
- }>>, HttpApiEndpoint.Json<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"model.default", "GET", "/api/model/default", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
103
+ }>>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"model.default", "GET", "/api/model/default", never, Schema.toCodecStringTree<Schema.Struct<{
104
104
  readonly location: Schema.optional<Schema.Struct<{
105
105
  readonly directory: Schema.optional<Schema.String>;
106
106
  readonly workspace: Schema.optional<Schema.String>;
107
107
  }>>;
108
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
108
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
109
109
  readonly location: typeof Location.Info;
110
110
  readonly data: Schema.UndefinedOr<Schema.Struct<{
111
111
  readonly capabilities: Schema.Struct<{
@@ -197,4 +197,4 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
197
197
  };
198
198
  };
199
199
  }>;
200
- }>>, HttpApiEndpoint.Json<typeof ServiceUnavailableError>, never, never>, false>;
200
+ }>>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never>, false>;