chore: generate

This commit is contained in:
opencode-agent[bot] 2026-04-14 19:45:10 +00:00
commit 85674f4bfd
3 changed files with 91 additions and 78 deletions

View file

@ -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
answers?: Array<QuestionAnswer>
questionReply?: QuestionReply
},
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" },
{ in: "body", key: "answers" },
{ key: "questionReply", map: "body" },
],
},
],

View file

@ -264,6 +264,11 @@ export type QuestionInfo = {
custom?: boolean
}
export type QuestionTool = {
messageID: string
callID: string
}
export type QuestionRequest = {
id: string
sessionID: string
@ -271,10 +276,7 @@ export type QuestionRequest = {
* Questions to ask
*/
questions: Array<QuestionInfo>
tool?: {
messageID: string
callID: string
}
tool?: QuestionTool
}
export type EventQuestionAsked = {
@ -284,21 +286,25 @@ export type EventQuestionAsked = {
export type QuestionAnswer = Array<string>
export type QuestionReplied = {
sessionID: string
requestID: string
answers: Array<QuestionAnswer>
}
export type EventQuestionReplied = {
type: "question.replied"
properties: {
sessionID: string
requestID: string
answers: Array<QuestionAnswer>
}
properties: QuestionReplied
}
export type QuestionRejected = {
sessionID: string
requestID: string
}
export type EventQuestionRejected = {
type: "question.rejected"
properties: {
sessionID: string
requestID: string
}
properties: QuestionRejected
}
export type Todo = {
@ -1919,6 +1925,13 @@ 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
@ -4246,12 +4259,7 @@ export type QuestionListResponses = {
export type QuestionListResponse = QuestionListResponses[keyof QuestionListResponses]
export type QuestionReplyData = {
body?: {
/**
* User answers in order of questions (each answer is an array of selected labels)
*/
answers: Array<QuestionAnswer>
}
body?: QuestionReply
path: {
requestID: string
}