|
|
@@ -2,7 +2,7 @@
|
|
|
"openapi": "3.1.0",
|
|
|
"info": {
|
|
|
"title": "smartbotic-vectorapi",
|
|
|
- "version": "0.4.0",
|
|
|
+ "version": "0.5.0",
|
|
|
"description": "General-purpose REST API fronting smartbotic-database. Supports multi-project namespacing and multi-key authorization with per-project grants."
|
|
|
},
|
|
|
"components": {
|
|
|
@@ -1664,6 +1664,42 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "/api/v1/projects/{project}/settings/functions": {
|
|
|
+ "get": {
|
|
|
+ "tags": ["Settings"],
|
|
|
+ "summary": "Per-project function limits",
|
|
|
+ "description": "Admin only. `max_wall_time_ms` is the ceiling a function in this project may ask for with its own `timeoutMs`; null means the project inherits the runner's ceiling for the kind of run. A project maximum can only NARROW, never raise: the effective budget is min(descriptor timeoutMs or default, project max or kind ceiling, hard ceiling).",
|
|
|
+ "parameters": [
|
|
|
+ { "name": "project", "in": "path", "required": true, "schema": { "type": "string" } }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": { "description": "The project's limits.",
|
|
|
+ "content": { "application/json": { "schema": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": { "max_wall_time_ms": { "type": ["integer", "null"] } } } } } },
|
|
|
+ "403": { "description": "Not an admin key.",
|
|
|
+ "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "put": {
|
|
|
+ "tags": ["Settings"],
|
|
|
+ "summary": "Set the per-project function wall-time cap",
|
|
|
+ "description": "Admin only, because it decides how long one project may hold a pooled runtime - and therefore how long it can delay every other project's interactive routes. Send null to inherit.",
|
|
|
+ "parameters": [
|
|
|
+ { "name": "project", "in": "path", "required": true, "schema": { "type": "string" } }
|
|
|
+ ],
|
|
|
+ "requestBody": { "required": true, "content": { "application/json": { "schema": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": { "max_wall_time_ms": { "type": ["integer", "null"], "minimum": 1 } } } } } },
|
|
|
+ "responses": {
|
|
|
+ "200": { "description": "Stored." },
|
|
|
+ "403": { "description": "Not an admin key.",
|
|
|
+ "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
|
|
|
+ "422": { "description": "Not an integer or null.",
|
|
|
+ "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"/api/v1/projects/{project}/settings/embeddings": {
|
|
|
"parameters": [
|
|
|
{
|