summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-03-11 23:24:38 -0400
committerDax Raad <[email protected]>2026-03-11 23:24:38 -0400
commitb1ef501207aa9d2c7f7ee70cbd1d9fde360be219 (patch)
tree67a74164219fd8adff77fdd549934424333e5bd2 /packages/sdk
parent9fb12a906eb8b1ef5f346623d11bd86689f926b1 (diff)
parentfafbc29316e7240b348db9e91e7a8e97cd803aef (diff)
downloadopencode-b1ef501207aa9d2c7f7ee70cbd1d9fde360be219.tar.gz
opencode-b1ef501207aa9d2c7f7ee70cbd1d9fde360be219.zip
Merge remote-tracking branch 'origin/dev' into dev
Diffstat (limited to 'packages/sdk')
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts54
-rw-r--r--packages/sdk/openapi.json376
2 files changed, 232 insertions, 198 deletions
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index a47b18db2..30568c96d 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -2970,9 +2970,6 @@ export type SessionChildrenResponse = SessionChildrenResponses[keyof SessionChil
export type SessionTodoData = {
body?: never
path: {
- /**
- * Session ID
- */
sessionID: string
}
query?: {
@@ -3011,9 +3008,6 @@ export type SessionInitData = {
messageID: string
}
path: {
- /**
- * Session ID
- */
sessionID: string
}
query?: {
@@ -3199,9 +3193,6 @@ export type SessionSummarizeData = {
auto?: boolean
}
path: {
- /**
- * Session ID
- */
sessionID: string
}
query?: {
@@ -3236,9 +3227,6 @@ export type SessionSummarizeResponse = SessionSummarizeResponses[keyof SessionSu
export type SessionMessagesData = {
body?: never
path: {
- /**
- * Session ID
- */
sessionID: string
}
query?: {
@@ -3295,9 +3283,6 @@ export type SessionPromptData = {
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
}
path: {
- /**
- * Session ID
- */
sessionID: string
}
query?: {
@@ -3335,13 +3320,7 @@ export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptRe
export type SessionDeleteMessageData = {
body?: never
path: {
- /**
- * Session ID
- */
sessionID: string
- /**
- * Message ID
- */
messageID: string
}
query?: {
@@ -3376,13 +3355,7 @@ export type SessionDeleteMessageResponse = SessionDeleteMessageResponses[keyof S
export type SessionMessageData = {
body?: never
path: {
- /**
- * Session ID
- */
sessionID: string
- /**
- * Message ID
- */
messageID: string
}
query?: {
@@ -3420,17 +3393,8 @@ export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessag
export type PartDeleteData = {
body?: never
path: {
- /**
- * Session ID
- */
sessionID: string
- /**
- * Message ID
- */
messageID: string
- /**
- * Part ID
- */
partID: string
}
query?: {
@@ -3465,17 +3429,8 @@ export type PartDeleteResponse = PartDeleteResponses[keyof PartDeleteResponses]
export type PartUpdateData = {
body?: Part
path: {
- /**
- * Session ID
- */
sessionID: string
- /**
- * Message ID
- */
messageID: string
- /**
- * Part ID
- */
partID: string
}
query?: {
@@ -3528,9 +3483,6 @@ export type SessionPromptAsyncData = {
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
}
path: {
- /**
- * Session ID
- */
sessionID: string
}
query?: {
@@ -3580,9 +3532,6 @@ export type SessionCommandData = {
}>
}
path: {
- /**
- * Session ID
- */
sessionID: string
}
query?: {
@@ -3627,9 +3576,6 @@ export type SessionShellData = {
command: string
}
path: {
- /**
- * Session ID
- */
sessionID: string
}
query?: {
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index c3e54a7a1..a5e10f0d7 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -637,7 +637,8 @@
"in": "path",
"name": "ptyID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^pty.*"
},
"required": true
}
@@ -694,7 +695,8 @@
"in": "path",
"name": "ptyID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^pty.*"
},
"required": true
}
@@ -777,7 +779,8 @@
"in": "path",
"name": "ptyID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^pty.*"
},
"required": true
}
@@ -836,7 +839,8 @@
"in": "path",
"name": "ptyID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^pty.*"
},
"required": true
}
@@ -2066,7 +2070,8 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"required": true
}
@@ -2231,10 +2236,10 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
- "required": true,
- "description": "Session ID"
+ "required": true
}
],
"summary": "Get session todos",
@@ -2304,10 +2309,10 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
- "required": true,
- "description": "Session ID"
+ "required": true
}
],
"summary": "Initialize session",
@@ -2461,7 +2466,8 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"required": true
}
@@ -2530,7 +2536,8 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"required": true
}
@@ -2728,10 +2735,10 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
- "required": true,
- "description": "Session ID"
+ "required": true
}
],
"summary": "Summarize session",
@@ -2820,10 +2827,10 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
- "required": true,
- "description": "Session ID"
+ "required": true
},
{
"in": "query",
@@ -2910,10 +2917,10 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
- "required": true,
- "description": "Session ID"
+ "required": true
}
],
"summary": "Send message",
@@ -3064,19 +3071,19 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
- "required": true,
- "description": "Session ID"
+ "required": true
},
{
"in": "path",
"name": "messageID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
- "required": true,
- "description": "Message ID"
+ "required": true
}
],
"summary": "Get message",
@@ -3153,19 +3160,19 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
- "required": true,
- "description": "Session ID"
+ "required": true
},
{
"in": "path",
"name": "messageID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
- "required": true,
- "description": "Message ID"
+ "required": true
}
],
"summary": "Delete message",
@@ -3232,28 +3239,28 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
- "required": true,
- "description": "Session ID"
+ "required": true
},
{
"in": "path",
"name": "messageID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
- "required": true,
- "description": "Message ID"
+ "required": true
},
{
"in": "path",
"name": "partID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
- "required": true,
- "description": "Part ID"
+ "required": true
}
],
"description": "Delete a part from a message",
@@ -3317,28 +3324,28 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
- "required": true,
- "description": "Session ID"
+ "required": true
},
{
"in": "path",
"name": "messageID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
- "required": true,
- "description": "Message ID"
+ "required": true
},
{
"in": "path",
"name": "partID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
- "required": true,
- "description": "Part ID"
+ "required": true
}
],
"description": "Update a part in a message",
@@ -3413,10 +3420,10 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
- "required": true,
- "description": "Session ID"
+ "required": true
}
],
"summary": "Send async message",
@@ -3548,10 +3555,10 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
- "required": true,
- "description": "Session ID"
+ "required": true
}
],
"summary": "Send command",
@@ -3633,7 +3640,8 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"type": {
"type": "string",
@@ -3693,10 +3701,10 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
- "required": true,
- "description": "Session ID"
+ "required": true
}
],
"summary": "Run shell command",
@@ -3793,7 +3801,8 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"required": true
}
@@ -3882,7 +3891,8 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"required": true
}
@@ -3951,7 +3961,8 @@
"in": "path",
"name": "sessionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"required": true
},
@@ -3959,7 +3970,8 @@
"in": "path",
"name": "permissionID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^per.*"
},
"required": true
}
@@ -4045,7 +4057,8 @@
"in": "path",
"name": "requestID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^per.*"
},
"required": true
}
@@ -4221,7 +4234,8 @@
"in": "path",
"name": "requestID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^que.*"
},
"required": true
}
@@ -4309,7 +4323,8 @@
"in": "path",
"name": "requestID",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^que.*"
},
"required": true
}
@@ -6306,7 +6321,7 @@
"sessionID": {
"description": "Session ID to navigate to",
"type": "string",
- "pattern": "^ses"
+ "pattern": "^ses.*"
}
},
"required": ["sessionID"]
@@ -7195,10 +7210,12 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"role": {
"type": "string",
@@ -7435,10 +7452,12 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"role": {
"type": "string",
@@ -7482,7 +7501,8 @@
]
},
"parentID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"modelID": {
"type": "string"
@@ -7607,10 +7627,12 @@
"type": "object",
"properties": {
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
}
},
"required": ["sessionID", "messageID"]
@@ -7622,13 +7644,16 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"type": {
"type": "string",
@@ -7669,13 +7694,16 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"type": {
"type": "string",
@@ -7712,13 +7740,16 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"type": {
"type": "string",
@@ -7877,13 +7908,16 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"type": {
"type": "string",
@@ -8070,13 +8104,16 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"type": {
"type": "string",
@@ -8105,13 +8142,16 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"type": {
"type": "string",
@@ -8127,13 +8167,16 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"type": {
"type": "string",
@@ -8185,13 +8228,16 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"type": {
"type": "string",
@@ -8207,13 +8253,16 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"type": {
"type": "string",
@@ -8235,13 +8284,16 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"type": {
"type": "string",
@@ -8276,13 +8328,16 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"type": {
"type": "string",
@@ -8310,13 +8365,16 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"type": {
"type": "string",
@@ -8401,13 +8459,16 @@
"type": "object",
"properties": {
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"partID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"field": {
"type": "string"
@@ -8432,13 +8493,16 @@
"type": "object",
"properties": {
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"partID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
}
},
"required": ["sessionID", "messageID", "partID"]
@@ -8483,7 +8547,8 @@
"type": "object",
"properties": {
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"callID": {
"type": "string"
@@ -8518,10 +8583,12 @@
"type": "object",
"properties": {
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"requestID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^per.*"
},
"reply": {
"type": "string",
@@ -8587,7 +8654,8 @@
"type": "object",
"properties": {
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"status": {
"$ref": "#/components/schemas/SessionStatus"
@@ -8609,7 +8677,8 @@
"type": "object",
"properties": {
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
}
},
"required": ["sessionID"]
@@ -8682,7 +8751,8 @@
"type": "object",
"properties": {
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"callID": {
"type": "string"
@@ -8723,10 +8793,12 @@
"type": "object",
"properties": {
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"requestID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^que.*"
},
"answers": {
"type": "array",
@@ -8751,10 +8823,12 @@
"type": "object",
"properties": {
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"requestID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^que.*"
}
},
"required": ["sessionID", "requestID"]
@@ -8773,7 +8847,8 @@
"type": "object",
"properties": {
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
}
},
"required": ["sessionID"]
@@ -8845,7 +8920,8 @@
"type": "object",
"properties": {
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"todos": {
"type": "array",
@@ -8966,7 +9042,7 @@
"sessionID": {
"description": "Session ID to navigate to",
"type": "string",
- "pattern": "^ses"
+ "pattern": "^ses.*"
}
},
"required": ["sessionID"]
@@ -9084,7 +9160,8 @@
"type": "string"
},
"workspaceID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^wrk.*"
},
"directory": {
"type": "string"
@@ -9154,10 +9231,12 @@
"type": "object",
"properties": {
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"partID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"snapshot": {
"type": "string"
@@ -9239,7 +9318,8 @@
"type": "object",
"properties": {
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"diff": {
"type": "array",
@@ -9264,7 +9344,8 @@
"type": "object",
"properties": {
"sessionID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^ses.*"
},
"error": {
"anyOf": [
@@ -11169,7 +11250,8 @@
"type": "string"
},
"workspaceID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^wrk.*"
},
"directory": {
"type": "string"
@@ -11239,10 +11321,12 @@
"type": "object",
"properties": {
"messageID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^msg.*"
},
"partID": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"snapshot": {
"type": "string"
@@ -11291,7 +11375,8 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"type": {
"type": "string",
@@ -11332,7 +11417,8 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"type": {
"type": "string",
@@ -11357,7 +11443,8 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"type": {
"type": "string",
@@ -11392,7 +11479,8 @@
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "pattern": "^prt.*"
},
"type": {
"type": "string",