(re)Standardize Session Name Attribute (#5279)

This commit is contained in:
Will Pfleger
2025-10-24 13:34:08 -04:00
committed by GitHub
parent b22abfc623
commit 044b227fdb
29 changed files with 1196 additions and 235 deletions
+62 -59
View File
@@ -1794,57 +1794,6 @@
]
}
},
"/sessions/{session_id}/description": {
"put": {
"tags": [
"Session Management"
],
"operationId": "update_session_description",
"parameters": [
{
"name": "session_id",
"in": "path",
"description": "Unique identifier for the session",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateSessionDescriptionRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Session description updated successfully"
},
"400": {
"description": "Bad request - Description too long (max 200 characters)"
},
"401": {
"description": "Unauthorized - Invalid or missing API key"
},
"404": {
"description": "Session not found"
},
"500": {
"description": "Internal server error"
}
},
"security": [
{
"api_key": []
}
]
}
},
"/sessions/{session_id}/export": {
"get": {
"tags": [
@@ -1890,6 +1839,57 @@
]
}
},
"/sessions/{session_id}/name": {
"put": {
"tags": [
"Session Management"
],
"operationId": "update_session_name",
"parameters": [
{
"name": "session_id",
"in": "path",
"description": "Unique identifier for the session",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateSessionNameRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Session name updated successfully"
},
"400": {
"description": "Bad request - Name too long (max 200 characters)"
},
"401": {
"description": "Unauthorized - Invalid or missing API key"
},
"404": {
"description": "Session not found"
},
"500": {
"description": "Internal server error"
}
},
"security": [
{
"api_key": []
}
]
}
},
"/sessions/{session_id}/user_recipe_values": {
"put": {
"tags": [
@@ -3898,7 +3898,7 @@
"required": [
"id",
"working_dir",
"description",
"name",
"created_at",
"updated_at",
"extension_data",
@@ -3932,9 +3932,6 @@
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"extension_data": {
"$ref": "#/components/schemas/ExtensionData"
},
@@ -3950,6 +3947,9 @@
"type": "integer",
"minimum": 0
},
"name": {
"type": "string"
},
"output_tokens": {
"type": "integer",
"format": "int32",
@@ -3983,6 +3983,9 @@
},
"nullable": true
},
"user_set_name": {
"type": "boolean"
},
"working_dir": {
"type": "string"
}
@@ -4518,15 +4521,15 @@
}
}
},
"UpdateSessionDescriptionRequest": {
"UpdateSessionNameRequest": {
"type": "object",
"required": [
"description"
"name"
],
"properties": {
"description": {
"name": {
"type": "string",
"description": "Updated description (name) for the session (max 200 characters)"
"description": "Updated name for the session (max 200 characters)"
}
}
},