Merge tea/parity into P3.6

This commit is contained in:
2026-11-28 10:31:03 -06:00
6 changed files with 238 additions and 0 deletions
+150
View File
@@ -111,6 +111,20 @@
"title": "Body_add_clinical_validation",
"type": "object"
},
"Body_import_models": {
"properties": {
"file": {
"contentMediaType": "application/octet-stream",
"title": "File",
"type": "string"
}
},
"required": [
"file"
],
"title": "Body_import_models",
"type": "object"
},
"Body_upload": {
"properties": {
"file": {
@@ -2938,6 +2952,142 @@
]
}
},
"/models/{domain}/export": {
"get": {
"operationId": "export_models",
"parameters": [
{
"in": "path",
"name": "domain",
"required": true,
"schema": {
"$ref": "#/components/schemas/Domain"
}
},
{
"in": "query",
"name": "names",
"required": false,
"schema": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Names"
}
},
{
"in": "query",
"name": "versions",
"required": false,
"schema": {
"default": "champion",
"enum": [
"champion",
"latest",
"all"
],
"title": "Versions",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/zip": {}
},
"description": "Successful Response"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"summary": "Export Models",
"tags": [
"models"
]
}
},
"/models/{domain}/import": {
"post": {
"operationId": "import_models",
"parameters": [
{
"in": "path",
"name": "domain",
"required": true,
"schema": {
"$ref": "#/components/schemas/Domain"
}
},
{
"in": "query",
"name": "sha256",
"required": true,
"schema": {
"pattern": "^[0-9a-fA-F]{64}$",
"title": "Sha256",
"type": "string"
}
}
],
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/Body_import_models"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"additionalProperties": {
"type": "string"
},
"title": "Response Import Models",
"type": "object"
}
}
},
"description": "Successful Response"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"summary": "Import Models",
"tags": [
"models"
]
}
},
"/models/{domain}/score": {
"post": {
"description": "Starts a risk batch from each model's champion; follow it at /runs.",