summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/js
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-04-14 16:57:32 -0400
committerGitHub <[email protected]>2026-04-14 16:57:32 -0400
commit3cf7c7536b42eadb3dfbe8f20b13a47ec82e3174 (patch)
tree7e5dc78248ab59866a2b1b7b8038661742d32342 /packages/sdk/js
parent85674f4bfd15723c6c8afd96d74120ded9b8437b (diff)
downloadopencode-3cf7c7536b42eadb3dfbe8f20b13a47ec82e3174.tar.gz
opencode-3cf7c7536b42eadb3dfbe8f20b13a47ec82e3174.zip
fix(question): restore flat reply sdk shape (#22487)
Diffstat (limited to 'packages/sdk/js')
-rw-r--r--packages/sdk/js/src/v2/gen/sdk.gen.ts6
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts14
2 files changed, 9 insertions, 11 deletions
diff --git a/packages/sdk/js/src/v2/gen/sdk.gen.ts b/packages/sdk/js/src/v2/gen/sdk.gen.ts
index cbd8b59f2..b5fc976bb 100644
--- a/packages/sdk/js/src/v2/gen/sdk.gen.ts
+++ b/packages/sdk/js/src/v2/gen/sdk.gen.ts
@@ -105,10 +105,10 @@ import type {
PtyRemoveResponses,
PtyUpdateErrors,
PtyUpdateResponses,
+ QuestionAnswer,
QuestionListResponses,
QuestionRejectErrors,
QuestionRejectResponses,
- QuestionReply,
QuestionReplyErrors,
QuestionReplyResponses,
SessionAbortErrors,
@@ -2738,7 +2738,7 @@ export class Question extends HeyApiClient {
requestID: string
directory?: string
workspace?: string
- questionReply?: QuestionReply
+ answers?: Array<QuestionAnswer>
},
options?: Options<never, ThrowOnError>,
) {
@@ -2750,7 +2750,7 @@ export class Question extends HeyApiClient {
{ in: "path", key: "requestID" },
{ in: "query", key: "directory" },
{ in: "query", key: "workspace" },
- { key: "questionReply", map: "body" },
+ { in: "body", key: "answers" },
],
},
],
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index 141c93c52..8f4c16c5b 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -1925,13 +1925,6 @@ export type SubtaskPartInput = {
command?: string
}
-export type QuestionReply = {
- /**
- * User answers in order of questions (each answer is an array of selected labels)
- */
- answers: Array<QuestionAnswer>
-}
-
export type ProviderAuthMethod = {
type: "oauth" | "api"
label: string
@@ -4259,7 +4252,12 @@ export type QuestionListResponses = {
export type QuestionListResponse = QuestionListResponses[keyof QuestionListResponses]
export type QuestionReplyData = {
- body?: QuestionReply
+ body?: {
+ /**
+ * User answers in order of questions (each answer is an array of selected labels)
+ */
+ answers: Array<QuestionAnswer>
+ }
path: {
requestID: string
}