Skip to content

Commit af3c97f

Browse files
committed
chore: generate
1 parent 26e14ce commit af3c97f

2 files changed

Lines changed: 60 additions & 55 deletions

File tree

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,21 @@ export type TextPart = {
233233
}
234234
}
235235

236+
export type SubtaskPart = {
237+
id: string
238+
sessionID: string
239+
messageID: string
240+
type: "subtask"
241+
prompt: string
242+
description: string
243+
agent: string
244+
model?: {
245+
providerID: string
246+
modelID: string
247+
}
248+
command?: string
249+
}
250+
236251
export type ReasoningPart = {
237252
id: string
238253
sessionID: string
@@ -449,20 +464,7 @@ export type CompactionPart = {
449464

450465
export type Part =
451466
| TextPart
452-
| {
453-
id: string
454-
sessionID: string
455-
messageID: string
456-
type: "subtask"
457-
prompt: string
458-
description: string
459-
agent: string
460-
model?: {
461-
providerID: string
462-
modelID: string
463-
}
464-
command?: string
465-
}
467+
| SubtaskPart
466468
| ReasoningPart
467469
| FilePart
468470
| ToolPart

packages/sdk/openapi.json

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6502,6 +6502,49 @@
65026502
},
65036503
"required": ["id", "sessionID", "messageID", "type", "text"]
65046504
},
6505+
"SubtaskPart": {
6506+
"type": "object",
6507+
"properties": {
6508+
"id": {
6509+
"type": "string"
6510+
},
6511+
"sessionID": {
6512+
"type": "string"
6513+
},
6514+
"messageID": {
6515+
"type": "string"
6516+
},
6517+
"type": {
6518+
"type": "string",
6519+
"const": "subtask"
6520+
},
6521+
"prompt": {
6522+
"type": "string"
6523+
},
6524+
"description": {
6525+
"type": "string"
6526+
},
6527+
"agent": {
6528+
"type": "string"
6529+
},
6530+
"model": {
6531+
"type": "object",
6532+
"properties": {
6533+
"providerID": {
6534+
"type": "string"
6535+
},
6536+
"modelID": {
6537+
"type": "string"
6538+
}
6539+
},
6540+
"required": ["providerID", "modelID"]
6541+
},
6542+
"command": {
6543+
"type": "string"
6544+
}
6545+
},
6546+
"required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"]
6547+
},
65056548
"ReasoningPart": {
65066549
"type": "object",
65076550
"properties": {
@@ -7125,47 +7168,7 @@
71257168
"$ref": "#/components/schemas/TextPart"
71267169
},
71277170
{
7128-
"type": "object",
7129-
"properties": {
7130-
"id": {
7131-
"type": "string"
7132-
},
7133-
"sessionID": {
7134-
"type": "string"
7135-
},
7136-
"messageID": {
7137-
"type": "string"
7138-
},
7139-
"type": {
7140-
"type": "string",
7141-
"const": "subtask"
7142-
},
7143-
"prompt": {
7144-
"type": "string"
7145-
},
7146-
"description": {
7147-
"type": "string"
7148-
},
7149-
"agent": {
7150-
"type": "string"
7151-
},
7152-
"model": {
7153-
"type": "object",
7154-
"properties": {
7155-
"providerID": {
7156-
"type": "string"
7157-
},
7158-
"modelID": {
7159-
"type": "string"
7160-
}
7161-
},
7162-
"required": ["providerID", "modelID"]
7163-
},
7164-
"command": {
7165-
"type": "string"
7166-
}
7167-
},
7168-
"required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"]
7171+
"$ref": "#/components/schemas/SubtaskPart"
71697172
},
71707173
{
71717174
"$ref": "#/components/schemas/ReasoningPart"

0 commit comments

Comments
 (0)