summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-12 00:58:05 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-12 00:58:05 +0000
commit17b290088485bd8c1ccdfbf13e8e9c2f3b2c3301 (patch)
tree7b0742f502c12bab529bf751dff65d91d532d8aa /packages/sdk
parent003010bdb63210f9f21485b9abc54b35b38035ce (diff)
downloadopencode-17b290088485bd8c1ccdfbf13e8e9c2f3b2c3301.tar.gz
opencode-17b290088485bd8c1ccdfbf13e8e9c2f3b2c3301.zip
chore: generate
Diffstat (limited to 'packages/sdk')
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts48
-rw-r--r--packages/sdk/openapi.json94
2 files changed, 71 insertions, 71 deletions
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index f2b32a159..4aab9f439 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -387,6 +387,29 @@ export type EventQuestionRejected = {
}
}
+export type Todo = {
+ /**
+ * Brief description of the task
+ */
+ content: string
+ /**
+ * Current status of the task: pending, in_progress, completed, cancelled
+ */
+ status: string
+ /**
+ * Priority level of the task: high, medium, low
+ */
+ priority: string
+}
+
+export type EventTodoUpdated = {
+ type: "todo.updated"
+ properties: {
+ sessionID: string
+ todos: Array<Todo>
+ }
+}
+
export type SessionStatus =
| {
type: "idle"
@@ -423,29 +446,6 @@ export type EventSessionCompacted = {
}
}
-export type Todo = {
- /**
- * Brief description of the task
- */
- content: string
- /**
- * Current status of the task: pending, in_progress, completed, cancelled
- */
- status: string
- /**
- * Priority level of the task: high, medium, low
- */
- priority: string
-}
-
-export type EventTodoUpdated = {
- type: "todo.updated"
- properties: {
- sessionID: string
- todos: Array<Todo>
- }
-}
-
export type EventWorktreeReady = {
type: "worktree.ready"
properties: {
@@ -998,10 +998,10 @@ export type Event =
| EventQuestionAsked
| EventQuestionReplied
| EventQuestionRejected
+ | EventTodoUpdated
| EventSessionStatus
| EventSessionIdle
| EventSessionCompacted
- | EventTodoUpdated
| EventWorktreeReady
| EventWorktreeFailed
| EventPtyCreated
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 5e5058fde..e8d6e6a08 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -8139,6 +8139,50 @@
},
"required": ["type", "properties"]
},
+ "Todo": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "description": "Brief description of the task",
+ "type": "string"
+ },
+ "status": {
+ "description": "Current status of the task: pending, in_progress, completed, cancelled",
+ "type": "string"
+ },
+ "priority": {
+ "description": "Priority level of the task: high, medium, low",
+ "type": "string"
+ }
+ },
+ "required": ["content", "status", "priority"]
+ },
+ "Event.todo.updated": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "todo.updated"
+ },
+ "properties": {
+ "type": "object",
+ "properties": {
+ "sessionID": {
+ "type": "string",
+ "pattern": "^ses.*"
+ },
+ "todos": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Todo"
+ }
+ }
+ },
+ "required": ["sessionID", "todos"]
+ }
+ },
+ "required": ["type", "properties"]
+ },
"SessionStatus": {
"anyOf": [
{
@@ -8245,50 +8289,6 @@
},
"required": ["type", "properties"]
},
- "Todo": {
- "type": "object",
- "properties": {
- "content": {
- "description": "Brief description of the task",
- "type": "string"
- },
- "status": {
- "description": "Current status of the task: pending, in_progress, completed, cancelled",
- "type": "string"
- },
- "priority": {
- "description": "Priority level of the task: high, medium, low",
- "type": "string"
- }
- },
- "required": ["content", "status", "priority"]
- },
- "Event.todo.updated": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "const": "todo.updated"
- },
- "properties": {
- "type": "object",
- "properties": {
- "sessionID": {
- "type": "string",
- "pattern": "^ses.*"
- },
- "todos": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Todo"
- }
- }
- },
- "required": ["sessionID", "todos"]
- }
- },
- "required": ["type", "properties"]
- },
"Event.worktree.ready": {
"type": "object",
"properties": {
@@ -9950,6 +9950,9 @@
"$ref": "#/components/schemas/Event.question.rejected"
},
{
+ "$ref": "#/components/schemas/Event.todo.updated"
+ },
+ {
"$ref": "#/components/schemas/Event.session.status"
},
{
@@ -9959,9 +9962,6 @@
"$ref": "#/components/schemas/Event.session.compacted"
},
{
- "$ref": "#/components/schemas/Event.todo.updated"
- },
- {
"$ref": "#/components/schemas/Event.worktree.ready"
},
{