summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/js/src
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-03-14 15:59:01 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-03-14 15:59:01 +0000
commitb698f14e5550c18ab6de1a8171ffcf3200d9653b (patch)
treeeed3811d051112e1d62c59673cfe6d3159f7b661 /packages/sdk/js/src
parentcec1255b36e3f2c615082ad71d90eed338a47325 (diff)
downloadopencode-b698f14e5550c18ab6de1a8171ffcf3200d9653b.tar.gz
opencode-b698f14e5550c18ab6de1a8171ffcf3200d9653b.zip
chore: generate
Diffstat (limited to 'packages/sdk/js/src')
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts148
1 files changed, 74 insertions, 74 deletions
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index 2629015eb..b2ee46670 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -54,6 +54,77 @@ export type EventServerInstanceDisposed = {
}
}
+export type QuestionOption = {
+ /**
+ * Display text (1-5 words, concise)
+ */
+ label: string
+ /**
+ * Explanation of choice
+ */
+ description: string
+}
+
+export type QuestionInfo = {
+ /**
+ * Complete question
+ */
+ question: string
+ /**
+ * Very short label (max 30 chars)
+ */
+ header: string
+ /**
+ * Available choices
+ */
+ options: Array<QuestionOption>
+ /**
+ * Allow selecting multiple choices
+ */
+ multiple?: boolean
+ /**
+ * Allow typing a custom answer (default: true)
+ */
+ custom?: boolean
+}
+
+export type QuestionRequest = {
+ id: string
+ sessionID: string
+ /**
+ * Questions to ask
+ */
+ questions: Array<QuestionInfo>
+ tool?: {
+ messageID: string
+ callID: string
+ }
+}
+
+export type EventQuestionAsked = {
+ type: "question.asked"
+ properties: QuestionRequest
+}
+
+export type QuestionAnswer = Array<string>
+
+export type EventQuestionReplied = {
+ type: "question.replied"
+ properties: {
+ sessionID: string
+ requestID: string
+ answers: Array<QuestionAnswer>
+ }
+}
+
+export type EventQuestionRejected = {
+ type: "question.rejected"
+ properties: {
+ sessionID: string
+ requestID: string
+ }
+}
+
export type EventServerConnected = {
type: "server.connected"
properties: {
@@ -607,77 +678,6 @@ export type EventSessionIdle = {
}
}
-export type QuestionOption = {
- /**
- * Display text (1-5 words, concise)
- */
- label: string
- /**
- * Explanation of choice
- */
- description: string
-}
-
-export type QuestionInfo = {
- /**
- * Complete question
- */
- question: string
- /**
- * Very short label (max 30 chars)
- */
- header: string
- /**
- * Available choices
- */
- options: Array<QuestionOption>
- /**
- * Allow selecting multiple choices
- */
- multiple?: boolean
- /**
- * Allow typing a custom answer (default: true)
- */
- custom?: boolean
-}
-
-export type QuestionRequest = {
- id: string
- sessionID: string
- /**
- * Questions to ask
- */
- questions: Array<QuestionInfo>
- tool?: {
- messageID: string
- callID: string
- }
-}
-
-export type EventQuestionAsked = {
- type: "question.asked"
- properties: QuestionRequest
-}
-
-export type QuestionAnswer = Array<string>
-
-export type EventQuestionReplied = {
- type: "question.replied"
- properties: {
- sessionID: string
- requestID: string
- answers: Array<QuestionAnswer>
- }
-}
-
-export type EventQuestionRejected = {
- type: "question.rejected"
- properties: {
- sessionID: string
- requestID: string
- }
-}
-
export type EventSessionCompacted = {
type: "session.compacted"
properties: {
@@ -962,6 +962,9 @@ export type Event =
| EventInstallationUpdateAvailable
| EventProjectUpdated
| EventServerInstanceDisposed
+ | EventQuestionAsked
+ | EventQuestionReplied
+ | EventQuestionRejected
| EventServerConnected
| EventGlobalDisposed
| EventLspClientDiagnostics
@@ -976,9 +979,6 @@ export type Event =
| EventPermissionReplied
| EventSessionStatus
| EventSessionIdle
- | EventQuestionAsked
- | EventQuestionReplied
- | EventQuestionRejected
| EventSessionCompacted
| EventFileWatcherUpdated
| EventTodoUpdated