@opencode-ai/sdk 0.0.0-dev-202604141910 → 0.0.0-dev-202604142207

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -227,6 +227,10 @@ export type QuestionInfo = {
227
227
  */
228
228
  custom?: boolean;
229
229
  };
230
+ export type QuestionTool = {
231
+ messageID: string;
232
+ callID: string;
233
+ };
230
234
  export type QuestionRequest = {
231
235
  id: string;
232
236
  sessionID: string;
@@ -234,30 +238,29 @@ export type QuestionRequest = {
234
238
  * Questions to ask
235
239
  */
236
240
  questions: Array<QuestionInfo>;
237
- tool?: {
238
- messageID: string;
239
- callID: string;
240
- };
241
+ tool?: QuestionTool;
241
242
  };
242
243
  export type EventQuestionAsked = {
243
244
  type: "question.asked";
244
245
  properties: QuestionRequest;
245
246
  };
246
247
  export type QuestionAnswer = Array<string>;
248
+ export type QuestionReplied = {
249
+ sessionID: string;
250
+ requestID: string;
251
+ answers: Array<QuestionAnswer>;
252
+ };
247
253
  export type EventQuestionReplied = {
248
254
  type: "question.replied";
249
- properties: {
250
- sessionID: string;
251
- requestID: string;
252
- answers: Array<QuestionAnswer>;
253
- };
255
+ properties: QuestionReplied;
256
+ };
257
+ export type QuestionRejected = {
258
+ sessionID: string;
259
+ requestID: string;
254
260
  };
255
261
  export type EventQuestionRejected = {
256
262
  type: "question.rejected";
257
- properties: {
258
- sessionID: string;
259
- requestID: string;
260
- };
263
+ properties: QuestionRejected;
261
264
  };
262
265
  export type Todo = {
263
266
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/sdk",
4
- "version": "0.0.0-dev-202604141910",
4
+ "version": "0.0.0-dev-202604142207",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {