chore: generate

This commit is contained in:
opencode-agent[bot]
2026-04-14 19:45:10 +00:00
parent f2525a63c9
commit 85674f4bfd
3 changed files with 91 additions and 78 deletions
+3 -3
View File
@@ -105,10 +105,10 @@ import type {
PtyRemoveResponses, PtyRemoveResponses,
PtyUpdateErrors, PtyUpdateErrors,
PtyUpdateResponses, PtyUpdateResponses,
QuestionAnswer,
QuestionListResponses, QuestionListResponses,
QuestionRejectErrors, QuestionRejectErrors,
QuestionRejectResponses, QuestionRejectResponses,
QuestionReply,
QuestionReplyErrors, QuestionReplyErrors,
QuestionReplyResponses, QuestionReplyResponses,
SessionAbortErrors, SessionAbortErrors,
@@ -2738,7 +2738,7 @@ export class Question extends HeyApiClient {
requestID: string requestID: string
directory?: string directory?: string
workspace?: string workspace?: string
answers?: Array<QuestionAnswer> questionReply?: QuestionReply
}, },
options?: Options<never, ThrowOnError>, options?: Options<never, ThrowOnError>,
) { ) {
@@ -2750,7 +2750,7 @@ export class Question extends HeyApiClient {
{ in: "path", key: "requestID" }, { in: "path", key: "requestID" },
{ in: "query", key: "directory" }, { in: "query", key: "directory" },
{ in: "query", key: "workspace" }, { in: "query", key: "workspace" },
{ in: "body", key: "answers" }, { key: "questionReply", map: "body" },
], ],
}, },
], ],
+27 -19
View File
@@ -264,6 +264,11 @@ export type QuestionInfo = {
custom?: boolean custom?: boolean
} }
export type QuestionTool = {
messageID: string
callID: string
}
export type QuestionRequest = { export type QuestionRequest = {
id: string id: string
sessionID: string sessionID: string
@@ -271,10 +276,7 @@ export type QuestionRequest = {
* Questions to ask * Questions to ask
*/ */
questions: Array<QuestionInfo> questions: Array<QuestionInfo>
tool?: { tool?: QuestionTool
messageID: string
callID: string
}
} }
export type EventQuestionAsked = { export type EventQuestionAsked = {
@@ -284,21 +286,25 @@ export type EventQuestionAsked = {
export type QuestionAnswer = Array<string> export type QuestionAnswer = Array<string>
export type QuestionReplied = {
sessionID: string
requestID: string
answers: Array<QuestionAnswer>
}
export type EventQuestionReplied = { export type EventQuestionReplied = {
type: "question.replied" type: "question.replied"
properties: { properties: QuestionReplied
sessionID: string }
requestID: string
answers: Array<QuestionAnswer> export type QuestionRejected = {
} sessionID: string
requestID: string
} }
export type EventQuestionRejected = { export type EventQuestionRejected = {
type: "question.rejected" type: "question.rejected"
properties: { properties: QuestionRejected
sessionID: string
requestID: string
}
} }
export type Todo = { export type Todo = {
@@ -1919,6 +1925,13 @@ export type SubtaskPartInput = {
command?: string 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 = { export type ProviderAuthMethod = {
type: "oauth" | "api" type: "oauth" | "api"
label: string label: string
@@ -4246,12 +4259,7 @@ export type QuestionListResponses = {
export type QuestionListResponse = QuestionListResponses[keyof QuestionListResponses] export type QuestionListResponse = QuestionListResponses[keyof QuestionListResponses]
export type QuestionReplyData = { export type QuestionReplyData = {
body?: { body?: QuestionReply
/**
* User answers in order of questions (each answer is an array of selected labels)
*/
answers: Array<QuestionAnswer>
}
path: { path: {
requestID: string requestID: string
} }
+61 -56
View File
@@ -4769,17 +4769,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"type": "object", "$ref": "#/components/schemas/QuestionReply"
"properties": {
"answers": {
"description": "User answers in order of questions (each answer is an array of selected labels)",
"type": "array",
"items": {
"$ref": "#/components/schemas/QuestionAnswer"
}
}
},
"required": ["answers"]
} }
} }
} }
@@ -7859,16 +7849,26 @@
}, },
"required": ["question", "header", "options"] "required": ["question", "header", "options"]
}, },
"QuestionTool": {
"type": "object",
"properties": {
"messageID": {
"type": "string"
},
"callID": {
"type": "string"
}
},
"required": ["messageID", "callID"]
},
"QuestionRequest": { "QuestionRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
"id": { "id": {
"type": "string", "type": "string"
"pattern": "^que.*"
}, },
"sessionID": { "sessionID": {
"type": "string", "type": "string"
"pattern": "^ses.*"
}, },
"questions": { "questions": {
"description": "Questions to ask", "description": "Questions to ask",
@@ -7878,17 +7878,7 @@
} }
}, },
"tool": { "tool": {
"type": "object", "$ref": "#/components/schemas/QuestionTool"
"properties": {
"messageID": {
"type": "string",
"pattern": "^msg.*"
},
"callID": {
"type": "string"
}
},
"required": ["messageID", "callID"]
} }
}, },
"required": ["id", "sessionID", "questions"] "required": ["id", "sessionID", "questions"]
@@ -7912,6 +7902,24 @@
"type": "string" "type": "string"
} }
}, },
"QuestionReplied": {
"type": "object",
"properties": {
"sessionID": {
"type": "string"
},
"requestID": {
"type": "string"
},
"answers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/QuestionAnswer"
}
}
},
"required": ["sessionID", "requestID", "answers"]
},
"Event.question.replied": { "Event.question.replied": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -7920,28 +7928,23 @@
"const": "question.replied" "const": "question.replied"
}, },
"properties": { "properties": {
"type": "object", "$ref": "#/components/schemas/QuestionReplied"
"properties": {
"sessionID": {
"type": "string",
"pattern": "^ses.*"
},
"requestID": {
"type": "string",
"pattern": "^que.*"
},
"answers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/QuestionAnswer"
}
}
},
"required": ["sessionID", "requestID", "answers"]
} }
}, },
"required": ["type", "properties"] "required": ["type", "properties"]
}, },
"QuestionRejected": {
"type": "object",
"properties": {
"sessionID": {
"type": "string"
},
"requestID": {
"type": "string"
}
},
"required": ["sessionID", "requestID"]
},
"Event.question.rejected": { "Event.question.rejected": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -7950,18 +7953,7 @@
"const": "question.rejected" "const": "question.rejected"
}, },
"properties": { "properties": {
"type": "object", "$ref": "#/components/schemas/QuestionRejected"
"properties": {
"sessionID": {
"type": "string",
"pattern": "^ses.*"
},
"requestID": {
"type": "string",
"pattern": "^que.*"
}
},
"required": ["sessionID", "requestID"]
} }
}, },
"required": ["type", "properties"] "required": ["type", "properties"]
@@ -12369,6 +12361,19 @@
}, },
"required": ["type", "prompt", "description", "agent"] "required": ["type", "prompt", "description", "agent"]
}, },
"QuestionReply": {
"type": "object",
"properties": {
"answers": {
"description": "User answers in order of questions (each answer is an array of selected labels)",
"type": "array",
"items": {
"$ref": "#/components/schemas/QuestionAnswer"
}
}
},
"required": ["answers"]
},
"ProviderAuthMethod": { "ProviderAuthMethod": {
"type": "object", "type": "object",
"properties": { "properties": {