diff options
| author | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-03-18 01:05:16 +0000 |
|---|---|---|
| committer | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-03-18 01:05:16 +0000 |
| commit | bc949af6235703225161d65b286fa9ecdbe27f1c (patch) | |
| tree | 7d79ad00200dea3bf03ea8f73942291b3d3cf636 /packages/sdk/js/src | |
| parent | 9e7c136de7283fc564dbb213f8a492260bbedac5 (diff) | |
| download | opencode-bc949af6235703225161d65b286fa9ecdbe27f1c.tar.gz opencode-bc949af6235703225161d65b286fa9ecdbe27f1c.zip | |
chore: generate
Diffstat (limited to 'packages/sdk/js/src')
| -rw-r--r-- | packages/sdk/js/src/v2/gen/types.gen.ts | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts index fd80a51a2..9c5ca274e 100644 --- a/packages/sdk/js/src/v2/gen/types.gen.ts +++ b/packages/sdk/js/src/v2/gen/types.gen.ts @@ -47,6 +47,13 @@ export type EventProjectUpdated = { properties: Project } +export type EventFileEdited = { + type: "file.edited" + properties: { + file: string + } +} + export type EventServerInstanceDisposed = { type: "server.instance.disposed" properties: { @@ -54,6 +61,50 @@ export type EventServerInstanceDisposed = { } } +export type EventFileWatcherUpdated = { + type: "file.watcher.updated" + properties: { + file: string + event: "add" | "change" | "unlink" + } +} + +export type PermissionRequest = { + id: string + sessionID: string + permission: string + patterns: Array<string> + metadata: { + [key: string]: unknown + } + always: Array<string> + tool?: { + messageID: string + callID: string + } +} + +export type EventPermissionAsked = { + type: "permission.asked" + properties: PermissionRequest +} + +export type EventPermissionReplied = { + type: "permission.replied" + properties: { + sessionID: string + requestID: string + reply: "once" | "always" | "reject" + } +} + +export type EventVcsBranchUpdated = { + type: "vcs.branch.updated" + properties: { + branch?: string + } +} + export type QuestionOption = { /** * Display text (1-5 words, concise) @@ -125,57 +176,6 @@ export type EventQuestionRejected = { } } -export type PermissionRequest = { - id: string - sessionID: string - permission: string - patterns: Array<string> - metadata: { - [key: string]: unknown - } - always: Array<string> - tool?: { - messageID: string - callID: string - } -} - -export type EventPermissionAsked = { - type: "permission.asked" - properties: PermissionRequest -} - -export type EventPermissionReplied = { - type: "permission.replied" - properties: { - sessionID: string - requestID: string - reply: "once" | "always" | "reject" - } -} - -export type EventFileWatcherUpdated = { - type: "file.watcher.updated" - properties: { - file: string - event: "add" | "change" | "unlink" - } -} - -export type EventVcsBranchUpdated = { - type: "vcs.branch.updated" - properties: { - branch?: string - } -} - -export type EventFileEdited = { - type: "file.edited" - properties: { - file: string - } -} - export type EventServerConnected = { type: "server.connected" properties: { @@ -961,15 +961,15 @@ export type Event = | EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated + | EventFileEdited | EventServerInstanceDisposed - | EventQuestionAsked - | EventQuestionReplied - | EventQuestionRejected + | EventFileWatcherUpdated | EventPermissionAsked | EventPermissionReplied - | EventFileWatcherUpdated | EventVcsBranchUpdated - | EventFileEdited + | EventQuestionAsked + | EventQuestionReplied + | EventQuestionRejected | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics |
