{"openapi":"3.1.0","info":{"title":"PI API","version":"0.1.0"},"servers":[{"url":"https://api.primeintellect.ai"}],"paths":{"/api/admin/clusters":{"get":{"tags":["admin-clusters"],"summary":"List Clusters","description":"List non-terminated clusters.","operationId":"list_clusters_api_admin_clusters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vaultEnabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"If true, return only vault-enabled clusters; if false, only non-vault-enabled. Omit to include both.","title":"Vaultenabled"},"description":"If true, return only vault-enabled clusters; if false, only non-vault-enabled. Omit to include both."},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive substring match against cluster name or id.","title":"Search"},"description":"Case-insensitive substring match against cluster name or id."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip.","default":0,"title":"Offset"},"description":"Number of items to skip."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max items to return (1-100).","default":20,"title":"Limit"},"description":"Max items to return (1-100)."},{"name":"detailed","in":"query","required":false,"schema":{"type":"boolean","description":"If true, populate `nodes` for each cluster (one entry per pod). Otherwise only the `controller` connection is returned.","default":false,"title":"Detailed"},"description":"If true, populate `nodes` for each cluster (one entry per pod). Otherwise only the `controller` connection is returned."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericPaginationResponse_list_AdminClusterSummary__"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient permissions"}}}},"/api/admin/clusters/{cluster_id}":{"get":{"tags":["admin-clusters"],"summary":"Get Cluster","description":"Return full DB details for one cluster (columns + nodes + SSH keys).","operationId":"get_cluster_api_admin_clusters__cluster_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","title":"Cluster Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericResponse_ClusterDetailResponse_"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient permissions"}}}},"/api/admin/clusters/{cluster_id}/authorizations/certificate":{"post":{"tags":["admin-clusters"],"summary":"Request Certificate","description":"Sign the requesting admin's SSH public key via Vault.\n\nIf a ``publicKey`` is provided in the body, it is signed directly.\nOtherwise the admin's DB-stored SSH public key is used.","operationId":"request_certificate_api_admin_clusters__cluster_id__authorizations_certificate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","title":"Cluster Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CertificateRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericResponse_CertificateResponse_"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient permissions"}}}},"/api/admin/clusters/{cluster_id}/node-logs":{"get":{"tags":["admin-clusters"],"summary":"List Cluster Node Logs","description":"Return paginated ClusterNodeLog entries for one cluster, newest first.","operationId":"list_cluster_node_logs_api_admin_clusters__cluster_id__node_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","title":"Cluster Id"}},{"name":"podId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter logs to a single pod.","title":"Podid"},"description":"Filter logs to a single pod."},{"name":"eventType","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterNodeLogEventTypeEnum"},{"type":"null"}],"description":"Filter logs to a single event type.","title":"Eventtype"},"description":"Filter logs to a single event type."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip.","default":0,"title":"Offset"},"description":"Number of items to skip."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max items to return (1-100, default 20).","default":20,"title":"Limit"},"description":"Max items to return (1-100, default 20)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericPaginationResponse_list_ClusterNodeLogEntry__"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient permissions"}}}},"/api/admin/users/whoami":{"get":{"tags":["admin-users"],"summary":"Get Current User","description":"Identity + envelope for the calling admin API key.\n\nIntentionally bypasses ``require_admin_permission``: any valid, non-\nexpired, non-disabled admin API key whose owner is still ADMIN/MANAGER\ncan call this. Returning the resolved permission envelope is what makes\na freshly-minted scoped key able to discover what it can do.","operationId":"get_current_user_api_admin_users_whoami_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericResponse_AdminWhoamiResponse_"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient permissions"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/availability/":{"get":{"tags":["Availability"],"summary":"Get Legacygpu Availability","operationId":"get_legacygpu_availability_api_v1_availability__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Number of results per page","default":500,"title":"Page Size"},"description":"Number of results per page"},{"name":"regions","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Regions"}},{"type":"null"}],"description":"List of regions to filter","title":"Regions"},"description":"List of regions to filter"},{"name":"gpu_count","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Desired number of GPUs","title":"Gpu Count"},"description":"Desired number of GPUs"},{"name":"gpu_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GPUType"},{"type":"null"}],"description":"GPU model","title":"Gpu Type"},"description":"GPU model"},{"name":"socket","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GPUSocket"},{"type":"null"}],"description":"Socket for selected gpu model","title":"Socket"},"description":"Socket for selected gpu model"},{"name":"security","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SecurityType"},{"type":"null"}],"description":"Security type","title":"Security"},"description":"Security type"},{"name":"data_center_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by data center ID","title":"Data Center Id"},"description":"Filter by data center ID"},{"name":"cloud_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by cloud ID","title":"Cloud Id"},"description":"Filter by cloud ID"},{"name":"disks","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"List of disk IDs to filter instances by location","title":"Disks"},"description":"List of disk IDs to filter instances by location"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyAvailabilityResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/availability/clusters":{"get":{"tags":["Availability"],"summary":"Get Legacy Cluster Availability","operationId":"get_legacy_cluster_availability_api_v1_availability_clusters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Number of results per page","default":500,"title":"Page Size"},"description":"Number of results per page"},{"name":"regions","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Regions"}},{"type":"null"}],"description":"List of regions to filter","title":"Regions"},"description":"List of regions to filter"},{"name":"gpu_count","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Desired number of GPUs","title":"Gpu Count"},"description":"Desired number of GPUs"},{"name":"gpu_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GPUType"},{"type":"null"}],"description":"GPU model","title":"Gpu Type"},"description":"GPU model"},{"name":"socket","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GPUSocket"},{"type":"null"}],"description":"Socket for selected gpu model","title":"Socket"},"description":"Socket for selected gpu model"},{"name":"security","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SecurityType"},{"type":"null"}],"description":"Security type","title":"Security"},"description":"Security type"},{"name":"data_center_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by data center ID","title":"Data Center Id"},"description":"Filter by data center ID"},{"name":"cloud_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by cloud ID","title":"Cloud Id"},"description":"Filter by cloud ID"},{"name":"disks","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"List of disk IDs to filter instances by location","title":"Disks"},"description":"List of disk IDs to filter instances by location"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyAvailabilityResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/availability/disks":{"get":{"tags":["Availability"],"summary":"Get Disks Availability","operationId":"get_disks_availability_api_v1_availability_disks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of results per page","default":100,"title":"Page Size"},"description":"Number of results per page"},{"name":"regions","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Regions"}},{"type":"null"}],"description":"List of regions to filter","title":"Regions"},"description":"List of regions to filter"},{"name":"data_center_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by data center ID","title":"Data Center Id"},"description":"Filter by data center ID"},{"name":"cloud_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by cloud ID","title":"Cloud Id"},"description":"Filter by cloud ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiskAvailabilityResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/availability/gpu-summary":{"get":{"tags":["Availability"],"summary":"Get Gpu Summary","description":"Get GPU pricing summary data grouped by GPU type and instance count.","operationId":"get_gpu_summary_api_v1_availability_gpu_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"additionalProperties":{"$ref":"#/components/schemas/InstanceCountPricing"},"type":"object"},"type":"object","title":"Response Get Gpu Summary Api V1 Availability Gpu Summary Get"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/availability/gpus":{"get":{"tags":["Availability"],"summary":"Get Gpu Availability","operationId":"get_gpu_availability_api_v1_availability_gpus_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of results per page","default":100,"title":"Page Size"},"description":"Number of results per page"},{"name":"regions","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Regions"}},{"type":"null"}],"description":"List of regions to filter","title":"Regions"},"description":"List of regions to filter"},{"name":"gpu_count","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Desired number of GPUs","title":"Gpu Count"},"description":"Desired number of GPUs"},{"name":"gpu_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GPUType"},{"type":"null"}],"description":"GPU model","title":"Gpu Type"},"description":"GPU model"},{"name":"socket","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GPUSocket"},{"type":"null"}],"description":"Socket for selected gpu model","title":"Socket"},"description":"Socket for selected gpu model"},{"name":"security","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SecurityType"},{"type":"null"}],"description":"Security type","title":"Security"},"description":"Security type"},{"name":"data_center_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by data center ID","title":"Data Center Id"},"description":"Filter by data center ID"},{"name":"cloud_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by cloud ID","title":"Cloud Id"},"description":"Filter by cloud ID"},{"name":"disks","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"List of disk IDs to filter instances by location","title":"Disks"},"description":"List of disk IDs to filter instances by location"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/availability/multi-node":{"get":{"tags":["Availability"],"summary":"Get Multinode Availability","operationId":"get_multinode_availability_api_v1_availability_multi_node_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of results per page","default":100,"title":"Page Size"},"description":"Number of results per page"},{"name":"regions","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Regions"}},{"type":"null"}],"description":"List of regions to filter","title":"Regions"},"description":"List of regions to filter"},{"name":"gpu_count","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Desired number of GPUs","title":"Gpu Count"},"description":"Desired number of GPUs"},{"name":"gpu_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GPUType"},{"type":"null"}],"description":"GPU model","title":"Gpu Type"},"description":"GPU model"},{"name":"socket","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GPUSocket"},{"type":"null"}],"description":"Socket for selected gpu model","title":"Socket"},"description":"Socket for selected gpu model"},{"name":"security","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SecurityType"},{"type":"null"}],"description":"Security type","title":"Security"},"description":"Security type"},{"name":"data_center_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by data center ID","title":"Data Center Id"},"description":"Filter by data center ID"},{"name":"cloud_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by cloud ID","title":"Cloud Id"},"description":"Filter by cloud ID"},{"name":"disks","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"List of disk IDs to filter instances by location","title":"Disks"},"description":"List of disk IDs to filter instances by location"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/availability/multi-node-summary":{"get":{"tags":["Availability"],"summary":"Get Multinode Summary","description":"Get multi-node (cluster) pricing summary data grouped by GPU type and instance count.","operationId":"get_multinode_summary_api_v1_availability_multi_node_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"additionalProperties":{"$ref":"#/components/schemas/InstanceCountPricing"},"type":"object"},"type":"object","title":"Response Get Multinode Summary Api V1 Availability Multi Node Summary Get"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/runs/{run_id}/usage":{"get":{"tags":["Billing"],"summary":"Token usage and cost for a single RFT run","description":"Return the running token + cost totals for one RFT run.\n\nMirrors the per-row training data shown on the billing page (Training\ntokens, Inference input/output tokens, price per million tokens, and\ntotal cost) so an agent can poll this endpoint to monitor a live run.","operationId":"get_run_usage_api_v1_billing_runs__run_id__usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunUsageResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/billing/wallet":{"get":{"tags":["Billing"],"summary":"Wallet balance + most recent billing rows","description":"Return the wallet's current balance and most recent billing rows.\n\nAll resource types are included (compute, training, inference, disks,\nsandboxes, images) — same source-of-truth `Billing` table the\ndashboard's Billing History tab reads. Sorted by `lastBilledAt` desc.","operationId":"get_wallet_api_v1_billing_wallet_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of recent billing rows to include (max 100).","default":20,"title":"Limit"},"description":"Number of recent billing rows to include (max 100)."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Skip this many rows before returning. Lets callers page.","default":0,"title":"Offset"},"description":"Skip this many rows before returning. Lets callers page."},{"name":"teamId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"If provided, return the team's wallet (requires membership).","title":"Teamid"},"description":"If provided, return the team's wallet (requires membership)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/disks/":{"get":{"tags":["Disks"],"summary":"List Disks","operationId":"list_disks_api_v1_disks__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericPaginationResponse_List_APIDiskConfig__"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Disks"],"summary":"Create Disk","operationId":"create_disk_api_v1_disks__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_create_disk_api_v1_disks__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIDiskConfig"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/disks/{disk_id}":{"get":{"tags":["Disks"],"summary":"Get Disk","operationId":"get_disk_api_v1_disks__disk_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"disk_id","in":"path","required":true,"schema":{"type":"string","title":"Disk Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIDiskConfig"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Disks"],"summary":"Update Disk","operationId":"update_disk_api_v1_disks__disk_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"disk_id","in":"path","required":true,"schema":{"type":"string","title":"Disk Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIDiskUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Disks"],"summary":"Delete Disk","operationId":"delete_disk_api_v1_disks__disk_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"disk_id","in":"path","required":true,"schema":{"type":"string","title":"Disk Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/evaluations/":{"post":{"tags":["evals"],"summary":"Create Evaluation","description":"Create a new evaluation\n\nThis endpoint supports:\n- Environment evaluations: Provide environments\n- Prime RL evaluations: Provide run_id\n- Suite evaluations: Provide suite_id\n\nOwnership:\n- If team_id is provided in request, the evaluation will be owned by the team\n- Otherwise, the evaluation will be owned by the authenticated user","operationId":"create_evaluation_api_v1_evaluations__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEvaluationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEvaluationResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"tags":["evals"],"summary":"List Evaluations","description":"Get a list of evaluations owned by the authenticated user or their teams\n\nBy default, returns all evaluations the user has access to (personal + all teams).","operationId":"list_evaluations_api_v1_evaluations__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by specific team ID","title":"Team Id"},"description":"Filter by specific team ID"},{"name":"environment_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by environment ID","title":"Environment Id"},"description":"Filter by environment ID"},{"name":"environment_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by environment name","title":"Environment Name"},"description":"Filter by environment name"},{"name":"suite_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by suite ID","title":"Suite Id"},"description":"Filter by suite ID"},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEvaluationsResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/evaluations/bulk-delete":{"post":{"tags":["evals"],"summary":"Bulk Delete Evaluations","operationId":"bulk_delete_evaluations_api_v1_evaluations_bulk_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteEvaluationsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteEvaluationsResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/evaluations/{evaluation_id}":{"put":{"tags":["evals"],"summary":"Update Evaluation","description":"Update an existing evaluation","operationId":"update_evaluation_api_v1_evaluations__evaluation_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEvaluationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEvaluationResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"tags":["evals"],"summary":"Get Evaluation","description":"Get detailed information about a specific evaluation.","operationId":"get_evaluation_api_v1_evaluations__evaluation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEvaluationResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["evals"],"summary":"Delete Evaluation","operationId":"delete_evaluation_api_v1_evaluations__evaluation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/evaluations/{evaluation_id}/finalize":{"post":{"tags":["evals"],"summary":"Finalize Evaluation","description":"Mark an evaluation as complete and compute final statistics.","operationId":"finalize_evaluation_api_v1_evaluations__evaluation_id__finalize_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FinalizeEvaluationRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalizeEvaluationResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/evaluations/{evaluation_id}/samples":{"post":{"tags":["evals"],"summary":"Push Samples","description":"Push evaluation samples\n\nThis endpoint can be called multiple times to stream samples as they're generated.","operationId":"push_samples_api_v1_evaluations__evaluation_id__samples_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushSamplesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushSamplesResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"tags":["evals"],"summary":"Get Samples","description":"Get samples for a specific evaluation","operationId":"get_samples_api_v1_evaluations__evaluation_id__samples_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSamplesResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/feedback":{"post":{"tags":["Feedback"],"summary":"Submit Feedback","operationId":"submit_feedback_api_v1_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/frp/validate":{"post":{"tags":["FRP Plugin"],"summary":"Validate Frp Plugin","description":"Validate frpc client connections.\n\nThis endpoint is called by frps server plugin for:\n- Login: Validates tunnel token when client connects\n- NewProxy: Validates proxy creation requests\n\nThis endpoint is public but security is enforced via per-tunnel\ntoken validation. An attacker would need both a valid tunnel_id AND\nthe corresponding frp_token to get a successful response.","operationId":"validate_frp_plugin_api_v1_frp_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FrpPluginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FrpPluginResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/hosted-evaluations":{"post":{"tags":["hosted-evaluations"],"summary":"Create Hosted Evaluation","description":"Create and start a hosted evaluation.","operationId":"create_hosted_evaluation_api_v1_hosted_evaluations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateHostedEvaluationRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateHostedEvaluationResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/hosted-evaluations/models":{"get":{"tags":["hosted-evaluations"],"summary":"Get Inference Models","description":"Get available models from Prime Inference API for hosted evaluations","operationId":"get_inference_models_api_v1_hosted_evaluations_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListInferenceModelsResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/hosted-evaluations/{evaluation_id}/cancel":{"patch":{"tags":["hosted-evaluations"],"summary":"Cancel Hosted Evaluation Route","description":"Cancel a running hosted evaluation.","operationId":"cancel_hosted_evaluation_route_api_v1_hosted_evaluations__evaluation_id__cancel_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelHostedEvaluationResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/hosted-evaluations/{evaluation_id}/logs":{"get":{"tags":["hosted-evaluations"],"summary":"Get Hosted Evaluation Logs Route","description":"Get real-time logs from the sandbox running a hosted evaluation.","operationId":"get_hosted_evaluation_logs_route_api_v1_hosted_evaluations__evaluation_id__logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHostedEvaluationLogsResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/images":{"get":{"tags":["Images"],"summary":"List User Images","description":"List images and builds for the current user, scoped by team context. Returns personal images by default, or team images if teamId is provided.\n\nPagination note: `limit`, `offset`, and `totalCount` count logical images\n(unique `owner/imageName:imageTag`). A single image may produce multiple\n`data[]` rows (one per artifact type plus any active builds), so\n`len(data)` can exceed `limit` and `totalCount` reflects images, not rows.","operationId":"list_user_images_api_v1_images_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teamId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by team ID. If provided, returns only that team's images. If not provided, returns only personal images.","title":"Teamid"},"description":"Filter by team ID. If provided, returns only that team's images. If not provided, returns only personal images."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericPaginationResponse_List_ImageResponse__"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n300 requests per 60 seconds per IP and token."}}},"/api/v1/images/build":{"post":{"tags":["Images"],"summary":"Initiate Image Build","description":"Initiate an image build process.\n\nReturns a presigned URL to upload the build context (tar.gz file).\nAfter uploading, call /images/build/{build_id}/start to begin the build.","operationId":"initiate_image_build_api_v1_images_build_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildImageRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildImageResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}],"x-mint":{"content":"## Rate Limit\n\n150 requests per 60 seconds per IP and token."}}},"/api/v1/images/build/{build_id}":{"get":{"tags":["Images"],"summary":"Get Build Status","description":"Get the status of an image build.","operationId":"get_build_status_api_v1_images_build__build_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"build_id","in":"path","required":true,"schema":{"type":"string","title":"Build Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildStatusResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/images/build/{build_id}/start":{"post":{"tags":["Images"],"summary":"Start Image Build","description":"Start the image build process after uploading the build context.\n\nThis creates a sandbox with Docker-in-Docker to build and push the image.","operationId":"start_image_build_api_v1_images_build__build_id__start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"build_id","in":"path","required":true,"schema":{"type":"string","title":"Build Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartBuildRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildStatusResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/images/builds":{"get":{"tags":["Images"],"summary":"List Image Builds","description":"List all image builds for the current user.","operationId":"list_image_builds_api_v1_images_builds_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericPaginationResponse_List_BuildStatusResponse__"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/images/{image_name}/{image_tag}":{"delete":{"tags":["Images"],"summary":"Delete User Image","description":"Delete a user image from the database and Google Artifact Registry.\n\nFor team images, only the image creator or team admins can delete.","operationId":"delete_user_image_api_v1_images__image_name___image_tag__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_name","in":"path","required":true,"schema":{"type":"string","title":"Image Name"}},{"name":"image_tag","in":"path","required":true,"schema":{"type":"string","title":"Image Tag"}},{"name":"teamId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team ID if deleting a team image","title":"Teamid"},"description":"Team ID if deleting a team image"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteImageResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n100 requests per 60 seconds per IP and token."}}},"/api/v1/images/{image_name}/{image_tag}/visibility":{"patch":{"tags":["Images"],"summary":"Update Image Visibility","description":"Publish or unpublish an image in the current personal or team context.","operationId":"update_image_visibility_api_v1_images__image_name___image_tag__visibility_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_name","in":"path","required":true,"schema":{"type":"string","title":"Image Name"}},{"name":"image_tag","in":"path","required":true,"schema":{"type":"string","title":"Image Tag"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateImageVisibilityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateImageVisibilityResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n100 requests per 60 seconds per IP and token."}}},"/api/v1/pods/":{"get":{"tags":["Pods"],"summary":"Get Pods","operationId":"get_pods_api_v1_pods__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericPaginationResponse_List_APIPodConfig__"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Pods"],"summary":"Create Pod","operationId":"create_pod_api_v1_pods__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_create_pod_api_v1_pods__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIPodConfig"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/pods/history":{"get":{"tags":["Pods"],"summary":"Get Pods History","operationId":"get_pods_history_api_v1_pods_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sort_by","in":"query","required":false,"schema":{"enum":["terminatedAt","createdAt"],"type":"string","default":"terminatedAt","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericPaginationResponse_List_HistoryObj__"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/pods/status":{"get":{"tags":["Pods"],"summary":"Get Pods Status","operationId":"get_pods_status_api_v1_pods_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pod_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"List of pod ids","default":[],"title":"Pod Ids"},"description":"List of pod ids"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericResponse_List_APIPodStatusResponse__"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/pods/{pod_id}":{"get":{"tags":["Pods"],"summary":"Get Pod","operationId":"get_pod_api_v1_pods__pod_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIPodConfig"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Pods"],"summary":"Delete Pod","operationId":"delete_pod_api_v1_pods__pod_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIDeletePodResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/pods/{pod_id}/log":{"get":{"tags":["Pods"],"summary":"Get Pod Logs Api","description":"Get logs for a pod.\n\nArgs:\n    tail: Number of most recent logs to return (default: 100)","operationId":"get_pod_logs_api_api_v1_pods__pod_id__log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pod_id","in":"path","required":true,"schema":{"type":"string","title":"Pod Id"}},{"name":"tail","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tail"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/sandbox":{"post":{"tags":["Sandbox"],"summary":"Create Sandbox Endpoint","description":"Create a new code sandbox","operationId":"create_sandbox_endpoint_api_v1_sandbox_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSandboxRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n500 requests per 60 seconds per IP and token."}},"get":{"tags":["Sandbox"],"summary":"List Sandboxes","description":"List sandboxes for user or team","operationId":"list_sandboxes_api_v1_sandbox_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by team ID","title":"Team Id"},"description":"Filter by team ID"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by user ID. When set to another user's ID, the caller must be a team admin of the provided team_id.","title":"User Id"},"description":"Filter by user ID. When set to another user's ID, the caller must be a team admin of the provided team_id."},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SandboxStatus"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter to exclude terminated sandboxes when True","title":"Is Active"},"description":"Filter to exclude terminated sandboxes when True"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by labels (sandboxes must have ALL specified labels)","title":"Labels"},"description":"Filter by labels (sandboxes must have ALL specified labels)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Items per page","default":50,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxListResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n1000 requests per 60 seconds per IP and token."}},"delete":{"tags":["Sandbox"],"summary":"Bulk Delete Sandboxes Endpoint","description":"Bulk delete multiple sandboxes by IDs or labels","operationId":"bulk_delete_sandboxes_endpoint_api_v1_sandbox_delete","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteSandboxRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteSandboxResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n50 requests per 60 seconds per IP and token."}}},"/api/v1/sandbox/expose/all":{"get":{"tags":["Sandbox"],"summary":"List All Exposed Ports Endpoint","description":"List all exposed ports across all sandboxes for the current user","operationId":"list_all_exposed_ports_endpoint_api_v1_sandbox_expose_all_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListExposedPortsResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}],"x-mint":{"content":"## Rate Limit\n\n60 requests per 60 seconds per IP and token."}}},"/api/v1/sandbox/{sandbox_id}":{"get":{"tags":["Sandbox"],"summary":"Get Sandbox Endpoint","description":"Get a specific sandbox by ID","operationId":"get_sandbox_endpoint_api_v1_sandbox__sandbox_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n300 requests per 60 seconds per IP and token per sandbox."}},"delete":{"tags":["Sandbox"],"summary":"Delete Sandbox Endpoint","description":"Delete a sandbox","operationId":"delete_sandbox_endpoint_api_v1_sandbox__sandbox_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSandboxResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n500 requests per 60 seconds per IP and token."}}},"/api/v1/sandbox/{sandbox_id}/auth":{"post":{"tags":["Sandbox"],"summary":"Get Sandbox Auth Token","description":"Get a token for direct sandbox access.","operationId":"get_sandbox_auth_token_api_v1_sandbox__sandbox_id__auth_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxAuthResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n120 requests per 60 seconds per IP and token per sandbox."}}},"/api/v1/sandbox/{sandbox_id}/error-context":{"get":{"tags":["Sandbox"],"summary":"Get Sandbox Error Context Endpoint","description":"Get error context for a sandbox (optimized for SDK error handling flows)","operationId":"get_sandbox_error_context_endpoint_api_v1_sandbox__sandbox_id__error_context_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxErrorContextResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n600 requests per 60 seconds per IP and token per sandbox."}}},"/api/v1/sandbox/{sandbox_id}/expose":{"post":{"tags":["Sandbox"],"summary":"Expose Port Endpoint","description":"Expose a port from a sandbox","operationId":"expose_port_endpoint_api_v1_sandbox__sandbox_id__expose_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExposePortRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExposePortResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n20 requests per 60 seconds per IP and token per sandbox."}},"get":{"tags":["Sandbox"],"summary":"List Exposed Ports Endpoint","description":"List all exposed ports for a sandbox","operationId":"list_exposed_ports_endpoint_api_v1_sandbox__sandbox_id__expose_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListExposedPortsResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n60 requests per 60 seconds per IP and token per sandbox."}}},"/api/v1/sandbox/{sandbox_id}/expose/{exposure_id}":{"delete":{"tags":["Sandbox"],"summary":"Unexpose Port Endpoint","description":"Unexpose a previously exposed port","operationId":"unexpose_port_endpoint_api_v1_sandbox__sandbox_id__expose__exposure_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}},{"name":"exposure_id","in":"path","required":true,"schema":{"type":"string","title":"Exposure Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnexposePortResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n20 requests per 60 seconds per IP and token per sandbox."}}},"/api/v1/sandbox/{sandbox_id}/logs":{"get":{"tags":["Sandbox"],"summary":"Get Sandbox Logs Endpoint","description":"Get sandbox logs","operationId":"get_sandbox_logs_endpoint_api_v1_sandbox__sandbox_id__logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxLogsResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n300 requests per 60 seconds per IP and token per sandbox."}}},"/api/v1/sandbox/{sandbox_id}/ssh-session":{"post":{"tags":["Sandbox"],"summary":"Create Ssh Session Endpoint","description":"Create an SSH session using the SSH sidecar (no sshd required in the sandbox image).","operationId":"create_ssh_session_endpoint_api_v1_sandbox__sandbox_id__ssh_session_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSSHSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSHSessionResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n20 requests per 60 seconds per IP and token per sandbox."}}},"/api/v1/sandbox/{sandbox_id}/ssh-session/{session_id}":{"delete":{"tags":["Sandbox"],"summary":"Close Ssh Session Endpoint","description":"Close an SSH session (removes the TCP exposure).","operationId":"close_ssh_session_endpoint_api_v1_sandbox__sandbox_id__ssh_session__session_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnexposePortResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n20 requests per 60 seconds per IP and token per sandbox."}}},"/api/v1/secrets/":{"get":{"tags":["Secrets"],"summary":"List Secrets","description":"List global secrets for the authenticated user or a team.\n\nIf teamId is provided, returns secrets for that team (requires team membership).\nOtherwise, returns the user's personal secrets.","operationId":"list_secrets_api_v1_secrets__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teamId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by team ID","title":"Teamid"},"description":"Filter by team ID"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericPaginationResponse_List_SecretResponse__"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Secrets"],"summary":"Create Secret","description":"Create a new global secret.\n\nThe secret will be encrypted and stored securely. If teamId is provided,\nthe secret will be associated with that team (requires team membership).","operationId":"create_secret_api_v1_secrets__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericResponse_SecretResponse_"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/secrets/{secret_id}":{"get":{"tags":["Secrets"],"summary":"Get Secret","description":"Get a specific secret by ID.\n\nNote: The secret value is not returned, only metadata.","operationId":"get_secret_api_v1_secrets__secret_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","title":"Secret Id"}},{"name":"teamId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team ID for team secrets","title":"Teamid"},"description":"Team ID for team secrets"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericResponse_SecretResponse_"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Secrets"],"summary":"Update Secret","description":"Update an existing secret.\n\nYou can update the name, value, and/or description.","operationId":"update_secret_api_v1_secrets__secret_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","title":"Secret Id"}},{"name":"teamId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team ID for team secrets","title":"Teamid"},"description":"Team ID for team secrets"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericResponse_SecretResponse_"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Secrets"],"summary":"Delete Secret","description":"Delete a secret.\n\nThis operation cannot be undone. Secrets that are linked to environments\nwill be automatically unlinked.","operationId":"delete_secret_api_v1_secrets__secret_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","title":"Secret Id"}},{"name":"teamId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team ID for team secrets","title":"Teamid"},"description":"Team ID for team secrets"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/ssh_keys/":{"get":{"tags":["SSH Keys"],"summary":"Get Ssh Keys","operationId":"get_ssh_keys_api_v1_ssh_keys__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericPaginationResponse_List_APISSHKeyConfig__"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["SSH Keys"],"summary":"Upload Ssh Key","operationId":"upload_ssh_key_api_v1_ssh_keys__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APISSHKeyUploadRequestConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APISSHKeyConfig"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/ssh_keys/{key_id}":{"delete":{"tags":["SSH Keys"],"summary":"Delete Ssh Key","operationId":"delete_ssh_key_api_v1_ssh_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["SSH Keys"],"summary":"Set Primary Key","operationId":"set_primary_key_api_v1_ssh_keys__key_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APISSHKeyUpdateRequestConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APISSHKeyUpdateResponseConfig"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/teams/{team_id}/members":{"get":{"tags":["teams"],"summary":"List Team Members","operationId":"list_team_members_api_v1_teams__team_id__members_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericPaginationResponse_List_TeamMemberDetail__"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/template/check-docker-image":{"post":{"tags":["Template"],"summary":"Check Docker Image","description":"Check whether a docker image is accessible (optionally with registry credentials).","operationId":"check_docker_image_api_v1_template_check_docker_image_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DockerImageCheckRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/template/registry-credentials":{"get":{"tags":["Template"],"summary":"List Registry Credentials","description":"List registry credentials owned by the requesting user or their teams.","operationId":"list_registry_credentials_api_v1_template_registry_credentials_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryCredentialsListResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/training/runs":{"post":{"tags":["training"],"summary":"Create Dedicated Run","description":"Dispatch a dedicated full-FT prime-rl run on a registered PrimeCluster.","operationId":"create_dedicated_run_api_v1_training_runs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDedicatedRunRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDedicatedRunResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/training/runs/{run_id}":{"delete":{"tags":["training"],"summary":"Delete Dedicated Run","description":"Delete a dedicated run: helm uninstall + namespace delete + DB cleanup.\n\nIdempotent. Safe to call repeatedly. Cleans up the linked Job row too\n(which uninstalls the helm release on the customer cluster). Soft-\ndeletes the RFTRun row (matches the existing run-delete UX — Billing\nrefs are preserved).","operationId":"delete_dedicated_run_api_v1_training_runs__run_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteRunResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/tunnel":{"post":{"tags":["Tunnel"],"summary":"Create Tunnel Endpoint","description":"Create a new tunnel for exposing a local service.","operationId":"create_tunnel_endpoint_api_v1_tunnel_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTunnelRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n100 requests per 60 seconds per user."}},"get":{"tags":["Tunnel"],"summary":"List Tunnels Endpoint","description":"List all active tunnels for the current user.","operationId":"list_tunnels_endpoint_api_v1_tunnel_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teamId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelListResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n300 requests per 60 seconds per user."}},"delete":{"tags":["Tunnel"],"summary":"Bulk Delete Tunnels Endpoint","description":"Bulk delete multiple tunnels by IDs.","operationId":"bulk_delete_tunnels_endpoint_api_v1_tunnel_delete","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteTunnelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteTunnelResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n100 requests per 60 seconds per user."}}},"/api/v1/tunnel/{tunnel_id}":{"get":{"tags":["Tunnel"],"summary":"Get Tunnel Status Endpoint","description":"Get status of a specific tunnel.","operationId":"get_tunnel_status_endpoint_api_v1_tunnel__tunnel_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tunnel_id","in":"path","required":true,"schema":{"type":"string","title":"Tunnel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelStatusResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n300 requests per 60 seconds per tunnel."}},"delete":{"tags":["Tunnel"],"summary":"Delete Tunnel Endpoint","description":"Delete a tunnel and disconnect any active clients.","operationId":"delete_tunnel_endpoint_api_v1_tunnel__tunnel_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tunnel_id","in":"path","required":true,"schema":{"type":"string","title":"Tunnel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteTunnelResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"content":"## Rate Limit\n\n100 requests per 60 seconds per user."}}},"/api/v1/user/slug":{"patch":{"tags":["user"],"summary":"Set Username Slug","operationId":"set_username_slug_api_v1_user_slug_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSlugUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericResponse_User_"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/user/teams":{"get":{"tags":["user"],"summary":"List My Teams","operationId":"list_my_teams_api_v1_user_teams_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericPaginationResponse_List_TeamSummary__"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/user/whoami":{"get":{"tags":["user"],"summary":"Get Whoami","operationId":"get_whoami_api_v1_user_whoami_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericResponse_WhoamiResponse_"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}}},"components":{"schemas":{"APIDeletePodResponse":{"properties":{"status":{"$ref":"#/components/schemas/PodStatusEnum","examples":["TERMINATED"]}},"type":"object","required":["status"],"title":"APIDeletePodResponse"},"APIDiskConfig":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the disk, generated as a UUID."},"name":{"type":"string","maxLength":255,"title":"Name","description":"Name of the disk."},"createdAt":{"type":"string","format":"date-time","title":"Createdat","description":"Timestamp when the disk was created."},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat","description":"Timestamp when the disk was last updated."},"terminatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terminatedat","description":"Timestamp when the disk was terminated."},"status":{"$ref":"#/components/schemas/DiskStatusEnum","description":"Current status of the disk.","default":"PROVISIONING"},"providerType":{"$ref":"#/components/schemas/ProviderTypeEnum","description":"Type of provider associated with the disk."},"size":{"type":"integer","title":"Size","description":"Size of the disk in GB.","default":0},"info":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Info","description":"JSON field for additional information about the disk."},"priceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pricehr","description":"Hourly price for using the disk."},"stoppedPriceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stoppedpricehr","description":"Hourly price when the disk is stopped."},"provisioningPriceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Provisioningpricehr","description":"Hourly price during provisioning.","default":0.0},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid","description":"ID of the user associated with this disk."},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid","description":"ID of the team owning this disk."},"walletId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Walletid","description":"ID of the wallet associated with this disk."},"pods":{"items":{"type":"string"},"type":"array","title":"Pods","description":"Pods attached to the disk.","default":[]},"clusters":{"items":{"type":"string"},"type":"array","title":"Clusters","description":"Clusters attached to the disk.","default":[]}},"type":"object","required":["name","providerType","userId"],"title":"APIDiskConfig"},"APIDiskCreateRequest":{"properties":{"size":{"type":"integer","exclusiveMinimum":0.0,"title":"Size","description":"Size of the disk in GB."},"name":{"type":"string","maxLength":255,"title":"Name","description":"Optional name for the disk."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Location country."},"cloudId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloudid","description":"Cloud ID."},"dataCenterId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Datacenterid","description":"Data center ID."}},"additionalProperties":false,"type":"object","required":["size"],"title":"APIDiskCreateRequest"},"APIDiskUpdateRequest":{"properties":{"name":{"type":"string","title":"Name","description":"New human-friendly name for the disk."}},"type":"object","required":["name"],"title":"APIDiskUpdateRequest"},"APIPodConfig":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the pod, generated as a UUID."},"userId":{"type":"string","title":"Userid","description":"ID of the user associated with this pod, if applicable."},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid","description":"ID of the team owning this pod, if applicable."},"walletId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Walletid","description":"ID of the wallet associated with this pod for billing or resource tracking."},"name":{"type":"string","title":"Name","description":"Name of the pod."},"type":{"$ref":"#/components/schemas/PodTypeEnum","description":"Type of the pod, based on PodTypeEnum.","default":"HOSTED","deprecated":true},"providerType":{"$ref":"#/components/schemas/ProviderTypeEnum","description":"Type of provider associated with the pod, based on ProviderTypeEnum."},"status":{"$ref":"#/components/schemas/PodStatusEnum","description":"Current status of the pod, based on PodStatusEnum.","default":"PROVISIONING"},"installationStatus":{"$ref":"#/components/schemas/InstallationStatusEnum","description":"Installation status of the pod, based on InstallationStatusEnum.","default":"PENDING"},"installationFailure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installationfailure","description":"Details about any installation failures that occurred, if applicable."},"installationProgress":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Installationprogress","description":"Percentage of the installation process completed."},"createdAt":{"type":"string","format":"date-time","title":"Createdat","description":"Timestamp when the pod was created."},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat","description":"Timestamp when the pod was last updated."},"terminatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terminatedat","description":"Timestamp when the pod was terminated."},"gpuName":{"$ref":"#/components/schemas/GPUType","description":"Model of the GPU allocated."},"gpuCount":{"type":"integer","title":"Gpucount","description":"Number of GPUs allocated to the node.","examples":[1]},"socket":{"$ref":"#/components/schemas/GPUSocket","description":"Type of socket used by the GPU."},"priceHr":{"type":"number","title":"Pricehr","description":"Hourly price for running the pod.","examples":[1.23]},"stoppedPriceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stoppedpricehr","description":"Hourly price when the pod is stopped. If empty then `priceHr` is used.","examples":[0.005]},"provisioningPriceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Provisioningpricehr","description":"Hourly price during the provisioning process. If empty then `priceHr` is used.","default":0.0},"environmentType":{"$ref":"#/components/schemas/EnvironmentTypeEnum","description":"Type of image selected for the pod.","default":"ubuntu_22_cuda_12"},"customTemplateId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customtemplateid","description":"ID of the custom template applied to the pod, if applicable."},"clusterId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clusterid","description":"ID of the cluster to which the pod belongs."},"primePortMapping":{"anyOf":[{"items":{"$ref":"#/components/schemas/PortMapping"},"type":"array"},{"type":"null"}],"title":"Primeportmapping","description":"Port mapping.","default":[]},"sshConnection":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Sshconnection","description":"SSH connection/connections details."},"ip":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Ip","description":"IP address/addresses of the instance."},"resources":{"anyOf":[{"$ref":"#/components/schemas/InstanceResources"},{"type":"null"}],"description":"Instance resources."},"attachedResources":{"anyOf":[{"items":{"$ref":"#/components/schemas/AttachedResources"},"type":"array"},{"type":"null"}],"title":"Attachedresources","description":"Instance attached resources.","default":[]},"isSpot":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isspot","description":"Whether the instance is spot."},"autoRestart":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autorestart","description":"Automatically restart the instance."}},"type":"object","required":["userId","name","providerType","gpuName","gpuCount","socket","priceHr"],"title":"APIPodConfig"},"APIPodStatusResponse":{"properties":{"podId":{"type":"string","title":"Podid","description":"Unique identifier for the pod."},"providerType":{"$ref":"#/components/schemas/ProviderTypeEnum","description":"ID of the provider."},"status":{"$ref":"#/components/schemas/PodStatusEnum","description":"Current status of the pod."},"sshConnection":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Sshconnection","description":"SSH connection details for the pod, which may be a string or list of strings (if there are multiple nodes).","examples":["root@135.23.125.123 -p 22"]},"ip":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Ip","description":"IP address or list (if there are multiple nodes) of IP addresses associated with the pod.","examples":["135.23.125.123"]},"installationStatus":{"anyOf":[{"$ref":"#/components/schemas/InstallationStatusEnum"},{"type":"null"}],"description":"Installation status of the pod, based on InstallationStatusEnum."},"installationFailure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installationfailure","description":"Details about any installation failures that occurred, if applicable."},"installationProgress":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Installationprogress","description":"Percentage of the installation process that has been completed, if available."}},"type":"object","required":["podId","providerType","status"],"title":"APIPodStatusResponse"},"APISSHKeyConfig":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the SSH key."},"userId":{"type":"string","title":"Userid","description":"ID of the user associated with this pod, if applicable."},"name":{"type":"string","title":"Name","description":"Name of the SSH key."},"publicKey":{"type":"string","title":"Publickey","description":"The public key part of the SSH key."},"isPrimary":{"type":"boolean","title":"Isprimary","description":"Whether this SSH key is the primary key."},"isUserKey":{"type":"boolean","title":"Isuserkey","description":"Whether this a custom key uploaded by the user."},"createdAt":{"type":"string","format":"date-time","title":"Createdat","description":"Timestamp when the SSH key was added."},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat","description":"Timestamp when the SSH key was last updated."}},"type":"object","required":["id","userId","name","publicKey","isPrimary","isUserKey"],"title":"APISSHKeyConfig"},"APISSHKeyUpdateRequestConfig":{"properties":{"isPrimary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isprimary","description":"Whether to set the key as the primary key. Must be true when provided."}},"type":"object","title":"APISSHKeyUpdateRequestConfig"},"APISSHKeyUpdateResponseConfig":{"properties":{"message":{"type":"string","title":"Message"},"updated_fields":{"type":"object","title":"Updated Fields"}},"type":"object","required":["message","updated_fields"],"title":"APISSHKeyUpdateResponseConfig"},"APISSHKeyUploadRequestConfig":{"properties":{"name":{"type":"string","title":"Name","description":"The name for the key."},"publicKey":{"type":"string","title":"Publickey","description":"The public key part of the SSH key."}},"type":"object","required":["name","publicKey"],"title":"APISSHKeyUploadRequestConfig"},"AdminClusterSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"providerType":{"type":"string","title":"Providertype"},"status":{"type":"string","title":"Status"},"vaultEnabled":{"type":"boolean","title":"Vaultenabled"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"controller":{"anyOf":[{"$ref":"#/components/schemas/ClusterNodeConnection"},{"type":"null"}],"description":"Control-node connection details (always populated when a control node exists)."},"nodes":{"anyOf":[{"items":{"$ref":"#/components/schemas/ClusterNodeConnection"},"type":"array"},{"type":"null"}],"title":"Nodes","description":"All node connection details. Only populated when ?detailed=true."}},"type":"object","required":["id","name","providerType","status","vaultEnabled","createdAt"],"title":"AdminClusterSummary","description":"Lightweight cluster summary returned by the admin list endpoint."},"AdminWhoamiResponse":{"properties":{"id":{"type":"string","title":"Id"},"role":{"$ref":"#/components/schemas/UserRoleEnum","default":"USER"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"email":{"type":"string","title":"Email"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"emailVerified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Emailverified"},"hasBetaAccess":{"type":"boolean","title":"Hasbetaaccess","default":false},"isBanned":{"type":"boolean","title":"Isbanned","default":false},"skipPrepay":{"type":"boolean","title":"Skipprepay","default":false},"blacklist":{"items":{"type":"string"},"type":"array","title":"Blacklist","default":[]},"permissions":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Permissions","description":"Resolved UserPermission envelope: each section maps to the list of actions this admin user can perform across the admin API surface."},"admin_role":{"$ref":"#/components/schemas/UserRoleEnum","description":"Admin role assigned to this user"}},"type":"object","required":["name","email","admin_role"],"title":"AdminWhoamiResponse","description":"Extended User response that includes admin permissions."},"AdvancedConfigs":{"properties":{},"additionalProperties":true,"type":"object","title":"AdvancedConfigs"},"AttachableResourceStatus":{"type":"string","enum":["UNATTACHED","ATTACHED","MOUNTED"],"title":"AttachableResourceStatus"},"AttachableResourceType":{"type":"string","enum":["DISK"],"const":"DISK","title":"AttachableResourceType"},"AttachedResources":{"properties":{"resourceType":{"$ref":"#/components/schemas/AttachableResourceType","description":"Type of resource.","examples":["DISK"]},"id":{"anyOf":[{"type":"string"},{"type":"integer"}],"title":"Id","description":"Unique identifier for the resource."},"status":{"$ref":"#/components/schemas/AttachableResourceStatus","description":"Resource status.","default":"UNATTACHED"},"isDetachable":{"type":"boolean","title":"Isdetachable","description":"Whether the resource is detachable.","default":true},"mountPath":{"type":"string","title":"Mountpath","description":"Path to the mount point.","default":"/workspace"},"resourcePath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resourcepath","description":"Path to the resource."},"size":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Size","description":"Size of the resource."},"isShared":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isshared","description":"Whether the resource is shared.","default":false}},"type":"object","required":["resourceType","id"],"title":"AttachedResources"},"AvailabilityResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GpuAvailability"},"type":"array","title":"Items","description":"List of available GPU configurations"},"totalCount":{"type":"integer","title":"Totalcount","description":"Total number of matching GPU configurations"}},"type":"object","required":["items","totalCount"],"title":"AvailabilityResponse"},"BillingEntry":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"last_billed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Billed At"},"amount_usd":{"type":"number","title":"Amount Usd"},"currency":{"type":"string","title":"Currency"},"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"}},"type":"object","required":["id","created_at","updated_at","amount_usd","currency","resource_type"],"title":"BillingEntry","description":"A single row from the Billing table, with the resource derived from\nwhichever foreign-key column is non-null.\n\n`resource_type` mirrors the strings the dashboard's billing page filters\nby (`compute`, `training`, `inference`, `disks`, `sandboxes`, `images`).\n`resource_id` is the matching FK value, so callers can drill back into\nthe run / pod / disk / etc. that produced the charge."},"Body_create_disk_api_v1_disks__post":{"properties":{"disk":{"$ref":"#/components/schemas/APIDiskCreateRequest"},"provider":{"$ref":"#/components/schemas/ProviderConfig"},"team":{"anyOf":[{"$ref":"#/components/schemas/TeamConfig"},{"type":"null"}]}},"type":"object","required":["disk","provider"],"title":"Body_create_disk_api_v1_disks__post"},"Body_create_pod_api_v1_pods__post":{"properties":{"pod":{"$ref":"#/components/schemas/PodRequestConfig"},"provider":{"$ref":"#/components/schemas/ProviderConfig"},"disks":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Disks"},"team":{"anyOf":[{"$ref":"#/components/schemas/TeamConfig"},{"type":"null"}]},"team_member_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Team Member Ids"},"shared_with_team":{"type":"boolean","title":"Shared With Team","default":false}},"type":"object","required":["pod","provider"],"title":"Body_create_pod_api_v1_pods__post"},"BuildArtifactStatusResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Internal identifier for this artifact build row"},"artifactType":{"$ref":"#/components/schemas/ImageBuildArtifactTypeEnum","description":"Artifact produced by this build row","default":"CONTAINER_IMAGE"},"status":{"$ref":"#/components/schemas/ImageBuildStatusEnum","description":"Current artifact status"},"fullImagePath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fullimagepath","description":"Output reference for this built artifact"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage","description":"Error message if build failed"},"createdAt":{"type":"string","format":"date-time","title":"Createdat","description":"Timestamp when the artifact row was created"},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Startedat","description":"Timestamp when the artifact row started"},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completedat","description":"Timestamp when the artifact row completed"}},"type":"object","required":["id","status","createdAt"],"title":"BuildArtifactStatusResponse","description":"Status for one artifact row within a build group."},"BuildImageRequest":{"properties":{"image_name":{"type":"string","title":"Image Name","description":"Image name (e.g., 'myapp')"},"image_tag":{"type":"string","title":"Image Tag","description":"Image tag (e.g., 'v1.0.0')"},"dockerfile_path":{"type":"string","title":"Dockerfile Path","description":"Path to Dockerfile within build context","default":"Dockerfile"},"platform":{"type":"string","enum":["linux/amd64","linux/arm64"],"title":"Platform","description":"Target platform (linux/amd64 or linux/arm64)","default":"linux/amd64"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid","description":"Team ID if building image in team context"},"visibility":{"$ref":"#/components/schemas/ImageVisibilityOverrideEnum","description":"Visibility override to apply when the build completes. INHERIT preserves existing tag visibility or defaults new tags to PRIVATE.","default":"INHERIT"}},"type":"object","required":["image_name","image_tag"],"title":"BuildImageRequest","description":"Request model for building an image."},"BuildImageResponse":{"properties":{"build_id":{"type":"string","title":"Build Id","description":"Build ID for tracking"},"upload_url":{"type":"string","title":"Upload Url","description":"Presigned URL to upload build context (tar.gz)"},"expires_in":{"type":"integer","title":"Expires In","description":"URL validity in seconds"},"fullImagePath":{"type":"string","title":"Fullimagepath","description":"Full image path with user ID"},"visibility":{"$ref":"#/components/schemas/ImageVisibilityEnum","description":"Effective visibility for the image when the build completes","default":"PRIVATE"}},"type":"object","required":["build_id","upload_url","expires_in","fullImagePath"],"title":"BuildImageResponse","description":"Response model for initiating image build."},"BuildStatusResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Public identifier for the logical build group"},"imageName":{"type":"string","title":"Imagename","description":"Name of the image being built"},"imageTag":{"type":"string","title":"Imagetag","description":"Tag of the image being built"},"status":{"$ref":"#/components/schemas/ImageBuildStatusEnum","description":"Aggregated build-group status"},"createdAt":{"type":"string","format":"date-time","title":"Createdat","description":"Timestamp when the build was created"},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Startedat","description":"Timestamp when the build started"},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completedat","description":"Timestamp when the build completed"},"artifacts":{"items":{"$ref":"#/components/schemas/BuildArtifactStatusResponse"},"type":"array","title":"Artifacts","description":"Artifact rows associated with this build group"}},"type":"object","required":["id","imageName","imageTag","status","createdAt"],"title":"BuildStatusResponse","description":"Response model for a logical build group."},"BulkDeleteEvaluationsRequest":{"properties":{"evaluation_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Evaluation Ids"}},"type":"object","required":["evaluation_ids"],"title":"BulkDeleteEvaluationsRequest"},"BulkDeleteEvaluationsResponse":{"properties":{"success_count":{"type":"integer","title":"Success Count","description":"Number of evaluations successfully deleted"},"failure_count":{"type":"integer","title":"Failure Count","description":"Number of evaluations that failed to delete"},"successful_ids":{"items":{"type":"string"},"type":"array","title":"Successful Ids","description":"IDs of successfully deleted evaluations"},"failed_ids":{"items":{"type":"string"},"type":"array","title":"Failed Ids","description":"IDs of evaluations that failed to delete"}},"type":"object","required":["success_count","failure_count","successful_ids","failed_ids"],"title":"BulkDeleteEvaluationsResponse"},"BulkDeleteSandboxRequest":{"properties":{"sandbox_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1},{"type":"null"}],"title":"Sandbox Ids","description":"List of sandbox IDs to delete"},"labels":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1},{"type":"null"}],"title":"Labels","description":"List of labels - delete all sandboxes with ALL these labels"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Scope deletion to sandboxes in this team. Required when all_users is true or when targeting another user's sandboxes."},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"Scope deletion to sandboxes owned by this user. Defaults to the authenticated caller unless all_users is true. Targeting another user's ID requires team admin role on team_id."},"all_users":{"type":"boolean","title":"All Users","description":"Delete sandboxes across all users in the given team_id. Requires team admin role on team_id.","default":false}},"type":"object","title":"BulkDeleteSandboxRequest"},"BulkDeleteSandboxResponse":{"properties":{"succeeded":{"items":{"type":"string"},"type":"array","title":"Succeeded","description":"List of successfully deleted sandbox IDs"},"failed":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Failed","description":"List of failed deletions with error messages"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"BulkDeleteSandboxResponse"},"BulkDeleteTunnelRequest":{"properties":{"tunnel_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Tunnel Ids","description":"List of tunnel IDs to delete"}},"type":"object","required":["tunnel_ids"],"title":"BulkDeleteTunnelRequest","description":"Request to bulk delete tunnels."},"BulkDeleteTunnelResponse":{"properties":{"succeeded":{"items":{"type":"string"},"type":"array","title":"Succeeded","description":"Successfully deleted tunnel IDs"},"failed":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Failed","description":"Failed deletions with error messages"},"message":{"type":"string","title":"Message","description":"Summary message"}},"type":"object","required":["message"],"title":"BulkDeleteTunnelResponse","description":"Response for bulk tunnel deletion."},"CancelHostedEvaluationResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"evaluation_id":{"type":"string","title":"Evaluation Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["success","message","evaluation_id","status"],"title":"CancelHostedEvaluationResponse"},"CertificateRequest":{"properties":{"publicKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publickey"},"ttl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ttl","description":"Requested certificate TTL as a Vault-style duration (e.g. '30m', '2h'). Capped at 8h; omit to use the server default."}},"type":"object","title":"CertificateRequest","description":"Optional request body for the admin certificate endpoint.\n\nIf ``public_key`` is provided the backend will sign it directly; otherwise\nit falls back to the admin's DB-stored SSH public key."},"CertificateResponse":{"properties":{"signedKey":{"type":"string","title":"Signedkey"},"validPrincipals":{"items":{"type":"string"},"type":"array","title":"Validprincipals"},"ttl":{"type":"string","title":"Ttl"},"nodes":{"items":{"$ref":"#/components/schemas/ClusterNodeConnection"},"type":"array","title":"Nodes","description":"All connectable SSH endpoints for the cluster."}},"type":"object","required":["signedKey","validPrincipals","ttl"],"title":"CertificateResponse"},"ClusterDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"remoteId":{"type":"string","title":"Remoteid"},"name":{"type":"string","title":"Name"},"providerType":{"type":"string","title":"Providertype"},"status":{"type":"string","title":"Status"},"vaultEnabled":{"type":"boolean","title":"Vaultenabled"},"gpuName":{"type":"string","title":"Gpuname"},"gpuCount":{"type":"integer","title":"Gpucount"},"socket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Socket"},"priceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pricehr"},"stoppedPriceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stoppedpricehr"},"provisioningPriceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Provisioningpricehr"},"basePriceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Basepricehr"},"baseCurrency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basecurrency"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid"},"walletId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Walletid"},"orchestratorType":{"type":"string","title":"Orchestratortype"},"orchestratorVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orchestratorversion"},"orchestratorEndpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orchestratorendpoint"},"orchestratorConfig":{"anyOf":[{},{"type":"null"}],"title":"Orchestratorconfig"},"orchestratorDeploymentJobId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orchestratordeploymentjobid"},"orchestratorDeploymentStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orchestratordeploymentstatus"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"terminatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terminatedat"},"info":{"title":"Info"},"nodes":{"items":{"$ref":"#/components/schemas/ClusterNodeDetail"},"type":"array","title":"Nodes"},"sshKeys":{"items":{"$ref":"#/components/schemas/ClusterSSHKeyDetail"},"type":"array","title":"Sshkeys"}},"type":"object","required":["id","remoteId","name","providerType","status","vaultEnabled","gpuName","gpuCount","orchestratorType","createdAt","updatedAt"],"title":"ClusterDetailResponse","description":"All DB details for a single cluster (columns + nodes + SSH keys)."},"ClusterNodeConnection":{"properties":{"podId":{"type":"string","title":"Podid"},"podName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Podname"},"host":{"type":"string","title":"Host"},"port":{"type":"integer","title":"Port","default":22},"user":{"type":"string","title":"User"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"isControlNode":{"type":"boolean","title":"Iscontrolnode","default":false}},"type":"object","required":["podId","host","user"],"title":"ClusterNodeConnection","description":"Connection details for a single cluster pod/node."},"ClusterNodeDetail":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"remoteId":{"type":"string","title":"Remoteid"},"providerType":{"type":"string","title":"Providertype"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"status":{"type":"string","title":"Status"},"installationStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installationstatus"},"testStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teststatus"},"finalizerStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finalizerstatus"},"installationProgress":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Installationprogress"},"installationFailure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installationfailure"},"gpuName":{"type":"string","title":"Gpuname"},"gpuCount":{"type":"integer","title":"Gpucount"},"socket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Socket"},"priceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pricehr"},"stoppedPriceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stoppedpricehr"},"provisioningPriceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Provisioningpricehr"},"basePriceHr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Basepricehr"},"baseCurrency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basecurrency"},"environmentType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environmenttype"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid"},"walletId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Walletid"},"isDetached":{"type":"boolean","title":"Isdetached","default":false},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"terminatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terminatedat"},"providerReadyAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Providerreadyat"},"piReadyAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pireadyat"},"info":{"title":"Info"},"connections":{"items":{"$ref":"#/components/schemas/ClusterNodeConnection"},"type":"array","title":"Connections"}},"type":"object","required":["id","name","remoteId","providerType","status","gpuName","gpuCount","createdAt","updatedAt"],"title":"ClusterNodeDetail","description":"Full DB details for a single cluster pod/node."},"ClusterNodeLogEntry":{"properties":{"id":{"type":"string","title":"Id"},"eventType":{"type":"string","title":"Eventtype"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"podId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Podid"},"podName":{"type":"string","title":"Podname"},"podStatus":{"type":"string","title":"Podstatus"},"gpuName":{"type":"string","title":"Gpuname"},"gpuCount":{"type":"integer","title":"Gpucount"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"changeSummary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changesummary"}},"type":"object","required":["id","eventType","createdAt","podName","podStatus","gpuName","gpuCount"],"title":"ClusterNodeLogEntry","description":"One ClusterNodeLog row (matches the frontend Node History dialog)."},"ClusterNodeLogEventTypeEnum":{"type":"string","enum":["ATTACHED","UPDATED","DETACHED","CLUSTER_UPDATED","CLUSTER_TERMINATED","AUTHORIZATION"],"title":"ClusterNodeLogEventTypeEnum"},"ClusterSSHKeyDetail":{"properties":{"id":{"type":"string","title":"Id"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"},"sshKeyId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sshkeyid"},"role":{"type":"string","title":"Role"},"publicKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publickey"}},"type":"object","required":["id","role"],"title":"ClusterSSHKeyDetail","description":"Authorized SSH key entry for a cluster."},"CreateDedicatedRunRequest":{"properties":{"config":{"type":"object","title":"Config","description":"Full prime-rl-style TOML, parsed to a dict. Same shape as `prime-rl/examples/*/rl.toml`; the platform splits it into trainer / orchestrator / inference subconfigs and bakes each into the corresponding pod's startup command."},"imageTag":{"type":"string","title":"Imagetag","description":"prime-rl container image tag","default":"main"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Optional human-readable run name"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid","description":"Owning team (defaults to caller's user)"},"wandbApiKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wandbapikey","description":"W&B key. Materialised into the run's k8s Secret only — never stored on the RFTRun row."},"hfToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hftoken","description":"HF token for gated/private model downloads."}},"type":"object","required":["config"],"title":"CreateDedicatedRunRequest"},"CreateDedicatedRunResponse":{"properties":{"runId":{"type":"string","title":"Runid"},"jobId":{"type":"string","title":"Jobid"},"tokenValue":{"type":"string","title":"Tokenvalue","description":"PRIME_API_KEY for this run. Returned once — the platform stores only the token id."}},"type":"object","required":["runId","jobId","tokenValue"],"title":"CreateDedicatedRunResponse"},"CreateEvaluationRequest":{"properties":{"name":{"type":"string","title":"Name","description":"Name of the evaluation"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team ID if creating evaluation for a team"},"environments":{"anyOf":[{"items":{"$ref":"#/components/schemas/EnvironmentReference"},"type":"array"},{"type":"null"}],"title":"Environments","description":"List of environment references with optional version IDs"},"suite_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suite Id","description":"Suite ID if this evaluation is part of a suite"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id","description":"Run ID for Prime RL runs (optional)"},"is_hosted":{"type":"boolean","title":"Is Hosted","description":"Whether this is a hosted evaluation","default":false},"inference_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inference Model","description":"Prime Inference model ID"},"eval_config":{"anyOf":[{"$ref":"#/components/schemas/HostedEvalConfig"},{"type":"null"}],"description":"Hosted evaluation configuration"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Model name"},"dataset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset","description":"Dataset name"},"framework":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Framework","description":"Framework used (e.g., 'prime-rl', 'openai/evals')"},"task_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type","description":"Type of task (e.g., 'classification', 'generation')"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the evaluation"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","description":"Tags for categorization","default":[]},"metadata":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metadata","description":"Additional metadata"},"metrics":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metrics","description":"High-level metrics summary"},"is_public":{"type":"boolean","title":"Is Public","description":"Whether this evaluation is publicly shareable by link","default":false},"show_on_leaderboard":{"type":"boolean","title":"Show On Leaderboard","description":"Whether this public evaluation appears on environment leaderboards","default":false}},"type":"object","required":["name"],"title":"CreateEvaluationRequest","description":"Request to create a new evaluation"},"CreateEvaluationResponse":{"properties":{"evaluation_id":{"type":"string","title":"Evaluation Id","description":"ID of the created evaluation"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/EvaluationStatus"},"eval_type":{"$ref":"#/components/schemas/EvaluationType","description":"Type: 'prime_rl', 'environment', or 'suite'"},"environment_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Environment Ids"},"suite_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suite Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Id"},"viewer_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["evaluation_id","name","status","eval_type","created_at"],"title":"CreateEvaluationResponse","description":"Response after creating an evaluation"},"CreateHostedEvaluationRequest":{"properties":{"environment_ids":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Environment Ids","description":"List of environment IDs to evaluate"},"inference_model":{"type":"string","title":"Inference Model","description":"Model ID for inference"},"eval_config":{"$ref":"#/components/schemas/HostedEvalConfig","description":"Evaluation configuration"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Optional team ID to own the hosted evaluation"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Optional custom evaluation name"}},"type":"object","required":["environment_ids","inference_model","eval_config"],"title":"CreateHostedEvaluationRequest","description":"Request to create and start a hosted evaluation"},"CreateHostedEvaluationResponse":{"properties":{"evaluation_id":{"type":"string","title":"Evaluation Id","description":"ID of the created evaluation"},"sandbox_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sandbox Id","description":"ID of the sandbox running the evaluation"},"status":{"type":"string","title":"Status","description":"Current status of the evaluation"},"evaluation_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Evaluation Ids","description":"List of evaluation IDs if multiple environments were provided"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if creation failed"}},"type":"object","required":["evaluation_id","status"],"title":"CreateHostedEvaluationResponse","description":"Response after creating a hosted evaluation"},"CreateSSHSessionRequest":{"properties":{"ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl Seconds","description":"Optional TTL for the SSH session in seconds (max 3600). Defaults to 900."}},"type":"object","title":"CreateSSHSessionRequest"},"CreateSandboxRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","description":"Sandbox name"},"docker_image":{"type":"string","minLength":1,"title":"Docker Image","description":"Docker image to run"},"start_command":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Command","description":"Command to run in container"},"cpu_cores":{"type":"number","maximum":16.0,"minimum":0.1,"title":"Cpu Cores","description":"CPU cores required","default":1.0},"memory_gb":{"type":"number","maximum":64.0,"minimum":0.1,"title":"Memory Gb","description":"Memory in GB","default":2.0},"disk_size_gb":{"type":"number","maximum":1000.0,"minimum":0.1,"title":"Disk Size Gb","description":"Disk size in GB","default":10.0},"gpu_count":{"type":"integer","maximum":8.0,"minimum":0.0,"title":"Gpu Count","description":"Number of GPUs","default":0},"gpu_type":{"anyOf":[{"$ref":"#/components/schemas/GPUType"},{"type":"null"}],"description":"GPU type (e.g. H100, A100). Required when gpu_count > 0"},"vm":{"type":"boolean","title":"Vm","description":"Create a VM sandbox on the VM sandbox infra. Required when requesting GPUs.","default":false},"network_access":{"type":"boolean","title":"Network Access","description":"Allow outbound internet access (enabled by default)","default":true},"timeout_minutes":{"type":"integer","maximum":1440.0,"minimum":1.0,"title":"Timeout Minutes","description":"Max execution time in minutes","default":60},"environment_vars":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Environment Vars","description":"Environment variables"},"secrets":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Secrets","description":"Sensitive environment variables. Currently supported for CPU sandboxes only; VM sandboxes reject this field."},"labels":{"items":{"type":"string"},"type":"array","title":"Labels","description":"Tags/labels for the sandbox"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team ID for team sandboxes"},"advanced_configs":{"anyOf":[{"$ref":"#/components/schemas/AdvancedConfigs"},{"type":"null"}],"description":"Advanced configuration options"},"registry_credentials_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registry Credentials Id","description":"Registry credentials ID for pulling private images"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"Cluster region for the sandbox (e.g. us, india). Omit to allow automatic placement."},"guaranteed":{"type":"boolean","title":"Guaranteed","description":"Admin/manager only. When true, schedule the sandbox with CPU/memory requests equal to its limits (Guaranteed QoS), bypassing the default oversubscription multiplier. Not applicable to VM sandboxes.","default":false},"idempotency_key":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Idempotency Key","description":"Client-generated key used to deduplicate retried create requests."}},"type":"object","required":["name","docker_image"],"title":"CreateSandboxRequest"},"CreateTunnelRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Name","description":"Optional friendly name for the tunnel"},"local_port":{"type":"integer","maximum":65535.0,"minimum":1.0,"title":"Local Port","description":"Local port the tunnel will forward traffic to","default":8765},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid","description":"Team ID for team tunnels"}},"type":"object","title":"CreateTunnelRequest","description":"Request to create a new tunnel."},"Currency":{"type":"string","enum":["USD","EUR"],"title":"Currency"},"CustomSpecValue":{"properties":{"minCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mincount","description":"Minimum count for this specification.","examples":[2]},"defaultCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Defaultcount","description":"Default count for the specification.","examples":[8]},"maxCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxcount","description":"Maximum allowable count for this specification.","examples":[24]},"pricePerUnit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Priceperunit","description":"Price per unit per hr.","examples":[0.005]},"step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Step","description":"Increment step for adjusting the count (e.g., increments by 1 or 10).","examples":[2]},"defaultIncludedInPrice":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Defaultincludedinprice","description":"Indicates if the default count is included in the base price.","examples":[false]},"additionalInfo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additionalinfo","description":"Any additional information or notes regarding this specification.","examples":[null,"This price is charged even for stopped instance"]}},"type":"object","title":"CustomSpecValue"},"DeleteImageResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the deletion was successful"},"message":{"type":"string","title":"Message","description":"Status message describing the result"}},"type":"object","required":["success","message"],"title":"DeleteImageResponse","description":"Response model for deleting an image."},"DeleteRunResponse":{"properties":{"runId":{"type":"string","title":"Runid"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["runId","deleted"],"title":"DeleteRunResponse"},"DeleteSandboxResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"DeleteSandboxResponse"},"DeleteTunnelResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether deletion succeeded"},"message":{"type":"string","title":"Message","description":"Status message"}},"type":"object","required":["success","message"],"title":"DeleteTunnelResponse","description":"Response for tunnel deletion."},"DiskAvailability":{"properties":{"cloudId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloudid","description":"Cloud ID, used for provisioning"},"provider":{"$ref":"#/components/schemas/ProviderTypeEnum","description":"Provider's ID"},"dataCenter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Datacenter","description":"Location of the data center housing the disk."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country where the data center is located."},"region":{"anyOf":[{"$ref":"#/components/schemas/Regions"},{"type":"null"}],"description":"Region where the disk is located."},"spec":{"$ref":"#/components/schemas/CustomSpecValue","description":"Configurable shared disk size in GB and price per GB per hour.","default":{}},"stockStatus":{"type":"string","enum":["Available","Low","Medium","High","Unavailable"],"title":"Stockstatus","description":"Current stock availability status of disks.","default":"Available"},"security":{"$ref":"#/components/schemas/SecurityType","description":"Disk security classification (e.g., secure_cloud or community_cloud)."},"isMultinode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ismultinode","description":"Indicates if the disk can be used with multiple instances.","default":true}},"type":"object","required":["provider","security"],"title":"DiskAvailability"},"DiskAvailabilityResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DiskAvailability"},"type":"array","title":"Items","description":"List of available disk configurations"},"totalCount":{"type":"integer","title":"Totalcount","description":"Total number of matching disk configurations"}},"type":"object","required":["items","totalCount"],"title":"DiskAvailabilityResponse"},"DiskStatusEnum":{"type":"string","enum":["PROVISIONING","PENDING","ACTIVE","STOPPED","ERROR","DELETING","UNKNOWN","TERMINATED"],"title":"DiskStatusEnum"},"DockerImageCheckRequest":{"properties":{"image":{"type":"string","title":"Image"},"registry_credentials_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registry Credentials Id"}},"type":"object","required":["image"],"title":"DockerImageCheckRequest"},"EnvVar":{"properties":{"key":{"type":"string","title":"Key","description":"Environment variable key"},"value":{"type":"string","title":"Value","description":"Environment variable value"}},"type":"object","required":["key","value"],"title":"EnvVar"},"EnvironmentReference":{"properties":{"id":{"type":"string","title":"Id"},"version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Id"}},"type":"object","required":["id"],"title":"EnvironmentReference","description":"Environment reference with optional version"},"EnvironmentTypeEnum":{"type":"string","enum":["ubuntu_22_cuda_12","cuda_12_1_pytorch_2_2","cuda_11_8_pytorch_2_1","cuda_12_1_pytorch_2_3","cuda_12_1_pytorch_2_4","cuda_12_4_pytorch_2_4","cuda_12_4_pytorch_2_5","cuda_12_4_pytorch_2_6","cuda_12_6_pytorch_2_7","stable_diffusion","axolotl","bittensor","hivemind","petals_llama","vllm_llama_8b","vllm_llama_70b","vllm_llama_405b","custom_template","flux","prime_rl"],"title":"EnvironmentTypeEnum"},"ErrorDetail":{"properties":{"param":{"type":"string","title":"Param"},"details":{"type":"string","title":"Details"}},"type":"object","required":["param","details"],"title":"ErrorDetail"},"ErrorResponse":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors"}},"type":"object","required":["errors"],"title":"ErrorResponse"},"EvaluationStatus":{"type":"string","enum":["PENDING","RUNNING","PROCESSING","COMPLETED","FAILED","TIMEOUT","CANCELLED"],"title":"EvaluationStatus","description":"Evaluation status enum"},"EvaluationType":{"type":"string","enum":["suite","training","environment"],"title":"EvaluationType","description":"Evaluation type enum"},"ExposePortRequest":{"properties":{"port":{"type":"integer","maximum":9000.0,"minimum":22.0,"title":"Port","description":"Port number to expose (22-9000)"},"name":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Name","description":"Optional human-readable name for the exposure"},"protocol":{"type":"string","title":"Protocol","description":"Protocol (HTTP or TCP)","default":"HTTP"}},"type":"object","required":["port"],"title":"ExposePortRequest"},"ExposePortResponse":{"properties":{"exposure_id":{"type":"string","title":"Exposure Id"},"sandbox_id":{"type":"string","title":"Sandbox Id"},"port":{"type":"integer","title":"Port"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"protocol":{"type":"string","title":"Protocol"},"url":{"type":"string","title":"Url","description":"Public URL for accessing the exposed port"},"tls_socket":{"type":"string","title":"Tls Socket"},"external_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"External Port","description":"External port for TCP exposures (not applicable for HTTP)"},"external_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Endpoint","description":"External endpoint (host:port) for TCP/UDP exposures (not applicable for HTTP)"}},"type":"object","required":["exposure_id","sandbox_id","port","protocol","url","tls_socket"],"title":"ExposePortResponse"},"ExposedPortInfo":{"properties":{"exposure_id":{"type":"string","title":"Exposure Id"},"sandbox_id":{"type":"string","title":"Sandbox Id"},"port":{"type":"integer","title":"Port"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"protocol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Protocol"},"url":{"type":"string","title":"Url"},"tls_socket":{"type":"string","title":"Tls Socket"},"external_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"External Port","description":"External port for TCP/UDP exposures (not applicable for HTTP)"},"external_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Endpoint","description":"External endpoint (host:port) for TCP/UDP exposures (not applicable for HTTP)"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"Creation timestamp (ISO format)"}},"type":"object","required":["exposure_id","sandbox_id","port","name","url","tls_socket"],"title":"ExposedPortInfo"},"FeedbackCategory":{"type":"string","enum":["bug","feature","general"],"title":"FeedbackCategory"},"FeedbackRequest":{"properties":{"message":{"type":"string","maxLength":2048,"minLength":1,"title":"Message"},"category":{"$ref":"#/components/schemas/FeedbackCategory"},"cli_version":{"type":"string","maxLength":64,"minLength":1,"title":"Cli Version"},"run_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Run Id"}},"type":"object","required":["message","category","cli_version"],"title":"FeedbackRequest"},"FeedbackResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"FeedbackResponse"},"FinalizeEvaluationRequest":{"properties":{"metrics":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metrics","description":"Final metrics to attach to the evaluation"}},"type":"object","title":"FinalizeEvaluationRequest","description":"Request to finalize an evaluation (optional, can include final metrics)"},"FinalizeEvaluationResponse":{"properties":{"evaluation_id":{"type":"string","title":"Evaluation Id"},"status":{"$ref":"#/components/schemas/EvaluationStatus"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"total_samples":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Samples"},"avg_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Score"},"min_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Score"},"max_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Score"},"viewer_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Url"}},"type":"object","required":["evaluation_id","status"],"title":"FinalizeEvaluationResponse","description":"Response after finalizing an evaluation"},"FrpPluginRequest":{"properties":{"version":{"type":"string","title":"Version","description":"frp protocol version"},"op":{"type":"string","title":"Op","description":"Operation: Login, NewProxy, NewWorkConn, etc."},"content":{"type":"object","title":"Content","description":"Operation-specific content"}},"type":"object","required":["version","op","content"],"title":"FrpPluginRequest","description":"Request from frps server plugin."},"FrpPluginResponse":{"properties":{"reject":{"type":"boolean","title":"Reject","description":"Whether to reject the operation","default":false},"reject_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reject Reason","description":"Reason for rejection if rejected"},"unchange":{"type":"boolean","title":"Unchange","description":"Whether to leave request unchanged","default":true},"content":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Content","description":"Modified content if unchange=False"}},"type":"object","title":"FrpPluginResponse","description":"Response to frps server plugin."},"GPUSocket":{"type":"string","enum":["PCIe","SXM2","SXM3","SXM4","SXM5","SXM6"],"title":"GPUSocket"},"GPUType":{"type":"string","enum":["CPU_NODE","A10_24GB","A100_80GB","A100_40GB","A30_24GB","A40_48GB","B200_180GB","B300_262GB","GB200","GB300","RTX3070_8GB","RTX3070_8GB","RTX3080_10GB","RTX3080Ti_12GB","RTX3090_24GB","RTX3090Ti_24GB","RTX4070Ti_12GB","RTX4080_16GB","RTX4080Ti_16GB","RTX4090_24GB","RTX5090_32GB","H100_80GB","H200_96GB","GH200_96GB","H200_141GB","GH200_480GB","GH200_624GB","L4_24GB","L40_48GB","L40S_48GB","RTX4000_8GB","RTX5000_16GB","RTX6000_24GB","RTX8000_48GB","RTX2000Ada_16GB","RTX4000Ada_20GB","RTX5000Ada_32GB","RTX6000Ada_48GB","A2000_6GB","A4000_16GB","A4500_20GB","A5000_24GB","A6000_48GB","V100_16GB","V100_32GB","P100_16GB","T4_16GB","P4_8GB","P40_24GB","RTX_PRO_6000B_96GB"],"title":"GPUType"},"GenericPaginationResponse_List_APIDiskConfig__":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"Total number of items available in the dataset","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","description":"Number of items to skip before starting to collect the result set","default":0},"limit":{"type":"integer","minimum":0.0,"title":"Limit","description":"Maximum number of items to return","default":100},"data":{"items":{"$ref":"#/components/schemas/APIDiskConfig"},"type":"array","title":"Data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","required":["data"],"title":"GenericPaginationResponse[List[APIDiskConfig]]"},"GenericPaginationResponse_List_APIPodConfig__":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"Total number of items available in the dataset","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","description":"Number of items to skip before starting to collect the result set","default":0},"limit":{"type":"integer","minimum":0.0,"title":"Limit","description":"Maximum number of items to return","default":100},"data":{"items":{"$ref":"#/components/schemas/APIPodConfig"},"type":"array","title":"Data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","required":["data"],"title":"GenericPaginationResponse[List[APIPodConfig]]"},"GenericPaginationResponse_List_APISSHKeyConfig__":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"Total number of items available in the dataset","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","description":"Number of items to skip before starting to collect the result set","default":0},"limit":{"type":"integer","minimum":0.0,"title":"Limit","description":"Maximum number of items to return","default":100},"data":{"items":{"$ref":"#/components/schemas/APISSHKeyConfig"},"type":"array","title":"Data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","required":["data"],"title":"GenericPaginationResponse[List[APISSHKeyConfig]]"},"GenericPaginationResponse_List_BuildStatusResponse__":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"Total number of items available in the dataset","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","description":"Number of items to skip before starting to collect the result set","default":0},"limit":{"type":"integer","minimum":0.0,"title":"Limit","description":"Maximum number of items to return","default":100},"data":{"items":{"$ref":"#/components/schemas/BuildStatusResponse"},"type":"array","title":"Data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","required":["data"],"title":"GenericPaginationResponse[List[BuildStatusResponse]]"},"GenericPaginationResponse_List_HistoryObj__":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"Total number of items available in the dataset","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","description":"Number of items to skip before starting to collect the result set","default":0},"limit":{"type":"integer","minimum":0.0,"title":"Limit","description":"Maximum number of items to return","default":100},"data":{"items":{"$ref":"#/components/schemas/HistoryObj"},"type":"array","title":"Data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","required":["data"],"title":"GenericPaginationResponse[List[HistoryObj]]"},"GenericPaginationResponse_List_ImageResponse__":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"Total number of items available in the dataset","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","description":"Number of items to skip before starting to collect the result set","default":0},"limit":{"type":"integer","minimum":0.0,"title":"Limit","description":"Maximum number of items to return","default":100},"data":{"items":{"$ref":"#/components/schemas/ImageResponse"},"type":"array","title":"Data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","required":["data"],"title":"GenericPaginationResponse[List[ImageResponse]]"},"GenericPaginationResponse_List_SecretResponse__":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"Total number of items available in the dataset","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","description":"Number of items to skip before starting to collect the result set","default":0},"limit":{"type":"integer","minimum":0.0,"title":"Limit","description":"Maximum number of items to return","default":100},"data":{"items":{"$ref":"#/components/schemas/SecretResponse"},"type":"array","title":"Data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","required":["data"],"title":"GenericPaginationResponse[List[SecretResponse]]"},"GenericPaginationResponse_List_TeamMemberDetail__":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"Total number of items available in the dataset","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","description":"Number of items to skip before starting to collect the result set","default":0},"limit":{"type":"integer","minimum":0.0,"title":"Limit","description":"Maximum number of items to return","default":100},"data":{"items":{"$ref":"#/components/schemas/TeamMemberDetail"},"type":"array","title":"Data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","required":["data"],"title":"GenericPaginationResponse[List[TeamMemberDetail]]"},"GenericPaginationResponse_List_TeamSummary__":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"Total number of items available in the dataset","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","description":"Number of items to skip before starting to collect the result set","default":0},"limit":{"type":"integer","minimum":0.0,"title":"Limit","description":"Maximum number of items to return","default":100},"data":{"items":{"$ref":"#/components/schemas/TeamSummary"},"type":"array","title":"Data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","required":["data"],"title":"GenericPaginationResponse[List[TeamSummary]]"},"GenericPaginationResponse_list_AdminClusterSummary__":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"Total number of items available in the dataset","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","description":"Number of items to skip before starting to collect the result set","default":0},"limit":{"type":"integer","minimum":0.0,"title":"Limit","description":"Maximum number of items to return","default":100},"data":{"items":{"$ref":"#/components/schemas/AdminClusterSummary"},"type":"array","title":"Data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","required":["data"],"title":"GenericPaginationResponse[list[AdminClusterSummary]]"},"GenericPaginationResponse_list_ClusterNodeLogEntry__":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"Total number of items available in the dataset","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","description":"Number of items to skip before starting to collect the result set","default":0},"limit":{"type":"integer","minimum":0.0,"title":"Limit","description":"Maximum number of items to return","default":100},"data":{"items":{"$ref":"#/components/schemas/ClusterNodeLogEntry"},"type":"array","title":"Data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","required":["data"],"title":"GenericPaginationResponse[list[ClusterNodeLogEntry]]"},"GenericResponse_AdminWhoamiResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminWhoamiResponse"},{"type":"null"}],"description":"Response data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","title":"GenericResponse[AdminWhoamiResponse]"},"GenericResponse_CertificateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CertificateResponse"},{"type":"null"}],"description":"Response data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","title":"GenericResponse[CertificateResponse]"},"GenericResponse_ClusterDetailResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ClusterDetailResponse"},{"type":"null"}],"description":"Response data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","title":"GenericResponse[ClusterDetailResponse]"},"GenericResponse_List_APIPodStatusResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/APIPodStatusResponse"},"type":"array"},{"type":"null"}],"title":"Data","description":"Response data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","title":"GenericResponse[List[APIPodStatusResponse]]"},"GenericResponse_SecretResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SecretResponse"},{"type":"null"}],"description":"Response data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","title":"GenericResponse[SecretResponse]"},"GenericResponse_User_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/User"},{"type":"null"}],"description":"Response data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","title":"GenericResponse[User]"},"GenericResponse_WhoamiResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/WhoamiResponse"},{"type":"null"}],"description":"Response data"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Response status"}},"type":"object","title":"GenericResponse[WhoamiResponse]"},"GetEvaluationResponse":{"properties":{"evaluation_id":{"type":"string","title":"Evaluation Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/EvaluationStatus"},"eval_type":{"$ref":"#/components/schemas/EvaluationType"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"User ID of evaluation owner"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team ID if evaluation is owned by a team"},"environment_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Environment Ids"},"environment_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Environment Names"},"suite_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suite Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Id"},"is_hosted":{"type":"boolean","title":"Is Hosted","default":false},"sandbox_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sandbox Id"},"inference_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inference Model"},"eval_config":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Eval Config"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"logs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logs"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"dataset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset"},"framework":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Framework"},"task_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"total_samples":{"type":"integer","title":"Total Samples"},"avg_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Score"},"min_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Score"},"max_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Score"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"metadata":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metadata"},"metrics":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metrics"},"viewer_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Url"},"is_public":{"type":"boolean","title":"Is Public","description":"Whether this evaluation is publicly shareable by link","default":false},"show_on_leaderboard":{"type":"boolean","title":"Show On Leaderboard","description":"Whether this public evaluation appears on environment leaderboards","default":false},"statistics":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Statistics","description":"Statistics format (totalResults, totalReward, avgReward)"},"chartData":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Chartdata","description":"Histogram and statistics for visualization"},"rubricInfo":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Rubricinfo","description":"Rubric with detected metrics and weights"},"detailedMetrics":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Detailedmetrics","description":"Detailed statistics for each detected metric"},"rewardStats":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Rewardstats","description":"Reward statistics for backward compatibility"}},"type":"object","required":["evaluation_id","name","status","eval_type","total_samples","created_at","updated_at"],"title":"GetEvaluationResponse","description":"Response for getting evaluation details"},"GetHostedEvaluationLogsResponse":{"properties":{"logs":{"type":"string","title":"Logs","description":"Sandbox logs"},"sandbox_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sandbox Id","description":"Sandbox ID"},"evaluation_id":{"type":"string","title":"Evaluation Id","description":"Evaluation ID"}},"type":"object","required":["logs","evaluation_id"],"title":"GetHostedEvaluationLogsResponse"},"GetSamplesResponse":{"properties":{"evaluation_id":{"type":"string","title":"Evaluation Id"},"samples":{"items":{"type":"object"},"type":"array","title":"Samples"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_pages":{"type":"integer","title":"Total Pages"}},"type":"object","required":["evaluation_id","samples","total","page","limit","total_pages"],"title":"GetSamplesResponse","description":"Response for getting evaluation samples"},"GpuAvailability":{"properties":{"cloudId":{"type":"string","title":"Cloudid","description":"Cloud ID, used for provisioning"},"gpuType":{"$ref":"#/components/schemas/GPUType","description":"GPU model"},"socket":{"$ref":"#/components/schemas/GPUSocket","description":"GPU socket"},"provider":{"$ref":"#/components/schemas/ProviderTypeEnum","description":"Provider's ID"},"region":{"anyOf":[{"$ref":"#/components/schemas/Regions"},{"type":"null"}],"description":"Region where the GPU is located."},"dataCenter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Datacenter","description":"Location of the data center housing the GPU."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country where the data center is located."},"gpuCount":{"type":"integer","title":"Gpucount","description":"Total number of GPUs available in this configuration."},"gpuMemory":{"type":"integer","title":"Gpumemory","description":"Amount of memory available per GPU in GB."},"disk":{"$ref":"#/components/schemas/CustomSpecValue","description":"Disk capacity in GB.","default":{}},"sharedDisk":{"$ref":"#/components/schemas/CustomSpecValue","description":"Shared disk capacity in GB.","default":{}},"vcpu":{"$ref":"#/components/schemas/CustomSpecValue","description":"Number of virtual CPUs allocated.","default":{}},"memory":{"$ref":"#/components/schemas/CustomSpecValue","description":"RAM size available in GB.","default":{}},"internetSpeed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Internetspeed","description":"Internet speed available in Mbps."},"interconnect":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Interconnect","description":"Interconnect speed between GPUs or nodes in Gbps."},"interconnectType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interconnecttype","description":"Type of interconnect technology (e.g. Infiniband)."},"provisioningTime":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Provisioningtime","description":"Estimated time in minutes required for GPU provisioning."},"stockStatus":{"type":"string","enum":["Available","Low","Medium","High","Unavailable"],"title":"Stockstatus","description":"Current stock availability status of GPUs.","default":"Available"},"security":{"$ref":"#/components/schemas/SecurityType","description":"GPU is either from community cloud or secure cloud"},"prices":{"$ref":"#/components/schemas/Prices","description":"Hourly pricing details."},"images":{"items":{"$ref":"#/components/schemas/EnvironmentTypeEnum"},"type":"array","title":"Images","description":"List of available images for this GPU."},"isSpot":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isspot","description":"Indicates if the GPU can be provisioned on a spot pricing model."},"prepaidTime":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prepaidtime","description":"If set, you will be pre-charged for the total number of hours specified in this field at the time of ordering, regardless of actual usage. After the prepaid time expires, the standard hourly rate will apply."}},"type":"object","required":["cloudId","gpuType","socket","provider","gpuCount","gpuMemory","security","prices","images"],"title":"GpuAvailability"},"HistoryObj":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the record."},"name":{"type":"string","title":"Name","description":"Name assigned to the resource."},"providerType":{"$ref":"#/components/schemas/ProviderTypeEnum","description":"ID of the provider."},"provisionedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provisionedby","description":"Name of the user who provisioned the resource."},"type":{"$ref":"#/components/schemas/ResourceType","description":"Type of the resource."},"createdAt":{"type":"string","format":"date-time","title":"Createdat","description":"Timestamp when the resource was created."},"terminatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terminatedat","description":"Timestamp when the resource was terminated."},"gpuName":{"type":"string","title":"Gpuname","description":"Model of the GPU used in the resource."},"gpuCount":{"type":"integer","title":"Gpucount","description":"Number of GPUs allocated to the resource.","examples":[1]},"socket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Socket","description":"Type of socket used by the GPU, if applicable."},"priceHr":{"type":"number","title":"Pricehr","description":"Price per hour for using the resource (average).","examples":[1.23]},"userId":{"type":"string","title":"Userid","description":"ID of the user who owns the resource."},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid","description":"ID of the team to which the resource is assigned, if applicable."},"totalBilledPrice":{"type":"number","title":"Totalbilledprice","description":"Total amount billed for this resource.","examples":[123.45]}},"type":"object","required":["id","name","providerType","type","createdAt","gpuName","gpuCount","priceHr","userId","totalBilledPrice"],"title":"HistoryObj"},"HostedEvalConfig":{"properties":{"num_examples":{"type":"integer","maximum":9007199254740991.0,"minimum":-1.0,"title":"Num Examples","description":"Number of examples to evaluate (-1 for all)"},"rollouts_per_example":{"type":"integer","maximum":2048.0,"minimum":1.0,"title":"Rollouts Per Example","description":"Rollouts per example"},"env_args":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Env Args","description":"Optional environment arguments to pass to the evaluation"},"allow_sandbox_access":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Sandbox Access","description":"Allow sandbox read/write access","default":false},"allow_instances_access":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Instances Access","description":"Allow instance creation and management access","default":false},"allow_tunnel_access":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Tunnel Access","description":"Allow tunnel creation and management access","default":false},"timeout_minutes":{"anyOf":[{"type":"integer","maximum":1440.0,"minimum":120.0},{"type":"null"}],"title":"Timeout Minutes","description":"Custom timeout in minutes for the hosted eval run (default: 1440 = 24 hours, min: 120, max: 1440)"},"custom_secrets":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Custom Secrets","description":"Custom secrets to set in the evaluation sandbox (e.g., API keys, tokens)"},"sampling_args":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Sampling Args","description":"Optional sampling arguments forwarded to `prime eval run --sampling-args`"},"max_concurrent":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":1.0},{"type":"null"}],"title":"Max Concurrent","description":"Optional max concurrency forwarded to `prime eval run --max-concurrent`"},"max_retries":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":0.0},{"type":"null"}],"title":"Max Retries","description":"Optional max retries forwarded to `prime eval run --max-retries`"},"state_columns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"State Columns","description":"Optional state columns forwarded to `prime eval run --state-columns`"},"independent_scoring":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Independent Scoring","description":"Forward `--independent-scoring` to the hosted eval runner","default":false},"verbose":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verbose","description":"Forward `--verbose` to the hosted eval runner","default":false},"headers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Headers","description":"Optional repeated headers forwarded to `prime eval run --header`"},"extra_env_kwargs":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Extra Env Kwargs","description":"Optional environment constructor kwargs forwarded to `prime eval run --extra-env-kwargs`"},"api_client_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Client Type","description":"Optional API client type forwarded to `prime eval run --api-client-type`"},"api_base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Base Url","description":"Optional inference base URL forwarded to `prime eval run --api-base-url`"},"api_key_var":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Var","description":"Optional API key env var forwarded to `prime eval run --api-key-var`"}},"type":"object","required":["num_examples","rollouts_per_example"],"title":"HostedEvalConfig","description":"Hosted evaluation configuration"},"ImageBuildArtifactTypeEnum":{"type":"string","enum":["CONTAINER_IMAGE","VM_SANDBOX"],"title":"ImageBuildArtifactTypeEnum"},"ImageBuildStatusEnum":{"type":"string","enum":["PENDING","UPLOADING","BUILDING","COMPLETED","FAILED","CANCELLED"],"title":"ImageBuildStatusEnum"},"ImageResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the image"},"artifactType":{"$ref":"#/components/schemas/ImageBuildArtifactTypeEnum","description":"Artifact produced by this image record","default":"CONTAINER_IMAGE"},"imageName":{"type":"string","title":"Imagename","description":"Name of the image"},"imageTag":{"type":"string","title":"Imagetag","description":"Tag of the image"},"status":{"$ref":"#/components/schemas/ImageBuildStatusEnum","description":"Current build status"},"fullImagePath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fullimagepath","description":"Stored output reference for the image artifact"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage","description":"Error message if build failed"},"sizeBytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sizebytes","description":"Size of the image in bytes"},"visibility":{"$ref":"#/components/schemas/ImageVisibilityEnum","description":"Whether this image can be used by other Prime users","default":"PRIVATE"},"createdAt":{"type":"string","format":"date-time","title":"Createdat","description":"Timestamp when the build was created"},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Startedat","description":"Timestamp when the build started"},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completedat","description":"Timestamp when the build completed"},"pushedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pushedat","description":"Timestamp when the image artifact was registered"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid","description":"Team ID if this is a team image"},"ownerType":{"type":"string","enum":["personal","team"],"title":"Ownertype","description":"Whether this is a personal or team image","default":"personal"},"displayRef":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayref","description":"User-friendly reference (team-{teamId}/name:tag or {userId}/name:tag)"}},"type":"object","required":["id","imageName","imageTag","status","createdAt"],"title":"ImageResponse","description":"Response model for an image or build with status."},"ImageVisibilityEnum":{"type":"string","enum":["PRIVATE","PUBLIC"],"title":"ImageVisibilityEnum"},"ImageVisibilityOverrideEnum":{"type":"string","enum":["INHERIT","PRIVATE","PUBLIC"],"title":"ImageVisibilityOverrideEnum"},"InstallationStatusEnum":{"type":"string","enum":["PENDING","ACTIVE","FINISHED","ERROR","TERMINATED"],"title":"InstallationStatusEnum"},"InstanceCountPricing":{"properties":{"cheapest":{"anyOf":[{"$ref":"#/components/schemas/PricingInfo"},{"type":"null"}],"description":"Cheapest pricing across all regions"}},"additionalProperties":true,"type":"object","title":"InstanceCountPricing"},"InstanceResources":{"properties":{"memory":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Memory","description":"RAM available (in GB)","examples":["128"]},"disk":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Disk","description":"Total disk space (in GB)","examples":["1000"]},"shared_disk":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shared Disk","description":"Total external shared disk space (in GB)","examples":["1000"]},"vcpus":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vcpus","description":"vCPUs available","examples":["32"]}},"type":"object","title":"InstanceResources"},"LegacyAvailabilityResponse":{"properties":{"{GPUType}":{"items":{"$ref":"#/components/schemas/GpuAvailability"},"type":"array"}},"type":"object","title":"LegacyAvailabilityResponse"},"ListEvaluationsResponse":{"properties":{"evaluations":{"items":{"$ref":"#/components/schemas/GetEvaluationResponse"},"type":"array","title":"Evaluations"},"total":{"type":"integer","title":"Total"},"skip":{"type":"integer","title":"Skip"},"limit":{"type":"integer","title":"Limit"}},"type":"object","required":["evaluations","total","skip","limit"],"title":"ListEvaluationsResponse","description":"Response for listing evaluations"},"ListExposedPortsResponse":{"properties":{"exposures":{"items":{"$ref":"#/components/schemas/ExposedPortInfo"},"type":"array","title":"Exposures"}},"type":"object","required":["exposures"],"title":"ListExposedPortsResponse"},"ListInferenceModelsResponse":{"properties":{"models":{"items":{"type":"object"},"type":"array","title":"Models","description":"List of available models"}},"type":"object","required":["models"],"title":"ListInferenceModelsResponse","description":"Response for listing available inference models"},"PermissionType":{"properties":{"read":{"type":"boolean","title":"Read"},"write":{"type":"boolean","title":"Write"}},"type":"object","required":["read","write"],"title":"PermissionType"},"PodRequestConfig":{"properties":{"name":{"type":"string","title":"Name"},"cloudId":{"type":"string","title":"Cloudid"},"gpuType":{"$ref":"#/components/schemas/GPUType","description":"Model of the GPU allocated."},"socket":{"$ref":"#/components/schemas/GPUSocket","description":"Type of socket used by the GPU."},"gpuCount":{"type":"integer","exclusiveMinimum":0.0,"title":"Gpucount"},"diskSize":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Disksize"},"vcpus":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Vcpus"},"memory":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Memory"},"maxPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maxprice"},"image":{"$ref":"#/components/schemas/EnvironmentTypeEnum","default":"ubuntu_22_cuda_12"},"customTemplateId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customtemplateid"},"dataCenterId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Datacenterid"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"security":{"anyOf":[{"$ref":"#/components/schemas/SecurityType"},{"type":"null"}]},"envVars":{"anyOf":[{"items":{"$ref":"#/components/schemas/EnvVar"},"type":"array"},{"type":"null"}],"title":"Envvars"},"jupyterPassword":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jupyterpassword"},"sshKeyId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sshkeyid"},"autoRestart":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autorestart","default":false},"prepaidForHr":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Prepaidforhr","description":"Number of hours to prepay for (used for reserved instances)"}},"additionalProperties":false,"type":"object","required":["cloudId","gpuType","socket","gpuCount"],"title":"PodRequestConfig"},"PodStatusEnum":{"type":"string","enum":["PROVISIONING","PENDING","ACTIVE","STOPPED","ERROR","DELETING","UNKNOWN","TERMINATED"],"title":"PodStatusEnum"},"PodTypeEnum":{"type":"string","enum":["HOSTED","EXTERNAL"],"title":"PodTypeEnum"},"PortMapping":{"properties":{"internal":{"type":"string","title":"Internal","examples":["8080"]},"external":{"type":"string","title":"External","examples":["1234"]},"protocol":{"$ref":"#/components/schemas/ProtocolEnum"},"usedBy":{"anyOf":[{"$ref":"#/components/schemas/UsedByEnum"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["internal","external","protocol"],"title":"PortMapping"},"Prices":{"properties":{"onDemand":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ondemand","description":"Price for on-demand usage, specified for secure_cloud security type.","examples":[1.15]},"communityPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Communityprice","description":"Price for community cloud instances, specified for community_cloud security type.","examples":[null]},"isVariable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isvariable","description":"Indicates whether the price is variable and subject to change based on market conditions.","examples":[false]},"currency":{"$ref":"#/components/schemas/Currency","description":"The currency in which the prices are denominated (e.g., USD, EUR)."}},"type":"object","required":["currency"],"title":"Prices"},"PricingInfo":{"properties":{"onDemand":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ondemand","description":"On-demand pricing"},"communityPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Communityprice","description":"Community cloud pricing"},"spotPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spotprice","description":"Spot instance pricing"}},"type":"object","title":"PricingInfo"},"ProtocolEnum":{"type":"string","enum":["TCP","UDP"],"title":"ProtocolEnum"},"ProviderConfig":{"properties":{"type":{"$ref":"#/components/schemas/ProviderTypeEnum"}},"type":"object","required":["type"],"title":"ProviderConfig"},"ProviderTypeEnum":{"type":"string","enum":["runpod","fluidstack","lambdalabs","hyperstack","oblivus","cudocompute","scaleway","tensordock","datacrunch","latitude","crusoecloud","massedcompute","akash","primeintellect","primecompute","dc_impala","dc_kudu","dc_roan","nebius","dc_eland","dc_wildebeest","vultr","dc_gnu","denvr"],"title":"ProviderTypeEnum"},"PushSamplesRequest":{"properties":{"samples":{"items":{"type":"object"},"type":"array","title":"Samples","description":"List of evaluation samples"}},"type":"object","required":["samples"],"title":"PushSamplesRequest","description":"Request to push evaluation samples (replaces traces)"},"PushSamplesResponse":{"properties":{"evaluation_id":{"type":"string","title":"Evaluation Id"},"samples_pushed":{"type":"integer","title":"Samples Pushed"},"status":{"$ref":"#/components/schemas/EvaluationStatus"}},"type":"object","required":["evaluation_id","samples_pushed","status"],"title":"PushSamplesResponse","description":"Response after pushing samples"},"Regions":{"type":"string","enum":["africa","asia_south","asia_northeast","australia","canada","eu_east","eu_north","eu_west","middle_east","south_america","united_states"],"title":"Regions"},"RegistryCredentialsListResponse":{"properties":{"credentials":{"items":{"$ref":"#/components/schemas/RegistryCredentialsSummary"},"type":"array","title":"Credentials"}},"type":"object","required":["credentials"],"title":"RegistryCredentialsListResponse"},"RegistryCredentialsSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"server":{"type":"string","title":"Server"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid"}},"type":"object","required":["id","name","server","createdAt","updatedAt","userId","teamId"],"title":"RegistryCredentialsSummary"},"ResourceType":{"type":"string","enum":["Instance","Cluster","Disk","Sandbox","Inference","Image","Training"],"title":"ResourceType"},"RunPricing":{"properties":{"training_per_mtok":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Training Per Mtok"},"inference_input_per_mtok":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Inference Input Per Mtok"},"inference_output_per_mtok":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Inference Output Per Mtok"}},"type":"object","title":"RunPricing","description":"Snapshotted per-million-token pricing used to bill the run."},"RunUsageBreakdown":{"properties":{"tokens":{"type":"integer","title":"Tokens","description":"Total tokens recorded for this usage type","default":0},"input_tokens":{"type":"integer","title":"Input Tokens","description":"Total input tokens (only populated for INFERENCE)","default":0},"output_tokens":{"type":"integer","title":"Output Tokens","description":"Total output tokens (only populated for INFERENCE)","default":0},"cost_usd":{"type":"number","title":"Cost Usd","description":"Total cost charged for this usage type","default":0.0}},"type":"object","title":"RunUsageBreakdown","description":"Token + cost totals for a single usage type within a run."},"RunUsageResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"run_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Name"},"base_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"training":{"$ref":"#/components/schemas/RunUsageBreakdown"},"inference":{"$ref":"#/components/schemas/RunUsageBreakdown"},"total_tokens":{"type":"integer","title":"Total Tokens"},"total_cost_usd":{"type":"number","title":"Total Cost Usd"},"pricing":{"$ref":"#/components/schemas/RunPricing"},"record_count":{"type":"integer","title":"Record Count","default":0}},"type":"object","required":["run_id","training","inference","total_tokens","total_cost_usd","pricing"],"title":"RunUsageResponse","description":"Per-run usage totals — drives `prime train usage <run_id>`."},"SSHSessionResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"exposure_id":{"type":"string","title":"Exposure Id"},"sandbox_id":{"type":"string","title":"Sandbox Id"},"host":{"type":"string","title":"Host"},"port":{"type":"integer","title":"Port"},"external_endpoint":{"type":"string","title":"External Endpoint"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"ttl_seconds":{"type":"integer","title":"Ttl Seconds"},"gateway_url":{"type":"string","title":"Gateway Url"},"user_ns":{"type":"string","title":"User Ns"},"job_id":{"type":"string","title":"Job Id"},"token":{"type":"string","title":"Token"}},"type":"object","required":["session_id","exposure_id","sandbox_id","host","port","external_endpoint","expires_at","ttl_seconds","gateway_url","user_ns","job_id","token"],"title":"SSHSessionResponse"},"SandboxAuthResponse":{"properties":{"token":{"type":"string","title":"Token","description":"JWT token for direct sandbox access"},"gateway_url":{"type":"string","title":"Gateway Url","description":"Gateway URL for direct sandbox operations"},"user_ns":{"type":"string","title":"User Ns","description":"User namespace for sandbox access"},"job_id":{"type":"string","title":"Job Id","description":"Job ID for sandbox access"},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"Token expiration time"}},"type":"object","required":["token","gateway_url","user_ns","job_id","expires_at"],"title":"SandboxAuthResponse"},"SandboxErrorContextResponse":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"errorType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errortype"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage"}},"type":"object","title":"SandboxErrorContextResponse","description":"Response for error context lookups"},"SandboxListResponse":{"properties":{"sandboxes":{"items":{"$ref":"#/components/schemas/SandboxResponse"},"type":"array","title":"Sandboxes"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"has_next":{"type":"boolean","title":"Has Next"}},"type":"object","required":["sandboxes","total","page","per_page","has_next"],"title":"SandboxListResponse"},"SandboxLogsResponse":{"properties":{"logs":{"type":"string","title":"Logs"}},"type":"object","required":["logs"],"title":"SandboxLogsResponse"},"SandboxResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"dockerImage":{"type":"string","title":"Dockerimage"},"startCommand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startcommand"},"cpuCores":{"type":"number","title":"Cpucores"},"memoryGB":{"type":"number","title":"Memorygb"},"diskSizeGB":{"type":"number","title":"Disksizegb"},"diskMountPath":{"type":"string","title":"Diskmountpath"},"gpuCount":{"type":"integer","title":"Gpucount"},"gpuType":{"anyOf":[{"$ref":"#/components/schemas/GPUType"},{"type":"null"}]},"vm":{"type":"boolean","title":"Vm","default":false},"networkAccess":{"type":"boolean","title":"Networkaccess"},"status":{"$ref":"#/components/schemas/SandboxStatus"},"timeoutMinutes":{"type":"integer","title":"Timeoutminutes"},"environmentVars":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Environmentvars"},"advancedConfigs":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Advancedconfigs"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Startedat"},"terminatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terminatedat"},"exitCode":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exitcode"},"errorType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errortype"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid"},"kubernetesJobId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kubernetesjobid"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"registryCredentialsId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registrycredentialsid"}},"type":"object","required":["id","name","dockerImage","startCommand","cpuCores","memoryGB","diskSizeGB","diskMountPath","gpuCount","networkAccess","status","timeoutMinutes","environmentVars","advancedConfigs","createdAt","updatedAt","startedAt","terminatedAt","userId","teamId","kubernetesJobId"],"title":"SandboxResponse"},"SandboxStatus":{"type":"string","enum":["PENDING","PROVISIONING","RUNNING","PAUSED","ERROR","TERMINATED"],"title":"SandboxStatus"},"SecretCreateRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"pattern":"^[A-Z][A-Z0-9_]*$","title":"Name","description":"Name of the secret (must start with uppercase, only uppercase, numbers, underscores)"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description","description":"Optional description of the secret"},"value":{"type":"string","minLength":1,"title":"Value","description":"The secret value to store (will be encrypted)"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid","description":"Optional team ID for team-level secrets"},"isFile":{"type":"boolean","title":"Isfile","description":"Whether this secret represents a file (max 64KB base64 encoded)","default":false}},"type":"object","required":["name","value"],"title":"SecretCreateRequest"},"SecretResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier of the secret"},"name":{"type":"string","title":"Name","description":"Name of the secret"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the secret"},"isFile":{"type":"boolean","title":"Isfile","description":"Whether this secret is a file","default":false},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid","description":"ID of the owning user"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid","description":"ID of the owning team"},"createdAt":{"type":"string","format":"date-time","title":"Createdat","description":"When the secret was created"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat","description":"When the secret was last updated"}},"type":"object","required":["id","name","createdAt","updatedAt"],"title":"SecretResponse"},"SecretUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"pattern":"^[A-Z][A-Z0-9_]*$"},{"type":"null"}],"title":"Name","description":"New name for the secret (must start with uppercase, only uppercase, numbers, underscores)"},"value":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Value","description":"New value for the secret"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description","description":"New description for the secret"}},"type":"object","title":"SecretUpdateRequest"},"SecurityType":{"type":"string","enum":["secure_cloud","community_cloud"],"title":"SecurityType"},"StartBuildRequest":{"properties":{"context_uploaded":{"type":"boolean","title":"Context Uploaded","description":"Confirmation that context was uploaded","default":true}},"type":"object","title":"StartBuildRequest","description":"Request model to start the build after upload."},"TeamConfig":{"properties":{"teamId":{"type":"string","title":"Teamid"}},"type":"object","required":["teamId"],"title":"TeamConfig"},"TeamMemberDetail":{"properties":{"userId":{"type":"string","title":"Userid"},"userName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"userEmail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Useremail"},"role":{"type":"string","title":"Role"},"joinedAt":{"type":"string","format":"date-time","title":"Joinedat"}},"type":"object","required":["userId","userName","userEmail","role","joinedAt"],"title":"TeamMemberDetail"},"TeamRoleEnum":{"type":"string","enum":["ADMIN","MEMBER"],"title":"TeamRoleEnum"},"TeamSummary":{"properties":{"teamId":{"type":"string","title":"Teamid"},"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"role":{"$ref":"#/components/schemas/TeamRoleEnum"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"}},"type":"object","required":["teamId","name","role","createdAt"],"title":"TeamSummary"},"TunnelListResponse":{"properties":{"tunnels":{"items":{"$ref":"#/components/schemas/TunnelStatusResponse"},"type":"array","title":"Tunnels","description":"List of active tunnels"},"total":{"type":"integer","title":"Total","description":"Total number of tunnels"}},"type":"object","required":["total"],"title":"TunnelListResponse","description":"Response containing list of tunnels."},"TunnelResponse":{"properties":{"tunnel_id":{"type":"string","title":"Tunnel Id","description":"Unique tunnel identifier"},"hostname":{"type":"string","title":"Hostname","description":"Full hostname for the tunnel"},"url":{"type":"string","title":"Url","description":"Full HTTPS URL for accessing the tunnel"},"frp_token":{"type":"string","title":"Frp Token","description":"Authentication token for frpc client"},"binding_secret":{"type":"string","title":"Binding Secret","description":"Per-tunnel secret for additional authentication via frpc metadata"},"server_host":{"type":"string","title":"Server Host","description":"frps server hostname"},"server_port":{"type":"integer","title":"Server Port","description":"frps server port","default":7000},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"Token expiration timestamp"}},"type":"object","required":["tunnel_id","hostname","url","frp_token","binding_secret","server_host","expires_at"],"title":"TunnelResponse","description":"Response containing tunnel connection details."},"TunnelStatus":{"type":"string","enum":["pending","connected","disconnected","expired"],"title":"TunnelStatus"},"TunnelStatusResponse":{"properties":{"tunnel_id":{"type":"string","title":"Tunnel Id","description":"Unique tunnel identifier"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Friendly name if set"},"status":{"$ref":"#/components/schemas/TunnelStatus","description":"Current tunnel status"},"hostname":{"type":"string","title":"Hostname","description":"Tunnel hostname"},"url":{"type":"string","title":"Url","description":"Full HTTPS URL"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Tunnel creation time"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At","description":"When the client connected"},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"Token expiration time"},"user_id":{"type":"string","title":"User Id","description":"Owner user ID"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team ID if applicable"}},"type":"object","required":["tunnel_id","status","hostname","url","created_at","expires_at","user_id"],"title":"TunnelStatusResponse","description":"Response containing tunnel status information."},"UnexposePortResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"UnexposePortResponse"},"UpdateEvaluationRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Name of the evaluation"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the evaluation"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"Tags for categorization"},"metadata":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metadata","description":"Additional metadata"},"metrics":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metrics","description":"High-level metrics summary"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Model name"},"dataset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset","description":"Dataset name"},"framework":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Framework","description":"Framework used"},"task_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type","description":"Type of task"},"inference_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inference Model","description":"Prime Inference model ID"},"eval_config":{"anyOf":[{"$ref":"#/components/schemas/HostedEvalConfig"},{"type":"null"}],"description":"Hosted evaluation configuration"},"is_public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Public","description":"Whether the evaluation is publicly shareable by link; setting true without show_on_leaderboard keeps it off leaderboards by default"},"show_on_leaderboard":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show On Leaderboard","description":"Whether this public evaluation appears on environment leaderboards"}},"type":"object","title":"UpdateEvaluationRequest","description":"Request to update an existing evaluation"},"UpdateEvaluationResponse":{"properties":{"evaluation_id":{"type":"string","title":"Evaluation Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/EvaluationStatus"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["evaluation_id","name","status","updated_at"],"title":"UpdateEvaluationResponse","description":"Response after updating an evaluation"},"UpdateImageVisibilityRequest":{"properties":{"visibility":{"$ref":"#/components/schemas/ImageVisibilityEnum","description":"New image visibility (PUBLIC or PRIVATE)"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid","description":"Team ID if updating a team image"}},"type":"object","required":["visibility"],"title":"UpdateImageVisibilityRequest","description":"Request model for publishing or unpublishing an image."},"UpdateImageVisibilityResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the update succeeded"},"message":{"type":"string","title":"Message","description":"Status message describing the result"},"visibility":{"$ref":"#/components/schemas/ImageVisibilityEnum","description":"Updated visibility"},"images":{"items":{"$ref":"#/components/schemas/ImageResponse"},"type":"array","title":"Images","description":"Updated artifact rows for the logical image"}},"type":"object","required":["success","message","visibility"],"title":"UpdateImageVisibilityResponse","description":"Response model for an image visibility update."},"UsedByEnum":{"type":"string","enum":["SSH","JUPYTER_NOTEBOOK","WEB_SERVER"],"title":"UsedByEnum"},"User":{"properties":{"id":{"type":"string","title":"Id"},"role":{"$ref":"#/components/schemas/UserRoleEnum","default":"USER"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"email":{"type":"string","title":"Email"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"emailVerified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Emailverified"},"hasBetaAccess":{"type":"boolean","title":"Hasbetaaccess","default":false},"isBanned":{"type":"boolean","title":"Isbanned","default":false},"skipPrepay":{"type":"boolean","title":"Skipprepay","default":false},"blacklist":{"items":{"type":"string"},"type":"array","title":"Blacklist","default":[]}},"type":"object","required":["name","email"],"title":"User"},"UserRoleEnum":{"type":"string","enum":["ADMIN","MANAGER","USER"],"title":"UserRoleEnum"},"UserSlugUpdateRequest":{"properties":{"slug":{"type":"string","maxLength":30,"minLength":3,"pattern":"^[a-z0-9-]+$","title":"Slug","description":"Desired unique username/slug (lowercase, 3-30 chars, a-z, 0-9, -)"}},"type":"object","required":["slug"],"title":"UserSlugUpdateRequest"},"WalletResponse":{"properties":{"wallet_id":{"type":"string","title":"Wallet Id"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"},"balance_usd":{"type":"number","title":"Balance Usd","description":"Current balance in USD"},"currency":{"type":"string","title":"Currency"},"total_billings":{"type":"integer","title":"Total Billings","description":"Total billing rows on the wallet (across all pages)"},"recent_billings":{"items":{"$ref":"#/components/schemas/BillingEntry"},"type":"array","title":"Recent Billings"}},"type":"object","required":["wallet_id","balance_usd","currency","total_billings","recent_billings"],"title":"WalletResponse","description":"Snapshot of a wallet's balance + most recent billing rows.\n\nDrives `prime wallet`. One call returns everything an agent needs to\naudit the billing flow against a known training run."},"WhoamiResponse":{"properties":{"id":{"type":"string","title":"Id"},"role":{"$ref":"#/components/schemas/UserRoleEnum","default":"USER"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"email":{"type":"string","title":"Email"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"emailVerified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Emailverified"},"hasBetaAccess":{"type":"boolean","title":"Hasbetaaccess","default":false},"isBanned":{"type":"boolean","title":"Isbanned","default":false},"skipPrepay":{"type":"boolean","title":"Skipprepay","default":false},"blacklist":{"items":{"type":"string"},"type":"array","title":"Blacklist","default":[]},"scope":{"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/PermissionType"},{"type":"null"}]},"type":"object","title":"Scope","default":{}}},"type":"object","required":["name","email"],"title":"WhoamiResponse","description":"Extended User response that includes token scope permissions."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}