// Generated by @opencode-ai/httpapi-codegen. Do not edit. import type { Effect, Stream } from "effect" import type { Location } from "@opencode-ai/schema/location" import type { Agent } from "@opencode-ai/schema/agent" import type { Plugin } from "@opencode-ai/schema/plugin" import type { Workspace } from "@opencode-ai/schema/workspace" import type { Session } from "@opencode-ai/schema/session" import type { AbsolutePath } from "@opencode-ai/schema/schema" import type { Project } from "@opencode-ai/schema/project" import type { RelativePath } from "@opencode-ai/schema/schema" import type { Brand } from "effect" import type { Model } from "@opencode-ai/schema/model" import type { SessionMessage } from "@opencode-ai/schema/session-message" import type { PromptInput } from "@opencode-ai/schema/prompt-input" import type { AgentAttachment } from "@opencode-ai/schema/prompt" import type { SessionPending } from "@opencode-ai/schema/session-pending" import type { Skill } from "@opencode-ai/schema/skill" import type { Event } from "@opencode-ai/schema/event" import type { InstructionEntry } from "@opencode-ai/schema/instruction-entry" import type { Schema } from "effect" import type { EventLog } from "@opencode-ai/schema/event-log" import type { Shell } from "@opencode-ai/schema/shell" import type { DateTime } from "effect" import type { Provider } from "@opencode-ai/schema/provider" import type { Integration } from "@opencode-ai/schema/integration" import type { Mcp } from "@opencode-ai/schema/mcp" import type { Credential } from "@opencode-ai/schema/credential" import type { Form } from "@opencode-ai/schema/form" import type { Permission } from "@opencode-ai/schema/permission" import type { PermissionSaved } from "@opencode-ai/schema/permission-saved" import type { FileSystem } from "@opencode-ai/schema/filesystem" import type { Command } from "@opencode-ai/schema/command" import type { OpenCodeEvent } from "@opencode-ai/protocol/groups/event" import type { Pty } from "@opencode-ai/schema/pty" import type { Question } from "@opencode-ai/schema/question" import type { Reference } from "@opencode-ai/schema/reference" import type { ProjectCopy } from "@opencode-ai/schema/project-copy" import type { Vcs } from "@opencode-ai/schema/vcs" import type { FileDiff } from "@opencode-ai/schema/file-diff" import type { WebSearch } from "@opencode-ai/schema/websearch" export type Endpoint0_0Output = { readonly healthy: true; readonly version: string; readonly pid: number } export type HealthGetOperation = () => Effect.Effect export type Endpoint0_1Input = { readonly instanceID: string } export type Endpoint0_1Output = { readonly accepted: boolean } export type HealthStopOperation = (input: Endpoint0_1Input) => Effect.Effect export interface HealthApi { readonly get: HealthGetOperation readonly stop: HealthStopOperation } export type Endpoint1_0Output = { readonly urls: ReadonlyArray } export type ServerGetOperation = () => Effect.Effect export interface ServerApi { readonly get: ServerGetOperation } export type Endpoint2_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint2_0Output = Location.Info export type LocationGetOperation = (input?: Endpoint2_0Input) => Effect.Effect export interface LocationApi { readonly get: LocationGetOperation } export type Endpoint3_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint3_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type AgentListOperation = (input?: Endpoint3_0Input) => Effect.Effect export type Endpoint3_1Input = { readonly agentID: Agent.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint3_1Output = { readonly location: Location.Info; readonly data: Agent.Info } export type AgentGetOperation = (input: Endpoint3_1Input) => Effect.Effect export interface AgentApi { readonly list: AgentListOperation readonly get: AgentGetOperation } export type Endpoint4_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint4_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type PluginListOperation = (input?: Endpoint4_0Input) => Effect.Effect export interface PluginApi { readonly list: PluginListOperation } export type Endpoint5_0Input = { readonly workspace?: Workspace.ID | undefined readonly limit?: number | undefined readonly order?: "asc" | "desc" | undefined readonly search?: string | undefined readonly parentID?: Session.ID | null | undefined readonly directory?: AbsolutePath | undefined readonly project?: Project.ID | undefined readonly subpath?: RelativePath | undefined readonly cursor?: (string & Brand.Brand<"SessionsCursor">) | undefined } export type Endpoint5_0Output = { readonly data: ReadonlyArray readonly cursor: { readonly previous?: (string & Brand.Brand<"SessionsCursor">) | undefined readonly next?: (string & Brand.Brand<"SessionsCursor">) | undefined } } export type SessionListOperation = (input?: Endpoint5_0Input) => Effect.Effect export type Endpoint5_1Input = { readonly id?: Session.ID | undefined readonly agent?: Agent.ID | undefined readonly model?: Model.Ref | undefined readonly location?: Location.Ref | undefined } export type Endpoint5_1Output = Session.Info export type SessionCreateOperation = (input?: Endpoint5_1Input) => Effect.Effect export type Endpoint5_2Output = { readonly [x: Session.ID]: { readonly type: "running" } } export type SessionActiveOperation = () => Effect.Effect export type Endpoint5_3Input = { readonly sessionID: Session.ID } export type Endpoint5_3Output = Session.Info export type SessionGetOperation = (input: Endpoint5_3Input) => Effect.Effect export type Endpoint5_4Input = { readonly sessionID: Session.ID } export type Endpoint5_4Output = void export type SessionRemoveOperation = (input: Endpoint5_4Input) => Effect.Effect export type Endpoint5_5Input = { readonly sessionID: Session.ID; readonly boundary: Session.ForkRequestBoundary } export type Endpoint5_5Output = Session.Info export type SessionForkOperation = (input: Endpoint5_5Input) => Effect.Effect export type Endpoint5_6Input = { readonly sessionID: Session.ID; readonly agent: Agent.ID } export type Endpoint5_6Output = void export type SessionSwitchAgentOperation = (input: Endpoint5_6Input) => Effect.Effect export type Endpoint5_7Input = { readonly sessionID: Session.ID; readonly model: Model.Ref } export type Endpoint5_7Output = void export type SessionSwitchModelOperation = (input: Endpoint5_7Input) => Effect.Effect export type Endpoint5_8Input = { readonly sessionID: Session.ID; readonly title: string } export type Endpoint5_8Output = void export type SessionRenameOperation = (input: Endpoint5_8Input) => Effect.Effect export type Endpoint5_9Input = { readonly sessionID: Session.ID readonly directory: AbsolutePath readonly workspaceID?: Workspace.ID | undefined } export type Endpoint5_9Output = void export type SessionMoveOperation = (input: Endpoint5_9Input) => Effect.Effect export type Endpoint5_10Input = { readonly sessionID: Session.ID readonly id?: SessionMessage.ID | undefined readonly text: string readonly files?: ReadonlyArray | undefined readonly agents?: ReadonlyArray | undefined readonly metadata?: { readonly [x: string]: unknown } | undefined readonly delivery?: "steer" | "queue" | undefined readonly resume?: boolean | undefined } export type Endpoint5_10Output = SessionPending.User export type SessionPromptOperation = (input: Endpoint5_10Input) => Effect.Effect export type Endpoint5_11Input = { readonly sessionID: Session.ID readonly id?: SessionMessage.ID | undefined readonly command: string readonly arguments?: string | undefined readonly agent?: Agent.ID | undefined readonly model?: Model.Ref | undefined readonly files?: ReadonlyArray | undefined readonly agents?: ReadonlyArray | undefined readonly delivery?: "steer" | "queue" | undefined readonly resume?: boolean | undefined } export type Endpoint5_11Output = SessionPending.User export type SessionCommandOperation = (input: Endpoint5_11Input) => Effect.Effect export type Endpoint5_12Input = { readonly sessionID: Session.ID readonly id?: SessionMessage.ID | undefined readonly skill: Skill.ID readonly resume?: boolean | undefined } export type Endpoint5_12Output = void export type SessionSkillOperation = (input: Endpoint5_12Input) => Effect.Effect export type Endpoint5_13Input = { readonly sessionID: Session.ID readonly id?: SessionMessage.ID | undefined readonly text: string readonly description?: string | undefined readonly metadata?: { readonly [x: string]: unknown } | undefined readonly delivery?: "steer" | "queue" | undefined readonly resume?: boolean | undefined } export type Endpoint5_13Output = SessionPending.Synthetic export type SessionSyntheticOperation = (input: Endpoint5_13Input) => Effect.Effect export type Endpoint5_14Input = { readonly sessionID: Session.ID readonly id?: Event.ID | undefined readonly command: string } export type Endpoint5_14Output = void export type SessionShellOperation = (input: Endpoint5_14Input) => Effect.Effect export type Endpoint5_15Input = { readonly sessionID: Session.ID; readonly id?: SessionMessage.ID | undefined } export type Endpoint5_15Output = SessionPending.Compaction export type SessionCompactOperation = (input: Endpoint5_15Input) => Effect.Effect export type Endpoint5_16Input = { readonly sessionID: Session.ID } export type Endpoint5_16Output = void export type SessionWaitOperation = (input: Endpoint5_16Input) => Effect.Effect export type Endpoint5_17Input = { readonly sessionID: Session.ID readonly messageID: SessionMessage.ID readonly files?: boolean | undefined } export type Endpoint5_17Output = Session.Revert export type SessionRevertStageOperation = (input: Endpoint5_17Input) => Effect.Effect export type Endpoint5_18Input = { readonly sessionID: Session.ID } export type Endpoint5_18Output = void export type SessionRevertClearOperation = (input: Endpoint5_18Input) => Effect.Effect export type Endpoint5_19Input = { readonly sessionID: Session.ID } export type Endpoint5_19Output = void export type SessionRevertCommitOperation = (input: Endpoint5_19Input) => Effect.Effect export type Endpoint5_20Input = { readonly sessionID: Session.ID } export type Endpoint5_20Output = ReadonlyArray export type SessionContextOperation = (input: Endpoint5_20Input) => Effect.Effect export type Endpoint5_21Input = { readonly sessionID: Session.ID } export type Endpoint5_21Output = ReadonlyArray export type SessionPendingListOperation = (input: Endpoint5_21Input) => Effect.Effect export type Endpoint5_22Input = { readonly sessionID: Session.ID; readonly inputID: SessionMessage.ID } export type Endpoint5_22Output = boolean export type SessionPendingWithdrawOperation = ( input: Endpoint5_22Input, ) => Effect.Effect export type Endpoint5_23Input = { readonly sessionID: Session.ID } export type Endpoint5_23Output = ReadonlyArray export type SessionInstructionsEntryListOperation = ( input: Endpoint5_23Input, ) => Effect.Effect export type Endpoint5_24Input = { readonly sessionID: Session.ID readonly key: InstructionEntry.Key readonly value: Schema.Json } export type Endpoint5_24Output = void export type SessionInstructionsEntryPutOperation = ( input: Endpoint5_24Input, ) => Effect.Effect export type Endpoint5_25Input = { readonly sessionID: Session.ID; readonly key: InstructionEntry.Key } export type Endpoint5_25Output = void export type SessionInstructionsEntryRemoveOperation = ( input: Endpoint5_25Input, ) => Effect.Effect export type Endpoint5_26Input = { readonly sessionID: Session.ID; readonly prompt: string } export type Endpoint5_26Output = { readonly text: string } export type SessionGenerateOperation = (input: Endpoint5_26Input) => Effect.Effect export type Endpoint5_27Input = { readonly sessionID: Session.ID readonly after?: Event.Seq | undefined readonly follow?: boolean | undefined } export type Endpoint5_27Output = | ( | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.agent.selected" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID; readonly agent: Agent.ID } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.model.selected" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID; readonly model: Model.Ref } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.moved" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly location: Location.Ref readonly projectID?: Project.ID | undefined readonly subpath?: RelativePath | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.renamed" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID; readonly title: string } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.deleted" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.forked" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly parentID: Session.ID readonly boundary: Session.ForkBoundary readonly instructions?: | { readonly [x: string & Brand.Brand<"Instruction.Key">]: string & Brand.Brand<"Instruction.Hash"> } | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.input.promoted" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID; readonly inputID: SessionMessage.ID } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.input.admitted" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly inputID: SessionMessage.ID readonly input: SessionPending.Message } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.input.withdrawn" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID; readonly inputID: SessionMessage.ID } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.execution.started" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.execution.succeeded" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.execution.failed" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly error: { readonly type: string; readonly message: string } } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.execution.interrupted" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID; readonly reason: "user" | "shutdown" | "superseded" } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.instructions.updated" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly delta: { readonly [x: string]: (string & Brand.Brand<"Instruction.Hash">) | "removed" } } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.synthetic" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly text: string readonly description?: string | undefined readonly metadata?: { readonly [x: string]: unknown } | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.skill.activated" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly id: Skill.ID readonly name: Skill.Name readonly text: string } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.shell.started" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID; readonly shell: Shell.Info } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.shell.ended" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly shell: Shell.Info readonly output: { readonly output: string readonly cursor: number readonly size: number readonly truncated: boolean } } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.step.started" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly agent: Agent.ID readonly model: Model.Ref readonly snapshot?: (string & Brand.Brand<"Snapshot.ID">) | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.step.ended" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown" readonly cost: number & Brand.Brand<"Money.USD"> readonly tokens: { readonly input: number readonly output: number readonly reasoning: number readonly cache: { readonly read: number; readonly write: number } } readonly snapshot?: (string & Brand.Brand<"Snapshot.ID">) | undefined readonly files?: ReadonlyArray | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.step.failed" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly error: { readonly type: string; readonly message: string } readonly cost?: (number & Brand.Brand<"Money.USD">) | undefined readonly tokens?: | { readonly input: number readonly output: number readonly reasoning: number readonly cache: { readonly read: number; readonly write: number } } | undefined readonly snapshot?: (string & Brand.Brand<"Snapshot.ID">) | undefined readonly files?: ReadonlyArray | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.text.started" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly ordinal: number } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.text.ended" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly ordinal: number readonly text: string readonly state?: SessionMessage.ProviderState | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.reasoning.started" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly ordinal: number readonly state?: SessionMessage.ProviderState | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.reasoning.ended" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly ordinal: number readonly text: string readonly state?: SessionMessage.ProviderState | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.tool.input.started" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly callID: string readonly name: string } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.tool.input.ended" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly callID: string readonly text: string } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.tool.called" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly callID: string readonly input: { readonly [x: string]: unknown } readonly executed: boolean readonly state?: SessionMessage.ProviderState | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.tool.success" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly callID: string readonly content: readonly [ ( | { readonly type: "text"; readonly text: string } | { readonly type: "file" readonly uri: string readonly mime: string readonly name?: string | undefined } ), ...Array< | { readonly type: "text"; readonly text: string } | { readonly type: "file" readonly uri: string readonly mime: string readonly name?: string | undefined } >, ] readonly metadata?: { readonly [x: string]: Schema.Json } | undefined readonly executed: boolean readonly resultState?: SessionMessage.ProviderState | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.tool.failed" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly callID: string readonly error: { readonly type: string; readonly message: string } readonly content?: | readonly [ ( | { readonly type: "text"; readonly text: string } | { readonly type: "file" readonly uri: string readonly mime: string readonly name?: string | undefined } ), ...Array< | { readonly type: "text"; readonly text: string } | { readonly type: "file" readonly uri: string readonly mime: string readonly name?: string | undefined } >, ] | undefined readonly metadata?: { readonly [x: string]: Schema.Json } | undefined readonly executed: boolean readonly resultState?: SessionMessage.ProviderState | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.retry.scheduled" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly assistantMessageID: SessionMessage.ID readonly attempt: number readonly at: number readonly error: { readonly type: string; readonly message: string } } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.compaction.admitted" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID; readonly inputID: SessionMessage.ID } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.compaction.started" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly reason: "auto" | "manual" readonly recent: string readonly inputID?: SessionMessage.ID | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.compaction.ended" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly reason: "auto" | "manual" readonly text: string readonly recent: string } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.compaction.failed" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly reason: "auto" | "manual" readonly error: { readonly type: string; readonly message: string } readonly inputID?: SessionMessage.ID | undefined } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.revert.staged" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID; readonly revert: Session.Revert } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.revert.cleared" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.revert.committed" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID; readonly to: SessionMessage.ID } } | { readonly id: Event.ID readonly created: DateTime.Utc readonly metadata?: { readonly [x: string]: unknown } | undefined readonly type: "session.usage.recorded" readonly durable: { readonly aggregateID: string; readonly seq: Event.Seq; readonly version: Event.Version } readonly location?: Location.Ref | undefined readonly data: { readonly sessionID: Session.ID readonly source: "title" | "compaction" readonly cost: number & Brand.Brand<"Money.USD"> readonly tokens: { readonly input: number readonly output: number readonly reasoning: number readonly cache: { readonly read: number; readonly write: number } } } } ) | EventLog.Synced export type SessionLogOperation = (input: Endpoint5_27Input) => Stream.Stream export type Endpoint5_28Input = { readonly sessionID: Session.ID } export type Endpoint5_28Output = void export type SessionInterruptOperation = (input: Endpoint5_28Input) => Effect.Effect export type Endpoint5_29Input = { readonly sessionID: Session.ID } export type Endpoint5_29Output = void export type SessionBackgroundOperation = (input: Endpoint5_29Input) => Effect.Effect export type Endpoint5_30Input = { readonly sessionID: Session.ID; readonly messageID: SessionMessage.ID } export type Endpoint5_30Output = SessionMessage.Info export type SessionMessageOperation = (input: Endpoint5_30Input) => Effect.Effect export interface SessionApi { readonly list: SessionListOperation readonly create: SessionCreateOperation readonly active: SessionActiveOperation readonly get: SessionGetOperation readonly remove: SessionRemoveOperation readonly fork: SessionForkOperation readonly switchAgent: SessionSwitchAgentOperation readonly switchModel: SessionSwitchModelOperation readonly rename: SessionRenameOperation readonly move: SessionMoveOperation readonly prompt: SessionPromptOperation readonly command: SessionCommandOperation readonly skill: SessionSkillOperation readonly synthetic: SessionSyntheticOperation readonly shell: SessionShellOperation readonly compact: SessionCompactOperation readonly wait: SessionWaitOperation readonly revert: { readonly stage: SessionRevertStageOperation readonly clear: SessionRevertClearOperation readonly commit: SessionRevertCommitOperation } readonly context: SessionContextOperation readonly pending: { readonly list: SessionPendingListOperation readonly withdraw: SessionPendingWithdrawOperation } readonly instructions: { readonly entry: { readonly list: SessionInstructionsEntryListOperation readonly put: SessionInstructionsEntryPutOperation readonly remove: SessionInstructionsEntryRemoveOperation } } readonly generate: SessionGenerateOperation readonly log: SessionLogOperation readonly interrupt: SessionInterruptOperation readonly background: SessionBackgroundOperation readonly message: SessionMessageOperation } export type Endpoint6_0Input = { readonly sessionID: Session.ID readonly limit?: number | undefined readonly order?: "asc" | "desc" | undefined readonly cursor?: string | undefined } export type Endpoint6_0Output = { readonly data: ReadonlyArray readonly cursor: { readonly previous?: string | undefined; readonly next?: string | undefined } } export type MessageListOperation = (input: Endpoint6_0Input) => Effect.Effect export interface MessageApi { readonly list: MessageListOperation } export type Endpoint7_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint7_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type ModelListOperation = (input?: Endpoint7_0Input) => Effect.Effect export type Endpoint7_1Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint7_1Output = { readonly location: Location.Info; readonly data: Model.Info | undefined } export type ModelDefaultOperation = (input?: Endpoint7_1Input) => Effect.Effect export interface ModelApi { readonly list: ModelListOperation readonly default: ModelDefaultOperation } export type Endpoint8_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly prompt: string readonly model?: Model.Ref | undefined } export type Endpoint8_0Output = { readonly text: string } export type GenerateTextOperation = (input: Endpoint8_0Input) => Effect.Effect export interface GenerateApi { readonly text: GenerateTextOperation } export type Endpoint9_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint9_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type ProviderListOperation = (input?: Endpoint9_0Input) => Effect.Effect export type Endpoint9_1Input = { readonly providerID: Provider.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint9_1Output = { readonly location: Location.Info; readonly data: Provider.Info } export type ProviderGetOperation = (input: Endpoint9_1Input) => Effect.Effect export interface ProviderApi { readonly list: ProviderListOperation readonly get: ProviderGetOperation } export type Endpoint10_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint10_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type IntegrationListOperation = (input?: Endpoint10_0Input) => Effect.Effect export type Endpoint10_1Input = { readonly integrationID: Integration.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint10_1Output = { readonly location: Location.Info; readonly data: Integration.Info | undefined } export type IntegrationGetOperation = (input: Endpoint10_1Input) => Effect.Effect export type Endpoint10_2Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly url: string } export type Endpoint10_2Output = void export type IntegrationWellknownAddOperation = ( input: Endpoint10_2Input, ) => Effect.Effect export type Endpoint10_3Input = { readonly integrationID: Integration.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly key: string readonly label?: string | undefined } export type Endpoint10_3Output = void export type IntegrationConnectKeyOperation = ( input: Endpoint10_3Input, ) => Effect.Effect export type Endpoint10_4Input = { readonly integrationID: Integration.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly methodID: Integration.MethodID readonly inputs: { readonly [x: string]: string } readonly label?: string | undefined } export type Endpoint10_4Output = { readonly location: Location.Info; readonly data: Integration.Attempt } export type IntegrationOauthConnectOperation = ( input: Endpoint10_4Input, ) => Effect.Effect export type Endpoint10_5Input = { readonly integrationID: Integration.ID readonly attemptID: Integration.AttemptID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint10_5Output = { readonly location: Location.Info; readonly data: Integration.AttemptStatus } export type IntegrationOauthStatusOperation = ( input: Endpoint10_5Input, ) => Effect.Effect export type Endpoint10_6Input = { readonly integrationID: Integration.ID readonly attemptID: Integration.AttemptID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly code?: string | undefined } export type Endpoint10_6Output = void export type IntegrationOauthCompleteOperation = ( input: Endpoint10_6Input, ) => Effect.Effect export type Endpoint10_7Input = { readonly integrationID: Integration.ID readonly attemptID: Integration.AttemptID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint10_7Output = void export type IntegrationOauthCancelOperation = ( input: Endpoint10_7Input, ) => Effect.Effect export type Endpoint10_8Input = { readonly integrationID: Integration.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly methodID: Integration.MethodID readonly label?: string | undefined } export type Endpoint10_8Output = { readonly location: Location.Info; readonly data: Integration.CommandAttempt } export type IntegrationCommandConnectOperation = ( input: Endpoint10_8Input, ) => Effect.Effect export type Endpoint10_9Input = { readonly integrationID: Integration.ID readonly attemptID: Integration.AttemptID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint10_9Output = { readonly location: Location.Info; readonly data: Integration.CommandAttemptStatus } export type IntegrationCommandStatusOperation = ( input: Endpoint10_9Input, ) => Effect.Effect export type Endpoint10_10Input = { readonly integrationID: Integration.ID readonly attemptID: Integration.AttemptID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint10_10Output = void export type IntegrationCommandCancelOperation = ( input: Endpoint10_10Input, ) => Effect.Effect export interface IntegrationApi { readonly list: IntegrationListOperation readonly get: IntegrationGetOperation readonly wellknown: { readonly add: IntegrationWellknownAddOperation } readonly connect: { readonly key: IntegrationConnectKeyOperation } readonly oauth: { readonly connect: IntegrationOauthConnectOperation readonly status: IntegrationOauthStatusOperation readonly complete: IntegrationOauthCompleteOperation readonly cancel: IntegrationOauthCancelOperation } readonly command: { readonly connect: IntegrationCommandConnectOperation readonly status: IntegrationCommandStatusOperation readonly cancel: IntegrationCommandCancelOperation } } export type Endpoint11_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint11_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type McpListOperation = (input?: Endpoint11_0Input) => Effect.Effect export type Endpoint11_1Input = { readonly server: string readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly config: Mcp.LocalConfig | Mcp.RemoteConfig } export type Endpoint11_1Output = void export type McpAddOperation = (input: Endpoint11_1Input) => Effect.Effect export type Endpoint11_2Input = { readonly server: string readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint11_2Output = void export type McpRemoveOperation = (input: Endpoint11_2Input) => Effect.Effect export type Endpoint11_3Input = { readonly server: string readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint11_3Output = void export type McpConnectOperation = (input: Endpoint11_3Input) => Effect.Effect export type Endpoint11_4Input = { readonly server: string readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint11_4Output = void export type McpDisconnectOperation = (input: Endpoint11_4Input) => Effect.Effect export type Endpoint11_5Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint11_5Output = { readonly location: Location.Info; readonly data: Mcp.ResourceCatalog } export type McpResourceCatalogOperation = (input?: Endpoint11_5Input) => Effect.Effect export interface McpApi { readonly list: McpListOperation readonly add: McpAddOperation readonly remove: McpRemoveOperation readonly connect: McpConnectOperation readonly disconnect: McpDisconnectOperation readonly resource: { readonly catalog: McpResourceCatalogOperation } } export type Endpoint12_0Input = { readonly credentialID: Credential.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly label: string } export type Endpoint12_0Output = void export type CredentialUpdateOperation = (input: Endpoint12_0Input) => Effect.Effect export type Endpoint12_1Input = { readonly credentialID: Credential.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint12_1Output = void export type CredentialRemoveOperation = (input: Endpoint12_1Input) => Effect.Effect export interface CredentialApi { readonly update: CredentialUpdateOperation readonly remove: CredentialRemoveOperation } export type Endpoint13_0Output = ReadonlyArray export type ProjectListOperation = () => Effect.Effect export type Endpoint13_1Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint13_1Output = Project.Current export type ProjectCurrentOperation = (input?: Endpoint13_1Input) => Effect.Effect export type Endpoint13_2Input = { readonly projectID: Project.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint13_2Output = Project.Directories export type ProjectDirectoriesOperation = (input: Endpoint13_2Input) => Effect.Effect export interface ProjectApi { readonly list: ProjectListOperation readonly current: ProjectCurrentOperation readonly directories: ProjectDirectoriesOperation } export type Endpoint14_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint14_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type FormRequestListOperation = (input?: Endpoint14_0Input) => Effect.Effect export type Endpoint14_1Input = { readonly sessionID: string } export type Endpoint14_1Output = ReadonlyArray export type FormListOperation = (input: Endpoint14_1Input) => Effect.Effect export type Endpoint14_2Input = { readonly sessionID: string readonly id?: Form.ID | undefined readonly title: string readonly metadata?: Form.Metadata | undefined readonly fields: Form.Fields } export type Endpoint14_2Output = Form.Info export type FormCreateOperation = (input: Endpoint14_2Input) => Effect.Effect export type Endpoint14_3Input = { readonly sessionID: string; readonly formID: Form.ID } export type Endpoint14_3Output = Form.Info export type FormGetOperation = (input: Endpoint14_3Input) => Effect.Effect export type Endpoint14_4Input = { readonly sessionID: string; readonly formID: Form.ID } export type Endpoint14_4Output = Form.State export type FormStateOperation = (input: Endpoint14_4Input) => Effect.Effect export type Endpoint14_5Input = { readonly sessionID: string; readonly formID: Form.ID; readonly answer: Form.Answer } export type Endpoint14_5Output = void export type FormReplyOperation = (input: Endpoint14_5Input) => Effect.Effect export type Endpoint14_6Input = { readonly sessionID: string; readonly formID: Form.ID } export type Endpoint14_6Output = void export type FormCancelOperation = (input: Endpoint14_6Input) => Effect.Effect export interface FormApi { readonly request: { readonly list: FormRequestListOperation } readonly list: FormListOperation readonly create: FormCreateOperation readonly get: FormGetOperation readonly state: FormStateOperation readonly reply: FormReplyOperation readonly cancel: FormCancelOperation } export type Endpoint15_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint15_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type PermissionRequestListOperation = ( input?: Endpoint15_0Input, ) => Effect.Effect export type Endpoint15_1Input = { readonly projectID?: Project.ID | undefined } export type Endpoint15_1Output = ReadonlyArray export type PermissionSavedListOperation = ( input?: Endpoint15_1Input, ) => Effect.Effect export type Endpoint15_2Input = { readonly id: PermissionSaved.ID } export type Endpoint15_2Output = void export type PermissionSavedRemoveOperation = ( input: Endpoint15_2Input, ) => Effect.Effect export type Endpoint15_3Input = { readonly sessionID: Session.ID readonly id?: Permission.ID | undefined readonly action: string readonly resources: ReadonlyArray readonly save?: ReadonlyArray | undefined readonly metadata?: { readonly [x: string]: unknown } | undefined readonly source?: Permission.Source | undefined readonly agent?: Agent.ID | undefined } export type Endpoint15_3Output = { readonly id: Permission.ID; readonly effect: Permission.Effect } export type PermissionCreateOperation = (input: Endpoint15_3Input) => Effect.Effect export type Endpoint15_4Input = { readonly sessionID: Session.ID } export type Endpoint15_4Output = ReadonlyArray export type PermissionListOperation = (input: Endpoint15_4Input) => Effect.Effect export type Endpoint15_5Input = { readonly sessionID: Session.ID; readonly requestID: Permission.ID } export type Endpoint15_5Output = Permission.Request export type PermissionGetOperation = (input: Endpoint15_5Input) => Effect.Effect export type Endpoint15_6Input = { readonly sessionID: Session.ID readonly requestID: Permission.ID readonly reply: Permission.Reply readonly message?: string | undefined } export type Endpoint15_6Output = void export type PermissionReplyOperation = (input: Endpoint15_6Input) => Effect.Effect export interface PermissionApi { readonly request: { readonly list: PermissionRequestListOperation } readonly saved: { readonly list: PermissionSavedListOperation; readonly remove: PermissionSavedRemoveOperation } readonly create: PermissionCreateOperation readonly list: PermissionListOperation readonly get: PermissionGetOperation readonly reply: PermissionReplyOperation } export type Endpoint16_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly path?: RelativePath | undefined } export type Endpoint16_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type FileListOperation = (input?: Endpoint16_0Input) => Effect.Effect export type Endpoint16_1Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly query: string readonly type?: "file" | "directory" | undefined readonly limit?: number | undefined } export type Endpoint16_1Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type FileFindOperation = (input: Endpoint16_1Input) => Effect.Effect export interface FileApi { readonly list: FileListOperation readonly find: FileFindOperation } export type Endpoint17_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint17_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type CommandListOperation = (input?: Endpoint17_0Input) => Effect.Effect export interface CommandApi { readonly list: CommandListOperation } export type Endpoint18_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint18_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type SkillListOperation = (input?: Endpoint18_0Input) => Effect.Effect export interface SkillApi { readonly list: SkillListOperation } export type Endpoint19_0Output = OpenCodeEvent export type EventSubscribeOperation = () => Stream.Stream export interface EventApi { readonly subscribe: EventSubscribeOperation } export type Endpoint20_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint20_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type PtyListOperation = (input?: Endpoint20_0Input) => Effect.Effect export type Endpoint20_1Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly command?: string | undefined readonly args?: ReadonlyArray | undefined readonly cwd?: string | undefined readonly title?: string | undefined readonly env?: { readonly [x: string]: string } | undefined } export type Endpoint20_1Output = { readonly location: Location.Info; readonly data: Pty.Info } export type PtyCreateOperation = (input?: Endpoint20_1Input) => Effect.Effect export type Endpoint20_2Input = { readonly ptyID: Pty.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint20_2Output = { readonly location: Location.Info; readonly data: Pty.Info } export type PtyGetOperation = (input: Endpoint20_2Input) => Effect.Effect export type Endpoint20_3Input = { readonly ptyID: Pty.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly title?: string | undefined readonly size?: { readonly rows: number; readonly cols: number } | undefined } export type Endpoint20_3Output = { readonly location: Location.Info; readonly data: Pty.Info } export type PtyUpdateOperation = (input: Endpoint20_3Input) => Effect.Effect export type Endpoint20_4Input = { readonly ptyID: Pty.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint20_4Output = void export type PtyRemoveOperation = (input: Endpoint20_4Input) => Effect.Effect export interface PtyApi { readonly list: PtyListOperation readonly create: PtyCreateOperation readonly get: PtyGetOperation readonly update: PtyUpdateOperation readonly remove: PtyRemoveOperation } export type Endpoint21_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint21_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type ShellListOperation = (input?: Endpoint21_0Input) => Effect.Effect export type Endpoint21_1Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly command: string readonly cwd?: string | undefined readonly timeout: number readonly metadata?: { readonly [x: string]: unknown } | undefined } export type Endpoint21_1Output = { readonly location: Location.Info; readonly data: Shell.Info } export type ShellCreateOperation = (input: Endpoint21_1Input) => Effect.Effect export type Endpoint21_2Input = { readonly id: Shell.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint21_2Output = { readonly location: Location.Info; readonly data: Shell.Info } export type ShellGetOperation = (input: Endpoint21_2Input) => Effect.Effect export type Endpoint21_3Input = { readonly id: Shell.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly timeout: number } export type Endpoint21_3Output = { readonly location: Location.Info; readonly data: Shell.Info } export type ShellTimeoutOperation = (input: Endpoint21_3Input) => Effect.Effect export type Endpoint21_4Input = { readonly id: Shell.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly cursor?: number | undefined readonly limit?: number | undefined } export type Endpoint21_4Output = { readonly location: Location.Info readonly data: { readonly output: string readonly cursor: number readonly size: number readonly truncated: boolean } } export type ShellOutputOperation = (input: Endpoint21_4Input) => Effect.Effect export type Endpoint21_5Input = { readonly id: Shell.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint21_5Output = void export type ShellRemoveOperation = (input: Endpoint21_5Input) => Effect.Effect export interface ShellApi { readonly list: ShellListOperation readonly create: ShellCreateOperation readonly get: ShellGetOperation readonly timeout: ShellTimeoutOperation readonly output: ShellOutputOperation readonly remove: ShellRemoveOperation } export type Endpoint22_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint22_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type QuestionRequestListOperation = ( input?: Endpoint22_0Input, ) => Effect.Effect export type Endpoint22_1Input = { readonly sessionID: Session.ID } export type Endpoint22_1Output = ReadonlyArray export type QuestionListOperation = (input: Endpoint22_1Input) => Effect.Effect export type Endpoint22_2Input = { readonly sessionID: Session.ID readonly requestID: Question.ID readonly answers: ReadonlyArray } export type Endpoint22_2Output = void export type QuestionReplyOperation = (input: Endpoint22_2Input) => Effect.Effect export type Endpoint22_3Input = { readonly sessionID: Session.ID; readonly requestID: Question.ID } export type Endpoint22_3Output = void export type QuestionRejectOperation = (input: Endpoint22_3Input) => Effect.Effect export interface QuestionApi { readonly request: { readonly list: QuestionRequestListOperation } readonly list: QuestionListOperation readonly reply: QuestionReplyOperation readonly reject: QuestionRejectOperation } export type Endpoint23_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint23_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type ReferenceListOperation = (input?: Endpoint23_0Input) => Effect.Effect export interface ReferenceApi { readonly list: ReferenceListOperation } export type Endpoint24_0Input = { readonly projectID: Project.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly strategy: ProjectCopy.StrategyID readonly directory: AbsolutePath readonly name?: string | undefined } export type Endpoint24_0Output = ProjectCopy.Copy export type ProjectCopyCreateOperation = (input: Endpoint24_0Input) => Effect.Effect export type Endpoint24_1Input = { readonly projectID: Project.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly directory: AbsolutePath readonly force: boolean } export type Endpoint24_1Output = void export type ProjectCopyRemoveOperation = (input: Endpoint24_1Input) => Effect.Effect export type Endpoint24_2Input = { readonly projectID: Project.ID readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint24_2Output = void export type ProjectCopyRefreshOperation = (input: Endpoint24_2Input) => Effect.Effect export interface ProjectCopyApi { readonly create: ProjectCopyCreateOperation readonly remove: ProjectCopyRemoveOperation readonly refresh: ProjectCopyRefreshOperation } export type Endpoint25_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint25_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type VcsStatusOperation = (input?: Endpoint25_0Input) => Effect.Effect export type Endpoint25_1Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly mode: Vcs.Mode readonly context?: number | undefined } export type Endpoint25_1Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type VcsDiffOperation = (input: Endpoint25_1Input) => Effect.Effect export interface VcsApi { readonly status: VcsStatusOperation readonly diff: VcsDiffOperation } export type Endpoint26_0Output = ReadonlyArray export type DebugLocationListOperation = () => Effect.Effect export type Endpoint26_1Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint26_1Output = void export type DebugLocationEvictOperation = (input?: Endpoint26_1Input) => Effect.Effect export interface DebugApi { readonly location: { readonly list: DebugLocationListOperation; readonly evict: DebugLocationEvictOperation } } export type Endpoint27_0Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined } export type Endpoint27_0Output = { readonly location: Location.Info; readonly data: ReadonlyArray } export type WebsearchProvidersOperation = (input?: Endpoint27_0Input) => Effect.Effect export type Endpoint27_1Input = { readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined readonly query: string readonly providerID?: WebSearch.ID | undefined } export type Endpoint27_1Output = { readonly location: Location.Info; readonly data: WebSearch.Response } export type WebsearchQueryOperation = (input: Endpoint27_1Input) => Effect.Effect export interface WebsearchApi { readonly providers: WebsearchProvidersOperation readonly query: WebsearchQueryOperation } export interface AppApi { readonly health: HealthApi readonly server: ServerApi readonly location: LocationApi readonly agent: AgentApi readonly plugin: PluginApi readonly session: SessionApi readonly message: MessageApi readonly model: ModelApi readonly generate: GenerateApi readonly provider: ProviderApi readonly integration: IntegrationApi readonly mcp: McpApi readonly credential: CredentialApi readonly project: ProjectApi readonly form: FormApi readonly permission: PermissionApi readonly file: FileApi readonly command: CommandApi readonly skill: SkillApi readonly event: EventApi readonly pty: PtyApi readonly shell: ShellApi readonly question: QuestionApi readonly reference: ReferenceApi readonly projectCopy: ProjectCopyApi readonly vcs: VcsApi readonly debug: DebugApi readonly websearch: WebsearchApi }