@opencode-ai/protocol 0.0.0-next-16255 → 0.0.0-next-16273

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/errors.d.ts CHANGED
@@ -41,6 +41,12 @@ declare const ProviderNotFoundError_base: Schema.Class<ProviderNotFoundError, Sc
41
41
  }>, import("effect/Cause").YieldableError>;
42
42
  export declare class ProviderNotFoundError extends ProviderNotFoundError_base {
43
43
  }
44
+ declare const AgentNotFoundError_base: Schema.Class<AgentNotFoundError, Schema.TaggedStruct<"AgentNotFoundError", {
45
+ readonly agentID: Schema.String;
46
+ readonly message: Schema.String;
47
+ }>, import("effect/Cause").YieldableError>;
48
+ export declare class AgentNotFoundError extends AgentNotFoundError_base {
49
+ }
44
50
  declare const SessionNotFoundError_base: Schema.Class<SessionNotFoundError, Schema.TaggedStruct<"SessionNotFoundError", {
45
51
  readonly sessionID: Schema.String;
46
52
  readonly message: Schema.String;
package/dist/errors.js CHANGED
@@ -33,6 +33,11 @@ export class ProviderNotFoundError extends Schema.TaggedErrorClass()("ProviderNo
33
33
  message: Schema.String,
34
34
  }, { httpApiStatus: 404 }) {
35
35
  }
36
+ export class AgentNotFoundError extends Schema.TaggedErrorClass()("AgentNotFoundError", {
37
+ agentID: Schema.String,
38
+ message: Schema.String,
39
+ }, { httpApiStatus: 404 }) {
40
+ }
36
41
  export class SessionNotFoundError extends Schema.TaggedErrorClass()("SessionNotFoundError", {
37
42
  sessionID: Schema.String,
38
43
  message: Schema.String,
@@ -2,6 +2,7 @@ import { Agent } from "@opencode-ai/schema/agent";
2
2
  import { Location } from "@opencode-ai/schema/location";
3
3
  import { Schema } from "effect";
4
4
  import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
5
+ import { AgentNotFoundError } from "../errors.js";
5
6
  export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpApiEndpoint.HttpApiEndpoint<"agent.list", "GET", "/api/agent", never, Schema.toCodecStringTree<Schema.Struct<{
6
7
  readonly location: Schema.optional<Schema.Struct<{
7
8
  readonly directory: Schema.optional<Schema.String>;
@@ -14,53 +15,53 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
14
15
  readonly name: Schema.brand<Schema.String, "Agent.Name">;
15
16
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
16
17
  readonly id: Schema.brand<Schema.String, "Model.ID">;
17
- readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
18
- opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
19
- anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
20
- openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
21
- google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
22
- googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
23
- githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
24
- amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
25
- azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
26
- openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
27
- mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
28
- gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
18
+ readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
19
+ opencode: string & import("effect/Brand").Brand<"Provider.ID">;
20
+ anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
21
+ openai: string & import("effect/Brand").Brand<"Provider.ID">;
22
+ google: string & import("effect/Brand").Brand<"Provider.ID">;
23
+ googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
24
+ githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
25
+ amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
26
+ azure: string & import("effect/Brand").Brand<"Provider.ID">;
27
+ openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
28
+ mistral: string & import("effect/Brand").Brand<"Provider.ID">;
29
+ gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
29
30
  };
30
31
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
31
32
  }> & {
32
33
  parse: (input: string) => {
33
34
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
34
- readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
35
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
35
36
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
36
37
  };
37
38
  }>>, Schema.optionalKey<Schema.Struct<{
38
39
  readonly id: Schema.brand<Schema.String, "Model.ID">;
39
- readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
40
- opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
41
- anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
42
- openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
43
- google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
44
- googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
45
- githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
46
- amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
47
- azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
48
- openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
49
- mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
50
- gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
40
+ readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
41
+ opencode: string & import("effect/Brand").Brand<"Provider.ID">;
42
+ anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
43
+ openai: string & import("effect/Brand").Brand<"Provider.ID">;
44
+ google: string & import("effect/Brand").Brand<"Provider.ID">;
45
+ googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
46
+ githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
47
+ amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
48
+ azure: string & import("effect/Brand").Brand<"Provider.ID">;
49
+ openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
50
+ mistral: string & import("effect/Brand").Brand<"Provider.ID">;
51
+ gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
51
52
  };
52
53
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
53
54
  }> & {
54
55
  parse: (input: string) => {
55
56
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
56
- readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
57
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
57
58
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
58
59
  };
59
60
  }>, never, never>;
60
61
  readonly request: Schema.Struct<{
61
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
62
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Any>>;
62
63
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
63
- readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
64
+ readonly body: Schema.$Record<Schema.String, Schema.Any>;
64
65
  }>;
65
66
  readonly system: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
66
67
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -95,4 +96,99 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
95
96
  })[];
96
97
  };
97
98
  }>;
98
- }>>, never, never, never>, false>;
99
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"agent.get", "GET", "/api/agent/:agentID", Schema.toCodecStringTree<Schema.Struct<{
100
+ agentID: Schema.brand<Schema.String, "Agent.ID">;
101
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
102
+ readonly location: Schema.optional<Schema.Struct<{
103
+ readonly directory: Schema.optional<Schema.String>;
104
+ readonly workspace: Schema.optional<Schema.String>;
105
+ }>>;
106
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
107
+ readonly location: typeof Location.Info;
108
+ readonly data: Schema.Struct<{
109
+ readonly id: Schema.brand<Schema.String, "Agent.ID">;
110
+ readonly name: Schema.brand<Schema.String, "Agent.Name">;
111
+ readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
112
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
113
+ readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
114
+ opencode: string & import("effect/Brand").Brand<"Provider.ID">;
115
+ anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
116
+ openai: string & import("effect/Brand").Brand<"Provider.ID">;
117
+ google: string & import("effect/Brand").Brand<"Provider.ID">;
118
+ googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
119
+ githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
120
+ amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
121
+ azure: string & import("effect/Brand").Brand<"Provider.ID">;
122
+ openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
123
+ mistral: string & import("effect/Brand").Brand<"Provider.ID">;
124
+ gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
125
+ };
126
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
127
+ }> & {
128
+ parse: (input: string) => {
129
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
130
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
131
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
132
+ };
133
+ }>>, Schema.optionalKey<Schema.Struct<{
134
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
135
+ readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
136
+ opencode: string & import("effect/Brand").Brand<"Provider.ID">;
137
+ anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
138
+ openai: string & import("effect/Brand").Brand<"Provider.ID">;
139
+ google: string & import("effect/Brand").Brand<"Provider.ID">;
140
+ googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
141
+ githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
142
+ amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
143
+ azure: string & import("effect/Brand").Brand<"Provider.ID">;
144
+ openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
145
+ mistral: string & import("effect/Brand").Brand<"Provider.ID">;
146
+ gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
147
+ };
148
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
149
+ }> & {
150
+ parse: (input: string) => {
151
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
152
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
153
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
154
+ };
155
+ }>, never, never>;
156
+ readonly request: Schema.Struct<{
157
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Any>>;
158
+ readonly headers: Schema.$Record<Schema.String, Schema.String>;
159
+ readonly body: Schema.$Record<Schema.String, Schema.Any>;
160
+ }>;
161
+ readonly system: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
162
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
163
+ readonly mode: Schema.Literals<readonly ["subagent", "primary", "all"]>;
164
+ readonly hidden: Schema.Boolean;
165
+ readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
166
+ readonly steps: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
167
+ readonly permissions: Schema.$Array<Schema.Struct<{
168
+ readonly action: Schema.String;
169
+ readonly resource: Schema.String;
170
+ readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
171
+ }>>;
172
+ }> & {
173
+ empty: (id: Agent.ID) => {
174
+ id: string & import("effect/Brand").Brand<"Agent.ID">;
175
+ name: string & import("effect/Brand").Brand<"Agent.Name">;
176
+ request: {
177
+ settings: {};
178
+ headers: {};
179
+ body: {};
180
+ };
181
+ mode: "all";
182
+ hidden: false;
183
+ permissions: ({
184
+ action: string;
185
+ resource: string;
186
+ effect: "allow";
187
+ } | {
188
+ action: string;
189
+ resource: string;
190
+ effect: "ask";
191
+ })[];
192
+ };
193
+ };
194
+ }>>, Schema.toCodecJson<typeof AgentNotFoundError>, never, never>, false>;
@@ -3,6 +3,7 @@ import { Location } from "@opencode-ai/schema/location";
3
3
  import { Schema } from "effect";
4
4
  import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi";
5
5
  import { LocationQuery, locationQueryOpenApi } from "./location.js";
6
+ import { AgentNotFoundError } from "../errors.js";
6
7
  export const AgentGroup = HttpApiGroup.make("server.agent")
7
8
  .add(HttpApiEndpoint.get("agent.list", "/api/agent", {
8
9
  query: LocationQuery,
@@ -13,5 +14,17 @@ export const AgentGroup = HttpApiGroup.make("server.agent")
13
14
  identifier: "v2.agent.list",
14
15
  summary: "List agents",
15
16
  description: "Retrieve currently registered agents.",
17
+ })))
18
+ .add(HttpApiEndpoint.get("agent.get", "/api/agent/:agentID", {
19
+ params: { agentID: Agent.ID },
20
+ query: LocationQuery,
21
+ success: Location.response(Agent.Info),
22
+ error: AgentNotFoundError,
23
+ })
24
+ .annotateMerge(locationQueryOpenApi)
25
+ .annotateMerge(OpenApi.annotations({
26
+ identifier: "v2.agent.get",
27
+ summary: "Get agent",
28
+ description: "Retrieve a single currently registered agent.",
16
29
  })))
17
30
  .annotateMerge(OpenApi.annotations({ title: "agent" }));
@@ -15,46 +15,46 @@ export declare const CommandGroup: HttpApiGroup.HttpApiGroup<"server.command", H
15
15
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
16
16
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
17
17
  readonly id: Schema.brand<Schema.String, "Model.ID">;
18
- readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
19
- opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
20
- anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
21
- openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
22
- google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
23
- googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
24
- githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
25
- amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
26
- azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
27
- openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
28
- mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
29
- gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
18
+ readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
19
+ opencode: string & import("effect/Brand").Brand<"Provider.ID">;
20
+ anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
21
+ openai: string & import("effect/Brand").Brand<"Provider.ID">;
22
+ google: string & import("effect/Brand").Brand<"Provider.ID">;
23
+ googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
24
+ githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
25
+ amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
26
+ azure: string & import("effect/Brand").Brand<"Provider.ID">;
27
+ openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
28
+ mistral: string & import("effect/Brand").Brand<"Provider.ID">;
29
+ gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
30
30
  };
31
31
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
32
32
  }> & {
33
33
  parse: (input: string) => {
34
34
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
35
- readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
35
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
36
36
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
37
37
  };
38
38
  }>>, Schema.optionalKey<Schema.Struct<{
39
39
  readonly id: Schema.brand<Schema.String, "Model.ID">;
40
- readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
41
- opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
42
- anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
43
- openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
44
- google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
45
- googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
46
- githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
47
- amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
48
- azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
49
- openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
50
- mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
51
- gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
40
+ readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
41
+ opencode: string & import("effect/Brand").Brand<"Provider.ID">;
42
+ anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
43
+ openai: string & import("effect/Brand").Brand<"Provider.ID">;
44
+ google: string & import("effect/Brand").Brand<"Provider.ID">;
45
+ googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
46
+ githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
47
+ amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
48
+ azure: string & import("effect/Brand").Brand<"Provider.ID">;
49
+ openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
50
+ mistral: string & import("effect/Brand").Brand<"Provider.ID">;
51
+ gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
52
52
  };
53
53
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
54
54
  }> & {
55
55
  parse: (input: string) => {
56
56
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
57
- readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
57
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
58
58
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
59
59
  };
60
60
  }>, never, never>;
@@ -2,12 +2,12 @@ import { Schema } from "effect";
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi";
3
3
  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<{
4
4
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
5
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
7
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
8
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
9
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
10
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
5
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
6
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
8
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
9
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
10
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
11
11
  }>, never, never>;
12
12
  }>>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"debug.location.evict", "DELETE", "/api/debug/location", never, Schema.toCodecStringTree<Schema.Struct<{
13
13
  readonly location: Schema.optional<Schema.Struct<{