Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 111 additions & 26 deletions api/openapi.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -418,7 +418,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateOrRenameWorkspaceRequest"
"$ref": "#/components/schemas/FullWorkspace-Input"
}
}
},
Expand All@@ -430,7 +430,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Workspace"
"$ref": "#/components/schemas/FullWorkspace-Output"
}
}
}
Expand DownExpand Up@@ -522,6 +522,58 @@
}
},
"/api/v1/workspaces/{workspace_name}": {
"put": {
"tags": [
"CodeGate API",
"Workspaces"
],
"summary": "Update Workspace",
"description": "Update a workspace.",
"operationId": "v1_update_workspace",
"parameters": [
{
"name": "workspace_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Workspace Name"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FullWorkspace-Input"
}
}
}
},
"responses": {
"201": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FullWorkspace-Output"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"tags": [
"CodeGate API",
Expand DownExpand Up@@ -1589,7 +1641,20 @@
"title": "Conversation",
"description": "Represents a conversation."
},
"CreateOrRenameWorkspaceRequest": {
"CustomInstructions": {
"properties": {
"prompt": {
"type": "string",
"title": "Prompt"
}
},
"type": "object",
"required": [
"prompt"
],
"title": "CustomInstructions"
},
"FullWorkspace-Input": {
"properties": {
"name": {
"type": "string",
Expand All@@ -1598,43 +1663,42 @@
"config": {
"anyOf": [
{
"$ref": "#/components/schemas/WorkspaceConfig"
"$ref": "#/components/schemas/WorkspaceConfig-Input"
},
{
"type": "null"
}
]
},
"rename_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Rename To"
}
},
"type": "object",
"required": [
"name"
],
"title": "CreateOrRenameWorkspaceRequest"
"title": "FullWorkspace"
},
"CustomInstructions": {
"FullWorkspace-Output": {
"properties": {
"prompt": {
"name": {
"type": "string",
"title": "Prompt"
"title": "Name"
},
"config": {
"anyOf": [
{
"$ref": "#/components/schemas/WorkspaceConfig-Output"
},
{
"type": "null"
}
]
}
},
"type": "object",
"required": [
"prompt"
"name"
],
"title": "CustomInstructions"
"title": "FullWorkspace"
},
"HTTPValidationError": {
"properties": {
Expand DownExpand Up@@ -1982,11 +2046,32 @@
],
"title": "Workspace"
},
"WorkspaceConfig": {
"WorkspaceConfig-Input": {
"properties": {
"custom_instructions": {
"type": "string",
"title": "Custom Instructions"
},
"muxing_rules": {
"items": {
"$ref": "#/components/schemas/MuxRule"
},
"type": "array",
"title": "Muxing Rules"
}
},
"type": "object",
"required": [
"custom_instructions",
"muxing_rules"
],
"title": "WorkspaceConfig"
},
"WorkspaceConfig-Output": {
"properties": {
"system_prompt": {
"custom_instructions": {
"type": "string",
"title": "System Prompt"
"title": "Custom Instructions"
},
"muxing_rules": {
"items": {
Expand All@@ -1998,7 +2083,7 @@
},
"type": "object",
"required": [
"system_prompt",
"custom_instructions",
"muxing_rules"
],
"title": "WorkspaceConfig"
Expand DownExpand Up@@ -2030,4 +2115,4 @@
}
}
}
}
}