🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@opencode-ai/protocol

Package Overview
Maintainers
2
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/protocol - npm Package Compare versions

Source code not available
We could not scan this package. Some page functionalities have been disabled
Comparing version
0.0.0-next-16255
to
0.0.0-next-16273
+6
-0
dist/errors.d.ts

@@ -44,2 +44,8 @@ import { Schema } from "effect";

}
declare const AgentNotFoundError_base: Schema.Class<AgentNotFoundError, Schema.TaggedStruct<"AgentNotFoundError", {
readonly agentID: Schema.String;
readonly message: Schema.String;
}>, import("effect/Cause").YieldableError>;
export declare class AgentNotFoundError extends AgentNotFoundError_base {
}
declare const SessionNotFoundError_base: Schema.Class<SessionNotFoundError, Schema.TaggedStruct<"SessionNotFoundError", {

@@ -46,0 +52,0 @@ readonly sessionID: Schema.String;

@@ -36,2 +36,7 @@ import { Schema } from "effect";

}
export class AgentNotFoundError extends Schema.TaggedErrorClass()("AgentNotFoundError", {
agentID: Schema.String,
message: Schema.String,
}, { httpApiStatus: 404 }) {
}
export class SessionNotFoundError extends Schema.TaggedErrorClass()("SessionNotFoundError", {

@@ -38,0 +43,0 @@ sessionID: Schema.String,

+125
-29

@@ -5,2 +5,3 @@ import { Agent } from "@opencode-ai/schema/agent";

import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
import { AgentNotFoundError } from "../errors.js";
export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpApiEndpoint.HttpApiEndpoint<"agent.list", "GET", "/api/agent", never, Schema.toCodecStringTree<Schema.Struct<{

@@ -18,14 +19,14 @@ readonly location: Schema.optional<Schema.Struct<{

readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -36,3 +37,3 @@ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;

readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;

@@ -42,14 +43,14 @@ };

readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -60,3 +61,3 @@ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;

readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;

@@ -66,5 +67,5 @@ };

readonly request: Schema.Struct<{
readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Any>>;
readonly headers: Schema.$Record<Schema.String, Schema.String>;
readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
readonly body: Schema.$Record<Schema.String, Schema.Any>;
}>;

@@ -104,2 +105,97 @@ readonly system: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;

}>;
}>>, never, never, never>, false>;
}>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"agent.get", "GET", "/api/agent/:agentID", Schema.toCodecStringTree<Schema.Struct<{
agentID: Schema.brand<Schema.String, "Agent.ID">;
}>>, Schema.toCodecStringTree<Schema.Struct<{
readonly location: Schema.optional<Schema.Struct<{
readonly directory: Schema.optional<Schema.String>;
readonly workspace: Schema.optional<Schema.String>;
}>>;
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
readonly location: typeof Location.Info;
readonly data: Schema.Struct<{
readonly id: Schema.brand<Schema.String, "Agent.ID">;
readonly name: Schema.brand<Schema.String, "Agent.Name">;
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
}> & {
parse: (input: string) => {
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
};
}>>, Schema.optionalKey<Schema.Struct<{
readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
}> & {
parse: (input: string) => {
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
};
}>, never, never>;
readonly request: Schema.Struct<{
readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Any>>;
readonly headers: Schema.$Record<Schema.String, Schema.String>;
readonly body: Schema.$Record<Schema.String, Schema.Any>;
}>;
readonly system: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
readonly mode: Schema.Literals<readonly ["subagent", "primary", "all"]>;
readonly hidden: Schema.Boolean;
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
readonly steps: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
readonly permissions: Schema.$Array<Schema.Struct<{
readonly action: Schema.String;
readonly resource: Schema.String;
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
}>>;
}> & {
empty: (id: Agent.ID) => {
id: string & import("effect/Brand").Brand<"Agent.ID">;
name: string & import("effect/Brand").Brand<"Agent.Name">;
request: {
settings: {};
headers: {};
body: {};
};
mode: "all";
hidden: false;
permissions: ({
action: string;
resource: string;
effect: "allow";
} | {
action: string;
resource: string;
effect: "ask";
})[];
};
};
}>>, Schema.toCodecJson<typeof AgentNotFoundError>, never, never>, false>;

@@ -6,2 +6,3 @@ import { Agent } from "@opencode-ai/schema/agent";

import { LocationQuery, locationQueryOpenApi } from "./location.js";
import { AgentNotFoundError } from "../errors.js";
export const AgentGroup = HttpApiGroup.make("server.agent")

@@ -18,2 +19,14 @@ .add(HttpApiEndpoint.get("agent.list", "/api/agent", {

})))
.add(HttpApiEndpoint.get("agent.get", "/api/agent/:agentID", {
params: { agentID: Agent.ID },
query: LocationQuery,
success: Location.response(Agent.Info),
error: AgentNotFoundError,
})
.annotateMerge(locationQueryOpenApi)
.annotateMerge(OpenApi.annotations({
identifier: "v2.agent.get",
summary: "Get agent",
description: "Retrieve a single currently registered agent.",
})))
.annotateMerge(OpenApi.annotations({ title: "agent" }));
+26
-26

@@ -18,14 +18,14 @@ import { Location } from "@opencode-ai/schema/location";

readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -36,3 +36,3 @@ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;

readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;

@@ -42,14 +42,14 @@ };

readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -60,3 +60,3 @@ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;

readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;

@@ -63,0 +63,0 @@ };

@@ -5,8 +5,8 @@ import { Schema } from "effect";

readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
}>, never, never>;

@@ -13,0 +13,0 @@ }>>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"debug.location.evict", "DELETE", "/api/debug/location", never, Schema.toCodecStringTree<Schema.Struct<{

@@ -13,14 +13,14 @@ import { Schema } from "effect";

readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -31,3 +31,3 @@ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;

readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;

@@ -34,0 +34,0 @@ };

@@ -34,14 +34,14 @@ import { Schema } from "effect";

readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -52,3 +52,3 @@ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;

readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;

@@ -59,14 +59,14 @@ };

readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -77,3 +77,3 @@ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;

readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;

@@ -83,14 +83,14 @@ };

readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -101,3 +101,3 @@ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;

readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;

@@ -139,16 +139,16 @@ };

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 source: {
readonly type: "inline";
} | {
readonly type: "uri";
readonly uri: string;
};
readonly mime: string;
readonly description?: string | undefined;
readonly name?: string | undefined;
readonly mention?: Schema.Struct.ReadonlySide<{
readonly start: Schema.Finite;
readonly end: Schema.Finite;
readonly text: Schema.String;
}, "Type"> | undefined;
readonly mention?: {
readonly start: number;
readonly end: number;
readonly text: string;
} | undefined;
};

@@ -178,16 +178,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 source: {
readonly type: "inline";
} | {
readonly type: "uri";
readonly uri: string;
};
readonly mime: string;
readonly description?: string | undefined;
readonly name?: string | undefined;
readonly mention?: Schema.Struct.ReadonlySide<{
readonly start: Schema.Finite;
readonly end: Schema.Finite;
readonly text: Schema.String;
}, "Type"> | undefined;
readonly mention?: {
readonly start: number;
readonly end: number;
readonly text: string;
} | undefined;
};

@@ -297,14 +297,14 @@ }>>, never, never>;

readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -315,3 +315,3 @@ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;

readonly id: string & import("effect/Brand").Brand<"Model.ID">;
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;

@@ -359,3 +359,3 @@ };

readonly mime: Schema.String;
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
readonly name: Schema.optional<Schema.String>;
}>]>>;

@@ -377,3 +377,3 @@ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;

readonly mime: Schema.String;
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
readonly name: Schema.optional<Schema.String>;
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{

@@ -386,3 +386,3 @@ readonly type: Schema.Literal<"text">;

readonly mime: Schema.String;
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
readonly name: Schema.optional<Schema.String>;
}>]>>>, never, never>;

@@ -389,0 +389,0 @@ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;

@@ -20,5 +20,5 @@ import { Model } from "@opencode-ai/schema/model";

readonly variants: Schema.$Array<Schema.Struct<{
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
readonly id: Schema.brand<Schema.String, "Model.VariantID">;

@@ -59,19 +59,19 @@ }>>;

}>;
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -90,3 +90,3 @@ readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.Family">>, never, never>;

modelID: string & import("effect/Brand").Brand<"Model.ID">;
providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
providerID: string & import("effect/Brand").Brand<"Provider.ID">;
name: string & import("effect/Brand").Brand<"Model.ID">;

@@ -125,5 +125,5 @@ capabilities: {

readonly variants: Schema.$Array<Schema.Struct<{
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
readonly id: Schema.brand<Schema.String, "Model.VariantID">;

@@ -164,19 +164,19 @@ }>>;

}>;
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
readonly id: Schema.brand<Schema.String, "Model.ID">;
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -195,3 +195,3 @@ readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.Family">>, never, never>;

modelID: string & import("effect/Brand").Brand<"Model.ID">;
providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
providerID: string & import("effect/Brand").Brand<"Provider.ID">;
name: string & import("effect/Brand").Brand<"Model.ID">;

@@ -198,0 +198,0 @@ capabilities: {

@@ -30,4 +30,4 @@ import { Location } from "@opencode-ai/schema/location";

}>]>>, never, never>;
readonly id: Schema.brand<Schema.String, "PermissionV2.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"PermissionV2.ID">;
readonly id: Schema.brand<Schema.String, "Permission.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
};

@@ -60,4 +60,4 @@ }>>;

}>>, never, Schema.toCodecJson<Schema.Struct<{
readonly id: Schema.optional<Schema.brand<Schema.String, "PermissionV2.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"PermissionV2.ID">;
readonly id: Schema.optional<Schema.brand<Schema.String, "Permission.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
}>;

@@ -80,4 +80,4 @@ readonly action: Schema.String;

readonly data: Schema.Struct<{
readonly id: Schema.brand<Schema.String, "PermissionV2.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"PermissionV2.ID">;
readonly id: Schema.brand<Schema.String, "Permission.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
};

@@ -110,4 +110,4 @@ readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;

}>]>>, never, never>;
readonly id: Schema.brand<Schema.String, "PermissionV2.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"PermissionV2.ID">;
readonly id: Schema.brand<Schema.String, "Permission.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
};

@@ -120,4 +120,4 @@ }>>;

};
requestID: Schema.brand<Schema.String, "PermissionV2.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"PermissionV2.ID">;
requestID: Schema.brand<Schema.String, "Permission.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
};

@@ -143,4 +143,4 @@ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{

}>]>>, never, never>;
readonly id: Schema.brand<Schema.String, "PermissionV2.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"PermissionV2.ID">;
readonly id: Schema.brand<Schema.String, "Permission.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
};

@@ -153,4 +153,4 @@ }>;

};
requestID: Schema.brand<Schema.String, "PermissionV2.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"PermissionV2.ID">;
requestID: Schema.brand<Schema.String, "Permission.ID"> & {
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
};

@@ -157,0 +157,0 @@ }>>, never, Schema.toCodecJson<Schema.Struct<{

@@ -14,17 +14,17 @@ import { Provider } from "@opencode-ai/schema/provider";

readonly data: Schema.$Array<Schema.Struct<{
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
readonly id: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
readonly id: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -39,14 +39,14 @@ readonly integrationID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Integration.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Integration.ID">>, never, never>;

}>>, 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"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
providerID: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -61,17 +61,17 @@ }>>, Schema.toCodecStringTree<Schema.Struct<{

readonly data: Schema.Struct<{
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
readonly id: Schema.brand<Schema.String, "ProviderV2.ID"> & {
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
readonly id: Schema.brand<Schema.String, "Provider.ID"> & {
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
openai: string & import("effect/Brand").Brand<"Provider.ID">;
google: string & import("effect/Brand").Brand<"Provider.ID">;
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
azure: string & import("effect/Brand").Brand<"Provider.ID">;
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
};

@@ -78,0 +78,0 @@ readonly integrationID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Integration.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Integration.ID">>, never, never>;

@@ -13,5 +13,5 @@ import { Location } from "@opencode-ai/schema/location";

readonly data: Schema.$Array<Schema.Struct<{
readonly id: Schema.brand<Schema.String, "QuestionV2.ID"> & {
create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
readonly id: Schema.brand<Schema.String, "Question.ID"> & {
create: () => string & import("effect/Brand").Brand<"Question.ID">;
ascending: (id?: string) => string & import("effect/Brand").Brand<"Question.ID">;
};

@@ -47,5 +47,5 @@ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {

readonly data: Schema.$Array<Schema.Struct<{
readonly id: Schema.brand<Schema.String, "QuestionV2.ID"> & {
create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
readonly id: Schema.brand<Schema.String, "Question.ID"> & {
create: () => string & import("effect/Brand").Brand<"Question.ID">;
ascending: (id?: string) => string & import("effect/Brand").Brand<"Question.ID">;
};

@@ -79,5 +79,5 @@ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {

};
requestID: Schema.brand<Schema.String, "QuestionV2.ID"> & {
create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
requestID: Schema.brand<Schema.String, "Question.ID"> & {
create: () => string & import("effect/Brand").Brand<"Question.ID">;
ascending: (id?: string) => string & import("effect/Brand").Brand<"Question.ID">;
};

@@ -91,6 +91,6 @@ }>>, never, Schema.toCodecJson<Schema.Struct<{

};
requestID: Schema.brand<Schema.String, "QuestionV2.ID"> & {
create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
requestID: Schema.brand<Schema.String, "Question.ID"> & {
create: () => string & import("effect/Brand").Brand<"Question.ID">;
ascending: (id?: string) => string & import("effect/Brand").Brand<"Question.ID">;
};
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof QuestionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>>, false>;
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/protocol",
"version": "0.0.0-next-16255",
"version": "0.0.0-next-16273",
"type": "module",

@@ -31,4 +31,4 @@ "license": "MIT",

"dependencies": {
"@opencode-ai/schema": "0.0.0-next-16255",
"effect": "4.0.0-beta.98"
"@opencode-ai/schema": "0.0.0-next-16273",
"effect": "4.0.0-beta.101"
},

@@ -35,0 +35,0 @@ "devDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display