summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sdk')
-rw-r--r--packages/sdk/js/src/v2/gen/sdk.gen.ts8
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts80
-rw-r--r--packages/sdk/openapi.json165
3 files changed, 131 insertions, 122 deletions
diff --git a/packages/sdk/js/src/v2/gen/sdk.gen.ts b/packages/sdk/js/src/v2/gen/sdk.gen.ts
index 90df76c22..16fe07ae4 100644
--- a/packages/sdk/js/src/v2/gen/sdk.gen.ts
+++ b/packages/sdk/js/src/v2/gen/sdk.gen.ts
@@ -1203,10 +1203,10 @@ export class Session extends HeyApiClient {
}
agent?: string
noReply?: boolean
- system?: string
tools?: {
[key: string]: boolean
}
+ system?: string
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
},
options?: Options<never, ThrowOnError>,
@@ -1222,8 +1222,8 @@ export class Session extends HeyApiClient {
{ in: "body", key: "model" },
{ in: "body", key: "agent" },
{ in: "body", key: "noReply" },
- { in: "body", key: "system" },
{ in: "body", key: "tools" },
+ { in: "body", key: "system" },
{ in: "body", key: "parts" },
],
},
@@ -1289,10 +1289,10 @@ export class Session extends HeyApiClient {
}
agent?: string
noReply?: boolean
- system?: string
tools?: {
[key: string]: boolean
}
+ system?: string
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
},
options?: Options<never, ThrowOnError>,
@@ -1308,8 +1308,8 @@ export class Session extends HeyApiClient {
{ in: "body", key: "model" },
{ in: "body", key: "agent" },
{ in: "body", key: "noReply" },
- { in: "body", key: "system" },
{ in: "body", key: "tools" },
+ { in: "body", key: "system" },
{ in: "body", key: "parts" },
],
},
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index 9dc057ba5..31d5b8561 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -147,6 +147,7 @@ export type AssistantMessage = {
modelID: string
providerID: string
mode: string
+ agent: string
path: {
cwd: string
root: string
@@ -475,6 +476,40 @@ export type EventPermissionReplied = {
}
}
+export type EventFileEdited = {
+ type: "file.edited"
+ properties: {
+ file: string
+ }
+}
+
+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
+ /**
+ * Unique identifier for the todo item
+ */
+ id: string
+}
+
+export type EventTodoUpdated = {
+ type: "todo.updated"
+ properties: {
+ sessionID: string
+ todos: Array<Todo>
+ }
+}
+
export type SessionStatus =
| {
type: "idle"
@@ -511,40 +546,6 @@ export type EventSessionCompacted = {
}
}
-export type EventFileEdited = {
- type: "file.edited"
- properties: {
- file: string
- }
-}
-
-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
- /**
- * Unique identifier for the todo item
- */
- id: string
-}
-
-export type EventTodoUpdated = {
- type: "todo.updated"
- properties: {
- sessionID: string
- todos: Array<Todo>
- }
-}
-
export type EventCommandExecuted = {
type: "command.executed"
properties: {
@@ -745,11 +746,11 @@ export type Event =
| EventMessagePartRemoved
| EventPermissionUpdated
| EventPermissionReplied
+ | EventFileEdited
+ | EventTodoUpdated
| EventSessionStatus
| EventSessionIdle
| EventSessionCompacted
- | EventFileEdited
- | EventTodoUpdated
| EventCommandExecuted
| EventSessionCreated
| EventSessionUpdated
@@ -1738,7 +1739,8 @@ export type Agent = {
name: string
description?: string
mode: "subagent" | "primary" | "all"
- builtIn: boolean
+ native?: boolean
+ hidden?: boolean
topP?: number
temperature?: number
color?: string
@@ -2801,10 +2803,10 @@ export type SessionPromptData = {
}
agent?: string
noReply?: boolean
- system?: string
tools?: {
[key: string]: boolean
}
+ system?: string
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
}
path: {
@@ -2896,10 +2898,10 @@ export type SessionPromptAsyncData = {
}
agent?: string
noReply?: boolean
- system?: string
tools?: {
[key: string]: boolean
}
+ system?: string
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
}
path: {
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 372b0a63d..21928684a 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -1997,9 +1997,6 @@
"noReply": {
"type": "boolean"
},
- "system": {
- "type": "string"
- },
"tools": {
"type": "object",
"propertyNames": {
@@ -2009,6 +2006,9 @@
"type": "boolean"
}
},
+ "system": {
+ "type": "string"
+ },
"parts": {
"type": "array",
"items": {
@@ -2202,9 +2202,6 @@
"noReply": {
"type": "boolean"
},
- "system": {
- "type": "string"
- },
"tools": {
"type": "object",
"propertyNames": {
@@ -2214,6 +2211,9 @@
"type": "boolean"
}
},
+ "system": {
+ "type": "string"
+ },
"parts": {
"type": "array",
"items": {
@@ -5193,6 +5193,9 @@
"mode": {
"type": "string"
},
+ "agent": {
+ "type": "string"
+ },
"path": {
"type": "object",
"properties": {
@@ -5251,6 +5254,7 @@
"modelID",
"providerID",
"mode",
+ "agent",
"path",
"cost",
"tokens"
@@ -6152,6 +6156,72 @@
},
"required": ["type", "properties"]
},
+ "Event.file.edited": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "file.edited"
+ },
+ "properties": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string"
+ }
+ },
+ "required": ["file"]
+ }
+ },
+ "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"
+ },
+ "id": {
+ "description": "Unique identifier for the todo item",
+ "type": "string"
+ }
+ },
+ "required": ["content", "status", "priority", "id"]
+ },
+ "Event.todo.updated": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "todo.updated"
+ },
+ "properties": {
+ "type": "object",
+ "properties": {
+ "sessionID": {
+ "type": "string"
+ },
+ "todos": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Todo"
+ }
+ }
+ },
+ "required": ["sessionID", "todos"]
+ }
+ },
+ "required": ["type", "properties"]
+ },
"SessionStatus": {
"anyOf": [
{
@@ -6255,72 +6325,6 @@
},
"required": ["type", "properties"]
},
- "Event.file.edited": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "const": "file.edited"
- },
- "properties": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string"
- }
- },
- "required": ["file"]
- }
- },
- "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"
- },
- "id": {
- "description": "Unique identifier for the todo item",
- "type": "string"
- }
- },
- "required": ["content", "status", "priority", "id"]
- },
- "Event.todo.updated": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "const": "todo.updated"
- },
- "properties": {
- "type": "object",
- "properties": {
- "sessionID": {
- "type": "string"
- },
- "todos": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Todo"
- }
- }
- },
- "required": ["sessionID", "todos"]
- }
- },
- "required": ["type", "properties"]
- },
"Event.command.executed": {
"type": "object",
"properties": {
@@ -6887,19 +6891,19 @@
"$ref": "#/components/schemas/Event.permission.replied"
},
{
- "$ref": "#/components/schemas/Event.session.status"
+ "$ref": "#/components/schemas/Event.file.edited"
},
{
- "$ref": "#/components/schemas/Event.session.idle"
+ "$ref": "#/components/schemas/Event.todo.updated"
},
{
- "$ref": "#/components/schemas/Event.session.compacted"
+ "$ref": "#/components/schemas/Event.session.status"
},
{
- "$ref": "#/components/schemas/Event.file.edited"
+ "$ref": "#/components/schemas/Event.session.idle"
},
{
- "$ref": "#/components/schemas/Event.todo.updated"
+ "$ref": "#/components/schemas/Event.session.compacted"
},
{
"$ref": "#/components/schemas/Event.command.executed"
@@ -8920,7 +8924,10 @@
"type": "string",
"enum": ["subagent", "primary", "all"]
},
- "builtIn": {
+ "native": {
+ "type": "boolean"
+ },
+ "hidden": {
"type": "boolean"
},
"topP": {
@@ -9001,7 +9008,7 @@
"maximum": 9007199254740991
}
},
- "required": ["name", "mode", "builtIn", "permission", "tools", "options"]
+ "required": ["name", "mode", "permission", "tools", "options"]
},
"MCPStatusConnected": {
"type": "object",