diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts index 097b68152e..3ac6ea713d 100644 --- a/packages/sdk/js/src/v2/gen/types.gen.ts +++ b/packages/sdk/js/src/v2/gen/types.gen.ts @@ -2782,95 +2782,162 @@ export type ProviderNotFoundError = { message: string } -export type V2Event = - | V2EventModelsDevRefreshed - | V2EventIntegrationUpdated - | V2EventIntegrationConnectionUpdated - | V2EventCatalogUpdated - | V2EventSessionCreated - | V2EventSessionUpdated - | V2EventSessionDeleted - | V2EventMessageUpdated - | V2EventMessageRemoved - | V2EventMessagePartUpdated - | V2EventMessagePartRemoved - | V2EventSessionNextAgentSwitched - | V2EventSessionNextModelSwitched - | V2EventSessionNextMoved - | V2EventSessionNextPrompted - | V2EventSessionNextPromptAdmitted - | V2EventSessionNextContextUpdated - | V2EventSessionNextSynthetic - | V2EventSessionNextShellStarted - | V2EventSessionNextShellEnded - | V2EventSessionNextStepStarted - | V2EventSessionNextStepEnded - | V2EventSessionNextStepFailed - | V2EventSessionNextTextStarted - | V2EventSessionNextTextDelta - | V2EventSessionNextTextEnded - | V2EventSessionNextReasoningStarted - | V2EventSessionNextReasoningDelta - | V2EventSessionNextReasoningEnded - | V2EventSessionNextToolInputStarted - | V2EventSessionNextToolInputDelta - | V2EventSessionNextToolInputEnded - | V2EventSessionNextToolCalled - | V2EventSessionNextToolProgress - | V2EventSessionNextToolSuccess - | V2EventSessionNextToolFailed - | V2EventSessionNextRetried - | V2EventSessionNextCompactionStarted - | V2EventSessionNextCompactionDelta - | V2EventSessionNextCompactionEnded - | V2EventSessionNextRevertStaged - | V2EventSessionNextRevertCleared - | V2EventSessionNextRevertCommitted - | V2EventMessagePartDelta - | V2EventSessionDiff - | V2EventSessionError - | V2EventInstallationUpdated - | V2EventInstallationUpdateAvailable - | V2EventFileEdited - | V2EventReferenceUpdated - | V2EventPermissionV2Asked - | V2EventPermissionV2Replied - | V2EventPluginAdded - | V2EventProjectDirectoriesUpdated - | V2EventFileWatcherUpdated - | V2EventPtyCreated - | V2EventPtyUpdated - | V2EventPtyExited - | V2EventPtyDeleted - | V2EventQuestionV2Asked - | V2EventQuestionV2Replied - | V2EventQuestionV2Rejected - | V2EventTodoUpdated - | V2EventLspUpdated - | V2EventPermissionAsked - | V2EventPermissionReplied - | V2EventTuiPromptAppend - | V2EventTuiCommandExecute - | V2EventTuiToastShow - | V2EventTuiSessionSelect - | V2EventMcpToolsChanged - | V2EventMcpBrowserOpenFailed - | V2EventCommandExecuted - | V2EventProjectUpdated - | V2EventSessionStatus - | V2EventSessionIdle - | V2EventQuestionAsked - | V2EventQuestionReplied - | V2EventQuestionRejected - | V2EventSessionCompacted - | V2EventVcsBranchUpdated - | V2EventWorkspaceReady - | V2EventWorkspaceFailed - | V2EventWorkspaceStatus - | V2EventWorktreeReady - | V2EventWorktreeFailed - | V2EventServerConnected - | V2EventGlobalDisposed +export type OutputFormat1 = + | { + type: "text" + } + | { + type: "json_schema" + schema: JsonSchema + retryCount?: number + } + +export type SessionStatus2 = { + id: string + metadata?: { + [key: string]: unknown + } + type: "session.status" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef + data: { + sessionID: string + status: SessionStatus + } +} + +export type QuestionReplied2 = { + id: string + metadata?: { + [key: string]: unknown + } + type: "question.replied" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef + data: { + sessionID: string + requestID: string + answers: Array + } +} + +export type QuestionRejected2 = { + id: string + metadata?: { + [key: string]: unknown + } + type: "question.rejected" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef + data: { + sessionID: string + requestID: string + } +} + +export type V2Event1 = + | ModelsDevRefreshed + | IntegrationUpdated + | IntegrationConnectionUpdated + | CatalogUpdated + | SessionCreated + | SessionUpdated + | SessionDeleted + | MessageUpdated + | MessageRemoved + | MessagePartUpdated + | MessagePartRemoved + | SessionNextAgentSwitched + | SessionNextModelSwitched + | SessionNextMoved + | SessionNextPrompted + | SessionNextPromptAdmitted + | SessionNextContextUpdated + | SessionNextSynthetic + | SessionNextShellStarted + | SessionNextShellEnded + | SessionNextStepStarted + | SessionNextStepEnded + | SessionNextStepFailed + | SessionNextTextStarted + | SessionNextTextDelta + | SessionNextTextEnded + | SessionNextReasoningStarted + | SessionNextReasoningDelta + | SessionNextReasoningEnded + | SessionNextToolInputStarted + | SessionNextToolInputDelta + | SessionNextToolInputEnded + | SessionNextToolCalled + | SessionNextToolProgress + | SessionNextToolSuccess + | SessionNextToolFailed + | SessionNextRetried + | SessionNextCompactionStarted + | SessionNextCompactionDelta + | SessionNextCompactionEnded + | SessionNextRevertStaged + | SessionNextRevertCleared + | SessionNextRevertCommitted + | MessagePartDelta + | SessionDiff + | SessionError + | InstallationUpdated + | InstallationUpdateAvailable + | FileEdited + | ReferenceUpdated + | PermissionV2Asked + | PermissionV2Replied + | PluginAdded + | ProjectDirectoriesUpdated + | FileWatcherUpdated + | PtyCreated + | PtyUpdated + | PtyExited + | PtyDeleted + | QuestionV2Asked + | QuestionV2Replied + | QuestionV2Rejected + | TodoUpdated + | LspUpdated + | PermissionAsked + | PermissionReplied + | TuiPromptAppend + | TuiCommandExecute + | TuiToastShow + | TuiSessionSelect + | McpToolsChanged + | McpBrowserOpenFailed + | CommandExecuted + | ProjectUpdated + | SessionStatus2 + | SessionIdle + | QuestionAsked + | QuestionReplied2 + | QuestionRejected2 + | SessionCompacted + | VcsBranchUpdated + | WorkspaceReady + | WorkspaceFailed + | WorkspaceStatus + | WorktreeReady + | WorktreeFailed + | ServerConnected + | GlobalDisposed + +export type V2Event = string export type ForbiddenError = { _tag: "ForbiddenError" @@ -4945,176 +5012,176 @@ export type SkillV2Info = { content: string } -export type V2EventModelsDevRefreshed = { +export type ModelsDevRefreshed = { id: string metadata?: { [key: string]: unknown } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef type: "models-dev.refreshed" - data: { - [key: string]: unknown - } -} - -export type V2EventIntegrationUpdated = { - id: string - metadata?: { - [key: string]: unknown - } durable?: { aggregateID: string seq: number version: number } location?: LocationRef + data: { + [key: string]: unknown + } +} + +export type IntegrationUpdated = { + id: string + metadata?: { + [key: string]: unknown + } type: "integration.updated" - data: { - [key: string]: unknown - } -} - -export type V2EventIntegrationConnectionUpdated = { - id: string - metadata?: { - [key: string]: unknown - } durable?: { aggregateID: string seq: number version: number } location?: LocationRef + data: { + [key: string]: unknown + } +} + +export type IntegrationConnectionUpdated = { + id: string + metadata?: { + [key: string]: unknown + } type: "integration.connection.updated" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef data: { integrationID: string } } -export type V2EventCatalogUpdated = { +export type CatalogUpdated = { id: string metadata?: { [key: string]: unknown } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef type: "catalog.updated" - data: { - [key: string]: unknown - } -} - -export type V2EventSessionCreated = { - id: string - metadata?: { - [key: string]: unknown - } durable?: { aggregateID: string seq: number version: number } location?: LocationRef + data: { + [key: string]: unknown + } +} + +export type SessionCreated = { + id: string + metadata?: { + [key: string]: unknown + } type: "session.created" - data: { - sessionID: string - info: Session - } -} - -export type V2EventSessionUpdated = { - id: string - metadata?: { - [key: string]: unknown - } durable?: { aggregateID: string seq: number version: number } location?: LocationRef + data: { + sessionID: string + info: Session + } +} + +export type SessionUpdated = { + id: string + metadata?: { + [key: string]: unknown + } type: "session.updated" - data: { - sessionID: string - info: Session - } -} - -export type V2EventSessionDeleted = { - id: string - metadata?: { - [key: string]: unknown - } durable?: { aggregateID: string seq: number version: number } location?: LocationRef + data: { + sessionID: string + info: Session + } +} + +export type SessionDeleted = { + id: string + metadata?: { + [key: string]: unknown + } type: "session.deleted" - data: { - sessionID: string - info: Session - } -} - -export type V2EventMessageUpdated = { - id: string - metadata?: { - [key: string]: unknown - } durable?: { aggregateID: string seq: number version: number } location?: LocationRef + data: { + sessionID: string + info: Session + } +} + +export type MessageUpdated = { + id: string + metadata?: { + [key: string]: unknown + } type: "message.updated" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef data: { sessionID: string info: Message } } -export type V2EventMessageRemoved = { +export type MessageRemoved = { id: string metadata?: { [key: string]: unknown } + type: "message.removed" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "message.removed" data: { sessionID: string messageID: string } } -export type V2EventMessagePartUpdated = { +export type MessagePartUpdated = { id: string metadata?: { [key: string]: unknown } + type: "message.part.updated" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "message.part.updated" data: { sessionID: string part: Part @@ -5122,18 +5189,18 @@ export type V2EventMessagePartUpdated = { } } -export type V2EventMessagePartRemoved = { +export type MessagePartRemoved = { id: string metadata?: { [key: string]: unknown } + type: "message.part.removed" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "message.part.removed" data: { sessionID: string messageID: string @@ -5141,295 +5208,18 @@ export type V2EventMessagePartRemoved = { } } -export type V2EventSessionNextAgentSwitched = { +export type SessionNextTextDelta = { id: string metadata?: { [key: string]: unknown } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.agent.switched" - data: { - timestamp: number - sessionID: string - messageID: string - agent: string - } -} - -export type V2EventSessionNextModelSwitched = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.model.switched" - data: { - timestamp: number - sessionID: string - messageID: string - model: ModelRef - } -} - -export type V2EventSessionNextMoved = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.moved" - data: { - timestamp: number - sessionID: string - location: LocationRef - subdirectory?: string - } -} - -export type V2EventSessionNextPrompted = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.prompted" - data: { - timestamp: number - sessionID: string - messageID: string - prompt: Prompt - delivery: "steer" | "queue" - } -} - -export type V2EventSessionNextPromptAdmitted = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.prompt.admitted" - data: { - timestamp: number - sessionID: string - messageID: string - prompt: Prompt - delivery: "steer" | "queue" - } -} - -export type V2EventSessionNextContextUpdated = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.context.updated" - data: { - timestamp: number - sessionID: string - messageID: string - text: string - } -} - -export type V2EventSessionNextSynthetic = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.synthetic" - data: { - timestamp: number - sessionID: string - messageID: string - text: string - } -} - -export type V2EventSessionNextShellStarted = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.shell.started" - data: { - timestamp: number - sessionID: string - messageID: string - callID: string - command: string - } -} - -export type V2EventSessionNextShellEnded = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.shell.ended" - data: { - timestamp: number - sessionID: string - callID: string - output: string - } -} - -export type V2EventSessionNextStepStarted = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.step.started" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - agent: string - model: ModelRef - snapshot?: string - } -} - -export type V2EventSessionNextStepEnded = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.step.ended" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - finish: string - cost: number - tokens: { - input: number - output: number - reasoning: number - cache: { - read: number - write: number - } - } - snapshot?: string - files?: Array - } -} - -export type V2EventSessionNextStepFailed = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.step.failed" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - error: SessionErrorUnknown - } -} - -export type V2EventSessionNextTextStarted = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.text.started" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - textID: string - } -} - -export type V2EventSessionNextTextDelta = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef type: "session.next.text.delta" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef data: { timestamp: number sessionID: string @@ -5439,60 +5229,18 @@ export type V2EventSessionNextTextDelta = { } } -export type V2EventSessionNextTextEnded = { +export type SessionNextReasoningDelta = { id: string metadata?: { [key: string]: unknown } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.text.ended" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - textID: string - text: string - } -} - -export type V2EventSessionNextReasoningStarted = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.reasoning.started" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - reasoningID: string - providerMetadata?: LlmProviderMetadata - } -} - -export type V2EventSessionNextReasoningDelta = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef type: "session.next.reasoning.delta" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef data: { timestamp: number sessionID: string @@ -5502,61 +5250,18 @@ export type V2EventSessionNextReasoningDelta = { } } -export type V2EventSessionNextReasoningEnded = { +export type SessionNextToolInputDelta = { id: string metadata?: { [key: string]: unknown } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.reasoning.ended" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - reasoningID: string - text: string - providerMetadata?: LlmProviderMetadata - } -} - -export type V2EventSessionNextToolInputStarted = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.tool.input.started" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - callID: string - name: string - } -} - -export type V2EventSessionNextToolInputDelta = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef type: "session.next.tool.input.delta" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef data: { timestamp: number sessionID: string @@ -5566,187 +5271,18 @@ export type V2EventSessionNextToolInputDelta = { } } -export type V2EventSessionNextToolInputEnded = { +export type SessionNextCompactionDelta = { id: string metadata?: { [key: string]: unknown } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.tool.input.ended" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - callID: string - text: string - } -} - -export type V2EventSessionNextToolCalled = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.tool.called" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - callID: string - tool: string - input: { - [key: string]: unknown - } - provider: { - executed: boolean - metadata?: LlmProviderMetadata - } - } -} - -export type V2EventSessionNextToolProgress = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.tool.progress" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - callID: string - structured: { - [key: string]: unknown - } - content: Array - } -} - -export type V2EventSessionNextToolSuccess = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.tool.success" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - callID: string - structured: { - [key: string]: unknown - } - content: Array - outputPaths?: Array - result?: unknown - provider: { - executed: boolean - metadata?: LlmProviderMetadata - } - } -} - -export type V2EventSessionNextToolFailed = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.tool.failed" - data: { - timestamp: number - sessionID: string - assistantMessageID: string - callID: string - error: SessionErrorUnknown - result?: unknown - provider: { - executed: boolean - metadata?: LlmProviderMetadata - } - } -} - -export type V2EventSessionNextRetried = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.retried" - data: { - timestamp: number - sessionID: string - attempt: number - error: SessionNextRetryError - } -} - -export type V2EventSessionNextCompactionStarted = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.compaction.started" - data: { - timestamp: number - sessionID: string - messageID: string - reason: "auto" | "manual" - } -} - -export type V2EventSessionNextCompactionDelta = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef type: "session.next.compaction.delta" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef data: { timestamp: number sessionID: string @@ -5755,96 +5291,18 @@ export type V2EventSessionNextCompactionDelta = { } } -export type V2EventSessionNextCompactionEnded = { +export type MessagePartDelta = { id: string metadata?: { [key: string]: unknown } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.compaction.ended" - data: { - timestamp: number - sessionID: string - messageID: string - reason: "auto" | "manual" - text: string - recent: string - } -} - -export type V2EventSessionNextRevertStaged = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.revert.staged" - data: { - timestamp: number - sessionID: string - revert: RevertState - } -} - -export type V2EventSessionNextRevertCleared = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.revert.cleared" - data: { - timestamp: number - sessionID: string - } -} - -export type V2EventSessionNextRevertCommitted = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.next.revert.committed" - data: { - timestamp: number - sessionID: string - messageID: string - } -} - -export type V2EventMessagePartDelta = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef type: "message.part.delta" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef data: { sessionID: string messageID: string @@ -5854,36 +5312,36 @@ export type V2EventMessagePartDelta = { } } -export type V2EventSessionDiff = { +export type SessionDiff = { id: string metadata?: { [key: string]: unknown } + type: "session.diff" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "session.diff" data: { sessionID: string diff: Array } } -export type V2EventSessionError = { +export type SessionError = { id: string metadata?: { [key: string]: unknown } + type: "session.error" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "session.error" data: { sessionID?: string error?: @@ -5898,86 +5356,86 @@ export type V2EventSessionError = { } } -export type V2EventInstallationUpdated = { +export type InstallationUpdated = { id: string metadata?: { [key: string]: unknown } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef type: "installation.updated" - data: { - version: string - } -} - -export type V2EventInstallationUpdateAvailable = { - id: string - metadata?: { - [key: string]: unknown - } durable?: { aggregateID: string seq: number version: number } location?: LocationRef + data: { + version: string + } +} + +export type InstallationUpdateAvailable = { + id: string + metadata?: { + [key: string]: unknown + } type: "installation.update-available" - data: { - version: string - } -} - -export type V2EventFileEdited = { - id: string - metadata?: { - [key: string]: unknown - } durable?: { aggregateID: string seq: number version: number } location?: LocationRef + data: { + version: string + } +} + +export type FileEdited = { + id: string + metadata?: { + [key: string]: unknown + } type: "file.edited" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef data: { file: string } } -export type V2EventReferenceUpdated = { +export type ReferenceUpdated = { id: string metadata?: { [key: string]: unknown } + type: "reference.updated" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "reference.updated" data: { [key: string]: unknown } } -export type V2EventPermissionV2Asked = { +export type PermissionV2Asked = { id: string metadata?: { [key: string]: unknown } + type: "permission.v2.asked" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "permission.v2.asked" data: { id: string sessionID: string @@ -5991,18 +5449,18 @@ export type V2EventPermissionV2Asked = { } } -export type V2EventPermissionV2Replied = { +export type PermissionV2Replied = { id: string metadata?: { [key: string]: unknown } + type: "permission.v2.replied" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "permission.v2.replied" data: { sessionID: string requestID: string @@ -6010,139 +5468,139 @@ export type V2EventPermissionV2Replied = { } } -export type V2EventPluginAdded = { +export type PluginAdded = { id: string metadata?: { [key: string]: unknown } + type: "plugin.added" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "plugin.added" data: { id: string } } -export type V2EventProjectDirectoriesUpdated = { +export type ProjectDirectoriesUpdated = { id: string metadata?: { [key: string]: unknown } + type: "project.directories.updated" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "project.directories.updated" data: { projectID: string } } -export type V2EventFileWatcherUpdated = { +export type FileWatcherUpdated = { id: string metadata?: { [key: string]: unknown } + type: "file.watcher.updated" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "file.watcher.updated" data: { file: string event: "add" | "change" | "unlink" } } -export type V2EventPtyCreated = { +export type PtyCreated = { id: string metadata?: { [key: string]: unknown } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef type: "pty.created" - data: { - info: Pty - } -} - -export type V2EventPtyUpdated = { - id: string - metadata?: { - [key: string]: unknown - } durable?: { aggregateID: string seq: number version: number } location?: LocationRef + data: { + info: Pty + } +} + +export type PtyUpdated = { + id: string + metadata?: { + [key: string]: unknown + } type: "pty.updated" - data: { - info: Pty - } -} - -export type V2EventPtyExited = { - id: string - metadata?: { - [key: string]: unknown - } durable?: { aggregateID: string seq: number version: number } location?: LocationRef + data: { + info: Pty + } +} + +export type PtyExited = { + id: string + metadata?: { + [key: string]: unknown + } type: "pty.exited" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef data: { id: string exitCode: number } } -export type V2EventPtyDeleted = { +export type PtyDeleted = { id: string metadata?: { [key: string]: unknown } + type: "pty.deleted" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "pty.deleted" data: { id: string } } -export type V2EventQuestionV2Asked = { +export type QuestionV2Asked = { id: string metadata?: { [key: string]: unknown } + type: "question.v2.asked" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "question.v2.asked" data: { id: string sessionID: string @@ -6154,18 +5612,18 @@ export type V2EventQuestionV2Asked = { } } -export type V2EventQuestionV2Replied = { +export type QuestionV2Replied = { id: string metadata?: { [key: string]: unknown } + type: "question.v2.replied" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "question.v2.replied" data: { sessionID: string requestID: string @@ -6173,71 +5631,71 @@ export type V2EventQuestionV2Replied = { } } -export type V2EventQuestionV2Rejected = { +export type QuestionV2Rejected = { id: string metadata?: { [key: string]: unknown } + type: "question.v2.rejected" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "question.v2.rejected" data: { sessionID: string requestID: string } } -export type V2EventTodoUpdated = { +export type TodoUpdated = { id: string metadata?: { [key: string]: unknown } + type: "todo.updated" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "todo.updated" data: { sessionID: string todos: Array } } -export type V2EventLspUpdated = { +export type LspUpdated = { id: string metadata?: { [key: string]: unknown } + type: "lsp.updated" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "lsp.updated" data: { [key: string]: unknown } } -export type V2EventPermissionAsked = { +export type PermissionAsked = { id: string metadata?: { [key: string]: unknown } + type: "permission.asked" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "permission.asked" data: { id: string sessionID: string @@ -6254,18 +5712,18 @@ export type V2EventPermissionAsked = { } } -export type V2EventPermissionReplied = { +export type PermissionReplied = { id: string metadata?: { [key: string]: unknown } + type: "permission.replied" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "permission.replied" data: { sessionID: string requestID: string @@ -6273,35 +5731,35 @@ export type V2EventPermissionReplied = { } } -export type V2EventTuiPromptAppend = { +export type TuiPromptAppend = { id: string metadata?: { [key: string]: unknown } + type: "tui.prompt.append" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "tui.prompt.append" data: { text: string } } -export type V2EventTuiCommandExecute = { +export type TuiCommandExecute = { id: string metadata?: { [key: string]: unknown } + type: "tui.command.execute" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "tui.command.execute" data: { command: | "session.list" @@ -6324,18 +5782,18 @@ export type V2EventTuiCommandExecute = { } } -export type V2EventTuiToastShow = { +export type TuiToastShow = { id: string metadata?: { [key: string]: unknown } + type: "tui.toast.show" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "tui.toast.show" data: { title?: string message: string @@ -6344,18 +5802,18 @@ export type V2EventTuiToastShow = { } } -export type V2EventTuiSessionSelect = { +export type TuiSessionSelect = { id: string metadata?: { [key: string]: unknown } + type: "tui.session.select" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "tui.session.select" data: { /** * Session ID to navigate to @@ -6364,53 +5822,53 @@ export type V2EventTuiSessionSelect = { } } -export type V2EventMcpToolsChanged = { +export type McpToolsChanged = { id: string metadata?: { [key: string]: unknown } + type: "mcp.tools.changed" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "mcp.tools.changed" data: { server: string } } -export type V2EventMcpBrowserOpenFailed = { +export type McpBrowserOpenFailed = { id: string metadata?: { [key: string]: unknown } + type: "mcp.browser.open.failed" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "mcp.browser.open.failed" data: { mcpName: string url: string } } -export type V2EventCommandExecuted = { +export type CommandExecuted = { id: string metadata?: { [key: string]: unknown } + type: "command.executed" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "command.executed" data: { name: string sessionID: string @@ -6419,18 +5877,18 @@ export type V2EventCommandExecuted = { } } -export type V2EventProjectUpdated = { +export type ProjectUpdated = { id: string metadata?: { [key: string]: unknown } + type: "project.updated" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "project.updated" data: { id: string worktree: string @@ -6443,53 +5901,35 @@ export type V2EventProjectUpdated = { } } -export type V2EventSessionStatus = { +export type SessionIdle = { id: string metadata?: { [key: string]: unknown } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "session.status" - data: { - sessionID: string - status: SessionStatus - } -} - -export type V2EventSessionIdle = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef type: "session.idle" - data: { - sessionID: string - } -} - -export type V2EventQuestionAsked = { - id: string - metadata?: { - [key: string]: unknown - } durable?: { aggregateID: string seq: number version: number } location?: LocationRef + data: { + sessionID: string + } +} + +export type QuestionAsked = { + id: string + metadata?: { + [key: string]: unknown + } type: "question.asked" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef data: { id: string sessionID: string @@ -6501,193 +5941,156 @@ export type V2EventQuestionAsked = { } } -export type V2EventQuestionReplied = { +export type SessionCompacted = { id: string metadata?: { [key: string]: unknown } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "question.replied" - data: { - sessionID: string - requestID: string - answers: Array - } -} - -export type V2EventQuestionRejected = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef - type: "question.rejected" - data: { - sessionID: string - requestID: string - } -} - -export type V2EventSessionCompacted = { - id: string - metadata?: { - [key: string]: unknown - } - durable?: { - aggregateID: string - seq: number - version: number - } - location?: LocationRef type: "session.compacted" - data: { - sessionID: string - } -} - -export type V2EventVcsBranchUpdated = { - id: string - metadata?: { - [key: string]: unknown - } durable?: { aggregateID: string seq: number version: number } location?: LocationRef + data: { + sessionID: string + } +} + +export type VcsBranchUpdated = { + id: string + metadata?: { + [key: string]: unknown + } type: "vcs.branch.updated" + durable?: { + aggregateID: string + seq: number + version: number + } + location?: LocationRef data: { branch?: string } } -export type V2EventWorkspaceReady = { +export type WorkspaceReady = { id: string metadata?: { [key: string]: unknown } + type: "workspace.ready" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "workspace.ready" data: { name: string } } -export type V2EventWorkspaceFailed = { +export type WorkspaceFailed = { id: string metadata?: { [key: string]: unknown } + type: "workspace.failed" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "workspace.failed" data: { message: string } } -export type V2EventWorkspaceStatus = { +export type WorkspaceStatus = { id: string metadata?: { [key: string]: unknown } + type: "workspace.status" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "workspace.status" data: { workspaceID: string status: "connected" | "connecting" | "disconnected" | "error" } } -export type V2EventWorktreeReady = { +export type WorktreeReady = { id: string metadata?: { [key: string]: unknown } + type: "worktree.ready" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "worktree.ready" data: { name: string branch?: string } } -export type V2EventWorktreeFailed = { +export type WorktreeFailed = { id: string metadata?: { [key: string]: unknown } + type: "worktree.failed" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "worktree.failed" data: { message: string } } -export type V2EventServerConnected = { +export type ServerConnected = { id: string metadata?: { [key: string]: unknown } + type: "server.connected" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "server.connected" data: { [key: string]: unknown } } -export type V2EventGlobalDisposed = { +export type GlobalDisposed = { id: string metadata?: { [key: string]: unknown } + type: "global.disposed" durable?: { aggregateID: string seq: number version: number } location?: LocationRef - type: "global.disposed" data: { [key: string]: unknown } diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 7a4351907a..1c833aa64b 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -23781,274 +23781,475 @@ "required": ["_tag", "providerID", "message"], "additionalProperties": false }, - "V2Event": { + "OutputFormat1": { "anyOf": [ { - "$ref": "#/components/schemas/V2EventModels-devRefreshed" - }, - { - "$ref": "#/components/schemas/V2EventIntegrationUpdated" - }, - { - "$ref": "#/components/schemas/V2EventIntegrationConnectionUpdated" - }, - { - "$ref": "#/components/schemas/V2EventCatalogUpdated" - }, - { - "$ref": "#/components/schemas/V2EventSessionCreated" - }, - { - "$ref": "#/components/schemas/V2EventSessionUpdated" - }, - { - "$ref": "#/components/schemas/V2EventSessionDeleted" - }, - { - "$ref": "#/components/schemas/V2EventMessageUpdated" - }, - { - "$ref": "#/components/schemas/V2EventMessageRemoved" - }, - { - "$ref": "#/components/schemas/V2EventMessagePartUpdated" - }, - { - "$ref": "#/components/schemas/V2EventMessagePartRemoved" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextAgentSwitched" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextModelSwitched" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextMoved" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextPrompted" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextPromptAdmitted" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextContextUpdated" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextSynthetic" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextShellStarted" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextShellEnded" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextStepStarted" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextStepEnded" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextStepFailed" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextTextStarted" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextTextDelta" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextTextEnded" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextReasoningStarted" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextReasoningDelta" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextReasoningEnded" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextToolInputStarted" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextToolInputDelta" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextToolInputEnded" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextToolCalled" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextToolProgress" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextToolSuccess" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextToolFailed" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextRetried" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextCompactionStarted" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextCompactionDelta" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextCompactionEnded" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextRevertStaged" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextRevertCleared" - }, - { - "$ref": "#/components/schemas/V2EventSessionNextRevertCommitted" - }, - { - "$ref": "#/components/schemas/V2EventMessagePartDelta" - }, - { - "$ref": "#/components/schemas/V2EventSessionDiff" - }, - { - "$ref": "#/components/schemas/V2EventSessionError" - }, - { - "$ref": "#/components/schemas/V2EventInstallationUpdated" - }, - { - "$ref": "#/components/schemas/V2EventInstallationUpdate-available" - }, - { - "$ref": "#/components/schemas/V2EventFileEdited" - }, - { - "$ref": "#/components/schemas/V2EventReferenceUpdated" - }, - { - "$ref": "#/components/schemas/V2EventPermissionV2Asked" - }, - { - "$ref": "#/components/schemas/V2EventPermissionV2Replied" - }, - { - "$ref": "#/components/schemas/V2EventPluginAdded" - }, - { - "$ref": "#/components/schemas/V2EventProjectDirectoriesUpdated" - }, - { - "$ref": "#/components/schemas/V2EventFileWatcherUpdated" - }, - { - "$ref": "#/components/schemas/V2EventPtyCreated" - }, - { - "$ref": "#/components/schemas/V2EventPtyUpdated" - }, - { - "$ref": "#/components/schemas/V2EventPtyExited" - }, - { - "$ref": "#/components/schemas/V2EventPtyDeleted" - }, - { - "$ref": "#/components/schemas/V2EventQuestionV2Asked" - }, - { - "$ref": "#/components/schemas/V2EventQuestionV2Replied" - }, - { - "$ref": "#/components/schemas/V2EventQuestionV2Rejected" - }, - { - "$ref": "#/components/schemas/V2EventTodoUpdated" - }, - { - "$ref": "#/components/schemas/V2EventLspUpdated" - }, - { - "$ref": "#/components/schemas/V2EventPermissionAsked" - }, - { - "$ref": "#/components/schemas/V2EventPermissionReplied" - }, - { - "$ref": "#/components/schemas/V2EventTuiPromptAppend" - }, - { - "$ref": "#/components/schemas/V2EventTuiCommandExecute" - }, - { - "$ref": "#/components/schemas/V2EventTuiToastShow" - }, - { - "$ref": "#/components/schemas/V2EventTuiSessionSelect" - }, - { - "$ref": "#/components/schemas/V2EventMcpToolsChanged" - }, - { - "$ref": "#/components/schemas/V2EventMcpBrowserOpenFailed" - }, - { - "$ref": "#/components/schemas/V2EventCommandExecuted" - }, - { - "$ref": "#/components/schemas/V2EventProjectUpdated" - }, - { - "$ref": "#/components/schemas/V2EventSessionStatus" - }, - { - "$ref": "#/components/schemas/V2EventSessionIdle" - }, - { - "$ref": "#/components/schemas/V2EventQuestionAsked" - }, - { - "$ref": "#/components/schemas/V2EventQuestionReplied" - }, - { - "$ref": "#/components/schemas/V2EventQuestionRejected" - }, - { - "$ref": "#/components/schemas/V2EventSessionCompacted" - }, - { - "$ref": "#/components/schemas/V2EventVcsBranchUpdated" - }, - { - "$ref": "#/components/schemas/V2EventWorkspaceReady" - }, - { - "$ref": "#/components/schemas/V2EventWorkspaceFailed" - }, - { - "$ref": "#/components/schemas/V2EventWorkspaceStatus" - }, - { - "$ref": "#/components/schemas/V2EventWorktreeReady" - }, - { - "$ref": "#/components/schemas/V2EventWorktreeFailed" - }, - { - "$ref": "#/components/schemas/V2EventServerConnected" - }, - { - "$ref": "#/components/schemas/V2EventGlobalDisposed" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["text"] + } + }, + "required": ["type"], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["json_schema"] + }, + "schema": { + "$ref": "#/components/schemas/JSONSchema" + }, + "retryCount": { + "type": "integer", + "minimum": 0 + } + }, + "required": ["type", "schema"], + "additionalProperties": false } ] }, + "session.status": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, + "type": { + "type": "string", + "enum": ["session.status"] + }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, + "data": { + "type": "object", + "properties": { + "sessionID": { + "type": "string", + "pattern": "^ses" + }, + "status": { + "$ref": "#/components/schemas/SessionStatus" + } + }, + "required": ["sessionID", "status"], + "additionalProperties": false + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, + "question.replied": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, + "type": { + "type": "string", + "enum": ["question.replied"] + }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, + "data": { + "type": "object", + "properties": { + "sessionID": { + "type": "string", + "pattern": "^ses" + }, + "requestID": { + "type": "string", + "pattern": "^que" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/QuestionAnswer" + } + } + }, + "required": ["sessionID", "requestID", "answers"], + "additionalProperties": false + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, + "question.rejected": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, + "type": { + "type": "string", + "enum": ["question.rejected"] + }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, + "data": { + "type": "object", + "properties": { + "sessionID": { + "type": "string", + "pattern": "^ses" + }, + "requestID": { + "type": "string", + "pattern": "^que" + } + }, + "required": ["sessionID", "requestID"], + "additionalProperties": false + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, + "V2Event1": { + "anyOf": [ + { + "$ref": "#/components/schemas/Models-devRefreshed" + }, + { + "$ref": "#/components/schemas/IntegrationUpdated" + }, + { + "$ref": "#/components/schemas/IntegrationConnectionUpdated" + }, + { + "$ref": "#/components/schemas/CatalogUpdated" + }, + { + "$ref": "#/components/schemas/SessionCreated" + }, + { + "$ref": "#/components/schemas/SessionUpdated" + }, + { + "$ref": "#/components/schemas/SessionDeleted" + }, + { + "$ref": "#/components/schemas/MessageUpdated" + }, + { + "$ref": "#/components/schemas/MessageRemoved" + }, + { + "$ref": "#/components/schemas/MessagePartUpdated" + }, + { + "$ref": "#/components/schemas/MessagePartRemoved" + }, + { + "$ref": "#/components/schemas/SessionNextAgentSwitched" + }, + { + "$ref": "#/components/schemas/SessionNextModelSwitched" + }, + { + "$ref": "#/components/schemas/SessionNextMoved" + }, + { + "$ref": "#/components/schemas/SessionNextPrompted" + }, + { + "$ref": "#/components/schemas/SessionNextPromptAdmitted" + }, + { + "$ref": "#/components/schemas/SessionNextContextUpdated" + }, + { + "$ref": "#/components/schemas/SessionNextSynthetic" + }, + { + "$ref": "#/components/schemas/SessionNextShellStarted" + }, + { + "$ref": "#/components/schemas/SessionNextShellEnded" + }, + { + "$ref": "#/components/schemas/SessionNextStepStarted" + }, + { + "$ref": "#/components/schemas/SessionNextStepEnded" + }, + { + "$ref": "#/components/schemas/SessionNextStepFailed" + }, + { + "$ref": "#/components/schemas/SessionNextTextStarted" + }, + { + "$ref": "#/components/schemas/SessionNextTextDelta" + }, + { + "$ref": "#/components/schemas/SessionNextTextEnded" + }, + { + "$ref": "#/components/schemas/SessionNextReasoningStarted" + }, + { + "$ref": "#/components/schemas/SessionNextReasoningDelta" + }, + { + "$ref": "#/components/schemas/SessionNextReasoningEnded" + }, + { + "$ref": "#/components/schemas/SessionNextToolInputStarted" + }, + { + "$ref": "#/components/schemas/SessionNextToolInputDelta" + }, + { + "$ref": "#/components/schemas/SessionNextToolInputEnded" + }, + { + "$ref": "#/components/schemas/SessionNextToolCalled" + }, + { + "$ref": "#/components/schemas/SessionNextToolProgress" + }, + { + "$ref": "#/components/schemas/SessionNextToolSuccess" + }, + { + "$ref": "#/components/schemas/SessionNextToolFailed" + }, + { + "$ref": "#/components/schemas/SessionNextRetried" + }, + { + "$ref": "#/components/schemas/SessionNextCompactionStarted" + }, + { + "$ref": "#/components/schemas/SessionNextCompactionDelta" + }, + { + "$ref": "#/components/schemas/SessionNextCompactionEnded" + }, + { + "$ref": "#/components/schemas/SessionNextRevertStaged" + }, + { + "$ref": "#/components/schemas/SessionNextRevertCleared" + }, + { + "$ref": "#/components/schemas/SessionNextRevertCommitted" + }, + { + "$ref": "#/components/schemas/MessagePartDelta" + }, + { + "$ref": "#/components/schemas/SessionDiff" + }, + { + "$ref": "#/components/schemas/SessionError" + }, + { + "$ref": "#/components/schemas/InstallationUpdated" + }, + { + "$ref": "#/components/schemas/InstallationUpdate-available" + }, + { + "$ref": "#/components/schemas/FileEdited" + }, + { + "$ref": "#/components/schemas/ReferenceUpdated" + }, + { + "$ref": "#/components/schemas/PermissionV2Asked" + }, + { + "$ref": "#/components/schemas/PermissionV2Replied" + }, + { + "$ref": "#/components/schemas/PluginAdded" + }, + { + "$ref": "#/components/schemas/ProjectDirectoriesUpdated" + }, + { + "$ref": "#/components/schemas/FileWatcherUpdated" + }, + { + "$ref": "#/components/schemas/PtyCreated" + }, + { + "$ref": "#/components/schemas/PtyUpdated" + }, + { + "$ref": "#/components/schemas/PtyExited" + }, + { + "$ref": "#/components/schemas/PtyDeleted" + }, + { + "$ref": "#/components/schemas/QuestionV2Asked" + }, + { + "$ref": "#/components/schemas/QuestionV2Replied" + }, + { + "$ref": "#/components/schemas/QuestionV2Rejected" + }, + { + "$ref": "#/components/schemas/TodoUpdated" + }, + { + "$ref": "#/components/schemas/LspUpdated" + }, + { + "$ref": "#/components/schemas/PermissionAsked" + }, + { + "$ref": "#/components/schemas/PermissionReplied" + }, + { + "$ref": "#/components/schemas/TuiPromptAppend" + }, + { + "$ref": "#/components/schemas/TuiCommandExecute" + }, + { + "$ref": "#/components/schemas/TuiToastShow" + }, + { + "$ref": "#/components/schemas/TuiSessionSelect" + }, + { + "$ref": "#/components/schemas/McpToolsChanged" + }, + { + "$ref": "#/components/schemas/McpBrowserOpenFailed" + }, + { + "$ref": "#/components/schemas/CommandExecuted" + }, + { + "$ref": "#/components/schemas/ProjectUpdated" + }, + { + "$ref": "#/components/schemas/session.status" + }, + { + "$ref": "#/components/schemas/SessionIdle" + }, + { + "$ref": "#/components/schemas/QuestionAsked" + }, + { + "$ref": "#/components/schemas/question.replied" + }, + { + "$ref": "#/components/schemas/question.rejected" + }, + { + "$ref": "#/components/schemas/SessionCompacted" + }, + { + "$ref": "#/components/schemas/VcsBranchUpdated" + }, + { + "$ref": "#/components/schemas/WorkspaceReady" + }, + { + "$ref": "#/components/schemas/WorkspaceFailed" + }, + { + "$ref": "#/components/schemas/WorkspaceStatus" + }, + { + "$ref": "#/components/schemas/WorktreeReady" + }, + { + "$ref": "#/components/schemas/WorktreeFailed" + }, + { + "$ref": "#/components/schemas/ServerConnected" + }, + { + "$ref": "#/components/schemas/GlobalDisposed" + } + ] + }, + "V2Event": { + "type": "string", + "contentSchema": { + "$ref": "#/components/schemas/V2Event1" + }, + "contentMediaType": "application/json" + }, "ForbiddenError": { "type": "object", "properties": { @@ -30457,7 +30658,7 @@ "required": ["name", "location", "content"], "additionalProperties": false }, - "V2EventModels-devRefreshed": { + "Models-devRefreshed": { "type": "object", "properties": { "id": { @@ -30467,47 +30668,10 @@ "metadata": { "type": "object" }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, "type": { "type": "string", "enum": ["models-dev.refreshed"] }, - "data": { - "type": "object", - "properties": {} - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventIntegrationUpdated": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, "durable": { "type": "object", "properties": { @@ -30527,28 +30691,28 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, + "data": { + "type": "object", + "properties": {} + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, + "IntegrationUpdated": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, "type": { "type": "string", "enum": ["integration.updated"] }, - "data": { - "type": "object", - "properties": {} - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventIntegrationConnectionUpdated": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, "durable": { "type": "object", "properties": { @@ -30568,10 +30732,47 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, + "data": { + "type": "object", + "properties": {} + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, + "IntegrationConnectionUpdated": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, "type": { "type": "string", "enum": ["integration.connection.updated"] }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, "data": { "type": "object", "properties": { @@ -30586,7 +30787,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventCatalogUpdated": { + "CatalogUpdated": { "type": "object", "properties": { "id": { @@ -30596,6 +30797,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["catalog.updated"] + }, "durable": { "type": "object", "properties": { @@ -30615,10 +30820,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["catalog.updated"] - }, "data": { "type": "object", "properties": {} @@ -30627,7 +30828,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventSessionCreated": { + "SessionCreated": { "type": "object", "properties": { "id": { @@ -30637,57 +30838,10 @@ "metadata": { "type": "object" }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, "type": { "type": "string", "enum": ["session.created"] }, - "data": { - "type": "object", - "properties": { - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "info": { - "$ref": "#/components/schemas/Session" - } - }, - "required": ["sessionID", "info"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionUpdated": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, "durable": { "type": "object", "properties": { @@ -30707,38 +30861,38 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, + "data": { + "type": "object", + "properties": { + "sessionID": { + "type": "string", + "pattern": "^ses" + }, + "info": { + "$ref": "#/components/schemas/Session" + } + }, + "required": ["sessionID", "info"], + "additionalProperties": false + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, + "SessionUpdated": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, "type": { "type": "string", "enum": ["session.updated"] }, - "data": { - "type": "object", - "properties": { - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "info": { - "$ref": "#/components/schemas/Session" - } - }, - "required": ["sessionID", "info"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionDeleted": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, "durable": { "type": "object", "properties": { @@ -30758,38 +30912,38 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, + "data": { + "type": "object", + "properties": { + "sessionID": { + "type": "string", + "pattern": "^ses" + }, + "info": { + "$ref": "#/components/schemas/Session" + } + }, + "required": ["sessionID", "info"], + "additionalProperties": false + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, + "SessionDeleted": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, "type": { "type": "string", "enum": ["session.deleted"] }, - "data": { - "type": "object", - "properties": { - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "info": { - "$ref": "#/components/schemas/Session" - } - }, - "required": ["sessionID", "info"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventMessageUpdated": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, "durable": { "type": "object", "properties": { @@ -30809,10 +30963,57 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, + "data": { + "type": "object", + "properties": { + "sessionID": { + "type": "string", + "pattern": "^ses" + }, + "info": { + "$ref": "#/components/schemas/Session" + } + }, + "required": ["sessionID", "info"], + "additionalProperties": false + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, + "MessageUpdated": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, "type": { "type": "string", "enum": ["message.updated"] }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, "data": { "type": "object", "properties": { @@ -30831,7 +31032,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventMessageRemoved": { + "MessageRemoved": { "type": "object", "properties": { "id": { @@ -30841,6 +31042,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["message.removed"] + }, "durable": { "type": "object", "properties": { @@ -30860,10 +31065,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["message.removed"] - }, "data": { "type": "object", "properties": { @@ -30883,7 +31084,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventMessagePartUpdated": { + "MessagePartUpdated": { "type": "object", "properties": { "id": { @@ -30893,6 +31094,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["message.part.updated"] + }, "durable": { "type": "object", "properties": { @@ -30912,10 +31117,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["message.part.updated"] - }, "data": { "type": "object", "properties": { @@ -30937,7 +31138,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventMessagePartRemoved": { + "MessagePartRemoved": { "type": "object", "properties": { "id": { @@ -30947,6 +31148,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["message.part.removed"] + }, "durable": { "type": "object", "properties": { @@ -30966,10 +31171,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["message.part.removed"] - }, "data": { "type": "object", "properties": { @@ -30993,7 +31194,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventSessionNextAgentSwitched": { + "SessionNextTextDelta": { "type": "object", "properties": { "id": { @@ -31003,839 +31204,29 @@ "metadata": { "type": "object" }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.agent.switched"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "messageID": { - "type": "string", - "pattern": "^msg_" - }, - "agent": { - "type": "string" - } - }, - "required": ["timestamp", "sessionID", "messageID", "agent"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextModelSwitched": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.model.switched"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "messageID": { - "type": "string", - "pattern": "^msg_" - }, - "model": { - "$ref": "#/components/schemas/ModelRef" - } - }, - "required": ["timestamp", "sessionID", "messageID", "model"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextMoved": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.moved"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "subdirectory": { - "type": "string" - } - }, - "required": ["timestamp", "sessionID", "location"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextPrompted": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.prompted"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "messageID": { - "type": "string", - "pattern": "^msg_" - }, - "prompt": { - "$ref": "#/components/schemas/Prompt" - }, - "delivery": { - "type": "string", - "enum": ["steer", "queue"] - } - }, - "required": ["timestamp", "sessionID", "messageID", "prompt", "delivery"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextPromptAdmitted": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.prompt.admitted"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "messageID": { - "type": "string", - "pattern": "^msg_" - }, - "prompt": { - "$ref": "#/components/schemas/Prompt" - }, - "delivery": { - "type": "string", - "enum": ["steer", "queue"] - } - }, - "required": ["timestamp", "sessionID", "messageID", "prompt", "delivery"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextContextUpdated": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.context.updated"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "messageID": { - "type": "string", - "pattern": "^msg_" - }, - "text": { - "type": "string" - } - }, - "required": ["timestamp", "sessionID", "messageID", "text"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextSynthetic": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.synthetic"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "messageID": { - "type": "string", - "pattern": "^msg_" - }, - "text": { - "type": "string" - } - }, - "required": ["timestamp", "sessionID", "messageID", "text"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextShellStarted": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.shell.started"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "messageID": { - "type": "string", - "pattern": "^msg_" - }, - "callID": { - "type": "string" - }, - "command": { - "type": "string" - } - }, - "required": ["timestamp", "sessionID", "messageID", "callID", "command"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextShellEnded": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.shell.ended"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "callID": { - "type": "string" - }, - "output": { - "type": "string" - } - }, - "required": ["timestamp", "sessionID", "callID", "output"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextStepStarted": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.step.started"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "agent": { - "type": "string" - }, - "model": { - "$ref": "#/components/schemas/ModelRef" - }, - "snapshot": { - "type": "string" - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "agent", "model"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextStepEnded": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.step.ended"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "finish": { - "type": "string" - }, - "cost": { - "type": "number" - }, - "tokens": { - "type": "object", - "properties": { - "input": { - "type": "number" - }, - "output": { - "type": "number" - }, - "reasoning": { - "type": "number" - }, - "cache": { - "type": "object", - "properties": { - "read": { - "type": "number" - }, - "write": { - "type": "number" - } - }, - "required": ["read", "write"], - "additionalProperties": false - } - }, - "required": ["input", "output", "reasoning", "cache"], - "additionalProperties": false - }, - "snapshot": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "finish", "cost", "tokens"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextStepFailed": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.step.failed"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "error": { - "$ref": "#/components/schemas/SessionErrorUnknown" - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "error"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextTextStarted": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.text.started"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "textID": { - "type": "string" - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "textID"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextTextDelta": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, "type": { "type": "string", "enum": ["session.next.text.delta"] }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, "data": { "type": "object", "properties": { @@ -31864,7 +31255,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventSessionNextTextEnded": { + "SessionNextReasoningDelta": { "type": "object", "properties": { "id": { @@ -31874,151 +31265,29 @@ "metadata": { "type": "object" }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.text.ended"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "textID": { - "type": "string" - }, - "text": { - "type": "string" - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "textID", "text"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextReasoningStarted": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.reasoning.started"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "reasoningID": { - "type": "string" - }, - "providerMetadata": { - "$ref": "#/components/schemas/LLMProviderMetadata" - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "reasoningID"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextReasoningDelta": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, "type": { "type": "string", "enum": ["session.next.reasoning.delta"] }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, "data": { "type": "object", "properties": { @@ -32047,7 +31316,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventSessionNextReasoningEnded": { + "SessionNextToolInputDelta": { "type": "object", "properties": { "id": { @@ -32057,154 +31326,29 @@ "metadata": { "type": "object" }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.reasoning.ended"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "reasoningID": { - "type": "string" - }, - "text": { - "type": "string" - }, - "providerMetadata": { - "$ref": "#/components/schemas/LLMProviderMetadata" - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "reasoningID", "text"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextToolInputStarted": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.tool.input.started"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "callID": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "name"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextToolInputDelta": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, "type": { "type": "string", "enum": ["session.next.tool.input.delta"] }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, "data": { "type": "object", "properties": { @@ -32233,7 +31377,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventSessionNextToolInputEnded": { + "SessionNextCompactionDelta": { "type": "object", "properties": { "id": { @@ -32243,512 +31387,29 @@ "metadata": { "type": "object" }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.tool.input.ended"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "callID": { - "type": "string" - }, - "text": { - "type": "string" - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "text"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextToolCalled": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.tool.called"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "callID": { - "type": "string" - }, - "tool": { - "type": "string" - }, - "input": { - "type": "object" - }, - "provider": { - "type": "object", - "properties": { - "executed": { - "type": "boolean" - }, - "metadata": { - "$ref": "#/components/schemas/LLMProviderMetadata" - } - }, - "required": ["executed"], - "additionalProperties": false - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "tool", "input", "provider"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextToolProgress": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.tool.progress"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "callID": { - "type": "string" - }, - "structured": { - "type": "object" - }, - "content": { - "type": "array", - "items": { - "$ref": "#/components/schemas/LLMToolContent" - } - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "structured", "content"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextToolSuccess": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.tool.success"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "callID": { - "type": "string" - }, - "structured": { - "type": "object" - }, - "content": { - "type": "array", - "items": { - "$ref": "#/components/schemas/LLMToolContent" - } - }, - "outputPaths": { - "type": "array", - "items": { - "type": "string" - } - }, - "result": {}, - "provider": { - "type": "object", - "properties": { - "executed": { - "type": "boolean" - }, - "metadata": { - "$ref": "#/components/schemas/LLMProviderMetadata" - } - }, - "required": ["executed"], - "additionalProperties": false - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "structured", "content", "provider"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextToolFailed": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.tool.failed"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "assistantMessageID": { - "type": "string", - "pattern": "^msg_" - }, - "callID": { - "type": "string" - }, - "error": { - "$ref": "#/components/schemas/SessionErrorUnknown" - }, - "result": {}, - "provider": { - "type": "object", - "properties": { - "executed": { - "type": "boolean" - }, - "metadata": { - "$ref": "#/components/schemas/LLMProviderMetadata" - } - }, - "required": ["executed"], - "additionalProperties": false - } - }, - "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "error", "provider"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextRetried": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.retried"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "attempt": { - "type": "number" - }, - "error": { - "$ref": "#/components/schemas/SessionNextRetry_error" - } - }, - "required": ["timestamp", "sessionID", "attempt", "error"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextCompactionStarted": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.compaction.started"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "messageID": { - "type": "string", - "pattern": "^msg_" - }, - "reason": { - "type": "string", - "enum": ["auto", "manual"] - } - }, - "required": ["timestamp", "sessionID", "messageID", "reason"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextCompactionDelta": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, "type": { "type": "string", "enum": ["session.next.compaction.delta"] }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, "data": { "type": "object", "properties": { @@ -32774,7 +31435,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventSessionNextCompactionEnded": { + "MessagePartDelta": { "type": "object", "properties": { "id": { @@ -32784,254 +31445,29 @@ "metadata": { "type": "object" }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.compaction.ended"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "messageID": { - "type": "string", - "pattern": "^msg_" - }, - "reason": { - "type": "string", - "enum": ["auto", "manual"] - }, - "text": { - "type": "string" - }, - "recent": { - "type": "string" - } - }, - "required": ["timestamp", "sessionID", "messageID", "reason", "text", "recent"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextRevertStaged": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.revert.staged"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "revert": { - "$ref": "#/components/schemas/RevertState" - } - }, - "required": ["timestamp", "sessionID", "revert"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextRevertCleared": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.revert.cleared"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - } - }, - "required": ["timestamp", "sessionID"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionNextRevertCommitted": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.next.revert.committed"] - }, - "data": { - "type": "object", - "properties": { - "timestamp": { - "type": "number" - }, - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "messageID": { - "type": "string", - "pattern": "^msg_" - } - }, - "required": ["timestamp", "sessionID", "messageID"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventMessagePartDelta": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, "type": { "type": "string", "enum": ["message.part.delta"] }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, "data": { "type": "object", "properties": { @@ -33061,7 +31497,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventSessionDiff": { + "SessionDiff": { "type": "object", "properties": { "id": { @@ -33071,6 +31507,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["session.diff"] + }, "durable": { "type": "object", "properties": { @@ -33090,10 +31530,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["session.diff"] - }, "data": { "type": "object", "properties": { @@ -33115,7 +31551,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventSessionError": { + "SessionError": { "type": "object", "properties": { "id": { @@ -33125,6 +31561,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["session.error"] + }, "durable": { "type": "object", "properties": { @@ -33144,10 +31584,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["session.error"] - }, "data": { "type": "object", "properties": { @@ -33190,7 +31626,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventInstallationUpdated": { + "InstallationUpdated": { "type": "object", "properties": { "id": { @@ -33200,53 +31636,10 @@ "metadata": { "type": "object" }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, "type": { "type": "string", "enum": ["installation.updated"] }, - "data": { - "type": "object", - "properties": { - "version": { - "type": "string" - } - }, - "required": ["version"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventInstallationUpdate-available": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, "durable": { "type": "object", "properties": { @@ -33266,34 +31659,34 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, + "data": { + "type": "object", + "properties": { + "version": { + "type": "string" + } + }, + "required": ["version"], + "additionalProperties": false + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, + "InstallationUpdate-available": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, "type": { "type": "string", "enum": ["installation.update-available"] }, - "data": { - "type": "object", - "properties": { - "version": { - "type": "string" - } - }, - "required": ["version"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventFileEdited": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, "durable": { "type": "object", "properties": { @@ -33313,10 +31706,53 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, + "data": { + "type": "object", + "properties": { + "version": { + "type": "string" + } + }, + "required": ["version"], + "additionalProperties": false + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, + "FileEdited": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, "type": { "type": "string", "enum": ["file.edited"] }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, "data": { "type": "object", "properties": { @@ -33331,7 +31767,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventReferenceUpdated": { + "ReferenceUpdated": { "type": "object", "properties": { "id": { @@ -33341,6 +31777,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["reference.updated"] + }, "durable": { "type": "object", "properties": { @@ -33360,10 +31800,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["reference.updated"] - }, "data": { "type": "object", "properties": {} @@ -33372,7 +31808,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventPermissionV2Asked": { + "PermissionV2Asked": { "type": "object", "properties": { "id": { @@ -33382,6 +31818,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["permission.v2.asked"] + }, "durable": { "type": "object", "properties": { @@ -33401,10 +31841,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["permission.v2.asked"] - }, "data": { "type": "object", "properties": { @@ -33445,7 +31881,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventPermissionV2Replied": { + "PermissionV2Replied": { "type": "object", "properties": { "id": { @@ -33455,6 +31891,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["permission.v2.replied"] + }, "durable": { "type": "object", "properties": { @@ -33474,10 +31914,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["permission.v2.replied"] - }, "data": { "type": "object", "properties": { @@ -33500,7 +31936,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventPluginAdded": { + "PluginAdded": { "type": "object", "properties": { "id": { @@ -33510,6 +31946,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["plugin.added"] + }, "durable": { "type": "object", "properties": { @@ -33529,10 +31969,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["plugin.added"] - }, "data": { "type": "object", "properties": { @@ -33547,7 +31983,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventProjectDirectoriesUpdated": { + "ProjectDirectoriesUpdated": { "type": "object", "properties": { "id": { @@ -33557,6 +31993,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["project.directories.updated"] + }, "durable": { "type": "object", "properties": { @@ -33576,10 +32016,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["project.directories.updated"] - }, "data": { "type": "object", "properties": { @@ -33594,7 +32030,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventFileWatcherUpdated": { + "FileWatcherUpdated": { "type": "object", "properties": { "id": { @@ -33604,6 +32040,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["file.watcher.updated"] + }, "durable": { "type": "object", "properties": { @@ -33623,10 +32063,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["file.watcher.updated"] - }, "data": { "type": "object", "properties": { @@ -33645,7 +32081,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventPtyCreated": { + "PtyCreated": { "type": "object", "properties": { "id": { @@ -33655,53 +32091,10 @@ "metadata": { "type": "object" }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, "type": { "type": "string", "enum": ["pty.created"] }, - "data": { - "type": "object", - "properties": { - "info": { - "$ref": "#/components/schemas/Pty" - } - }, - "required": ["info"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventPtyUpdated": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, "durable": { "type": "object", "properties": { @@ -33721,34 +32114,34 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, + "data": { + "type": "object", + "properties": { + "info": { + "$ref": "#/components/schemas/Pty" + } + }, + "required": ["info"], + "additionalProperties": false + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, + "PtyUpdated": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, "type": { "type": "string", "enum": ["pty.updated"] }, - "data": { - "type": "object", - "properties": { - "info": { - "$ref": "#/components/schemas/Pty" - } - }, - "required": ["info"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventPtyExited": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, "durable": { "type": "object", "properties": { @@ -33768,10 +32161,53 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, + "data": { + "type": "object", + "properties": { + "info": { + "$ref": "#/components/schemas/Pty" + } + }, + "required": ["info"], + "additionalProperties": false + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, + "PtyExited": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, "type": { "type": "string", "enum": ["pty.exited"] }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, "data": { "type": "object", "properties": { @@ -33791,7 +32227,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventPtyDeleted": { + "PtyDeleted": { "type": "object", "properties": { "id": { @@ -33801,6 +32237,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["pty.deleted"] + }, "durable": { "type": "object", "properties": { @@ -33820,10 +32260,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["pty.deleted"] - }, "data": { "type": "object", "properties": { @@ -33839,7 +32275,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventQuestionV2Asked": { + "QuestionV2Asked": { "type": "object", "properties": { "id": { @@ -33849,6 +32285,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["question.v2.asked"] + }, "durable": { "type": "object", "properties": { @@ -33868,10 +32308,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["question.v2.asked"] - }, "data": { "type": "object", "properties": { @@ -33901,7 +32337,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventQuestionV2Replied": { + "QuestionV2Replied": { "type": "object", "properties": { "id": { @@ -33911,6 +32347,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["question.v2.replied"] + }, "durable": { "type": "object", "properties": { @@ -33930,10 +32370,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["question.v2.replied"] - }, "data": { "type": "object", "properties": { @@ -33959,7 +32395,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventQuestionV2Rejected": { + "QuestionV2Rejected": { "type": "object", "properties": { "id": { @@ -33969,6 +32405,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["question.v2.rejected"] + }, "durable": { "type": "object", "properties": { @@ -33988,10 +32428,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["question.v2.rejected"] - }, "data": { "type": "object", "properties": { @@ -34011,7 +32447,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventTodoUpdated": { + "TodoUpdated": { "type": "object", "properties": { "id": { @@ -34021,6 +32457,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["todo.updated"] + }, "durable": { "type": "object", "properties": { @@ -34040,10 +32480,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["todo.updated"] - }, "data": { "type": "object", "properties": { @@ -34065,7 +32501,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventLspUpdated": { + "LspUpdated": { "type": "object", "properties": { "id": { @@ -34075,6 +32511,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["lsp.updated"] + }, "durable": { "type": "object", "properties": { @@ -34094,10 +32534,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["lsp.updated"] - }, "data": { "type": "object", "properties": {} @@ -34106,7 +32542,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventPermissionAsked": { + "PermissionAsked": { "type": "object", "properties": { "id": { @@ -34116,6 +32552,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["permission.asked"] + }, "durable": { "type": "object", "properties": { @@ -34135,10 +32575,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["permission.asked"] - }, "data": { "type": "object", "properties": { @@ -34189,7 +32625,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventPermissionReplied": { + "PermissionReplied": { "type": "object", "properties": { "id": { @@ -34199,6 +32635,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["permission.replied"] + }, "durable": { "type": "object", "properties": { @@ -34218,10 +32658,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["permission.replied"] - }, "data": { "type": "object", "properties": { @@ -34245,7 +32681,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventTuiPromptAppend": { + "TuiPromptAppend": { "type": "object", "properties": { "id": { @@ -34255,6 +32691,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["tui.prompt.append"] + }, "durable": { "type": "object", "properties": { @@ -34274,10 +32714,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["tui.prompt.append"] - }, "data": { "type": "object", "properties": { @@ -34292,7 +32728,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventTuiCommandExecute": { + "TuiCommandExecute": { "type": "object", "properties": { "id": { @@ -34302,6 +32738,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["tui.command.execute"] + }, "durable": { "type": "object", "properties": { @@ -34321,10 +32761,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["tui.command.execute"] - }, "data": { "type": "object", "properties": { @@ -34364,7 +32800,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventTuiToastShow": { + "TuiToastShow": { "type": "object", "properties": { "id": { @@ -34374,6 +32810,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["tui.toast.show"] + }, "durable": { "type": "object", "properties": { @@ -34393,10 +32833,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["tui.toast.show"] - }, "data": { "type": "object", "properties": { @@ -34422,7 +32858,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventTuiSessionSelect": { + "TuiSessionSelect": { "type": "object", "properties": { "id": { @@ -34432,6 +32868,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["tui.session.select"] + }, "durable": { "type": "object", "properties": { @@ -34451,10 +32891,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["tui.session.select"] - }, "data": { "type": "object", "properties": { @@ -34471,7 +32907,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventMcpToolsChanged": { + "McpToolsChanged": { "type": "object", "properties": { "id": { @@ -34481,6 +32917,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["mcp.tools.changed"] + }, "durable": { "type": "object", "properties": { @@ -34500,10 +32940,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["mcp.tools.changed"] - }, "data": { "type": "object", "properties": { @@ -34518,7 +32954,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventMcpBrowserOpenFailed": { + "McpBrowserOpenFailed": { "type": "object", "properties": { "id": { @@ -34528,6 +32964,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["mcp.browser.open.failed"] + }, "durable": { "type": "object", "properties": { @@ -34547,10 +32987,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["mcp.browser.open.failed"] - }, "data": { "type": "object", "properties": { @@ -34568,7 +33004,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventCommandExecuted": { + "CommandExecuted": { "type": "object", "properties": { "id": { @@ -34578,6 +33014,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["command.executed"] + }, "durable": { "type": "object", "properties": { @@ -34597,10 +33037,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["command.executed"] - }, "data": { "type": "object", "properties": { @@ -34626,7 +33062,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventProjectUpdated": { + "ProjectUpdated": { "type": "object", "properties": { "id": { @@ -34636,6 +33072,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["project.updated"] + }, "durable": { "type": "object", "properties": { @@ -34655,10 +33095,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["project.updated"] - }, "data": { "type": "object", "properties": { @@ -34697,7 +33133,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventSessionStatus": { + "SessionIdle": { "type": "object", "properties": { "id": { @@ -34707,80 +33143,29 @@ "metadata": { "type": "object" }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["session.status"] - }, - "data": { - "type": "object", - "properties": { - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "status": { - "$ref": "#/components/schemas/SessionStatus" - } - }, - "required": ["sessionID", "status"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionIdle": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, "type": { "type": "string", "enum": ["session.idle"] }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, "data": { "type": "object", "properties": { @@ -34796,7 +33181,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventQuestionAsked": { + "QuestionAsked": { "type": "object", "properties": { "id": { @@ -34806,6 +33191,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["question.asked"] + }, "durable": { "type": "object", "properties": { @@ -34825,10 +33214,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["question.asked"] - }, "data": { "type": "object", "properties": { @@ -34858,7 +33243,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventQuestionReplied": { + "SessionCompacted": { "type": "object", "properties": { "id": { @@ -34868,139 +33253,29 @@ "metadata": { "type": "object" }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["question.replied"] - }, - "data": { - "type": "object", - "properties": { - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "requestID": { - "type": "string", - "pattern": "^que" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/QuestionAnswer" - } - } - }, - "required": ["sessionID", "requestID", "answers"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventQuestionRejected": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, - "type": { - "type": "string", - "enum": ["question.rejected"] - }, - "data": { - "type": "object", - "properties": { - "sessionID": { - "type": "string", - "pattern": "^ses" - }, - "requestID": { - "type": "string", - "pattern": "^que" - } - }, - "required": ["sessionID", "requestID"], - "additionalProperties": false - } - }, - "required": ["id", "type", "data"], - "additionalProperties": false - }, - "V2EventSessionCompacted": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^evt_" - }, - "metadata": { - "type": "object" - }, - "durable": { - "type": "object", - "properties": { - "aggregateID": { - "type": "string" - }, - "seq": { - "type": "integer" - }, - "version": { - "type": "integer" - } - }, - "required": ["aggregateID", "seq", "version"], - "additionalProperties": false - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - }, "type": { "type": "string", "enum": ["session.compacted"] }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, "data": { "type": "object", "properties": { @@ -35016,7 +33291,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventVcsBranchUpdated": { + "VcsBranchUpdated": { "type": "object", "properties": { "id": { @@ -35026,6 +33301,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["vcs.branch.updated"] + }, "durable": { "type": "object", "properties": { @@ -35045,10 +33324,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["vcs.branch.updated"] - }, "data": { "type": "object", "properties": { @@ -35062,7 +33337,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventWorkspaceReady": { + "WorkspaceReady": { "type": "object", "properties": { "id": { @@ -35072,6 +33347,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["workspace.ready"] + }, "durable": { "type": "object", "properties": { @@ -35091,10 +33370,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["workspace.ready"] - }, "data": { "type": "object", "properties": { @@ -35109,7 +33384,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventWorkspaceFailed": { + "WorkspaceFailed": { "type": "object", "properties": { "id": { @@ -35119,6 +33394,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["workspace.failed"] + }, "durable": { "type": "object", "properties": { @@ -35138,10 +33417,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["workspace.failed"] - }, "data": { "type": "object", "properties": { @@ -35156,7 +33431,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventWorkspaceStatus": { + "WorkspaceStatus": { "type": "object", "properties": { "id": { @@ -35166,6 +33441,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["workspace.status"] + }, "durable": { "type": "object", "properties": { @@ -35185,10 +33464,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["workspace.status"] - }, "data": { "type": "object", "properties": { @@ -35208,7 +33483,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventWorktreeReady": { + "WorktreeReady": { "type": "object", "properties": { "id": { @@ -35218,6 +33493,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["worktree.ready"] + }, "durable": { "type": "object", "properties": { @@ -35237,10 +33516,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["worktree.ready"] - }, "data": { "type": "object", "properties": { @@ -35258,7 +33533,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventWorktreeFailed": { + "WorktreeFailed": { "type": "object", "properties": { "id": { @@ -35268,6 +33543,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["worktree.failed"] + }, "durable": { "type": "object", "properties": { @@ -35287,10 +33566,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["worktree.failed"] - }, "data": { "type": "object", "properties": { @@ -35305,7 +33580,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventServerConnected": { + "ServerConnected": { "type": "object", "properties": { "id": { @@ -35315,6 +33590,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["server.connected"] + }, "durable": { "type": "object", "properties": { @@ -35334,10 +33613,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["server.connected"] - }, "data": { "type": "object", "properties": {} @@ -35346,7 +33621,7 @@ "required": ["id", "type", "data"], "additionalProperties": false }, - "V2EventGlobalDisposed": { + "GlobalDisposed": { "type": "object", "properties": { "id": { @@ -35356,6 +33631,10 @@ "metadata": { "type": "object" }, + "type": { + "type": "string", + "enum": ["global.disposed"] + }, "durable": { "type": "object", "properties": { @@ -35375,10 +33654,6 @@ "location": { "$ref": "#/components/schemas/LocationRef" }, - "type": { - "type": "string", - "enum": ["global.disposed"] - }, "data": { "type": "object", "properties": {}