summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/openapi.json
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-03-25 14:48:44 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-03-25 14:48:44 +0000
commit971383661a5eb1bef1a9348f2db3960449a422b4 (patch)
treeb9d812ca227003e7ab8223ead0d3356d77f5964d /packages/sdk/openapi.json
parentb0017bf1b96ef14fc1ecf91c0b9c4b18e2dfea71 (diff)
downloadopencode-971383661a5eb1bef1a9348f2db3960449a422b4.tar.gz
opencode-971383661a5eb1bef1a9348f2db3960449a422b4.zip
chore: generate
Diffstat (limited to 'packages/sdk/openapi.json')
-rw-r--r--packages/sdk/openapi.json233
1 files changed, 180 insertions, 53 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 053fc5b94..513a0f0ff 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -10048,102 +10048,229 @@
"type": "object",
"properties": {
"id": {
- "type": "string",
- "pattern": "^ses.*"
+ "anyOf": [
+ {
+ "type": "string",
+ "pattern": "^ses.*"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"slug": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"projectID": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"workspaceID": {
- "type": "string",
- "pattern": "^wrk.*"
+ "anyOf": [
+ {
+ "type": "string",
+ "pattern": "^wrk.*"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"directory": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"parentID": {
- "type": "string",
- "pattern": "^ses.*"
+ "anyOf": [
+ {
+ "type": "string",
+ "pattern": "^ses.*"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"summary": {
- "type": "object",
- "properties": {
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "files": {
- "type": "number"
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "additions": {
+ "type": "number"
+ },
+ "deletions": {
+ "type": "number"
+ },
+ "files": {
+ "type": "number"
+ },
+ "diffs": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/FileDiff"
+ }
+ }
+ },
+ "required": ["additions", "deletions", "files"]
},
- "diffs": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/FileDiff"
- }
+ {
+ "type": "null"
}
- },
- "required": ["additions", "deletions", "files"]
+ ]
},
"share": {
"type": "object",
"properties": {
"url": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
- }
+ },
+ "required": ["url"]
},
"title": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"version": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"time": {
"type": "object",
"properties": {
"created": {
- "type": "number"
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"updated": {
- "type": "number"
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"compacting": {
- "type": "number"
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"archived": {
- "type": "number"
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
- }
+ },
+ "required": ["created", "updated", "compacting", "archived"]
},
"permission": {
- "$ref": "#/components/schemas/PermissionRuleset"
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/PermissionRuleset"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"revert": {
- "type": "object",
- "properties": {
- "messageID": {
- "type": "string",
- "pattern": "^msg.*"
- },
- "partID": {
- "type": "string",
- "pattern": "^prt.*"
- },
- "snapshot": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "messageID": {
+ "type": "string",
+ "pattern": "^msg.*"
+ },
+ "partID": {
+ "type": "string",
+ "pattern": "^prt.*"
+ },
+ "snapshot": {
+ "type": "string"
+ },
+ "diff": {
+ "type": "string"
+ }
+ },
+ "required": ["messageID"]
},
- "diff": {
- "type": "string"
+ {
+ "type": "null"
}
- },
- "required": ["messageID"]
+ ]
}
- }
+ },
+ "required": [
+ "id",
+ "slug",
+ "projectID",
+ "workspaceID",
+ "directory",
+ "parentID",
+ "summary",
+ "title",
+ "version",
+ "permission",
+ "revert"
+ ]
}
},
"required": ["sessionID", "info"]