{"openapi":"3.1.0","info":{"title":"DeepGate Platform API","description":"Unversioned API for Models, Builds, Benchmarks, projects, organization access, and seat billing.","version":"0.1.0"},"paths":{"/api/projects":{"post":{"tags":["Projects"],"summary":"Create Project","operationId":"create_project_api_projects_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Projects"],"summary":"List Projects","operationId":"list_projects_api_projects_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}":{"get":{"tags":["Projects"],"summary":"Get Project","operationId":"get_project_api_projects__project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Projects"],"summary":"Update Project","operationId":"update_project_api_projects__project_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProjectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Projects"],"summary":"Delete Project","description":"Delete an owned Project; the body reports the cascade impact.","operationId":"delete_project_api_projects__project_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDeletionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/microcontrollers":{"get":{"tags":["workflows","Catalogs"],"summary":"List Microcontrollers","operationId":"list_microcontrollers_api_microcontrollers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_retired","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Retired"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicrocontrollerList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/boards":{"get":{"tags":["workflows","Catalogs"],"summary":"List Boards","operationId":"list_boards_api_boards_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_retired","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Retired"}},{"name":"available","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Available"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/build-targets":{"get":{"tags":["workflows","Project targets"],"summary":"Get Project Build Targets","operationId":"get_project_build_targets_api_projects__project_id__build_targets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectBuildTargets"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workflows","Project targets"],"summary":"Replace Project Build Targets","operationId":"replace_project_build_targets_api_projects__project_id__build_targets_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceProjectBuildTargetsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectBuildTargets"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/benchmark-boards":{"get":{"tags":["workflows","Project targets"],"summary":"Get Project Benchmark Boards","operationId":"get_project_benchmark_boards_api_projects__project_id__benchmark_boards_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectBenchmarkBoards"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workflows","Project targets"],"summary":"Replace Project Benchmark Boards","operationId":"replace_project_benchmark_boards_api_projects__project_id__benchmark_boards_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceProjectBenchmarkBoardsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectBenchmarkBoards"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/models":{"get":{"tags":["workflows","Models"],"summary":"List Models","operationId":"list_models_api_projects__project_id__models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"origin","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelOrigin"},{"type":"null"}],"title":"Origin"}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelFormat"},{"type":"null"}],"title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/models/{model_id}/download":{"get":{"tags":["workflows","Models"],"summary":"Download Model","operationId":"download_model_api_projects__project_id__models__model_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","headers":{"Content-Disposition":{"description":"Attachment named from the Model label and format.","schema":{"type":"string"},"example":"attachment; filename=\"wakeword.tflite\""}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/builds":{"post":{"tags":["workflows","Builds"],"summary":"Submit Build","operationId":"submit_build_api_projects__project_id__builds_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_build_api_projects__project_id__builds_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildSubmission"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workflows","Builds"],"summary":"List Builds","operationId":"list_builds_api_projects__project_id__builds_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildSubmissionPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/benchmarks":{"post":{"tags":["workflows","Benchmarks"],"summary":"Submit Benchmark","operationId":"submit_benchmark_api_projects__project_id__benchmarks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"require_available","in":"query","required":false,"schema":{"type":"boolean","description":"Refuse the submission if any selected Board has no unit online, instead of queuing the run until hardware returns. Queuing is the default: hardware comes and goes, and a queued run can be cancelled.","default":false,"title":"Require Available"},"description":"Refuse the submission if any selected Board has no unit online, instead of queuing the run until hardware returns. Queuing is the default: hardware comes and goes, and a queued run can be cancelled."},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_benchmark_api_projects__project_id__benchmarks_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BenchmarkSubmission"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workflows","Benchmarks"],"summary":"List Benchmarks","operationId":"list_benchmarks_api_projects__project_id__benchmarks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BenchmarkSubmissionPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/builds/{submission_id}":{"get":{"tags":["workflows","Builds"],"summary":"Get Build","operationId":"get_build_api_projects__project_id__builds__submission_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildSubmission"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workflows","Builds"],"summary":"Delete Build","operationId":"delete_build_api_projects__project_id__builds__submission_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/benchmarks/{submission_id}":{"get":{"tags":["workflows","Benchmarks"],"summary":"Get Benchmark","operationId":"get_benchmark_api_projects__project_id__benchmarks__submission_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BenchmarkSubmission"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workflows","Benchmarks"],"summary":"Delete Benchmark","operationId":"delete_benchmark_api_projects__project_id__benchmarks__submission_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/builds/{submission_id}/cancel":{"post":{"tags":["workflows","Builds"],"summary":"Cancel Build","operationId":"cancel_build_api_projects__project_id__builds__submission_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildSubmission"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/benchmarks/{submission_id}/cancel":{"post":{"tags":["workflows","Benchmarks"],"summary":"Cancel Benchmark","operationId":"cancel_benchmark_api_projects__project_id__benchmarks__submission_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BenchmarkSubmission"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/builds/{submission_id}/outputs/{build_id}/download":{"get":{"tags":["workflows","Builds"],"summary":"Download Build","operationId":"download_build_api_projects__project_id__builds__submission_id__outputs__build_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Submission Id"}},{"name":"build_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Build Id"}}],"responses":{"200":{"description":"Successful Response","headers":{"Content-Disposition":{"description":"Stable customer Build package filename.","schema":{"type":"string"},"example":"attachment; filename=\"deepgate-build.zip\""}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training-architectures":{"get":{"tags":["training","Training"],"summary":"List Training Architectures","operationId":"list_training_architectures_api_training_architectures_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_retired","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Retired"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingArchitectureList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets":{"post":{"tags":["training","Datasets"],"summary":"Create Dataset","operationId":"create_dataset_api_datasets_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDatasetRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetWithUpload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["training","Datasets"],"summary":"List Datasets","operationId":"list_datasets_api_datasets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}],"title":"Name"}},{"name":"archive_crc32c","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":16},{"type":"null"}],"title":"Archive Crc32C"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DatasetStatus"},{"type":"null"}],"title":"Status"}},{"name":"task","in":"query","required":false,"schema":{"anyOf":[{"enum":["audio_classification","image_classification"],"type":"string"},{"type":"null"}],"description":"Only datasets made for this task.","title":"Task"},"description":"Only datasets made for this task."},{"name":"sort","in":"query","required":false,"schema":{"enum":["recent","oldest","name"],"type":"string","default":"recent","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/{dataset_id}/upload-url":{"post":{"tags":["training","Datasets"],"summary":"Reissue Dataset Upload Url","operationId":"reissue_dataset_upload_url_api_datasets__dataset_id__upload_url_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetWithUpload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/{dataset_id}/ingest":{"post":{"tags":["training","Datasets"],"summary":"Ingest Dataset","operationId":"ingest_dataset_api_datasets__dataset_id__ingest_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/{dataset_id}":{"get":{"tags":["training","Datasets"],"summary":"Get Dataset","operationId":"get_dataset_api_datasets__dataset_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["training","Datasets"],"summary":"Delete Dataset","operationId":"delete_dataset_api_datasets__dataset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/{dataset_id}/download":{"get":{"tags":["training","Datasets"],"summary":"Download Dataset","operationId":"download_dataset_api_datasets__dataset_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetDownload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/{dataset_id}/labelling":{"get":{"tags":["training","Datasets"],"summary":"Get Dataset Labelling","operationId":"get_dataset_labelling_api_datasets__dataset_id__labelling_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetLabelling"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/{dataset_id}/labelling/classes":{"put":{"tags":["training","Datasets"],"summary":"Set Dataset Label Classes","description":"Replaces the classes. A class sent without a key keeps its own, or takes the\nnext free one after the class before it; removing a class with images is refused.","operationId":"set_dataset_label_classes_api_datasets__dataset_id__labelling_classes_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetLabelClassesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetLabelling"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/{dataset_id}/labelling/items":{"get":{"tags":["training","Datasets"],"summary":"List Dataset Label Items","description":"The images in ordinal order, with their labels.","operationId":"list_dataset_label_items_api_datasets__dataset_id__labelling_items_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}},{"name":"after","in":"query","required":false,"schema":{"type":"integer","minimum":-1,"description":"The last ordinal already read.","default":-1,"title":"After"},"description":"The last ordinal already read."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50000,"minimum":1,"default":50000,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelItemPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/{dataset_id}/labelling/labels":{"post":{"tags":["training","Datasets"],"summary":"Label Dataset Images","description":"Sets images' whole states; an image already in the state sent is unchanged,\nso a retried batch changes nothing.","operationId":"label_dataset_images_api_datasets__dataset_id__labelling_labels_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelChangesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelChangesResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/{dataset_id}/archive-read-url":{"get":{"tags":["training","Datasets"],"summary":"Dataset Archive Read Url","description":"A one-hour read URL for a console-labelled dataset's archive, pinned to the\nbytes ingest listed, for the labeller to read images from in ranges.","operationId":"dataset_archive_read_url_api_datasets__dataset_id__archive_read_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetDownload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/{dataset_id}/labelling/finish":{"post":{"tags":["training","Datasets"],"summary":"Finish Dataset Labelling","description":"Writes the manifest of the labelled images over the zip as uploaded, and the\ndataset becomes ready, under the name sent if any. Unlabelled and skipped images\nare left out. A ready dataset is returned as it is, unless a different name is\nsent: it is not renamed after Finish.","operationId":"finish_dataset_labelling_api_datasets__dataset_id__labelling_finish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FinishLabellingRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training-jobs":{"post":{"tags":["training","Training"],"summary":"Submit Training Job","operationId":"submit_training_job_api_training_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitTrainingJobRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["training","Training"],"summary":"List Training Jobs","operationId":"list_training_jobs_api_training_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"dataset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TrainingJobStatus"},{"type":"null"}],"title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["recent","oldest","name"],"type":"string","default":"recent","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJobPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training-jobs/{job_id}":{"get":{"tags":["training","Training"],"summary":"Get Training Job","operationId":"get_training_job_api_training_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["training","Training"],"summary":"Delete Training Job","description":"Delete a finished training job with its trained model and results.\n\nRefused while the job is queued or running: cancel it first. Builds and\nbenchmarks already made from its model keep their own copy of it.","operationId":"delete_training_job_api_training_jobs__job_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training-jobs/{job_id}/cancel":{"post":{"tags":["training","Training"],"summary":"Cancel Training Job","operationId":"cancel_training_job_api_training_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training-jobs/{job_id}/artifact":{"get":{"tags":["training","Training"],"summary":"Download Training Artifact","operationId":"download_training_artifact_api_training_jobs__job_id__artifact_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training-jobs/{job_id}/spec":{"get":{"tags":["training","Training"],"summary":"Download Training Spec","description":"The job's filled model specification (model_spec.json): labels in output\norder, int8 quantization, preprocessing, sensor requirements, provenance.\nWritten by the trainer beside the model; served straight from storage.","operationId":"download_training_spec_api_training_jobs__job_id__spec_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/me":{"get":{"tags":["users"],"summary":"Whoami","description":"Return the current identity, org context, and auth context (whoami).\n\nAccessible to both user sessions and read-scoped API tokens; backs the CLI\n``bw whoami`` and the frontend profile page.","operationId":"whoami_api_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhoamiResponse"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["users"],"summary":"Delete User","description":"Delete the authenticated user's account and all owned resources.","operationId":"delete_user_api_users_me_delete","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/api/users/me/tokens":{"get":{"tags":["tokens"],"summary":"List Tokens","description":"List the caller's API tokens (secrets are never returned).","operationId":"list_tokens_api_users_me_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiTokenListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["tokens"],"summary":"Create Token","description":"Mint a new API token. The full token is shown once and never again.\n\nThe token captures the session's org context (personal if the session has\nno org), so it acts in the same workspace it was created in.","operationId":"create_token_api_users_me_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiTokenRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/me/tokens/{token_id}":{"delete":{"tags":["tokens"],"summary":"Revoke Token","description":"Revoke a token (idempotent). 404 if it is not the caller's token.","operationId":"revoke_token_api_users_me_tokens__token_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Token Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/org/membership":{"get":{"tags":["organization"],"summary":"Get Current Membership","description":"Confirm the current session's membership against live Auth0 state.\n\nThe invitation completion page polls this endpoint before claiming that\nacceptance succeeded. Auth0's member list is eventually consistent, so a\ntemporary 404 is retryable by that page.","operationId":"get_current_membership_api_org_membership_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgMembershipResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/org/members":{"get":{"tags":["organization"],"summary":"List Members","description":"List active org members live from Auth0 (the source of truth).\n\nNames/emails are read live from Auth0. Auth0\ndoes not expose a membership date, so ``added_at`` is null.","operationId":"list_members_api_org_members_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgMemberListResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/org/members/{user_id}":{"patch":{"tags":["organization"],"summary":"Update Member Role","description":"Change a member's role — an Auth0 role grant/revoke, nothing else.\n\nTakes server-side effect within one access-token lifetime (the post-login\nAction re-evaluates the role claim on every refresh exchange).","operationId":"update_member_role_api_org_members__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrgMemberRoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgMemberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organization"],"summary":"Remove Member","description":"Decrease Paddle first, then remove the named Auth0 member.","operationId":"remove_member_api_org_members__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/org/invitations":{"get":{"tags":["organization"],"summary":"List Invitations","description":"List pending Auth0 invitations for the org.","operationId":"list_invitations_api_org_invitations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgInvitationListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["organization"],"summary":"Create Invitation","description":"Create a member-only Auth0 organization invitation.\n\nExisting members are promoted through PATCH /members/{user_id}; they must\nnever receive a second invitation whose role intent can race membership.","operationId":"create_invitation_api_org_invitations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrgInvitationRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgInvitationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/org/invitations/{invitation_id}":{"delete":{"tags":["organization"],"summary":"Revoke Invitation","description":"Decrease Paddle first, then revoke the named Auth0 invitation.","operationId":"revoke_invitation_api_org_invitations__invitation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/org/membership-operations":{"get":{"tags":["organization"],"summary":"List Membership Operations","description":"Incomplete membership changes that need retry or operator attention.","operationId":"list_membership_operations_api_org_membership_operations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipBillingOperationListResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/org/membership-operations/{operation_id}/retry":{"post":{"tags":["organization"],"summary":"Retry Membership Operation","description":"Retry an incomplete operation from provider readback state.","operationId":"retry_membership_operation_api_org_membership_operations__operation_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Operation Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/org-signup-requests":{"post":{"tags":["org-signup"],"summary":"Create Org Signup Request","description":"Accept an organisation \"request access\" submission (no account created).\n\nThe honeypot (``website``) is silently accepted and dropped: a filled value\nmeans a bot, so we return the same 200 as a real request but persist\nnothing and skip the Slack notification.","operationId":"create_org_signup_request_api_org_signup_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrgSignupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgSignupRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/supported-targets":{"get":{"tags":["Public catalogue"],"summary":"List Supported Targets","description":"List the target configurations, microcontrollers, and boards we support.","operationId":"list_supported_targets_api_public_supported_targets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCatalog"}}}}}}},"/api/client-errors":{"post":{"tags":["client-errors"],"summary":"Report Client Error","description":"Record a frontend unhandled error in the structured logs.","operationId":"report_client_error_api_client_errors_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientErrorReport"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/org/billing":{"get":{"tags":["billing"],"summary":"Get Org Balance","description":"Live Paddle billing state plus live Auth0 billable people.","operationId":"get_org_balance_api_org_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgBalanceResponse"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["billing"],"summary":"Update Org Billing","description":"Update the org's billing contact email (org-admin).\n\nPaddle owns this value. The route writes the live Paddle customer and does\nnot retain a local contact mirror. Payment methods, address, tax id and\ninvoices remain managed in Paddle's checkout/portal.","operationId":"update_org_billing_api_org_billing_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrgBillingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgBillingSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/org/billing/setup":{"post":{"tags":["billing"],"summary":"Setup Org Billing","description":"Self-serve org billing setup (org-admin): the seat subscription checkout.\n\nCard/automatic only — manual invoicing stays on the ops-only internal\nprovisioning endpoint. Returns the seat transaction for overlay checkout;\nthe checkout creates/attaches the Paddle customer (Paddle owns customer\nrecords) and the subscription id lands via the subscription.created\nwebhook, flipping billing_configured on GET /org/billing (the frontend\npolls for it). Retrying an abandoned checkout reuses the same transaction\n(seat-provision idempotency key); a second setup after checkout completed\nis refused (ALREADY_PROVISIONED).","operationId":"setup_org_billing_api_org_billing_setup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgBillingSetupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgBillingSetupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/org/billing/transactions":{"get":{"tags":["billing"],"summary":"List Org Transactions","description":"One page of org payments (org-admin only), live from Paddle.\n\nPaddle is the single source of truth for payments users see — amounts,\nstatuses and dates are read from the Paddle API, keyed by the org's linked\ncustomer and subscription ids (never by email). ``billing_transactions``\nstays an internal trust anchor for the webhook, not a user-facing ledger.\nNo safely scoped subscription yet returns an empty page. If Paddle cannot\nbe reached, the request fails with a provider-specific unavailable error.","operationId":"list_org_transactions_api_org_billing_transactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/org/billing/portal-session":{"post":{"tags":["billing"],"summary":"Create Org Portal Session","description":"Mint a fresh Paddle customer-portal URL for the org (org-admin only).","operationId":"create_org_portal_session_api_org_billing_portal_session_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalSessionResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/health":{"get":{"summary":"Health Check","description":"Health check that verifies database connectivity.\n\nReports the live migration-ledger head so deploys and the scheduled\ndrift check can compare the running database against the schema the\ndeployed code expects. The head is a digest over the applied\nmigration files — public information, recomputable from the repo.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"ApiTokenListResponse":{"properties":{"tokens":{"items":{"$ref":"#/components/schemas/ApiTokenResponse"},"type":"array","title":"Tokens"}},"type":"object","required":["tokens"],"title":"ApiTokenListResponse","description":"List of a user's API tokens."},"ApiTokenResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","prefix","scopes","created_at"],"title":"ApiTokenResponse","description":"API token metadata (never includes the secret)."},"AuthContext":{"properties":{"kind":{"type":"string","title":"Kind"},"token_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["kind","scopes"],"title":"AuthContext","description":"How the current request authenticated (surfaced by whoami)."},"BenchmarkLayerTiming":{"properties":{"name":{"type":"string","title":"Name"},"mean_us":{"type":"number","minimum":0.0,"title":"Mean Us"},"calls":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Calls"},"min_us":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Min Us"},"max_us":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Max Us"},"min_cycles":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Min Cycles"},"mean_cycles":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Mean Cycles"},"max_cycles":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Cycles"}},"additionalProperties":true,"type":"object","required":["name","mean_us"],"title":"BenchmarkLayerTiming","description":"Typed core timing fields plus forward-compatible firmware detail."},"BenchmarkMetricDetails":{"properties":{"layers":{"anyOf":[{"items":{"$ref":"#/components/schemas/BenchmarkLayerTiming"},"type":"array"},{"type":"null"}],"title":"Layers"},"unhooked_overhead_us":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Unhooked Overhead Us"},"local_simulation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Local Simulation"}},"additionalProperties":true,"type":"object","title":"BenchmarkMetricDetails","description":"Known measurements plus forward-compatible runner detail fields."},"BenchmarkMetrics":{"properties":{"latency_us":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Latency Us"},"linked_firmware_ram_bytes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Linked Firmware Ram Bytes"},"linked_firmware_flash_bytes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Linked Firmware Flash Bytes"},"clock_hz":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Clock Hz"},"details":{"anyOf":[{"$ref":"#/components/schemas/BenchmarkMetricDetails"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"BenchmarkMetrics"},"BenchmarkRun":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"position":{"type":"integer","minimum":0.0,"title":"Position"},"status":{"$ref":"#/components/schemas/BenchmarkRunStatus"},"board":{"$ref":"#/components/schemas/BoardSummary"},"target_configuration":{"$ref":"#/components/schemas/TargetConfigurationSummary"},"compiler":{"$ref":"#/components/schemas/CompilerProvenance"},"metrics":{"anyOf":[{"$ref":"#/components/schemas/BenchmarkMetrics"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/WorkflowError"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"additionalProperties":false,"type":"object","required":["id","position","status","board","target_configuration","compiler","metrics","error","created_at","started_at","completed_at"],"title":"BenchmarkRun"},"BenchmarkRunStatus":{"type":"string","enum":["queued","generating","compiling","running","complete","failed","cancelled"],"title":"BenchmarkRunStatus"},"BenchmarkSubmission":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"model":{"$ref":"#/components/schemas/ModelSummary"},"status":{"$ref":"#/components/schemas/SubmissionStatus"},"requested_by_label":{"type":"string","title":"Requested By Label"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"runs":{"items":{"$ref":"#/components/schemas/BenchmarkRun"},"type":"array","title":"Runs"}},"additionalProperties":false,"type":"object","required":["id","project_id","model","status","requested_by_label","created_at","cancelled_at","runs"],"title":"BenchmarkSubmission"},"BenchmarkSubmissionPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BenchmarkSubmission"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["items","next_cursor"],"title":"BenchmarkSubmissionPage"},"Board":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"label":{"type":"string","title":"Label"},"manufacturer":{"type":"string","title":"Manufacturer"},"microcontroller":{"$ref":"#/components/schemas/MicrocontrollerSummary"},"available":{"type":"boolean","title":"Available"},"available_units":{"type":"integer","minimum":0.0,"title":"Available Units"},"retired":{"type":"boolean","title":"Retired"},"float_abi":{"$ref":"#/components/schemas/FloatAbi"},"description":{"type":"string","title":"Description"},"specifications":{"additionalProperties":true,"type":"object","title":"Specifications"},"benchmarkable":{"type":"boolean","title":"Benchmarkable"}},"additionalProperties":false,"type":"object","required":["id","key","label","manufacturer","microcontroller","available","available_units","retired","float_abi","description","specifications","benchmarkable"],"title":"Board"},"BoardBuildTarget":{"properties":{"board_id":{"type":"string","format":"uuid","title":"Board Id"}},"additionalProperties":false,"type":"object","required":["board_id"],"title":"BoardBuildTarget"},"BoardList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Board"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"BoardList"},"BoardSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"label":{"type":"string","title":"Label"},"manufacturer":{"type":"string","title":"Manufacturer"},"microcontroller":{"$ref":"#/components/schemas/MicrocontrollerSummary"},"available":{"type":"boolean","title":"Available"},"available_units":{"type":"integer","minimum":0.0,"title":"Available Units"},"retired":{"type":"boolean","title":"Retired"}},"additionalProperties":false,"type":"object","required":["id","key","label","manufacturer","microcontroller","available","available_units","retired"],"title":"BoardSummary"},"Body_submit_benchmark_api_projects__project_id__benchmarks_post":{"properties":{"metadata":{"type":"string","title":"Metadata"},"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"}},"type":"object","required":["metadata"],"title":"Body_submit_benchmark_api_projects__project_id__benchmarks_post"},"Body_submit_build_api_projects__project_id__builds_post":{"properties":{"metadata":{"type":"string","title":"Metadata","description":"JSON: model_id, model:{name}, or training_model:{training_job_id,name}; optional target:{board_id}, target:{microcontroller_id}, or target:{target_configuration}. Optional float_abi: hard, softfp, or soft overrides the selected board/MCU or Project default for this Build only; incompatible with a custom target."},"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"}},"type":"object","required":["metadata"],"title":"Body_submit_build_api_projects__project_id__builds_post"},"BuildOutput":{"properties":{"float_abi":{"$ref":"#/components/schemas/FloatAbi"},"id":{"type":"string","format":"uuid","title":"Id"},"position":{"type":"integer","minimum":0.0,"title":"Position"},"status":{"$ref":"#/components/schemas/BuildStatus"},"target":{"oneOf":[{"$ref":"#/components/schemas/ResolvedCustomTarget"},{"$ref":"#/components/schemas/ResolvedMicrocontrollerTarget"},{"$ref":"#/components/schemas/ResolvedBoardTarget"}],"title":"Target","discriminator":{"propertyName":"kind","mapping":{"board":"#/components/schemas/ResolvedBoardTarget","custom":"#/components/schemas/ResolvedCustomTarget","microcontroller":"#/components/schemas/ResolvedMicrocontrollerTarget"}}},"compiler":{"$ref":"#/components/schemas/CompilerProvenance"},"library_size_bytes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Library Size Bytes"},"download_available":{"type":"boolean","title":"Download Available"},"error":{"anyOf":[{"$ref":"#/components/schemas/WorkflowError"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"additionalProperties":false,"type":"object","required":["float_abi","id","position","status","target","compiler","download_available","error","created_at","started_at","completed_at"],"title":"BuildOutput"},"BuildStatus":{"type":"string","enum":["queued","generating","compiling","complete","failed","cancelled"],"title":"BuildStatus"},"BuildSubmission":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"model":{"$ref":"#/components/schemas/ModelSummary"},"status":{"$ref":"#/components/schemas/SubmissionStatus"},"requested_by_label":{"type":"string","title":"Requested By Label"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"outputs":{"items":{"$ref":"#/components/schemas/BuildOutput"},"type":"array","title":"Outputs"}},"additionalProperties":false,"type":"object","required":["id","project_id","model","status","requested_by_label","created_at","cancelled_at","outputs"],"title":"BuildSubmission"},"BuildSubmissionPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BuildSubmission"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["items","next_cursor"],"title":"BuildSubmissionPage"},"ClientErrorReport":{"properties":{"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"},"stack":{"type":"string","maxLength":8000,"title":"Stack","default":""},"url":{"type":"string","maxLength":2000,"title":"Url","default":""},"user_agent":{"type":"string","maxLength":512,"title":"User Agent","default":""}},"type":"object","required":["message"],"title":"ClientErrorReport","description":"A frontend unhandled error, reported for Cloud Logging visibility.\n\nField caps bound the log-line size; the frontend truncates before\nsending (apps/frontend/src/services/errorReporting.ts)."},"CompilerCore":{"type":"string","enum":["cortex-m0plus","cortex-m4","cortex-m7","cortex-m33","esp32s3"],"title":"CompilerCore"},"CompilerFpu":{"type":"string","enum":["fpv4-sp-d16","fpv5-sp-d16","fpv5-d16"],"title":"CompilerFpu"},"CompilerProvenance":{"properties":{"version":{"type":"string","title":"Version"}},"additionalProperties":false,"type":"object","required":["version"],"title":"CompilerProvenance"},"CreateApiTokenRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Scopes"},"expires_in_days":{"type":"integer","enum":[30,90,365],"title":"Expires In Days","default":90}},"type":"object","required":["name"],"title":"CreateApiTokenRequest","description":"Request to mint a new API token."},"CreateApiTokenResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"token":{"type":"string","title":"Token"}},"type":"object","required":["id","name","prefix","scopes","created_at","token"],"title":"CreateApiTokenResponse","description":"Mint response: includes the full token exactly once."},"CreateDatasetRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"task":{"type":"string","enum":["audio_classification","image_classification"],"title":"Task"},"label_source":{"type":"string","enum":["folders","console"],"title":"Label Source","description":"folders: ingest reads each sample's label from its folder and the dataset is ready. console: an image dataset labelled per image in the console; ingest lists the images, the dataset waits in 'labelling' until Finish.","default":"folders"},"architecture":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Architecture","description":"Deprecated: ignored for console labelling, which is started by task, and accepted there so older clients are not refused; refused for other datasets."},"start_labels":{"type":"string","enum":["none","folders"],"title":"Start Labels","description":"Console labelling only: 'folders' starts each image with the label its folder gives, read as ingest reads a folder-per-label archive, to check and correct.","default":"none"}},"additionalProperties":false,"type":"object","required":["name","task"],"title":"CreateDatasetRequest"},"CreateOrgInvitationRequest":{"properties":{"email":{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Email"},"role":{"type":"string","const":"member","title":"Role","default":"member"}},"type":"object","required":["email"],"title":"CreateOrgInvitationRequest","description":"Request to invite a regular member to the org.\n\nAdministrative access is deliberately a separate post-join role change so\ninvitation acceptance and privilege escalation cannot race each other."},"CreateOrgSignupRequest":{"properties":{"organization_name":{"type":"string","maxLength":200,"minLength":1,"title":"Organization Name"},"contact_name":{"type":"string","maxLength":200,"minLength":1,"title":"Contact Name"},"work_email":{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Work Email"},"team_size":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Team Size"},"use_case":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Use Case"},"website":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Website"}},"type":"object","required":["organization_name","contact_name","work_email"],"title":"CreateOrgSignupRequest","description":"Anonymous organisation \"request access\" submission (D18).\n\nPosted by prospects with no account yet, so it carries no principal. Every\nfield is length-capped at the API boundary and the address shape is\nvalidated with the same pragmatic pattern used for org invitations (no\nemail-validator dependency, malformed input -> 422 not an opaque error)."},"CreateProjectRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"shared":{"type":"boolean","title":"Shared","default":false},"build_targets":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/CustomBuildTarget"},{"$ref":"#/components/schemas/MicrocontrollerBuildTarget"},{"$ref":"#/components/schemas/BoardBuildTarget"}]},"type":"array","maxItems":1,"minItems":1},{"type":"null"}],"title":"Build Targets"},"benchmark_board_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":32,"minItems":1},{"type":"null"}],"title":"Benchmark Board Ids"}},"additionalProperties":false,"type":"object","required":["name"],"title":"CreateProjectRequest"},"CustomBuildTarget":{"properties":{"target_configuration":{"$ref":"#/components/schemas/TargetConfigurationInput"}},"additionalProperties":false,"type":"object","required":["target_configuration"],"title":"CustomBuildTarget"},"Dataset":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/DatasetStatus"},"task":{"type":"string","title":"Task"},"label_source":{"type":"string","enum":["folders","console"],"title":"Label Source"},"labelling":{"anyOf":[{"$ref":"#/components/schemas/DatasetLabellingSummary"},{"type":"null"}],"description":"A console-labelled dataset's progress; null when labels come from folders."},"archive_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archive Size Bytes"},"archive_crc32c":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archive Crc32C","description":"GCS-attested crc32c of the ingested archive (base64, big-endian Castagnoli), set once ingest completes. Together with archive_size_bytes it identifies the archive content, letting clients skip re-uploading bytes the workspace already holds."},"sample_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Count"},"label_counts":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Label Counts"},"error":{"anyOf":[{"$ref":"#/components/schemas/TrainingError"},{"type":"null"}]},"is_owner":{"type":"boolean","title":"Is Owner"},"created_by_label":{"type":"string","title":"Created By Label"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ready At"}},"additionalProperties":false,"type":"object","required":["id","name","status","task","label_source","labelling","archive_size_bytes","archive_crc32c","sample_count","label_counts","error","is_owner","created_by_label","org_id","created_at","ready_at"],"title":"Dataset"},"DatasetDownload":{"properties":{"url":{"type":"string","title":"Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"additionalProperties":false,"type":"object","required":["url","expires_at"],"title":"DatasetDownload","description":"Short-lived browser download of the ingested ZIP, pinned to its generation."},"DatasetLabelling":{"properties":{"dataset":{"$ref":"#/components/schemas/Dataset"},"start_from_folders":{"type":"boolean","title":"Start From Folders","description":"The images started with their folder labels, to check (start_labels 'folders'): a re-upload must send the same folder-per-label archive."},"classes":{"items":{"$ref":"#/components/schemas/LabelClass"},"type":"array","title":"Classes","description":"In the order they were added."},"ignored":{"type":"integer","title":"Ignored","description":"Files in the upload that are not images."},"progress":{"$ref":"#/components/schemas/LabellingProgress"}},"additionalProperties":false,"type":"object","required":["dataset","start_from_folders","classes","ignored","progress"],"title":"DatasetLabelling"},"DatasetLabellingSummary":{"properties":{"total":{"type":"integer","title":"Total"},"labelled":{"type":"integer","title":"Labelled"},"skipped":{"type":"integer","title":"Skipped"}},"additionalProperties":false,"type":"object","required":["total","labelled","skipped"],"title":"DatasetLabellingSummary"},"DatasetPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Dataset"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["items","next_cursor"],"title":"DatasetPage"},"DatasetStatus":{"type":"string","enum":["uploading","processing","labelling","ready","failed","deleting"],"title":"DatasetStatus"},"DatasetUpload":{"properties":{"url":{"type":"string","title":"Url"},"method":{"type":"string","const":"PUT","title":"Method"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"additionalProperties":false,"type":"object","required":["url","method","headers","expires_at"],"title":"DatasetUpload","description":"A short-lived signed PUT target for the dataset archive bytes."},"DatasetWithUpload":{"properties":{"dataset":{"$ref":"#/components/schemas/Dataset"},"upload":{"$ref":"#/components/schemas/DatasetUpload"}},"additionalProperties":false,"type":"object","required":["dataset","upload"],"title":"DatasetWithUpload"},"FinishLabellingRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name","description":"The dataset's name from now on; omitted keeps the name it was created with."}},"additionalProperties":false,"type":"object","title":"FinishLabellingRequest"},"FloatAbi":{"type":"string","enum":["soft","softfp","hard"],"title":"FloatAbi"},"Fp16Format":{"type":"string","enum":["ieee"],"title":"Fp16Format"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LabelChange":{"properties":{"ordinal":{"type":"integer","minimum":0.0,"title":"Ordinal"},"label":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Label"},"skipped":{"type":"boolean","title":"Skipped","default":false}},"additionalProperties":false,"type":"object","required":["ordinal"],"title":"LabelChange","description":"An image's whole new state, so sending it twice changes nothing."},"LabelChangesRequest":{"properties":{"changes":{"items":{"$ref":"#/components/schemas/LabelChange"},"type":"array","maxItems":500,"minItems":1,"title":"Changes"}},"additionalProperties":false,"type":"object","required":["changes"],"title":"LabelChangesRequest"},"LabelChangesResult":{"properties":{"progress":{"$ref":"#/components/schemas/LabellingProgress"}},"additionalProperties":false,"type":"object","required":["progress"],"title":"LabelChangesResult"},"LabelClass":{"properties":{"name":{"type":"string","title":"Name"},"key":{"type":"string","title":"Key","description":"The key that labels this class; it never moves."}},"additionalProperties":false,"type":"object","required":["name","key"],"title":"LabelClass"},"LabelClassInput":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name"},"key":{"anyOf":[{"type":"string","maxLength":3,"minLength":1},{"type":"null"}],"title":"Key","description":"Omit to keep the class's key, or to take the next free one."}},"additionalProperties":false,"type":"object","required":["name"],"title":"LabelClassInput"},"LabelItem":{"properties":{"ordinal":{"type":"integer","title":"Ordinal"},"path":{"type":"string","title":"Path","description":"The image's member name in the uploaded zip."},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"skipped":{"type":"boolean","title":"Skipped"},"seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seq","description":"Order of the last change; null if never changed."}},"additionalProperties":false,"type":"object","required":["ordinal","path","label","skipped","seq"],"title":"LabelItem"},"LabelItemPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LabelItem"},"type":"array","title":"Items"},"next_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next After","description":"Pass as `after` for the next page; null at the end."}},"additionalProperties":false,"type":"object","required":["items","next_after"],"title":"LabelItemPage"},"LabellingProgress":{"properties":{"total":{"type":"integer","title":"Total"},"labelled":{"type":"integer","title":"Labelled"},"skipped":{"type":"integer","title":"Skipped"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts","description":"Images per class, every class listed."},"validation":{"additionalProperties":{"type":"integer"},"type":"object","title":"Validation","description":"Images per class in the trainer's validation split, for information: Finish needs only one labelled image, and training checks the counts it needs."}},"additionalProperties":false,"type":"object","required":["total","labelled","skipped","counts","validation"],"title":"LabellingProgress"},"MembershipBillingOperationListResponse":{"properties":{"operations":{"items":{"$ref":"#/components/schemas/MembershipBillingOperationResponse"},"type":"array","title":"Operations"}},"type":"object","required":["operations"],"title":"MembershipBillingOperationListResponse"},"MembershipBillingOperationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status"},"subject_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject User Id"},"subject_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Email"},"invitation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invitation Id"},"paddle_target_quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paddle Target Quantity"},"paddle_attempts":{"type":"integer","title":"Paddle Attempts","default":0},"auth0_attempts":{"type":"integer","title":"Auth0 Attempts","default":0},"last_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error Code"},"next_retry_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Retry At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","kind","status","created_at","updated_at"],"title":"MembershipBillingOperationResponse","description":"One incomplete person-bound Paddle -> Auth0 membership saga."},"Microcontroller":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"part_number":{"type":"string","title":"Part Number"},"label":{"type":"string","title":"Label"},"manufacturer":{"type":"string","title":"Manufacturer"},"retired":{"type":"boolean","title":"Retired"},"float_abi":{"$ref":"#/components/schemas/FloatAbi"},"target_configuration":{"$ref":"#/components/schemas/TargetConfigurationSummary"},"specifications":{"additionalProperties":true,"type":"object","title":"Specifications"}},"additionalProperties":false,"type":"object","required":["id","part_number","label","manufacturer","retired","float_abi","target_configuration","specifications"],"title":"Microcontroller"},"MicrocontrollerBuildTarget":{"properties":{"microcontroller_id":{"type":"string","format":"uuid","title":"Microcontroller Id"}},"additionalProperties":false,"type":"object","required":["microcontroller_id"],"title":"MicrocontrollerBuildTarget"},"MicrocontrollerList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Microcontroller"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"MicrocontrollerList"},"MicrocontrollerSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"part_number":{"type":"string","title":"Part Number"},"label":{"type":"string","title":"Label"},"manufacturer":{"type":"string","title":"Manufacturer"},"retired":{"type":"boolean","title":"Retired"}},"additionalProperties":false,"type":"object","required":["id","part_number","label","manufacturer","retired"],"title":"MicrocontrollerSummary"},"ModelFormat":{"type":"string","enum":["json","tflite","onnx","other"],"title":"ModelFormat"},"ModelOrigin":{"type":"string","enum":["uploaded","fine_tuning"],"title":"ModelOrigin"},"ModelPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ModelSummary"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["items","next_cursor"],"title":"ModelPage"},"ModelSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"format":{"$ref":"#/components/schemas/ModelFormat"},"origin":{"$ref":"#/components/schemas/ModelOrigin"},"size_bytes":{"type":"integer","minimum":0.0,"title":"Size Bytes"},"created_by_label":{"type":"string","title":"Created By Label"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"additionalProperties":false,"type":"object","required":["id","name","format","origin","size_bytes","created_by_label","created_at"],"title":"ModelSummary"},"OrgBalanceResponse":{"properties":{"paddle_enabled":{"type":"boolean","title":"Paddle Enabled","default":false},"has_customer":{"type":"boolean","title":"Has Customer","default":false},"seat_count":{"type":"integer","title":"Seat Count","default":0},"billable_identity_count":{"type":"integer","title":"Billable Identity Count","default":0},"billed_seat_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billed Seat Count"},"recurring_total_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recurring Total Cents"},"recurring_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recurring Currency"},"membership_sync_status":{"type":"string","title":"Membership Sync Status","default":"not_configured"},"collection_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collection Mode"},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"billing_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Email"},"next_billed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Billed At"},"scheduled_change_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled Change Action"},"scheduled_change_effective_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Change Effective At"},"billing_configured":{"type":"boolean","title":"Billing Configured","default":false},"setup_pending":{"type":"boolean","title":"Setup Pending","default":false},"seat_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seat Price Cents"}},"type":"object","title":"OrgBalanceResponse","description":"Live organization seat and subscription state."},"OrgBillingSettingsResponse":{"properties":{"billing_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Email"}},"type":"object","title":"OrgBillingSettingsResponse","description":"The billing contact returned by Paddle after the update."},"OrgBillingSetupRequest":{"properties":{"billing_email":{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Billing Email"}},"type":"object","required":["billing_email"],"title":"OrgBillingSetupRequest","description":"Self-serve org billing setup (org-admin, card/automatic only).\n\nThe email is an explicit checkout intent only; Paddle Checkout remains the\nsource of truth for customer identity and billing details."},"OrgBillingSetupResponse":{"properties":{"transaction_id":{"type":"string","title":"Transaction Id"},"customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"},"client_token_env":{"type":"string","title":"Client Token Env"}},"type":"object","required":["transaction_id","client_token_env"],"title":"OrgBillingSetupResponse","description":"A created seat-subscription transaction to open in the overlay checkout.\n\n``billing_configured`` flips true (via the subscription.created webhook)\nonce the admin completes checkout — the frontend polls the balance for it."},"OrgInvitationListResponse":{"properties":{"invitations":{"items":{"$ref":"#/components/schemas/OrgInvitationResponse"},"type":"array","title":"Invitations"}},"type":"object","required":["invitations"],"title":"OrgInvitationListResponse","description":"List of pending org invitations."},"OrgInvitationResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"role":{"type":"string","title":"Role","default":"member"},"invited_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id"],"title":"OrgInvitationResponse","description":"A pending Auth0 organization invitation."},"OrgMemberListResponse":{"properties":{"members":{"items":{"$ref":"#/components/schemas/OrgMemberResponse"},"type":"array","title":"Members"}},"type":"object","required":["members"],"title":"OrgMemberListResponse","description":"List of active org members."},"OrgMemberResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"},"role":{"type":"string","title":"Role"},"added_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Added At"}},"type":"object","required":["user_id","role"],"title":"OrgMemberResponse","description":"An org member and profile read live from Auth0.\n\n``added_at`` is always null today (Auth0 does not expose a membership\ndate); kept for response-shape compatibility with the frontend table."},"OrgMembershipResponse":{"properties":{"org_id":{"type":"string","title":"Org Id"},"user_id":{"type":"string","title":"User Id"},"role":{"type":"string","title":"Role"}},"type":"object","required":["org_id","user_id","role"],"title":"OrgMembershipResponse","description":"Live Auth0 membership for the current organization session."},"OrgSignupRequestResponse":{"properties":{"status":{"type":"string","title":"Status","default":"received"}},"type":"object","title":"OrgSignupRequestResponse","description":"Opaque acknowledgement for an org signup request.\n\nIntentionally identical for a persisted request and a honeypot-dropped one\nso an abuser cannot distinguish the two outcomes."},"PaymentListResponse":{"properties":{"payments":{"items":{"$ref":"#/components/schemas/PaymentResponse"},"type":"array","title":"Payments"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["payments"],"title":"PaymentListResponse","description":"A page of Paddle payments for a billing page (cursor-paginated)."},"PaymentResponse":{"properties":{"transaction_id":{"type":"string","title":"Transaction Id"},"purpose":{"type":"string","title":"Purpose"},"status":{"type":"string","title":"Status"},"origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"billed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Billed At"}},"type":"object","required":["transaction_id","purpose","status"],"title":"PaymentResponse","description":"One payment as Paddle reports it (live from the Paddle API).\n\nPaddle is the single source of truth for money the user sees — amounts,\nstatus and dates are Paddle's, not a local mirror."},"PortalSessionResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"PortalSessionResponse","description":"A freshly minted Paddle customer-portal URL (never cached)."},"Project":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"shared":{"type":"boolean","title":"Shared"},"workspace_kind":{"type":"string","enum":["personal","organization"],"title":"Workspace Kind"},"created_by_label":{"type":"string","title":"Created By Label"},"is_owner":{"type":"boolean","title":"Is Owner"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"additionalProperties":false,"type":"object","required":["id","name","shared","workspace_kind","created_by_label","is_owner","created_at"],"title":"Project"},"ProjectBenchmarkBoard":{"properties":{"position":{"type":"integer","minimum":0.0,"title":"Position"},"board":{"$ref":"#/components/schemas/BoardSummary"}},"additionalProperties":false,"type":"object","required":["position","board"],"title":"ProjectBenchmarkBoard"},"ProjectBenchmarkBoards":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProjectBenchmarkBoard"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"ProjectBenchmarkBoards"},"ProjectBuildTarget":{"properties":{"position":{"type":"integer","minimum":0.0,"title":"Position"},"target":{"oneOf":[{"$ref":"#/components/schemas/ResolvedCustomTarget"},{"$ref":"#/components/schemas/ResolvedMicrocontrollerTarget"},{"$ref":"#/components/schemas/ResolvedBoardTarget"}],"title":"Target","discriminator":{"propertyName":"kind","mapping":{"board":"#/components/schemas/ResolvedBoardTarget","custom":"#/components/schemas/ResolvedCustomTarget","microcontroller":"#/components/schemas/ResolvedMicrocontrollerTarget"}}}},"additionalProperties":false,"type":"object","required":["position","target"],"title":"ProjectBuildTarget"},"ProjectBuildTargets":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProjectBuildTarget"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"ProjectBuildTargets"},"ProjectDeletionImpact":{"properties":{"models":{"type":"integer","minimum":0.0,"title":"Models"},"submissions":{"type":"integer","minimum":0.0,"title":"Submissions"}},"additionalProperties":false,"type":"object","required":["models","submissions"],"title":"ProjectDeletionImpact"},"ProjectDeletionResult":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"deleted":{"$ref":"#/components/schemas/ProjectDeletionImpact"}},"additionalProperties":false,"type":"object","required":["id","name","deleted"],"title":"ProjectDeletionResult","description":"What a Project deletion cascaded through, for caller confirmation UX."},"ProjectPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Project"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["items","next_cursor"],"title":"ProjectPage"},"PublicBoard":{"properties":{"float_abi":{"$ref":"#/components/schemas/FloatAbi"},"manufacturer":{"type":"string","title":"Manufacturer"},"model":{"type":"string","title":"Model"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"specifications":{"additionalProperties":true,"type":"object","title":"Specifications"},"microcontroller_manufacturer":{"type":"string","title":"Microcontroller Manufacturer"},"microcontroller_part_number":{"type":"string","title":"Microcontroller Part Number"},"benchmarkable":{"type":"boolean","title":"Benchmarkable"}},"additionalProperties":false,"type":"object","required":["float_abi","manufacturer","model","label","description","specifications","microcontroller_manufacturer","microcontroller_part_number","benchmarkable"],"title":"PublicBoard"},"PublicCatalog":{"properties":{"target_configurations":{"items":{"$ref":"#/components/schemas/PublicTargetConfiguration"},"type":"array","title":"Target Configurations"},"microcontrollers":{"items":{"$ref":"#/components/schemas/PublicMicrocontroller"},"type":"array","title":"Microcontrollers"},"boards":{"items":{"$ref":"#/components/schemas/PublicBoard"},"type":"array","title":"Boards"}},"additionalProperties":false,"type":"object","required":["target_configurations","microcontrollers","boards"],"title":"PublicCatalog"},"PublicMicrocontroller":{"properties":{"float_abi":{"$ref":"#/components/schemas/FloatAbi"},"manufacturer":{"type":"string","title":"Manufacturer"},"part_number":{"type":"string","title":"Part Number"},"label":{"type":"string","title":"Label"},"specifications":{"additionalProperties":true,"type":"object","title":"Specifications"},"target_configuration_key":{"type":"string","title":"Target Configuration Key"}},"additionalProperties":false,"type":"object","required":["float_abi","manufacturer","part_number","label","specifications","target_configuration_key"],"title":"PublicMicrocontroller"},"PublicTargetConfiguration":{"properties":{"float_abi":{"$ref":"#/components/schemas/FloatAbi"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"}},"additionalProperties":false,"type":"object","required":["float_abi","key","label","description"],"title":"PublicTargetConfiguration"},"ReplaceProjectBenchmarkBoardsRequest":{"properties":{"board_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":32,"minItems":1,"title":"Board Ids"}},"additionalProperties":false,"type":"object","required":["board_ids"],"title":"ReplaceProjectBenchmarkBoardsRequest"},"ReplaceProjectBuildTargetsRequest":{"properties":{"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/CustomBuildTarget"},{"$ref":"#/components/schemas/MicrocontrollerBuildTarget"},{"$ref":"#/components/schemas/BoardBuildTarget"}]},"type":"array","maxItems":1,"minItems":1,"title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"ReplaceProjectBuildTargetsRequest"},"ResolvedBoardTarget":{"properties":{"kind":{"type":"string","const":"board","title":"Kind"},"board":{"$ref":"#/components/schemas/BoardSummary"},"target_configuration":{"$ref":"#/components/schemas/TargetConfigurationSummary"}},"additionalProperties":false,"type":"object","required":["kind","board","target_configuration"],"title":"ResolvedBoardTarget"},"ResolvedCustomTarget":{"properties":{"kind":{"type":"string","const":"custom","title":"Kind"},"target_configuration":{"$ref":"#/components/schemas/TargetConfigurationInput"}},"additionalProperties":false,"type":"object","required":["kind","target_configuration"],"title":"ResolvedCustomTarget"},"ResolvedMicrocontrollerTarget":{"properties":{"kind":{"type":"string","const":"microcontroller","title":"Kind"},"microcontroller":{"$ref":"#/components/schemas/MicrocontrollerSummary"},"target_configuration":{"$ref":"#/components/schemas/TargetConfigurationSummary"}},"additionalProperties":false,"type":"object","required":["kind","microcontroller","target_configuration"],"title":"ResolvedMicrocontrollerTarget"},"SetLabelClassesRequest":{"properties":{"classes":{"items":{"$ref":"#/components/schemas/LabelClassInput"},"type":"array","maxItems":512,"title":"Classes"}},"additionalProperties":false,"type":"object","required":["classes"],"title":"SetLabelClassesRequest"},"SubmissionStatus":{"type":"string","enum":["queued","generating","compiling","running","complete","failed","cancelled","partial"],"title":"SubmissionStatus"},"SubmitTrainingJobRequest":{"properties":{"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"architecture":{"type":"string","maxLength":120,"minLength":1,"title":"Architecture"},"options":{"additionalProperties":{"type":"string","maxLength":128,"minLength":1},"propertyNames":{"maxLength":64,"minLength":1},"type":"object","maxProperties":16,"title":"Options","description":"Per-run training options by name, from the architecture's options; an omitted option takes its default."}},"additionalProperties":false,"type":"object","required":["dataset_id","architecture"],"title":"SubmitTrainingJobRequest"},"TargetCompiler":{"properties":{"core":{"$ref":"#/components/schemas/CompilerCore"},"thumb":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Thumb"},"fpu":{"anyOf":[{"$ref":"#/components/schemas/CompilerFpu"},{"type":"null"}]},"float_abi":{"$ref":"#/components/schemas/FloatAbi"},"fp16_format":{"anyOf":[{"$ref":"#/components/schemas/Fp16Format"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["core","fpu","float_abi","fp16_format"],"title":"TargetCompiler","description":"The machine half of a target: the fields are Arm's — Thumb, the VFP variants, the float\nABI — and another architecture holds the values in them that describe it. What each field may\nhold follows from the core, as do the relations between them. `thumb` may be omitted, since a\ncore accepts one setting."},"TargetConfigurationInput":{"properties":{"compiler":{"$ref":"#/components/schemas/TargetCompiler"},"transpiler":{"$ref":"#/components/schemas/TargetTranspiler"}},"additionalProperties":false,"type":"object","required":["compiler","transpiler"],"title":"TargetConfigurationInput"},"TargetConfigurationSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"retired":{"type":"boolean","title":"Retired"}},"additionalProperties":false,"type":"object","required":["id","key","label","retired"],"title":"TargetConfigurationSummary"},"TargetTranspiler":{"properties":{"features":{"items":{"$ref":"#/components/schemas/TranspilerFeature"},"type":"array","maxItems":2,"title":"Features"}},"additionalProperties":false,"type":"object","title":"TargetTranspiler"},"TrainingArchitecture":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"version":{"type":"string","title":"Version"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"task":{"type":"string","title":"Task"},"retired":{"type":"boolean","title":"Retired"},"spec":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Spec"},"card":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card"},"options":{"items":{"$ref":"#/components/schemas/TrainingOption"},"type":"array","title":"Options","description":"The per-run options a training job may set in its options; empty when the architecture takes none."}},"additionalProperties":false,"type":"object","required":["id","key","version","name","description","task","retired","spec","card","options"],"title":"TrainingArchitecture","description":"One trainable model (an \"architecture\" on the wire): the newest enabled\nversion of its key, with the model specification template and card the\nrepository of models publishes (apps/training/src/trainer/models/<key>/)."},"TrainingArchitectureList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TrainingArchitecture"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"TrainingArchitectureList"},"TrainingArtifact":{"properties":{"filename":{"type":"string","title":"Filename"},"size_bytes":{"type":"integer","title":"Size Bytes"}},"additionalProperties":false,"type":"object","required":["filename","size_bytes"],"title":"TrainingArtifact"},"TrainingError":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"}},"additionalProperties":false,"type":"object","required":["code","message"],"title":"TrainingError"},"TrainingJob":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"$ref":"#/components/schemas/TrainingJobStatus"},"stage":{"anyOf":[{"type":"string","enum":["queued","provisioning","training","cancelling"]},{"type":"null"}],"title":"Stage","description":"What a non-terminal job is waiting on, derived from the raw Vertex state; null once terminal. 'provisioning' covers both machine setup and waiting for GPU capacity — the platform cannot tell these apart, so a job at 'provisioning' for more than ~30 minutes usually means the region is short of capacity."},"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"dataset_name":{"type":"string","title":"Dataset Name"},"architecture":{"type":"string","title":"Architecture"},"architecture_name":{"type":"string","title":"Architecture Name"},"options":{"additionalProperties":{"type":"string"},"type":"object","title":"Options","description":"The options the job trains with: every option of its architecture, given or defaulted."},"cancel_requested":{"type":"boolean","title":"Cancel Requested"},"cancel_requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancel Requested At"},"metrics":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metrics"},"progress":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Progress","description":"The trainer's latest per-epoch report ({schema, epoch, total_epochs, elapsed_seconds, latest:{train_loss, val_loss, val_accuracy}}; schema 2 adds steps_per_epoch, counts:{train, val} and history:{epoch[], train_loss[], val_loss[], val_accuracy[]} for every epoch so far, rounded to 4 significant figures, null where not finite; a run that counts optimizer steps adds step[], and one that validates before training starts at epoch 0 with a null train_loss), mirrored while the job runs; only on get-by-id, null in list items. Kept after terminal states, so a failed run reports how far training got. Best-effort: may lag ~1 sync cycle or be null for jobs that never reported."},"artifact":{"anyOf":[{"$ref":"#/components/schemas/TrainingArtifact"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/TrainingError"},{"type":"null"}]},"is_owner":{"type":"boolean","title":"Is Owner"},"created_by_label":{"type":"string","title":"Created By Label"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"additionalProperties":false,"type":"object","required":["id","status","stage","dataset_id","dataset_name","architecture","architecture_name","options","cancel_requested","cancel_requested_at","metrics","progress","artifact","error","is_owner","created_by_label","org_id","created_at","started_at","completed_at"],"title":"TrainingJob"},"TrainingJobPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TrainingJob"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["items","next_cursor"],"title":"TrainingJobPage"},"TrainingJobStatus":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"],"title":"TrainingJobStatus"},"TrainingOption":{"properties":{"name":{"type":"string","title":"Name"},"default":{"type":"string","title":"Default"},"description":{"type":"string","title":"Description"},"choices":{"items":{"$ref":"#/components/schemas/TrainingOptionChoice"},"type":"array","title":"Choices"},"pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pattern"},"group":{"anyOf":[{"type":"string","enum":["training","augmentation"]},{"type":"null"}],"title":"Group"},"help":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help"},"control":{"anyOf":[{"type":"string","enum":["select","segmented","switch","slider"]},{"type":"null"}],"title":"Control"}},"additionalProperties":false,"type":"object","required":["name","default","description","choices","pattern"],"title":"TrainingOption","description":"One per-run option a training job may set. A value is one of ``choices``\nwhen there are any, otherwise a full match of ``pattern``. ``description``\nis its short label; ``group``, ``help`` and ``control`` only say how to\npresent it: the section it belongs in, a longer explanation, and the control\nto pick a choice with (a ``switch``'s two choices are off, then on)."},"TrainingOptionChoice":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"}},"additionalProperties":false,"type":"object","required":["value","label"],"title":"TrainingOptionChoice"},"TranspilerFeature":{"type":"string","enum":["arm-dsp","silabs-mvp","esp32s3"],"title":"TranspilerFeature"},"UnsupportedOperator":{"properties":{"name":{"type":"string","title":"Name"},"index":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Index"},"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["name"],"title":"UnsupportedOperator"},"UpdateOrgBillingRequest":{"properties":{"billing_email":{"type":"string","maxLength":320,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Billing Email"}},"type":"object","required":["billing_email"],"title":"UpdateOrgBillingRequest","description":"Update the org's billing contact email (org-admin)."},"UpdateOrgMemberRoleRequest":{"properties":{"role":{"type":"string","pattern":"^(admin|member)$","title":"Role"}},"type":"object","required":["role"],"title":"UpdateOrgMemberRoleRequest","description":"Request to change an org member's role."},"UpdateProjectRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"shared":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Shared"}},"additionalProperties":false,"type":"object","title":"UpdateProjectRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WhoamiResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"org_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Role"},"platform_access":{"type":"string","enum":["granted","billing_required"],"title":"Platform Access"},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"auth":{"$ref":"#/components/schemas/AuthContext"}},"type":"object","required":["user_id","platform_access","auth"],"title":"WhoamiResponse","description":"Identity, org context, and auth context for the current principal.\n\nBacks the CLI ``bw whoami`` and the frontend profile page. Accessible to\nboth user sessions and read-scoped API tokens."},"WorkflowError":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"phase":{"type":"string","title":"Phase"},"ops":{"items":{"$ref":"#/components/schemas/UnsupportedOperator"},"type":"array","title":"Ops"}},"additionalProperties":false,"type":"object","required":["code","message","phase"],"title":"WorkflowError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}