summaryrefslogtreecommitdiffhomepage
path: root/js/openapi.json
diff options
context:
space:
mode:
Diffstat (limited to 'js/openapi.json')
-rw-r--r--js/openapi.json90
1 files changed, 0 insertions, 90 deletions
diff --git a/js/openapi.json b/js/openapi.json
deleted file mode 100644
index 8dbe78550..000000000
--- a/js/openapi.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "openapi": "3.1.0",
- "info": {
- "title": "opencode",
- "description": "opencode api",
- "version": "1.0.0"
- },
- "paths": {
- "/session_create": {
- "post": {
- "responses": {
- "200": {
- "description": "Successfully created session",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "pattern": "^ses"
- },
- "title": {
- "type": "string"
- },
- "tokens": {
- "type": "object",
- "properties": {
- "input": {
- "type": "number"
- },
- "output": {
- "type": "number"
- },
- "reasoning": {
- "type": "number"
- }
- },
- "required": [
- "input",
- "output",
- "reasoning"
- ]
- }
- },
- "required": [
- "id",
- "title",
- "tokens"
- ]
- }
- }
- }
- }
- },
- "operationId": "postSession_create",
- "parameters": [],
- "description": "Create a new session"
- }
- },
- "/session_chat": {
- "post": {
- "responses": {},
- "operationId": "postSession_chat",
- "parameters": [],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "sessionID": {
- "type": "string"
- },
- "parts": {}
- },
- "required": [
- "sessionID"
- ]
- }
- }
- }
- }
- }
- }
- },
- "components": {
- "schemas": {}
- }
-} \ No newline at end of file