@opencode-ai/protocol
Advanced tools
+2
-2
@@ -37,5 +37,5 @@ import { Context } from "effect"; | ||
| type MixedMiddlewareGroups<LocationId extends HttpApiMiddleware.AnyId, LocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService> = ReturnType<typeof makePermissionGroup<LocationId, LocationService, SessionLocationId, SessionLocationService>> | ReturnType<typeof makeQuestionGroup<LocationId, LocationService, SessionLocationId, SessionLocationService>>; | ||
| type ApiGroups<LocationId extends HttpApiMiddleware.AnyId, LocationService, FormLocationId extends HttpApiMiddleware.AnyId, FormLocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService, Event extends HttpApiGroup.Any> = typeof HealthGroup | typeof ServerGroup | typeof DebugGroup | LocationGroups<LocationId> | FormGroups<LocationId, LocationService, FormLocationId, FormLocationService> | SessionGroups<SessionLocationId, SessionLocationService> | MixedMiddlewareGroups<LocationId, LocationService, SessionLocationId, SessionLocationService> | Event; | ||
| type ApiGroups<LocationId extends HttpApiMiddleware.AnyId, LocationService, FormLocationId extends HttpApiMiddleware.AnyId, FormLocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService, Event extends HttpApiGroup.Constraint> = typeof HealthGroup | typeof ServerGroup | typeof DebugGroup | LocationGroups<LocationId> | FormGroups<LocationId, LocationService, FormLocationId, FormLocationService> | SessionGroups<SessionLocationId, SessionLocationService> | MixedMiddlewareGroups<LocationId, LocationService, SessionLocationId, SessionLocationService> | Event; | ||
| type EventGroupFor<Definitions extends ReadonlyArray<Definition>> = ReturnType<typeof makeEventGroup<Definitions>>; | ||
| export type Api<LocationId extends HttpApiMiddleware.AnyId, LocationService, FormLocationId extends HttpApiMiddleware.AnyId, FormLocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService, Event extends HttpApiGroup.Any> = HttpApi.HttpApi<"server", HttpApiGroup.AddMiddleware<HttpApiGroup.AddMiddleware<ApiGroups<LocationId, LocationService, FormLocationId, FormLocationService, SessionLocationId, SessionLocationService, Event>, Authorization>, SchemaErrorMiddleware>>; | ||
| export type Api<LocationId extends HttpApiMiddleware.AnyId, LocationService, FormLocationId extends HttpApiMiddleware.AnyId, FormLocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService, Event extends HttpApiGroup.Constraint> = HttpApi.HttpApi<"server", HttpApiGroup.AddMiddleware<HttpApiGroup.AddMiddleware<ApiGroups<LocationId, LocationService, FormLocationId, FormLocationService, SessionLocationId, SessionLocationService, Event>, Authorization>, SchemaErrorMiddleware>>; | ||
| export declare const makeApi: <const Definitions extends ReadonlyArray<Definition>, LocationId extends HttpApiMiddleware.AnyId, LocationService, FormLocationId extends HttpApiMiddleware.AnyId, FormLocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService>(options: { | ||
@@ -42,0 +42,0 @@ readonly definitions: Definitions; |
@@ -5,3 +5,3 @@ import { Agent } from "@opencode-ai/schema/agent"; | ||
| import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; | ||
| export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpApiEndpoint.HttpApiEndpoint<"agent.list", "GET", "/api/agent", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpApiEndpoint.HttpApiEndpoint<"agent.list", "GET", "/api/agent", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -11,3 +11,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -100,2 +100,2 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, never>, false>; |
| import { Location } from "@opencode-ai/schema/location"; | ||
| import { Schema } from "effect"; | ||
| import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; | ||
| export declare const CommandGroup: HttpApiGroup.HttpApiGroup<"server.command", HttpApiEndpoint.HttpApiEndpoint<"command.list", "GET", "/api/command", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const CommandGroup: HttpApiGroup.HttpApiGroup<"server.command", HttpApiEndpoint.HttpApiEndpoint<"command.list", "GET", "/api/command", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -9,3 +9,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -64,2 +64,2 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, never>, false>; |
| import { Schema } from "effect"; | ||
| import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi"; | ||
| export declare const CredentialGroup: HttpApiGroup.HttpApiGroup<"server.credential", HttpApiEndpoint.HttpApiEndpoint<"credential.update", "PATCH", "/api/credential/:credentialID", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const CredentialGroup: HttpApiGroup.HttpApiGroup<"server.credential", HttpApiEndpoint.HttpApiEndpoint<"credential.update", "PATCH", "/api/credential/:credentialID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| credentialID: Schema.brand<Schema.String, "Credential.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Credential.ID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -12,9 +12,9 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly label: Schema.String; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"credential.remove", "DELETE", "/api/credential/:credentialID", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"credential.remove", "DELETE", "/api/credential/:credentialID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| credentialID: Schema.brand<Schema.String, "Credential.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Credential.ID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -24,2 +24,2 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never>, false>; |
| import { Schema } from "effect"; | ||
| import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi"; | ||
| export declare const DebugGroup: HttpApiGroup.HttpApiGroup<"server.debug", HttpApiEndpoint.HttpApiEndpoint<"debug.location", "GET", "/api/debug/location", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{ | ||
| export declare const DebugGroup: HttpApiGroup.HttpApiGroup<"server.debug", HttpApiEndpoint.HttpApiEndpoint<"debug.location", "GET", "/api/debug/location", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
@@ -12,3 +12,3 @@ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & { | ||
| }>, never, never>; | ||
| }>>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"debug.location.evict", "DELETE", "/api/debug/location", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"debug.location.evict", "DELETE", "/api/debug/location", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -18,2 +18,2 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never>, false>; |
| import { Location } from "@opencode-ai/schema/location"; | ||
| import { Schema } from "effect"; | ||
| import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; | ||
| export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", HttpApiEndpoint.HttpApiEndpoint<"fs.read", "GET", "/api/fs/read/*", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", HttpApiEndpoint.HttpApiEndpoint<"fs.read", "GET", "/api/fs/read/*", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -9,3 +9,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, 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<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Uint8Array>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.list", "GET", "/api/fs/list", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly path: Schema.optional<Schema.brand<Schema.String, "RelativePath">>; | ||
@@ -16,3 +16,3 @@ readonly location: Schema.optional<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -23,3 +23,3 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.find", "GET", "/api/fs/find", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.find", "GET", "/api/fs/find", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly query: Schema.String; | ||
@@ -32,3 +32,3 @@ readonly type: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["file", "directory"]>>>, Schema.optionalKey<Schema.Literals<readonly ["file", "directory"]>>, never, never>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -39,2 +39,2 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, never>, false>; |
| import { Schema } from "effect"; | ||
| import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; | ||
| import { InvalidRequestError, ServiceUnavailableError } from "../errors.js"; | ||
| export declare const GenerateGroup: HttpApiGroup.HttpApiGroup<"server.generate", HttpApiEndpoint.HttpApiEndpoint<"generate.text", "POST", "/api/generate", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const GenerateGroup: HttpApiGroup.HttpApiGroup<"server.generate", HttpApiEndpoint.HttpApiEndpoint<"generate.text", "POST", "/api/generate", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -9,3 +9,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly prompt: Schema.String; | ||
@@ -35,6 +35,6 @@ readonly model: Schema.optional<Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly data: Schema.Struct<{ | ||
| readonly text: Schema.String; | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof InvalidRequestError | typeof ServiceUnavailableError>, never, never>, false>; | ||
| }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof ServiceUnavailableError>, never, never>, false>; |
@@ -19,10 +19,10 @@ import { Schema } from "effect"; | ||
| } | ||
| 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<{ | ||
| export declare const HealthGroup: HttpApiGroup.HttpApiGroup<"server.health", HttpApiEndpoint.HttpApiEndpoint<"health.get", "GET", "/api/health", never, never, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly healthy: Schema.Literal<true>; | ||
| readonly version: Schema.String; | ||
| readonly pid: Schema.Int; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"health.stop", "POST", "/api/service/stop", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"health.stop", "POST", "/api/service/stop", never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly instanceID: Schema.String; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly accepted: Schema.Boolean; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, never>, false>; |
@@ -6,3 +6,3 @@ import { Integration } from "@opencode-ai/schema/integration"; | ||
| import { InvalidRequestError } from "../errors.js"; | ||
| export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integration", HttpApiEndpoint.HttpApiEndpoint<"integration.list", "GET", "/api/integration", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integration", HttpApiEndpoint.HttpApiEndpoint<"integration.list", "GET", "/api/integration", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -12,3 +12,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -110,5 +110,5 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.get", "GET", "/api/integration/:integrationID", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.get", "GET", "/api/integration/:integrationID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| integrationID: Schema.brand<Schema.String, "Integration.ID">; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -118,3 +118,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -216,3 +216,3 @@ readonly data: Schema.UndefinedOr<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.wellknown.add", "POST", "/api/experimental/integration/wellknown", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.wellknown.add", "POST", "/api/experimental/integration/wellknown", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -222,7 +222,7 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly url: Schema.String; | ||
| }>>, 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<{ | ||
| }>>, 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<{ | ||
| integrationID: Schema.brand<Schema.String, "Integration.ID">; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -232,8 +232,8 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly key: Schema.String; | ||
| readonly label: Schema.optional<Schema.String>; | ||
| }>>, 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<{ | ||
| }>>, 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<{ | ||
| integrationID: Schema.brand<Schema.String, "Integration.ID">; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -243,10 +243,10 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">; | ||
| readonly inputs: Schema.$Record<Schema.String, Schema.String>; | ||
| readonly label: Schema.optional<Schema.String>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
| readonly data: typeof Integration.Attempt; | ||
| }>>, HttpApiEndpoint.Json<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.oauth.status", "GET", "/api/integration/:integrationID/connect/oauth/:attemptID", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.oauth.status", "GET", "/api/integration/:integrationID/connect/oauth/:attemptID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| integrationID: Schema.brand<Schema.String, "Integration.ID">; | ||
@@ -256,3 +256,3 @@ attemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & { | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -262,3 +262,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -291,3 +291,3 @@ readonly data: Schema.Union<readonly [Schema.Struct<{ | ||
| }>]>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.oauth.complete", "POST", "/api/integration/:integrationID/connect/oauth/:attemptID/complete", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.oauth.complete", "POST", "/api/integration/:integrationID/connect/oauth/:attemptID/complete", Schema.toCodecStringTree<Schema.Struct<{ | ||
| integrationID: Schema.brand<Schema.String, "Integration.ID">; | ||
@@ -297,3 +297,3 @@ attemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & { | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -303,5 +303,5 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly code: Schema.optional<Schema.String>; | ||
| }>>, 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<{ | ||
| }>>, 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<{ | ||
| integrationID: Schema.brand<Schema.String, "Integration.ID">; | ||
@@ -311,3 +311,3 @@ attemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & { | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -317,5 +317,5 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, 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<{ | ||
| }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.command.connect", "POST", "/api/integration/:integrationID/connect/command", Schema.toCodecStringTree<Schema.Struct<{ | ||
| integrationID: Schema.brand<Schema.String, "Integration.ID">; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -325,6 +325,6 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">; | ||
| readonly label: Schema.optional<Schema.String>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -340,3 +340,3 @@ readonly data: Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.command.status", "GET", "/api/integration/:integrationID/connect/command/:attemptID", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.command.status", "GET", "/api/integration/:integrationID/connect/command/:attemptID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| integrationID: Schema.brand<Schema.String, "Integration.ID">; | ||
@@ -346,3 +346,3 @@ attemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & { | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -352,3 +352,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -382,3 +382,3 @@ readonly data: Schema.Union<readonly [Schema.Struct<{ | ||
| }>]>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.command.cancel", "DELETE", "/api/integration/:integrationID/connect/command/:attemptID", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.command.cancel", "DELETE", "/api/integration/:integrationID/connect/command/:attemptID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| integrationID: Schema.brand<Schema.String, "Integration.ID">; | ||
@@ -388,3 +388,3 @@ attemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & { | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -394,2 +394,2 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never>, false>; |
@@ -11,3 +11,3 @@ import { Location } from "@opencode-ai/schema/location"; | ||
| export declare const locationQueryOpenApi: import("effect/Context").Context<never>; | ||
| export declare const LocationGroup: HttpApiGroup.HttpApiGroup<"server.location", HttpApiEndpoint.HttpApiEndpoint<"location.get", "GET", "/api/location", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const LocationGroup: HttpApiGroup.HttpApiGroup<"server.location", HttpApiEndpoint.HttpApiEndpoint<"location.get", "GET", "/api/location", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -17,2 +17,2 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<typeof Location.Info>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, Schema.toCodecJson<typeof Location.Info>, never, never, never>, false>; |
| import { Location } from "@opencode-ai/schema/location"; | ||
| import { Schema } from "effect"; | ||
| import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; | ||
| export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEndpoint.HttpApiEndpoint<"mcp.list", "GET", "/api/mcp", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEndpoint.HttpApiEndpoint<"mcp.list", "GET", "/api/mcp", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -9,3 +9,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -31,3 +31,3 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.resource.catalog", "GET", "/api/mcp/resource", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.resource.catalog", "GET", "/api/mcp/resource", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -37,3 +37,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -56,2 +56,2 @@ readonly data: Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, never>, false>; |
+28
-28
@@ -9,3 +9,3 @@ import { Schema } from "effect"; | ||
| }>; | ||
| export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", HttpApiEndpoint.HttpApiEndpoint<"session.messages", "GET", "/api/session/:sessionID/message", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", HttpApiEndpoint.HttpApiEndpoint<"session.messages", "GET", "/api/session/:sessionID/message", Schema.toCodecStringTree<Schema.Struct<{ | ||
| sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
@@ -15,7 +15,7 @@ create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly limit: Schema.optional<Schema.NumberFromString>; | ||
| readonly order: Schema.optional<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>; | ||
| readonly cursor: Schema.optional<Schema.String>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{ | ||
@@ -135,16 +135,16 @@ readonly type: Schema.tag<"agent-switched">; | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly description?: string | undefined; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -174,16 +174,16 @@ }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly description?: string | undefined; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -502,2 +502,2 @@ }>>, never, never>; | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof UnknownError | typeof SessionNotFoundError | typeof InvalidCursorError>, never, never>, false>; | ||
| }>>, Schema.toCodecJson<typeof UnknownError | typeof SessionNotFoundError | typeof InvalidCursorError>, never, never>, false>; |
@@ -6,3 +6,3 @@ import { Model } from "@opencode-ai/schema/model"; | ||
| import { ServiceUnavailableError } from "../errors.js"; | ||
| export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpApiEndpoint.HttpApiEndpoint<"model.list", "GET", "/api/model", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpApiEndpoint.HttpApiEndpoint<"model.list", "GET", "/api/model", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -12,3 +12,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -105,3 +105,3 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"model.default", "GET", "/api/model/default", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"model.default", "GET", "/api/model/default", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -111,3 +111,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -204,2 +204,2 @@ readonly data: Schema.UndefinedOr<Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof ServiceUnavailableError>, never, never>, false>; | ||
| }>>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never>, false>; |
@@ -5,3 +5,3 @@ import { Location } from "@opencode-ai/schema/location"; | ||
| import { PermissionNotFoundError, SessionNotFoundError } from "../errors.js"; | ||
| export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService>(locationMiddleware: Context.Key<LocationId, LocationService>, sessionLocationMiddleware: Context.Key<SessionLocationId, SessionLocationService>) => HttpApiGroup.HttpApiGroup<"server.permission", HttpApiEndpoint.HttpApiEndpoint<"permission.request.list", "GET", "/api/permission/request", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService>(locationMiddleware: Context.Key<LocationId, LocationService>, sessionLocationMiddleware: Context.Key<SessionLocationId, SessionLocationService>) => HttpApiGroup.HttpApiGroup<"server.permission", HttpApiEndpoint.HttpApiEndpoint<"permission.request.list", "GET", "/api/permission/request", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -11,3 +11,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -36,7 +36,7 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.saved.list", "GET", "/api/permission/saved", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.saved.list", "GET", "/api/permission/saved", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly projectID: Schema.optional<Schema.brand<Schema.String, "Project.ID"> & { | ||
| global: string & import("effect/Brand").Brand<"Project.ID">; | ||
| }>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly data: Schema.$Array<Schema.Struct<{ | ||
@@ -52,7 +52,7 @@ readonly id: Schema.brand<Schema.String, "PermissionSaved.ID"> & { | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.saved.remove", "DELETE", "/api/permission/saved/:id", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.saved.remove", "DELETE", "/api/permission/saved/:id", Schema.toCodecStringTree<Schema.Struct<{ | ||
| id: Schema.brand<Schema.String, "PermissionSaved.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<never>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.create", "POST", "/api/session/:sessionID/permission", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.create", "POST", "/api/session/:sessionID/permission", Schema.toCodecStringTree<Schema.Struct<{ | ||
| sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
@@ -62,3 +62,3 @@ create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly id: Schema.optional<Schema.brand<Schema.String, "PermissionV2.ID"> & { | ||
@@ -81,3 +81,3 @@ create: (id?: string) => string & import("effect/Brand").Brand<"PermissionV2.ID">; | ||
| readonly agent: Schema.optional<Schema.brand<Schema.String, "Agent.ID">>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly data: Schema.Struct<{ | ||
@@ -89,3 +89,3 @@ readonly id: Schema.brand<Schema.String, "PermissionV2.ID"> & { | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof SessionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.list", "GET", "/api/session/:sessionID/permission", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof SessionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.list", "GET", "/api/session/:sessionID/permission", Schema.toCodecStringTree<Schema.Struct<{ | ||
| sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
@@ -95,3 +95,3 @@ create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly data: Schema.$Array<Schema.Struct<{ | ||
@@ -119,3 +119,3 @@ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<typeof SessionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.get", "GET", "/api/session/:sessionID/permission/:requestID", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof SessionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.get", "GET", "/api/session/:sessionID/permission/:requestID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
@@ -128,3 +128,3 @@ create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly data: Schema.Struct<{ | ||
@@ -152,3 +152,3 @@ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof SessionNotFoundError | typeof PermissionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.reply", "POST", "/api/session/:sessionID/permission/:requestID/reply", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof PermissionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.reply", "POST", "/api/session/:sessionID/permission/:requestID/reply", Schema.toCodecStringTree<Schema.Struct<{ | ||
| sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
@@ -161,5 +161,5 @@ create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>; | ||
| readonly message: Schema.optional<Schema.String>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError | typeof PermissionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>>, false>; | ||
| }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof PermissionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>>, false>; |
| import { Location } from "@opencode-ai/schema/location"; | ||
| import { Schema } from "effect"; | ||
| import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; | ||
| export declare const PluginGroup: HttpApiGroup.HttpApiGroup<"server.plugin", HttpApiEndpoint.HttpApiEndpoint<"plugin.list", "GET", "/api/plugin", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const PluginGroup: HttpApiGroup.HttpApiGroup<"server.plugin", HttpApiEndpoint.HttpApiEndpoint<"plugin.list", "GET", "/api/plugin", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -9,3 +9,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -15,2 +15,2 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, never>, false>; |
@@ -12,7 +12,7 @@ import { Schema } from "effect"; | ||
| } | ||
| export declare const ProjectCopyGroup: HttpApiGroup.HttpApiGroup<"server.projectCopy", HttpApiEndpoint.HttpApiEndpoint<"projectCopy.create", "POST", "/experimental/project/:projectID/copy", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const ProjectCopyGroup: HttpApiGroup.HttpApiGroup<"server.projectCopy", HttpApiEndpoint.HttpApiEndpoint<"projectCopy.create", "POST", "/experimental/project/:projectID/copy", Schema.toCodecStringTree<Schema.Struct<{ | ||
| projectID: Schema.brand<Schema.String, "Project.ID"> & { | ||
| global: string & import("effect/Brand").Brand<"Project.ID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -22,13 +22,13 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly strategy: Schema.brand<Schema.Trim, "ProjectCopy.StrategyID">; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| }>>, HttpApiEndpoint.Json<typeof ProjectCopyError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"projectCopy.remove", "DELETE", "/experimental/project/:projectID/copy", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof ProjectCopyError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"projectCopy.remove", "DELETE", "/experimental/project/:projectID/copy", Schema.toCodecStringTree<Schema.Struct<{ | ||
| projectID: Schema.brand<Schema.String, "Project.ID"> & { | ||
| global: string & import("effect/Brand").Brand<"Project.ID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -38,10 +38,10 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly force: Schema.Boolean; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof ProjectCopyError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"projectCopy.refresh", "POST", "/experimental/project/:projectID/copy/refresh", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ProjectCopyError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"projectCopy.refresh", "POST", "/experimental/project/:projectID/copy/refresh", Schema.toCodecStringTree<Schema.Struct<{ | ||
| projectID: Schema.brand<Schema.String, "Project.ID"> & { | ||
| global: string & import("effect/Brand").Brand<"Project.ID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -51,3 +51,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof ProjectCopyError>, never, never>, false>; | ||
| }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ProjectCopyError>, never, never>, false>; | ||
| export {}; |
| import { Schema } from "effect"; | ||
| import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; | ||
| export declare const ProjectGroup: HttpApiGroup.HttpApiGroup<"server.project", HttpApiEndpoint.HttpApiEndpoint<"project.list", "GET", "/api/project", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{ | ||
| export declare const ProjectGroup: HttpApiGroup.HttpApiGroup<"server.project", HttpApiEndpoint.HttpApiEndpoint<"project.list", "GET", "/api/project", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{ | ||
| readonly id: Schema.brand<Schema.String, "Project.ID"> & { | ||
@@ -30,3 +30,3 @@ global: string & import("effect/Brand").Brand<"Project.ID">; | ||
| readonly sandboxes: Schema.$Array<Schema.String>; | ||
| }>>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"project.current", "GET", "/api/project/current", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"project.current", "GET", "/api/project/current", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -36,3 +36,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly id: Schema.brand<Schema.String, "Project.ID"> & { | ||
@@ -42,7 +42,7 @@ global: string & import("effect/Brand").Brand<"Project.ID">; | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"project.directories", "GET", "/api/project/:projectID/directories", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"project.directories", "GET", "/api/project/:projectID/directories", Schema.toCodecStringTree<Schema.Struct<{ | ||
| projectID: Schema.brand<Schema.String, "Project.ID"> & { | ||
| global: string & import("effect/Brand").Brand<"Project.ID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -52,5 +52,5 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly strategy: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| }>>>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>>, never, never, never>, false>; |
@@ -6,3 +6,3 @@ import { Provider } from "@opencode-ai/schema/provider"; | ||
| import { ProviderNotFoundError, ServiceUnavailableError } from "../errors.js"; | ||
| export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider", HttpApiEndpoint.HttpApiEndpoint<"provider.list", "GET", "/api/provider", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider", HttpApiEndpoint.HttpApiEndpoint<"provider.list", "GET", "/api/provider", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -12,3 +12,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -39,3 +39,3 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"provider.get", "GET", "/api/provider/:providerID", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"provider.get", "GET", "/api/provider/:providerID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & { | ||
@@ -54,3 +54,3 @@ opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -60,3 +60,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -87,2 +87,2 @@ readonly data: Schema.Struct<{ | ||
| }; | ||
| }>>, HttpApiEndpoint.Json<typeof ServiceUnavailableError | typeof ProviderNotFoundError>, never, never>, false>; | ||
| }>>, Schema.toCodecJson<typeof ServiceUnavailableError | typeof ProviderNotFoundError>, never, never>, false>; |
+19
-19
@@ -9,3 +9,3 @@ import { Location } from "@opencode-ai/schema/location"; | ||
| export declare function hasPtyConnectTicketURL(url: URL): boolean; | ||
| export declare const PtyGroup: HttpApiGroup.HttpApiGroup<"server.pty", HttpApiEndpoint.HttpApiEndpoint<"pty.list", "GET", "/api/pty", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const PtyGroup: HttpApiGroup.HttpApiGroup<"server.pty", HttpApiEndpoint.HttpApiEndpoint<"pty.list", "GET", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -15,3 +15,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -31,3 +31,3 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pty.create", "POST", "/api/pty", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pty.create", "POST", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -37,3 +37,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly command: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
@@ -44,3 +44,3 @@ readonly args: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>; | ||
| readonly env: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -60,3 +60,3 @@ readonly data: Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pty.get", "GET", "/api/pty/:ptyID", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pty.get", "GET", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| ptyID: Schema.brand<Schema.String, "PtyID"> & { | ||
@@ -66,3 +66,3 @@ create: () => string & import("effect/Brand").Brand<"PtyID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -72,3 +72,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -88,3 +88,3 @@ readonly data: Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof PtyNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pty.update", "PUT", "/api/pty/:ptyID", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof PtyNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pty.update", "PUT", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| ptyID: Schema.brand<Schema.String, "PtyID"> & { | ||
@@ -94,3 +94,3 @@ create: () => string & import("effect/Brand").Brand<"PtyID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -100,3 +100,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
@@ -110,3 +110,3 @@ readonly size: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{ | ||
| }>>, never, never>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -126,3 +126,3 @@ readonly data: Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof PtyNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pty.remove", "DELETE", "/api/pty/:ptyID", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof PtyNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pty.remove", "DELETE", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| ptyID: Schema.brand<Schema.String, "PtyID"> & { | ||
@@ -132,3 +132,3 @@ create: () => string & import("effect/Brand").Brand<"PtyID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -138,3 +138,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof PtyNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pty.connectToken", "POST", "/api/pty/:ptyID/connect-token", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof PtyNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pty.connectToken", "POST", "/api/pty/:ptyID/connect-token", Schema.toCodecStringTree<Schema.Struct<{ | ||
| ptyID: Schema.brand<Schema.String, "PtyID"> & { | ||
@@ -144,3 +144,3 @@ create: () => string & import("effect/Brand").Brand<"PtyID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -150,3 +150,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -157,3 +157,3 @@ readonly data: Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof ForbiddenError | typeof PtyNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pty.connect", "GET", "/api/pty/:ptyID/connect", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof ForbiddenError | typeof PtyNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pty.connect", "GET", "/api/pty/:ptyID/connect", Schema.toCodecStringTree<Schema.Struct<{ | ||
| ptyID: Schema.brand<Schema.String, "PtyID"> & { | ||
@@ -163,2 +163,2 @@ create: () => string & import("effect/Brand").Brand<"PtyID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Boolean>, HttpApiEndpoint.Json<typeof ForbiddenError | typeof PtyNotFoundError>, never, never>, false>; | ||
| }>>, never, never, never, Schema.toCodecJson<Schema.Boolean>, Schema.toCodecJson<typeof ForbiddenError | typeof PtyNotFoundError>, never, never>, false>; |
@@ -5,3 +5,3 @@ import { Location } from "@opencode-ai/schema/location"; | ||
| import { QuestionNotFoundError, SessionNotFoundError } from "../errors.js"; | ||
| export declare const makeQuestionGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService>(locationMiddleware: Context.Key<LocationId, LocationService>, sessionLocationMiddleware: Context.Key<SessionLocationId, SessionLocationService>) => HttpApiGroup.HttpApiGroup<"server.question", HttpApiEndpoint.HttpApiEndpoint<"question.request.list", "GET", "/api/question/request", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const makeQuestionGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService>(locationMiddleware: Context.Key<LocationId, LocationService>, sessionLocationMiddleware: Context.Key<SessionLocationId, SessionLocationService>) => HttpApiGroup.HttpApiGroup<"server.question", HttpApiEndpoint.HttpApiEndpoint<"question.request.list", "GET", "/api/question/request", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -11,3 +11,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -41,3 +41,3 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.question.list", "GET", "/api/session/:sessionID/question", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.question.list", "GET", "/api/session/:sessionID/question", Schema.toCodecStringTree<Schema.Struct<{ | ||
| sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
@@ -47,3 +47,3 @@ create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly data: Schema.$Array<Schema.Struct<{ | ||
@@ -76,3 +76,3 @@ readonly id: Schema.brand<Schema.String, "QuestionV2.ID"> & { | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<typeof SessionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.question.reply", "POST", "/api/session/:sessionID/question/:requestID/reply", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof SessionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.question.reply", "POST", "/api/session/:sessionID/question/:requestID/reply", Schema.toCodecStringTree<Schema.Struct<{ | ||
| sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
@@ -86,5 +86,5 @@ create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly answers: Schema.$Array<Schema.$Array<Schema.String>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError | typeof QuestionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.question.reject", "POST", "/api/session/:sessionID/question/:requestID/reject", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof QuestionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.question.reject", "POST", "/api/session/:sessionID/question/:requestID/reject", Schema.toCodecStringTree<Schema.Struct<{ | ||
| sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
@@ -98,2 +98,2 @@ create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError | typeof QuestionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>>, false>; | ||
| }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof QuestionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>>, false>; |
| import { Location } from "@opencode-ai/schema/location"; | ||
| import { Schema } from "effect"; | ||
| import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; | ||
| export declare const ReferenceGroup: HttpApiGroup.HttpApiGroup<"server.reference", HttpApiEndpoint.HttpApiEndpoint<"reference.list", "GET", "/api/reference", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const ReferenceGroup: HttpApiGroup.HttpApiGroup<"server.reference", HttpApiEndpoint.HttpApiEndpoint<"reference.list", "GET", "/api/reference", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -9,3 +9,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -30,2 +30,2 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, never>, false>; |
| import { Schema } from "effect"; | ||
| import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; | ||
| export declare const ServerGroup: HttpApiGroup.HttpApiGroup<"server.server", HttpApiEndpoint.HttpApiEndpoint<"server.get", "GET", "/api/server", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| export declare const ServerGroup: HttpApiGroup.HttpApiGroup<"server.server", HttpApiEndpoint.HttpApiEndpoint<"server.get", "GET", "/api/server", never, never, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly urls: Schema.$Array<Schema.String>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, never>, false>; |
@@ -404,2 +404,16 @@ import { SessionMessage } from "@opencode-ai/schema/session-message"; | ||
| }))) | ||
| .add(HttpApiEndpoint.post("session.generate", "/api/session/:sessionID/generate", { | ||
| params: { sessionID: Session.ID }, | ||
| payload: Schema.Struct({ prompt: Schema.String }), | ||
| success: Schema.Struct({ | ||
| data: Schema.Struct({ text: Schema.String }), | ||
| }).annotate({ identifier: "SessionGenerateResponse" }), | ||
| error: [SessionNotFoundError, ServiceUnavailableError], | ||
| }) | ||
| .middleware(sessionLocationMiddleware) | ||
| .annotateMerge(OpenApi.annotations({ | ||
| identifier: "v2.session.generate", | ||
| summary: "Generate text from session context", | ||
| description: "Generate transient text from the current session context without mutating session history.", | ||
| }))) | ||
| .add(HttpApiEndpoint.get("session.log", "/api/experimental/session/:sessionID/log", { | ||
@@ -406,0 +420,0 @@ params: { sessionID: Session.ID }, |
+18
-18
@@ -5,3 +5,3 @@ import { Location } from "@opencode-ai/schema/location"; | ||
| import { ShellNotFoundError } from "../errors.js"; | ||
| export declare const ShellGroup: HttpApiGroup.HttpApiGroup<"server.shell", HttpApiEndpoint.HttpApiEndpoint<"shell.list", "GET", "/api/shell", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const ShellGroup: HttpApiGroup.HttpApiGroup<"server.shell", HttpApiEndpoint.HttpApiEndpoint<"shell.list", "GET", "/api/shell", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -11,3 +11,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -32,3 +32,3 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"shell.create", "POST", "/api/shell", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"shell.create", "POST", "/api/shell", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -38,3 +38,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly command: Schema.String; | ||
@@ -44,3 +44,3 @@ readonly cwd: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -65,3 +65,3 @@ readonly data: Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"shell.get", "GET", "/api/shell/:id", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"shell.get", "GET", "/api/shell/:id", Schema.toCodecStringTree<Schema.Struct<{ | ||
| id: Schema.brand<Schema.String, "Shell.ID"> & { | ||
@@ -71,3 +71,3 @@ create: () => string & import("effect/Brand").Brand<"Shell.ID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -77,3 +77,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -98,3 +98,3 @@ readonly data: Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof ShellNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"shell.timeout", "PATCH", "/api/shell/:id/timeout", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof ShellNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"shell.timeout", "PATCH", "/api/shell/:id/timeout", Schema.toCodecStringTree<Schema.Struct<{ | ||
| id: Schema.brand<Schema.String, "Shell.ID"> & { | ||
@@ -104,3 +104,3 @@ create: () => string & import("effect/Brand").Brand<"Shell.ID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -110,5 +110,5 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly timeout: Schema.Int; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -133,3 +133,3 @@ readonly data: Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof ShellNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"shell.output", "GET", "/api/shell/:id/output", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof ShellNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"shell.output", "GET", "/api/shell/:id/output", Schema.toCodecStringTree<Schema.Struct<{ | ||
| id: Schema.brand<Schema.String, "Shell.ID"> & { | ||
@@ -139,3 +139,3 @@ create: () => string & import("effect/Brand").Brand<"Shell.ID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly cursor: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>; | ||
@@ -147,3 +147,3 @@ readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -156,3 +156,3 @@ readonly data: Schema.Struct<{ | ||
| }>; | ||
| }>>, HttpApiEndpoint.Json<typeof ShellNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"shell.remove", "DELETE", "/api/shell/:id", HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof ShellNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"shell.remove", "DELETE", "/api/shell/:id", Schema.toCodecStringTree<Schema.Struct<{ | ||
| id: Schema.brand<Schema.String, "Shell.ID"> & { | ||
@@ -162,3 +162,3 @@ create: () => string & import("effect/Brand").Brand<"Shell.ID">; | ||
| }; | ||
| }>>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -168,2 +168,2 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof ShellNotFoundError>, never, never>, false>; | ||
| }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ShellNotFoundError>, never, never>, false>; |
| import { Location } from "@opencode-ai/schema/location"; | ||
| import { Schema } from "effect"; | ||
| import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; | ||
| export declare const SkillGroup: HttpApiGroup.HttpApiGroup<"server.skill", HttpApiEndpoint.HttpApiEndpoint<"skill.list", "GET", "/api/skill", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const SkillGroup: HttpApiGroup.HttpApiGroup<"server.skill", HttpApiEndpoint.HttpApiEndpoint<"skill.list", "GET", "/api/skill", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -9,3 +9,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -21,2 +21,2 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, never>, false>; |
| import { Location } from "@opencode-ai/schema/location"; | ||
| import { Schema } from "effect"; | ||
| import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; | ||
| export declare const VcsGroup: HttpApiGroup.HttpApiGroup<"server.vcs", HttpApiEndpoint.HttpApiEndpoint<"vcs.status", "GET", "/api/vcs/status", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| export declare const VcsGroup: HttpApiGroup.HttpApiGroup<"server.vcs", HttpApiEndpoint.HttpApiEndpoint<"vcs.status", "GET", "/api/vcs/status", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly location: Schema.optional<Schema.Struct<{ | ||
@@ -9,3 +9,3 @@ readonly directory: Schema.optional<Schema.String>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -18,3 +18,3 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"vcs.diff", "GET", "/api/vcs/diff", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{ | ||
| }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"vcs.diff", "GET", "/api/vcs/diff", never, Schema.toCodecStringTree<Schema.Struct<{ | ||
| readonly mode: Schema.Literals<readonly ["working", "branch"]>; | ||
@@ -26,3 +26,3 @@ readonly context: Schema.optional<Schema.compose<Schema.Int, Schema.NumberFromString>>; | ||
| }>>; | ||
| }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{ | ||
| }>>, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly location: typeof Location.Info; | ||
@@ -36,2 +36,2 @@ readonly data: Schema.$Array<Schema.Struct<{ | ||
| }>>; | ||
| }>>, HttpApiEndpoint.Json<never>, never, never>, false>; | ||
| }>>, never, never, never>, false>; |
+3
-3
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/protocol", | ||
| "version": "0.0.0-next-15718", | ||
| "version": "0.0.0-next-15747", | ||
| "type": "module", | ||
@@ -29,4 +29,4 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@opencode-ai/schema": "0.0.0-next-15718", | ||
| "effect": "4.0.0-beta.83" | ||
| "@opencode-ai/schema": "0.0.0-next-15747", | ||
| "effect": "4.0.0-beta.98" | ||
| }, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1971059
5.1%31192
2.96%+ Added
+ Added
- Removed
- Removed
Updated