{"openapi":"3.1.0","info":{"title":"HUD Platform","version":"2.0.0"},"x-hud-contract-scope":"public","paths":{"/v2/registry":{"get":{"tags":["registry"],"summary":"List Registries","description":"List registries visible to the caller, with search, ownership, and sort filters.","operationId":"list_registries_v2_registry_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ILIKE-match on name","title":"Search"},"description":"ILIKE-match on name"},{"name":"public_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only public registries (Explore tab)","default":false,"title":"Public Only"},"description":"Only public registries (Explore tab)"},{"name":"owner_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only registries owned by the caller's membership; ignored when public_only=True","default":false,"title":"Owner Only"},"description":"Only registries owned by the caller's membership; ignored when public_only=True"},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["starred","date","name","stars"],"type":"string","description":"Sort order: starred (caller's starred first), date (updated_at DESC), name (A-Z), stars (star_count DESC)","default":"starred","title":"Sort By"},"description":"Sort order: starred (caller's starred first), date (updated_at DESC), name (A-Z), stars (star_count DESC)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_RegistryDetailResponse_"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/registry/{registry_id}":{"get":{"tags":["registry"],"summary":"Get Registry","description":"Get a registry by id with its latest build details.","operationId":"get_registry_v2_registry__registry_id__get","parameters":[{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Registry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryDetailResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/registry/{registry_id}/source-url":{"get":{"tags":["registry"],"summary":"Get Registry Source Url","description":"Get a presigned download URL for the registry's source archive.","operationId":"get_registry_source_url_v2_registry__registry_id__source_url_get","parameters":[{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Registry Id"}},{"name":"build_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Download a specific build's source archive. Defaults to the registry's latest build when omitted.","title":"Build Id"},"description":"Download a specific build's source archive. Defaults to the registry's latest build when omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrySourceUrlResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/registry/{registry_id}/scenarios":{"get":{"tags":["registry"],"summary":"List Registry Scenarios","description":"List scenarios for a registry build (latest build by default).","operationId":"list_registry_scenarios_v2_registry__registry_id__scenarios_get","parameters":[{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Registry Id"}},{"name":"build_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter scenarios to a specific build of this registry. Defaults to the registry's latest build when omitted.","title":"Build Id"},"description":"Filter scenarios to a specific build of this registry. Defaults to the registry's latest build when omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioResponse"},"title":"Response List Registry Scenarios V2 Registry  Registry Id  Scenarios Get"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/env-vars":{"get":{"tags":["env-vars"],"summary":"List Env Vars","description":"List a registry's runtime env vars with masked values.","operationId":"list_env_vars_v2_env_vars_get","parameters":[{"name":"registry_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Registry to list env vars for.","title":"Registry Id"},"description":"Registry to list env vars for."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryEnvVarsListResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["env-vars"],"summary":"Create Env Var","description":"Set a registry env var, creating it or updating an existing one by name.","operationId":"create_env_var_v2_env_vars_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryEnvVarCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryEnvVarItem"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/env-vars/{var_id}":{"patch":{"tags":["env-vars"],"summary":"Update Env Var","description":"Update a registry env var's value.","operationId":"update_env_var_v2_env_vars__var_id__patch","parameters":[{"name":"var_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Var Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryEnvVarUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryEnvVarItem"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["env-vars"],"summary":"Delete Env Var","description":"Delete a registry env var.","operationId":"delete_env_var_v2_env_vars__var_id__delete","parameters":[{"name":"var_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Var Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/env-vars/batch":{"put":{"tags":["env-vars"],"summary":"Batch Replace Env Vars","description":"Replace a registry's full env var set with the given variables.","operationId":"batch_replace_env_vars_v2_env_vars_batch_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryEnvVarBatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryEnvVarBatchResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/env-vars/check":{"post":{"tags":["env-vars"],"summary":"Check Env Var Completeness","description":"Check whether each registry has all env vars its manifest requires.","operationId":"check_env_var_completeness_v2_env_vars_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryEnvVarCheckRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryEnvVarCheckResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/member-secrets":{"get":{"tags":["member-secrets"],"summary":"List Member Secrets","description":"List the caller's personal secrets with masked values.","operationId":"list_member_secrets_v2_member_secrets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberSecretsListResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["member-secrets"],"summary":"Create Member Secret","description":"Set a personal secret, creating it or updating an existing one by name.","operationId":"create_member_secret_v2_member_secrets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberSecretCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberSecretItem"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/member-secrets/{secret_id}":{"patch":{"tags":["member-secrets"],"summary":"Update Member Secret","description":"Update a personal secret's value.","operationId":"update_member_secret_v2_member_secrets__secret_id__patch","parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Secret Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberSecretUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberSecretItem"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["member-secrets"],"summary":"Delete Member Secret","description":"Delete a personal secret.","operationId":"delete_member_secret_v2_member_secrets__secret_id__delete","parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Secret Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/byok-credentials":{"get":{"tags":["byok-credentials"],"summary":"List Byok Credentials","description":"List the caller's personal and team BYOK credentials with masked values.","operationId":"list_byok_credentials_v2_byok_credentials_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ByokCredentialsListResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["byok-credentials"],"summary":"Create Byok Credential","description":"Create or replace a provider credential for one ownership scope.","operationId":"create_byok_credential_v2_byok_credentials_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ByokCredentialCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ByokCredentialItem"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/byok-credentials/{credential_id}":{"patch":{"tags":["byok-credentials"],"summary":"Update Byok Credential","description":"Rotate a BYOK credential without exposing its plaintext value.","operationId":"update_byok_credential_v2_byok_credentials__credential_id__patch","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ByokCredentialUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ByokCredentialItem"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["byok-credentials"],"summary":"Delete Byok Credential","description":"Disable a BYOK credential and erase its encrypted value.","operationId":"delete_byok_credential_v2_byok_credentials__credential_id__delete","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasks/upload":{"post":{"tags":["tasks"],"summary":"Upload Tasks","description":"Bulk-upload tasks into a taskset, creating the taskset if needed.","operationId":"upload_tasks_v2_tasks_upload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUploadRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUploadResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasks/status":{"patch":{"tags":["tasks"],"summary":"Bulk Update Task Status","description":"Bulk semantic status mutation (ready / verified / revision / rejected, or clear); non-atomic.","operationId":"bulk_update_task_status_v2_tasks_status_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkStatusRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkStatusResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasks/stage":{"patch":{"tags":["tasks"],"summary":"Bulk Update Task Stage","description":"Bulk lifecycle-stage move (advance one stage / send back); non-atomic.","operationId":"bulk_update_task_stage_v2_tasks_stage_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkStageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkStatusResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasks/{task_id}/brief":{"get":{"tags":["tasks"],"summary":"Get Task Brief","description":"A draft task's brief, with presigned attachment download URLs.","operationId":"get_task_brief_v2_tasks__task_id__brief_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskBriefResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasks/{task_id}/brief/download":{"get":{"tags":["tasks"],"summary":"Download Task Brief","description":"A draft task's brief as a zip download (prompt + attachments).","operationId":"download_task_brief_v2_tasks__task_id__brief_download_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasks/{task_id}/ready-check":{"get":{"tags":["tasks"],"summary":"Get Task Ready Check","description":"Evaluate the taskset's ready requirements against the task's latest version.\n\nInformational: the Ready click is not blocked server-side.","operationId":"get_task_ready_check_v2_tasks__task_id__ready_check_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReadyRequirementsEvaluation"},{"$ref":"#/components/schemas/ReadyRequirementsNotConfigured"}],"title":"Response Get Task Ready Check V2 Tasks  Task Id  Ready Check Get"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasks/{task_id}/comments":{"get":{"tags":["tasks"],"summary":"Get Task Comments","description":"List comments on a task.","operationId":"get_task_comments_v2_tasks__task_id__comments_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCommentsListResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tasks"],"summary":"Create Task Comment","description":"Add a comment to a task and notify mentioned users.","operationId":"create_task_comment_v2_tasks__task_id__comments_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaskCommentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCommentItem"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasks/{task_id}/comments/{comment_id}":{"patch":{"tags":["tasks"],"summary":"Update Task Comment","description":"Edit one of the caller's task comments.","operationId":"update_task_comment_v2_tasks__task_id__comments__comment_id__patch","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaskCommentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCommentItem"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tasks"],"summary":"Delete Task Comment","description":"Delete a task comment.","operationId":"delete_task_comment_v2_tasks__task_id__comments__comment_id__delete","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasks/{task_id}/activity":{"get":{"tags":["tasks"],"summary":"Get Task Activity","description":"Get a task's combined activity feed of comments and state changes.","operationId":"get_task_activity_v2_tasks__task_id__activity_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskActivityResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/uploads":{"post":{"tags":["uploads"],"summary":"Upload File","description":"Stage a file for a taskset and return its storage locator.","operationId":"upload_file_v2_uploads_post","parameters":[{"name":"taskset_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Taskset the upload is attached to","title":"Taskset Id"},"description":"Taskset the upload is attached to"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_v2_uploads_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["uploads"],"summary":"Delete Upload","description":"Best-effort deletion of a staged upload.","operationId":"delete_upload_v2_uploads_delete","parameters":[{"name":"taskset_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Taskset the upload was staged for","title":"Taskset Id"},"description":"Taskset the upload was staged for"},{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"storage:// locator returned by POST /uploads","title":"Url"},"description":"storage:// locator returned by POST /uploads"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteUploadResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/data":{"post":{"tags":["data"],"summary":"Create Data File","description":"Reserve a data file and return a presigned PUT to upload its bytes.","operationId":"create_data_file_v2_data_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataFileCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataFileUploadResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["data"],"summary":"List Data Files","description":"List the data files the caller can read, optionally narrowed to one folder.","operationId":"list_data_files_v2_data_get","parameters":[{"name":"scope","in":"query","required":false,"schema":{"enum":["all","member","team"],"type":"string","default":"all","title":"Scope"}},{"name":"membership_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Membership Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataFileListResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/data/{file_id}/complete":{"post":{"tags":["data"],"summary":"Complete Data File","description":"Publish an uploaded data file, recording its stored size and type.","operationId":"complete_data_file_v2_data__file_id__complete_post","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataFileResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/data/groups":{"get":{"tags":["data"],"summary":"List Data File Groups","description":"Summarise the readable folders so a browser can load their files on demand.","operationId":"list_data_file_groups_v2_data_groups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataFileGroupListResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/data/{file_id}":{"get":{"tags":["data"],"summary":"Get Data File","description":"Fetch one data file's metadata.","operationId":"get_data_file_v2_data__file_id__get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataFileResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["data"],"summary":"Update Data File","description":"Rename a data file.","operationId":"update_data_file_v2_data__file_id__patch","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataFileUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataFileResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["data"],"summary":"Delete Data File","description":"Delete a data file and its stored object.","operationId":"delete_data_file_v2_data__file_id__delete","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/data/{file_id}/download":{"get":{"tags":["data"],"summary":"Download Data File","description":"Presign an inline and an attachment link for a ready data file.","operationId":"download_data_file_v2_data__file_id__download_get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataFileDownloadResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasksets":{"get":{"tags":["tasksets"],"summary":"List Tasksets","description":"List tasksets visible to the caller, with search, ownership, and sort filters.","operationId":"list_tasksets_v2_tasksets_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ILIKE-match on taskset name","title":"Search"},"description":"ILIKE-match on taskset name"},{"name":"public_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only public tasksets (Public tab)","default":false,"title":"Public Only"},"description":"Only public tasksets (Public tab)"},{"name":"owner_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only tasksets owned by the caller's membership; ignored when public_only=True","default":false,"title":"Owner Only"},"description":"Only tasksets owned by the caller's membership; ignored when public_only=True"},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["starred","date","name","stars","tasks"],"type":"string","description":"Sort order: starred (caller's starred first), date (updated_at DESC), name (A-Z), stars (star_count DESC), tasks (task_count DESC)","default":"starred","title":"Sort By"},"description":"Sort order: starred (caller's starred first), date (updated_at DESC), name (A-Z), stars (star_count DESC), tasks (task_count DESC)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TasksetResponse_"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasksets/by-name/{name}":{"get":{"tags":["tasksets"],"summary":"Get Taskset By Name","description":"Resolve a taskset by name and return its tasks in the task wire format.\n\nReturns the latest version per task — the read-side counterpart of\n`POST /tasks/upload`.\n\nScoped to the caller's team. Cross-team public tasksets are accessible\nby UUID (`GET /tasksets/{id}/export`) only — name uniqueness is per team,\nso resolving by name across teams would be ambiguous.","operationId":"get_taskset_by_name_v2_tasksets_by_name__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasksetExportResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasksets/{taskset_id}/export":{"get":{"tags":["tasksets"],"summary":"Export Taskset","description":"Fetch a taskset by UUID in the task wire format.\n\nSame shape as the by-name lookup, and the only fetch path for cross-team\npublic tasksets.","operationId":"export_taskset_v2_tasksets__taskset_id__export_get","parameters":[{"name":"taskset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Taskset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasksetExportResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/tasksets/{taskset_id}":{"get":{"tags":["tasksets"],"summary":"Get Taskset","description":"Get a taskset by id.","operationId":"get_taskset_v2_tasksets__taskset_id__get","parameters":[{"name":"taskset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Taskset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasksetResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/models":{"get":{"tags":["models"],"summary":"List Models","description":"List catalog models visible to the caller's team.","operationId":"list_models_v2_models_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ModelResponse_"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/models/resolve":{"get":{"tags":["models"],"summary":"Resolve Model","description":"Resolve a model string (slug or id) to its catalog record.\n\nGeneral slug→id lookup: any client holding a model string (e.g. a trainable\nmodel's gateway slug) can map it to the id and metadata. Declared before\n``/{model_id}`` so the literal ``resolve`` path is not parsed as an id; a\nquery param (not a path segment) so slugs with ``/`` or ``:`` need no\nencoding. Team-scoping still hides other teams' private fine-tunes.","operationId":"resolve_model_v2_models_resolve_get","parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string","description":"Model slug (or id) to resolve to its catalog record","title":"Model"},"description":"Model slug (or id) to resolve to its catalog record"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/models/{model_id}":{"get":{"tags":["models"],"summary":"Get Model","description":"Get a catalog model by id.","operationId":"get_model_v2_models__model_id__get","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["models"],"summary":"Update Model","description":"Update a model's catalog fields, such as name or visibility.","operationId":"update_model_v2_models__model_id__patch","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/models/fork":{"post":{"tags":["models"],"summary":"Fork Model","description":"Create an owned trainable model derived from a source trainable model.","operationId":"fork_model_v2_models_fork_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelForkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/models/{model_id}/head":{"put":{"tags":["models"],"summary":"Set Model Head","description":"Point the model's active checkpoint (head) at one of its checkpoint nodes.","operationId":"set_model_head_v2_models__model_id__head_put","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetHeadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/models/{model_id}/checkpoints":{"get":{"tags":["models"],"summary":"List Model Checkpoints","description":"List a trainable model's checkpoint tree.","operationId":"list_model_checkpoints_v2_models__model_id__checkpoints_get","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CheckpointResponse"},"title":"Response List Model Checkpoints V2 Models  Model Id  Checkpoints Get"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/models/{model_id}/checkpoints/{checkpoint_id}/traces":{"get":{"tags":["models"],"summary":"List Checkpoint Traces","description":"List recent traces produced by a specific model checkpoint.","operationId":"list_checkpoint_traces_v2_models__model_id__checkpoints__checkpoint_id__traces_get","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}},{"name":"checkpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Checkpoint Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CheckpointTraceRow"},"title":"Response List Checkpoint Traces V2 Models  Model Id  Checkpoints  Checkpoint Id  Traces Get"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/models/{model_id}/results":{"get":{"tags":["models"],"summary":"Model Results","description":"Get per-taskset evaluation results for a model's checkpoints.","operationId":"model_results_v2_models__model_id__results_get","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}},{"name":"checkpoint_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkpoint Ids"}},{"name":"purpose","in":"query","required":false,"schema":{"anyOf":[{"enum":["EVAL","TRAINING"],"type":"string"},{"type":"null"}],"title":"Purpose"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelResultsResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/models/{model_id}/suggested-tasksets":{"get":{"tags":["models"],"summary":"Model Suggested Tasksets","description":"Suggest tasksets to evaluate or train a model on.","operationId":"model_suggested_tasksets_v2_models__model_id__suggested_tasksets_get","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}},{"name":"exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclude"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"purpose","in":"query","required":false,"schema":{"anyOf":[{"enum":["EVAL","TRAINING"],"type":"string"},{"type":"null"}],"title":"Purpose"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestedTasksetsResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/models/{model_id}/logs":{"get":{"tags":["models"],"summary":"List Model Inference Logs","description":"List the caller team's gateway inference logs for a model.","operationId":"list_model_inference_logs_v2_models__model_id__logs_get","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ModelInferenceLogEntry_"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/checks":{"get":{"tags":["checks"],"summary":"List Platform Checks","description":"List available checks and their supported resource types.","operationId":"list_platform_checks_v2_checks_get","parameters":[{"name":"subject_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CheckSubjectType"},{"type":"null"}],"title":"Subject Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CheckDefinitionResponse"},"title":"Response List Platform Checks V2 Checks Get"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/checks/runs":{"get":{"tags":["checks"],"summary":"List Platform Check Runs","description":"List recent check attempts for one authorized resource.","operationId":"list_platform_check_runs_v2_checks_runs_get","parameters":[{"name":"subject_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/CheckSubjectType"}},{"name":"subject_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Subject Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CheckRunResponse"},"title":"Response List Platform Check Runs V2 Checks Runs Get"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/checks/{check_key}/runs":{"post":{"tags":["checks"],"summary":"Run Platform Check","description":"Run one check against an authorized resource snapshot.","operationId":"run_platform_check_v2_checks__check_key__runs_post","parameters":[{"name":"check_key","in":"path","required":true,"schema":{"type":"string","title":"Check Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckRunResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/builds/upload-url":{"post":{"tags":["builds"],"summary":"Upload Url","description":"Create a presigned S3 URL for uploading a build context, with a new build id.","operationId":"upload_url_v2_builds_upload_url_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildUploadUrlResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/builds":{"get":{"tags":["builds"],"summary":"List Builds","description":"List builds for an environment registry, newest first.","operationId":"list_builds_v2_builds_get","parameters":[{"name":"registry_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Filter builds to this registry","title":"Registry Id"},"description":"Filter builds to this registry"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildListResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/builds/trigger":{"post":{"tags":["builds"],"summary":"Trigger Build","description":"Trigger an environment build from a previously uploaded build context.","operationId":"trigger_build_v2_builds_trigger_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildTriggerRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/builds/trigger-direct":{"post":{"tags":["builds"],"summary":"Trigger Build","description":"Trigger an environment build from a previously uploaded build context.","operationId":"trigger_build_v2_builds_trigger_direct_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildTriggerRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/builds/{build_id}/discover-scenarios":{"post":{"tags":["builds"],"summary":"Discover Scenarios","description":"[Dev-only] Discover scenarios by running the Docker image locally.\n\nRequires Docker on the host machine. Production discovery happens\nautomatically via CodeBuild (POST /builds/{id}/lock).\n\nTODO(deprecate): Remove this endpoint once the lock callback path\n(POST /builds/{id}/lock → BuildService.finalize → derive_scenarios)\nis proven reliable. Production scenario discovery should only happen\nvia the CodeBuild callback. This endpoint exists as a dev convenience\nand for the legacy test_env_build_discover.py flow (now deleted).\nVerify via GET /registry/{registry_id}/scenarios instead.","operationId":"discover_scenarios_v2_builds__build_id__discover_scenarios_post","parameters":[{"name":"build_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Build Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioResponse"},"title":"Response Discover Scenarios V2 Builds  Build Id  Discover Scenarios Post"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/builds/{build_id}/status":{"get":{"tags":["builds"],"summary":"Build Status","description":"Get a build's current status and details.","operationId":"build_status_v2_builds__build_id__status_get","parameters":[{"name":"build_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Build Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/builds/{build_id}/source":{"get":{"tags":["builds"],"summary":"List Build Source","description":"List files and directories at a path in a build's expanded source tree.","operationId":"list_build_source_v2_builds__build_id__source_get","parameters":[{"name":"build_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Build Id"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Path"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildSourceListResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/builds/{build_id}/source/preview":{"get":{"tags":["builds"],"summary":"Preview Build Source","description":"Return the text content of a file in a build's source tree (1 MiB cap, text only).","operationId":"preview_build_source_v2_builds__build_id__source_preview_get","parameters":[{"name":"build_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Build Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildSourcePreviewResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/builds/{build_id}/source/download":{"get":{"tags":["builds"],"summary":"Download Build Source","description":"Create a short-lived presigned download URL for a file in a build's source tree.","operationId":"download_build_source_v2_builds__build_id__source_download_get","parameters":[{"name":"build_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Build Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildSourceDownloadResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/builds/{build_id}/workspace/preview":{"get":{"tags":["builds"],"summary":"Preview Build Workspace","description":"Return the text content of a captured workspace file (1 MiB cap, text only).","operationId":"preview_build_workspace_v2_builds__build_id__workspace_preview_get","parameters":[{"name":"build_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Build Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildSourcePreviewResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/builds/{build_id}/workspace/download":{"get":{"tags":["builds"],"summary":"Download Build Workspace","description":"Stream a build's captured workspace as a zip archive.","operationId":"download_build_workspace_v2_builds__build_id__workspace_download_get","parameters":[{"name":"build_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Build Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/builds/{build_id}/cancel":{"post":{"tags":["builds"],"summary":"Cancel Build","description":"Cancel an in-progress build.","operationId":"cancel_build_v2_builds__build_id__cancel_post","parameters":[{"name":"build_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Build Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/builds/{build_id}/set-latest":{"post":{"tags":["builds"],"summary":"Set Latest Build","description":"Pin a successful build as its registry's latest build.","operationId":"set_latest_build_v2_builds__build_id__set_latest_post","parameters":[{"name":"build_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Build Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/storage/traces/{trace_id}/artifacts":{"get":{"tags":["storage"],"summary":"List Trace Artifacts","description":"List trace-owned screenshots, recordings, and captured files.","operationId":"list_trace_artifacts_v2_storage_traces__trace_id__artifacts_get","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceStorageObjectListResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/storage/traces/{trace_id}/workspace/changes":{"get":{"tags":["storage"],"summary":"Trace Workspace Changes","description":"Return filetracking snapshots, patches, and captured files for a trace.","operationId":"trace_workspace_changes_v2_storage_traces__trace_id__workspace_changes_get","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceWorkspaceChangesResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/storage/traces/{trace_id}/workspace/files":{"get":{"tags":["storage"],"summary":"Trace Workspace Files","description":"Return final captured file contents for a trace workspace.","operationId":"trace_workspace_files_v2_storage_traces__trace_id__workspace_files_get","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceWorkspaceFilesResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs":{"get":{"tags":["jobs"],"summary":"List Jobs","description":"List jobs for the caller's team, optionally filtered by taskset.","operationId":"list_jobs_v2_jobs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}},{"name":"taskset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Taskset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_JobResponse_"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/active":{"get":{"tags":["jobs"],"summary":"List Active Jobs","description":"List currently running jobs for the caller's team.","operationId":"list_active_jobs_v2_jobs_active_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/JobResponse"},"type":"array","title":"Response List Active Jobs V2 Jobs Active Get"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/jobs/enriched":{"get":{"tags":["jobs"],"summary":"List Enriched Jobs","description":"List jobs for a taskset enriched with trace stats and chart data.","operationId":"list_enriched_jobs_v2_jobs_enriched_get","parameters":[{"name":"taskset_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Taskset Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasksetJobsEnrichedResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/enrich":{"post":{"tags":["jobs"],"summary":"Enrich Jobs","description":"Fetch enrichment data (trace stats, chart points) for a batch of jobs.","operationId":"enrich_jobs_v2_jobs_enrich_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Job Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichJobsResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/{job_id}":{"get":{"tags":["jobs"],"summary":"Get Job","description":"Get a job by id.","operationId":"get_job_v2_jobs__job_id__get","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/JobResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["jobs"],"summary":"Update Job","description":"Update a job's mutable fields, such as its name.","operationId":"update_job_v2_jobs__job_id__patch","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/{job_id}/chart-data":{"get":{"tags":["jobs"],"summary":"Get Job Chart Data","description":"Get per-trace reward data points for charting a job's results.","operationId":"get_job_chart_data_v2_jobs__job_id__chart_data_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":5000,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartDataResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/{job_id}/taskset-coverage":{"get":{"tags":["jobs"],"summary":"Get Job Taskset Coverage","description":"Get per-task coverage of the job's taskset, including unattempted tasks.","operationId":"get_job_taskset_coverage_v2_jobs__job_id__taskset_coverage_get","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/TasksetCoverageResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/{job_id}/entity-links":{"get":{"tags":["jobs"],"summary":"Get Job Entity Links","description":"List tasksets and registries linked to a job.","operationId":"get_job_entity_links_v2_jobs__job_id__entity_links_get","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/JobEntityLinksResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/{job_id}/summary":{"get":{"tags":["jobs"],"summary":"Job Summary","description":"Get aggregate trace statistics for a job.","operationId":"job_summary_v2_jobs__job_id__summary_get","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/JobSummary"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/{job_id}/usage":{"get":{"tags":["jobs"],"summary":"Get Job Usage","description":"Get per-trace compute and inference usage for a job.","operationId":"get_job_usage_v2_jobs__job_id__usage_get","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/JobUsageResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/{job_id}/traces":{"get":{"tags":["jobs"],"summary":"List Job Traces","description":"List traces belonging to a job.","operationId":"list_job_traces_v2_jobs__job_id__traces_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TraceResponse_"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/{job_id}/thumbnails":{"get":{"tags":["jobs"],"summary":"List Job Thumbnails","description":"List trace thumbnails for a job with presigned image URLs.","operationId":"list_job_thumbnails_v2_jobs__job_id__thumbnails_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobThumbnailsResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/{job_id}/invalidate":{"post":{"tags":["jobs"],"summary":"Invalidate Job","description":"Mark every trace in this job as invalid (excluded from leaderboards).","operationId":"invalidate_job_v2_jobs__job_id__invalidate_post","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/BatchValidateResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/{job_id}/revalidate":{"post":{"tags":["jobs"],"summary":"Revalidate Job","description":"Re-include every trace in this job in leaderboard calculations.","operationId":"revalidate_job_v2_jobs__job_id__revalidate_post","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/BatchValidateResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/jobs/{job_id}/publish":{"post":{"tags":["jobs"],"summary":"Publish Job","description":"Set ``jobs.public=true`` so the job is visible on the public taskset page.","operationId":"publish_job_v2_jobs__job_id__publish_post","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/PublishJobResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/limits":{"get":{"tags":["limits"],"summary":"List Spend Limits","description":"List the spend limits visible to the caller with current-period spend.","operationId":"list_spend_limits_v2_limits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendLimitListResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["limits"],"summary":"Create Spend Limit","description":"Create a team, member, or API-key limit, or a team percentage alert.","operationId":"create_spend_limit_v2_limits_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendLimitCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendLimitItem"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/limits/{limit_id}":{"patch":{"tags":["limits"],"summary":"Update Spend Limit","description":"Update an absolute amount, percentage threshold, or enabled state.","operationId":"update_spend_limit_v2_limits__limit_id__patch","parameters":[{"name":"limit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Limit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendLimitUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendLimitItem"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["limits"],"summary":"Delete Spend Limit","description":"Delete a spend limit.","operationId":"delete_spend_limit_v2_limits__limit_id__delete","parameters":[{"name":"limit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Limit Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/rollouts/run":{"post":{"tags":["rollouts"],"summary":"Run","description":"Launch a single hosted rollout and return its trace and job identifiers.","operationId":"run_v2_rollouts_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolloutRunRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolloutResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/rollouts/submit":{"post":{"tags":["rollouts"],"summary":"Submit","description":"v6 SDK hosted rollout: env/task reference + agent spec under the SDK's job/trace identity.\n\nThe SDK polls GET /v2/trace/{trace_id} to completion.","operationId":"submit_v2_rollouts_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolloutSubmitRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolloutResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/rollouts/run_list":{"post":{"tags":["rollouts"],"summary":"Run List","description":"Launch a batch of hosted rollouts under one job.","operationId":"run_list_v2_rollouts_run_list_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SDKBatchResponse"},{"$ref":"#/components/schemas/RolloutBatchResponse"}],"title":"Response Run List V2 Rollouts Run List Post"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/rollouts/cancel":{"post":{"tags":["rollouts"],"summary":"Cancel","description":"Cancel a single rollout trace; noop if it already reached a terminal state.","operationId":"cancel_v2_rollouts_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/rollouts/cancel_job":{"post":{"tags":["rollouts"],"summary":"Cancel Job","description":"Cancel all non-terminal traces in a job.","operationId":"cancel_job_v2_rollouts_cancel_job_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelJobRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelJobResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/rollouts/cancel_user_jobs":{"post":{"tags":["rollouts"],"summary":"Cancel User Jobs","description":"Cancel all of the caller's active jobs, reporting per-job cancellation counts.","operationId":"cancel_user_jobs_v2_rollouts_cancel_user_jobs_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelUserJobsResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/trace/batch-validate":{"post":{"tags":["traces"],"summary":"Batch Validate Traces","description":"Mark a batch of traces as valid or invalid for leaderboard calculations.","operationId":"batch_validate_traces_v2_trace_batch_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceBatchValidateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceBatchValidateResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/trace/{trace_id}":{"get":{"tags":["traces"],"summary":"Get Trace","description":"Get a trace by id.","operationId":"get_trace_v2_trace__trace_id__get","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["traces"],"summary":"Update Trace","description":"Update a trace's metadata fields.","operationId":"update_trace_v2_trace__trace_id__patch","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceInfoResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/trace/{trace_id}/info":{"get":{"tags":["traces"],"summary":"Get Trace Info","description":"Get a trace with its task, job, and model context for the trace viewer.","operationId":"get_trace_info_v2_trace__trace_id__info_get","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceInfoResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/trace/{trace_id}/logs":{"get":{"tags":["traces"],"summary":"Get Trace Logs","description":"Get a trace's captured worker logs.","operationId":"get_trace_logs_v2_trace__trace_id__logs_get","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceLogsResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/trace/{trace_id}/env-logs":{"get":{"tags":["traces"],"summary":"Get Trace Env Logs","description":"Environment logs — the customer container's stdout/stderr.\n\nFetched from the daemon's S3 debug bundle.","operationId":"get_trace_env_logs_v2_trace__trace_id__env_logs_get","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvLogsResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/trace/{trace_id}/events":{"get":{"tags":["traces"],"summary":"Get Trace Events","description":"Projected, typed view of a trace's telemetry — drives the trace viewer.","operationId":"get_trace_events_v2_trace__trace_id__events_get","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trace Id"}},{"name":"since_seq","in":"query","required":false,"schema":{"type":"integer","description":"Return only events derived from spans with sequence > since_seq. Use -1 (default) for the full trajectory; set to the previously received `latest_seq` for incremental polling.","default":-1,"title":"Since Seq"},"description":"Return only events derived from spans with sequence > since_seq. Use -1 (default) for the full trajectory; set to the previously received `latest_seq` for incremental polling."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceEventsResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/trace/{trace_id}/analysis-context":{"get":{"tags":["traces"],"summary":"Get Trace Analysis Context","description":"Aggregate context for analysis environments (QA agents).","operationId":"get_trace_analysis_context_v2_trace__trace_id__analysis_context_get","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trace Id"}},{"name":"include_spans","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Spans"}},{"name":"include_env_logs","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Env Logs"}},{"name":"include_worker_logs","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Worker Logs"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceAnalysisContextResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/trace/{trace_id}/related":{"get":{"tags":["traces"],"summary":"List Related Traces","description":"Trace thumbnails related to ``trace_id``.","operationId":"list_related_traces_v2_trace__trace_id__related_get","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trace Id"}},{"name":"kind","in":"query","required":true,"schema":{"$ref":"#/components/schemas/RelatedKind","description":"`job` (same job_id), `task` (every version of the same task), `recent` (caller's own traces, requires auth), or `discover` (most-recent visible traces overall)."},"description":"`job` (same job_id), `task` (every version of the same task), `recent` (caller's own traces, requires auth), or `discover` (most-recent visible traces overall)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"scope_to_job","in":"query","required":false,"schema":{"type":"boolean","description":"Only meaningful with `kind=task`: further restrict to the source trace's job. Used by the info-card sibling-run squares.","default":false,"title":"Scope To Job"},"description":"Only meaningful with `kind=task`: further restrict to the source trace's job. Used by the info-card sibling-run squares."},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated status whitelist applied to ``Trace.status`` — e.g. `completed` to exclude live/cancelled rows.","title":"Status"},"description":"Comma-separated status whitelist applied to ``Trace.status`` — e.g. `completed` to exclude live/cancelled rows."},{"name":"order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/RelatedOrder","description":"Sort by created_at.","default":"desc"},"description":"Sort by created_at."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TraceThumbnail"},"title":"Response List Related Traces V2 Trace  Trace Id  Related Get"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/trace/{trace_id}/usage":{"get":{"tags":["traces"],"summary":"Get Trace Usage","description":"Get a trace's compute and inference cost breakdown.","operationId":"get_trace_usage_v2_trace__trace_id__usage_get","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceUsageBreakdown"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/instance":{"get":{"tags":["instances"],"summary":"List Instances","description":"List a registry's instances, optionally including recently terminated ones.","operationId":"list_instances_v2_instance_get","parameters":[{"name":"registry_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Filter instances to this registry","title":"Registry Id"},"description":"Filter instances to this registry"},{"name":"include_terminated","in":"query","required":false,"schema":{"type":"boolean","description":"Include recently terminated instances","default":false,"title":"Include Terminated"},"description":"Include recently terminated instances"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveInstancesResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/instance/stop":{"post":{"tags":["instances"],"summary":"Stop Instances","description":"Stop the given instances of a registry, reporting per-instance results.","operationId":"stop_instances_v2_instance_stop_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopInstancesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopInstancesResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/completions":{"post":{"tags":["completions"],"summary":"Post Completion","description":"One-shot chat completion proxied to the inference gateway.","operationId":"post_completion_v2_completions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletionResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/environments/usage":{"get":{"tags":["usage"],"summary":"Get Environment Usage","description":"Get the team's environment session usage over a window, with summary and paged sessions.","operationId":"get_environment_usage_v2_environments_usage_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":7,"title":"Days"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},{"name":"api_key_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentUsageResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/inference/usage":{"get":{"tags":["inference"],"summary":"Get Inference Usage","description":"Get the team's inference usage over a window, with summary and paged requests.","operationId":"get_inference_usage_v2_inference_usage_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":7,"title":"Days"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},{"name":"api_key_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Id"}},{"name":"byok_credential_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Byok Credential Id"}},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id"}},{"name":"request_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceUsageResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/usage/inference":{"get":{"tags":["usage"],"summary":"Get Inference Usage Aggregate","description":"Aggregate the team's inference usage into time buckets, optionally grouped.","operationId":"get_inference_usage_aggregate_v2_usage_inference_get","parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Window start; defaults to end-7d","title":"Start"},"description":"Window start; defaults to end-7d"},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Window end; defaults to now","title":"End"},"description":"Window end; defaults to now"},{"name":"bucket_width","in":"query","required":false,"schema":{"enum":["1h","1d"],"type":"string","default":"1d","title":"Bucket Width"}},{"name":"group_by","in":"query","required":false,"schema":{"anyOf":[{"enum":["api_key","byok","model","user","route"],"type":"string"},{"type":"null"}],"title":"Group By"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},{"name":"api_key_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Id"}},{"name":"byok_credential_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Byok Credential Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceUsageAggregateResponse"}}}},"400":{"description":"Invalid or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Caller may not access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced entity does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Resource already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ActiveInstance":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"registry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Registry Id"},"build_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Build Id"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"terminated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terminated At"},"public_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Ip"},"ec2_instance_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ec2 Instance Type"},"max_runtime_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Runtime Seconds"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"user_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Avatar Url"},"actual_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Actual Cost"},"hourly_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hourly Rate"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"cpu_millicores":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cpu Millicores"},"memory_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Memory Gb"},"timeout_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout Seconds"},"max_session_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Session Seconds"},"file_tracking_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"File Tracking Enabled"},"no_external_access":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"No External Access"},"protocol_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Protocol Version"},"vnc_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vnc Url"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"trace":{"anyOf":[{"$ref":"#/components/schemas/ActiveInstanceTrace"},{"type":"null"}]}},"type":"object","required":["id","status","created_at"],"title":"ActiveInstance"},"ActiveInstanceTrace":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reward"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["id","created_at"],"title":"ActiveInstanceTrace"},"ActiveInstancesResponse":{"properties":{"instances":{"items":{"$ref":"#/components/schemas/ActiveInstance"},"type":"array","title":"Instances"},"total":{"type":"integer","title":"Total"},"running_count":{"type":"integer","title":"Running Count"},"terminated_count":{"type":"integer","title":"Terminated Count"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["instances","total","running_count","terminated_count","has_more"],"title":"ActiveInstancesResponse"},"AgentMessageEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","const":"agent_message","title":"Kind","default":"agent_message"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"},"tool_calls":{"items":{"$ref":"#/components/schemas/AgentToolCall"},"type":"array","title":"Tool Calls","default":[]}},"additionalProperties":false,"type":"object","required":["id"],"title":"AgentMessageEvent"},"AgentToolCall":{"properties":{"tool_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id"},"name":{"type":"string","title":"Name"},"arguments":{"additionalProperties":true,"type":"object","title":"Arguments","default":{}},"subagent_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subagent Event Id"}},"additionalProperties":false,"type":"object","required":["name"],"title":"AgentToolCall","description":"A tool invocation embedded inside an assistant message.\n\nDistinct from ``ToolCallEvent``: this is the *intent* the agent surfaced\nin its response, before the MCP call actually happened. The matching\n``ToolCallEvent`` carries the result."},"Annotations":{"properties":{"audience":{"anyOf":[{"items":{"type":"string","enum":["user","assistant"]},"type":"array"},{"type":"null"}],"title":"Audience"},"priority":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Priority"}},"additionalProperties":true,"type":"object","title":"Annotations"},"AttachmentResponse":{"properties":{"name":{"type":"string","title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"storage_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"status":{"type":"string","enum":["staged","archived","failed"],"title":"Status","default":"staged"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"}},"type":"object","required":["name"],"title":"AttachmentResponse","description":"An attachment on client-facing responses.\n\n``url`` is presigned for download; ``storage_url`` is the raw team-scoped locator so an edit\ncan hand the attachment back unchanged."},"BatchValidateResponse":{"properties":{"updated_count":{"type":"integer","title":"Updated Count"}},"type":"object","required":["updated_count"],"title":"BatchValidateResponse"},"Body_upload_file_v2_uploads_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_v2_uploads_post"},"BuildListResponse":{"properties":{"builds":{"items":{"$ref":"#/components/schemas/BuildResponse"},"type":"array","title":"Builds"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["builds","total"],"title":"BuildListResponse"},"BuildResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"registry_id":{"type":"string","format":"uuid","title":"Registry Id"},"status":{"type":"string","title":"Status"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri"},"image_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Name"},"digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Digest"},"lock":{"anyOf":[{"$ref":"#/components/schemas/McpLock"},{"type":"null"}]},"manifest":{"anyOf":[{"$ref":"#/components/schemas/EnvManifest"},{"type":"null"}]},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"runtime_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Runtime Config"},"source_index_status":{"type":"string","enum":["pending","indexing","ready","failed","unavailable"],"title":"Source Index Status"},"source_index_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Index Error"},"source_index_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Index Started At"},"source_indexed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Indexed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"github_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github Url"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"scenario_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scenario Count"}},"type":"object","required":["id","registry_id","status","source_index_status","created_at"],"title":"BuildResponse"},"BuildSourceDownloadResponse":{"properties":{"build_id":{"type":"string","format":"uuid","title":"Build Id"},"path":{"type":"string","title":"Path"},"url":{"type":"string","title":"Url"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["build_id","path","url","expires_in"],"title":"BuildSourceDownloadResponse"},"BuildSourceEntry":{"properties":{"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"},"type":{"type":"string","enum":["file","directory"],"title":"Type"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"}},"type":"object","required":["name","path","type"],"title":"BuildSourceEntry"},"BuildSourceListResponse":{"properties":{"build_id":{"type":"string","format":"uuid","title":"Build Id"},"status":{"type":"string","enum":["pending","indexing","ready","failed","unavailable"],"title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"path":{"type":"string","title":"Path"},"entries":{"items":{"$ref":"#/components/schemas/BuildSourceEntry"},"type":"array","title":"Entries","default":[]},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["build_id","status","path"],"title":"BuildSourceListResponse"},"BuildSourcePreviewResponse":{"properties":{"build_id":{"type":"string","format":"uuid","title":"Build Id"},"path":{"type":"string","title":"Path"},"content":{"type":"string","title":"Content"},"size":{"type":"integer","title":"Size"},"content_hash":{"type":"string","title":"Content Hash"},"content_type":{"type":"string","title":"Content Type"}},"type":"object","required":["build_id","path","content","size","content_hash","content_type"],"title":"BuildSourcePreviewResponse"},"BuildTriggerRequest":{"properties":{"source":{"type":"string","const":"direct","title":"Source"},"registry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Registry Id"},"build_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Build Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"environment_variables":{"additionalProperties":{"type":"string"},"type":"object","title":"Environment Variables","default":{}},"build_secrets":{"additionalProperties":{"type":"string"},"type":"object","title":"Build Secrets","default":{}},"runtime_provider":{"anyOf":[{"type":"string","enum":["ec2","modal"]},{"type":"null"}],"title":"Runtime Provider"},"runtime_config":{"anyOf":[{"$ref":"#/components/schemas/SubmittedRuntimeConfig"},{"type":"null"}]},"entry_folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entry Folder"},"build_args":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Build Args"},"no_cache":{"type":"boolean","title":"No Cache","default":false}},"type":"object","required":["source"],"title":"BuildTriggerRequest","description":"Trigger a build for a registry."},"BuildUploadUrlResponse":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"build_id":{"type":"string","format":"uuid","title":"Build Id"}},"type":"object","required":["upload_url","build_id"],"title":"BuildUploadUrlResponse"},"BulkStageRequest":{"properties":{"ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500,"minItems":1,"title":"Ids"},"stage":{"type":"string","title":"Stage"}},"type":"object","required":["ids","stage"],"title":"BulkStageRequest","description":"Bulk lifecycle-stage move.\n\nAdvance tasks one stage forward or send them back to an earlier stage of their\ntaskset's pipeline."},"BulkStatusFailure":{"properties":{"input":{"type":"string","title":"Input"},"resolved_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resolved Id"},"reason":{"type":"string","title":"Reason"},"code":{"type":"string","enum":["not_found","forbidden","invalid_transition"],"title":"Code"}},"type":"object","required":["input","reason","code"],"title":"BulkStatusFailure"},"BulkStatusRequest":{"properties":{"ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500},{"type":"null"}],"title":"Ids"},"slugs":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":500},{"type":"null"}],"title":"Slugs"},"taskset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Taskset Id"},"status":{"anyOf":[{"type":"string","enum":["pending","ready","verified","revision","rejected"]},{"type":"null"}],"title":"Status"},"clear":{"type":"boolean","title":"Clear","default":false},"reviewed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reviewed"}},"type":"object","title":"BulkStatusRequest","description":"Bulk semantic status mutation.\n\nProvide exactly one of ``ids`` or ``slugs`` (slugs are task external_ids,\nresolved within ``taskset_id``), and exactly one of ``status``, ``clear=true``,\nor ``reviewed``."},"BulkStatusResponse":{"properties":{"succeeded":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Succeeded"},"unchanged":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Unchanged"},"failures":{"items":{"$ref":"#/components/schemas/BulkStatusFailure"},"type":"array","title":"Failures"}},"type":"object","title":"BulkStatusResponse","description":"Non-atomic: partial successes commit.\n\nPer-input failures are surfaced individually instead of failing the whole batch.\n``unchanged`` carries no-ops (target progress equals existing progress)."},"ByokCredentialCreateRequest":{"properties":{"provider_id":{"type":"integer","title":"Provider Id"},"scope":{"type":"string","enum":["member","team"],"title":"Scope"},"value":{"type":"string","title":"Value"}},"additionalProperties":false,"type":"object","required":["provider_id","scope","value"],"title":"ByokCredentialCreateRequest"},"ByokCredentialItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"provider_id":{"type":"integer","title":"Provider Id"},"provider_name":{"type":"string","title":"Provider Name"},"name":{"type":"string","title":"Name"},"scope":{"type":"string","enum":["member","team"],"title":"Scope"},"masked_value":{"type":"string","title":"Masked Value"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","provider_id","provider_name","name","scope","masked_value","created_at","updated_at"],"title":"ByokCredentialItem"},"ByokCredentialUpdateRequest":{"properties":{"value":{"type":"string","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"ByokCredentialUpdateRequest"},"ByokCredentialsListResponse":{"properties":{"credentials":{"items":{"$ref":"#/components/schemas/ByokCredentialItem"},"type":"array","title":"Credentials"},"providers":{"items":{"$ref":"#/components/schemas/ByokProviderOption"},"type":"array","title":"Providers"}},"type":"object","required":["credentials","providers"],"title":"ByokCredentialsListResponse"},"ByokProviderOption":{"properties":{"provider_id":{"type":"integer","title":"Provider Id"},"provider_name":{"type":"string","title":"Provider Name"},"name":{"type":"string","title":"Name"}},"type":"object","required":["provider_id","provider_name","name"],"title":"ByokProviderOption"},"CancelJobRequest":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["job_id"],"title":"CancelJobRequest"},"CancelJobResponse":{"properties":{"status":{"type":"string","title":"Status","default":"accepted"},"cancelled":{"type":"integer","title":"Cancelled"}},"type":"object","required":["cancelled"],"title":"CancelJobResponse","description":"Job cancel result.\n\n`cancelled` counts the non-terminal traces marked `cancelling`. The rewrite\ntransitions rows in one server-side pass, so there is no running-vs-queued\nsplit to report."},"CancelRequest":{"properties":{"trace_id":{"type":"string","format":"uuid","title":"Trace Id"}},"type":"object","required":["trace_id"],"title":"CancelRequest"},"CancelResponse":{"properties":{"status":{"type":"string","enum":["accepted","noop"],"title":"Status"}},"type":"object","required":["status"],"title":"CancelResponse","description":"One trace's cancel result.\n\nCancellation is two-phase: `accepted` means the trace was marked\n`cancelling` and finalization enqueued; `noop` means nothing transitioned\n(already terminal, or not found)."},"CancelUserJobsJobDetail":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"cancelled":{"type":"integer","title":"Cancelled"}},"type":"object","required":["job_id","cancelled"],"title":"CancelUserJobsJobDetail"},"CancelUserJobsResponse":{"properties":{"status":{"type":"string","title":"Status","default":"accepted"},"jobs_cancelled":{"type":"integer","title":"Jobs Cancelled"},"total_tasks_cancelled":{"type":"integer","title":"Total Tasks Cancelled"},"job_details":{"items":{"$ref":"#/components/schemas/CancelUserJobsJobDetail"},"type":"array","title":"Job Details"}},"type":"object","required":["jobs_cancelled","total_tasks_cancelled","job_details"],"title":"CancelUserJobsResponse","description":"\"Stop everything\" result, grouped by job so callers can show a breakdown."},"CapturedFile":{"properties":{"path":{"type":"string","title":"Path"},"status":{"type":"string","enum":["added","modified"],"title":"Status"},"size":{"type":"integer","title":"Size"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"},"content_type":{"type":"string","title":"Content Type","default":"application/octet-stream"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"}},"additionalProperties":false,"type":"object","required":["path","status","size"],"title":"CapturedFile","description":"One changed workspace file preserved as a downloadable telemetry artifact."},"ChartDataResponse":{"properties":{"data_points":{"items":{"$ref":"#/components/schemas/JobChartDataPoint"},"type":"array","title":"Data Points"},"total":{"type":"integer","title":"Total","default":0}},"type":"object","title":"ChartDataResponse"},"ChatMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"anyOf":[{"type":"string"},{"items":{"additionalProperties":true,"type":"object"},"type":"array"}],"title":"Content"}},"type":"object","required":["role","content"],"title":"ChatMessage"},"CheckDefinitionResponse":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"definition_version":{"type":"integer","title":"Definition Version"},"subject_types":{"items":{"$ref":"#/components/schemas/CheckSubjectType"},"type":"array","title":"Subject Types"},"executor_type":{"$ref":"#/components/schemas/CheckExecutorType"}},"type":"object","required":["key","label","description","definition_version","subject_types","executor_type"],"title":"CheckDefinitionResponse","description":"A discoverable platform check definition."},"CheckExecutorType":{"type":"string","enum":["deterministic","scenario_agent"],"title":"CheckExecutorType","description":"Execution mechanisms supported by a check definition."},"CheckRunRequest":{"properties":{"subject_type":{"$ref":"#/components/schemas/CheckSubjectType"},"subject_id":{"type":"string","format":"uuid","title":"Subject Id"},"overwrite":{"type":"boolean","title":"Overwrite","default":false}},"type":"object","required":["subject_type","subject_id"],"title":"CheckRunRequest","description":"Request to execute one check against one resource."},"CheckRunResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"check_key":{"type":"string","title":"Check Key"},"definition_version":{"type":"integer","title":"Definition Version"},"definition_snapshot":{"additionalProperties":true,"type":"object","title":"Definition Snapshot"},"definition_hash":{"type":"string","title":"Definition Hash"},"executor_type":{"$ref":"#/components/schemas/CheckExecutorType"},"subject_type":{"$ref":"#/components/schemas/CheckSubjectType"},"subject_id":{"type":"string","format":"uuid","title":"Subject Id"},"subject_snapshot":{"additionalProperties":true,"type":"object","title":"Subject Snapshot"},"snapshot_hash":{"type":"string","title":"Snapshot Hash"},"status":{"$ref":"#/components/schemas/CheckRunStatus"},"result":{"additionalProperties":true,"type":"object","title":"Result"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"execution_trace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Execution Trace Id"},"attempt":{"type":"integer","title":"Attempt"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","check_key","definition_version","definition_snapshot","definition_hash","executor_type","subject_type","subject_id","subject_snapshot","snapshot_hash","status","summary","error","execution_trace_id","attempt","created_at","completed_at"],"title":"CheckRunResponse","description":"One immutable check execution and its subject snapshot."},"CheckRunStatus":{"type":"string","enum":["running","passed","failed","error"],"title":"CheckRunStatus","description":"Lifecycle states for a platform check run."},"CheckSubjectType":{"type":"string","enum":["environment","taskset","task","trace"],"title":"CheckSubjectType","description":"Platform resources supported by the check framework."},"CheckpointRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id"],"title":"CheckpointRef","description":"A lightweight reference (id + display name) to a linked entity."},"CheckpointResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"checkpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkpoint Name"},"prev_model_checkpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Prev Model Checkpoint Id"},"is_active":{"type":"boolean","title":"Is Active","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"num_traces":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Traces"},"num_datums":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Datums"},"num_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Tokens"},"mean_reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Reward"},"learning_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Learning Rate"},"loss_fn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loss Fn"},"metrics":{"additionalProperties":{"type":"number"},"type":"object","title":"Metrics"},"jobs":{"items":{"$ref":"#/components/schemas/CheckpointRef"},"type":"array","title":"Jobs"},"tasksets":{"items":{"$ref":"#/components/schemas/CheckpointRef"},"type":"array","title":"Tasksets"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"session_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Name"},"reward_groups":{"items":{"items":{"type":"number"},"type":"array"},"type":"array","title":"Reward Groups"}},"type":"object","required":["id","created_at"],"title":"CheckpointResponse","description":"One node in a model's training-checkpoint tree.\n\n``id`` is the ``model_checkpoints`` node id (what the tree keys + links on via\n``prev_model_checkpoint_id``). ``checkpoint_name`` is the served sampler path."},"CheckpointTraceRow":{"properties":{"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reward"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["trace_id","status","created_at"],"title":"CheckpointTraceRow","description":"A trace that contributed gradients to a checkpoint (training step)."},"CompletionRequest":{"properties":{"model":{"type":"string","title":"Model"},"messages":{"items":{"$ref":"#/components/schemas/ChatMessage"},"type":"array","title":"Messages"},"max_tokens":{"type":"integer","maximum":16384.0,"minimum":1.0,"title":"Max Tokens","default":4000}},"type":"object","required":["model","messages"],"title":"CompletionRequest"},"CompletionResponse":{"properties":{"content":{"type":"string","title":"Content"},"model":{"type":"string","title":"Model"}},"type":"object","required":["content","model"],"title":"CompletionResponse"},"CreateTaskCommentRequest":{"properties":{"body":{"type":"string","title":"Body"}},"type":"object","required":["body"],"title":"CreateTaskCommentRequest"},"DataFileCreateRequest":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"size_bytes":{"type":"integer","maximum":262144000.0,"minimum":1.0,"title":"Size Bytes"},"content_type":{"type":"string","maxLength":200,"minLength":3,"title":"Content Type","default":"application/octet-stream"},"scope":{"type":"string","enum":["member","team"],"title":"Scope","default":"member"}},"type":"object","required":["filename","size_bytes"],"title":"DataFileCreateRequest","description":"A reservation for an upload the client is about to make.\n\n``size_bytes`` is checked against the limit here and again against the\nstored object; ``content_type`` is pinned into the presigned PUT."},"DataFileDownloadResponse":{"properties":{"url":{"type":"string","title":"Url"},"download_url":{"type":"string","title":"Download Url"}},"type":"object","required":["url","download_url"],"title":"DataFileDownloadResponse","description":"Short-lived links to a ready file: ``url`` renders in place, ``download_url`` saves."},"DataFileGroup":{"properties":{"scope":{"type":"string","enum":["member","team"],"title":"Scope"},"membership_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Membership Id"},"file_count":{"type":"integer","title":"File Count"}},"type":"object","required":["scope","membership_id","file_count"],"title":"DataFileGroup","description":"A readable folder: the shared team folder, or one member's own files.\n\n``membership_id`` is null for the team folder, which no single member owns."},"DataFileGroupListResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/DataFileGroup"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"DataFileGroupListResponse"},"DataFileListResponse":{"properties":{"files":{"items":{"$ref":"#/components/schemas/DataFileResponse"},"type":"array","title":"Files"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["files","total"],"title":"DataFileListResponse"},"DataFileResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"team_id":{"type":"string","format":"uuid","title":"Team Id"},"membership_id":{"type":"integer","title":"Membership Id"},"scope":{"type":"string","enum":["member","team"],"title":"Scope"},"status":{"type":"string","enum":["pending","ready"],"title":"Status"},"filename":{"type":"string","title":"Filename"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","team_id","membership_id","scope","status","filename","content_type","size_bytes","created_at","updated_at"],"title":"DataFileResponse","description":"Size is reserved up front and verified against the stored object on completion."},"DataFileUpdateRequest":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"}},"type":"object","required":["filename"],"title":"DataFileUpdateRequest"},"DataFileUploadResponse":{"properties":{"file":{"$ref":"#/components/schemas/DataFileResponse"},"upload_url":{"type":"string","title":"Upload Url"}},"type":"object","required":["file","upload_url"],"title":"DataFileUploadResponse","description":"A reserved data file and the presigned PUT that fills it."},"DeleteUploadResponse":{"properties":{"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["deleted"],"title":"DeleteUploadResponse"},"EnrichJobsResponse":{"properties":{"enrichments":{"additionalProperties":{"$ref":"#/components/schemas/JobEnrichmentData"},"propertyNames":{"format":"uuid"},"type":"object","title":"Enrichments"}},"type":"object","title":"EnrichJobsResponse"},"EnrichedJobThumbnail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"average_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Accuracy"},"total_tasks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tasks"},"completed_tasks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completed Tasks"},"failed_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Failed Count"},"invalidated_count":{"type":"integer","title":"Invalidated Count","default":0},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"user_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Avatar Url"},"taskset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Taskset Id"},"taskset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taskset Name"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"public":{"type":"boolean","title":"Public","default":false},"job_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Type"},"chart_data":{"items":{"$ref":"#/components/schemas/JobChartDataPoint"},"type":"array","title":"Chart Data"},"taskset_coverage":{"items":{"$ref":"#/components/schemas/JobTaskCoverage"},"type":"array","title":"Taskset Coverage"},"models":{"items":{"$ref":"#/components/schemas/TraceThumbnailModel"},"type":"array","title":"Models"}},"type":"object","required":["id","name","status","created_at"],"title":"EnrichedJobThumbnail"},"EnvLogEntry":{"properties":{"stream":{"type":"string","title":"Stream"},"log":{"type":"string","title":"Log"},"time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time"}},"type":"object","required":["stream","log"],"title":"EnvLogEntry","description":"A single line of container output."},"EnvLogsResponse":{"properties":{"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"logs":{"items":{"$ref":"#/components/schemas/EnvLogEntry"},"type":"array","title":"Logs"},"count":{"type":"integer","title":"Count"},"has_more":{"type":"boolean","title":"Has More","default":false},"last_timestamp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Timestamp"},"still_running":{"type":"boolean","title":"Still Running","default":false}},"type":"object","required":["trace_id","logs","count"],"title":"EnvLogsResponse"},"EnvManifest":{"properties":{"env":{"$ref":"#/components/schemas/ManifestEnv"},"capabilities":{"items":{"$ref":"#/components/schemas/ManifestCapability"},"type":"array","title":"Capabilities","default":[]},"tasks":{"items":{"$ref":"#/components/schemas/ManifestTask"},"type":"array","title":"Tasks","default":[]}},"type":"object","required":["env"],"title":"EnvManifest","description":"What build introspection captured from a v6 image's control channel."},"EnvironmentUsageChartPoint":{"properties":{"date":{"type":"string","title":"Date"},"hours":{"type":"number","title":"Hours","default":0.0},"cost":{"type":"number","title":"Cost","default":0.0},"count":{"type":"integer","title":"Count","default":0}},"type":"object","required":["date"],"title":"EnvironmentUsageChartPoint"},"EnvironmentUsageResponse":{"properties":{"summary":{"$ref":"#/components/schemas/EnvironmentUsageSummary"},"chart":{"items":{"$ref":"#/components/schemas/EnvironmentUsageChartPoint"},"type":"array","title":"Chart"},"environments":{"items":{"$ref":"#/components/schemas/EnvironmentUsageRow"},"type":"array","title":"Environments"},"org_type":{"type":"string","title":"Org Type"},"team_id":{"type":"string","format":"uuid","title":"Team Id"}},"type":"object","required":["summary","chart","environments","org_type","team_id"],"title":"EnvironmentUsageResponse"},"EnvironmentUsageRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"terminated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terminated At"},"status":{"type":"string","title":"Status"},"hourly_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hourly Rate"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"api_key_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Id"},"api_key_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Name"},"duration_hours":{"type":"number","title":"Duration Hours","default":0.0},"cost":{"type":"number","title":"Cost","default":0.0}},"type":"object","required":["id","created_at","status"],"title":"EnvironmentUsageRow"},"EnvironmentUsageSummary":{"properties":{"total_hours":{"type":"number","title":"Total Hours","default":0.0},"total_cost":{"type":"number","title":"Total Cost","default":0.0},"active_count":{"type":"integer","title":"Active Count","default":0},"total_count":{"type":"integer","title":"Total Count","default":0}},"type":"object","title":"EnvironmentUsageSummary"},"ErrorResponse":{"properties":{"error":{"type":"string","title":"Error"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["error","detail"],"title":"ErrorResponse","description":"The uniform `{error, detail}` error envelope returned for every 4xx/5xx."},"FailedSpanInfo":{"properties":{"seq":{"type":"integer","title":"Seq"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["seq"],"title":"FailedSpanInfo","description":"A telemetry span that failed to ingest — a gap in the trajectory."},"FileCaptureEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","const":"file_capture","title":"Kind","default":"file_capture"},"files_scanned":{"type":"integer","title":"Files Scanned","default":0},"files_changed":{"type":"integer","title":"Files Changed","default":0},"files_eligible":{"type":"integer","title":"Files Eligible","default":0},"files_captured":{"type":"integer","title":"Files Captured","default":0},"files_skipped":{"type":"integer","title":"Files Skipped","default":0},"truncated":{"type":"boolean","title":"Truncated","default":false},"files":{"items":{"$ref":"#/components/schemas/CapturedFile"},"type":"array","title":"Files","default":[]}},"additionalProperties":false,"type":"object","required":["id"],"title":"FileCaptureEvent","description":"Final changed-file artifacts captured from ``filetracking.capture``."},"FileChangeEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","const":"file_change","title":"Kind","default":"file_change"},"files_scanned":{"type":"integer","title":"Files Scanned","default":0},"files_changed":{"type":"integer","title":"Files Changed","default":0},"truncated":{"type":"boolean","title":"Truncated","default":false},"patches":{"items":{"$ref":"#/components/schemas/FilePatch"},"type":"array","title":"Patches","default":[]}},"additionalProperties":false,"type":"object","required":["id"],"title":"FileChangeEvent","description":"A workspace diff captured between steps.\n\nProjected from ``filetracking.diff`` under ``hud.filetracking.v1``: the\nfiles that changed since the previous scan.\n\nInterleaves with tool/agent events by ``seq``/time; correlate to the step\ntimeline by ``started_at``. ``truncated`` marks a big diff capped over the\nper-scan budget (e.g. an ``npm install`` / ``git checkout``)."},"FileManifestEntry":{"properties":{"path":{"type":"string","title":"Path"},"size":{"type":"integer","title":"Size","default":0},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"}},"additionalProperties":false,"type":"object","required":["path"],"title":"FileManifestEntry","description":"One file in a workspace snapshot manifest: path + size + content hash.\n\nThe manifest carries identity, not content. The viewer derives unchanged\ncontent from immutable build source and applies setup changes separately."},"FilePatch":{"properties":{"path":{"type":"string","title":"Path"},"status":{"type":"string","enum":["added","modified","deleted"],"title":"Status"},"patch":{"type":"string","title":"Patch","default":""},"size_before":{"type":"integer","title":"Size Before","default":0},"size_after":{"type":"integer","title":"Size After","default":0},"content_hash_before":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash Before"},"content_hash_after":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash After"}},"additionalProperties":false,"type":"object","required":["path","status"],"title":"FilePatch","description":"A unified-diff patch for one file in a workspace change.\n\nByte-identical to the legacy ``tool_call.result_data.file_diff`` patch shape\nso the frontend's existing diff parsing/reconstruction ports unchanged.\n``patch`` may be a placeholder string for over-cap files when ``truncated``."},"FileSetupEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","const":"file_setup","title":"Kind","default":"file_setup"},"files_scanned":{"type":"integer","title":"Files Scanned","default":0},"files_changed":{"type":"integer","title":"Files Changed","default":0},"truncated":{"type":"boolean","title":"Truncated","default":false},"patches":{"items":{"$ref":"#/components/schemas/FilePatch"},"type":"array","title":"Patches","default":[]}},"additionalProperties":false,"type":"object","required":["id"],"title":"FileSetupEvent","description":"Workspace changes made by scenario setup before the agent starts."},"FileSnapshotEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","const":"file_snapshot","title":"Kind","default":"file_snapshot"},"files_scanned":{"type":"integer","title":"Files Scanned","default":0},"truncated":{"type":"boolean","title":"Truncated","default":false},"files":{"items":{"$ref":"#/components/schemas/FileManifestEntry"},"type":"array","title":"Files","default":[]}},"additionalProperties":false,"type":"object","required":["id"],"title":"FileSnapshotEvent","description":"A post-setup workspace manifest of paths + hashes captured before the agent starts.\n\nEmitted as ``filetracking.snapshot`` under ``hud.filetracking.v1``.\n\nBuild source plus :class:`FileSetupEvent` patches derive this state; applying\nsubsequent :class:`FileChangeEvent` patches reconstructs the agent timeline."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Icon":{"properties":{"src":{"type":"string","title":"Src"},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mimetype"},"sizes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sizes"}},"additionalProperties":true,"type":"object","required":["src"],"title":"Icon","description":"An icon for display in user interfaces."},"InferenceEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","const":"robot_inference","title":"Kind","default":"robot_inference"},"tick":{"type":"integer","title":"Tick","default":0},"chunk":{"items":{"items":{"type":"number"},"type":"array"},"type":"array","title":"Chunk","default":[]},"chunk_length":{"type":"integer","title":"Chunk Length","default":1},"names":{"items":{"type":"string"},"type":"array","title":"Names","default":[]}},"additionalProperties":false,"type":"object","required":["id"],"title":"InferenceEvent","description":"One robot inference (``step.inference`` under ``hud.robot.step.v1``).\n\nCarries the ``[T, A]`` action chunk the policy produced at a re-infer\n``tick``.\n\nEmitted only on re-infer ticks (a chunk boundary), so it marks the\ndecision points the viewer renders on its episode slider. ``tick`` matches\nthe paired :class:`ObservationEvent`."},"InferenceUsageAggregateResponse":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"bucket_width":{"type":"string","enum":["1h","1d"],"title":"Bucket Width"},"group_by":{"anyOf":[{"type":"string","enum":["api_key","byok","model","user","route"]},{"type":"null"}],"title":"Group By"},"total_requests":{"type":"integer","title":"Total Requests"},"total_cost":{"type":"number","title":"Total Cost"},"buckets":{"items":{"$ref":"#/components/schemas/InferenceUsageBucket"},"type":"array","title":"Buckets"}},"type":"object","required":["start","end","bucket_width","total_requests","total_cost","buckets"],"title":"InferenceUsageAggregateResponse"},"InferenceUsageBucket":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"groups":{"items":{"$ref":"#/components/schemas/InferenceUsageGroup"},"type":"array","title":"Groups"}},"type":"object","required":["start","groups"],"title":"InferenceUsageBucket"},"InferenceUsageGroup":{"properties":{"api_key_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Id"},"api_key_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Name"},"api_key_is_default":{"type":"boolean","title":"Api Key Is Default","default":false},"api_key_owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Owner"},"byok":{"type":"boolean","title":"Byok","default":false},"byok_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Byok Credential Id"},"byok_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Byok Name"},"byok_scope":{"anyOf":[{"type":"string","enum":["member","team"]},{"type":"null"}],"title":"Byok Scope"},"byok_owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Byok Owner"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"requests":{"type":"integer","title":"Requests"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"cached_input_tokens":{"type":"integer","title":"Cached Input Tokens"},"cost":{"type":"number","title":"Cost"}},"type":"object","required":["requests","input_tokens","output_tokens","cached_input_tokens","cost"],"title":"InferenceUsageGroup","description":"One group within a bucket.\n\nExactly one dimension field is set, matching the requested ``group_by``;\nall are None for ungrouped queries. ``api_key_id``/``user_id`` may be set\nwith a None name (deleted user, key created before attribution); a None\n``api_key_id`` group under ``group_by=api_key`` collects Clerk-session\n(non-key) usage."},"InferenceUsageLog":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"model":{"type":"string","title":"Model"},"cost":{"type":"number","title":"Cost"},"type":{"type":"string","title":"Type"},"model_checkpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Checkpoint Id"},"checkpoint":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Checkpoint"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"api_key_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Id"},"api_key_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Name"},"byok":{"type":"boolean","title":"Byok","default":false},"byok_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Byok Credential Id"}},"type":"object","required":["id","created_at","model","cost","type"],"title":"InferenceUsageLog"},"InferenceUsageResponse":{"properties":{"logs":{"items":{"$ref":"#/components/schemas/InferenceUsageLog"},"type":"array","title":"Logs"},"total_count":{"type":"integer","title":"Total Count"},"org_type":{"type":"string","title":"Org Type"},"team_id":{"type":"string","format":"uuid","title":"Team Id"}},"type":"object","required":["logs","total_count","org_type","team_id"],"title":"InferenceUsageResponse","description":"Raw log listing for the request table.\n\nAggregates (totals, group-bys) live on ``GET /v2/usage/inference``."},"JobChartDataPoint":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reward"},"status":{"type":"string","title":"Status"},"is_valid":{"type":"boolean","title":"Is Valid","default":true},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"task_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Version Id"}},"type":"object","required":["id","status"],"title":"JobChartDataPoint"},"JobEnrichmentData":{"properties":{"taskset_coverage":{"items":{"$ref":"#/components/schemas/JobTaskCoverage"},"type":"array","title":"Taskset Coverage"},"models":{"items":{"$ref":"#/components/schemas/TraceThumbnailModel"},"type":"array","title":"Models"},"taskset":{"anyOf":[{"$ref":"#/components/schemas/JobEnrichmentTaskset"},{"type":"null"}]}},"type":"object","title":"JobEnrichmentData"},"JobEnrichmentTaskset":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id"],"title":"JobEnrichmentTaskset"},"JobEntityLinkInfo":{"properties":{"registry":{"anyOf":[{"$ref":"#/components/schemas/JobEntityRef"},{"type":"null"}]},"taskset":{"anyOf":[{"$ref":"#/components/schemas/JobEntityRef"},{"type":"null"}]},"model":{"anyOf":[{"$ref":"#/components/schemas/JobEntityRef"},{"type":"null"}]}},"type":"object","title":"JobEntityLinkInfo"},"JobEntityLinksResponse":{"properties":{"links":{"items":{"$ref":"#/components/schemas/JobEntityLinkInfo"},"type":"array","title":"Links"}},"type":"object","title":"JobEntityLinksResponse"},"JobEntityRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"JobEntityRef"},"JobMetadata-Output":{"properties":{"resolved_agents":{"items":{"$ref":"#/components/schemas/ResolvedAgent"},"type":"array","title":"Resolved Agents","default":[]},"sdk_agent_params":{"additionalProperties":true,"type":"object","title":"Sdk Agent Params","default":{}},"parent_job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Job Id"}},"additionalProperties":true,"type":"object","title":"JobMetadata"},"JobResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"taskset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Taskset Id"},"taskset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taskset Name"},"status":{"type":"string","title":"Status"},"max_steps":{"type":"integer","title":"Max Steps"},"group_size":{"type":"integer","title":"Group Size"},"max_concurrent":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Concurrent"},"metadata":{"$ref":"#/components/schemas/JobMetadata-Output"},"is_remote":{"type":"boolean","title":"Is Remote"},"public":{"type":"boolean","title":"Public","default":false},"is_owner":{"type":"boolean","title":"Is Owner","default":false},"can_edit":{"type":"boolean","title":"Can Edit","default":false},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"user_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Avatar Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","status","max_steps","group_size","is_remote","created_at"],"title":"JobResponse"},"JobSummary":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"total_traces":{"type":"integer","title":"Total Traces","default":0},"total_tasks":{"type":"integer","title":"Total Tasks","default":0},"completed":{"type":"integer","title":"Completed","default":0},"running":{"type":"integer","title":"Running","default":0},"pending":{"type":"integer","title":"Pending","default":0},"initializing":{"type":"integer","title":"Initializing","default":0},"cancelling":{"type":"integer","title":"Cancelling","default":0},"error":{"type":"integer","title":"Error","default":0},"cancelled":{"type":"integer","title":"Cancelled","default":0},"avg_reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Reward"}},"type":"object","required":["job_id"],"title":"JobSummary"},"JobTaskCoverage":{"properties":{"task_id":{"type":"string","format":"uuid","title":"Task Id"},"task_name":{"type":"string","title":"Task Name"},"trace_count":{"type":"integer","title":"Trace Count"},"avg_reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Reward"},"statuses":{"items":{"type":"string"},"type":"array","title":"Statuses"},"invalidated_count":{"type":"integer","title":"Invalidated Count","default":0}},"type":"object","required":["task_id","task_name","trace_count"],"title":"JobTaskCoverage"},"JobThumbnailItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"job_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Name"},"status":{"type":"string","title":"Status"},"reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reward"},"is_valid":{"type":"boolean","title":"Is Valid","default":true},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"views":{"type":"integer","title":"Views","default":0},"task_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Version Id"},"task_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Slug"},"task_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Task Version Number"},"task_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Prompt"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"inference_llm_model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Inference Llm Model Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"user_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Avatar Url"},"model":{"anyOf":[{"$ref":"#/components/schemas/TraceThumbnailModel"},{"type":"null"}]},"thumbnail_ascii":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Ascii"},"comment_count":{"type":"integer","title":"Comment Count","default":0},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Id"}},"type":"object","required":["id","job_id","status","created_at"],"title":"JobThumbnailItem","description":"Trace tile for the Job detail's Traces tab.\n\nAdds list-tab-specific fields (comments, ascii preview, group_id) on\ntop of the shared :class:`TraceThumbnail` shape."},"JobThumbnailsResponse":{"properties":{"thumbnails":{"items":{"$ref":"#/components/schemas/JobThumbnailItem"},"type":"array","title":"Thumbnails"},"next_offset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Offset"},"has_more":{"type":"boolean","title":"Has More","default":false},"category_counts":{"anyOf":[{"$ref":"#/components/schemas/ThumbnailCategoryCounts"},{"type":"null"}]}},"type":"object","required":["thumbnails"],"title":"JobThumbnailsResponse"},"JobUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"JobUpdateRequest"},"JobUsageCostBreakdown":{"properties":{"cost":{"type":"number","title":"Cost","default":0.0},"count":{"type":"integer","title":"Count","default":0},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"}},"type":"object","title":"JobUsageCostBreakdown"},"JobUsageResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"job_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Name"},"trace_count":{"type":"integer","title":"Trace Count","default":0},"environment_cost":{"$ref":"#/components/schemas/JobUsageCostBreakdown"},"inference_cost":{"$ref":"#/components/schemas/JobUsageCostBreakdown"},"inference_cost_incomplete":{"type":"boolean","title":"Inference Cost Incomplete","default":false},"total_cost":{"type":"number","title":"Total Cost","default":0.0},"training_cost":{"anyOf":[{"$ref":"#/components/schemas/TrainingCostInfo"},{"type":"null"}]},"traces":{"items":{"$ref":"#/components/schemas/TraceUsageBreakdown"},"type":"array","title":"Traces"},"environments_still_running":{"type":"integer","title":"Environments Still Running","default":0},"calculated_at":{"type":"string","format":"date-time","title":"Calculated At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["job_id","calculated_at"],"title":"JobUsageResponse"},"LatestBuildSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"manifest":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Manifest"},"lock":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Lock"}},"type":"object","required":["id","status"],"title":"LatestBuildSummary","description":"Projection of `builds` returned alongside a registry."},"LifecycleStage":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","maxLength":80,"minLength":1,"title":"Label"}},"type":"object","required":["key","label"],"title":"LifecycleStage"},"ManifestCapability":{"properties":{"name":{"type":"string","title":"Name"},"protocol":{"type":"string","title":"Protocol"}},"type":"object","required":["name","protocol"],"title":"ManifestCapability","description":"Capability declaration, stripped to its stable identity.\n\n`url` and `params` from the live `hello` reply are deliberately absent:\nthey are ephemeral (substrate-local addresses) and may carry secrets\n(SSH keys), so the build pipeline never transmits or persists them."},"ManifestEnv":{"properties":{"name":{"type":"string","title":"Name"},"version":{"type":"string","title":"Version","default":"0.0.0"}},"type":"object","required":["name"],"title":"ManifestEnv","description":"Env identity from the control channel's `hello` reply."},"ManifestTask":{"properties":{"id":{"type":"string","title":"Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"args":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Args"},"input":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input"},"returns":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Returns"}},"type":"object","required":["id"],"title":"ManifestTask","description":"One task definition from the control channel's `tasks.list` reply.\n\nAll schemas are JSON Schemas generated by the SDK: `args` describes the\ntask function's parameters (what a stored task's `args` must satisfy);\n`input`/`returns` describe the agent's I/O types when the task declares\nthem."},"McpLock":{"properties":{"tools":{"items":{"$ref":"#/components/schemas/Tool"},"type":"array","title":"Tools","default":[]},"prompts":{"items":{"$ref":"#/components/schemas/Prompt"},"type":"array","title":"Prompts","default":[]},"resources":{"items":{"$ref":"#/components/schemas/Resource"},"type":"array","title":"Resources","default":[]},"transport":{"type":"string","enum":["http","stdio","channel"],"title":"Transport","default":"http"}},"type":"object","title":"McpLock"},"MemberSecretCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"}},"type":"object","required":["name","value"],"title":"MemberSecretCreateRequest"},"MemberSecretItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"masked_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Masked Value"}},"type":"object","required":["id","name"],"title":"MemberSecretItem"},"MemberSecretUpdateRequest":{"properties":{"value":{"type":"string","title":"Value"}},"type":"object","required":["value"],"title":"MemberSecretUpdateRequest"},"MemberSecretsListResponse":{"properties":{"secrets":{"items":{"$ref":"#/components/schemas/MemberSecretItem"},"type":"array","title":"Secrets"}},"type":"object","required":["secrets"],"title":"MemberSecretsListResponse"},"ModelForkRequest":{"properties":{"source_model_id":{"type":"string","format":"uuid","title":"Source Model Id"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"}},"type":"object","required":["source_model_id","name"],"title":"ModelForkRequest","description":"Create a new trainable model derived from an existing (trainable) one."},"ModelInferenceLogEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"route":{"type":"string","title":"Route"},"status":{"type":"string","title":"Status"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"streaming":{"type":"boolean","title":"Streaming","default":false},"prompt_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens"},"completion_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens"},"total_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens"},"cost":{"type":"number","title":"Cost","default":0.0},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"trace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Trace Id"}},"type":"object","required":["id","created_at","route","status"],"title":"ModelInferenceLogEntry","description":"One gateway call against this model, scoped to the caller's team."},"ModelResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"model_name":{"type":"string","title":"Model Name"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"provider":{"anyOf":[{"$ref":"#/components/schemas/ProviderResponse"},{"type":"null"}]},"routes":{"items":{"type":"string"},"type":"array","title":"Routes","default":[]},"is_beta":{"type":"boolean","title":"Is Beta","default":false},"hidden":{"type":"boolean","title":"Hidden","default":false},"is_trainable":{"type":"boolean","title":"Is Trainable","default":false},"public":{"type":"boolean","title":"Public","default":true},"checkpoint_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Checkpoint Count"},"inference_count":{"type":"integer","title":"Inference Count","default":0},"fork_of_model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Fork Of Model Id"},"fork_of_model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fork Of Model Name"},"context_window":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Window"},"sdk_agent_type":{"type":"string","title":"Sdk Agent Type"},"input_cost_per_token":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Input Cost Per Token"},"output_cost_per_token":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Output Cost Per Token"},"pricing_config":{"additionalProperties":true,"type":"object","title":"Pricing Config","default":{}},"request_defaults":{"additionalProperties":true,"type":"object","title":"Request Defaults","default":{}},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","default":{}},"created_at":{"type":"string","format":"date-time","title":"Created At"},"can_edit":{"type":"boolean","title":"Can Edit","default":false}},"type":"object","required":["id","model_name","sdk_agent_type","created_at"],"title":"ModelResponse"},"ModelResultsResponse":{"properties":{"model_id":{"type":"string","format":"uuid","title":"Model Id"},"checkpoint_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Checkpoint Ids","default":[]},"results":{"items":{"$ref":"#/components/schemas/ModelTasksetResultRow"},"type":"array","title":"Results"},"suggested":{"items":{"$ref":"#/components/schemas/ModelSuggestedTaskset"},"type":"array","title":"Suggested"}},"type":"object","required":["model_id","results","suggested"],"title":"ModelResultsResponse"},"ModelSuggestedTaskset":{"properties":{"taskset_id":{"type":"string","format":"uuid","title":"Taskset Id"},"taskset_name":{"type":"string","title":"Taskset Name"},"is_public":{"type":"boolean","title":"Is Public"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"},"task_count":{"type":"integer","title":"Task Count"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["taskset_id","taskset_name","is_public","task_count"],"title":"ModelSuggestedTaskset","description":"A taskset the model has not been evaluated on yet."},"ModelTaskScorePoint":{"properties":{"task_id":{"type":"string","format":"uuid","title":"Task Id"},"avg_reward":{"type":"number","title":"Avg Reward"},"trace_count":{"type":"integer","title":"Trace Count"}},"type":"object","required":["task_id","avg_reward","trace_count"],"title":"ModelTaskScorePoint"},"ModelTasksetResultRow":{"properties":{"taskset_id":{"type":"string","format":"uuid","title":"Taskset Id"},"taskset_name":{"type":"string","title":"Taskset Name"},"is_public":{"type":"boolean","title":"Is Public"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"},"total_tasks":{"type":"integer","title":"Total Tasks"},"tasks_with_traces":{"type":"integer","title":"Tasks With Traces"},"avg_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Score"},"tasks_in_range_0_99":{"type":"integer","title":"Tasks In Range 0 99"},"tasks_in_range_5_75":{"type":"integer","title":"Tasks In Range 5 75"},"tasks_in_range_15_40":{"type":"integer","title":"Tasks In Range 15 40"},"min_traces_per_task":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Traces Per Task"},"max_traces_per_task":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Traces Per Task"},"per_task_scores":{"items":{"$ref":"#/components/schemas/ModelTaskScorePoint"},"type":"array","title":"Per Task Scores"}},"type":"object","required":["taskset_id","taskset_name","is_public","total_tasks","tasks_with_traces","avg_score","tasks_in_range_0_99","tasks_in_range_5_75","tasks_in_range_15_40","min_traces_per_task","max_traces_per_task","per_task_scores"],"title":"ModelTasksetResultRow","description":"A model's performance on one taskset, aggregated from its graded traces."},"ModelUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"hidden":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden"},"request_defaults":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Request Defaults"}},"type":"object","title":"ModelUpdate","description":"Editable catalog fields. Admin-only (see ModelService.update)."},"ObservationEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","const":"robot_observation","title":"Kind","default":"robot_observation"},"tick":{"type":"integer","title":"Tick","default":0},"state":{"additionalProperties":{"$ref":"#/components/schemas/StateFeature"},"type":"object","title":"State","default":{}}},"additionalProperties":false,"type":"object","required":["id"],"title":"ObservationEvent","description":"One robot observation tick (``step.observation`` under ``hud.robot.step.v1``):\n\nthe numeric state the policy saw at ``tick`` (camera frames travel as\n``VideoSegmentEvent`` streams).\n\n``state`` maps each env-contract feature group -> its :class:`StateFeature`\n(per-dim names + values). Pairs with the :class:`InferenceEvent` at the\nsame ``tick``."},"PaginatedResponse_JobResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/JobResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"PaginatedResponse[JobResponse]"},"PaginatedResponse_ModelInferenceLogEntry_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ModelInferenceLogEntry"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"PaginatedResponse[ModelInferenceLogEntry]"},"PaginatedResponse_ModelResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ModelResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"PaginatedResponse[ModelResponse]"},"PaginatedResponse_RegistryDetailResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RegistryDetailResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"PaginatedResponse[RegistryDetailResponse]"},"PaginatedResponse_TasksetResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TasksetResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"PaginatedResponse[TasksetResponse]"},"PaginatedResponse_TraceResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TraceResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"PaginatedResponse[TraceResponse]"},"Prompt":{"properties":{"name":{"type":"string","title":"Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"arguments":{"anyOf":[{"items":{"$ref":"#/components/schemas/PromptArgument"},"type":"array"},{"type":"null"}],"title":"Arguments"},"icons":{"anyOf":[{"items":{"$ref":"#/components/schemas/Icon"},"type":"array"},{"type":"null"}],"title":"Icons"},"_meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"}},"additionalProperties":true,"type":"object","required":["name"],"title":"Prompt","description":"A prompt or prompt template that the server offers."},"PromptArgument":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Required"}},"additionalProperties":true,"type":"object","required":["name"],"title":"PromptArgument","description":"An argument for a prompt template."},"ProviderResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"api_base":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Base"},"supported_routes":{"items":{"type":"string"},"type":"array","title":"Supported Routes","default":[]},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","default":{}}},"type":"object","required":["id","name"],"title":"ProviderResponse"},"PublishJobResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"public_url":{"type":"string","title":"Public Url"},"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["message","public_url","job_id"],"title":"PublishJobResponse"},"RawEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","const":"raw","title":"Kind","default":"raw"},"category":{"type":"string","title":"Category"},"name":{"type":"string","title":"Name"},"attributes":{"additionalProperties":true,"type":"object","title":"Attributes","default":{}}},"additionalProperties":false,"type":"object","required":["id","category","name"],"title":"RawEvent","description":"Fallback for spans we don't know how to project.\n\nCovers new SDK categories and custom user @instrument calls. Kept so the\nviewer can still display *something* without dropping data."},"ReadyRequirementsEvaluation":{"properties":{"passed":{"type":"boolean","title":"Passed"},"k":{"type":"integer","minimum":0.0,"title":"K"},"candidate_count":{"type":"integer","minimum":0.0,"title":"Candidate Count"},"evaluated_trace_ids":{"items":{"type":"string"},"type":"array","title":"Evaluated Trace Ids"},"requirements_version":{"type":"integer","title":"Requirements Version","default":1},"checks":{"items":{"$ref":"#/components/schemas/RequirementCheck"},"type":"array","title":"Checks"},"can_override":{"type":"boolean","title":"Can Override","default":true},"has_requirements":{"type":"boolean","const":true,"title":"Has Requirements","default":true},"evaluated_at":{"type":"string","format":"date-time","title":"Evaluated At"}},"type":"object","required":["passed","k","candidate_count","evaluated_at"],"title":"ReadyRequirementsEvaluation","description":"``evaluated_trace_ids`` is the K traces actually scored.\n\n``candidate_count`` is the total eligible pool. When ``candidate_count < k``\nthe count check fails and per-K checks score whatever candidates exist."},"ReadyRequirementsNotConfigured":{"properties":{"passed":{"type":"boolean","const":true,"title":"Passed","default":true},"has_requirements":{"type":"boolean","const":false,"title":"Has Requirements","default":false},"evaluated_at":{"type":"string","format":"date-time","title":"Evaluated At"}},"type":"object","required":["evaluated_at"],"title":"ReadyRequirementsNotConfigured","description":"Sentinel for \"no config on the taskset\".\n\nDiscriminated by ``has_requirements`` so the UI can hide the REQUIREMENTS\nsection entirely vs. render an empty card."},"RegistryDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"registry_type":{"type":"string","title":"Registry Type"},"public":{"type":"boolean","title":"Public"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"latest_build_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Build Id"},"github_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github Url"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"entry_folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entry Folder"},"build_args":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Build Args"},"instance_config":{"additionalProperties":true,"type":"object","title":"Instance Config","default":{}},"star_count":{"type":"integer","title":"Star Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"latest_build":{"anyOf":[{"$ref":"#/components/schemas/LatestBuildSummary"},{"type":"null"}]},"is_starred":{"type":"boolean","title":"Is Starred","default":false},"is_owner":{"type":"boolean","title":"Is Owner","default":false},"can_edit":{"type":"boolean","title":"Can Edit","default":false},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"owner_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Avatar Url"},"team_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Name"},"scenario_count":{"type":"integer","title":"Scenario Count","default":0}},"type":"object","required":["id","name","registry_type","public","created_at","updated_at"],"title":"RegistryDetailResponse"},"RegistryEnvVarBatchItem":{"properties":{"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"}},"type":"object","required":["name","value"],"title":"RegistryEnvVarBatchItem"},"RegistryEnvVarBatchRequest":{"properties":{"registry_id":{"type":"string","format":"uuid","title":"Registry Id"},"variables":{"items":{"$ref":"#/components/schemas/RegistryEnvVarBatchItem"},"type":"array","title":"Variables"}},"type":"object","required":["registry_id","variables"],"title":"RegistryEnvVarBatchRequest"},"RegistryEnvVarBatchResponse":{"properties":{"created":{"type":"integer","title":"Created"},"updated":{"type":"integer","title":"Updated"},"deleted":{"type":"integer","title":"Deleted"}},"type":"object","required":["created","updated","deleted"],"title":"RegistryEnvVarBatchResponse"},"RegistryEnvVarCheckItem":{"properties":{"registry_id":{"type":"string","format":"uuid","title":"Registry Id"},"required_vars":{"items":{"type":"string"},"type":"array","title":"Required Vars"},"configured_vars":{"items":{"type":"string"},"type":"array","title":"Configured Vars"},"missing_vars":{"items":{"type":"string"},"type":"array","title":"Missing Vars"},"is_complete":{"type":"boolean","title":"Is Complete"}},"type":"object","required":["registry_id","required_vars","configured_vars","missing_vars","is_complete"],"title":"RegistryEnvVarCheckItem"},"RegistryEnvVarCheckRequest":{"properties":{"registry_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Registry Ids"}},"type":"object","required":["registry_ids"],"title":"RegistryEnvVarCheckRequest"},"RegistryEnvVarCheckResponse":{"properties":{"environments":{"items":{"$ref":"#/components/schemas/RegistryEnvVarCheckItem"},"type":"array","title":"Environments"}},"type":"object","required":["environments"],"title":"RegistryEnvVarCheckResponse"},"RegistryEnvVarCreateRequest":{"properties":{"registry_id":{"type":"string","format":"uuid","title":"Registry Id"},"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"}},"type":"object","required":["registry_id","name","value"],"title":"RegistryEnvVarCreateRequest"},"RegistryEnvVarItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"registry_id":{"type":"string","format":"uuid","title":"Registry Id"},"name":{"type":"string","title":"Name"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"masked_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Masked Value"}},"type":"object","required":["id","registry_id","name"],"title":"RegistryEnvVarItem"},"RegistryEnvVarUpdateRequest":{"properties":{"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","title":"RegistryEnvVarUpdateRequest"},"RegistryEnvVarsListResponse":{"properties":{"variables":{"items":{"$ref":"#/components/schemas/RegistryEnvVarItem"},"type":"array","title":"Variables"}},"type":"object","required":["variables"],"title":"RegistryEnvVarsListResponse"},"RegistrySourceUrlResponse":{"properties":{"registry_id":{"type":"string","format":"uuid","title":"Registry Id"},"build_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Build Id"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"github_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github Url"}},"type":"object","required":["registry_id"],"title":"RegistrySourceUrlResponse","description":"Source archive locator for a selected build, plus legacy repo metadata."},"RelatedKind":{"type":"string","enum":["job","task","recent","discover"],"title":"RelatedKind"},"RelatedOrder":{"type":"string","enum":["asc","desc"],"title":"RelatedOrder"},"RequirementCheck":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"passed":{"type":"boolean","title":"Passed"},"severity":{"type":"string","enum":["error","warning"],"title":"Severity","default":"error"},"required":{"type":"string","title":"Required"},"current":{"type":"string","title":"Current"},"how_to_fix":{"type":"string","title":"How To Fix"},"offending_trace_ids":{"items":{"type":"string"},"type":"array","title":"Offending Trace Ids"}},"type":"object","required":["key","label","passed","required","current","how_to_fix"],"title":"RequirementCheck","description":"One requirement check result with pre-formatted display strings.\n\n``required`` and ``current`` are pre-formatted strings — the UI renders\nthem verbatim to avoid format drift between flyout / dialog / audit views.\n``key`` is open (QA checks use ``qa.<agent_id>``)."},"ResolvedAgent":{"properties":{"model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id"},"model_name":{"type":"string","title":"Model Name"},"sdk_agent_type":{"type":"string","title":"Sdk Agent Type"}},"type":"object","required":["model_name","sdk_agent_type"],"title":"ResolvedAgent"},"Resource":{"properties":{"name":{"type":"string","title":"Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"uri":{"type":"string","minLength":1,"format":"uri","title":"Uri"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mimetype"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"},"icons":{"anyOf":[{"items":{"$ref":"#/components/schemas/Icon"},"type":"array"},{"type":"null"}],"title":"Icons"},"annotations":{"anyOf":[{"$ref":"#/components/schemas/Annotations"},{"type":"null"}]},"_meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"}},"additionalProperties":true,"type":"object","required":["name","uri"],"title":"Resource","description":"A known resource that the server is capable of reading."},"RolloutBatchResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"accepted":{"type":"integer","title":"Accepted"},"rejected":{"type":"integer","title":"Rejected"},"traces":{"items":{"$ref":"#/components/schemas/RolloutResponse"},"type":"array","title":"Traces","default":[]}},"type":"object","required":["job_id","accepted","rejected"],"title":"RolloutBatchResponse"},"RolloutResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"status":{"type":"string","title":"Status","default":"queued"}},"type":"object","required":["job_id","trace_id"],"title":"RolloutResponse"},"RolloutRunRequest":{"properties":{"task_version_id":{"type":"string","format":"uuid","title":"Task Version Id"},"model_id":{"type":"string","format":"uuid","title":"Model Id"},"trace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Trace Id"},"max_steps":{"type":"integer","title":"Max Steps","default":100},"trace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Name"},"runtime_config":{"anyOf":[{"$ref":"#/components/schemas/SubmittedRuntimeConfig"},{"type":"null"}]}},"type":"object","required":["task_version_id","model_id"],"title":"RolloutRunRequest","description":"Single-trace launch."},"RolloutSubmitRequest":{"properties":{"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Id"},"env":{"type":"string","minLength":1,"title":"Env"},"task":{"type":"string","minLength":1,"title":"Task"},"slug":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Slug"},"args":{"additionalProperties":true,"type":"object","title":"Args","default":{}},"runtime_config":{"anyOf":[{"$ref":"#/components/schemas/SubmittedRuntimeConfig"},{"type":"null"}]},"agent":{"$ref":"#/components/schemas/SubmittedAgentSpec"}},"type":"object","required":["trace_id","job_id","env","task","agent"],"title":"RolloutSubmitRequest","description":"One v6 rollout under the SDK's job/trace identity.\n\nThe SDK's rollout atom mints ``trace_id``/``job_id`` and submits the task\nby reference — env name, task id (the ``@env.task`` name), bound args —\nplus the serialized agent spec. The platform materializes the\ntask_version chain, schedules an instance, and runs the rollout co-located\nwith the env; the SDK polls the trace to completion.\n\n``slug`` is the taskset row key (``Task.external_id`` / portable\n``Task.slug``). It is distinct from ``task`` (the ``@env.task`` id used for\nscenario lookup) and is only needed when a job's taskset has multiple\nversions sharing the same scenario+args."},"SDKBatchResponse":{"properties":{"total":{"type":"integer","title":"Total"},"accepted":{"type":"integer","title":"Accepted"},"rejected":{"type":"integer","title":"Rejected"},"results":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Results"}},"type":"object","required":["total","accepted","rejected","results"],"title":"SDKBatchResponse","description":"Response format the SDK expects from run_list."},"ScenarioArgument":{"properties":{"name":{"type":"string","title":"Name"},"required":{"type":"boolean","title":"Required","default":false},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"default":{"anyOf":[{},{"type":"null"}],"title":"Default"},"inputSchema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputschema"}},"type":"object","required":["name"],"title":"ScenarioArgument"},"ScenarioEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","enum":["scenario_setup","scenario_evaluate"],"title":"Kind"},"name":{"type":"string","title":"Name"},"arguments":{"additionalProperties":true,"type":"object","title":"Arguments","default":{}},"result":{"anyOf":[{},{"type":"null"}],"title":"Result"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"additionalProperties":false,"type":"object","required":["id","kind","name"],"title":"ScenarioEvent","description":"A task-lifecycle RPC (``tasks.start`` / ``tasks.grade``).\n\nProjected from the ``task``-sourced step the SDK harness records around the\nrun. Kept under the legacy ``scenario_*`` kinds the viewer consumes."},"ScenarioResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"registry_id":{"type":"string","format":"uuid","title":"Registry Id"},"build_id":{"type":"string","format":"uuid","title":"Build Id"},"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"args_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Args Schema"},"arguments":{"items":{"$ref":"#/components/schemas/ScenarioArgument"},"type":"array","title":"Arguments","default":[]},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","default":{}},"trace_name_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Name Template"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","registry_id","build_id","name","created_at"],"title":"ScenarioResponse"},"SetHeadRequest":{"properties":{"checkpoint_id":{"type":"string","format":"uuid","title":"Checkpoint Id"}},"type":"object","required":["checkpoint_id"],"title":"SetHeadRequest","description":"Point a trainable model's active checkpoint (head) at one of its nodes."},"SpendInterval":{"type":"string","enum":["week","month"],"title":"SpendInterval"},"SpendLimitAction":{"type":"string","enum":["alert","block"],"title":"SpendLimitAction"},"SpendLimitCreateRequest":{"properties":{"api_key_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Id"},"membership_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Membership Id"},"parent_limit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Limit Id"},"threshold_percent":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"},{"type":"null"}],"title":"Threshold Percent"},"interval":{"$ref":"#/components/schemas/SpendInterval"},"amount_usd":{"anyOf":[{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Amount Usd"},"action":{"$ref":"#/components/schemas/SpendLimitAction"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["interval","action"],"title":"SpendLimitCreateRequest","description":"Create an absolute limit or a percentage alert.\n\nSet one scope ID for an API-key or membership limit, or neither for a team\nlimit. Percentage alerts set ``parent_limit_id`` and\n``threshold_percent``; their interval must match the parent and their\namount is inherited."},"SpendLimitItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"api_key_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Id"},"api_key_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Name"},"membership_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Membership Id"},"member_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Member Name"},"parent_limit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Limit Id"},"threshold_percent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Threshold Percent"},"interval":{"$ref":"#/components/schemas/SpendInterval"},"amount_usd":{"type":"string","title":"Amount Usd"},"action":{"$ref":"#/components/schemas/SpendLimitAction"},"enabled":{"type":"boolean","title":"Enabled"},"spend_usd":{"type":"string","title":"Spend Usd"},"period_start":{"type":"string","title":"Period Start"},"period_end":{"type":"string","title":"Period End"},"editable":{"type":"boolean","title":"Editable"}},"type":"object","required":["id","api_key_id","api_key_name","membership_id","member_name","parent_limit_id","threshold_percent","interval","amount_usd","action","enabled","spend_usd","period_start","period_end","editable"],"title":"SpendLimitItem","description":"One limit with its current-period spend.\n\nAPI-key and membership limits use their corresponding ID. Team limits have\nneither; percentage alerts additionally identify their parent team limit."},"SpendLimitListResponse":{"properties":{"limits":{"items":{"$ref":"#/components/schemas/SpendLimitItem"},"type":"array","title":"Limits"}},"type":"object","required":["limits"],"title":"SpendLimitListResponse"},"SpendLimitUpdateRequest":{"properties":{"amount_usd":{"anyOf":[{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Amount Usd"},"threshold_percent":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"},{"type":"null"}],"title":"Threshold Percent"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"SpendLimitUpdateRequest"},"StateFeature":{"properties":{"names":{"items":{"type":"string"},"type":"array","title":"Names","default":[]},"values":{"items":{"type":"number"},"type":"array","title":"Values","default":[]}},"additionalProperties":false,"type":"object","title":"StateFeature","description":"One observation feature group: per-dimension labels + values."},"StopInstancesRequest":{"properties":{"registry_id":{"type":"string","format":"uuid","title":"Registry Id"},"instance_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"minItems":1,"title":"Instance Ids"}},"type":"object","required":["registry_id","instance_ids"],"title":"StopInstancesRequest"},"StopInstancesResponse":{"properties":{"stopped":{"type":"integer","title":"Stopped"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["stopped"],"title":"StopInstancesResponse"},"StopReason":{"type":"string","enum":["done","max_steps","length","timeout","malformed_tool_call"],"title":"StopReason"},"SubagentEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","const":"subagent","title":"Kind","default":"subagent"},"agent_name":{"type":"string","title":"Agent Name"},"arguments":{"additionalProperties":true,"type":"object","title":"Arguments","default":{}},"result":{"anyOf":[{},{"type":"null"}],"title":"Result"}},"additionalProperties":false,"type":"object","required":["id","agent_name"],"title":"SubagentEvent","description":"A nested-agent invocation (one ``AgentTool.__call__``)."},"SubmittedAgentSpec":{"properties":{"type":{"type":"string","enum":["claude","openai","gemini","openai_compatible"],"title":"Type"},"config":{"additionalProperties":true,"type":"object","title":"Config"}},"type":"object","required":["type","config"],"title":"SubmittedAgentSpec","description":"Gateway identity a hosted runner rebuilds the agent from.\n\nMirrors ``hud.agents.tool_agent.ToolAgent.hosted_spec`` on the v6 SDK: the\nagent ``type`` plus the full serialized ``AgentConfig`` (the live\n``model_client``, gateway-owned credentials, and hosted tools stripped). The\ncontrol plane treats ``config`` as an opaque blob — only ``model`` (for\ninference routing and billing), ``max_steps``, and ``system_prompt`` are\nread — and the instance rebuilds the agent via\n``config_cls.model_validate(config)``."},"SubmittedRuntimeConfig":{"properties":{"image":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Image"},"resources":{"anyOf":[{"$ref":"#/components/schemas/SubmittedRuntimeResources"},{"type":"null"}]},"limits":{"anyOf":[{"$ref":"#/components/schemas/SubmittedRuntimeLimits"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"SubmittedRuntimeConfig","description":"SDK ``RuntimeConfig`` accepted by hosted v6 submissions.\n\nProvider-specific support is validated by the SDK runtime implementation."},"SubmittedRuntimeGPU":{"properties":{"type":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Type"},"count":{"type":"integer","minimum":1.0,"title":"Count","default":1}},"additionalProperties":false,"type":"object","title":"SubmittedRuntimeGPU","description":"Wire-compatible subset of ``hud.eval.runtime.RuntimeGPU``."},"SubmittedRuntimeLimits":{"properties":{"startup_timeout_s":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Startup Timeout S"},"run_timeout_s":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Run Timeout S"}},"additionalProperties":false,"type":"object","title":"SubmittedRuntimeLimits","description":"Wire-compatible subset of ``hud.eval.runtime.RuntimeLimits``."},"SubmittedRuntimeResources":{"properties":{"cpu":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Cpu"},"memory_mb":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Memory Mb"},"gpu":{"anyOf":[{"$ref":"#/components/schemas/SubmittedRuntimeGPU"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"SubmittedRuntimeResources","description":"Wire-compatible subset of ``hud.eval.runtime.RuntimeResources``."},"SuggestedTasksetsResponse":{"properties":{"suggested":{"items":{"$ref":"#/components/schemas/ModelSuggestedTaskset"},"type":"array","title":"Suggested"}},"type":"object","required":["suggested"],"title":"SuggestedTasksetsResponse"},"TaskActivityEvent":{"properties":{"event":{"type":"string","title":"Event"},"at":{"type":"string","title":"At"},"by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"By"},"by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"By Name"},"by_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"By Role"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"done":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Done"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"type":"object","required":["event","at"],"title":"TaskActivityEvent"},"TaskActivityResponse":{"properties":{"events":{"items":{"$ref":"#/components/schemas/TaskActivityEvent"},"type":"array","title":"Events"}},"type":"object","required":["events"],"title":"TaskActivityResponse"},"TaskBriefResponse":{"properties":{"prompt":{"type":"string","title":"Prompt"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentResponse"},"type":"array","title":"Attachments"}},"type":"object","required":["prompt"],"title":"TaskBriefResponse","description":"Client-facing brief with presigned attachment download URLs."},"TaskCommentItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"task_id":{"type":"string","format":"uuid","title":"Task Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"message":{"type":"string","title":"Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["id","task_id","user_id","message","created_at"],"title":"TaskCommentItem"},"TaskCommentsListResponse":{"properties":{"comments":{"items":{"$ref":"#/components/schemas/TaskCommentItem"},"type":"array","title":"Comments"},"can_comment":{"type":"boolean","title":"Can Comment"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["comments","can_comment"],"title":"TaskCommentsListResponse"},"TaskUploadItem":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"env":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Env"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"scenario":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scenario"},"args":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Args"},"validation":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Validation"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"agent_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Agent Config"},"runtime_config":{"anyOf":[{"$ref":"#/components/schemas/SubmittedRuntimeConfig"},{"type":"null"}]},"scenario_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scenario Id"}},"type":"object","required":["name"],"title":"TaskUploadItem","description":"Single item in a /tasks/upload payload.\n\nThree shapes coexist:\n  - v6 shape: `env={\"name\": ...}` + `task_id` (the bare task id from the\n    env's manifest) + `args`/`validation`/`agent_config`. Resolved with\n    an exact lookup against the env's latest build; `args` are validated\n    against the task's manifest args schema.\n  - Legacy v5 shape: `env={\"name\": ...}` + `scenario`, resolved with the\n    v5 prefix/suffix strategies. Live v5 SDK uploads arrive translated\n    by the unprefixed `/tasks/upload` alias route (`sdk_v5.api`).\n  - Pre-resolved shape: caller supplies `scenario_id` explicitly (tests\n    and direct API consumers).\n\nName-resolved shapes win over `scenario_id` (the resolver re-derives the\nscenario from the env name + latest build). A scenario must resolve one\nway or another — there is no prompt-only fallback in rewrite."},"TaskUploadRequest":{"properties":{"taskset_name":{"type":"string","title":"Taskset Name"},"taskset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Taskset Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"registry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Registry Id"},"tasks":{"items":{"$ref":"#/components/schemas/TaskUploadItem"},"type":"array","title":"Tasks"}},"type":"object","required":["taskset_name","tasks"],"title":"TaskUploadRequest"},"TaskUploadResponse":{"properties":{"taskset_id":{"type":"string","format":"uuid","title":"Taskset Id"},"taskset_name":{"type":"string","title":"Taskset Name"},"task_count":{"type":"integer","title":"Task Count"},"task_version_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Task Version Ids"},"tasks_created":{"type":"integer","title":"Tasks Created"},"tasks_updated":{"type":"integer","title":"Tasks Updated"}},"type":"object","required":["taskset_id","taskset_name","task_count","task_version_ids","tasks_created","tasks_updated"],"title":"TaskUploadResponse"},"TasksetCoverageResponse":{"properties":{"taskset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Taskset Id"},"taskset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taskset Name"},"tasks":{"items":{"$ref":"#/components/schemas/TasksetCoverageTask"},"type":"array","title":"Tasks"},"total_tasks":{"type":"integer","title":"Total Tasks","default":0},"tasks_with_traces":{"type":"integer","title":"Tasks With Traces","default":0}},"type":"object","title":"TasksetCoverageResponse"},"TasksetCoverageTask":{"properties":{"task_id":{"type":"string","format":"uuid","title":"Task Id"},"task_name":{"type":"string","title":"Task Name"},"task_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Version Id"},"trace_count":{"type":"integer","title":"Trace Count","default":0},"avg_reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Reward"},"statuses":{"items":{"type":"string"},"type":"array","title":"Statuses"},"invalidated_count":{"type":"integer","title":"Invalidated Count","default":0}},"type":"object","required":["task_id","task_name"],"title":"TasksetCoverageTask"},"TasksetExportResponse":{"properties":{"taskset_id":{"type":"string","format":"uuid","title":"Taskset Id"},"name":{"type":"string","title":"Name"},"tasks":{"items":{"$ref":"#/components/schemas/TasksetExportTask"},"type":"array","title":"Tasks"}},"type":"object","required":["taskset_id","name","tasks"],"title":"TasksetExportResponse","description":"A taskset with its tasks in the task wire format (mirrors the upload shape)."},"TasksetExportTask":{"properties":{"name":{"type":"string","title":"Name"},"env":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Env"},"scenario":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scenario"},"args":{"additionalProperties":true,"type":"object","title":"Args"},"validation":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Validation"},"agent_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Agent Config"},"runtime_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Runtime Config"}},"type":"object","required":["name"],"title":"TasksetExportTask","description":"One exported task — the read-side mirror of `TaskUploadItem` (latest version per task).\n\n`name` is the upload upsert key (`external_id` falling back to the task\nname), so re-uploading an export updates the same tasks."},"TasksetJobsEnrichedResponse":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/EnrichedJobThumbnail"},"type":"array","title":"Jobs"},"total_count":{"type":"integer","title":"Total Count"},"taskset_tasks":{"items":{"$ref":"#/components/schemas/TasksetTaskRef"},"type":"array","title":"Taskset Tasks"}},"type":"object","required":["jobs","total_count"],"title":"TasksetJobsEnrichedResponse"},"TasksetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"registry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Registry Id"},"public":{"type":"boolean","title":"Public"},"purpose":{"type":"string","title":"Purpose","default":"EVAL"},"star_count":{"type":"integer","title":"Star Count","default":0},"task_count":{"type":"integer","title":"Task Count","default":0},"sample_unit_count":{"type":"integer","title":"Sample Unit Count","default":0},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"hidden_progress_stages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Hidden Progress Stages"},"lifecycle_stages":{"items":{"$ref":"#/components/schemas/LifecycleStage"},"type":"array","title":"Lifecycle Stages"},"columns":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Columns"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_starred":{"type":"boolean","title":"Is Starred","default":false},"is_owner":{"type":"boolean","title":"Is Owner","default":false},"can_edit":{"type":"boolean","title":"Can Edit","default":false},"can_manage":{"type":"boolean","title":"Can Manage","default":false},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"owner_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Avatar Url"},"team_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Name"}},"type":"object","required":["id","name","public","created_at","updated_at"],"title":"TasksetResponse"},"TasksetTaskRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"TasksetTaskRef"},"ThumbnailCategoryCounts":{"properties":{"all":{"type":"integer","title":"All","default":0},"live":{"type":"integer","title":"Live","default":0},"successful":{"type":"integer","title":"Successful","default":0},"failed":{"type":"integer","title":"Failed","default":0},"no_score":{"type":"integer","title":"No Score","default":0}},"type":"object","title":"ThumbnailCategoryCounts"},"Tool":{"properties":{"name":{"type":"string","title":"Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"inputSchema":{"additionalProperties":true,"type":"object","title":"Inputschema"},"outputSchema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputschema"},"icons":{"anyOf":[{"items":{"$ref":"#/components/schemas/Icon"},"type":"array"},{"type":"null"}],"title":"Icons"},"annotations":{"anyOf":[{"$ref":"#/components/schemas/ToolAnnotations"},{"type":"null"}]},"_meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"},"execution":{"anyOf":[{"$ref":"#/components/schemas/ToolExecution"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["name","inputSchema"],"title":"Tool","description":"Definition for a tool the client can call."},"ToolAnnotations":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"readOnlyHint":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Readonlyhint"},"destructiveHint":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Destructivehint"},"idempotentHint":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Idempotenthint"},"openWorldHint":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Openworldhint"}},"additionalProperties":true,"type":"object","title":"ToolAnnotations","description":"Additional properties describing a Tool to clients.\n\nNOTE: all properties in ToolAnnotations are **hints**.\nThey are not guaranteed to provide a faithful description of\ntool behavior (including descriptive properties like `title`).\n\nClients should never make tool use decisions based on ToolAnnotations\nreceived from untrusted servers."},"ToolCallEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","const":"tool_call","title":"Kind","default":"tool_call"},"method":{"type":"string","title":"Method"},"tool_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Name"},"arguments":{"additionalProperties":true,"type":"object","title":"Arguments","default":{}},"result_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Text"},"result_data":{"anyOf":[{},{"type":"null"}],"title":"Result Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"is_screenshot":{"type":"boolean","title":"Is Screenshot","default":false},"screenshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screenshot Url"}},"additionalProperties":false,"type":"object","required":["id","method"],"title":"ToolCallEvent","description":"A single MCP tool call with its result merged in.\n\nMirrors what FastMCP returns: ``result_data`` preserves\n``structuredContent`` when present; otherwise text content is unwrapped\ninto ``result_text`` so renderers don't have to dig."},"ToolExecution":{"properties":{"taskSupport":{"anyOf":[{"type":"string","enum":["forbidden","optional","required"]},{"type":"null"}],"title":"Tasksupport"}},"additionalProperties":true,"type":"object","title":"ToolExecution","description":"Execution-related properties for a tool."},"TraceAnalysisContextResponse":{"properties":{"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"task_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Id"},"task_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Version Id"},"task_external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task External Id"},"task_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Name"},"status":{"type":"string","title":"Status"},"reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reward"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"scenario_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scenario Name"},"scenario_args":{"additionalProperties":true,"type":"object","title":"Scenario Args"},"scenario_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scenario Code"},"registry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Registry Id"},"evaluation_result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evaluation Result"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"spans":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Spans"},"spans_count":{"type":"integer","title":"Spans Count","default":0},"failed_spans":{"items":{"$ref":"#/components/schemas/FailedSpanInfo"},"type":"array","title":"Failed Spans"},"env_logs":{"anyOf":[{"items":{"$ref":"#/components/schemas/EnvLogEntry"},"type":"array"},{"type":"null"}],"title":"Env Logs"},"worker_logs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Logs"}},"type":"object","required":["trace_id","status"],"title":"TraceAnalysisContextResponse","description":"Aggregate read for analysis envs; spans carry presigned artifact URLs."},"TraceBatchValidateRequest":{"properties":{"trace_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Trace Ids"},"is_valid":{"type":"boolean","title":"Is Valid"}},"type":"object","required":["trace_ids","is_valid"],"title":"TraceBatchValidateRequest"},"TraceBatchValidateResponse":{"properties":{"updated_count":{"type":"integer","title":"Updated Count"}},"type":"object","required":["updated_count"],"title":"TraceBatchValidateResponse"},"TraceEnvironmentRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"registry_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registry Type"},"build_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Build Id"},"build_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Build Version"},"build_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Build Digest"},"can_view_source":{"type":"boolean","title":"Can View Source","default":false}},"type":"object","required":["id","name"],"title":"TraceEnvironmentRef"},"TraceEventsResponse":{"properties":{"events":{"items":{"oneOf":[{"$ref":"#/components/schemas/UserMessageEvent"},{"$ref":"#/components/schemas/AgentMessageEvent"},{"$ref":"#/components/schemas/ToolCallEvent"},{"$ref":"#/components/schemas/ScenarioEvent"},{"$ref":"#/components/schemas/SubagentEvent"},{"$ref":"#/components/schemas/ObservationEvent"},{"$ref":"#/components/schemas/InferenceEvent"},{"$ref":"#/components/schemas/VideoSegmentEvent"},{"$ref":"#/components/schemas/FileSnapshotEvent"},{"$ref":"#/components/schemas/FileSetupEvent"},{"$ref":"#/components/schemas/FileChangeEvent"},{"$ref":"#/components/schemas/FileCaptureEvent"},{"$ref":"#/components/schemas/RawEvent"}],"discriminator":{"propertyName":"kind","mapping":{"agent_message":"#/components/schemas/AgentMessageEvent","file_capture":"#/components/schemas/FileCaptureEvent","file_change":"#/components/schemas/FileChangeEvent","file_setup":"#/components/schemas/FileSetupEvent","file_snapshot":"#/components/schemas/FileSnapshotEvent","raw":"#/components/schemas/RawEvent","robot_inference":"#/components/schemas/InferenceEvent","robot_observation":"#/components/schemas/ObservationEvent","robot_video_segment":"#/components/schemas/VideoSegmentEvent","scenario_evaluate":"#/components/schemas/ScenarioEvent","scenario_setup":"#/components/schemas/ScenarioEvent","subagent":"#/components/schemas/SubagentEvent","tool_call":"#/components/schemas/ToolCallEvent","user_message":"#/components/schemas/UserMessageEvent"}}},"type":"array","title":"Events"},"latest_seq":{"type":"integer","title":"Latest Seq"},"status":{"type":"string","title":"Status"},"reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reward"}},"type":"object","required":["events","latest_seq","status"],"title":"TraceEventsResponse"},"TraceExecutionMode":{"type":"string","enum":["external","cloud","hosted"],"title":"TraceExecutionMode"},"TraceInfoResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"task_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Version Id"},"task_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Slug"},"task_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Id"},"instance_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Instance Id"},"inference_llm_model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Inference Llm Model Id"},"status":{"type":"string","title":"Status"},"reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reward"},"stop_reason":{"anyOf":[{"$ref":"#/components/schemas/StopReason"},{"type":"null"}]},"views":{"type":"integer","title":"Views","default":0},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"evaluation_result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evaluation Result"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"task_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Prompt"},"task_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Name"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"environment":{"anyOf":[{"$ref":"#/components/schemas/TraceEnvironmentRef"},{"type":"null"}]},"task":{"anyOf":[{"$ref":"#/components/schemas/TraceTaskRef"},{"type":"null"}]},"model":{"anyOf":[{"$ref":"#/components/schemas/TraceThumbnailModel"},{"type":"null"}]},"job_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Name"},"execution_mode":{"$ref":"#/components/schemas/TraceExecutionMode"},"public":{"type":"boolean","title":"Public","default":false},"is_owner":{"type":"boolean","title":"Is Owner","default":false},"can_edit":{"type":"boolean","title":"Can Edit","default":false}},"type":"object","required":["id","job_id","status","created_at","execution_mode"],"title":"TraceInfoResponse"},"TraceLogsResponse":{"properties":{"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"logs":{"type":"string","title":"Logs"}},"type":"object","required":["trace_id","logs"],"title":"TraceLogsResponse"},"TraceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"task_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Version Id"},"task_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Slug"},"instance_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Instance Id"},"inference_llm_model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Inference Llm Model Id"},"status":{"type":"string","title":"Status"},"reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reward"},"stop_reason":{"anyOf":[{"$ref":"#/components/schemas/StopReason"},{"type":"null"}]},"views":{"type":"integer","title":"Views","default":0},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","job_id","status","created_at"],"title":"TraceResponse"},"TraceScenarioRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"registry_id":{"type":"string","format":"uuid","title":"Registry Id"}},"type":"object","required":["id","name","registry_id"],"title":"TraceScenarioRef"},"TraceStorageObject":{"properties":{"path":{"type":"string","title":"Path"},"download_url":{"type":"string","title":"Download Url"}},"type":"object","required":["path","download_url"],"title":"TraceStorageObject"},"TraceStorageObjectListResponse":{"properties":{"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"kind":{"type":"string","const":"artifact","title":"Kind"},"objects":{"items":{"$ref":"#/components/schemas/TraceStorageObject"},"type":"array","title":"Objects"}},"type":"object","required":["trace_id","kind","objects"],"title":"TraceStorageObjectListResponse"},"TraceTaskRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version_id":{"type":"string","format":"uuid","title":"Version Id"},"version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Number"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"taskset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Taskset Id"},"taskset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taskset Name"},"scenario":{"anyOf":[{"$ref":"#/components/schemas/TraceScenarioRef"},{"type":"null"}]},"scenario_args":{"additionalProperties":true,"type":"object","title":"Scenario Args"}},"type":"object","required":["id","version_id"],"title":"TraceTaskRef"},"TraceThumbnail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"job_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Name"},"status":{"type":"string","title":"Status"},"reward":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reward"},"is_valid":{"type":"boolean","title":"Is Valid","default":true},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"views":{"type":"integer","title":"Views","default":0},"task_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Version Id"},"task_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Slug"},"task_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Task Version Number"},"task_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Prompt"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"inference_llm_model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Inference Llm Model Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"user_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Avatar Url"},"model":{"anyOf":[{"$ref":"#/components/schemas/TraceThumbnailModel"},{"type":"null"}]}},"type":"object","required":["id","job_id","status","created_at"],"title":"TraceThumbnail"},"TraceThumbnailModel":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"provider_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Name"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"}},"type":"object","required":["id","name"],"title":"TraceThumbnailModel"},"TraceUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"TraceUpdateRequest"},"TraceUsageBreakdown":{"properties":{"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"environment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Environment Id"},"environment_cost":{"type":"number","title":"Environment Cost","default":0.0},"environment_transactions":{"type":"integer","title":"Environment Transactions","default":0},"environment_hourly_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Environment Hourly Rate"},"environment_still_running":{"type":"boolean","title":"Environment Still Running","default":false},"environment_baseline_cost":{"type":"number","title":"Environment Baseline Cost","default":0.0},"environment_additional_cost":{"type":"number","title":"Environment Additional Cost","default":0.0},"environment_baseline_minutes":{"type":"integer","title":"Environment Baseline Minutes","default":5},"environment_additional_minutes":{"type":"integer","title":"Environment Additional Minutes","default":0},"environment_total_runtime_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Environment Total Runtime Seconds"},"inference_cost":{"type":"number","title":"Inference Cost","default":0.0},"inference_calls":{"type":"integer","title":"Inference Calls","default":0},"inference_cost_incomplete":{"type":"boolean","title":"Inference Cost Incomplete","default":false},"agent_actions":{"type":"integer","title":"Agent Actions","default":0},"total_cost":{"type":"number","title":"Total Cost","default":0.0}},"type":"object","required":["trace_id"],"title":"TraceUsageBreakdown"},"TraceWorkspaceChangesResponse":{"properties":{"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"events":{"items":{"anyOf":[{"$ref":"#/components/schemas/FileSnapshotEvent"},{"$ref":"#/components/schemas/FileSetupEvent"},{"$ref":"#/components/schemas/FileChangeEvent"},{"$ref":"#/components/schemas/FileCaptureEvent"}]},"type":"array","title":"Events"}},"type":"object","required":["trace_id","events"],"title":"TraceWorkspaceChangesResponse"},"TraceWorkspaceFilesResponse":{"properties":{"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"files":{"items":{"$ref":"#/components/schemas/CapturedFile"},"type":"array","title":"Files"}},"type":"object","required":["trace_id","files"],"title":"TraceWorkspaceFilesResponse"},"TrainingCostInfo":{"properties":{"total_cost":{"type":"number","title":"Total Cost"},"hourly_rate":{"type":"number","title":"Hourly Rate"},"runtime_seconds":{"type":"number","title":"Runtime Seconds"}},"type":"object","required":["total_cost","hourly_rate","runtime_seconds"],"title":"TrainingCostInfo"},"UpdateTaskCommentRequest":{"properties":{"body":{"type":"string","title":"Body"}},"type":"object","required":["body"],"title":"UpdateTaskCommentRequest"},"UploadResponse":{"properties":{"url":{"type":"string","title":"Url"},"name":{"type":"string","title":"Name"},"size":{"type":"integer","title":"Size"},"content_type":{"type":"string","title":"Content Type"}},"type":"object","required":["url","name","size","content_type"],"title":"UploadResponse","description":"A freshly staged upload.\n\n``url`` is the ``storage://`` locator the client hands back when attaching the file to an\nentity."},"UserMessageEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","const":"user_message","title":"Kind","default":"user_message"},"text":{"type":"string","title":"Text"}},"additionalProperties":false,"type":"object","required":["id","text"],"title":"UserMessageEvent"},"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"},"VideoSegmentEvent":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"seq":{"type":"integer","title":"Seq","default":0},"kind":{"type":"string","const":"robot_video_segment","title":"Kind","default":"robot_video_segment"},"camera":{"type":"string","title":"Camera","default":""},"index":{"type":"integer","title":"Index","default":0},"fps":{"type":"integer","title":"Fps","default":10},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"additionalProperties":false,"type":"object","required":["id"],"title":"VideoSegmentEvent","description":"One CMAF fragment of a camera's H.264 stream.\n\nProjected from ``step.video_segment`` under ``hud.robot.step.v1``: camera\nframes stream as video instead of a JPEG per tick.\n\n``index`` orders the fragments per ``camera`` (``index`` 0 is the init segment);\nthe viewer feeds the ordered ``url``s to one ``<video>`` via MSE. ``fps`` maps\na control tick onto video time. ``url`` is the presigned S3 segment (``None`` only\nif offload/presign hasn't completed)."}}}}