summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGitHub Action <[email protected]>2026-01-28 16:12:32 +0000
committerGitHub Action <[email protected]>2026-01-28 16:12:32 +0000
commitaf3c97f192913cd7ddc1f435370077f1f38db12b (patch)
treeb0ff15c47b3f6e650c610f699706598140cd52b0
parent26e14ce62813bcfbd6ec126fa994de13ef6913a1 (diff)
downloadopencode-af3c97f192913cd7ddc1f435370077f1f38db12b.tar.gz
opencode-af3c97f192913cd7ddc1f435370077f1f38db12b.zip
chore: generate
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts30
-rw-r--r--packages/sdk/openapi.json85
2 files changed, 60 insertions, 55 deletions
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index 328e54dd8..12c7bf7df 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -233,6 +233,21 @@ export type TextPart = {
}
}
+export type SubtaskPart = {
+ id: string
+ sessionID: string
+ messageID: string
+ type: "subtask"
+ prompt: string
+ description: string
+ agent: string
+ model?: {
+ providerID: string
+ modelID: string
+ }
+ command?: string
+}
+
export type ReasoningPart = {
id: string
sessionID: string
@@ -449,20 +464,7 @@ export type CompactionPart = {
export type Part =
| TextPart
- | {
- id: string
- sessionID: string
- messageID: string
- type: "subtask"
- prompt: string
- description: string
- agent: string
- model?: {
- providerID: string
- modelID: string
- }
- command?: string
- }
+ | SubtaskPart
| ReasoningPart
| FilePart
| ToolPart
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 152cea444..0c60bdd40 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -6502,6 +6502,49 @@
},
"required": ["id", "sessionID", "messageID", "type", "text"]
},
+ "SubtaskPart": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "sessionID": {
+ "type": "string"
+ },
+ "messageID": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "const": "subtask"
+ },
+ "prompt": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "agent": {
+ "type": "string"
+ },
+ "model": {
+ "type": "object",
+ "properties": {
+ "providerID": {
+ "type": "string"
+ },
+ "modelID": {
+ "type": "string"
+ }
+ },
+ "required": ["providerID", "modelID"]
+ },
+ "command": {
+ "type": "string"
+ }
+ },
+ "required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"]
+ },
"ReasoningPart": {
"type": "object",
"properties": {
@@ -7125,47 +7168,7 @@
"$ref": "#/components/schemas/TextPart"
},
{
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "sessionID": {
- "type": "string"
- },
- "messageID": {
- "type": "string"
- },
- "type": {
- "type": "string",
- "const": "subtask"
- },
- "prompt": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "agent": {
- "type": "string"
- },
- "model": {
- "type": "object",
- "properties": {
- "providerID": {
- "type": "string"
- },
- "modelID": {
- "type": "string"
- }
- },
- "required": ["providerID", "modelID"]
- },
- "command": {
- "type": "string"
- }
- },
- "required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"]
+ "$ref": "#/components/schemas/SubtaskPart"
},
{
"$ref": "#/components/schemas/ReasoningPart"