@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.
- package/dist/api.d.ts +2 -2
- package/dist/groups/agent.d.ts +3 -3
- package/dist/groups/command.d.ts +3 -3
- package/dist/groups/credential.d.ts +6 -6
- package/dist/groups/debug.d.ts +3 -3
- package/dist/groups/event.d.ts +2757 -2103
- package/dist/groups/form.d.ts +15 -15
- package/dist/groups/fs.d.ts +6 -6
- package/dist/groups/generate.d.ts +4 -4
- package/dist/groups/health.d.ts +4 -4
- package/dist/groups/integration.d.ts +32 -32
- package/dist/groups/location.d.ts +2 -2
- package/dist/groups/mcp.d.ts +5 -5
- package/dist/groups/message.d.ts +28 -28
- package/dist/groups/model.d.ts +5 -5
- package/dist/groups/permission.d.ts +15 -15
- package/dist/groups/plugin.d.ts +3 -3
- package/dist/groups/project-copy.d.ts +10 -10
- package/dist/groups/project.d.ts +7 -7
- package/dist/groups/provider.d.ts +6 -6
- package/dist/groups/pty.d.ts +19 -19
- package/dist/groups/question.d.ts +8 -8
- package/dist/groups/reference.d.ts +3 -3
- package/dist/groups/server.d.ts +2 -2
- package/dist/groups/session.d.ts +1215 -971
- package/dist/groups/session.js +14 -0
- package/dist/groups/shell.d.ts +18 -18
- package/dist/groups/skill.d.ts +3 -3
- package/dist/groups/vcs.d.ts +5 -5
- package/package.json +3 -3
package/dist/groups/form.d.ts
CHANGED
|
@@ -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",
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
780
|
+
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof FormNotFoundError | typeof FormAlreadySettledError>, FormLocationId, HttpApiMiddleware.Requires<FormLocationId>>, false>;
|
|
781
781
|
export {};
|
package/dist/groups/fs.d.ts
CHANGED
|
@@ -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/*",
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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",
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
34
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
35
35
|
readonly data: Schema.Struct<{
|
|
36
36
|
readonly text: Schema.String;
|
|
37
37
|
}>;
|
|
38
|
-
}>>,
|
|
38
|
+
}>>, Schema.toCodecJson<typeof InvalidRequestError | typeof ServiceUnavailableError>, never, never>, false>;
|
package/dist/groups/health.d.ts
CHANGED
|
@@ -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",
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
25
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
26
26
|
readonly accepted: Schema.Boolean;
|
|
27
|
-
}>>,
|
|
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",
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
217
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
218
218
|
readonly url: Schema.String;
|
|
219
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
226
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
227
227
|
readonly key: Schema.String;
|
|
228
228
|
readonly label: Schema.optional<Schema.String>;
|
|
229
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
240
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
241
241
|
readonly location: typeof Location.Info;
|
|
242
242
|
readonly data: typeof Integration.Attempt;
|
|
243
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
291
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
292
292
|
readonly code: Schema.optional<Schema.String>;
|
|
293
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
310
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
311
311
|
readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
312
312
|
readonly label: Schema.optional<Schema.String>;
|
|
313
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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",
|
|
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
|
-
}>>,
|
|
16
|
+
}>>, never, never, Schema.toCodecJson<typeof Location.Info>, never, never, never>, false>;
|
package/dist/groups/mcp.d.ts
CHANGED
|
@@ -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",
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
53
|
+
}>>, never, never, never>, false>;
|
package/dist/groups/message.d.ts
CHANGED
|
@@ -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",
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
|
143
|
-
|
|
144
|
-
readonly
|
|
145
|
-
readonly
|
|
146
|
-
|
|
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
|
|
181
|
-
|
|
182
|
-
readonly
|
|
183
|
-
readonly
|
|
184
|
-
|
|
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
|
-
}>>,
|
|
498
|
+
}>>, Schema.toCodecJson<typeof UnknownError | typeof SessionNotFoundError | typeof InvalidCursorError>, never, never>, false>;
|
package/dist/groups/model.d.ts
CHANGED
|
@@ -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",
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
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
|
-
}>>,
|
|
200
|
+
}>>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never>, false>;
|